vendor: 5,434 bytes, line 1
1import{c as xn,d as ei,f as ht,g as Ki,h as Il,i as ti,j as Oa}from"./chunk-5P27VWSX.js";import{A as St,B as kt,C as Km,D as Au,E as Ou,H as Qm,I as Tl,J as wn,a as Du,b as jm,c as zo,d as Wm,e as Yn,f as $m,g as Ie,h as kl,i as yr,j as Kn,k as wr,l as Qn,m as Bo,n as qm,o as Pu,p as El,q as Aa,r as J,s as Ee,t as Ru,u as Fu,w as Ym}from"./chunk-KRUKCWRD.js";import{$a as se,$b as vt,$c as ge,A as hl,Ab as _r,Ac as He,B as _u,Bb as Su,Bc as $t,C as Ot,Cb as ve,Cc as Mu,Db as y,Dc as Vm,E as Lo,Ea as Mm,Eb as w,F as jn,Fb as Om,G as yu,Gb as ne,H as bm,Hb as Q,Hc as Y,I as _m,Ib as Z,Ic as me,J as ym,Jb as f,Jc as Mt,K as wm,Kb as h,Kc as _n,L as xm,Lb as p,Lc as zm,M as gl,Mb as x,Mc as Xt,N as it,Nb as ku,Nc as Bm,O as Wn,Ob as Eu,P as xt,Pb as Jt,Q as nt,Qa as te,Qb as dt,Qc as pt,R as Sm,Ra as ee,Rb as ut,Rc as Pe,Sa as wu,Sb as si,Sc as qt,T as lt,Ta as Dm,Tb as L,Tc as Hm,U as B,Ua as bn,Ub as Lm,Uc as xe,V,Va as vl,Vc as _i,W as km,Wa as d,X as Me,Xb as R,Y as U,Yb as g,Z as F,Zb as jt,_ as ml,_a as Pm,_b as Tt,a as gm,ab as qn,ac as It,ad as yn,b as mm,bb as Cl,bc as Se,bd as Gm,c as Ea,ca as No,cb as Ia,cc as ke,cd as Um,d as fu,da as Ti,dc as Je,e as vu,ea as S,eb as ct,ec as ot,f as _t,fa as k,fb as I,fc as Be,g as Fe,ga as Oe,gb as Rm,gc as yl,h as Un,ha as Em,hb as Vo,hc as ie,i as vn,ia as Cn,ib as Fm,ic as b,j as At,ja as Ze,jb as bl,jc as A,k as W,ka as $n,kb as N,kc as q,l as yt,lb as z,lc as bi,m as Cu,ma as fl,mb as ce,mc as Tu,n as fm,na as Ae,nb as Zt,nc as Nm,ob as ue,oc as Da,p as G,pa as Tm,pb as Yi,pc as Pa,q as pl,qb as H,qc as Ra,r as wt,ra as qe,rb as Am,rc as Iu,s as bu,sa as de,sc as wl,t as vm,ta as Im,tc as Fa,u as br,ua as ft,uc as oe,v as Ta,vc as Wt,w as Cm,wb as _l,wc as xl,x as Ci,xc as Te,y as ye,ya as De,yb as Ma,yc as Sl,z as Oo,zb as xu,zc as j}from"./chunk-6I6YFGEM.js";import{a as M,b as ae,c as Cr,d as ul,e as Ai,f as hm,g as gu,h as mu,i as st}from"./chunk-ODN5LVDJ.js";var dC=Ai((Cs,Hc)=>{(function(e,i){"use strict";var t="1.0.41",n="",o="?",r="function",a="undefined",s="object",l="string",c="major",u="model",m="name",v="type",C="vendor",_="version",E="architecture",D="console",P="mobile",T="tablet",O="smarttv",K="wearable",we="embedded",Ke=500,at="Amazon",$e="Apple",mt="ASUS",Qt="BlackBerry",pn="Browser",hn="Chrome",Io="Edge",Wi="Firefox",gn="Google",Mo="Honor",Do="Huawei",gr="Lenovo",mn="LG",Vn="Microsoft",zn="Motorola",Bn="Nvidia",wa="OnePlus",Hn="Opera",mr="OPPO",Gn="Samsung",nl="Sharp",Po="Sony",xa="Xiaomi",Sa="Zebra",ol="Facebook",rl="Chromium OS",al="Mac OS",sl=" Browser",du=function(Re,ze){var _e={};for(var Qe in Re)ze[Qe]&&ze[Qe].length%2===0?_e[Qe]=ze[Qe].concat(Re[Qe]):_e[Qe]=Re[Qe];return _e},fr=function(Re){for(var ze={},_e=0;_e<Re.length;_e++)ze[Re[_e].toUpperCase()]=Re[_e];return ze},ll=function(Re,ze){return typeof Re===l?Ro(ze).indexOf(Ro(Re))!==-1:!1},Ro=function(Re){return Re.toLowerCase()},uu=function(Re){return typeof Re===l?Re.replace(/[^\d\.]/g,n).split(".")[0]:i},ka=function(Re,ze){if(typeof Re===l)return Re=Re.replace(/^\s\s*/,n),typeof ze===a?Re:Re.substring(0,Ke)},Fo=function(Re,ze){for(var _e=0,Qe,fn,$i,Ue,Ce,qi;_e<ze.length&&!Ce;){var hu=ze[_e],pm=ze[_e+1];for(Qe=fn=0;Qe<hu.length&&!Ce&&hu[Qe];)if(Ce=hu[Qe++].exec(Re),Ce)for($i=0;$i<pm.length;$i++)qi=Ce[++fn],Ue=pm[$i],typeof Ue===s&&Ue.length>0?Ue.length===2?typeof Ue[1]==r?this[Ue[0]]=Ue[1].call(this,qi):this[Ue[0]]=Ue[1]:Ue.length===3?typeof Ue[1]===r&&!(Ue[1].exec&&Ue[1].test)?this[Ue[0]]=qi?Ue[1].call(this,qi,Ue[2]):i:this[Ue[0]]=qi?qi.replace(Ue[1],Ue[2]):i:Ue.length===4&&(this[Ue[0]]=qi?Ue[3].call(this,qi.replace(Ue[1],Ue[2])):i):this[Ue]=qi||i;_e+=2}},Ao=function(Re,ze){for(var _e in ze)if(typeof ze[_e]===s&&ze[_e].length>0){for(var Qe=0;Qe<ze[_e].length;Qe++)if(ll(ze[_e][Qe],Re))return _e===o?i:_e}else if(ll(ze[_e],Re))return _e===o?i:_e;return ze.hasOwnProperty("*")?ze["*"]:Re},pu={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},cl={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},um={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,_],[/opios[\/ ]+([\w\.]+)/i],[_,[m,Hn+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[_,[m,Hn+" GX"]],[/\bopr\/([\w\.]+)/i],[_,[m,Hn]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[_,[m,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[_,[m,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,_],[/quark(?:pc)?\/([-\w\.]+)/i],[_,[m,"Quark"]],[/\bddg\/([\w\.]+)/i],[_,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[_,[m,"UC"+pn]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[_,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_,[m,"K
1onqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[_,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[_,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[_,[m,"Smart Lenovo "+pn]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+pn],_],[/\bfocus\/([\w\.]+)/i],[_,[m,Wi+" Focus"]],[/\bopt\/([\w\.]+)/i],[_,[m,Hn+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[_,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[_,[m,Hn+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[_,[m,"MIUI"+sl]],[/fxios\/([\w\.-]+)/i],[_,[m,Wi]],[/\bqihoobrowser\/?([\w\.]*)/i],[_,[m,"360"]],[/\b(qq)\/([\w\.]+)/i],[[m,/(.+)/,"$1Browser"],_],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1"+sl],_],[/samsungbrowser\/([\w\.]+)/i],[_,[m,Gn+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[_,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],_],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[m,_],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[m],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[_,m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,ol],_],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,_],[/\bgsa\/([\w\.]+) .*safari\//i],[_,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[_,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[_,[m,hn+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,hn+" WebView"],_],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[_,[m,"Android "+pn]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,_],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[_,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[_,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[_,Ao,pu]],[/(webkit|khtml)\/([\w\.]+)/i],[m,_],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],_],[/(wolvic|librewolf)\/([\w\.]+)/i],[m,_],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[_,[m,Wi+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[m,[_,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[m,[_,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[E,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[E,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[E,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[E,/ower/,n,Ro]],[/ sun4\w[;\)]/i],[[E,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[E,Ro]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[C,Gn],[v,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[C,Gn],[v,P]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[C,$e],[v,P]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[C,$e],[v,T]],[/(macintosh);/i],[u,[C,$e]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[C,nl],[v,P]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[C,Mo],[v,T]],[/honor([-\w ]+)[;\)]/i],[u,[C,Mo],[v,P]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[u,[C,Do],[v,T]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[C,Do],[v,P]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[C,xa],[v,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[u,/_/g," "],[C,xa],[v,P]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[C,mr],[v,P]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[C,Ao,{OnePlus:["304","403","203"],"*":mr}],[v,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[C,"Vivo"],[v,P]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[C,"Realme"],[v,P]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[C,zn],[v,P]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[C,zn],[v,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[C,mn],[v,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[C,mn],[v,P]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[u,[C,gr],[v,T]],[/(nokia) (t[12][01])/i],[C,u,[v,T]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[v,P],[C,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[C,gn],[v,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[C,gn],[v,P]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[C,Po],[v,P]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[C,Po],[v,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[C,wa],[v,P]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[C,at],[v,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[C,at],[v,P]],[/(playbook);[-\w\),; ]+(rim)/i],[u,C,[v,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[C,Qt],[v,P]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[C,mt],[v,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[C,mt],[v,P]],[/(nexus 9)/i],[u,[C,"HTC"],[v,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[C,[u,/_/g," "],[v,P]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[C,"TCL"],[v,T]],[/(itel) ((\w+))/i],[[C,Ro],u,[v,Ao,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[C,"Acer"],[v,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[C,"Meizu"],[v,P]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[C,"Ulefone"],[v,P]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[C,"Energizer"],[v,P]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[C,"Cat"],[v,P]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[C,"Smartfren"],[v,P]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[C,"Nothing"],[v,P]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[C,"Archos"],[v,T]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[C,"Archos"],[v,P]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[C,u,[v,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[C,u,[v,P]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[C,u,[v,T]],[/(surface duo)/i],[u,[C,Vn],[v,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[C,"Fairphone"],[v,P]],[/(u304aa)/i],[u,[C,"AT&T"],[v,P]],[/\bsie-(\w*)/i],[u,[C,"Siemens"],[v,P]],[/\b(rct\w+) b/i],[u,[C,"RCA"],[v,T]],[/\b(venue[\d ]{2,7}) b/i],[u,[C,"Dell"],[v,T]],[/\b(q(?:mv|ta)\w+) b/i],[u,[C,"Verizon"],[v,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[C,"Barnes & Noble"],[v,T]],[/\b(tm\d{3}\w+) b/i],[u,[C,"NuVision"],[v,T]],[/\b(k88) b/i],[u,[C,"ZTE"],[v,T]],[/\b(nx\d{3}j) b/i],[u,[C,"ZTE"],[v,P]],[/\b(gen\d{3}) b.+49h/i],[u,[C,"Swiss"],[v,P]],[/\b(zur\d{3}) b/i],[u,[C,"Swiss"],[v,T]],[/\b((zeki)?tb.*\b) b/i],[u,[C,"Zeki"],[v,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[C,"Dragon Touch"],u,[v,T]],[/\b(ns-?\w{0,9}) b/i],[u,[C,"Insignia"],[v,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[C,"NextBook"],[v,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[C,"Voice"],u,[v,P]],[/\b(lvtel\-)?(v1[12]) b/i],[[C,"LvTel"],u,[v,P]],[/\b(ph-1) /i],[u,[C,"Essential"],[v,P]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[C,"Envizen"],[v,T]],[/\b(trio[-\w\. ]+) b/i],[u,[C,"MachSpeed"],[v,T]],[/\btu_(1491) b/i],[u,[C,"Rotor"],[v,T]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[C,Bn],[v,T]],[/(sprint) (\w+)/i],[C,u,[v,P]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[C,Vn],[v,P]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[C,Sa],[v,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[C,Sa],[v,P]],[/smart-tv.+(samsung)/i],[C,[v,O]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[C,Gn],[v,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[C,mn],[v,O]],[/(apple) ?tv/i],[C,[u,$e+" TV"],[v,O]],[/crkey/i],[[u,hn+"cast"],[C,gn],[v,O]],[/droid.+aft(\w+)( bui|\))/i],[u,[C,at],[v,O]],[/(shield \w+ tv)/i],[u,[C,Bn],[v,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[C,nl],[v,O]],[/(bravia[\w ]+)( bui|\))/i],[u,[C,Po],[v,O]],[/(mi(tv|box)-?\w+) bui/i],[u,[C,xa],[v,O]],[/Hbbtv.*(technisat) (.*);/i],[C,u,[v,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[C,ka],[u,ka],[v,O]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[v,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[C,u,[v,D]],[/droid.+; (shield)( bui|\))/i],[u,[C,Bn],[v,D]],[/(playstation \w+)/i],[u,[C,Po],[v,D]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[C,Vn],[v,D]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[C,Gn],[v,K]],[/((pebble))app/i,/(asu
vendor: 2,024 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[C,u,[v,K]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[C,mr],[v,K]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[C,$e],[v,K]],[/(opwwe\d{3})/i],[u,[C,wa],[v,K]],[/(moto 360)/i],[u,[C,zn],[v,K]],[/(smartwatch 3)/i],[u,[C,Po],[v,K]],[/(g watch r)/i],[u,[C,mn],[v,K]],[/droid.+; (wt63?0{2,3})\)/i],[u,[C,Sa],[v,K]],[/droid.+; (glass) \d/i],[u,[C,gn],[v,K]],[/(pico) (4|neo3(?: link|pro)?)/i],[C,u,[v,K]],[/; (quest( \d| pro)?)/i],[u,[C,ol],[v,K]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[C,[v,we]],[/(aeobc)\b/i],[u,[C,at],[v,we]],[/(homepod).+mac os/i],[u,[C,$e],[v,we]],[/windows iot/i],[[v,we]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[v,P]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[v,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,P]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[C,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[_,[m,Io+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[m,_],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,_],[/ladybird\//i],[[m,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,_],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[m,[_,Ao,cl]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_,Ao,cl],[m,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[_,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,al],[_,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_,m],[/(ubuntu) ([\w\.]+) like android/i],[[m,/(.+
1)/,"$1 Touch"],_],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[m,_],[/\(bb(10);/i],[_,[m,Qt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[_,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_,[m,Wi+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[_,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[_,[m,hn+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,rl],_],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,_],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],_],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,_]]},vi=function(Re,ze){if(typeof Re===s&&(ze=Re,Re=i),!(this instanceof vi))return new vi(Re,ze).getResult();var _e=typeof e!==a&&e.navigator?e.navigator:i,Qe=Re||(_e&&_e.userAgent?_e.userAgent:n),fn=_e&&_e.userAgentData?_e.userAgentData:i,$i=ze?du(um,ze):um,Ue=_e&&_e.userAgent==Qe;return this.getBrowser=function(){var Ce={};return Ce[m]=i,Ce[_]=i,Fo.call(Ce,Qe,$i.browser),Ce[c]=uu(Ce[_]),Ue&&_e&&_e.brave&&typeof _e.brave.isBrave==r&&(Ce[m]="Brave"),Ce},this.getCPU=function(){var Ce={};return Ce[E]=i,Fo.call(Ce,Qe,$i.cpu),Ce},this.getDevice=function(){var Ce={};return Ce[C]=i,Ce[u]=i,Ce[v]=i,Fo.call(Ce,Qe,$i.device),Ue&&!Ce[v]&&fn&&fn.mobile&&(Ce[v]=P),Ue&&Ce[u]=="Macintosh"&&_e&&typeof _e.standalone!==a&&_e.maxTouchPoints&&_e.maxTouchPoints>2&&(Ce[u]="iPad",Ce[v]=T),Ce},this.getEngine=function(){var Ce={};return Ce[m]=i,Ce[_]=i,Fo.call(Ce,Qe,$i.engine),Ce},this.getOS=function(){var Ce={};return Ce[m]=i,Ce[_]=i,Fo.call(Ce,Qe,$i.os),Ue&&!Ce[m]&&fn&&fn.platform&&fn.platform!="Unknown"&&(Ce[m]=fn.platform.replace(/chrome os/i,rl).replace(/macos/i,al)),Ce},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Qe},this.setUA=function(Ce){return Qe=typeof Ce===l&&Ce.length>Ke?ka(Ce,Ke):Ce,this},this.setUA(Qe),this};vi.VERSION=t,vi.BROWSER=fr([m,_,c]),vi.CPU=fr([E]),vi.DEVICE=fr([u,C,v,D,P,O,T,K,we]),vi.ENGINE=vi.OS=fr([m,_]),typeof Cs!==a?(typeof Hc!==a&&Hc.exports&&(Cs=Hc.exports=vi),Cs.UAParser=vi):typeof define===r&&define.amd?define(function(){return vi}):typeof e!==a&&(e.UAParser=vi);var vr=typeof e!==a&&(e.jQuery||e.Zepto);if(vr&&!vr.ua){var dl=new vi;vr.ua=dl.getResult(),vr.ua.get=function(){return dl.getUA()},vr.ua.set=function(Re){dl.setUA(Re);var ze=dl.getResult();for(var _e in ze)vr.ua[_e]=ze[_e]}}})(typeof window=="object"?window:Cs)});var CC=Ai((mQ,vC)=>{"use strict";function rh(e){return typeof e=="function"}var oi=console.error.bind(console);function bs(e,i,t){var n=!!e[i]&&e.propertyIsEnumerable(i);Object.defineProperty(e,i,{configurable:!0,enumerable:n,writable:!0,value:t})}function _s(e){e&&e.logger&&(rh(e.logger)?oi=e.logger:oi("new logger isn't a function, not replacing"))}function mC(e,i,t){if(!e||!e[i]){oi("no original function "+i+" to wrap");return}if(!t){oi("no wrapper function"),oi(new Error().stack);return}if(!rh(e[i])||!rh(t)){oi("original object and wrapper must be functions");return}var n=e[i],o=t(n,i);return bs(o,"__original",n),bs(o,"__unwrap",function(){e[i]===o&&bs(e,i,n)}),bs(o,"__wrapped",!0),bs(e,i,o),o}function wI(e,i,t){if(e)Array.isArray(e)||(e=[e]);else{oi("must provide one or more modules to patch"),oi(new Error().stack);return}if(!(i&&Array.isArray(i))){oi("must provide one or more functions to wrap on modules");return}
1e.forEach(function(n){i.forEach(function(o){mC(n,o,t)})})}function fC(e,i){if(!e||!e[i]){oi("no function to unwrap."),oi(new Error().stack);return}if(!e[i].__unwrap)oi("no original to unwrap to -- has "+i+" already been unwrapped?");else return e[i].__unwrap()}function xI(e,i){if(e)Array.isArray(e)||(e=[e]);else{oi("must provide one or more modules to patch"),oi(new Error().stack);return}if(!(i&&Array.isArray(i))){oi("must provide one or more functions to unwrap on modules");return}e.forEach(function(t){i.forEach(function(n){fC(t,n)})})}_s.wrap=mC;_s.massWrap=wI;_s.unwrap=fC;_s.massUnwrap=xI;vC.exports=_s});var yh={};hm(yh,{__assign:()=>bh,__asyncDelegator:()=>WI,__asyncGenerator:()=>jI,__asyncValues:()=>$I,__await:()=>xs,__awaiter:()=>VI,__classPrivateFieldGet:()=>QI,__classPrivateFieldSet:()=>ZI,__createBinding:()=>BI,__decorate:()=>OI,__exportStar:()=>HI,__extends:()=>FI,__generator:()=>zI,__importDefault:()=>KI,__importStar:()=>YI,__makeTemplateObject:()=>qI,__metadata:()=>NI,__param:()=>LI,__read:()=>WC,__rest:()=>AI,__spread:()=>GI,__spreadArrays:()=>UI,__values:()=>_h});function FI(e,i){Ch(e,i);function t(){this.constructor=e}e.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}function AI(e,i){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)i.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t}function OI(e,i,t,n){var o=arguments.length,r=o<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(o<3?a(r):o>3?a(i,t,r):a(i,t))||r);return o>3&&r&&Object.defineProperty(i,t,r),r}function LI(e,i){return function(t,n){i(t,n,e)}}function NI(e,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,i)}function VI(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})}function zI(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function BI(e,i,t,n){n===void 0&&(n=t),e[n]=i[t]}function HI(e,i){for(var t in e)t!=="default"&&!i.hasOwnProperty(t)&&(i[t]=e[t])}function _h(e){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&e[i],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function WC(e,i){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,r=[],a;try{for(;(i===void 0||i-- >0)&&!(o=n.next()).done;)r.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return r}function GI(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(WC(arguments[i]));return e}function UI(){for(var e=0,i=0,t=arguments.length;i<t;i++)e+=arguments[i].length;for(var n=Array(e),o=0,i=0;i<t;i++)for(var r=arguments[i],a=0,s=r.length;a<s;a++,o++)n[o]=r[a];return n}function xs(e){return this instanceof xs?(this.v=e,this):new xs(e)}function jI(e,i,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,i||[]),o,r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(v){n[v]&&(o[v]=function(C){return new Promise(function(_,E){r.push([v,C,_,E])>1||s(v,C)})})}function s(v,C){try{l(n[v](C))}catch(_){m(r[0][3],_)}}function l(v){v.value instanceof xs?Promise.resolve(v.value.v).then(c,u):m(r[0][2],v)}function c(v){s("next",v)}function u(v){s("throw",v)}function m(v,C){v(C),r.shift(),r.length&&s(r[0][0],r[0][1])}}function WI(e){var i,t;return i={},n("next"),n("throw",function(o){throw o}),n("return"),i[Symbol.iterator]=function(){return this},i;function n(o,r){i[o]=e[o]?function(a){return(t=!t)?{value:xs(e[o](a)),done:o==="return"}:r?r(a):a}:r}}function $I(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e[Symbol.asyncIterator],t;return i?i.call(e):(e=typeof _h=="function"?_h(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(a){return new Promise(function(s,l){a=e[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}}function qI(e,i){return Object.defineProperty?Object.defineProperty(e,"raw",{value:i}):e.raw=i,e}
vendor: 4,174 bytes, line 1
1function YI(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i.default=e,i}function KI(e){return e&&e.__esModule?e:{default:e}}function QI(e,i){if(!i.has(e))throw new TypeError("attempted to get private field on non-instance");return i.get(e)}function ZI(e,i,t){if(!i.has(e))throw new TypeError("attempted to set private field on non-instance");return i.set(e,t),t}var Ch,bh,wh=ul(()=>{Ch=function(e,i){return Ch=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])},Ch(e,i)};bh=function(){return bh=Object.assign||function(i){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},bh.apply(this,arguments)}});var xh=Ai(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.MAX_HASHABLE_LENGTH=Mi.INIT=Mi.KEY=Mi.DIGEST_LENGTH=Mi.BLOCK_SIZE=void 0;Mi.BLOCK_SIZE=64;Mi.DIGEST_LENGTH=32;Mi.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);Mi.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Mi.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1});var $C=Ai(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.RawSha256=void 0;var Di=xh(),JI=(function(){function e(){this.state=Int32Array.from(Di.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=i.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Di.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=i[t++],n--,this.bufferLength===Di.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var i=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%Di.BLOCK_SIZE>=Di.BLOCK_SIZE-8){for(var o=this.bufferLength;o<Di.BLOCK_SIZE;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<Di.BLOCK_SIZE-8;o++)t.setUint8(o,0);t.setUint32(Di.BLOCK_SIZE-8,Math.floor(i/4294967296),!0),t.setUint32(Di.BLOCK_SIZE-4,i),this.hashBuffer(),this.finished=!0}for(var r=new Uint8Array(Di.DIGEST_LENGTH),o=0;o<8;o++)r[o*4]=this.state[o]>>>24&255,r[o*4+1]=this.state[o]>>>16&255,r[o*4+2]=this.state[o]>>>8&255,r[o*4+3]=this.state[o]>>>0&255;return r},e.prototype.hashBuffer=function(){for(var i=this,t=i.buffer,n=i.state,o=n[0],r=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],m=n[7],v=0;v<Di.BLOCK_SIZE;v++){if(v<16)this.temp[v]=(t[v*4]&255)<<24|(t[v*4+1]&255)<<16|(t[v*4+2]&255)<<8|t[v*4+3]&255;else{var C=this.temp[v-2],_=(C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10;C=this.temp[v-15];var E=(C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3;this.temp[v]=(_+this.temp[v-7]|0)+(E+this.temp[v-16]|0)}var D=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&c^~l&u)|0)+(m+(Di.KEY[v]+this.temp[v]|0)|0)|0,P=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&r^o&a^r&a)|0;m=u,u=c,c=l,l=s+D|0,s=a,a=r,r=o,o=D+P|0}n[0]+=o,n[1]+=r,n[2]+=a,n[3]+=s,n[4]+=l,n[5]+=c,n[6]+=u,n[7]+=m},e})();td.RawSha256=JI});var qC,YC,KC=ul(()=>{qC=e=>{let i=[];for(let t=0,n=e.length;t<n;t++){let o=e.charCodeAt(t);if(o<128)i.push(o);else if(o<2048)i.push(o>>6|192,o&63|128);
1else if(t+1<e.length&&(o&64512)===55296&&(e.charCodeAt(t+1)&64512)===56320){let r=65536+((o&1023)<<10)+(e.charCodeAt(++t)&1023);i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else i.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(i)},YC=e=>{let i="";for(let t=0,n=e.length;t<n;t++){let o=e[t];if(o<128)i+=String.fromCharCode(o);else if(192<=o&&o<224){let r=e[++t];i+=String.fromCharCode((o&31)<<6|r&63)}else if(240<=o&&o<365){let a="%"+[o,e[++t],e[++t],e[++t]].map(s=>s.toString(16)).join("%");i+=decodeURIComponent(a)}else i+=String.fromCharCode((o&15)<<12|(e[++t]&63)<<6|e[++t]&63)}return i}});function QC(e){return new TextEncoder().encode(e)}function ZC(e){return new TextDecoder("utf-8").decode(e)}var JC=ul(()=>{});var XC={};hm(XC,{fromUtf8:()=>XI,toUtf8:()=>eM});var XI,eM,eb=ul(()=>{KC();JC();XI=e=>typeof TextEncoder=="function"?QC(e):qC(e),eM=e=>typeof TextDecoder=="function"?ZC(e):YC(e)});var tb=Ai(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.convertToBuffer=void 0;var tM=(eb(),mu(XC)),iM=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:tM.fromUtf8;function nM(e){return e instanceof Uint8Array?e:typeof e=="string"?iM(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}id.convertToBuffer=nM});var ib=Ai(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.isEmptyData=void 0;function oM(e){return typeof e=="string"?e.length===0:e.byteLength===0}nd.isEmptyData=oM});var nb=Ai(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.numToUint8=void 0;function rM(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}od.numToUint8=rM});var ob=Ai(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.uint32ArrayFrom=void 0;function aM(e){if(!Uint32Array.from){for(var i=new Uint32Array(e.length),t=0;t<e.length;)i[t]=e[t],t+=1;return i}return Uint32Array.from(e)}rd.uint32ArrayFrom=aM});var rb=Ai(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.uint32ArrayFrom=rn.numToUint8=rn.isEmptyData=rn.convertToBuffer=void 0;var sM=tb();Object.defineProperty(rn,"convertToBuffer",{enumerable:!0,get:function(){return sM.convertToBuffer}});var lM=ib();Object.defineProperty(rn,"isEmptyData",{enumerable:!0,get:function(){return lM.isEmptyData}});var cM=nb();Object.defineProperty(rn,"numToUint8",{enumerable:!0,get:function(){return cM.numToUint8}});var dM=ob();Object.defineProperty(rn,"uint32ArrayFrom",{enumerable:!0,get:function(){return dM.uint32ArrayFrom}})});var sb=Ai(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.Sha256=void 0;var ab=(wh(),mu(yh)),sd=xh(),ad=$C(),Sh=rb(),uM=(function(){function e(i){this.secret=i,this.hash=new ad.RawSha256,this.reset()}return e.prototype.update=function(i){if(!((0,Sh.isEmptyData)(i)||this.error))try{this.hash.update((0,Sh.convertToBuffer)(i))}catch(t){this.error=t}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return ab.__awaiter(this,void 0,void 0,function(){return ab.__generator(this,function(i){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new ad.RawSha256,this.secret){this.outer=new ad.RawSha256;var i=pM(this.secret),t=new Uint8Array(sd.BLOCK_SIZE);t.set(i);for(var n=0;n<sd.BLOCK_SIZE;n++)i[n]^=54,t[n]^=92;this.hash.update(i),this.outer.update(t);for(var n=0;n<i.byteLength;n++)i[n]=0}},e})();ld.Sha256=uM;function pM(e){var i=(0,Sh.convertToBuffer)(e);if(i.byteLength>sd.BLOCK_SIZE){var t=new ad.RawSha256;t.update(i),i=t.digest()}var n=new Uint8Array(sd.BLOCK_SIZE);return n.set(i),n}});var lb=Ai(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var hM=(wh(),mu(yh));hM.__exportStar(sb(),kh)});var be="primary",Ya=Symbol("RouteTitle"),Bu=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let t=this.params[i];return Array.isArray(t)?t[0]:t}return null}getAll(i){if(this.has(i)){let t=this.params[i];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Uo(e){return new Bu(e)}function rf(e,i,t){let n=t.path.split("/");if(n.length>e.length||t.pathMatch==="full"&&(i.hasChildren()||n.length<e.length))return null;let o={};for(let r=0;r<n.length;r++){let a=n[r],s=e[r];if(a[0]===":")o[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,n.length),posParams:o}}function e2(e,i){if(e.length!==i.length)return!1;for(let t=0;t<e.length;++t)if(!Qi(e[t],i[t]))return!1;return!0}function Qi(e,i){let t=e?Hu(e):void 0,n=i?Hu(i):void 0;if(!t||!n||t.length!=n.length)return!1;let o;for(let r=0;r<t.length;r++)if(o=t[r],!af(e[o],i[o]))return!1;return!0}function Hu(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function af(e,i){if(Array.isArray(e)&&Array.isArray(i)){if(e.length!==i.length)return!1;let t=[...e].sort(),n=[...i].sort();return t.every((o,r)=>
vendor: 33,280 bytes, line 1
1n[r]===o)}else return e===i}function sf(e){return e.length>0?e[e.length-1]:null}function Sn(e){return Cu(e)?e:_l(e)?At(Promise.resolve(e)):W(e)}var t2={exact:cf,subset:df},lf={exact:i2,subset:n2,ignored:()=>!0};function Zm(e,i,t){return t2[t.paths](e.root,i.root,t.matrixParams)&&lf[t.queryParams](e.queryParams,i.queryParams)&&!(t.fragment==="exact"&&e.fragment!==i.fragment)}function i2(e,i){return Qi(e,i)}function cf(e,i,t){if(!Ho(e.segments,i.segments)||!Pl(e.segments,i.segments,t)||e.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!e.children[n]||!cf(e.children[n],i.children[n],t))return!1;return!0}function n2(e,i){return Object.keys(i).length<=Object.keys(e).length&&Object.keys(i).every(t=>af(e[t],i[t]))}function df(e,i,t){return uf(e,i,i.segments,t)}function uf(e,i,t,n){if(e.segments.length>t.length){let o=e.segments.slice(0,t.length);return!(!Ho(o,t)||i.hasChildren()||!Pl(o,t,n))}else if(e.segments.length===t.length){if(!Ho(e.segments,t)||!Pl(e.segments,t,n))return!1;for(let o in i.children)if(!e.children[o]||!df(e.children[o],i.children[o],n))return!1;return!0}else{let o=t.slice(0,e.segments.length),r=t.slice(e.segments.length);return!Ho(e.segments,o)||!Pl(e.segments,o,n)||!e.children[be]?!1:uf(e.children[be],i,r,n)}}function Pl(e,i,t){return i.every((n,o)=>lf[t](e[o].parameters,n.parameters))}var Ji=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Ge([],{}),t={},n=null){this.root=i,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Uo(this.queryParams),this._queryParamMap}toString(){return a2.serialize(this)}},Ge=class{segments;children;parent=null;constructor(i,t){this.segments=i,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Rl(this)}},Zn=class{path;parameters;_parameterMap;constructor(i,t){this.path=i,this.parameters=t}get parameterMap(){return this._parameterMap??=Uo(this.parameters),this._parameterMap}toString(){return hf(this)}};function o2(e,i){return Ho(e,i)&&e.every((t,n)=>Qi(t.parameters,i[n].parameters))}function Ho(e,i){return e.length!==i.length?!1:e.every((t,n)=>t.path===i[n].path)}function r2(e,i){let t=[];return Object.entries(e.children).forEach(([n,o])=>{n===be&&(t=t.concat(i(o,n)))}),Object.entries(e.children).forEach(([n,o])=>{n!==be&&(t=t.concat(i(o,n)))}),t}var to=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:()=>new Jn,providedIn:"root"})}return e})(),Jn=class{parse(i){let t=new Uu(i);return new Ji(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(i){let t=`/${La(i.root,!0)}`,n=c2(i.queryParams),o=typeof i.fragment=="string"?`#${s2(i.fragment)}`:"";return`${t}${n}${o}`}},a2=new Jn;function Rl(e){return e.segments.map(i=>hf(i)).join("/")}function La(e,i){if(!e.hasChildren())return Rl(e);if(i){let t=e.children[be]?La(e.children[be],!1):"",n=[];return Object.entries(e.children).forEach(([o,r])=>{o!==be&&n.push(`${o}:${La(r,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=r2(e,(n,o)=>o===be?[La(e.children[be],!1)]:[`${o}:${La(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[be]!=null?`${Rl(e)}/${t[0]}`:`${Rl(e)}/(${t.join("//")})`}}function pf(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ml(e){return pf(e).replace(/%3B/gi,";")}function s2(e){return encodeURI(e)}function Gu(e){return pf(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fl(e){return decodeURIComponent(e)}function Jm(e){return Fl(e.replace(/\+/g,"%20"))}function hf(e){return`${Gu(e.path)}${l2(e.parameters)}`}function l2(e){return Object.entries(e).map(([i,t])=>`;${Gu(i)}=${Gu(t)}`).join("")}function c2(e){let i=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(o=>`${Ml(t)}=${Ml(o)}`).join("&"):`${Ml(t)}=${Ml(n)}`).filter(t=>t);return i.length?`?${i.join("&")}`:""}var d2=/^[^\/()?;#]+/;function Lu(e){let i=e.match(d2);return i?i[0]:""}var u2=/^[^\/()?;=#]+/;function p2(e){let i=e.match(u2);return i?i[0]:""}var h2=/^[^=?&#]+/;function g2(e){let i=e.match(h2);return i?i[0]:""}var m2=/^[^&#]+/;function f2(e){let i=e.match(m2);return i?i[0]:""}var Uu=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ge([],{}):new Ge([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(t).length>0)&&(n[be]=new Ge(i,t)),n}parseSegment(){let i=Lu(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new nt(4009,!1);return this.capture(i),new Zn(Fl(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let t=p2(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=Lu(this.remaining);o&&(n=o,this.capture(n))}i[Fl(t)]=Fl(n)}parseQueryParam(i){let t=g2(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let a=f2(this.remaining);a&&(n=a,this.capture(n))}let o=Jm(t),r=Jm(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Lu(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new nt(4010,!1);let r;n.indexOf(":")>-1?(r=n.slice(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=be);let a=this.parseChildren();t[r??be]=Object.keys(a).length===1&&a[be]?a[be]:new Ge([],a),this.consumeOptional("//")}return t}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new nt(4011,!1)}};function gf(e){return e.segments.length>0?new Ge([],{[be]:e}):e}function mf(e){let i={};for(let[n,o]of Object.entries(e.children)){let r=mf(o);if(n===be&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let t=new Ge(e.segments,i);return v2(t)}function v2(e){if(e.numberOfChildren===1&&e.children[be]){let i=e.children[be];return new Ge(e.segments.concat(i.segments),i.children)}return e}function Xn(e){return e instanceof Ji}function ff(e,i,t=null,n=null){let o=vf(e);return Cf(o,i,t,n)}function vf(e){let i;function t(r){let a={};for(let l of r.children){let c=t(l);a[l.outlet]=c}let s=new Ge(r.url,a);return r===e&&(i=s),s}let n=t(e.root),o=gf(n);return i??o}function Cf(e,i,t,n){let o=e;for(;o.parent;)o=o.parent;if(i.length===0)return Nu(o,o,o,t,n);let r=C2(i);if(r.toRoot())return Nu(o,o,new Ge([],{}),t,n);let a=b2(r,o,e),s=a.processChildren?Va(a.segmentGroup,a.index,r.commands):_f(a.segmentGroup,a.index,r.commands);return Nu(o,a.segmentGroup,s,t,n)}function Al(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ba(e){return typeof e=="object"&&e!=null&&e.outlets}function Nu(e,i,t,n,o){let r={};n&&Object.entries(n).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let a;e===i?a=t:a=bf(e,i,t);let s=gf(mf(a));return new Ji(s,r,o)}function bf(e,i,t){let n={};return Object.entries(e.children).forEach(([o,r])=>{r===i?n[o]=t:n[o]=bf(r,i,t)}),new Ge(e.segments,n)}var Ol=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,t,n){if(this.isAbsolute=i,this.numberOfDoubleDots=t,this.commands=n,i&&n.length>0&&Al(n[0]))throw new nt(4003,!1);let o=n.find(Ba);if(o&&o!==sf(n))throw new nt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function C2(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ol(!0,0,e);let i=0,t=!1,n=e.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?t=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Ol(t,i,n)}var kr=class{segmentGroup;processChildren;index;constructor(i,t,n){this.segmentGroup=i,this.processChildren=t,this.index=n}};function b2(e,i,t){if(e.isAbsolute)return new kr(i,!0,0);if(!t)return new kr(i,!1,NaN);if(t.parent===null)return new kr(t,!0,0);let n=Al(e.commands[0])?0:1,o=t.segments.length-1+n;return _2(t,o,e.numberOfDoubleDots)}function _2(e,i,t){let n=e,o=i,r=t;for(;r>o;){if(r-=o,n=n.parent,!n)throw new nt(4005,!1);o=n.segments.length}return new kr(n,!1,o-r)}function y2(e){return Ba(e[0])?e[0].outlets:{[be]:e}}function _f(e,i,t){if(e??=new Ge([],{}),e.segments.length===0&&e.hasChildren())return Va(e,i,t);let n=w2(e,i,t),o=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let r=new Ge(e.segments.slice(0,n.pathIndex),{});return r.children[be]=new Ge(e.segments.slice(n.pathIndex),e.children),Va(r,0,o)}else return n.match&&o.length===0?new Ge(e.segments,{}):n.match&&!e.hasChildren()?ju(e,i,t):n.match?Va(e,0,o):ju(e,i,t)}function Va(e,i,t){if(t.length===0)return new Ge(e.segments,{});{let n=y2(t),o={};if(Object.keys(n).some(r=>r!==be)&&e.children[be]&&e.numberOfChildren===1&&e.children[be].segments.length===0){let r=Va(e.children[be],i,t);return new Ge(e.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=_f(e.children[r],i,a))}),Object.entries(e.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Ge(e.segments,o)}}function w2(e,i,t){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(n>=t.length)return r;let a=e.segments[o],s=t[n];if(Ba(s))break;let l=`${s}`,c=n<t.length-1?t[n+1]:null;if(o>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!ef(l,c,a))return r;n+=2}else{if(!ef(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function ju(e,i,t){let n=e.segments.slice(0,i),o=0;for(;o<t.length;){let r=t[o];if(Ba(r)){let l=x2(r.outlets);return new Ge(n,l)}if(o===0&&Al(t[0])){let l=e.segments[i];n.push(new Zn(l.path,Xm(t[0]))),o++;continue}let a=Ba(r)?r.outlets[be]:`${r}`,s=o<t.length-1?t[o+1]:null;a&&s&&Al(s)?(n.push(new Zn(a,Xm(s))),o+=2):(n.push(new Zn(a,{})),o++)}return new Ge(n,{})}function x2(e){let i={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(i[t]=ju(new Ge([],{}),0,n))}),i}function Xm(e){let i={};return Object.entries(e).forEach(([t,n])=>i[t]=`${n}`),i}function ef(e,i,t){return e==t.path&&Qi(i,t.parameters)}var Er="imperative",Dt=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(Dt||{}),wi=class{id;url;constructor(i,t){this.id=i,this.url=t}},eo=class extends wi{type=Dt.NavigationStart;navigationTrigger;restoredState;constructor(i,t,n="imperative",o=null){super(i,t),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yt=class extends wi{urlAfterRedirects;type=Dt.NavigationEnd;constructor(i,t,n){super(i,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ii=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(ii||{}),Ir=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ir||{}),Zi=class extends wi{reason;code;type=Dt.NavigationCancel;constructor(i,t,n,o){super(i,t),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Xi=class extends wi{reason;code;type=Dt.NavigationSkipped;constructor(i,t,n,o){super(i,t),this.reason=n,this.code=o}},Mr=class extends wi{error;target;type=Dt.NavigationError;constructor(i,t,n,o){super(i,t),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ha=class extends wi{urlAfterRedirects;state;type=Dt.RoutesRecognized;constructor(i,t,n,o){super(i,t),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ll=class extends wi{urlAfterRedirects;state;type=Dt.GuardsCheckStart;constructor(i,t,n,o){super(i,t),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nl=class extends wi{urlAfterRedirects;state;shouldActivate;type=Dt.GuardsCheckEnd;constructor(i,t,n,o,r){super(i,t),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vl=class extends wi{urlAfterRedirects;state;type=Dt.ResolveStart;constructor(i,t,n,o){super(i,t),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zl=class extends wi{urlAfterRedirects;state;type=Dt.ResolveEnd;constructor(i,t,n,o){super(i,t),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bl=class{route;type=Dt.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Hl=class{route;type=Dt.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Gl=class{snapshot;type=Dt.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ul=class{snapshot;type=Dt.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jl=class{snapshot;type=Dt.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wl=class{snapshot;type=Dt.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jo=class{routerEvent;position;anchor;type=Dt.Scroll;constructor(i,t,n){this.routerEvent=i,this.position=t,this.anchor=n}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Ga=class{},Dr=class{url;navigationBehaviorOptions;constructor(i,t){this.url=i,this.navigationBehaviorOptions=t}};function S2(e){return!(e instanceof Ga)&&!(e instanceof Dr)}function k2(e,i){return e.providers&&!e._injector&&(e._injector=bl(e.providers,i,`Route: ${e.path}`)),e._injector??i}function Oi(e){return e.outlet||be}function E2(e,i){let t=e.filter(n=>Oi(n)===i);return t.push(...e.filter(n=>Oi(n)!==i)),t}function Fr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let i=e.parent;i;i=i.parent){let t=i.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var $l=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Fr(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new Wo(this.rootInjector)}},Wo=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let o=this.getOrCreateContext(t);o.outlet=n,this.contexts.set(t,o)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new $l(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(U(No))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ql=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let t=this.pathFromRoot(i);return t.length>1?t[t.length-2]:null}children(i){let t=Wu(i,this._root);return t?t.children.map(n=>n.value):[]}firstChild(i){let t=Wu(i,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(i){let t=$u(i,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return $u(i,this._root).map(t=>t.value)}};function Wu(e,i){if(e===i.value)return i;for(let t of i.children){let n=Wu(e,t);if(n)return n}return null}function $u(e,i){if(e===i.value)return[i];for(let t of i.children){let n=$u(e,t);if(n.length)return n.unshift(i),n}return[]}var yi=class{value;children;constructor(i,t){this.value=i,this.children=t}toString(){return`TreeNode(${this.value})`}};function Sr(e){let i={};return e&&e.children.forEach(t=>i[t.value.outlet]=t),i}var Ua=class extends ql{snapshot;constructor(i,t){super(i),this.snapshot=t,ep(this,i)}toString(){return this.snapshot.toString()}};function yf(e){let i=T2(e),t=new Fe([new Zn("",{})]),n=new Fe({}),o=new Fe({}),r=new Fe({}),a=new Fe(""),s=new Lt(t,n,r,a,o,be,e,i.root);return s.snapshot=i.root,new Ua(new yi(s,[]),i)}function T2(e){let i={},t={},n={},r=new Go([],i,n,"",t,be,e,null,{});return new ja("",new yi(r,[]))}var Lt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,t,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(G(c=>c[Ya]))??W(void 0),this.url=i,this.params=t,this.queryParams=n,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(G(i=>Uo(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(G(i=>Uo(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yl(e,i,t="emptyOnly"){let n,{routeConfig:o}=e;return i!==null&&(t==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:M(M({},i.params),e.params),data:M(M({},i.data),e.data),resolve:M(M(M(M({},e.data),i.data),o?.data),e._resolvedData)}:n={params:M({},e.params),data:M({},e.data),resolve:M(M({},e.data),e._resolvedData??{})},o&&xf(o)&&(n.resolve[Ya]=o.title),n}var Go=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ya]}constructor(i,t,n,o,r,a,s,l,c){this.url=i,this.params=t,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Uo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Uo(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${t}')`}},ja=class extends ql{url;constructor(i,t){super(t),this.url=i,ep(this,t)}toString(){return wf(this._root)}};function ep(e,i){i.value._routerState=e,i.children.forEach(t=>ep(e,t))}function wf(e){let i=e.children.length>0?` { ${e.children.map(wf).join(", ")} } `:"";return`${e.value}${i}`}function Vu(e){if(e.snapshot){let i=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Qi(i.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),i.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Qi(i.params,t.params)||e.paramsSubject.next(t.params),e2(i.url,t.url)||e.urlSubject.next(t.url),Qi(i.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function qu(e,i){let t=Qi(e.params,i.params)&&o2(e.url,i.url),n=!e.parent!=!i.parent;return t&&!n&&(!e.parent||qu(e.parent,i.parent))}function xf(e){return typeof e.title=="string"||e.title===null}var Sf=new Me(""),Ka=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=be;activateEvents=new se;deactivateEvents=new se;attachEvents=new se;detachEvents=new se;routerOutletData=xe();parentContexts=F(Wo);location=F(Vo);changeDetector=F(_i);inputBinder=F(Qa,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:o}=t.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new nt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new nt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new nt(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new nt(4013,!1);this._activatedRoute=t;let o=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new Yu(t,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ce({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[qe]})}return e})(),Yu=class{route;childContexts;parent;outletData;constructor(i,t,n,o){this.route=i,this.childContexts=t,this.parent=n,this.outletData=o}get(i,t){return i===Lt?this.route:i===Wo?this.childContexts:i===Sf?this.outletData:this.parent.get(i,t)}},Qa=new Me(""),tp=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,o=pl([n.queryParams,n.params,n.data]).pipe(it(([r,a,s],l)=>(s=M(M(M({},r),a),s),l===0?W(s):Promise.resolve(s)))).subscribe(r=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let a=Gm(n.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:s}of a.inputs)t.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(t,o)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),ip=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=N({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&x(0,"router-outlet")},dependencies:[Ka],encapsulation:2})}return e})();function np(e){let i=e.children&&e.children.map(np),t=i?ae(M({},e),{children:i}):M({},e);return!t.component&&!t.loadComponent&&(i||t.loadChildren)&&t.outlet&&t.outlet!==be&&(t.component=ip),t}function I2(e,i,t){let n=Wa(e,i._root,t?t._root:void 0);return new Ua(n,i)}function Wa(e,i,t){if(t&&e.shouldReuseRoute(i.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=i.value;let o=M2(e,i,t);return new yi(n,o)}else{if(e.shouldAttach(i.value)){let r=e.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>Wa(e,s)),a}}let n=D2(i.value),o=i.children.map(r=>Wa(e,r));return new yi(n,o)}}function M2(e,i,t){return i.children.map(n=>{for(let o of t.children)if(e.shouldReuseRoute(n.value,o.value.snapshot))return Wa(e,n,o);return Wa(e,n)})}function D2(e){return new Lt(new Fe(e.url),new Fe(e.params),new Fe(e.queryParams),new Fe(e.fragment),new Fe(e.data),e.outlet,e.component,e)}var Pr=class{redirectTo;navigationBehaviorOptions;constructor(i,t){this.redirectTo=i,this.navigationBehaviorOptions=t}},kf="ngNavigationCancelingError";function Kl(e,i){let{redirectTo:t,navigationBehaviorOptions:n}=Xn(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=Ef(!1,ii.Redirect);return o.url=t,o.navigationBehaviorOptions=n,o}function Ef(e,i){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[kf]=!0,t.cancellationCode=i,t}function P2(e){return Tf(e)&&Xn(e.url)}function Tf(e){return!!e&&e[kf]}var R2=(e,i,t,n)=>G(o=>(new Ku(i,o.targetRouterState,o.currentRouterState,t,n).activate(e),o)),Ku=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,t,n,o,r){this.routeReuseStrategy=i,this.futureState=t,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,i),Vu(this.futureState.root),this.activateChildRoutes(t,n,i)}deactivateChildRoutes(i,t,n){let o=Sr(t);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,t,n){let o=i.value,r=t?t.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,t,a.children)}else this.deactivateChildRoutes(i,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(i,t){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,t):this.deactivateRouteAndOutlet(i,t)}detachAndStoreRouteSubtree(i,t){let n=t.getContext(i.value.outlet),o=n&&i.value.component?n.children:t,r=Sr(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,t){let n=t.getContext(i.value.outlet),o=n&&i.value.component?n.children:t,r=Sr(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,t,n){let o=Sr(t);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Wl(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Ul(i.value.snapshot))}activateRoutes(i,t,n){let o=i.value,r=t?t.value:null;if(Vu(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,t,a.children)}else this.activateChildRoutes(i,t,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Vu(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Ql=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Tr=class{component;route;constructor(i,t){this.component=i,this.route=t}};function F2(e,i,t){let n=e._root,o=i?i._root:null;return Na(n,o,t,[n.value])}function A2(e){let i=e.routeConfig?e.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:e,guards:i}}function Ar(e,i){let t=Symbol(),n=i.get(e,t);return n===t?typeof e=="function"&&!km(e)?e:i.get(e):n}function Na(e,i,t,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Sr(i);return e.children.forEach(a=>{O2(a,r[a.value.outlet],t,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>za(s,t.getContext(a),o)),o}function O2(e,i,t,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=e.value,a=i?i.value:null,s=t?t.getContext(e.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=L2(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Ql(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Na(e,i,s?s.children:null,n,o):Na(e,i,t,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Tr(s.outlet.component,a))}else a&&za(i,s,o),o.canActivateChecks.push(new Ql(n)),r.component?Na(e,null,s?s.children:null,n,o):Na(e,null,t,n,o);return o}function L2(e,i,t){if(typeof t=="function")return t(e,i);switch(t){case"pathParamsChange":return!Ho(e.url,i.url);case"pathParamsOrQueryParamsChange":return!Ho(e.url,i.url)||!Qi(e.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qu(e,i)||!Qi(e.queryParams,i.queryParams);case"paramsChange":default:return!qu(e,i)}}function za(e,i,t){let n=Sr(e),o=e.value;Object.entries(n).forEach(([r,a])=>{o.component?i?za(a,i.children.getContext(r),t):za(a,null,t):za(a,i,t)}),o.component?i&&i.outlet&&i.outlet.isActivated?t.canDeactivateChecks.push(new Tr(i.outlet.component,o)):t.canDeactivateChecks.push(new Tr(null,o)):t.canDeactivateChecks.push(new Tr(null,o))}function Za(e){return typeof e=="function"}function N2(e){return typeof e=="boolean"}function V2(e){return e&&Za(e.canLoad)}function z2(e){return e&&Za(e.canActivate)}function B2(e){return e&&Za(e.canActivateChild)}function H2(e){return e&&Za(e.canDeactivate)}function G2(e){return e&&Za(e.canMatch)}function If(e){return e instanceof fm||e?.name==="EmptyError"}var Dl=Symbol("INITIAL_VALUE");function Rr(){return it(e=>pl(e.map(i=>
1i.pipe(Ot(1),gl(Dl)))).pipe(G(i=>{for(let t of i)if(t!==!0){if(t===Dl)return Dl;if(t===!1||U2(t))return t}return!0}),Ci(i=>i!==Dl),Ot(1)))}function U2(e){return Xn(e)||e instanceof Pr}function j2(e,i){return wt(t=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=t;return a.length===0&&r.length===0?W(ae(M({},t),{guardsResult:!0})):W2(a,n,o,e).pipe(wt(s=>s&&N2(s)?$2(n,r,e,i):W(s)),G(s=>ae(M({},t),{guardsResult:s})))})}function W2(e,i,t,n){return At(e).pipe(wt(o=>Z2(o.component,o.route,t,i,n)),jn(o=>o!==!0,!0))}function $2(e,i,t,n){return At(i).pipe(Oo(o=>vm(Y2(o.route.parent,n),q2(o.route,n),Q2(e,o.path,t),K2(e,o.route,t))),jn(o=>o!==!0,!0))}function q2(e,i){return e!==null&&i&&i(new jl(e)),W(!0)}function Y2(e,i){return e!==null&&i&&i(new Gl(e)),W(!0)}function K2(e,i,t){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return W(!0);let o=n.map(r=>br(()=>{let a=Fr(i)??t,s=Ar(r,a),l=z2(s)?s.canActivate(i,e):Ti(a,()=>s(i,e));return Sn(l).pipe(jn())}));return W(o).pipe(Rr())}function Q2(e,i,t){let n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(a=>A2(a)).filter(a=>a!==null).map(a=>br(()=>{let s=a.guards.map(l=>{let c=Fr(a.node)??t,u=Ar(l,c),m=B2(u)?u.canActivateChild(n,e):Ti(c,()=>u(n,e));return Sn(m).pipe(jn())});return W(s).pipe(Rr())}));return W(r).pipe(Rr())}function Z2(e,i,t,n,o){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return W(!0);let a=r.map(s=>{let l=Fr(i)??o,c=Ar(s,l),u=H2(c)?c.canDeactivate(e,i,t,n):Ti(l,()=>c(e,i,t,n));return Sn(u).pipe(jn())});return W(a).pipe(Rr())}function J2(e,i,t,n){let o=i.canLoad;if(o===void 0||o.length===0)return W(!0);let r=o.map(a=>{let s=Ar(a,e),l=V2(s)?s.canLoad(i,t):Ti(e,()=>s(i,t));return Sn(l)});return W(r).pipe(Rr(),Mf(n))}function Mf(e){return mm(xt(i=>{if(typeof i!="boolean")throw Kl(e,i)}),G(i=>i===!0))}function X2(e,i,t,n){let o=i.canMatch;if(!o||o.length===0)return W(!0);let r=o.map(a=>{let s=Ar(a,e),l=G2(s)?s.canMatch(i,t):Ti(e,()=>s(i,t));return Sn(l)});return W(r).pipe(Rr(),Mf(n))}var $a=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},qa=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function xr(e){return yt(new $a(e))}function eS(e){return yt(new nt(4e3,!1))}function tS(e){return yt(Ef(!1,ii.GuardRejected))}var Qu=class{urlSerializer;urlTree;constructor(i,t){this.urlSerializer=i,this.urlTree=t}lineralizeSegments(i,t){let n=[],o=t.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return W(n);if(o.numberOfChildren>1||!o.children[be])return eS(`${i.redirectTo}`);o=o.children[be]}}applyRedirectCommands(i,t,n,o,r){return iS(t,o,r).pipe(G(a=>{if(a instanceof Ji)throw new qa(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new qa(s);return s}))}applyRedirectCreateUrlTree(i,t,n,o){let r=this.createSegmentGroup(i,t.root,n,o);return new Ji(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(i,t){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=t[s]}else n[o]=r}),n}createSegmentGroup(i,t,n,o){let r=this.createSegments(i,t.segments,n,o),a={};return Object.entries(t.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new Ge(r,a)}createSegments(i,t,n,o){return t.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,t,n){let o=n[t.path.substring(1)];if(!o)throw new nt(4001,!1);return o}findOrReturn(i,t){let n=0;for(let o of t){if(o.path===i.path)return t.splice(n),o;n++}return i}};function iS(e,i,t){if(typeof e=="string")return W(e);let n=e,{queryParams:o,fragment:r,routeConfig:a,url:s,outlet:l,params:c,data:u,title:m}=i;return Sn(Ti(t,()=>n({params:c,data:u,queryParams:o,fragment:r,routeConfig:a,url:s,outlet:l,title:m})))}var Zu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function nS(e,i,t,n,o){let r=Df(e,i,t);return r.matched?(n=k2(i,n),X2(n,i,t,o).pipe(G(a=>a===!0?r:M({},Zu)))):W(r)}function Df(e,i,t){if(i.path==="**")return oS(t);if(i.path==="")return i.pathMatch==="full"&&(e.hasChildren()||t.length>0)?M({},Zu):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let o=(i.matcher||rf)(t,e,i);if(!o)return M({},Zu);let r={};Object.entries(o.posParams??{}
1).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?M(M({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function oS(e){return{matched:!0,parameters:e.length>0?sf(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function tf(e,i,t,n){return t.length>0&&sS(e,t,n)?{segmentGroup:new Ge(i,aS(n,new Ge(t,e.children))),slicedSegments:[]}:t.length===0&&lS(e,t,n)?{segmentGroup:new Ge(e.segments,rS(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new Ge(e.segments,e.children),slicedSegments:t}}function rS(e,i,t,n){let o={};for(let r of t)if(Jl(e,i,r)&&!n[Oi(r)]){let a=new Ge([],{});o[Oi(r)]=a}return M(M({},n),o)}function aS(e,i){let t={};t[be]=i;for(let n of e)if(n.path===""&&Oi(n)!==be){let o=new Ge([],{});t[Oi(n)]=o}return t}function sS(e,i,t){return t.some(n=>Jl(e,i,n)&&Oi(n)!==be)}function lS(e,i,t){return t.some(n=>Jl(e,i,n))}function Jl(e,i,t){return(e.hasChildren()||i.length>0)&&t.pathMatch==="full"?!1:t.path===""}function cS(e,i,t){return i.length===0&&!e.children[t]}var Ju=class{};function dS(e,i,t,n,o,r,a="emptyOnly"){return new Xu(e,i,t,n,o,a,r).recognize()}var uS=31,Xu=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,t,n,o,r,a,s){this.injector=i,this.configLoader=t,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new Qu(this.urlSerializer,this.urlTree)}noMatchError(i){return new nt(4002,`'${i.segmentGroup}'`)}recognize(){let i=tf(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(G(({children:t,rootSnapshot:n})=>{let o=new yi(n,t),r=new ja("",o),a=ff(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}}))}match(i){let t=new Go([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),be,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,be,t).pipe(G(n=>({children:n,rootSnapshot:t})),ye(n=>{if(n instanceof qa)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof $a?this.noMatchError(n):n}))}processSegmentGroup(i,t,n,o,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,t,n,r):this.processSegment(i,t,n,n.segments,o,!0,r).pipe(G(a=>a instanceof yi?[a]:[]))}processChildren(i,t,n,o){let r=[];for(let a of Object.keys(n.children))a==="primary"?r.unshift(a):r.push(a);return At(r).pipe(Oo(a=>{let s=n.children[a],l=E2(t,a);return this.processSegmentGroup(i,l,s,a,o)}),_m((a,s)=>(a.push(...s),a)),_u(null),bm(),wt(a=>{if(a===null)return xr(n);let s=Pf(a);return pS(s),W(s)}))}processSegment(i,t,n,o,r,a,s){return At(t).pipe(Oo(l=>this.processSegmentAgainstRoute(l._injector??i,t,l,n,o,r,a,s).pipe(ye(c=>{if(c instanceof $a)return W(null);throw c}))),jn(l=>!!l),ye(l=>{if(If(l))return cS(n,o,r)?W(new Ju):xr(n);throw l}))}processSegmentAgainstRoute(i,t,n,o,r,a,s,l){return Oi(n)!==a&&(a===be||!Jl(o,r,n))?xr(o):n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,o,n,r,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(i,o,t,n,r,a,l):xr(o)}expandSegmentAgainstRouteUsingRedirect(i,t,n,o,r,a,s){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:m,remainingSegments:v}=Df(t,o,r);if(!l)return xr(t);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>uS&&(this.allowRedirects=!1));let C=new Go(r,c,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,nf(o),Oi(o),o.component??o._loadedComponent??null,o,of(o)),_=Yl(C,s,this.paramsInheritanceStrategy);return C.params=Object.freeze(_.params),C.data=Object.freeze(_.data),this.applyRedirects.applyRedirectCommands(u,o.redirectTo,m,C,i).pipe(it(D=>this.applyRedirects.lineralizeSegments(o,D)),wt(D=>this.processSegment(i,n,t,D.concat(v),a,!1,s)))}matchSegmentAgainstRoute(i,t,n,o,r,a){let s=nS(t,n,o,i,this.urlSerializer);return n.path==="**"&&(t.children={}),s.pipe(it(l=>l.matched?(i=n._injector??i,this.getChildConfig(i,n,o).pipe(it(({routes:c})=>{let u=n._loadedInjector??i,{parameters:m,consumedSegments:v,remainingSegments:C}=l,_=new Go(v,m,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,nf(n),Oi(n),n.component??n._loadedComponent??null,n,of(n)),E=Yl(_,a,this.paramsInheritanceStrategy);_.params=Object.freeze(E.params),_.data=Object.freeze(E.data);let{segmentGroup:D,slicedSegments:P}=tf(t,v,C,c);if(P.length===0&&D.hasChildren())return this.processChildren(u,c,D,_).pipe(G(O=>new yi(_,O)));if(c.length===0&&P.length===0)return W(new yi(_,[]));let T=Oi(n)===r;return this.processSegment(u,c,D,P,T?be:r,!0,_).pipe(G(O=>new yi(_,O instanceof yi?[O]:[])))}))):xr(t)))}getChildConfig(i,t,n){return t.children?W({routes:t.children,injector:i}):t.loadChildren?t._loadedRoutes!==void 0?W({routes:t._loadedRoutes,injector:t._loadedInjector}):J2(i,t,n,this.urlSerializer).pipe(wt(o=>o?this.configLoader.loadChildren(i,t).pipe(xt(r=>{t._loadedRoutes=r.routes,t._loadedInjector=r.injector})):tS(t))):W({routes:[],injector:i})}};function pS(e){e.sort((i,t)=>i.value.outlet===be?-1:t.value.outlet===be?1:i.value.outlet.localeCompare(t.value.outlet))}function hS(e){let i=e.value.routeConfig;return i&&i.path===""}function Pf(e){let i=[],t=new Set;for(let n of e){if(!hS(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),t.add(o)):i.push(n)}for(let n of t){let o=Pf(n.children);i.push(new yi(n.value,o))}return i.filter(n=>!t.has(n))}function nf(e){return e.data||{}}function of(e){return e.resolve||{}}function gS(e,i,t,n,o,r){return wt(a=>dS(e,i,t,n,a.extractedUrl,o,r).pipe(G(({state:s,tree:l})=>ae(M({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function mS(e,i){return wt(t=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=t;if(!o.length)return W(t);let r=new Set(o.map(l=>l.route)),a=new Set;for(let l of r)if(!a.has(l))for(let c of Rf(l))a.add(c);let s=0;return At(a).pipe(Oo(l=>r.has(l)?fS(l,n,e,i):(l.data=Yl(l,l.parent,e).resolve,W(void 0))),xt(()=>s++),yu(1),wt(l=>s===a.size?W(t):vn))})}function Rf(e){let i=e.children.map(t=>Rf(t)).flat();return[e,...i]}function fS(e,i,t,n){let o=e.routeConfig,r=e._resolve;return o?.title!==void 0&&!xf(o)&&(r[Ya]=o.title),br(()=>(e.data=Yl(e,e.parent,t).resolve,vS(r,e,i,n).pipe(G(a=>(e._resolvedData=a,e.data=M(M({},e.data),a),null)))))}function vS(e,i,t,n){let o=Hu(e);if(o.length===0)return W({});let r={};return At(o).pipe(wt(a=>CS(e[a],i,t,n).pipe(jn(),xt(s=>{if(s instanceof Pr)throw Kl(new Jn,s);r[a]=s}))),yu(1),G(()=>r),ye(a=>If(a)?vn:yt(a)))}function CS(e,i,t,n){let o=Fr(i)??n,r=Ar(e,o),a=r.resolve?r.resolve(i,t):Ti(o,()=>r(i,t));return Sn(a)}function zu(e){return it(i=>{let t=e(i);return t?At(t).pipe(G(()=>i)):W(i)})}var op=(()=>{class e{buildTitle(t){let n,o=t.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===be);return n}getResolvedTitleForRoute(t){return t.data[Ya]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:()=>F(Ff),providedIn:"root"})}return e})(),Ff=(()=>{class e extends op{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(U(Tl))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kn=new Me("",{providedIn:"root",factory:()=>({})}),$o=new Me(""),Xl=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=F(Bm);loadComponent(t,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return W(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Sn(Ti(t,()=>n.loadComponent())).pipe(G(Of),it(Lf),xt(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),Lo(()=>{this.componentLoaders.delete(n)})),r=new vu(o,()=>new _t).pipe(fu());return this.componentLoaders.set(n,r),r}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return W({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let r=Af(n,this.compiler,t,this.onLoadEndListener).pipe(Lo(()=>{this.childrenLoaders.delete(n)})),a=new vu(r,()=>new _t).pipe(fu());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Af(e,i,t,n){return Sn(Ti(t,()=>e.loadChildren())).pipe(G(Of),it(Lf),wt(o=>o instanceof Fm||Array.isArray(o)?W(o):At(i.compileModuleAsync(o))),G(o=>{n&&n(e);let r,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(r=o.create(t).injector,a=r.get($o,[],{optional:!0,self:!0}).flat()),{routes:a.map(np),injector:r}}))}function bS(e){return e&&typeof e=="object"&&"default"in e}function Of(e){return bS(e)?e.default:e}function Lf(e){return W(e)}var ec=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:()=>F(_S),providedIn:"root"})}return e})(),_S=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rp=new Me(""),ap=new Me("");function Nf(e,i,t){let n=e.get(ap),o=e.get(Ze);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let r,a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),yS(e)));s.ready.catch(c=>{});let{onViewTransitionCreated:l}=n;return l&&Ti(e,()=>l({transition:s,from:i,to:t})),a}function yS(e){return new Promise(i=>{Cl({read:()=>setTimeout(i)},{injector:e})})}var sp=new Me(""),Ja=(()=>{class e{currentNavigation=Ae(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new _t;
vendor: 22,709 bytes, line 1
1transitionAbortWithErrorSubject=new _t;configLoader=F(Xl);environmentInjector=F(No);destroyRef=F($n);urlSerializer=F(to);rootContexts=F(Wo);location=F(Yn);inputBindingEnabled=F(Qa,{optional:!0})!==null;titleStrategy=F(op);options=F(kn,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=F(ec);createViewTransition=F(rp,{optional:!0});navigationErrorHandler=F(sp,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>W(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=o=>this.events.next(new Bl(o)),n=o=>this.events.next(new Hl(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;pt(()=>{this.transitions?.next(ae(M({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:n}))})}setupNavigations(t){return this.transitions=new Fe(null),this.transitions.pipe(Ci(n=>n!==null),it(n=>{let o=!1;return W(n).pipe(it(r=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",ii.SupersededByNewNavigation),vn;this.currentTransition=n,this.currentNavigation.set({id:r.id,initialUrl:r.rawUrl,extractedUrl:r.extractedUrl,targetBrowserUrl:typeof r.extras.browserUrl=="string"?this.urlSerializer.parse(r.extras.browserUrl):r.extras.browserUrl,trigger:r.source,extras:r.extras,previousNavigation:this.lastSuccessfulNavigation?ae(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>r.abortController.abort()});let a=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=r.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new Xi(r.id,this.urlSerializer.serialize(r.rawUrl),"",Ir.IgnoredSameUrlNavigation)),r.resolve(!1),vn;if(this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return W(r).pipe(it(l=>(this.events.next(new eo(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?vn:Promise.resolve(l))),gS(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),xt(l=>{n.targetSnapshot=l.targetSnapshot,n.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=l.urlAfterRedirects,u));let c=new Ha(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(r.currentRawUrl)){let{id:l,extractedUrl:c,source:u,restoredState:m,extras:v}=r,C=new eo(l,this.urlSerializer.serialize(c),u,m);this.events.next(C);let _=yf(this.rootComponentType).snapshot;return this.currentTransition=n=ae(M({},r),{targetSnapshot:_,urlAfterRedirects:c,extras:ae(M({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(E=>(E.finalUrl=c,E)),W(n)}else return this.events.next(new Xi(r.id,this.urlSerializer.serialize(r.extractedUrl),"",Ir.IgnoredByUrlHandlingStrategy)),r.resolve(!1),vn}),xt(r=>{let a=new Ll(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(a)}),G(r=>(this.currentTransition=n=ae(M({},r),{guards:F2(r.targetSnapshot,r.currentSnapshot,this.rootContexts)}),n)),j2(this.environmentInjector,r=>this.events.next(r)),xt(r=>{if(n.guardsResult=r.guardsResult,r.guardsResult&&typeof r.guardsResult!="boolean")throw Kl(this.urlSerializer,r.guardsResult);let a=new Nl(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot,!!r.guardsResult);this.events.next(a)}),Ci(r=>r.guardsResult?!0:(this.cancelNavigationTransition(r,"",ii.GuardRejected),!1)),zu(r=>{if(r.guards.canActivateChecks.length!==0)return W(r).pipe(xt(a=>{let s=new Vl(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),it(a=>{let s=!1;return W(a).pipe(mS(this.paramsInheritanceStrategy,this.environmentInjector),xt({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",ii.NoDataFromResolver)}}))}),xt(a=>{let s=new zl(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),zu(r=>{let a=s=>{let l=[];if(s.routeConfig?.loadComponent){let c=Fr(s)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,s.routeConfig).pipe(xt(u=>{s.component=u}),G(()=>{})))}for(let c of s.children)l.push(...a(c));return l};return pl(a(r.targetSnapshot.root)).pipe(_u(null),Ot(1))}),zu(()=>this.afterPreactivation()),it(()=>{let{currentSnapshot:r,targetSnapshot:a}=n,s=this.createViewTransition?.(this.environmentInjector,r.root,a.root);return s?At(s).pipe(G(()=>n)):W(n)}),G(r=>{let a=I2(t.routeReuseStrategy,r.targetSnapshot,r.currentRouterState);return this.currentTransition=n=ae(M({},r),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),n}),xt(()=>{this.events.next(new Ga)}),R2(this.rootContexts,t.routeReuseStrategy,r=>this.events.next(r),this.inputBindingEnabled),Ot(1),Wn(new Ea(r=>{let a=n.abortController.signal,s=()=>r.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(Ci(()=>!o&&!n.targetRouterState),xt(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",ii.Aborted)}))),xt({next:r=>{o=!0,this.lastSuccessfulNavigation=pt(this.currentNavigation),this.events.next(new Yt(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects))),this.titleStrategy?.updateTitle(r.targetRouterState.snapshot),r.resolve(!0)},complete:()=>{o=!0}}),Wn(this.transitionAbortWithErrorSubject.pipe(xt(r=>{throw r}))),Lo(()=>{o||this.cancelNavigationTransition(n,"",ii.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ye(r=>{if(this.destroyed)return n.resolve(!1),vn;if(o=!0,Tf(r))this.events.next(new Zi(n.id,this.urlSerializer.serialize(n.extractedUrl),r.message,r.cancellationCode)),P2(r)?this.events.next(new Dr(r.url,r.navigationBehaviorOptions)):n.resolve(!1);else{let a=new Mr(n.id,this.urlSerializer.serialize(n.extractedUrl),r,n.targetSnapshot??void 0);try{let s=Ti(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof Pr){let{message:l,cancellationCode:c}=Kl(this.urlSerializer,s);this.events.next(new Zi(n.id,this.urlSerializer.serialize(n.extractedUrl),l,c)),this.events.next(new Dr(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),r}catch(s){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(s)}}return vn}))}))}cancelNavigationTransition(t,n,o){let r=new Zi(t.id,this.urlSerializer.serialize(t.extractedUrl),n,o);this.events.next(r),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=pt(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wS(e){return e!==Er}var Vf=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:()=>F(xS),providedIn:"root"})}return e})(),Zl=class{shouldDetach(i){return!1}store(i,t){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,t){return i.routeConfig===t.routeConfig}},xS=(()=>{class e extends Zl{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zf=(()=>{class e{urlSerializer=F(to);options=F(kn,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=F(Yn);urlHandlingStrategy=F(ec);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Ji;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:o}){let r=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,a=o??r;return a instanceof Ji?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:o}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=t):this.rawUrlTree=o}routerState=yf(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:()=>F(SS),providedIn:"root"})}return e})(),SS=(()=>{class e extends zf{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate")})})}handleRouterEvent(t,n){t instanceof eo?this.updateStateMemento():t instanceof Xi?this.commitTransition(n):t instanceof Ha?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof Ga?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof Zi&&t.code!==ii.SupersededByNewNavigation&&t.code!==ii.Redirect?this.restoreHistory(n):t instanceof Mr?this.restoreHistory(n,!0):t instanceof Yt&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:n,id:o}){let{replaceUrl:r,state:a}=n;if(this.location.isCurrentPathEqualTo(t)||r){let s=this.browserPageId,l=M(M({},a),this.generateNgRouterState(o,s));this.location.replaceState(t,"",l)}else{let s=M(M({},a),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(t,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===t.finalUrl&&r===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function tc(e,i){e.events.pipe(Ci(t=>t instanceof Yt||t instanceof Zi||t instanceof Mr||t instanceof Xi),G(t=>t instanceof Yt||t instanceof Xi?0:(t instanceof Zi?t.code===ii.Redirect||t.code===ii.SupersededByNewNavigation:!1)?2:1),Ci(t=>t!==2),Ot(1)).subscribe(()=>{i()})}var kS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ES={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},rt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=F(Am);stateManager=F(zf);options=F(kn,{optional:!0})||{};pendingTasks=F(Tm);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=F(Ja);urlSerializer=F(to);location=F(Yn);urlHandlingStrategy=F(ec);injector=F(No);_events=new _t;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=F(Vf);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=F($o,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!F(Qa,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new gm;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=pt(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Zi&&n.code!==ii.Redirect&&n.code!==ii.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Yt)this.navigated=!0;else if(n instanceof Dr){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=M({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||wS(o.source)},a);this.scheduleNavigation(s,Er,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}S2(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Er,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,o)=>{this.navigateToSyncWithBrowser(t,o,n)})}navigateToSyncWithBrowser(t,n,o){let r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=M({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(r.state=l)}let s=this.parseUrl(t);this.scheduleNavigation(s,n,a,r).catch(l=>{this.disposed||this.injector.get(fl)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pt(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(np),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:a,u=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":u=M(M({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}u!==null&&(u=this.removeEmptyProps(u));let m;try{let v=o?o.snapshot:this.routerState.snapshot.root;m=vf(v)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),m=this.currentUrlTree.root}return Cf(m,t,u,c??null)}navigateByUrl(t,n={skipLocationChange:!1}){let o=Xn(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Er,null,n)}navigate(t,n={skipLocationChange:!1}){return TS(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(Sm(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let o;if(n===!0?o=M({},kS):n===!1?o=M({},ES):o=n,Xn(t))return Zm(this.currentUrlTree,t,o);let r=this.parseUrl(t);return Zm(this.currentUrlTree,r,o)}removeEmptyProps(t){return Object.entries(t).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(t,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((m,v)=>{s=m,l=v});let u=this.pendingTasks.add();return tc(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(m=>Promise.reject(m))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TS(e){for(let i=0;i<e.length;i++)if(e[i]==null)throw new nt(4008,!1)}var Vt=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Ae(null);get href(){return pt(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new _t;applicationErrorHandler=F(fl);options=F(kn,{optional:!0});constructor(t,n,o,r,a,s){this.router=t,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.reactiveHref.set(F(new Hm("href"),{optional:!0}));let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let t=this.preserveFragment,n=o=>o==="merge"||o==="preserve";t||=n(this.queryParamsHandling),t||=!this.queryParamsHandling&&!n(this.options?.defaultQueryParamsHandling),t&&(this.subscription=this.router.events.subscribe(o=>{o instanceof Yt&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Xn(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,o,r,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(t!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.reactiveHref.set(t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null)}applyAttributeValue(t,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,t,n):o.removeAttribute(r,t)}get urlTree(){return this.routerLinkInput===null?null:Xn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||e)(I(rt),I(Lt),Im("tabindex"),I(ct),I(ft),I(zo))};static \u0275dir=ce({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&R("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&ve("href",o.reactiveHref(),Dm)("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ge],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ge],replaceUrl:[2,"replaceUrl","replaceUrl",ge],routerLink:"routerLink"},features:[qe]})}return e})();var Xa=class{};var Bf=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,n,o,r){this.router=t,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(Ci(t=>t instanceof Yt),Oo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=bl(r.providers,t,`Route: ${r.path}`));let a=r._injector??t,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return At(o).pipe(bu())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(t,n):o=W(null);let r=o.pipe(wt(a=>a===null?W(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(t,n);return At([r,a]).pipe(bu())}else return r})}static \u0275fac=function(n){return new(n||e)(U(rt),U(No),U(Xa),U(Xl))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dp=new Me(""),Hf=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Er;restoredId=0;store={};constructor(t,n,o,r,a={}
1){this.urlSerializer=t,this.transitions=n,this.viewportScroller=o,this.zone=r,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof eo?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Yt?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Xi&&t.code===Ir.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof jo))return;let n={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,n):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,n){this.zone.runOutsideAngular(()=>st(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new jo(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Rm()};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function IS(e,...i){return ml([{provide:$o,multi:!0,useValue:e},[],{provide:Lt,useFactory:Gf,deps:[rt]},{provide:xu,multi:!0,useFactory:Uf},i.map(t=>t.\u0275providers)])}function Gf(e){return e.routerState.root}function qo(e,i){return{\u0275kind:e,\u0275providers:i}}function MS(e={}){return qo(4,[{provide:dp,useFactory:()=>{let t=F(Fu),n=F(qn),o=F(Ja),r=F(to);return new Hf(r,o,t,n,e)}}])}function Uf(){let e=F(Cn);return i=>{let t=e.get(_r);if(i!==t.components[0])return;let n=e.get(rt),o=e.get(jf);e.get(up)===1&&n.initialNavigation(),e.get(qf,null,{optional:!0})?.setUpPreloading(),e.get(dp,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var jf=new Me("",{factory:()=>new _t}),up=new Me("",{providedIn:"root",factory:()=>1});function Wf(){let e=[{provide:Mm,useValue:!0},{provide:up,useValue:0},Ma(()=>{let i=F(Cn);return i.get(jm,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(rt),r=i.get(jf);tc(o,()=>{n(!0)}),i.get(Ja).afterPreactivation=()=>(n(!0),r.closed?W(void 0):r),o.initialNavigation()}))})];return qo(2,e)}function $f(){let e=[Ma(()=>{F(rt).setUpLocationChangeListener()}),{provide:up,useValue:2}];return qo(3,e)}var qf=new Me("");function Yf(e){return qo(0,[{provide:qf,useExisting:Bf},{provide:Xa,useExisting:e}])}function DS(e){return qo(5,[{provide:kn,useValue:e}])}function Kf(){return qo(8,[tp,{provide:Qa,useExisting:tp}])}function Qf(e){Pm("NgRouterViewTransitions");let i=[{provide:rp,useValue:Nf},{provide:ap,useValue:M({skipNextTransition:!!e?.skipInitialTransition},e)}];return qo(9,i)}var Zf=[Yn,{provide:to,useClass:Jn},rt,Wo,{provide:Lt,useFactory:Gf,deps:[rt]},Xl,[]],Ct=(()=>{class e{constructor(){}static forRoot(t,n){return{ngModule:e,providers:[Zf,[],{provide:$o,multi:!0,useValue:t},[],n?.errorHandler?{provide:sp,useValue:n.errorHandler}:[],{provide:kn,useValue:n||{}},n?.useHash?RS():FS(),PS(),n?.preloadingStrategy?Yf(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?AS(n):[],n?.bindToComponentInputs?Kf().\u0275providers:[],n?.enableViewTransitions?Qf().\u0275providers:[],OS()]}}static forChild(t){return{ngModule:e,providers:[{provide:$o,multi:!0,useValue:t}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({})}return e})();function PS(){return{provide:dp,useFactory:()=>{let e=F(Fu),i=F(qn),t=F(kn),n=F(Ja),o=F(to);return t.scrollOffset&&e.setOffset(t.scrollOffset),new Hf(o,n,e,i,t)}}}function RS(){return{provide:zo,useClass:$m}}function FS(){return{provide:zo,useClass:Wm}}function AS(e){return[e.initialNavigation==="disabled"?$f().\u0275providers:[],e.initialNavigation==="enabledBlocking"?Wf().\u0275providers:[]]}var lp=new Me("");function OS(){return[{provide:lp,useFactory:Uf},{provide:xu,multi:!0,useExisting:lp}]}var a0=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||e)(I(ct),I(ft))};static \u0275dir=ce({type:e})}return e})(),pc=(()=>{class e extends a0{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,features:[ue]})}return e})(),ni=new Me("");var NS={provide:ni,useExisting:lt(()=>no),multi:!0};function VS(){let e=Du()?Du().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var zS=new Me(""),no=(()=>
vendor: 5,403 bytes, line 1
1{class e extends a0{_compositionMode;_composing=!1;constructor(t,n,o){super(t,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!VS())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||e)(I(ct),I(ft),I(zS,8))};static \u0275dir=ce({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&R("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Te([NS]),ue]})}return e})();function mp(e){return e==null||fp(e)===0}function fp(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Tn=new Me(""),Yo=new Me(""),BS=/^(?=.{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])?)*$/,et=class{static min(i){return HS(i)}static max(i){return GS(i)}static required(i){return s0(i)}static requiredTrue(i){return US(i)}static email(i){return jS(i)}static minLength(i){return WS(i)}static maxLength(i){return l0(i)}static pattern(i){return $S(i)}static nullValidator(i){return nc()}static compose(i){return g0(i)}static composeAsync(i){return m0(i)}};function HS(e){return i=>{if(i.value==null||e==null)return null;let t=parseFloat(i.value);return!isNaN(t)&&t<e?{min:{min:e,actual:i.value}}:null}}function GS(e){return i=>{if(i.value==null||e==null)return null;let t=parseFloat(i.value);return!isNaN(t)&&t>e?{max:{max:e,actual:i.value}}:null}}function s0(e){return mp(e.value)?{required:!0}:null}function US(e){return e.value===!0?null:{required:!0}}function jS(e){return mp(e.value)||BS.test(e.value)?null:{email:!0}}function WS(e){return i=>{let t=i.value?.length??fp(i.value);return t===null||t===0?null:t<e?{minlength:{requiredLength:e,actualLength:t}}:null}}function l0(e){return i=>{let t=i.value?.length??fp(i.value);return t!==null&&t>e?{maxlength:{requiredLength:e,actualLength:t}}:null}}function $S(e){if(!e)return nc;let i,t;return typeof e=="string"?(t="",e.charAt(0)!=="^"&&(t+="^"),t+=e,e.charAt(e.length-1)!=="$"&&(t+="$"),i=new RegExp(t)):(t=e.toString(),i=e),n=>{if(mp(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function nc(e){return null}function c0(e){return e!=null}function d0(e){return _l(e)?At(e):e}function u0(e){let i={};return e.forEach(t=>{i=t!=null?M(M({},i),t):i}),Object.keys(i).length===0?null:i}function p0(e,i){return i.map(t=>t(e))}function qS(e){return!e.validate}function h0(e){return e.map(i=>qS(i)?i:t=>i.validate(t))}function g0(e){if(!e)return null;let i=e.filter(c0);return i.length==0?null:function(t){return u0(p0(t,i))}}function vp(e){return e!=null?g0(h0(e)):null}function m0(e){if(!e)return null;let i=e.filter(c0);return i.length==0?null:function(t){let n=p0(t,i).map(d0);return Ta(n).pipe(G(u0))}}function Cp(e){return e!=null?m0(h0(e)):null}function Jf(e,i){return e===null?[i]:Array.isArray(e)?[...e,i]:[e,i]}function f0(e){return e._rawValidators}function v0(e){return e._rawAsyncValidators}function pp(e){return e?Array.isArray(e)?e:[e]:[]}function oc(e,i){return Array.isArray(e)?e.includes(i):e===i}function Xf(e,i){let t=pp(i);return pp(e).forEach(o=>{oc(t,o)||t.push(o)}),t}function e0(e,i){return pp(i).filter(t=>!oc(e,t))}var rc=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(i){this._rawValidators=i||[],this._composedValidatorFn=vp(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>
vendor: 12,500 bytes, line 1
1i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,t){return this.control?this.control.hasError(i,t):!1}getError(i,t){return this.control?this.control.getError(i,t):null}},zt=class extends rc{name;get formDirective(){return null}get path(){return null}},xi=class extends rc{_parent=null;name=null;valueAccessor=null},ac=class{_cd;constructor(i){this._cd=i}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}},YS={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Rj=ae(M({},YS),{"[class.ng-submitted]":"isSubmitted"}),Ko=(()=>{class e extends ac{constructor(t){super(t)}static \u0275fac=function(n){return new(n||e)(I(xi,2))};static \u0275dir=ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&Be("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:[ue]})}return e})(),ss=(()=>{class e extends ac{constructor(t){super(t)}static \u0275fac=function(n){return new(n||e)(I(zt,10))};static \u0275dir=ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&Be("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:[ue]})}return e})();var es="VALID",ic="INVALID",Or="PENDING",ts="DISABLED",io=class{},sc=class extends io{value;source;constructor(i,t){super(),this.value=i,this.source=t}},ns=class extends io{pristine;source;constructor(i,t){super(),this.pristine=i,this.source=t}},os=class extends io{touched;source;constructor(i,t){super(),this.touched=i,this.source=t}},Lr=class extends io{status;source;constructor(i,t){super(),this.status=i,this.source=t}},lc=class extends io{source;constructor(i){super(),this.source=i}},rs=class extends io{source;constructor(i){super(),this.source=i}};function bp(e){return(hc(e)?e.validators:e)||null}function KS(e){return Array.isArray(e)?vp(e):e||null}function _p(e,i){return(hc(i)?i.asyncValidators:e)||null}function QS(e){return Array.isArray(e)?Cp(e):e||null}function hc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function C0(e,i,t){let n=e.controls;if(!(i?Object.keys(n):n).length)throw new nt(1e3,"");if(!n[t])throw new nt(1001,"")}function b0(e,i,t){e._forEachChild((n,o)=>{if(t[o]===void 0)throw new nt(1002,"")})}var Nr=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,t){this._assignValidators(i),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return pt(this.statusReactive)}set status(i){pt(()=>this.statusReactive.set(i))}_status=Pe(()=>this.statusReactive());statusReactive=Ae(void 0);get valid(){return this.status===es}get invalid(){return this.status===ic}get pending(){return this.status==Or}get disabled(){return this.status===ts}get enabled(){return this.status!==ts}errors;get pristine(){return pt(this.pristineReactive)}set pristine(i){pt(()=>this.pristineReactive.set(i))}_pristine=Pe(()=>this.pristineReactive());pristineReactive=Ae(!0);get dirty(){return!this.pristine}get touched(){return pt(this.touchedReactive)}set touched(i){pt(()=>this.touchedReactive.set(i))}_touched=Pe(()=>this.touchedReactive());touchedReactive=Ae(!1);get untouched(){return!this.touched}_events=new _t;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(Xf(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Xf(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(e0(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(e0(i,this._rawAsyncValidators))}hasValidator(i){return oc(this._rawValidators,i)}hasAsyncValidator(i){return oc(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let t=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(ae(M({},i),{sourceControl:n})),t&&i.emitEvent!==!1&&this._events.next(new os(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(i))}markAsUntouched(i={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),t&&i.emitEvent!==!1&&this._events.next(new os(!1,n))}markAsDirty(i={}){let t=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(ae(M({},i),{sourceControl:n})),t&&i.emitEvent!==!1&&this._events.next(new ns(!1,n))}markAsPristine(i={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),t&&i.emitEvent!==!1&&this._events.next(new ns(!0,n))}markAsPending(i={}){this.status=Or;let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Lr(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(ae(M({},i),{sourceControl:t}))}disable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=ts,this.errors=null,this._forEachChild(o=>{o.disable(ae(M({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new sc(this.value,n)),this._events.next(new Lr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ae(M({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=es,this._forEachChild(n=>{n.enable(ae(M({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(ae(M({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,t){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===es||this.status===Or)&&this._runAsyncValidator(n,i.emitEvent)}let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new sc(this.value,t)),this._events.next(new Lr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(ae(M({},i),{sourceControl:t}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ts:es}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,t){if(this.asyncValidator){this.status=Or,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:i!==!1};let n=d0(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,t={}){this.errors=i,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(i){let t=i;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,o)=>n&&n._find(o),this)}getError(i,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[i]:null}hasError(i,t){return!!this.getError(i,t)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,t,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Lr(this.status,t)),this._parent&&this._parent._updateControlsErrors(i,t,n)}_initObservables(){this.valueChanges=new se,this.statusChanges=new se}_calculateStatus(){return this._allControlsDisabled()?ts:this.errors?ic:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Or)?Or:this._anyControlsHaveStatus(ic)?ic:es}_anyControlsHaveStatus(i){return this._anyControls(t=>t.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,t){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,t),o&&this._events.next(new ns(this.pristine,t))}_updateTouched(i={},t){this.touched=this._anyControlsTouched(),this._events.next(new os(this.touched,t)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,t)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){hc(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let t=this._parent&&this._parent.dirty;return!i&&!!t&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=KS(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=QS(this._rawAsyncValidators)}},en=class extends Nr{constructor(i,t,n){super(bp(t),_p(n,t)),this.controls=i,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,t){return this.controls[i]?this.controls[i]:(this.controls[i]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(i,t,n={}){this.registerControl(i,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,t={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(i,t,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],t&&this.registerControl(i,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,t={}
vendor: 9,717 bytes, line 1
1){b0(this,!0,i),Object.keys(i).forEach(n=>{C0(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(i,t={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(i={},t={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new rs(this))}getRawValue(){return this._reduceChildren({},(i,t,n)=>(i[n]=t.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&i(n,t)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(t,n,o)=>((n.enabled||this.disabled)&&(t[o]=n.value),t))}_reduceChildren(i,t){let n=i;return this._forEachChild((o,r)=>{n=t(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var hp=class extends en{};var Qo=new Me("",{providedIn:"root",factory:()=>ls}),ls="always";function gc(e,i){return[...i.path,e]}function as(e,i,t=ls){yp(e,i),i.valueAccessor.writeValue(e.value),(e.disabled||t==="always")&&i.valueAccessor.setDisabledState?.(e.disabled),JS(e,i),e3(e,i),XS(e,i),ZS(e,i)}function cc(e,i,t=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),uc(e,i),e&&(i._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function dc(e,i){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(i)})}function ZS(e,i){if(i.valueAccessor.setDisabledState){let t=n=>{i.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(t),i._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}function yp(e,i){let t=f0(e);i.validator!==null?e.setValidators(Jf(t,i.validator)):typeof t=="function"&&e.setValidators([t]);let n=v0(e);i.asyncValidator!==null?e.setAsyncValidators(Jf(n,i.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let o=()=>e.updateValueAndValidity();dc(i._rawValidators,o),dc(i._rawAsyncValidators,o)}function uc(e,i){let t=!1;if(e!==null){if(i.validator!==null){let o=f0(e);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(t=!0,e.setValidators(r))}}if(i.asyncValidator!==null){let o=v0(e);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(t=!0,e.setAsyncValidators(r))}}}let n=()=>{};return dc(i._rawValidators,n),dc(i._rawAsyncValidators,n),t}function JS(e,i){i.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&_0(e,i)})}function XS(e,i){i.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&_0(e,i),e.updateOn!=="submit"&&e.markAsTouched()})}function _0(e,i){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function e3(e,i){let t=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};e.registerOnChange(t),i._registerOnDestroy(()=>{e._unregisterOnChange(t)})}function y0(e,i){e==null,yp(e,i)}function t3(e,i){return uc(e,i)}function wp(e,i){if(!e.hasOwnProperty("model"))return!1;let t=e.model;return t.isFirstChange()?!0:!Object.is(i,t.currentValue)}function i3(e){return Object.getPrototypeOf(e.constructor)===pc}function w0(e,i){e._syncPendingControls(),i.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function xp(e,i){if(!i)return null;Array.isArray(i);let t,n,o;return i.forEach(r=>{r.constructor===no?t=r:i3(r)?n=r:o=r}),o||n||t||null}function n3(e,i){let t=e.indexOf(i);t>-1&&e.splice(t,1)}var o3={provide:zt,useExisting:lt(()=>Sp)},is=Promise.resolve(),Sp=(()=>{class e extends zt{callSetDisabledState;get submitted(){return pt(this.submittedReactive)}_submitted=Pe(()=>this.submittedReactive());submittedReactive=Ae(!1);_directives=new Set;form;ngSubmit=new se;options;constructor(t,n,o){super(),this.callSetDisabledState=o,this.form=new en({},vp(t),Cp(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){is.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),as(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){is.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){is.then(()=>{let n=this._findContainer(t.path),o=new en({});y0(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){is.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){is.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),w0(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new lc(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||e)(I(Tn,10),I(Yo,10),I(Qo,8))};static \u0275dir=ce({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&R("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Te([o3]),ue]})}return e})();function t0(e,i){let t=e.indexOf(i);t>-1&&e.splice(t,1)}function i0(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var En=class extends Nr{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,t,n){super(bp(t),_p(n,t)),this._applyFormState(i),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hc(t)&&(t.nonNullable||t.initialValueIsDefault)&&(i0(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,t={}){this.value=this._pendingValue=i,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(i,t={}){this.setValue(i,t)}reset(i=this.defaultValue,t={}){this._applyFormState(i),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new rs(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){t0(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){t0(this._onDisabledChange,i)}_forEachChild(i){}_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(i){i0(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var r3=e=>e instanceof En,a3=(()=>{class e extends zt{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return gc(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,standalone:!1,features:[ue]})}return e})();var s3={provide:xi,useExisting:lt(()=>mc)},n0=Promise.resolve(),mc=(()=>{class e extends xi{_changeDetectorRef;callSetDisabledState;control=new En;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new se;constructor(t,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=xp(this,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),wp(t,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){as(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(t){n0.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&ge(n);n0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?gc(t,this._parent):[t]}static \u0275fac=function(n){return new(n||e)(I(zt,9),I(Tn,10),I(Yo,10),I(ni,10),I(_i,8),I(Qo,8))};static \u0275dir=ce({type:e,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:[Te([s3]),ue,qe]})}return e})();var kp=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var l3={provide:ni,useExisting:lt(()=>fc),multi:!0};var c3=(()=>{class e{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fc=(()=>{class e extends pc{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=F(Qo,{optional:!0})??ls;constructor(t,n,o,r){super(t,n),this._registry=o,this._injector=r}ngOnInit(){this._control=this._injector.get(xi),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||e)(I(ct),I(ft),I(c3),I(Cn))};static \u0275dir=ce({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&R("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[Te([l3]),ue]})}return e})();var Ep=new Me(""),d3={provide:xi,useExisting:lt(()=>vc)},vc=(()=>{class e extends xi{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new se;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=xp(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&cc(n,this,!1),as(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}wp(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}
vendor: 10,543 bytes, line 1
1ngOnDestroy(){this.form&&cc(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||e)(I(Tn,10),I(Yo,10),I(ni,10),I(Ep,8),I(Qo,8))};static \u0275dir=ce({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Te([d3]),ue,qe]})}return e})(),u3={provide:zt,useExisting:lt(()=>Vr)},Vr=(()=>{class e extends zt{callSetDisabledState;get submitted(){return pt(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=Pe(()=>this._submittedReactive());_submittedReactive=Ae(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new se;constructor(t,n,o){super(),this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(uc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return as(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){cc(t.control||null,t,!1),n3(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),w0(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new lc(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(cc(n||null,t),r3(o)&&(as(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);y0(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&t3(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){yp(this.form,this),this._oldForm&&uc(this._oldForm,this)}static \u0275fac=function(n){return new(n||e)(I(Tn,10),I(Yo,10),I(Qo,8))};static \u0275dir=ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&R("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Te([u3]),ue,qe]})}return e})(),p3={provide:zt,useExisting:lt(()=>Cc)},Cc=(()=>{class e extends a3{name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){x0(this._parent)}static \u0275fac=function(n){return new(n||e)(I(zt,13),I(Tn,10),I(Yo,10))};static \u0275dir=ce({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[Te([p3]),ue]})}return e})(),h3={provide:zt,useExisting:lt(()=>Tp)},Tp=(()=>{class e extends zt{_parent;name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){x0(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 gc(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||e)(I(zt,13),I(Tn,10),I(Yo,10))};static \u0275dir=ce({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[Te([h3]),ue]})}return e})();function x0(e){return!(e instanceof Cc)&&!(e instanceof Vr)&&!(e instanceof Tp)}var g3={provide:xi,useExisting:lt(()=>bc)},bc=(()=>{class e extends xi{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new se;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,r,a){super(),this._ngModelWarningConfig=a,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=xp(this,r)}ngOnChanges(t){this._added||this._setUpControl(),wp(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return gc(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(n){return new(n||e)(I(zt,13),I(Tn,10),I(Yo,10),I(ni,10),I(Ep,8))};static \u0275dir=ce({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Te([g3]),ue,qe]})}return e})();var m3={provide:ni,useExisting:lt(()=>_c),multi:!0};function S0(e,i){return e==null?`${i}`:(i&&typeof i=="object"&&(i="Object"),`${e}: ${i}`.slice(0,50))}function f3(e){return e.split(":")[0]}var _c=(()=>{class e extends pc{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;appRefInjector=F(_r).injector;destroyRef=F($n);cdr=F(_i);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Cl({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(t){this.cdr.markForCheck(),this.value=t;let n=this._getOptionId(t),o=S0(n,t);this.setProperty("value",o)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=f3(t);return this._optionMap.has(n)?this._optionMap.get(n):t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,o){n&1&&R("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Te([m3]),ue]})}return e})(),k0=(()=>{class e{_element;_renderer;_select;id;constructor(t,n,o){this._element=t,this._renderer=n,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(S0(this.id,t)),this._select._writeValueAfterRender())}set value(t){this._setElementValue(t),this._select&&this._select._writeValueAfterRender()}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(n){return new(n||e)(I(ft),I(ct),I(_c,9))};static \u0275dir=ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),v3={provide:ni,useExisting:lt(()=>E0),multi:!0};function o0(e,i){return e==null?`${i}`:(typeof i=="string"&&(i=`'${i}'`),i&&typeof i=="object"&&(i="Object"),`${e}: ${i}`.slice(0,50))}function C3(e){return e.split(":")[0]}var E0=(()=>{class e extends pc{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){this.value=t;let n;if(Array.isArray(t)){let o=t.map(r=>this._getOptionId(r));n=(r,a)=>{r._setSelected(o.indexOf(a.toString())>-1)}}else n=(o,r)=>{o._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let o=[],r=n.selectedOptions;if(r!==void 0){let a=r;for(let s=0;s<a.length;s++){let l=a[s],c=this._getOptionValue(l.value);o.push(c)}}else{let a=n.options;for(let s=0;s<a.length;s++){let l=a[s];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,t(o)}}_registerOption(t){let n=(this._idCounter++).toString();return this._optionMap.set(n,t),n}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,t))return n;return null}_getOptionValue(t){let n=C3(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,o){n&1&&R("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Te([v3]),ue]})}return e})(),T0=(()=>{class e{_element;_renderer;_select;id;_value;constructor(t,n,o){this._element=t,this._renderer=n,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(o0(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(o0(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}static \u0275fac=function(n){return new(n||e)(I(ft),I(ct),I(E0,9))};static \u0275dir=ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();function b3(e){return typeof e=="number"?e:parseInt(e,10)}var I0=(()=>{class e{_validator=nc;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):nc,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ce({type:e,features:[qe]})}return e})();var _3={provide:Tn,useExisting:lt(()=>Ip),multi:!0};var Ip=(()=>{class e extends I0{required;inputName="required";normalizeInput=ge;createValidator=t=>s0;enabled(t){return t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&ve("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Te([_3]),ue]})}return e})();var y3={provide:Tn,useExisting:lt(()=>Mp),multi:!0},Mp=(()=>{class e extends I0{maxlength;inputName="maxlength";normalizeInput=t=>b3(t);createValidator=t=>l0(t);static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ve("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Te([y3]),ue]})}return e})();var M0=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({})}return e})(),gp=class extends Nr{constructor(i,t,n){super(bp(t),_p(n,t)),this.controls=i,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,t={}){Array.isArray(i)?i.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(i,t,n={}){this.controls.splice(i,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,t={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(i,t,n={}){let o=this._adjustIndex(i);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,t={}
vendor: 8,697 bytes, line 1
1){b0(this,!1,i),i.forEach((n,o)=>{C0(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(i,t={}){i!=null&&(i.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(i=[],t={}){this._forEachChild((n,o)=>{n.reset(i[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new rs(this))}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((t,n)=>{i(t,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(t=>t.enabled&&i(t))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function r0(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var cs=(()=>{class e{useNonNullable=!1;get nonNullable(){let t=new e;return t.useNonNullable=!0,t}group(t,n=null){let o=this._reduceControls(t),r={};return r0(n)?r=n:n!==null&&(r.validators=n.validator,r.asyncValidators=n.asyncValidator),new en(o,r)}record(t,n=null){let o=this._reduceControls(t);return new hp(o,n)}control(t,n,o){let r={};return this.useNonNullable?(r0(n)?r=n:(r.validators=n,r.asyncValidators=o),new En(t,ae(M({},r),{nonNullable:!0}))):new En(t,n,o)}array(t,n,o){let r=t.map(a=>this._createControl(a));return new gp(r,n,o)}_reduceControls(t){let n={};return Object.keys(t).forEach(o=>{n[o]=this._createControl(t[o])}),n}_createControl(t){if(t instanceof En)return t;if(t instanceof Nr)return t;if(Array.isArray(t)){let n=t[0],o=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(n,o,r)}else return this.control(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var oo=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Qo,useValue:t.callSetDisabledState??ls}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({imports:[M0]})}return e})(),Zo=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ep,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Qo,useValue:t.callSetDisabledState??ls}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({imports:[M0]})}return e})();function ro(...e){if(e){let i=[];for(let t=0;t<e.length;t++){let n=e[t];if(!n)continue;let o=typeof n;if(o==="string"||o==="number")i.push(n);else if(o==="object"){let r=Array.isArray(n)?[ro(...n)]:Object.entries(n).map(([a,s])=>s?a:void 0);i=r.length?i.concat(r.filter(a=>!!a)):i}}return i.join(" ").trim()}}function Si(e,i){return e?e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className):!1}function ao(e,i){if(e&&i){let t=n=>{Si(e,n)||(e.classList?e.classList.add(n):e.className+=" "+n)};[i].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(t))}}function x3(){return window.innerWidth-document.documentElement.offsetWidth}function D0(e){typeof e=="string"?ao(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.setProperty(e.variableName,x3()+"px"),ao(document.body,e?.className||"p-overflow-hidden"))}function so(e,i){if(e&&i){let t=n=>{e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")};[i].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(t))}}function P0(e){typeof e=="string"?so(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.removeProperty(e.variableName),so(document.body,e?.className||"p-overflow-hidden"))}function ds(e){for(let i of document?.styleSheets)try{for(let t of i?.cssRules)for(let n of t?.style)if(e.test(n))return{name:n,value:t.style.getPropertyValue(n).trim()}}catch{}return null}function R0(e){let i={width:0,height:0};if(e){let[t,n]=[e.style.visibility,e.style.display],o=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",i.width=o.width||e.offsetWidth,i.height=o.height||e.offsetHeight,e.style.display=n,e.style.visibility=t}return i}function F0(){let e=window,i=document,t=i.documentElement,n=i.getElementsByTagName("body")[0],o=e.innerWidth||t.clientWidth||n.clientWidth,r=e.innerHeight||t.clientHeight||n.clientHeight;return{width:o,height:r}}function Dp(e){return e?Math.abs(e.scrollLeft):0}function S3(){let e=document.documentElement;return(window.pageXOffset||Dp(e))-(e.clientLeft||0)}function k3(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function E3(e){return e?getComputedStyle(e).direction==="rtl":!1}function A0(e,i,t=!0){var n,o,r,a;if(e){let s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:R0(e),l=s.height,c=s.width,u=i.offsetHeight,m=i.offsetWidth,v=i.getBoundingClientRect(),C=k3(),_=S3(),E=F0(),D,P,T="top";v.top+u+l>E.height?(D=v.top+C-l,T="bottom",D<0&&(D=C)):D=u+v.top+C,v.left+c>E.width?P=Math.max(0,v.left+_+m-c):P=v.left+_,E3(e)?e.style.insetInlineEnd=P+"px":e.style.insetInlineStart=P+"px",e.style.top=D+"px",e.style.transformOrigin=T,t&&(e.style.marginTop=T==="bottom"?`calc(${(o=(n=ds(/-anchor-gutter$/))==null?void 0:n.value)!=null?o:"2px"} * -1)`:(a=(r=ds(/-anchor-gutter$/))==null?void 0:r.value)!=null?a:"")}}function O0(e,i){e&&(typeof i=="string"?e.style.cssText=i:Object.entries(i||{}).forEach(([t,n])=>e.style[t]=n))}function Jo(e,i){if(e instanceof HTMLElement){let t=e.offsetWidth;if(i){let n=getComputedStyle(e);t+=parseFloat(n.marginLeft)+parseFloat(n.marginRight)}return t}return 0}function L0(e,i,t=!0,n=void 0){var o;if(e){let r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:R0(e),a=i.offsetHeight,s=i.getBoundingClientRect(),l=F0(),c,u,m=n??"top";if(!n&&s.top+a+r.height>l.height?(c=-1*r.height,m="bottom",s.top+c<0&&(c=-1*s.top)):c=a,r.width>l.width?u=s.left*-1:s.left+r.width>l.width?u=(s.left+r.width-l.width)*-1:u=0,e.style.top=c+"px",e.style.insetInlineStart=u+"px",e.style.transformOrigin=m,t){let v=(o=ds(/-anchor-gutter$/))==null?void 0:o.value;e.style.marginTop=m==="bottom"?`calc(${v??"2px"} * -1)`:v??""}}}function N0(e){if(e){let i=e.parentNode;return i&&i instanceof ShadowRoot&&i.host&&(i=i.host),i}return null}function T3(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&N0(e))}function us(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function I3(e){let i=e;return e&&typeof e=="object"&&(Object.hasOwn(e,"current")?i=e.current:Object.hasOwn(e,"el")&&(Object.hasOwn(e.el,"nativeElement")?i=e.el.nativeElement:i=e.el)),us(i)?i:void 0}function M3(e,i){var t,n,o;if(e)switch(e){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@first":return i?.firstElementChild;case"@last":return i?.lastElementChild;case"@child":return(t=i?.children)==null?void 0:t[0];case"@parent":return i?.parentElement;case"@grandparent":return(n=i?.parentElement)==null?void 0:n.parentElement;default:{if(typeof e=="string"){let s=e.match(/^@child\[(\d+)]/);return s?((o=i?.children)==null?void 0:o[parseInt(s[1],10)])||null:document.querySelector(e)||null}let r=(s=>typeof s=="function"&&"call"in s&&"apply"in s)(e)?e():e,a=I3(r);return T3(a)?a:r?.nodeType===9?r:void 0}}}function V0(e,i){let t=M3(e,i);if(t)t.appendChild(i);else throw new Error("Cannot append "+i+" to "+e)}function Pp(e,i={}){if(us(e)){let t=(n,o)=>{var r,a;let s=(r=e?.$attrs)!=null&&r[n]?[(a=e?.$attrs)==null?void 0:a[n]]:[];return[o].flat().reduce((l,c)=>{if(c!=null){let u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){let m=Array.isArray(c)?t(n,c):Object.entries(c).map(([v,C])=>n==="style"&&(C||C===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?v:void 0);l=m.length?l.concat(m.filter(v=>!!v)):l}}return l},s)};
1Object.entries(i).forEach(([n,o])=>{if(o!=null){let r=n.match(/^on(.+)/);r?e.addEventListener(r[1].toLowerCase(),o):n==="p-bind"||n==="pBind"?Pp(e,o):(o=n==="class"?[...new Set(t("class",o))].join(" ").trim():n==="style"?t("style",o).join(";").trim():o,(e.$attrs=e.$attrs||{})&&(e.$attrs[n]=o),e.setAttribute(n,o))}})}}function tn(e,i){return us(e)?Array.from(e.querySelectorAll(i)):[]}function Bt(e,i){return us(e)?e.matches(i)?e:e.querySelector(i):null}function Rp(e,i=""){let t=tn(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, 2 [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${i}, 3 input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, 4 select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, 5 textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, 6 [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, 7 [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}`),n=[];for(let o of t)getComputedStyle(o).display!="none"&&getComputedStyle(o).visibility!="hidden"&&n.push(o);return n}function Fp(e){if(e){let i=e.offsetHeight,t=getComputedStyle(e);return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),i}return 0}function ps(e){var i;if(e){let t=(i=N0(e))==null?void 0:i.childNodes,n=0;if(t)for(let o=0;o<t.length;o++){if(t[o]===e)return n;t[o].nodeType===1&&n++}}return-1}function z0(e){if(e){let i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||Dp(document.documentElement)||Dp(document.body)||0)}}return{top:"auto",left:"auto"}}function B0(e,i){if(e){let t=e.offsetHeight;if(i){let n=getComputedStyle(e);t+=parseFloat(n.marginTop)+parseFloat(n.marginBottom)}return t}return 0}function Ap(e){if(e){let i=e.offsetWidth,t=getComputedStyle(e);return i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),i}return 0}function H0(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function G0(e){var i;e&&("remove"in Element.prototype?e.remove():(i=e.parentNode)==null||i.removeChild(e))}function hs(e,i="",t){us(e)&&t!==null&&t!==void 0&&e.setAttribute(i,t)}function U0(){let e=new Map;return{on(i,t){let n=e.get(i);return n?n.push(t):n=[t],e.set(i,n),this},off(i,t){let n=e.get(i);return n&&n.splice(n.indexOf(t)>>>0,1),this},emit(i,t){let n=e.get(i);n&&n.forEach(o=>{o(t)})},clear(){e.clear()}}}var D3=Object.defineProperty,j0=Object.getOwnPropertySymbols,P3=Object.prototype.hasOwnProperty,R3=Object.prototype.propertyIsEnumerable,W0=(e,i,t)=>i in e?D3(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,$0=(e,i)=>{for(var t in i||(i={}))P3.call(i,t)&&W0(e,t,i[t]);if(j0)for(var t of j0(i))R3.call(i,t)&&W0(e,t,i[t]);return e};function q0(...e){if(e){let i=[];for(let t=0;t<e.length;t++){let n=e[t];if(!n)continue;let o=typeof n;if(o==="string"||o==="number")i.push(n);else if(o==="object"){let r=Array.isArray(n)?[q0(...n)]:Object.entries(n).map(([a,s])=>s?a:void 0);i=r.length?i.concat(r.filter(a=>!!a)):i}}return i.join(" ").trim()}}function F3(e){return typeof e=="function"&&"call"in e&&"apply"in e}function A3({skipUndefined:e=!1},...i){return i?.reduce((t,n={})=>{for(let o in n){let r=n[o];if(!(e&&r===void 0))if(o==="style")t.style=$0($0({},t.style),n.style);else if(o==="class"||o==="className")t[o]=q0(t[o],n[o]);else if(F3(r)){let a=t[o];t[o]=a?(...s)=>{a(...s),r(...s)}:r}else t[o]=r}return t},{})}function Op(...e){return A3({skipUndefined:!1},...e)}var O3=Object.defineProperty,Y0=Object.getOwnPropertySymbols,L3=Object.prototype.hasOwnProperty,N3=Object.prototype.propertyIsEnumerable,K0=(e,i,t)=>i in e?O3(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,V3=(e,i)=>
vendor: 21,905 bytes, lines 7-113
7{for(var t in i||(i={}))L3.call(i,t)&&K0(e,t,i[t]);if(Y0)for(var t of Y0(i))N3.call(i,t)&&K0(e,t,i[t]);return e};function Xo(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function Lp(e,i,t=new WeakSet){if(e===i)return!0;if(!e||!i||typeof e!="object"||typeof i!="object"||t.has(e)||t.has(i))return!1;t.add(e).add(i);let n=Array.isArray(e),o=Array.isArray(i),r,a,s;if(n&&o){if(a=e.length,a!=i.length)return!1;for(r=a;r--!==0;)if(!Lp(e[r],i[r],t))return!1;return!0}if(n!=o)return!1;let l=e instanceof Date,c=i instanceof Date;if(l!=c)return!1;if(l&&c)return e.getTime()==i.getTime();let u=e instanceof RegExp,m=i instanceof RegExp;if(u!=m)return!1;if(u&&m)return e.toString()==i.toString();let v=Object.keys(e);if(a=v.length,a!==Object.keys(i).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,v[r]))return!1;for(r=a;r--!==0;)if(s=v[r],!Lp(e[s],i[s],t))return!1;return!0}function z3(e,i){return Lp(e,i)}function yc(e){return typeof e=="function"&&"call"in e&&"apply"in e}function je(e){return!Xo(e)}function Q0(e,i){if(!e||!i)return null;try{let t=e[i];if(je(t))return t}catch{}if(Object.keys(e).length){if(yc(i))return i(e);if(i.indexOf(".")===-1)return e[i];{let t=i.split("."),n=e;for(let o=0,r=t.length;o<r;++o){if(n==null)return null;n=n[t[o]]}return n}}return null}function Z0(e,i,t){return t?Q0(e,t)===Q0(i,t):z3(e,i)}function Li(e,i=!0){return e instanceof Object&&e.constructor===Object&&(i||Object.keys(e).length!==0)}function J0(e={},i={}){let t=V3({},e);return Object.keys(i).forEach(n=>{let o=n;Li(i[o])&&o in e&&Li(e[o])?t[o]=J0(e[o],i[o]):t[o]=i[o]}),t}function X0(...e){return e.reduce((i,t,n)=>n===0?t:J0(i,t),{})}function Nt(e,...i){return yc(e)?e(...i):e}function Ii(e,i=!0){return typeof e=="string"&&(i||e!=="")}function lo(e){return Ii(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function wc(e,i="",t={}){let n=lo(i).split("."),o=n.shift();if(o){if(Li(e)){let r=Object.keys(e).find(a=>lo(a)===o)||"";return wc(Nt(e[r],t),n.join("."),t)}return}return Nt(e,t)}function Np(e,i=!0){return Array.isArray(e)&&(i||e.length!==0)}function gs(e){return e instanceof Date}function ev(e){return je(e)&&!isNaN(e)}function Ni(e,i){if(i){let t=i.test(e);return i.lastIndex=0,t}return!1}function er(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function xc(e){return Ii(e)?e.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}var Sc={};function tr(e="pui_id_"){return Object.hasOwn(Sc,e)||(Sc[e]=0),Sc[e]++,`${e}${Sc[e]}`}var Ht=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return e})();var tv=(()=>{class e{clickSource=new _t;clickObservable=this.clickSource.asObservable();add(t){t&&this.clickSource.next(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var kc=(()=>{class e{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(n){return new(n||e)(I(Ia))};static \u0275dir=ce({type:e,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return e})(),nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({imports:[J]})}return e})(),Vi=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return e})();var H3=Object.defineProperty,G3=Object.defineProperties,U3=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,ov=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable,iv=(e,i,t)=>i in e?H3(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Bi=(e,i)=>{for(var t in i||(i={}))ov.call(i,t)&&iv(e,t,i[t]);if(Ec)for(var t of Ec(i))rv.call(i,t)&&iv(e,t,i[t]);return e},Vp=(e,i)=>G3(e,U3(i)),In=(e,i)=>{var t={};for(var n in e)ov.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Ec)for(var n of Ec(e))i.indexOf(n)<0&&rv.call(e,n)&&(t[n]=e[n]);return t};function iW(...e){return X0(...e)}var j3=U0(),Pt=j3,ms=/{([^}]*)}/g,av=/(\d+\s+[\+\-\*\/]\s+\d+)/g,sv=/var\([^)]+\)/g;function nv(e){return Ii(e)?e.replace(/[A-Z]/g,(i,t)=>t===0?i:"."+i.toLowerCase()).toLowerCase():e}function W3(e){return Li(e)&&e.hasOwnProperty("$value")&&e.hasOwnProperty("$type")?e.$value:e}function $3(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function zp(e="",i=""){return $3(`${Ii(e,!1)&&Ii(i,!1)?`${e}-`:e}${i}`)}function lv(e="",i=""){return`--${zp(e,i)}`}function q3(e=""){let i=(e.match(/{/g)||[]).length,t=(e.match(/}/g)||[]).length;return(i+t)%2!==0}function cv(e,i="",t="",n=[],o){if(Ii(e)){let r=e.trim();if(q3(r))return;if(Ni(r,ms)){let a=r.replaceAll(ms,s=>{let l=s.replace(/{|}/g,"").split(".").filter(c=>!n.some(u=>Ni(c,u)));return`var(${lv(t,xc(l.join("-")))}${je(o)?`, ${o}`:""})`});return Ni(a.replace(sv,"0"),av)?`calc(${a})`:a}return r}else if(ev(e))return e}function Y3(e,i,t){Ii(i,!1)&&e.push(`${i}:${t};`)}function zr(e,i){return e?`${e}{${i}}`:""}function dv(e,i){if(e.indexOf("dt(")===-1)return e;function t(a,s){let l=[],c=0,u="",m=null,v=0;for(;c<=a.length;){let C=a[c];if((C==='"'||C==="'"||C==="`")&&a[c-1]!=="\\"&&(m=m===C?null:C),!m&&(C==="("&&v++,C===")"&&v--,(C===","||c===a.length)&&v===0)){let _=u.trim();_.startsWith("dt(")?l.push(dv(_,s)):l.push(n(_)),u="",c++;continue}C!==void 0&&(u+=C),c++}return l}function n(a){let s=a[0];if((s==='"'||s==="'"||s==="`")&&a[a.length-1]===s)return a.slice(1,-1);let l=Number(a);return isNaN(l)?a:l}let o=[],r=[];for(let a=0;a<e.length;a++)if(e[a]==="d"&&e.slice(a,a+3)==="dt(")r.push(a),a+=2;else if(e[a]===")"&&r.length>0){let s=r.pop();r.length===0&&o.push([s,a])}if(!o.length)return e;for(let a=o.length-1;a>=0;a--){let[s,l]=o[a],c=e.slice(s+3,l),u=t(c,i),m=i(...u);e=e.slice(0,s)+m+e.slice(l+1)}return e}var Hp=e=>{var i;let t=Ye.getTheme(),n=Bp(t,e,void 0,"variable"),o=(i=n?.match(/--[\w-]+/g))==null?void 0:i[0],r=Bp(t,e,void 0,"value");return{name:o,variable:n,value:r}},Mn=(...e)=>Bp(Ye.getTheme(),...e),Bp=(e={},i,t,n)=>{if(i){let{variable:o,options:r}=Ye.defaults||{},{prefix:a,transform:s}=e?.options||r||{},l=Ni(i,ms)?i:`{${i}}`;return n==="value"||Xo(n)&&s==="strict"?Ye.getTokenValue(i):cv(l,void 0,a,[o.excludedKeyRegex],t)}return""};function Br(e,...i){if(e instanceof Array){let t=e.reduce((n,o,r)=>{var a;return n+o+((a=Nt(i[r],{dt:Mn}))!=null?a:"")},"");return dv(t,Mn)}return Nt(e,{dt:Mn})}function K3(e,i={}){let t=Ye.defaults.variable,{prefix:n=t.prefix,selector:o=t.selector,excludedKeyRegex:r=t.excludedKeyRegex}=i,a=[],s=[],l=[{node:e,path:n}];for(;l.length;){let{node:u,path:m}=l.pop();for(let v in u){let C=u[v],_=W3(C),E=Ni(v,r)?zp(m):zp(m,xc(v));if(Li(_))l.push({node:_,path:E});else{let D=lv(E),P=cv(_,E,n,[r]);Y3(s,D,P);let T=E;n&&T.startsWith(n+"-")&&(T=T.slice(n.length+1)),a.push(T.replace(/-/g,"."))}}}let c=s.join("");return{value:s,tokens:a,declarations:c,css:zr(o,c)}}var zi={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:"attr",selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:"custom",selector:e,matched:!0}}}},resolve(e){let i=Object.keys(this.rules).filter(t=>t!=="custom").map(t=>this.rules[t]);return[e].flat().map(t=>{var n;return(n=i.map(o=>o.resolve(t)).find(o=>o.matched))!=null?n:this.rules.custom.resolve(t)})}},_toVariables(e,i){return K3(e,{prefix:i?.prefix})},getCommon({name:e="",theme:i={},params:t,set:n,defaults:o}){var r,a,s,l,c,u,m;let{preset:v,options:C}=i,_,E,D,P,T,O,K;if(je(v)&&C.transform!=="strict"){let{primitive:we,semantic:Ke,extend:at}=v,$e=Ke||{},{colorScheme:mt}=$e,Qt=In($e,["colorScheme"]),pn=at||{},{colorScheme:hn}=pn,Io=In(pn,["colorScheme"]),Wi=mt||{},{dark:gn}=Wi,Mo=In(Wi,["dark"]),Do=hn||{},{dark:gr}=Do,mn=In(Do,["dark"]),Vn=je(we)?this._toVariables({primitive:we},C):{},zn=je(Qt)?this._toVariables({semantic:Qt},C):{},Bn=je(Mo)?this._toVariables({light:Mo},C):{},wa=je(gn)?this._toVariables({dark:gn},C):{},Hn=je(Io)?this._toVariables({semantic:Io},C):{},mr=je(mn)?this._toVariables({light:mn},C):{},Gn=je(gr)?this._toVariables({dark:gr},C):{},[nl,Po]=[(r=Vn.declarations)!=null?r:"",Vn.tokens],[xa,Sa]=[(a=zn.declarations)!=null?a:"",zn.tokens||[]],[ol,rl]=[(s=Bn.declarations)!=null?s:"",Bn.tokens||[]],[al,sl]=[(l=wa.declarations)!=null?l:"",wa.tokens||[]],[du,fr]=[(c=Hn.declarations)!=null?c:"",Hn.tokens||[]],[ll,Ro]=[(u=mr.declarations)!=null?u:"",mr.tokens||[]],[uu,ka]=[(m=Gn.declarations)!=null?m:"",Gn.tokens||[]];_=this.transformCSS(e,nl,"light","variable",C,n,o),E=Po;let Fo=this.transformCSS(e,`${xa}${ol}`,"light","variable",C,n,o),Ao=this.transformCSS(e,`${al}`,"dark","variable",C,n,o);D=`${Fo}${Ao}`,P=[...new Set([...Sa,...rl,...sl])];let pu=this.transformCSS(e,`${du}${ll}color-scheme:light`,"light","variable",C,n,o),cl=this.transformCSS(e,`${uu}color-scheme:dark`,"dark","variable",C,n,o);T=`${pu}${cl}`,O=[...new Set([...fr,...Ro,...ka])],K=Nt(v.css,{dt:Mn})}return{primitive:{css:_,tokens:E},semantic:{css:D,tokens:P},global:{css:T,tokens:O},style:K}},getPreset({name:e="",preset:i={},options:t,params:n,set:o,defaults:r,selector:a}){var s,l,c;let u,m,v;if(je(i)&&t.transform!=="strict"){let C=e.replace("-directive",""),_=i,{colorScheme:E,extend:D,css:P}=_,T=In(_,["colorScheme","extend","css"]),O=D||{},{colorScheme:K}=O,we=In(O,["colorScheme"]),Ke=E||{},{dark:at}=Ke,$e=In(Ke,["dark"]),mt=K||{},{dark:Qt}=mt,pn=In(mt,["dark"]),hn=je(T)?this._toVariables({[C]:Bi(Bi({},T),we)},t):{},Io=je($e)?this._toVariables({[C]:Bi(Bi({},$e),pn)},t):{},Wi=je(at)?this._toVariables({[C]:Bi(Bi({},at),Qt)},t):{},[gn,Mo]=[(s=hn.declarations)!=null?s:"",hn.tokens||[]],[Do,gr]=[(l=Io.declarations)!=null?l:"",Io.tokens||[]],[mn,Vn]=[(c=Wi.declarations)!=null?c:"",Wi.tokens||[]],zn=this.transformCSS(C,`${gn}${Do}`,"light","variable",t,o,r,a),Bn=this.transformCSS(C,mn,"dark","variable",t,o,r,a);u=`${zn}${Bn}`,m=[...new Set([...Mo,...gr,...Vn])],v=Nt(P,{dt:Mn})}return{css:u,tokens:m,style:v}},getPresetC({name:e="",theme:i={},params:t,set:n,defaults:o}){var r;let{preset:a,options:s}=i,l=(r=a?.components)==null?void 0:r[e];return this.getPreset({name:e,preset:l,options:s,params:t,set:n,defaults:o})},getPresetD({name:e="",theme:i={},params:t,set:n,defaults:o}){var r,a;let s=e.replace("-directive",""),{preset:l,options:c}=i,u=((r=l?.components)==null?void 0:r[s])||((a=l?.directives)==null?void 0:a[s]);return this.getPreset({name:s,preset:u,options:c,params:t,set:n,defaults:o})},applyDarkColorScheme(e){return!(e.darkModeSelector==="none"||e.darkModeSelector===!1)},getColorSchemeOption(e,i){var t;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?i.options.darkModeSelector:(t=e.darkModeSelector)!=null?t:i.options.darkModeSelector):[]},getLayerOrder(e,i={},t,n){let{cssLayer:o}=i;return o?`@layer ${Nt(o.order||o.name||"primeui",t)}`:""},getCommonStyleSheet({name:e="",theme:i={},params:t,props:n={},set:o,defaults:r}){let a=this.getCommon({name:e,theme:i,params:t,set:o,defaults:r}),s=Object.entries(n).reduce((l,[c,u])=>l.push(`${c}="${u}"`)&&l,[]).join(" ");return Object.entries(a||{}).reduce((l,[c,u])=>{if(Li(u)&&Object.hasOwn(u,"css")){let m=er(u.css),v=`${c}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${v}" ${s}>${m}</style>`)}return l},[]).join("")},getStyleSheet({name:e="",theme:i={},params:t,props:n={},set:o,defaults:r}){var a;let s={name:e,theme:i,params:t,set:o,defaults:r},l=(a=e.includes("-directive")?this.getPresetD(s):this.getPresetC(s))==null?void 0:a.css,c=Object.entries(n).reduce((u,[m,v])=>u.push(`${m}="${v}"`)&&u,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${e}-variables" ${c}>${er(l)}</style>`:""},createTokens(e={},i,t="",n="",o={}){let r=function(s,l={},c=[]){if(c.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:s,path:this.path,paths:l,value:void 0};c.push(this.path),l.name=this.path,l.binding||(l.binding={});let u=this.value;if(typeof this.value=="string"&&ms.test(this.value)){let m=this.value.trim().replace(ms,v=>{var C;let _=v.slice(1,-1),E=this.tokens[_];if(!E)return console.warn(`Token not found for path: ${_}`),"__UNRESOLVED__";let D=E.computed(s,l,c);return Array.isArray(D)&&D.length===2?`light-dark(${D[0].value},${D[1].value})`:(C=D?.value)!=null?C:"__UNRESOLVED__"});u=av.test(m.replace(sv,"0"))?`calc(${m})`:m}return Xo(l.binding)&&delete l.binding,c.pop(),{colorScheme:s,path:this.path,paths:l,value:u.includes("__UNRESOLVED__")?void 0:u}},a=(s,l,c)=>{Object.entries(s).forEach(([u,m])=>{let v=Ni(u,i.variable.excludedKeyRegex)?l:l?`${l}.${nv(u)}`:nv(u),C=c?`${c}.${u}`:u;Li(m)?a(m,v,C):(o[v]||(o[v]={paths:[],computed:(_,E={},D=[])=>{if(o[v].paths.length===1)return o[v].paths[0].computed(o[v].paths[0].scheme,E.binding,D);if(_&&_!=="none")for(let P=0;P<o[v].paths.length;P++){let T=o[v].paths[P];if(T.scheme===_)return T.computed(_,E.binding,D)}return o[v].paths.map(P=>P.computed(P.scheme,E[P.scheme],D))}}),o[v].paths.push({path:C,value:m,scheme:C.includes("colorScheme.light")?"light":C.includes("colorScheme.dark")?"dark":"none",computed:r,tokens:o}))})};return a(e,t,n),o},getTokenValue(e,i,t){var n;let o=(s=>s.split(".").filter(l=>!Ni(l.toLowerCase(),t.variable.excludedKeyRegex)).join("."))(i),r=i.includes("colorScheme.light")?"light":i.includes("colorScheme.dark")?"dark":void 0,a=[(n=e[o])==null?void 0:n.computed(r)].flat().filter(s=>s);return a.length===1?a[0].value:a.reduce((s={},l)=>{let c=l,{colorScheme:u}=c,m=In(c,["colorScheme"]);return s[u]=m,s},void 0)},getSelectorRule(e,i,t,n){return t==="class"||t==="attr"?zr(je(i)?`${e}${i},${e} ${i}`:e,n):zr(e,zr(i??":root,:host",n))},transformCSS(e,i,t,n,o={},r,a,s){if(je(i)){let{cssLayer:l}=o;if(n!=="style"){let c=this.getColorSchemeOption(o,a);i=t==="dark"?c.reduce((u,{type:m,selector:v})=>(je(v)&&(u+=v.includes("[CSS]")?v.replace("[CSS]",i):this.getSelectorRule(v,s,m,i)),u),""):zr(s??":root,:host",i)}if(l){let c={name:"primeui",order:"primeui"};Li(l)&&(c.name=Nt(l.name,{name:e,type:n})),je(c.name)&&(i=zr(`@layer ${c.name}`,i),r?.layerNames(c.name))}return i}return""}},Ye={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:i}=e;i&&(this._theme=Vp(Bi({},i),{options:Bi(Bi({},this.defaults.options),i.options)}),this._tokens=zi.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),Pt.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=Vp(Bi({},this.theme),{preset:e}),this._tokens=zi.createTokens(e,this.defaults),this.clearLoadedStyleNames(),Pt.emit("preset:change",e),Pt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=Vp(Bi({},this.theme),{options:e}),this.clearLoadedStyleNames(),Pt.emit("options:change",e),Pt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return zi.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",i){return zi.getCommon({name:e,theme:this.theme,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",i){let t={name:e,theme:this.theme,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return zi.getPresetC(t)},getDirective(e="",i){let t={name:e,theme:this.theme,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return zi.getPresetD(t)},getCustomPreset(e="",i,t,n){let o={name:e,preset:i,options:this.options,selector:t,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return zi.getPreset(o)},getLayerOrderCSS(e=""){return zi.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",i,t="style",n){return zi.transformCSS(e,i,n,t,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",i,t={}){return zi.getCommonStyleSheet({name:e,theme:this.theme,params:i,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,i,t={}){return zi.getStyleSheet({name:e,theme:this.theme,params:i,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:i}){this._loadingStyles.size&&(this._loadingStyles.delete(i),Pt.emit(`theme:${i}:load`,e),!this._loadingStyles.size&&Pt.emit("theme:load"))}};var uv=` 8 *, 9 ::before, 10 ::after { 11 box-sizing: border-box; 12 } 13 14 /* Non vue overlay animations */ 15 .p-connected-overlay { 16 opacity: 0; 17 transform: scaleY(0.8); 18 transition: 19 transform 0.12s cubic-bezier(0, 0, 0.2, 1), 20 opacity 0.12s cubic-bezier(0, 0, 0.2, 1); 21 } 22 23 .p-connected-overlay-visible { 24 opacity: 1; 25 transform: scaleY(1); 26 } 27 28 .p-connected-overlay-hidden { 29 opacity: 0; 30 transform: scaleY(1); 31 transition: opacity 0.1s linear; 32 } 33 34 /* Vue based overlay animations */ 35 .p-connected-overlay-enter-from { 36 opacity: 0; 37 transform: scaleY(0.8); 38 } 39 40 .p-connected-overlay-leave-to { 41 opacity: 0; 42 } 43 44 .p-connected-overlay-enter-active { 45 transition: 46 transform 0.12s cubic-bezier(0, 0, 0.2, 1), 47 opacity 0.12s cubic-bezier(0, 0, 0.2, 1); 48 } 49 50 .p-connected-overlay-leave-active { 51 transition: opacity 0.1s linear; 52 } 53 54 /* Toggleable Content */ 55 .p-toggleable-content-enter-from, 56 .p-toggleable-content-leave-to { 57 max-height: 0; 58 } 59 60 .p-toggleable-content-enter-to, 61 .p-toggleable-content-leave-from { 62 max-height: 1000px; 63 } 64 65 .p-toggleable-content-leave-active { 66 overflow: hidden; 67 transition: max-height 0.45s cubic-bezier(0, 1, 0, 1); 68 } 69 70 .p-toggleable-content-enter-active { 71 overflow: hidden; 72 transition: max-height 1s ease-in-out; 73 } 74 75 .p-disabled, 76 .p-disabled * { 77 cursor: default; 78 pointer-events: none; 79 user-select: none; 80 } 81 82 .p-disabled, 83 .p-component:disabled { 84 opacity: dt('disabled.opacity'); 85 } 86 87 .pi { 88 font-size: dt('icon.size'); 89 } 90 91 .p-icon { 92 width: dt('icon.size'); 93 height: dt('icon.size'); 94 } 95 96 .p-overlay-mask { 97 background: dt('mask.background'); 98 color: dt('mask.color'); 99 position: fixed; 100 top: 0; 101 left: 0; 102 width: 100%; 103 height: 100%; 104 } 105 106 .p-overlay-mask-enter { 107 animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards; 108 } 109 110 .p-overlay-mask-leave { 111 animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards; 112 } 113
114 @keyframes p-overlay-mask-enter-animation { 115 from { 116 background: transparent; 117 } 118 to { 119 background: dt('mask.background'); 120 } 121 } 122 @keyframes p-overlay-mask-leave-animation { 123 from { 124 background: dt('mask.background'); 125 } 126 to { 127 background: transparent; 128 } 129 } 130`;var Q3=0,pv=(()=>{class e{document=F(Ze);use(t,n={}){let o=!1,r=t,a=null,{immediate:s=!0,manual:l=!1,name:c=`style_${++Q3}`,id:u=void 0,media:m=void 0,nonce:v=void 0,first:C=!1,props:_={}}=n;if(this.document){if(a=this.document.querySelector(`style[data-primeng-style-id="${c}"]`)||u&&this.document.getElementById(u)||this.document.createElement("style"),a){if(!a.isConnected){r=t;let E=this.document.head;hs(a,"nonce",v),C&&E.firstChild?E.insertBefore(a,E.firstChild):E.appendChild(a),Pp(a,{type:"text/css",media:m,nonce:v,"data-primeng-style-id":c})}a.textContent!==r&&(a.textContent=r)}return{id:u,name:c,el:a,css:r}}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Hr={_loadedStyleNames:new Set,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()}},Z3=` 131.p-hidden-accessible { 132 border: 0; 133 clip: rect(0 0 0 0); 134 height: 1px; 135 margin: -1px; 136 overflow: hidden; 137 padding: 0; 138 position: absolute; 139 width: 1px; 140} 141 142.p-hidden-accessible input, 143.p-hidden-accessible select { 144 transform: scale(0); 145} 146 147.p-overflow-hidden { 148 overflow: hidden; 149 padding-right: dt('scrollbar.width'); 150} 151`,Et=(()=>{class e{name="base";useStyle=F(pv);css=void 0;style=void 0;classes={};inlineStyles={};load=(t,n={},o=r=>r)=>{let r=o(Br`${Nt(t,{dt:Mn})}`);return r?this.useStyle.use(er(r),M({name:this.name},n)):{}};loadCSS=(t={})=>this.load(this.css,t);loadStyle=(t={},n="")=>this.load(this.style,t,(o="")=>Ye.transformCSS(t.name||this.name,`${o}${Br`${n}`}`));loadBaseCSS=(t={})=>this.load(Z3,t);loadBaseStyle=(t={},n="")=>this.load(uv,t,(o="")=>Ye.transformCSS(t.name||this.name,`${o}${Br`${n}`}`));getCommonTheme=t=>Ye.getCommon(this.name,t);getComponentTheme=t=>Ye.getComponent(this.name,t);getPresetTheme=(t,n,o)=>Ye.getCustomPreset(this.name,t,n,o);getLayerOrderThemeCSS=()=>Ye.getLayerOrderCSS(this.name);getStyleSheet=(t="",n={})=>{if(this.css){let o=Nt(this.css,{dt:Mn}),r=er(Br`${o}${t}`),a=Object.entries(n).reduce((s,[l,c])=>s.push(`${l}="${c}"`)&&s,[]).join(" ");return`<style type="text/css" data-primeng-style-id="${this.name}" ${a}>${r}</style>`}return""};getCommonThemeStyleSheet=(t,n={})=>Ye.getCommonStyleSheet(this.name,t,n);getThemeStyleSheet=(t,n={})=>{let o=[Ye.getStyleSheet(this.name,t,n)];if(this.style){let r=this.name==="base"?"global-style":`${this.name}-style`,a=Br`${Nt(this.style,{dt:Mn})}`,s=er(Ye.transformCSS(r,a)),l=Object.entries(n).reduce((c,[u,m])=>c.push(`${u}="${m}"`)&&c,[]).join(" ");o.push(`<style type="text/css" data-primeng-style-id="${r}" ${l}>${s}</style>`)}return o.join("")};static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var J3=(()=>{class e{theme=Ae(void 0);csp=Ae({nonce:void 0});isThemeChanged=!1;document=F(Ze);baseStyle=F(Et);constructor(){qt(()=>{Pt.on("theme:change",t=>{pt(()=>{this.isThemeChanged=!0,this.theme.set(t)})})}),qt(()=>{let t=this.theme();this.document&&t&&(this.isThemeChanged||this.onThemeChange(t),this.isThemeChanged=!1)})}ngOnDestroy(){Ye.clearLoadedStyleNames(),Pt.clear()}onThemeChange(t){Ye.setTheme(t),this.document&&this.loadCommonTheme()}loadCommonTheme(){if(this.theme()!=="none"&&!Ye.isStyleNameLoaded("common")){let{primitive:t,semantic:n,global:o,style:r}=this.baseStyle.getCommonTheme?.()||{},a={nonce:this.csp?.()?.nonce};this.baseStyle.load(t?.css,M({name:"primitive-variables"},a)),this.baseStyle.load(n?.css,M({name:"semantic-variables"},a)),this.baseStyle.load(o?.css,M({name:"global-variables"},a)),this.baseStyle.loadBaseStyle(M({name:"global-style"},a),r),Ye.setLoadedStyleName("common")}}
vendor: 4,682 bytes, line 151
151setThemeConfig(t){let{theme:n,csp:o}=t||{};n&&this.theme.set(n),o&&this.csp.set(o)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gp=(()=>{class e extends J3{ripple=Ae(!1);platformId=F(De);inputStyle=Ae(null);inputVariant=Ae(null);overlayAppendTo=Ae("self");overlayOptions={};csp=Ae({nonce:void 0});unstyled=Ae(void 0);pt=Ae(void 0);ptOptions=Ae(void 0);filterMatchModeOptions={text:[Ht.STARTS_WITH,Ht.CONTAINS,Ht.NOT_CONTAINS,Ht.ENDS_WITH,Ht.EQUALS,Ht.NOT_EQUALS],numeric:[Ht.EQUALS,Ht.NOT_EQUALS,Ht.LESS_THAN,Ht.LESS_THAN_OR_EQUAL_TO,Ht.GREATER_THAN,Ht.GREATER_THAN_OR_EQUAL_TO],date:[Ht.DATE_IS,Ht.DATE_IS_NOT,Ht.DATE_BEFORE,Ht.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",completed:"Completed",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"Search results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",fileChosenMessage:"Files",noFileChosenMessage:"No file chosen",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize",minimizeLabel:"Minimize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new _t;translationObserver=this.translationSource.asObservable();getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=M(M({},this.translation),t),this.translationSource.next(this.translation)}setConfig(t){let{csp:n,ripple:o,inputStyle:r,inputVariant:a,theme:s,overlayOptions:l,translation:c,filterMatchModeOptions:u,overlayAppendTo:m,zIndex:v,ptOptions:C,pt:_,unstyled:E}=t||{};n&&this.csp.set(n),m&&this.overlayAppendTo.set(m),o&&this.ripple.set(o),r&&this.inputStyle.set(r),a&&this.inputVariant.set(a
151),l&&(this.overlayOptions=l),c&&this.setTranslation(c),u&&(this.filterMatchModeOptions=u),v&&(this.zIndex=v),_&&this.pt.set(_),C&&this.ptOptions.set(C),E&&this.unstyled.set(E),s&&this.setThemeConfig({theme:s,csp:n})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),X3=new Me("PRIME_NG_CONFIG");function PW(...e){let i=e?.map(n=>({provide:X3,useValue:n,multi:!1})),t=Ma(()=>{let n=F(Gp);e?.forEach(o=>n.setConfig(o))});return ml([...i,t])}var hv=(()=>{class e extends Et{name="common";static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hi=new Me("PARENT_INSTANCE"),li=(()=>{class e{document=F(Ze);platformId=F(De);el=F(ft);injector=F(Cn);cd=F(_i);renderer=F(ct);config=F(Gp);$parentInstance=F(Hi,{optional:!0,skipSelf:!0})??void 0;baseComponentStyle=F(hv);baseStyle=F(Et);scopedStyleEl;parent=this.$params.parent;cn=ro;_themeScopedListener;dt=xe();unstyled=xe();pt=xe();ptOptions=xe();$attrSelector=tr("pc");get $name(){return this.componentName||this.constructor?.name?.replace(/^_/,"")||"UnknownComponent"}get $hostName(){return this.hostName}$unstyled=Pe(()=>this.unstyled()!==void 0?this.unstyled():this.config?.unstyled()||!1);$pt=Pe(()=>Nt(this.pt()||this.directivePT(),this.$params));directivePT=Ae(void 0);get $globalPT(){return this._getPT(this.config?.pt(),void 0,t=>Nt(t,this.$params))}get $defaultPT(){return this._getPT(this.config?.pt(),void 0,t=>this._getOptionValue(t,this.$hostName||this.$name,this.$params)||Nt(t,this.$params))}get $style(){return M(M({theme:void 0,css:void 0,classes:void 0,inlineStyles:void 0},(this._getHostInstance(this)||{}).$style),this._componentStyle)}get $styleOptions(){return{nonce:this.config?.csp().nonce}}get $params(){let t=this._getHostInstance(this)||this.$parentInstance;return{instance:this,parent:{instance:t}}}onInit(){}onChanges(t){}onDoCheck(){}onAfterContentInit(){}onAfterContentChecked(){}onAfterViewInit(){}onAfterViewChecked(){}onDestroy(){}constructor(){qt(t=>{this.document&&!Ru(this.platformId)&&(Pt.off("theme:change",this._themeScopedListener),this.dt()?(this._loadScopedThemeStyles(this.dt()),this._themeScopedListener=()=>this._loadScopedThemeStyles(this.dt()),this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()),t(()=>{Pt.off("theme:change",this._themeScopedListener)})}),qt(t=>{this.document&&!Ru(this.platformId)&&(Pt.off("theme:change",this._loadCoreStyles),this.$unstyled()||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))),t(()=>{Pt.off("theme:change",this._loadCoreStyles)})}),this._hook("onBeforeInit")}ngOnInit(){this._loadCoreStyles(),this._loadStyles(),this.onInit(),this._hook("onInit")}ngOnChanges(t){this.onChanges(t),this._hook("onChanges",t)}ngDoCheck(){this.onDoCheck(),this._hook("onDoCheck")}ngAfterContentInit(){this.onAfterContentInit(),this._hook("onAfterContentInit")}ngAfterContentChecked(){this.onAfterContentChecked(),this._hook("onAfterContentChecked")}ngAfterViewInit(){this.el?.nativeElement?.setAttribute(this.$attrSelector,""),this.onAfterViewInit(),this._hook("onAfterViewInit")}ngAfterViewChecked(){this.onAfterViewChecked(),this._hook("onAfterViewChecked")}ngOnDestroy(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this.onDestroy(),this._hook("onDestroy")}_mergeProps(t,...n){return yc(t)?t(...n):Op(...n)}_getHostInstance(t){return t?this.$hostName?this.$name===this.$hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0}_getPropValue(t){return this[t]||this._getHostInstance(this)?.[t]}_getOptionValue(t,n="",o={}){return wc(t,n,o)}_hook(t,...n){if(!this.$hostName){let o=this._usePT(this._getPT(this.$pt(),this.$name),this._getOptionValue,`hooks.${t}`),r=this._useDefaultPT(this._getOptionValue,`hooks.${t}`);o?.(...n),r?.(...n)}}_load(){Hr.isStyleNameLoaded("base")||(this.baseStyle.loadBaseCSS(this.$styleOptions),this._loadGlobalStyles(),Hr.setLoadedStyleName("base")),this._loadThemeStyles()}_loadStyles(){this._load(),this._themeChangeListener(()=>this._load())}_loadGlobalStyles(){let t=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);
vendor: 15,300 bytes, lines 151-155
151je(t)&&this.baseStyle.load(t,M({name:"global"},this.$styleOptions))}_loadCoreStyles(){!Hr.isStyleNameLoaded(this.$style?.name)&&this.$style?.name&&(this.baseComponentStyle.loadCSS(this.$styleOptions),this.$style.loadCSS(this.$styleOptions),Hr.setLoadedStyleName(this.$style.name))}_loadThemeStyles(){if(!(this.$unstyled()||this.config?.theme()==="none")){if(!Ye.isStyleNameLoaded("common")){let{primitive:t,semantic:n,global:o,style:r}=this.$style?.getCommonTheme?.()||{};this.baseStyle.load(t?.css,M({name:"primitive-variables"},this.$styleOptions)),this.baseStyle.load(n?.css,M({name:"semantic-variables"},this.$styleOptions)),this.baseStyle.load(o?.css,M({name:"global-variables"},this.$styleOptions)),this.baseStyle.loadBaseStyle(M({name:"global-style"},this.$styleOptions),r),Ye.setLoadedStyleName("common")}if(!Ye.isStyleNameLoaded(this.$style?.name)&&this.$style?.name){let{css:t,style:n}=this.$style?.getComponentTheme?.()||{};this.$style?.load(t,M({name:`${this.$style?.name}-variables`},this.$styleOptions)),this.$style?.loadStyle(M({name:`${this.$style?.name}-style`},this.$styleOptions),n),Ye.setLoadedStyleName(this.$style?.name)}if(!Ye.isStyleNameLoaded("layer-order")){let t=this.$style?.getLayerOrderThemeCSS?.();this.baseStyle.load(t,M({name:"layer-order",first:!0},this.$styleOptions)),Ye.setLoadedStyleName("layer-order")}}}_loadScopedThemeStyles(t){let{css:n}=this.$style?.getPresetTheme?.(t,`[${this.$attrSelector}]`)||{},o=this.$style?.load(n,M({name:`${this.$attrSelector}-${this.$style?.name}`},this.$styleOptions));this.scopedStyleEl=o?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(t=()=>{}){Hr.clearLoadedStyleNames(),Pt.on("theme:change",t.bind(this))}_removeThemeListeners(){Pt.off("theme:change",this._loadCoreStyles),Pt.off("theme:change",this._load),Pt.off("theme:change",this._themeScopedListener)}_getPTValue(t={},n="",o={},r=!0){let a=/./g.test(n)&&!!o[n.split(".")[0]],{mergeSections:s=!0,mergeProps:l=!1}=this._getPropValue("ptOptions")?.()||this.config?.ptOptions?.()||{},c=r?a?this._useGlobalPT(this._getPTClassValue,n,o):this._useDefaultPT(this._getPTClassValue,n,o):void 0,u=a?void 0:this._usePT(this._getPT(t,this.$hostName||this.$name),this._getPTClassValue,n,ae(M({},o),{global:c||{}})),m=this._getPTDatasets(n);return s||!s&&u?l?this._mergeProps(l,c,u,m):M(M(M({},c),u),m):M(M({},u),m)}_getPTDatasets(t=""){let n="data-pc-",o=t==="root"&&je(this.$pt()?.["data-pc-section"]);return t!=="transition"&&ae(M({},t==="root"&&ae(M({[`${n}name`]:lo(o?this.$pt()?.["data-pc-section"]:this.$name)},o&&{[`${n}extend`]:lo(this.$name)}),{[`${this.$attrSelector}`]:""})),{[`${n}section`]:lo(t.includes(".")?t.split(".").at(-1)??"":t)})}_getPTClassValue(t,n,o){let r=this._getOptionValue(t,n,o);return Ii(r)||Np(r)?{class:r}:r}_getPT(t,n="",o){let r=(a,s=!1)=>{let l=o?o(a):a,c=lo(n),u=lo(this.$hostName||this.$name);return(s?c!==u?l?.[c]:void 0:l?.[c])??l};return t?.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)}_usePT(t,n,o,r){let a=s=>n?.call(this,s,o,r);if(t?.hasOwnProperty("_usept")){let{mergeSections:s=!0,mergeProps:l=!1}=t._usept||this.config?.ptOptions()||{},c=a(t.originalValue),u=a(t.value);return c===void 0&&u===void 0?void 0:Ii(u)?u:Ii(c)?c:s||!s&&u?l?this._mergeProps(l,c,u):M(M({},c),u):u}return a(t)}_useGlobalPT(t,n,o){return this._usePT(this.$globalPT,t,n,o)}_useDefaultPT(t,n,o){return this._usePT(this.$defaultPT,t,n,o)}ptm(t="",n={}){return this._getPTValue(this.$pt(),t,M(M({},this.$params),n))}ptms(t,n={}){return t.reduce((o,r)=>(o=Op(o,this.ptm(r,n))||{},o),{})}ptmo(t={},n="",o={}){return this._getPTValue(t,n,M({instance:this},o),!1)}cx(t,n={}){return this.$unstyled()?void 0:ro(this._getOptionValue(this.$style.classes,t,M(M({},this.$params),n)))}sx(t="",n=!0,o={}){if(n){let r=this._getOptionValue(this.$style.inlineStyles,t,M(M({},this.$params),o)),a=this._getOptionValue(this.baseComponentStyle.inlineStyles,t,M(M({},this.$params),o));return M(M({},a),r)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ce({type:e,inputs:{dt:[1,"dt"],unstyled:[1,"unstyled"],pt:[1,"pt"],ptOptions:[1,"ptOptions"]},features:[Te([hv,Et]),qe]})}return e})();var Up=(()=>{class e{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(t,n){t&&n&&(t.classList?t.classList.add(n):t.className+=" "+n)}static addMultipleClasses(t,n){if(t&&n)if(t.classList){let o=n.trim().split(" ");for(let r=0;r<o.length;r++)t.classList.add(o[r])}else{let o=n.split(" ");for(let r=0;r<o.length;r++)t.className+=" "+o[r]}}static removeClass(t,n){t&&n&&(t.classList?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(t,n){t&&n&&[n].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(r=>this.removeClass(t,r)))}static hasClass(t,n){return t&&n?t.classList?t.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(t.className):!1}static siblings(t){return Array.prototype.filter.call(t.parentNode.children,function(n){return n!==t})}static find(t,n){return Array.from(t.querySelectorAll(n))}static findSingle(t,n){return this.isElement(t)?t.querySelector(n):null}static index(t){let n=t.parentNode.childNodes,o=0;for(var r=0;r<n.length;r++){if(n[r]==t)return o;n[r].nodeType==1&&o++}return-1}static indexWithinGroup(t,n){let o=t.parentNode?t.parentNode.childNodes:[],r=0;for(var a=0;a<o.length;a++){if(o[a]==t)return r;o[a].attributes&&o[a].attributes[n]&&o[a].nodeType==1&&r++}return-1}static appendOverlay(t,n,o="self"){o!=="self"&&t&&n&&this.appendChild(t,n)}static alignOverlay(t,n,o="self",r=!0){t&&n&&(r&&(t.style.minWidth=`${e.getOuterWidth(n)}px`),o==="self"?this.relativePosition(t,n):this.absolutePosition(t,n))}static relativePosition(t,n,o=!0){let r=O=>{if(O)return getComputedStyle(O).getPropertyValue("position")==="relative"?O:r(O.parentElement)},a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),s=n.offsetHeight,l=n.getBoundingClientRect(),c=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),m=this.getViewport(),C=r(t)?.getBoundingClientRect()||{top:-1*c,left:-1*u},_,E,D="top";l.top+s+a.height>m.height?(_=l.top-C.top-a.height,D="bottom",l.top+_<0&&(_=-1*l.top)):(_=s+l.top-C.top,D="top");let P=l.left+a.width-m.width,T=l.left-C.left;if(a.width>m.width?E=(l.left-C.left)*-1:P>0?E=T-P:E=l.left-C.left,t.style.top=_+"px",t.style.left=E+"px",t.style.transformOrigin=D,o){let O=ds(/-anchor-gutter$/)?.value;t.style.marginTop=D==="bottom"?`calc(${O??"2px"} * -1)`:O??""}}static absolutePosition(t,n,o=!0){let r=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),a=r.height,s=r.width,l=n.offsetHeight,c=n.offsetWidth,u=n.getBoundingClientRect(),m=this.getWindowScrollTop(),v=this.getWindowScrollLeft(),C=this.getViewport(),_,E;u.top+l+a>C.height?(_=u.top+m-a,t.style.transformOrigin="bottom",_<0&&(_=m)):(_=l+u.top+m,t.style.transformOrigin="top"),u.left+s>C.width?E=Math.max(0,u.left+v+c-s):E=u.left+v,t.style.top=_+"px",t.style.left=E+"px",o&&(t.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(t,n=[]){return t.parentNode===null?n:this.getParents(t.parentNode,n.concat([t.parentNode]))}static getScrollableParents(t){let n=[];if(t){let o=this.getParents(t),r=/(auto|scroll)/,a=s=>{let l=window.getComputedStyle(s,null);return r.test(l.getPropertyValue("overflow"))||r.test(l.getPropertyValue("overflowX"))||r.test(l.getPropertyValue("overflowY"))};for(let s of o){let l=s.nodeType===1&&s.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let m=this.findSingle(s,u);m&&a(m)&&n.push(m)}}s.nodeType!==9&&a(s)&&n.push(s)}}return n}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let n=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",n}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let n=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",n}static getHiddenElementDimensions(t){let n={};return t.style.visibility="hidden",t.style.display="block",n.width=t.offsetWidth,n.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",n}static scrollInView(t,n){let o=getComputedStyle(t).getPropertyValue("borderTopWidth"),r=o?parseFloat(o):0,a=getComputedStyle(t).getPropertyValue("paddingTop"),s=a?parseFloat(a):0,l=t.getBoundingClientRect(),u=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-r-s,m=t.scrollTop,v=t.clientHeight,C=this.getOuterHeight(n);u<0?t.scrollTop=m+u:u+C>v&&(t.scrollTop=m+u-v+C)}static fadeIn(t,n){t.style.opacity=0;let o=+new Date,r=0,a=function(){r=+t.style.opacity.replace(",",".")+(new Date().getTime()-o)/n,t.style.opacity=r,o=+new Date,+r<1&&(window.requestAnimationFrame?window.requestAnimationFrame(a):setTimeout(a,16))};a()}static fadeOut(t,n){var o=1,r=50,a=n,s=r/a;let l=setInterval(()=>{o=o-s,o<=0&&(o=0,clearInterval(l)),t.style.opacity=o},r)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,n){var o=Element.prototype,r=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(a){return[].indexOf.call(document.querySelectorAll(a),this)!==-1};return r.call(t,n)}static getOuterWidth(t,n){let o=t.offsetWidth;if(n){let r=getComputedStyle(t);o+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return o}static getHorizontalPadding(t){let n=getComputedStyle(t);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(t){let n=getComputedStyle(t);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(t){let n=t.offsetWidth,o=getComputedStyle(t);return n+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static width(t){let n=t.offsetWidth,o=getComputedStyle(t);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static getInnerHeight(t){let n=t.offsetHeight,o=getComputedStyle(t);return n+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n}static getOuterHeight(t,n){let o=t.offsetHeight;if(n){let r=getComputedStyle(t);o+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return o}static getHeight(t){let n=t.offsetHeight,o=getComputedStyle(t);return n-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),n}static getWidth(t){let n=t.offsetWidth,o=getComputedStyle(t);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),n}static getViewport(){let t=window,n=document,o=n.documentElement,r=n.getElementsByTagName("body")[0],a=t.innerWidth||o.clientWidth||r.clientWidth,s=t.innerHeight||o.clientHeight||r.clientHeight;return{width:a,height:s}}static getOffset(t){var n=t.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,n){let o=t.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(n,t)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return!0;var o=t.indexOf("Trident/");if(o>0){var r=t.indexOf("rv:");return!0}var a=t.indexOf("Edge/");return a>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,n){if(this.isElement(n))n.appendChild(t);else if(n&&n.el&&n.el.nativeElement)n.el.nativeElement.appendChild(t);else throw"Cannot append "+n+" to "+t}static removeChild(t,n){if(this.isElement(n))n.removeChild(t);else if(n.el&&n.el.nativeElement)n.el.nativeElement.removeChild(t);else throw"Cannot remove "+t+" from "+n}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode?.removeChild(t)}static isElement(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}static calculateScrollbarWidth(t){if(t){let n=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let n=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(t,n,o){t[n].apply(t,o)}static clearSelection(){if(window.getSelection&&window.getSelection())window.getSelection()?.empty?window.getSelection()?.empty():window.getSelection()?.removeAllRanges&&(window.getSelection()?.rangeCount||0)>0&&(window.getSelection()?.getRangeAt(0)?.getClientRects()?.length||0)>0&&window.getSelection()?.removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return!t||t.offsetParent===null}static isVisible(t){return t&&t.offsetParent!=null}static isExist(t){return t!==null&&typeof t<"u"&&t.nodeName&&t.parentNode}static focus(t,n){t&&document.activeElement!==t&&t.focus(n)}static getFocusableSelectorString(t=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, 152 [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, 153 input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, 154 select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, 155 textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
156 [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, 157 [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, 158 .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, 159 .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`}static getFocusableElements(t,n=""){let o=this.find(t,this.getFocusableSelectorString(n)),r=[];for(let a of o){let s=getComputedStyle(a);this.isVisible(a)&&s.display!="none"&&s.visibility!="hidden"&&r.push(a)}return r}static getFocusableElement(t,n=""){let o=this.findSingle(t,this.getFocusableSelectorString(n));if(o){let r=getComputedStyle(o);if(this.isVisible(o)&&r.display!="none"&&r.visibility!="hidden")return o}return null}static getFirstFocusableElement(t,n=""){let o=this.getFocusableElements(t,n);return o.length>0?o[0]:null}static getLastFocusableElement(t,n){let o=this.getFocusableElements(t,n);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(t,n=!1){let o=e.getFocusableElements(t),r=0;if(o&&o.length>0){let a=o.indexOf(o[0].ownerDocument.activeElement);n?a==-1||a===0?r=o.length-1:r=a-1:a!=-1&&a!==o.length-1&&(r=a+1)}return o[r]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection()?.toString():document.getSelection?document.getSelection()?.toString():document.selection?document.selection.createRange().text:null}static getTargetElement(t,n){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement?.parentElement;default:let o=typeof t;if(o==="string")return document.querySelector(t);if(o==="object"&&t.hasOwnProperty("nativeElement"))return this.isExist(t.nativeElement)?t.nativeElement:void 0;let a=(s=>!!(s&&s.constructor&&s.call&&s.apply))(t)?t():t;return a&&a.nodeType===9||this.isExist(a)?a:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(t,n){if(t){let o=t.getAttribute(n);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(t="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,t)}static unblockBodyScroll(t="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,t)}static createElement(t,n={},...o){if(t){let r=document.createElement(t);return this.setAttributes(r,n),r.append(...o),r}}static setAttribute(t,n="",o){this.isElement(t)&&o!==null&&o!==void 0&&t.setAttribute(n,o)}static setAttributes(t,n={}){if(this.isElement(t)){let o=(r,a)=>{let s=t?.$attrs?.[r]?[t?.$attrs?.[r]]:[];return[a].flat().reduce((l,c)=>{if(c!=null){let u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){let m=Array.isArray(c)?o(r,c):Object.entries(c).map(([v,C])=>r==="style"&&(C||C===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?v:void 0);l=m.length?l.concat(m.filter(v=>!!v)):l}}return l},s)};Object.entries(n).forEach(([r,a])=>{if(a!=null){let s=r.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),a):r==="pBind"?this.setAttributes(t,a):(a=r==="class"?[...new Set(o("class",a))].join(" ").trim():r==="style"?o("style",a).join(";").trim():a,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=a),t.setAttribute(r,a))}})}}static isFocusableElement(t,n=""){return this.isElement(t)?t.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, 160 [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, 161 input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, 162 select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, 163 textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
164 [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}, 165 [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`):!1}}return e})();function gv(){D0({variableName:Hp("scrollbar.width").name})}function mv(){P0({variableName:Hp("scrollbar.width").name})}var Tc=class{element;listener;scrollableParents;constructor(i,t=()=>{}){this.element=i,this.listener=t}bindScrollListener(){this.scrollableParents=Up.getScrollableParents(this.element);for(let i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}};var Ic=(()=>{class e extends li{autofocus=!1;focused=!1;platformId=F(De);document=F(Ze);host=F(ft);onAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}onAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){Ee(this.platformId)&&this.autofocus&&setTimeout(()=>{let t=Up.getFocusableElements(this.host?.nativeElement);t.length===0&&this.host.nativeElement.focus(),t.length>0&&t[0].focus(),this.focused=!0})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,selectors:[["","pAutoFocus",""]],inputs:{autofocus:[0,"pAutoFocus","autofocus"]},features:[ue]})}return e})();var Mc=(()=>{class e extends li{modelValue=Ae(void 0);$filled=Pe(()=>je(this.modelValue()));writeModelValue(t){this.modelValue.set(t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,features:[ue]})}return e})();var fv=(()=>{class e extends Mc{required=xe(void 0,{transform:ge});invalid=xe(void 0,{transform:ge});disabled=xe(void 0,{transform:ge});name=xe();_disabled=Ae(!1);$disabled=Pe(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(t){this._disabled.set(t)}writeControlValue(t,n){}writeValue(t){this.writeControlValue(t,this.writeModelValue.bind(this))}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.writeDisabledState(t),this.cd.markForCheck()}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[ue]})}return e})();var gt=(()=>{class e{el;renderer;pBind=xe(void 0);_attrs=Ae(void 0);attrs=Pe(()=>this._attrs()||this.pBind());styles=Pe(()=>this.attrs()?.style);classes=Pe(()=>ro(this.attrs()?.class));listeners=[];constructor(t,n){this.el=t,this.renderer=n,qt(()=>{let s=this.attrs()||{},{style:o,class:r}=s,a=Cr(s,["style","class"]);for(let[l,c]of Object.entries(a))if(l.startsWith("on")&&typeof c=="function"){let u=l.slice(2).toLowerCase();if(!this.listeners.some(m=>m.eventName===u)){let m=this.renderer.listen(this.el.nativeElement,u,c);this.listeners.push({eventName:u,unlisten:m})}}else c==null?this.renderer.removeAttribute(this.el.nativeElement,l):(this.renderer.setAttribute(this.el.nativeElement,l,c.toString()),l in this.el.nativeElement&&(this.el.nativeElement[l]=c))})}ngOnDestroy(){this.clearListeners()}setAttrs(t){Z0(this._attrs(),t)||this._attrs.set(t)}clearListeners(){this.listeners.forEach(({unlisten:t})=>t()),this.listeners=[]}static \u0275fac=function(n){return new(n||e)(I(ft),I(ct))};static \u0275dir=ce({type:e,selectors:[["","pBind",""]],hostVars:4,hostBindings:function(n,o){n&2&&(yl(o.styles()),ie(o.classes()))},inputs:{pBind:[1,"pBind"]}})}return e})(),Dc=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({})}return e})();var ek=["*"],tk={root:"p-fluid"},vv=(()=>
vendor: 9,276 bytes, lines 165-289
165{class e extends Et{name="fluid";classes=tk;static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var Cv=new Me("FLUID_INSTANCE"),Gr=(()=>{class e extends li{$pcFluid=F(Cv,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=F(gt,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=F(vv);static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["p-fluid"]],hostVars:2,hostBindings:function(n,o){n&2&&ie(o.cx("root"))},features:[Te([vv,{provide:Cv,useExisting:e},{provide:Hi,useExisting:e}]),Yi([gt]),ue],ngContentSelectors:ek,decls:1,vars:0,template:function(n,o){n&1&&(jt(),Tt(0))},dependencies:[J],encapsulation:2,changeDetection:0})}return e})();var bv=(()=>{class e extends fv{pcFluid=F(Gr,{optional:!0,host:!0,skipSelf:!0});fluid=xe(void 0,{transform:ge});variant=xe();size=xe();inputSize=xe();pattern=xe();min=xe();max=xe();step=xe();minlength=xe();maxlength=xe();$variant=Pe(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275dir=ce({type:e,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[ue]})}return e})();var _v=` 166 .p-badge { 167 display: inline-flex; 168 border-radius: dt('badge.border.radius'); 169 align-items: center; 170 justify-content: center; 171 padding: dt('badge.padding'); 172 background: dt('badge.primary.background'); 173 color: dt('badge.primary.color'); 174 font-size: dt('badge.font.size'); 175 font-weight: dt('badge.font.weight'); 176 min-width: dt('badge.min.width'); 177 height: dt('badge.height'); 178 } 179 180 .p-badge-dot { 181 width: dt('badge.dot.size'); 182 min-width: dt('badge.dot.size'); 183 height: dt('badge.dot.size'); 184 border-radius: 50%; 185 padding: 0; 186 } 187 188 .p-badge-circle { 189 padding: 0; 190 border-radius: 50%; 191 } 192 193 .p-badge-secondary { 194 background: dt('badge.secondary.background'); 195 color: dt('badge.secondary.color'); 196 } 197 198 .p-badge-success { 199 background: dt('badge.success.background'); 200 color: dt('badge.success.color'); 201 } 202 203 .p-badge-info { 204 background: dt('badge.info.background'); 205 color: dt('badge.info.color'); 206 } 207 208 .p-badge-warn { 209 background: dt('badge.warn.background'); 210 color: dt('badge.warn.color'); 211 } 212 213 .p-badge-danger { 214 background: dt('badge.danger.background'); 215 color: dt('badge.danger.color'); 216 } 217 218 .p-badge-contrast { 219 background: dt('badge.contrast.background'); 220 color: dt('badge.contrast.color'); 221 } 222 223 .p-badge-sm { 224 font-size: dt('badge.sm.font.size'); 225 min-width: dt('badge.sm.min.width'); 226 height: dt('badge.sm.height'); 227 } 228 229 .p-badge-lg { 230 font-size: dt('badge.lg.font.size'); 231 min-width: dt('badge.lg.min.width'); 232 height: dt('badge.lg.height'); 233 } 234 235 .p-badge-xl { 236 font-size: dt('badge.xl.font.size'); 237 min-width: dt('badge.xl.min.width'); 238 height: dt('badge.xl.height'); 239 } 240`;var ik=` 241 ${_v} 242 243 /* For PrimeNG (directive)*/ 244 .p-overlay-badge { 245 position: relative; 246 } 247 248 .p-overlay-badge > .p-badge { 249 position: absolute; 250 top: 0; 251 inset-inline-end: 0; 252 transform: translate(50%, -50%); 253 transform-origin: 100% 0; 254 margin: 0; 255 } 256`,nk={root:({instance:e})=>{let i=typeof e.value=="function"?e.value():e.value,t=typeof e.size=="function"?e.size():e.size,n=typeof e.badgeSize=="function"?e.badgeSize():e.badgeSize,o=typeof e.severity=="function"?e.severity():e.severity;return["p-badge p-component",{"p-badge-circle":je(i)&&String(i).length===1,"p-badge-dot":Xo(i),"p-badge-sm":t==="small"||n==="small","p-badge-lg":t==="large"||n==="large","p-badge-xl":t==="xlarge"||n==="xlarge","p-badge-info":o==="info","p-badge-success":o==="success","p-badge-warn":o==="warn","p-badge-danger":o==="danger","p-badge-secondary":o==="secondary","p-badge-contrast":o==="contrast"}]}},yv=(()=>{class e extends Et{name="badge";style=ik;classes=nk;static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var wv=new Me("BADGE_INSTANCE");var jp=(()=>{class e extends li{$pcBadge=F(wv,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=F(gt,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass=xe();badgeSize=xe();size=xe();severity=xe();value=xe();badgeDisabled=xe(!1,{transform:ge});_componentStyle=F(yv);static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["p-badge"]],hostVars:4,hostBindings:function(n,o){n&2&&(ie(o.cn(o.cx("root"),o.styleClass())),ot("display",o.badgeDisabled()?"none":null))},inputs:{styleClass:[1,"styleClass"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[Te([yv,{provide:wv,useExisting:e},{provide:Hi,useExisting:e}]),Yi([gt]),ue],decls:1,vars:1,template:function(n,o){n&1&&b(0),n&2&&A(o.value())},dependencies:[J,nn,Dc],encapsulation:2,changeDetection:0})}return e})(),xv=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({imports:[jp,nn,nn]})}return e})();var rk=["*"],ak=` 257.p-icon { 258 display: inline-block; 259 vertical-align: baseline; 260 flex-shrink: 0; 261} 262 263.p-icon-spin { 264 -webkit-animation: p-icon-spin 2s infinite linear; 265 animation: p-icon-spin 2s infinite linear; 266} 267 268@-webkit-keyframes p-icon-spin { 269 0% { 270 -webkit-transform: rotate(0deg); 271 transform: rotate(0deg); 272 } 273 100% { 274 -webkit-transform: rotate(359deg); 275 transform: rotate(359deg); 276 } 277} 278 279@keyframes p-icon-spin { 280 0% { 281 -webkit-transform: rotate(0deg); 282 transform: rotate(0deg); 283 } 284 100% { 285 -webkit-transform: rotate(359deg); 286 transform: rotate(359deg); 287 } 288} 289`,Sv=(()=>{class e extends Et{name="baseicon";css=ak;static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ci=(()=>{class e extends li{spin=!1;_componentStyle=F(Sv);getClassNames(){return ro("p-icon",{"p-icon-spin":this.spin})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["ng-component"]],hostAttrs:["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],hostVars:2,hostBindings:function(n,o){n&2&&ie(o.getClassNames())},inputs:{spin:[2,"spin","spin",ge]},features:[Te([Sv]),ue],ngContentSelectors:rk,decls:1,vars:0,template:function(n,o){n&1&&(jt(),Tt(0))},encapsulation:2,changeDetection:0})}return e})();var sk=["data-p-icon","calendar"],kv=(()=>{class e extends ci{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["","data-p-icon","calendar"]],features:[ue],attrs:sk,decls:1,vars:0,consts:[["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.
2890347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){n&1&&(Oe(),Jt(0,"path",0))},encapsulation:2})}return e})();var lk=["data-p-icon","chevron-down"],Ev=(()=>{class e extends ci{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["","data-p-icon","chevron-down"]],features:[ue],attrs:lk,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){n&1&&(Oe(),Jt(0,"path",0))},encapsulation:2})}return e})();var ck=["data-p-icon","chevron-left"],Tv=(()=>{class e extends ci{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["","data-p-icon","chevron-left"]],features:[ue],attrs:ck,decls:1,vars:0,consts:[["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){n&1&&(Oe(),Jt(0,"path",0))},encapsulation:2})}return e})();var dk=["data-p-icon","chevron-right"],Iv=(()=>{class e extends ci{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["","data-p-icon","chevron-right"]],features:[ue],attrs:dk,decls:1,vars:0,consts:[["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){n&1&&(Oe(),Jt(0,"path",0))},encapsulation:2})}return e})();var uk=["data-p-icon","chevron-up"],Mv=(()=>{class e extends ci{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["","data-p-icon","chevron-up"]],features:[ue],attrs:uk,decls:1,vars:0,consts:[["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){n&1&&(Oe(),Jt(0,"path",0))},encapsulation:2})}return e})();var pk=["data-p-icon","spinner"],Dv=(()=>{class e extends ci{pathId;onInit(){this.pathId="url(#"+tr()+")"}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["","data-p-icon","spinner"]],features:[ue],attrs:pk,decls:5,vars:2,consts:[["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.9
28915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){n&1&&(Oe(),ku(0,"g"),Jt(1,"path",0),Eu(),ku(2,"defs")(3,"clipPath",1),Jt(4,"rect",2),Eu()()),n&2&&(ve("clip-path",o.pathId),d(3),Lm("id",o.pathId))},encapsulation:2})}return e})();var hk=["data-p-icon","times"],Pv=(()=>{class e extends ci{static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["","data-p-icon","times"]],features:[ue],attrs:hk,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){n&1&&(Oe(),Jt(0,"path",0))},encapsulation:2})}return e})();var Rv=` 290 .p-ink { 291 display: block; 292 position: absolute; 293 background: dt('ripple.background'); 294 border-radius: 100%; 295 transform: scale(0); 296 pointer-events: none; 297 } 298 299 .p-ink-active { 300 animation: ripple 0.4s linear; 301 } 302 303 @keyframes ripple { 304 100% { 305 opacity: 0; 306 transform: scale(2.5); 307 } 308 } 309`;var gk=` 310 ${Rv} 311 312 /* For PrimeNG */ 313 .p-ripple { 314 overflow: hidden; 315 position: relative; 316 } 317 318 .p-ripple-disabled .p-ink { 319 display: none !important; 320 } 321 322 @keyframes ripple { 323 100% { 324 opacity: 0; 325 transform: scale(2.5); 326 } 327 } 328`,mk={root:"p-ink"},Fv=(()=>{class e extends Et{name="ripple";style=gk;classes=mk;static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var Pc=(()=>{class e extends li{zone=F(qn);_componentStyle=F(Fv);animationListener;mouseDownListener;timeout;constructor(){super(),qt(()=>{Ee(this.platformId)&&(this.config.ripple()?this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))}):this.remove())})}onAfterViewInit(){}onMouseDown(t){let n=this.getInk();if(!n||this.document.defaultView?.getComputedStyle(n,null).display==="none")return;if(so(n,"p-ink-active"),!Fp(n)&&!Ap(n)){let s=Math.max(Jo(this.el.nativeElement),B0(this.el.nativeElement));n.style.height=s+"px",n.style.width=s+"px"}let o=z0(this.el.nativeElement),r=t.pageX-o.left+this.document.body.scrollTop-Ap(n)/2,a=t.pageY-o.top+this.document.body.scrollLeft-Fp(n)/2;this.renderer.setStyle(n,"top",a+"px"),this.renderer.setStyle(n,"left",r+"px"),ao(n,"p-ink-active"),this.timeout=setTimeout(()=>{let s=this.getInk();s&&so(s,"p-ink-active")},401)}getInk(){let t=this.el.nativeElement.children;for(let n=0;n<t.length;n++)if(typeof t[n].className=="string"&&t[n].className.indexOf("p-ink")!==-1)return t[n];return null}resetInk(){let t=this.getInk();t&&so(t,"p-ink-active")}onAnimationEnd(t){this.timeout&&clearTimeout(this.timeout),so(t.currentTarget,"p-ink-active")}create(){let t=this.renderer.createElement("span");this.renderer.addClass(t,"p-ink"),this.renderer.appendChild(this.el.nativeElement,t),this.renderer.setAttribute(t,"aria-hidden","true"),this.renderer.setAttribute(t,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(t,"animationend",this.onAnimationEnd.bind(this)))}remove(){let t=this.getInk();t&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,G0(t))}onDestroy(){this.config&&this.config.ripple()&&this.remove()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ce({type:e,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple"],features:[Te([Fv]),ue]})}return e})();var Av
vendor: 21,333 bytes, lines 328-978
328=` 329 .p-button { 330 display: inline-flex; 331 cursor: pointer; 332 user-select: none; 333 align-items: center; 334 justify-content: center; 335 overflow: hidden; 336 position: relative; 337 color: dt('button.primary.color'); 338 background: dt('button.primary.background'); 339 border: 1px solid dt('button.primary.border.color'); 340 padding: dt('button.padding.y') dt('button.padding.x'); 341 font-size: 1rem; 342 font-family: inherit; 343 font-feature-settings: inherit; 344 transition: 345 background dt('button.transition.duration'), 346 color dt('button.transition.duration'), 347 border-color dt('button.transition.duration'), 348 outline-color dt('button.transition.duration'), 349 box-shadow dt('button.transition.duration'); 350 border-radius: dt('button.border.radius'); 351 outline-color: transparent; 352 gap: dt('button.gap'); 353 } 354 355 .p-button:disabled { 356 cursor: default; 357 } 358 359 .p-button-icon-right { 360 order: 1; 361 } 362 363 .p-button-icon-right:dir(rtl) { 364 order: -1; 365 } 366 367 .p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) { 368 order: 1; 369 } 370 371 .p-button-icon-bottom { 372 order: 2; 373 } 374 375 .p-button-icon-only { 376 width: dt('button.icon.only.width'); 377 padding-inline-start: 0; 378 padding-inline-end: 0; 379 gap: 0; 380 } 381 382 .p-button-icon-only.p-button-rounded { 383 border-radius: 50%; 384 height: dt('button.icon.only.width'); 385 } 386 387 .p-button-icon-only .p-button-label { 388 visibility: hidden; 389 width: 0; 390 } 391 392 .p-button-icon-only::after { 393 content: "\0A0"; 394 visibility: hidden; 395 width: 0; 396 } 397 398 .p-button-sm { 399 font-size: dt('button.sm.font.size'); 400 padding: dt('button.sm.padding.y') dt('button.sm.padding.x'); 401 } 402 403 .p-button-sm .p-button-icon { 404 font-size: dt('button.sm.font.size'); 405 } 406 407 .p-button-sm.p-button-icon-only { 408 width: dt('button.sm.icon.only.width'); 409 } 410 411 .p-button-sm.p-button-icon-only.p-button-rounded { 412 height: dt('button.sm.icon.only.width'); 413 } 414 415 .p-button-lg { 416 font-size: dt('button.lg.font.size'); 417 padding: dt('button.lg.padding.y') dt('button.lg.padding.x'); 418 } 419 420 .p-button-lg .p-button-icon { 421 font-size: dt('button.lg.font.size'); 422 } 423 424 .p-button-lg.p-button-icon-only { 425 width: dt('button.lg.icon.only.width'); 426 } 427 428 .p-button-lg.p-button-icon-only.p-button-rounded { 429 height: dt('button.lg.icon.only.width'); 430 } 431 432 .p-button-vertical { 433 flex-direction: column; 434 } 435 436 .p-button-label { 437 font-weight: dt('button.label.font.weight'); 438 } 439 440 .p-button-fluid { 441 width: 100%; 442 } 443 444 .p-button-fluid.p-button-icon-only { 445 width: dt('button.icon.only.width'); 446 } 447 448 .p-button:not(:disabled):hover { 449 background: dt('button.primary.hover.background'); 450 border: 1px solid dt('button.primary.hover.border.color'); 451 color: dt('button.primary.hover.color'); 452 } 453 454 .p-button:not(:disabled):active { 455 background: dt('button.primary.active.background'); 456 border: 1px solid dt('button.primary.active.border.color'); 457 color: dt('button.primary.active.color'); 458 } 459 460 .p-button:focus-visible { 461 box-shadow: dt('button.primary.focus.ring.shadow'); 462 outline: dt('button.focus.ring.width') dt('button.focus.ring.style') dt('button.primary.focus.ring.color'); 463 outline-offset: dt('button.focus.ring.offset'); 464 } 465 466 .p-button .p-badge { 467 min-width: dt('button.badge.size'); 468 height: dt('button.badge.size'); 469 line-height: dt('button.badge.size'); 470 } 471 472 .p-button-raised { 473 box-shadow: dt('button.raised.shadow'); 474 } 475 476 .p-button-rounded { 477 border-radius: dt('button.rounded.border.radius'); 478 } 479 480 .p-button-secondary { 481 background: dt('button.secondary.background'); 482 border: 1px solid dt('button.secondary.border.color'); 483 color: dt('button.secondary.color'); 484 } 485 486 .p-button-secondary:not(:disabled):hover { 487 background: dt('button.secondary.hover.background'); 488 border: 1px solid dt('button.secondary.hover.border.color'); 489 color: dt('button.secondary.hover.color'); 490 } 491 492 .p-button-secondary:not(:disabled):active { 493 background: dt('button.secondary.active.background'); 494 border: 1px solid dt('button.secondary.active.border.color'); 495 color: dt('button.secondary.active.color'); 496 } 497 498 .p-button-secondary:focus-visible { 499 outline-color: dt('button.secondary.focus.ring.color'); 500 box-shadow: dt('button.secondary.focus.ring.shadow'); 501 } 502 503 .p-button-success { 504 background: dt('button.success.background'); 505 border: 1px solid dt('button.success.border.color'); 506 color: dt('button.success.color'); 507 } 508 509 .p-button-success:not(:disabled):hover { 510 background: dt('button.success.hover.background'); 511 border: 1px solid dt('button.success.hover.border.color'); 512 color: dt('button.success.hover.color'); 513 } 514 515 .p-button-success:not(:disabled):active { 516 background: dt('button.success.active.background'); 517 border: 1px solid dt('button.success.active.border.color'); 518 color: dt('button.success.active.color'); 519 } 520 521 .p-button-success:focus-visible { 522 outline-color: dt('button.success.focus.ring.color'); 523 box-shadow: dt('button.success.focus.ring.shadow'); 524 } 525 526 .p-button-info { 527 background: dt('button.info.background'); 528 border: 1px solid dt('button.info.border.color'); 529 color: dt('button.info.color'); 530 } 531 532 .p-button-info:not(:disabled):hover { 533 background: dt('button.info.hover.background'); 534 border: 1px solid dt('button.info.hover.border.color'); 535 color: dt('button.info.hover.color'); 536 } 537 538 .p-button-info:not(:disabled):active { 539 background: dt('button.info.active.background'); 540 border: 1px solid dt('button.info.active.border.color'); 541 color: dt('button.info.active.color'); 542 } 543 544 .p-button-info:focus-visible { 545 outline-color: dt('button.info.focus.ring.color'); 546 box-shadow: dt('button.info.focus.ring.shadow'); 547 } 548 549 .p-button-warn { 550 background: dt('button.warn.background'); 551 border: 1px solid dt('button.warn.border.color'); 552 color: dt('button.warn.color'); 553 } 554 555 .p-button-warn:not(:disabled):hover { 556 background: dt('button.warn.hover.background'); 557 border: 1px solid dt('button.warn.hover.border.color'); 558 color: dt('button.warn.hover.color'); 559 } 560 561 .p-button-warn:not(:disabled):active { 562 background: dt('button.warn.active.background'); 563 border: 1px solid dt('button.warn.active.border.color'); 564 color: dt('button.warn.active.color'); 565 } 566 567 .p-button-warn:focus-visible { 568 outline-color: dt('button.warn.focus.ring.color'); 569 box-shadow: dt('button.warn.focus.ring.shadow'); 570 } 571 572 .p-button-help { 573 background: dt('button.help.background'); 574 border: 1px solid dt('button.help.border.color'); 575 color: dt('button.help.color'); 576 } 577 578 .p-button-help:not(:disabled):hover { 579 background: dt('button.help.hover.background'); 580 border: 1px solid dt('button.help.hover.border.color'); 581 color: dt('button.help.hover.color'); 582 } 583 584 .p-button-help:not(:disabled):active { 585 background: dt('button.help.active.background'); 586 border: 1px solid dt('button.help.active.border.color'); 587 color: dt('button.help.active.color'); 588 } 589 590 .p-button-help:focus-visible { 591 outline-color: dt('button.help.focus.ring.color'); 592 box-shadow: dt('button.help.focus.ring.shadow'); 593 } 594 595 .p-button-danger { 596 background: dt('button.danger.background'); 597 border: 1px solid dt('button.danger.border.color'); 598 color: dt('button.danger.color'); 599 } 600 601 .p-button-danger:not(:disabled):hover { 602 background: dt('button.danger.hover.background'); 603 border: 1px solid dt('button.danger.hover.border.color'); 604 color: dt('button.danger.hover.color'); 605 } 606 607 .p-button-danger:not(:disabled):active { 608 background: dt('button.danger.active.background'); 609 border: 1px solid dt('button.danger.active.border.color'); 610 color: dt('button.danger.active.color'); 611 } 612 613 .p-button-danger:focus-visible { 614 outline-color: dt('button.danger.focus.ring.color'); 615 box-shadow: dt('button.danger.focus.ring.shadow'); 616 } 617 618 .p-button-contrast { 619 background: dt('button.contrast.background'); 620 border: 1px solid dt('button.contrast.border.color'); 621 color: dt('button.contrast.color'); 622 } 623 624 .p-button-contrast:not(:disabled):hover { 625 background: dt('button.contrast.hover.background'); 626 border: 1px solid dt('button.contrast.hover.border.color'); 627 color: dt('button.contrast.hover.color'); 628 } 629 630 .p-button-contrast:not(:disabled):active { 631 background: dt('button.contrast.active.background'); 632 border: 1px solid dt('button.contrast.active.border.color'); 633 color: dt('button.contrast.active.color'); 634 } 635 636 .p-button-contrast:focus-visible { 637 outline-color: dt('button.contrast.focus.ring.color'); 638 box-shadow: dt('button.contrast.focus.ring.shadow'); 639 } 640 641 .p-button-outlined { 642 background: transparent; 643 border-color: dt('button.outlined.primary.border.color'); 644 color: dt('button.outlined.primary.color'); 645 } 646 647 .p-button-outlined:not(:disabled):hover { 648 background: dt('button.outlined.primary.hover.background'); 649 border-color: dt('button.outlined.primary.border.color'); 650 color: dt('button.outlined.primary.color'); 651 } 652 653 .p-button-outlined:not(:disabled):active { 654 background: dt('button.outlined.primary.active.background'); 655 border-color: dt('button.outlined.primary.border.color'); 656 color: dt('button.outlined.primary.color'); 657 } 658 659 .p-button-outlined.p-button-secondary { 660 border-color: dt('button.outlined.secondary.border.color'); 661 color: dt('button.outlined.secondary.color'); 662 } 663 664 .p-button-outlined.p-button-secondary:not(:disabled):hover { 665 background: dt('button.outlined.secondary.hover.background'); 666 border-color: dt('button.outlined.secondary.border.color'); 667 color: dt('button.outlined.secondary.color'); 668 } 669 670 .p-button-outlined.p-button-secondary:not(:disabled):active { 671 background: dt('button.outlined.secondary.active.background'); 672 border-color: dt('button.outlined.secondary.border.color'); 673 color: dt('button.outlined.secondary.color'); 674 } 675 676 .p-button-outlined.p-button-success { 677 border-color: dt('button.outlined.success.border.color'); 678 color: dt('button.outlined.success.color'); 679 } 680 681 .p-button-outlined.p-button-success:not(:disabled):hover { 682 background: dt('button.outlined.success.hover.background'); 683 border-color: dt('button.outlined.success.border.color'); 684 color: dt('button.outlined.success.color'); 685 } 686 687 .p-button-outlined.p-button-success:not(:disabled):active { 688 background: dt('button.outlined.success.active.background'); 689 border-color: dt('button.outlined.success.border.color'); 690 color: dt('button.outlined.success.color'); 691 } 692 693 .p-button-outlined.p-button-info { 694 border-color: dt('button.outlined.info.border.color'); 695 color: dt('button.outlined.info.color'); 696 } 697 698 .p-button-outlined.p-button-info:not(:disabled):hover { 699 background: dt('button.outlined.info.hover.background'); 700 border-color: dt('button.outlined.info.border.color'); 701 color: dt('button.outlined.info.color'); 702 } 703 704 .p-button-outlined.p-button-info:not(:disabled):active { 705 background: dt('button.outlined.info.active.background'); 706 border-color: dt('button.outlined.info.border.color'); 707 color: dt('button.outlined.info.color'); 708 } 709 710 .p-button-outlined.p-button-warn { 711 border-color: dt('button.outlined.warn.border.color'); 712 color: dt('button.outlined.warn.color'); 713 } 714 715 .p-button-outlined.p-button-warn:not(:disabled):hover { 716 background: dt('button.outlined.warn.hover.background'); 717 border-color: dt('button.outlined.warn.border.color'); 718 color: dt('button.outlined.warn.color'); 719 } 720 721 .p-button-outlined.p-button-warn:not(:disabled):active { 722 background: dt('button.outlined.warn.active.background'); 723 border-color: dt('button.outlined.warn.border.color'); 724 color: dt('button.outlined.warn.color'); 725 } 726 727 .p-button-outlined.p-button-help { 728 border-color: dt('button.outlined.help.border.color'); 729 color: dt('button.outlined.help.color'); 730 } 731 732 .p-button-outlined.p-button-help:not(:disabled):hover { 733 background: dt('button.outlined.help.hover.background'); 734 border-color: dt('button.outlined.help.border.color'); 735 color: dt('button.outlined.help.color'); 736 } 737 738 .p-button-outlined.p-button-help:not(:disabled):active { 739 background: dt('button.outlined.help.active.background'); 740 border-color: dt('button.outlined.help.border.color'); 741 color: dt('button.outlined.help.color'); 742 } 743 744 .p-button-outlined.p-button-danger { 745 border-color: dt('button.outlined.danger.border.color'); 746 color: dt('button.outlined.danger.color'); 747 } 748 749 .p-button-outlined.p-button-danger:not(:disabled):hover { 750 background: dt('button.outlined.danger.hover.background'); 751 border-color: dt('button.outlined.danger.border.color'); 752 color: dt('button.outlined.danger.color'); 753 } 754 755 .p-button-outlined.p-button-danger:not(:disabled):active { 756 background: dt('button.outlined.danger.active.background'); 757 border-color: dt('button.outlined.danger.border.color'); 758 color: dt('button.outlined.danger.color'); 759 } 760 761 .p-button-outlined.p-button-contrast { 762 border-color: dt('button.outlined.contrast.border.color'); 763 color: dt('button.outlined.contrast.color'); 764 } 765 766 .p-button-outlined.p-button-contrast:not(:disabled):hover { 767 background: dt('button.outlined.contrast.hover.background'); 768 border-color: dt('button.outlined.contrast.border.color'); 769 color: dt('button.outlined.contrast.color'); 770 } 771 772 .p-button-outlined.p-button-contrast:not(:disabled):active { 773 background: dt('button.outlined.contrast.active.background'); 774 border-color: dt('button.outlined.contrast.border.color'); 775 color: dt('button.outlined.contrast.color'); 776 } 777 778 .p-button-outlined.p-button-plain { 779 border-color: dt('button.outlined.plain.border.color'); 780 color: dt('button.outlined.plain.color'); 781 } 782 783 .p-button-outlined.p-button-plain:not(:disabled):hover { 784 background: dt('button.outlined.plain.hover.background'); 785 border-color: dt('button.outlined.plain.border.color'); 786 color: dt('button.outlined.plain.color'); 787 } 788 789 .p-button-outlined.p-button-plain:not(:disabled):active { 790 background: dt('button.outlined.plain.active.background'); 791 border-color: dt('button.outlined.plain.border.color'); 792 color: dt('button.outlined.plain.color'); 793 } 794 795 .p-button-text { 796 background: transparent; 797 border-color: transparent; 798 color: dt('button.text.primary.color'); 799 } 800 801 .p-button-text:not(:disabled):hover { 802 background: dt('button.text.primary.hover.background'); 803 border-color: transparent; 804 color: dt('button.text.primary.color'); 805 } 806 807 .p-button-text:not(:disabled):active { 808 background: dt('button.text.primary.active.background'); 809 border-color: transparent; 810 color: dt('button.text.primary.color'); 811 } 812 813 .p-button-text.p-button-secondary { 814 background: transparent; 815 border-color: transparent; 816 color: dt('button.text.secondary.color'); 817 } 818 819 .p-button-text.p-button-secondary:not(:disabled):hover { 820 background: dt('button.text.secondary.hover.background'); 821 border-color: transparent; 822 color: dt('button.text.secondary.color'); 823 } 824 825 .p-button-text.p-button-secondary:not(:disabled):active { 826 background: dt('button.text.secondary.active.background'); 827 border-color: transparent; 828 color: dt('button.text.secondary.color'); 829 } 830 831 .p-button-text.p-button-success { 832 background: transparent; 833 border-color: transparent; 834 color: dt('button.text.success.color'); 835 } 836 837 .p-button-text.p-button-success:not(:disabled):hover { 838 background: dt('button.text.success.hover.background'); 839 border-color: transparent; 840 color: dt('button.text.success.color'); 841 } 842 843 .p-button-text.p-button-success:not(:disabled):active { 844 background: dt('button.text.success.active.background'); 845 border-color: transparent; 846 color: dt('button.text.success.color'); 847 } 848 849 .p-button-text.p-button-info { 850 background: transparent; 851 border-color: transparent; 852 color: dt('button.text.info.color'); 853 } 854 855 .p-button-text.p-button-info:not(:disabled):hover { 856 background: dt('button.text.info.hover.background'); 857 border-color: transparent; 858 color: dt('button.text.info.color'); 859 } 860 861 .p-button-text.p-button-info:not(:disabled):active { 862 background: dt('button.text.info.active.background'); 863 border-color: transparent; 864 color: dt('button.text.info.color'); 865 } 866 867 .p-button-text.p-button-warn { 868 background: transparent; 869 border-color: transparent; 870 color: dt('button.text.warn.color'); 871 } 872 873 .p-button-text.p-button-warn:not(:disabled):hover { 874 background: dt('button.text.warn.hover.background'); 875 border-color: transparent; 876 color: dt('button.text.warn.color'); 877 } 878 879 .p-button-text.p-button-warn:not(:disabled):active { 880 background: dt('button.text.warn.active.background'); 881 border-color: transparent; 882 color: dt('button.text.warn.color'); 883 } 884 885 .p-button-text.p-button-help { 886 background: transparent; 887 border-color: transparent; 888 color: dt('button.text.help.color'); 889 } 890 891 .p-button-text.p-button-help:not(:disabled):hover { 892 background: dt('button.text.help.hover.background'); 893 border-color: transparent; 894 color: dt('button.text.help.color'); 895 } 896 897 .p-button-text.p-button-help:not(:disabled):active { 898 background: dt('button.text.help.active.background'); 899 border-color: transparent; 900 color: dt('button.text.help.color'); 901 } 902 903 .p-button-text.p-button-danger { 904 background: transparent; 905 border-color: transparent; 906 color: dt('button.text.danger.color'); 907 } 908 909 .p-button-text.p-button-danger:not(:disabled):hover { 910 background: dt('button.text.danger.hover.background'); 911 border-color: transparent; 912 color: dt('button.text.danger.color'); 913 } 914 915 .p-button-text.p-button-danger:not(:disabled):active { 916 background: dt('button.text.danger.active.background'); 917 border-color: transparent; 918 color: dt('button.text.danger.color'); 919 } 920 921 .p-button-text.p-button-contrast { 922 background: transparent; 923 border-color: transparent; 924 color: dt('button.text.contrast.color'); 925 } 926 927 .p-button-text.p-button-contrast:not(:disabled):hover { 928 background: dt('button.text.contrast.hover.background'); 929 border-color: transparent; 930 color: dt('button.text.contrast.color'); 931 } 932 933 .p-button-text.p-button-contrast:not(:disabled):active { 934 background: dt('button.text.contrast.active.background'); 935 border-color: transparent; 936 color: dt('button.text.contrast.color'); 937 } 938 939 .p-button-text.p-button-plain { 940 background: transparent; 941 border-color: transparent; 942 color: dt('button.text.plain.color'); 943 } 944 945 .p-button-text.p-button-plain:not(:disabled):hover { 946 background: dt('button.text.plain.hover.background'); 947 border-color: transparent; 948 color: dt('button.text.plain.color'); 949 } 950 951 .p-button-text.p-button-plain:not(:disabled):active { 952 background: dt('button.text.plain.active.background'); 953 border-color: transparent; 954 color: dt('button.text.plain.color'); 955 } 956 957 .p-button-link { 958 background: transparent; 959 border-color: transparent; 960 color: dt('button.link.color'); 961 } 962 963 .p-button-link:not(:disabled):hover { 964 background: transparent; 965 border-color: transparent; 966 color: dt('button.link.hover.color'); 967 } 968 969 .p-button-link:not(:disabled):hover .p-button-label { 970 text-decoration: underline; 971 } 972 973 .p-button-link:not(:disabled):active { 974 background: transparent; 975 border-color: transparent; 976 color: dt('button.link.active.color'); 977 } 978`;var
978fk=["content"],vk=["loadingicon"],Ck=["icon"],bk=["*"],Nv=(e,i)=>({class:e,pt:i});function _k(e,i){e&1&&si(0)}function yk(e,i){if(e&1&&x(0,"span",7),e&2){let t=g(3);ie(t.cn(t.cx("loadingIcon"),"pi-spin",t.loadingIcon)),f("pBind",t.ptm("loadingIcon")),ve("aria-hidden",!0)}}function wk(e,i){if(e&1&&(Oe(),x(0,"svg",8)),e&2){let t=g(3);ie(t.cn(t.cx("loadingIcon"),t.spinnerIconClass())),f("pBind",t.ptm("loadingIcon"))("spin",!0),ve("aria-hidden",!0)}}function xk(e,i){if(e&1&&(dt(0),H(1,yk,1,4,"span",3)(2,wk,1,5,"svg",6),ut()),e&2){let t=g(2);d(),f("ngIf",t.loadingIcon),d(),f("ngIf",!t.loadingIcon)}}function Sk(e,i){}function kk(e,i){if(e&1&&H(0,Sk,0,0,"ng-template",9),e&2){let t=g(2);f("ngIf",t.loadingIconTemplate||t._loadingIconTemplate)}}function Ek(e,i){if(e&1&&(dt(0),H(1,xk,3,2,"ng-container",2)(2,kk,1,1,null,5),ut()),e&2){let t=g();d(),f("ngIf",!t.loadingIconTemplate&&!t._loadingIconTemplate),d(),f("ngTemplateOutlet",t.loadingIconTemplate||t._loadingIconTemplate)("ngTemplateOutletContext",He(3,Nv,t.cx("loadingIcon"),t.ptm("loadingIcon")))}}function Tk(e,i){if(e&1&&x(0,"span",7),e&2){let t=g(2);ie(t.cn("icon",t.iconClass())),f("pBind",t.ptm("icon"))}}function Ik(e,i){}function Mk(e,i){if(e&1&&H(0,Ik,0,0,"ng-template",9),e&2){let t=g(2);f("ngIf",!t.icon&&(t.iconTemplate||t._iconTemplate))}}function Dk(e,i){if(e&1&&(dt(0),H(1,Tk,1,3,"span",3)(2,Mk,1,1,null,5),ut()),e&2){let t=g();d(),f("ngIf",t.icon&&!t.iconTemplate&&!t._iconTemplate),d(),f("ngTemplateOutlet",t.iconTemplate||t._iconTemplate)("ngTemplateOutletContext",He(3,Nv,t.cx("icon"),t.ptm("icon")))}}function Pk(e,i){if(e&1&&(h(0,"span",7),b(1),p()),e&2){let t=g();ie(t.cx("label")),f("pBind",t.ptm("label")),ve("aria-hidden",t.icon&&!t.label),d(),A(t.label)}}function Rk(e,i){if(e&1&&x(0,"p-badge",10),e&2){let t=g();f("value",t.badge)("severity",t.badgeSeverity)("pt",t.ptm("pcBadge"))}}var Fk={root:({instance:e})=>["p-button p-component",{"p-button-icon-only":(e.icon||e.buttonProps?.icon||e.iconTemplate||e._iconTemplate||e.loadingIcon||e.loadingIconTemplate||e._loadingIconTemplate)&&!e.label&&!e.buttonProps?.label,"p-button-vertical":(e.iconPos==="top"||e.iconPos==="bottom")&&e.label,"p-button-loading":e.loading||e.buttonProps?.loading,"p-button-link":e.link||e.buttonProps?.link,[`p-button-${e.severity||e.buttonProps?.severity}`]:e.severity||e.buttonProps?.severity,"p-button-raised":e.raised||e.buttonProps?.raised,"p-button-rounded":e.rounded||e.buttonProps?.rounded,"p-button-text":e.text||e.variant==="text"||e.buttonProps?.text||e.buttonProps?.variant==="text","p-button-outlined":e.outlined||e.variant==="outlined"||e.buttonProps?.outlined||e.buttonProps?.variant==="outlined","p-button-sm":e.size==="small"||e.buttonProps?.size==="small","p-button-lg":e.size==="large"||e.buttonProps?.size==="large","p-button-plain":e.plain||e.buttonProps?.plain,"p-button-fluid":e.hasFluid}],loadingIcon:"p-button-loading-icon",icon:({instance:e})=>["p-button-icon",{[`p-button-icon-${e.iconPos||e.buttonProps?.iconPos}`]:e.label||e.buttonProps?.label,"p-button-icon-left":(e.iconPos==="left"||e.buttonProps?.iconPos==="left")&&e.label||e.buttonProps?.label,"p-button-icon-right":(e.iconPos==="right"||e.buttonProps?.iconPos==="right")&&e.label||e.buttonProps?.label},e.icon,e.buttonProps?.icon],spinnerIcon:({instance:e})=>Object.entries(e.iconClass()).filter(([,i])=>!!i).reduce((i,[t])=>i+` ${t}`,"p-button-loading-icon"),label:"p-button-label"},Ov=(()=>{class e extends Et{name="button";style=Av;classes=Fk;static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var Lv=new Me("BUTTON_INSTANCE");var Vv=(()=>{class e extends li{hostName="";$pcButton=F(Lv,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=F(gt,{self:!0});_componentStyle=F(Ov);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}type="button";badge;disabled;raised=!1;rounded=!1;text=!1;plain=!1;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;iconPos="left";icon;label;loading=!1;loadingIcon;severity;buttonProps;fluid=xe(void 0,{transform:ge});onClick=new se;onFocus=new se;onBlur=new se;contentTemplate;loadingIconTemplate;iconTemplate;templates;pcFluid=F(Gr,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}_contentTemplate;_iconTemplate;_loadingIconTemplate;onAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"icon":this._iconTemplate=t.template;break;case"loadingicon":this._loadingIconTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,t])=>!!t).reduce((t,[n])=>t+` ${n}`,"p-button-loading-icon")}iconClass(){return{[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]:this.loading,"p-button-icon":!0,[this.icon]:!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275cmp=N({type:e,selectors:[["p-button"]],contentQueries:function(n,o,r){if(n&1&&(vt(r,fk,5),vt(r,vk,5),vt(r,Ck,5),vt(r,kc,4)),n&2){let a;Se(a=ke())&&(o.contentTemplate=a.first),Se(a=ke())&&(o.loadingIconTemplate=a.first),Se(a=ke())&&(o.iconTemplate=a.first),Se(a=ke())&&(o.templates=a)}},inputs:{hostName:"hostName",type:"type",badge:"badge",disabled:[2,"disabled","disabled",ge],raised:[2,"raised","raised",ge],rounded:[2,"rounded","rounded",ge],text:[2,"text","text",ge],plain:[2,"plain","plain",ge],outlined:[2,"outlined","outlined",ge],link:[2,"link","link",ge],tabindex:[2,"tabindex","tabindex",yn],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",ge],iconPos:"iconPos",icon:"icon",label:"label",loading:[2,"loading","loading",ge],loadingIcon:"loadingIcon",severity:"severity",buttonProps:"buttonProps",fluid:[1,"fluid"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Te([Ov,{provide:Lv,useExisting:e},{provide:Hi,useExisting:e}]),Yi([gt]),ue],ngContentSelectors:bk,decls:7,vars:14,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","pAutoFocus","pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"value","severity","pt",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","spinner",3,"class","pBind","spin",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","spin"],[3,"ngIf"],[3,"value","severity","pt"]],template:function(n,o){n&1&&(jt(),h(0,"button",0),R("click",function(a){return o.onClick.emit(a)})("focus",function(a){return o.onFocus.emit(a)})("blur",function(a){return o.onBlur.emit(a)}),Tt(1),H(2,_k,1,0,"ng-container",1)(3,Ek,3,6,"ng-container",2)(4,Dk,3,6,"ng-container",2)(5,Pk,2,5,"span",3)(6,Rk,
9781,3,"p-badge",4),p()),n&2&&(ie(o.cn(o.cx("root"),o.styleClass,o.buttonProps==null?null:o.buttonProps.styleClass)),f("ngStyle",o.style||(o.buttonProps==null?null:o.buttonProps.style))("disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("pAutoFocus",o.autofocus||(o.buttonProps==null?null:o.buttonProps.autofocus))("pBind",o.ptm("root")),ve("type",o.type||(o.buttonProps==null?null:o.buttonProps.type))("aria-label",o.ariaLabel||(o.buttonProps==null?null:o.buttonProps.ariaLabel))("tabindex",o.tabindex||(o.buttonProps==null?null:o.buttonProps.tabindex)),d(2),f("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),d(),f("ngIf",o.loading),d(),f("ngIf",!o.loading),d(),f("ngIf",!o.contentTemplate&&!o._contentTemplate&&o.label),d(),f("ngIf",!o.contentTemplate&&!o._contentTemplate&&o.badge))},dependencies:[J,yr,wr,Kn,Pc,Ic,Dv,xv,jp,nn,gt],encapsulation:2,changeDetection:0})}return e})();var zv=` 979 .p-inputtext { 980 font-family: inherit; 981 font-feature-settings: inherit; 982 font-size: 1rem; 983 color: dt('inputtext.color'); 984 background: dt('inputtext.background'); 985 padding-block: dt('inputtext.padding.y'); 986 padding-inline: dt('inputtext.padding.x'); 987 border: 1px solid dt('inputtext.border.color'); 988 transition: 989 background dt('inputtext.transition.duration'), 990 color dt('inputtext.transition.duration'), 991 border-color dt('inputtext.transition.duration'), 992 outline-color dt('inputtext.transition.duration'), 993 box-shadow dt('inputtext.transition.duration'); 994 appearance: none;
995 border-radius: dt('inputtext.border.radius'); 996 outline-color: transparent; 997 box-shadow: dt('inputtext.shadow'); 998 } 999 1000 .p-inputtext:enabled:hover { 1001 border-color: dt('inputtext.hover.border.color'); 1002 } 1003 1004 .p-inputtext:enabled:focus { 1005 border-color: dt('inputtext.focus.border.color'); 1006 box-shadow: dt('inputtext.focus.ring.shadow'); 1007 outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color'); 1008 outline-offset: dt('inputtext.focus.ring.offset'); 1009 } 1010 1011 .p-inputtext.p-invalid { 1012 border-color: dt('inputtext.invalid.border.color'); 1013 } 1014 1015 .p-inputtext.p-variant-filled { 1016 background: dt('inputtext.filled.background'); 1017 } 1018 1019 .p-inputtext.p-variant-filled:enabled:hover { 1020 background: dt('inputtext.filled.hover.background'); 1021 } 1022 1023 .p-inputtext.p-variant-filled:enabled:focus { 1024 background: dt('inputtext.filled.focus.background'); 1025 } 1026 1027 .p-inputtext:disabled { 1028 opacity: 1; 1029 background: dt('inputtext.disabled.background'); 1030 color: dt('inputtext.disabled.color'); 1031 } 1032 1033 .p-inputtext::placeholder { 1034 color: dt('inputtext.placeholder.color'); 1035 } 1036 1037 .p-inputtext.p-invalid::placeholder { 1038 color: dt('inputtext.invalid.placeholder.color'); 1039 } 1040 1041 .p-inputtext-sm { 1042 font-size: dt('inputtext.sm.font.size'); 1043 padding-block: dt('inputtext.sm.padding.y'); 1044 padding-inline: dt('inputtext.sm.padding.x'); 1045 } 1046 1047 .p-inputtext-lg { 1048 font-size: dt('inputtext.lg.font.size'); 1049 padding-block: dt('inputtext.lg.padding.y'); 1050 padding-inline: dt('inputtext.lg.padding.x'); 1051 } 1052 1053 .p-inputtext-fluid { 1054 width: 100%; 1055 } 1056`;var Ak=` 1057 ${zv} 1058 1059 /* For PrimeNG */ 1060 .p-inputtext.ng-invalid.ng-dirty { 1061 border-color: dt('inputtext.invalid.border.color'); 1062 } 1063 1064 .p-inputtext.ng-invalid.ng-dirty::placeholder { 1065 color: dt('inputtext.invalid.placeholder.color'); 1066 } 1067`,Ok={root:({instance:e})=>["p-inputtext p-component",{"p-filled":e.$filled(),"p-inputtext-sm":e.pSize==="small","p-inputtext-lg":e.pSize==="large","p-invalid":e.invalid(),"p-variant-filled":e.$variant()==="filled","p-inputtext-fluid":e.hasFluid}]},Bv=(()=>{class e extends Et{name="inputtext";style=Ak;classes=Ok;static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var Hv=new Me("INPUTTEXT_INSTANCE"),Gv=(()=>{class e extends Mc{hostName="";ptInputText=xe();bindDirectiveInstance=F(gt,{self:!0});$pcInputText=F(Hv,{optional:!0,skipSelf:!0})??void 0;ngControl=F(xi,{optional:!0,self:!0});pcFluid=F(Gr,{optional:!0,host:!0,skipSelf:!0});pSize;variant=xe();fluid=xe(void 0,{transform:ge});invalid=xe(void 0,{transform:ge});$variant=Pe(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=F(Bv);constructor(){super(),qt(()=>{this.ptInputText()&&this.directivePT.set(this.ptInputText())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ce({type:e,selectors:[["","pInputText",""]],hostVars:2,hostBindings:function(n,o){n&1&&R("input",function(a){return o.onInput(a)}),n&2&&ie(o.cx("root"))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[Te([Bv,{provide:Hv,useExisting:e},{provide:Hi,useExisting:e}]),Yi([gt]),ue]})}return e})();function Lk(){let e=[],i=(r,a)=>{let s=e.length>0?e[e.length-1]:{key:r,value:a},l=s.value+(s.key===r?0:a)+2;return e.push({key:r,value:l}),l},t=r=>{e=e.filter(a=>a.value!==r)},n=()=>e.length>0?e[e.length-1].value:0,o=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:o,set:(r,a,s)=>{a&&(a.style.zIndex=String(i(r,s)))},clear:r=>{r&&(t(o(r)),r.style.zIndex="")},getCurrent:()=>n(),generateZIndex:i,revertZIndex:t}}var vs=Lk();var Uv
vendor: 15,615 bytes, lines 1067-1527
1067=` 1068 .p-datepicker { 1069 display: inline-flex; 1070 max-width: 100%; 1071 } 1072 1073 .p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input { 1074 border-start-end-radius: 0; 1075 border-end-end-radius: 0; 1076 } 1077 1078 .p-datepicker-dropdown { 1079 cursor: pointer; 1080 display: inline-flex; 1081 user-select: none; 1082 align-items: center; 1083 justify-content: center; 1084 overflow: hidden; 1085 position: relative; 1086 width: dt('datepicker.dropdown.width'); 1087 border-start-end-radius: dt('datepicker.dropdown.border.radius'); 1088 border-end-end-radius: dt('datepicker.dropdown.border.radius'); 1089 background: dt('datepicker.dropdown.background'); 1090 border: 1px solid dt('datepicker.dropdown.border.color'); 1091 border-inline-start: 0 none; 1092 color: dt('datepicker.dropdown.color'); 1093 transition: 1094 background dt('datepicker.transition.duration'), 1095 color dt('datepicker.transition.duration'), 1096 border-color dt('datepicker.transition.duration'), 1097 outline-color dt('datepicker.transition.duration'); 1098 outline-color: transparent; 1099 } 1100 1101 .p-datepicker-dropdown:not(:disabled):hover { 1102 background: dt('datepicker.dropdown.hover.background'); 1103 border-color: dt('datepicker.dropdown.hover.border.color'); 1104 color: dt('datepicker.dropdown.hover.color'); 1105 } 1106 1107 .p-datepicker-dropdown:not(:disabled):active { 1108 background: dt('datepicker.dropdown.active.background'); 1109 border-color: dt('datepicker.dropdown.active.border.color'); 1110 color: dt('datepicker.dropdown.active.color'); 1111 } 1112 1113 .p-datepicker-dropdown:focus-visible { 1114 box-shadow: dt('datepicker.dropdown.focus.ring.shadow'); 1115 outline: dt('datepicker.dropdown.focus.ring.width') dt('datepicker.dropdown.focus.ring.style') dt('datepicker.dropdown.focus.ring.color'); 1116 outline-offset: dt('datepicker.dropdown.focus.ring.offset'); 1117 } 1118 1119 .p-datepicker:has(.p-datepicker-input-icon-container) { 1120 position: relative; 1121 } 1122 1123 .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input { 1124 padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size')); 1125 } 1126 1127 .p-datepicker-input-icon-container { 1128 cursor: pointer; 1129 position: absolute; 1130 top: 50%; 1131 inset-inline-end: dt('form.field.padding.x'); 1132 margin-block-start: calc(-1 * (dt('icon.size') / 2)); 1133 color: dt('datepicker.input.icon.color'); 1134 line-height: 1; 1135 z-index: 1; 1136 } 1137 1138 .p-datepicker:has(.p-datepicker-input:disabled) .p-datepicker-input-icon-container { 1139 cursor: default; 1140 } 1141 1142 .p-datepicker-fluid { 1143 display: flex; 1144 } 1145 1146 .p-datepicker-fluid:has(.p-datepicker-dropdown) .p-datepicker-input { 1147 flex: 1 1 auto; 1148 width: 1%; 1149 } 1150 1151 .p-datepicker .p-datepicker-panel { 1152 min-width: 100%; 1153 } 1154 1155 .p-datepicker-panel { 1156 width: auto; 1157 padding: dt('datepicker.panel.padding'); 1158 background: dt('datepicker.panel.background'); 1159 color: dt('datepicker.panel.color'); 1160 border: 1px solid dt('datepicker.panel.border.color'); 1161 border-radius: dt('datepicker.panel.border.radius'); 1162 box-shadow: dt('datepicker.panel.shadow'); 1163 } 1164 1165 .p-datepicker-panel-inline { 1166 display: inline-block; 1167 overflow-x: auto; 1168 box-shadow: none; 1169 } 1170 1171 .p-datepicker-header { 1172 display: flex; 1173 align-items: center; 1174 justify-content: space-between; 1175 padding: dt('datepicker.header.padding'); 1176 background: dt('datepicker.header.background'); 1177 color: dt('datepicker.header.color'); 1178 border-block-end: 1px solid dt('datepicker.header.border.color'); 1179 } 1180 1181 .p-datepicker-next-button:dir(rtl) { 1182 order: -1; 1183 } 1184 1185 .p-datepicker-prev-button:dir(rtl) { 1186 order: 1; 1187 } 1188 1189 .p-datepicker-title { 1190 display: flex; 1191 align-items: center; 1192 justify-content: space-between; 1193 gap: dt('datepicker.title.gap'); 1194 font-weight: dt('datepicker.title.font.weight'); 1195 } 1196 1197 .p-datepicker-select-year, 1198 .p-datepicker-select-month { 1199 border: none; 1200 background: transparent; 1201 margin: 0; 1202 cursor: pointer; 1203 font-weight: inherit; 1204 transition: 1205 background dt('datepicker.transition.duration'), 1206 color dt('datepicker.transition.duration'), 1207 border-color dt('datepicker.transition.duration'), 1208 outline-color dt('datepicker.transition.duration'), 1209 box-shadow dt('datepicker.transition.duration'); 1210 } 1211 1212 .p-datepicker-select-month { 1213 padding: dt('datepicker.select.month.padding'); 1214 color: dt('datepicker.select.month.color'); 1215 border-radius: dt('datepicker.select.month.border.radius'); 1216 } 1217 1218 .p-datepicker-select-year { 1219 padding: dt('datepicker.select.year.padding'); 1220 color: dt('datepicker.select.year.color'); 1221 border-radius: dt('datepicker.select.year.border.radius'); 1222 } 1223 1224 .p-datepicker-select-month:enabled:hover { 1225 background: dt('datepicker.select.month.hover.background'); 1226 color: dt('datepicker.select.month.hover.color'); 1227 } 1228 1229 .p-datepicker-select-year:enabled:hover { 1230 background: dt('datepicker.select.year.hover.background'); 1231 color: dt('datepicker.select.year.hover.color'); 1232 } 1233 1234 .p-datepicker-select-month:focus-visible, 1235 .p-datepicker-select-year:focus-visible { 1236 box-shadow: dt('datepicker.date.focus.ring.shadow'); 1237 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 1238 outline-offset: dt('datepicker.date.focus.ring.offset'); 1239 } 1240 1241 .p-datepicker-calendar-container { 1242 display: flex; 1243 } 1244 1245 .p-datepicker-calendar-container .p-datepicker-calendar { 1246 flex: 1 1 auto; 1247 border-inline-start: 1px solid dt('datepicker.group.border.color'); 1248 padding-inline-end: dt('datepicker.group.gap'); 1249 padding-inline-start: dt('datepicker.group.gap'); 1250 } 1251 1252 .p-datepicker-calendar-container .p-datepicker-calendar:first-child { 1253 padding-inline-start: 0; 1254 border-inline-start: 0 none; 1255 } 1256 1257 .p-datepicker-calendar-container .p-datepicker-calendar:last-child { 1258 padding-inline-end: 0; 1259 } 1260 1261 .p-datepicker-day-view { 1262 width: 100%; 1263 border-collapse: collapse; 1264 font-size: 1rem; 1265 margin: dt('datepicker.day.view.margin'); 1266 } 1267 1268 .p-datepicker-weekday-cell { 1269 padding: dt('datepicker.week.day.padding'); 1270 } 1271 1272 .p-datepicker-weekday { 1273 font-weight: dt('datepicker.week.day.font.weight'); 1274 color: dt('datepicker.week.day.color'); 1275 } 1276 1277 .p-datepicker-day-cell { 1278 padding: dt('datepicker.date.padding'); 1279 } 1280 1281 .p-datepicker-day { 1282 display: flex; 1283 justify-content: center; 1284 align-items: center; 1285 cursor: pointer; 1286 margin: 0 auto; 1287 overflow: hidden; 1288 position: relative; 1289 width: dt('datepicker.date.width'); 1290 height: dt('datepicker.date.height'); 1291 border-radius: dt('datepicker.date.border.radius'); 1292 transition: 1293 background dt('datepicker.transition.duration'), 1294 color dt('datepicker.transition.duration'), 1295 border-color dt('datepicker.transition.duration'), 1296 box-shadow dt('datepicker.transition.duration'), 1297 outline-color dt('datepicker.transition.duration'); 1298 border: 1px solid transparent; 1299 outline-color: transparent; 1300 color: dt('datepicker.date.color'); 1301 } 1302 1303 .p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover { 1304 background: dt('datepicker.date.hover.background'); 1305 color: dt('datepicker.date.hover.color'); 1306 } 1307 1308 .p-datepicker-day:focus-visible { 1309 box-shadow: dt('datepicker.date.focus.ring.shadow'); 1310 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 1311 outline-offset: dt('datepicker.date.focus.ring.offset'); 1312 } 1313 1314 .p-datepicker-day-selected { 1315 background: dt('datepicker.date.selected.background'); 1316 color: dt('datepicker.date.selected.color'); 1317 } 1318 1319 .p-datepicker-day-selected-range { 1320 background: dt('datepicker.date.range.selected.background'); 1321 color: dt('datepicker.date.range.selected.color'); 1322 } 1323 1324 .p-datepicker-today > .p-datepicker-day { 1325 background: dt('datepicker.today.background'); 1326 color: dt('datepicker.today.color'); 1327 } 1328 1329 .p-datepicker-today > .p-datepicker-day-selected { 1330 background: dt('datepicker.date.selected.background'); 1331 color: dt('datepicker.date.selected.color'); 1332 } 1333 1334 .p-datepicker-today > .p-datepicker-day-selected-range { 1335 background: dt('datepicker.date.range.selected.background'); 1336 color: dt('datepicker.date.range.selected.color'); 1337 } 1338 1339 .p-datepicker-weeknumber { 1340 text-align: center; 1341 } 1342 1343 .p-datepicker-month-view { 1344 margin: dt('datepicker.month.view.margin'); 1345 } 1346 1347 .p-datepicker-month { 1348 width: 33.3%; 1349 display: inline-flex; 1350 align-items: center; 1351 justify-content: center; 1352 cursor: pointer; 1353 overflow: hidden; 1354 position: relative; 1355 padding: dt('datepicker.month.padding'); 1356 transition: 1357 background dt('datepicker.transition.duration'), 1358 color dt('datepicker.transition.duration'), 1359 border-color dt('datepicker.transition.duration'), 1360 box-shadow dt('datepicker.transition.duration'), 1361 outline-color dt('datepicker.transition.duration'); 1362 border-radius: dt('datepicker.month.border.radius'); 1363 outline-color: transparent; 1364 color: dt('datepicker.date.color'); 1365 } 1366 1367 .p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover { 1368 color: dt('datepicker.date.hover.color'); 1369 background: dt('datepicker.date.hover.background'); 1370 } 1371 1372 .p-datepicker-month-selected { 1373 color: dt('datepicker.date.selected.color'); 1374 background: dt('datepicker.date.selected.background'); 1375 } 1376 1377 .p-datepicker-month:not(.p-disabled):focus-visible { 1378 box-shadow: dt('datepicker.date.focus.ring.shadow'); 1379 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 1380 outline-offset: dt('datepicker.date.focus.ring.offset'); 1381 } 1382 1383 .p-datepicker-year-view { 1384 margin: dt('datepicker.year.view.margin'); 1385 } 1386 1387 .p-datepicker-year { 1388 width: 50%; 1389 display: inline-flex; 1390 align-items: center; 1391 justify-content: center; 1392 cursor: pointer; 1393 overflow: hidden; 1394 position: relative; 1395 padding: dt('datepicker.year.padding'); 1396 transition: 1397 background dt('datepicker.transition.duration'), 1398 color dt('datepicker.transition.duration'), 1399 border-color dt('datepicker.transition.duration'), 1400 box-shadow dt('datepicker.transition.duration'), 1401 outline-color dt('datepicker.transition.duration'); 1402 border-radius: dt('datepicker.year.border.radius'); 1403 outline-color: transparent; 1404 color: dt('datepicker.date.color'); 1405 } 1406 1407 .p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover { 1408 color: dt('datepicker.date.hover.color'); 1409 background: dt('datepicker.date.hover.background'); 1410 } 1411 1412 .p-datepicker-year-selected { 1413 color: dt('datepicker.date.selected.color'); 1414 background: dt('datepicker.date.selected.background'); 1415 } 1416 1417 .p-datepicker-year:not(.p-disabled):focus-visible { 1418 box-shadow: dt('datepicker.date.focus.ring.shadow'); 1419 outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color'); 1420 outline-offset: dt('datepicker.date.focus.ring.offset'); 1421 } 1422 1423 .p-datepicker-buttonbar { 1424 display: flex; 1425 justify-content: space-between; 1426 align-items: center; 1427 padding: dt('datepicker.buttonbar.padding'); 1428 border-block-start: 1px solid dt('datepicker.buttonbar.border.color'); 1429 } 1430 1431 .p-datepicker-buttonbar .p-button { 1432 width: auto; 1433 } 1434 1435 .p-datepicker-time-picker { 1436 display: flex; 1437 justify-content: center; 1438 align-items: center; 1439 border-block-start: 1px solid dt('datepicker.time.picker.border.color'); 1440 padding: 0; 1441 gap: dt('datepicker.time.picker.gap'); 1442 } 1443 1444 .p-datepicker-calendar-container + .p-datepicker-time-picker { 1445 padding: dt('datepicker.time.picker.padding'); 1446 } 1447 1448 .p-datepicker-time-picker > div { 1449 display: flex; 1450 align-items: center; 1451 flex-direction: column; 1452 gap: dt('datepicker.time.picker.button.gap'); 1453 } 1454 1455 .p-datepicker-time-picker span { 1456 font-size: 1rem; 1457 } 1458 1459 .p-datepicker-timeonly .p-datepicker-time-picker { 1460 border-block-start: 0 none; 1461 } 1462 1463 .p-datepicker-time-picker:dir(rtl) { 1464 flex-direction: row-reverse; 1465 } 1466 1467 .p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown { 1468 width: dt('datepicker.dropdown.sm.width'); 1469 } 1470 1471 .p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown .p-icon, 1472 .p-datepicker:has(.p-inputtext-sm) .p-datepicker-input-icon { 1473 font-size: dt('form.field.sm.font.size'); 1474 width: dt('form.field.sm.font.size'); 1475 height: dt('form.field.sm.font.size'); 1476 } 1477 1478 .p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown { 1479 width: dt('datepicker.dropdown.lg.width'); 1480 } 1481 1482 .p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown .p-icon, 1483 .p-datepicker:has(.p-inputtext-lg) .p-datepicker-input-icon { 1484 font-size: dt('form.field.lg.font.size'); 1485 width: dt('form.field.lg.font.size'); 1486 height: dt('form.field.lg.font.size'); 1487 } 1488 1489 .p-datepicker-clear-icon { 1490 position: absolute; 1491 top: 50%; 1492 margin-top: -0.5rem; 1493 cursor: pointer; 1494 color: dt('form.field.icon.color'); 1495 inset-inline-end: dt('form.field.padding.x'); 1496 } 1497 1498 .p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-clear-icon { 1499 inset-inline-end: calc(dt('datepicker.dropdown.width') + dt('form.field.padding.x')); 1500 } 1501 1502 .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-clear-icon { 1503 inset-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size')); 1504 } 1505 1506 .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input { 1507 padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size')); 1508 } 1509 1510 .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input { 1511 padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2)); 1512 } 1513 1514 .p-inputgroup .p-datepicker-dropdown { 1515 border-radius: 0; 1516 } 1517 1518 .p-inputgroup > .p-datepicker:last-child:has(.p-datepicker-dropdown) > .p-datepicker-input { 1519 border-start-end-radius: 0; 1520 border-end-end-radius: 0; 1521 } 1522 1523 .p-inputgroup > .p-datepicker:last-child .p-datepicker-dropdown { 1524 border-start-end-radius: dt('datepicker.dropdown.border.radius'); 1525 border-end-end-radius: dt('datepicker.dropdown.border.radius'); 1526 } 1527`;var
vendor: 26,290 bytes, lines 1527-1531
1527Nk=["date"],Vk=["header"],zk=["footer"],Bk=["disabledDate"],Hk=["decade"],Gk=["previousicon"],Uk=["nexticon"],jk=["triggericon"],Wk=["clearicon"],$k=["decrementicon"],qk=["incrementicon"],Yk=["inputicon"],Kk=["buttonbar"],Qk=["inputfield"],Zk=["contentWrapper"],Jk=[[["p-header"]],[["p-footer"]]],Xk=["p-header","p-footer"],eE=e=>({clickCallBack:e}),tE=(e,i)=>({showTransitionParams:e,hideTransitionParams:i}),iE=e=>({value:"visible",params:e}),jv=e=>({visibility:e}),Wp=e=>({$implicit:e}),nE=e=>({date:e}),oE=(e,i)=>({month:e,index:i}),rE=e=>({year:e}),aE=(e,i)=>({todayCallback:e,clearCallback:i});function sE(e,i){if(e&1){let t=L();Oe(),h(0,"svg",10),R("click",function(){S(t);let o=g(3);return k(o.clear())}),p()}if(e&2){let t=g(3);ie(t.cx("clearIcon")),f("pBind",t.ptm("inputIcon"))}}function lE(e,i){}function cE(e,i){e&1&&H(0,lE,0,0,"ng-template")}function dE(e,i){if(e&1){let t=L();h(0,"span",11),R("click",function(){S(t);let o=g(3);return k(o.clear())}),H(1,cE,1,0,null,12),p()}if(e&2){let t=g(3);ie(t.cx("clearIcon")),f("pBind",t.ptm("inputIcon")),d(),f("ngTemplateOutlet",t.clearIconTemplate||t._clearIconTemplate)}}function uE(e,i){if(e&1&&(dt(0),H(1,sE,1,3,"svg",8)(2,dE,2,4,"span",9),ut()),e&2){let t=g(2);d(),f("ngIf",!t.clearIconTemplate&&!t._clearIconTemplate),d(),f("ngIf",t.clearIconTemplate||t._clearIconTemplate)}}function pE(e,i){if(e&1&&x(0,"span",15),e&2){let t=g(3);f("ngClass",t.icon)("pBind",t.ptm("dropdownIcon"))}}function hE(e,i){if(e&1&&(Oe(),x(0,"svg",17)),e&2){let t=g(4);f("pBind",t.ptm("dropdownIcon"))}}function gE(e,i){}function mE(e,i){e&1&&H(0,gE,0,0,"ng-template")}function fE(e,i){if(e&1&&(dt(0),H(1,hE,1,1,"svg",16)(2,mE,1,0,null,12),ut()),e&2){let t=g(3);d(),f("ngIf",!t.triggerIconTemplate&&!t._triggerIconTemplate),d(),f("ngTemplateOutlet",t.triggerIconTemplate||t._triggerIconTemplate)}}function vE(e,i){if(e&1){let t=L();h(0,"button",13),R("click",function(o){S(t),g();let r=Je(1),a=g();return k(a.onButtonClick(o,r))}),H(1,pE,1,2,"span",14)(2,fE,3,2,"ng-container",6),p()}if(e&2){let t=g(2);ie(t.cx("dropdown")),f("disabled",t.$disabled())("pBind",t.ptm("dropdown")),ve("aria-label",t.iconButtonAriaLabel)("aria-expanded",t.overlayVisible??!1)("aria-controls",t.overlayVisible?t.panelId:null),d(),f("ngIf",t.icon),d(),f("ngIf",!t.icon)}}function CE(e,i){if(e&1){let t=L();Oe(),h(0,"svg",21),R("click",function(o){S(t);let r=g(3);return k(r.onButtonClick(o))}),p()}if(e&2){let t=g(3);ie(t.cx("inputIcon")),f("pBind",t.ptm("inputIcon"))}}function bE(e,i){e&1&&si(0)}function _E(e,i){if(e&1&&(dt(0),h(1,"span",18),H(2,CE,1,3,"svg",19)(3,bE,1,0,"ng-container",20),p(),ut()),e&2){let t=g(2);d(),ie(t.cx("inputIconContainer")),f("pBind",t.ptm("inputIconContainer")),d(),f("ngIf",!t.inputIconTemplate&&!t._inputIconTemplate),d(),f("ngTemplateOutlet",t.inputIconTemplate||t._inputIconTemplate)("ngTemplateOutletContext",j(6,eE,t.onButtonClick.bind(t)))}}function yE(e,i){if(e&1){let t=L();h(0,"input",5,0),R("focus",function(o){S(t);let r=g();return k(r.onInputFocus(o))})("keydown",function(o){S(t);let r=g();return k(r.onInputKeydown(o))})("click",function(){S(t);let o=g();return k(o.onInputClick())})("blur",function(o){S(t);let r=g();return k(r.onInputBlur(o))})("input",function(o){S(t);let r=g();return k(r.onUserInput(o))}),p(),H(2,uE,3,2,"ng-container",6)(3,vE,3,9,"button",7)(4,_E,4,8,"ng-container",6)}if(e&2){let t=g();ie(t.cn(t.cx("pcInputText"),t.inputStyleClass)),f("pSize",t.size())("value",t.inputFieldValue)("ngStyle",t.inputStyle)("pAutoFocus",t.autofocus)("variant",t.$variant())("fluid",t.hasFluid)("invalid",t.invalid())("pt",t.ptm("pcInputText")),ve("size",t.inputSize())("id",t.inputId)("name",t.name())("aria-required",t.required())("aria-expanded",t.overlayVisible??!1)("aria-controls",t.overlayVisible?t.panelId:null)("aria-labelledby",t.ariaLabelledBy)("aria-label",t.ariaLabel)("required",t.required()?"":void 0)("readonly",t.readonlyInput?"":void 0)("disabled",t.$disabled()?"":void 0)("placeholder",t.placeholder)("tabindex",t.tabindex)("inputmode",t.touchUI?"off":null),d(2),f("ngIf",t.showClear&&!t.$disabled()&&(t.inputfieldViewChild==null||t.inputfieldViewChild.nativeElement==null?null:t.inputfieldViewChild.nativeElement.value)),d(),f("ngIf",t.showIcon&&t.iconDisplay==="button"),d(),f("ngIf",t.iconDisplay==="input"&&t.showIcon)}}function wE(e,i){e&1&&si(0)}function xE(e,i){e&1&&(Oe(),x(0,"svg",30))}function SE(e,i){}function kE(e,i){e&1&&H(0,SE,0,0,"ng-template")}function EE(e,i){if(e&1&&(h(0,"span"),H(1,kE,1,0,null,12),p()),e&2){let t=g(5);d(),f("ngTemplateOutlet",t.previousIconTemplate||t._previousIconTemplate)}}function TE(e,i){if(e&1&&H(0,xE,1,0,"svg",29)(1,EE,2,1,"span",6),e&2){let t=g(4);f("ngIf",!t.previousIconTemplate&&!t._previousIconTemplate),d(),f("ngIf",t.previousIconTemplate||t._previousIconTemplate)}}function IE(e,i){if(e&1){let t=L();h(0,"button",31),R("click",function(o){S(t);let r=g(4);return k(r.switchToMonthView(o))})("keydown",function(o){S(t);let r=g(4);return k(r.onContainerButtonKeydown(o))}),b(1),p()}if(e&2){let t=g().$implicit,n=g(3);ie(n.cx("selectMonth")),f("pBind",n.ptm("selectMonth")),ve("disabled",n.switchViewButtonDisabled()?"":void 0)("aria-label",n.getTranslation("chooseMonth"))("data-pc-group-section","navigator"),d(),q(" ",n.getMonthName(t.month)," ")}}function ME(e,i){if(e&1){let t=L();h(0,"button",31),R("click",function(o){S(t);let r=g(4);return k(r.switchToYearView(o))})("keydown",function(o){S(t);let r=g(4);return k(r.onContainerButtonKeydown(o))}),b(1),p()}if(e&2){let t=g().$implicit,n=g(3);ie(n.cx("selectYear")),f("pBind",n.ptm("selectYear")),ve("disabled",n.switchViewButtonDisabled()?"":void 0)("aria-label",n.getTranslation("chooseYear"))("data-pc-group-section","navigator"),d(),q(" ",n.getYear(t)," ")}}function DE(e,i){if(e&1&&(dt(0),b(1),ut()),e&2){let t=g(5);d(),bi("",t.yearPickerValues()[0]," - ",t.yearPickerValues()[t.yearPickerValues().length-1])}}function PE(e,i){e&1&&si(0)}function RE(e,i){if(e&1&&(h(0,"span",18),H(1,DE,2,2,"ng-container",6)(2,PE,1,0,"ng-container",20),p()),e&2){let t=g(4);ie(t.cx("decade")),f("pBind",t.ptm("decade")),d(),f("ngIf",!t.decadeTemplate&&!t._decadeTemplate),d(),f("ngTemplateOutlet",t.decadeTemplate||t._decadeTemplate)("ngTemplateOutletContext",j(6,Wp,t.yearPickerValues))}}function FE(e,i){e&1&&(Oe(),x(0,"svg",33))}function AE(e,i){}function OE(e,i){e&1&&H(0,AE,0,0,"ng-template")}function LE(e,i){if(e&1&&(dt(0),H(1,OE,1,0,null,12),ut()),e&2){let t=g(5);d(),f("ngTemplateOutlet",t.nextIconTemplate||t._nextIconTemplate)}}function NE(e,i){if(e&1&&H(0,FE,1,0,"svg",32)(1,LE,2,1,"ng-container",6),e&2){let t=g(4);f("ngIf",!t.nextIconTemplate&&!t._nextIconTemplate),d(),f("ngIf",t.nextIconTemplate||t._nextIconTemplate)}}function VE(e,i){if(e&1&&(h(0,"th",18)(1,"span",18),b(2),p()()),e&2){let t=g(5);ie(t.cx("weekHeader")),f("pBind",t.ptm("weekHeader")),d(),f("pBind",t.ptm("weekHeaderLabel")),d(),A(t.getTranslation("weekHeader"))}}function zE(e,i){if(e&1&&(h(0,"th",37)(1,"span",18),b(2),p()()),e&2){let t=i.$implicit,n=g(5);ie(n.cx("weekDayCell")),f("pBind",n.ptm("weekDayCell")),d(),ie(n.cx("weekDay")),f("pBind",n.ptm("weekDay")),d(),A(t)}}function BE(e,i){if(e&1&&(h(0,"td",18)(1,"span",18),b(2),p()()),e&2){let t=g().index,n=g(2).$implicit,o=g(3);ie(o.cx("weekNumber")),f("pBind",o.ptm("weekNumber")),d(),ie(o.cx("weekLabelContainer")),f("pBind",o.ptm("weekLabelContainer")),d(),q(" ",n.weekNumbers[t]," ")}}function HE(e,i){if(e&1&&(dt(0),b(1),ut()),e&2){let t=g(2).$implicit;d(),A(t.day)}}function GE(e,i){e&1&&si(0)}function UE(e,i){if(e&1&&(dt(0),H(1,GE,1,0,"ng-container",20),ut()),e&2){let t=g(2).$implicit,n=g(6);d(),f("ngTemplateOutlet",n.dateTemplate||n._dateTemplate)("ngTemplateOutletContext",j(2,Wp,t))}}function jE(e,i){e&1&&si(0)}function WE(e,i){if(e&1&&(dt(0),H(1,jE,1,0,"ng-container",20),ut()),e&2){let t=g(2).$implicit,n=g(6);d(),f("ngTemplateOutlet",n.disabledDateTemplate||n._disabledDateTemplate)("ngTemplateOutletContext",j(2,Wp,t))}}function $E(e,i){if(e&1&&(h(0,"div",40),b(1),p()),e&2){let t=g(2).$implicit;d(),q(" ",t.day," ")}}function qE(e,i){if(e&1){let t=L();dt(0),h(1,"span",38),R("click",function(o){S(t);let r=g().$implicit,a=g(6);return k(a.onDateSelect(o,r))})("keydown",function(o){S(t);let r=g().$implicit,a=g(3).index,s=g(3);return k(s.onDateCellKeydown(o,r,a))}),H(2,HE,2,1,"ng-container",6)(3,UE,2,4,"ng-container",6)(4,WE,2,4,"ng-container",6),p(),H(5,$E,2,1,"div",39),ut()}if(e&2){let t=g().$implicit,n=g(6);d(),f("ngClass",n.dayClass(t))("pBind",n.ptm("day")),ve("data-date",n.formatDateKey(n.formatDateMetaToDate(t))),d(),f("ngIf",!n.dateTemplate&&!n._dateTemplate&&(t.selectable||!n.disabledDateTemplate&&!n._disabledDateTemplate)),d(),f("ngIf",t.selectable||!n.disabledDateTemplate&&!n._disabledDateTemplate),d(),f("ngIf",!t.selectable),d(),f("ngIf",n.isSelected(t))}}function YE(e,i){if(e&1&&(h(0,"td",18),H(1,qE,6,7,"ng-container",6),p()),e&2){let t=i.$implicit,n=g(6);ie(n.cx("dayCell",j(5,nE,t))),f("pBind",n.ptm("dayCell")),ve("aria-label",t.day),d(),f("ngIf",t.otherMonth?n.showOtherMonths:!0)}}function KE(e,i){if(e&1&&(h(0,"tr",18),H(1,BE,3,7,"td",23)(2,YE,2,7,"td",24),p()),e&2){let t=i.$implicit,n=g(5);f("pBind",n.ptm("tableBodyRow")),d(),f("ngIf",n.showWeek),d(),f("ngForOf",t)}}function QE(e,i){if(e&1&&(h(0,"table",34)(1,"thead",18)(2,"tr",18),H(3,VE,3,5,"th",23)(4,zE,3,7,"th",35),p()(),h(5,"tbody",18),H(6,KE,3,3,"tr",36),p()()),e&2){let t=g().$implicit,n=g(3);ie(n.cx("dayView")),f("pBind",n.ptm("table")),d(),f("pBind",n.ptm("tableHeader")),d(),f("pBind",n.ptm("tableHeaderRow")),d(),f("ngIf",n.showWeek),d(),f("ngForOf",n.weekDays),d(),f("pBind",n.ptm("tableBody")),d(),f("ngForOf",t.dates)}}function ZE(e,i){if(e&1){let t=L();h(0,"div",18)(1,"div",18)(2,"p-button",25),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("onClick",function(o){S(t);let r=g(3);return k(r.onPrevButtonClick(o))}),H(3,TE,2,2,"ng-template",null,2,Xt),p(),h(5,"div",18),H(6,IE,2,7,"button",26)(7,ME,2,7,"button",26)(8,RE,3,8,"span",23),p(),h(9,"p-button",27),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("onClick",function(o){S(t);let r=g(3);return k(r.onNextButtonClick(o))}),H(10,NE,2,2,"ng-template",null,2,Xt),p()(),H(12,QE,7,9,"table",28),p()}if(e&2){let t=i.index,n=g(3);ie(n.cx("calendar")),f("pBind",n.ptm("calendar")),d(),ie(n.cx("header")),f("pBind",n.ptm("header")),d(),f("styleClass",n.cx("pcPrevButton"))("ngStyle",j(23,jv,t===0?"visible":"hidden"))("ariaLabel",n.prevIconAriaLabel)("pt",n.ptm("pcPrevButton")),ve("data-pc-group-section","navigator"),d(3),ie(n.cx("title")),f("pBind",n.ptm("title")),d(),f("ngIf",n.currentView==="date"),d(),f("ngIf",n.currentView!=="year"),d(),f("ngIf",n.currentView==="year"),d(),f("styleClass",n.cx("pcNextButton"))("ngStyle",j(25,jv,t===n.months.length-1?"visible":"hidden"))("ariaLabel",n.nextIconAriaLabel)("pt",n.ptm("pcNextButton")),ve("data-pc-group-section","navigator"),d(3),f("ngIf",n.currentView==="date")}}function JE(e,i){if(e&1&&(h(0,"div",40),b(1),p()),e&2){let t=g().$implicit;d(),q(" ",t," ")}}function XE(e,i){if(e&1){let t=L();h(0,"span",42),R("click",function(o){let r=S(t).index,a=g(4);return k(a.onMonthSelect(o,r))})("keydown",function(o){let r=S(t).index,a=g(4);return k(a.onMonthCellKeydown(o,r))}),b(1),H(2,JE,2,1,"div",39),p()}if(e&2){let t=i.$implicit,n=i.index,o=g(4);ie(o.cx("month",He(5,oE,t,n))),f("pBind",o.ptm("month")),d(),q(" ",t," "),d(),f("ngIf",o.isMonthSelected(n))}}function eT(e,i){if(e&1&&(h(0,"div",18),H(1,XE,3,8,"span",41),p()),e&2){let t=g(3);ie(t.cx("monthView")),f("pBind",t.ptm("monthView")),d(),f("ngForOf",t.monthPickerValues())}}function tT(e,i){if(e&1&&(h(0,"div",40),b(1),p()),e&2){let t=g().$implicit;d(),q(" ",t," ")}}function iT(e,i){if(e&1){let t=L();h(0,"span",42),R("click",function(o){let r=S(t).$implicit,a=g(4);return k(a.onYearSelect(o,r))})("keydown",function(o){let r=S(t).$implicit,a=g(4);return k(a.onYearCellKeydown(o,r))}),b(1),H(2,tT,2,1,"div",39),p()}if(e&2){let t=i.$implicit,n=g(4);ie(n.cx("year",j(5,rE,t))),f("pBind",n.ptm("year")),d(),q(" ",t," "),d(),f("ngIf",n.isYearSelected(t))}}function nT(e,i){if(e&1&&(h(0,"div",18),H(1,iT,3,7,"span",41),p()),e&2){let t=g(3);ie(t.cx("yearView")),f("pBind",t.ptm("yearView")),d(),f("ngForOf",t.yearPickerValues())}}function oT(e,i){if(e&1&&(dt(0),h(1,"div",18),H(2,ZE,13,27,"div",24),p(),H(3,eT,2,4,"div",23)(4,nT,2,4,"div",23),ut()),e&2){let t=g(2);d(),ie(t.cx("calendarContainer")),f("pBind",t.ptm("calendarContainer")),d(),f("ngForOf",t.months),d(),f("ngIf",t.currentView==="month"),d(),f("ngIf",t.currentView==="year")}}function rT(e,i){if(e&1&&(Oe(),x(0,"svg",46)),e&2){let t=g(4);f("pBind",t.ptm("pcIncrementButton").icon)}}function aT(e,i){}function sT(e,i){e&1&&H(0,aT,0,0,"ng-template")}function lT(e,i){if(e&1&&H(0,rT,1,1,"svg",45)(1,sT,1,0,null,12),e&2){let t=g(3);f("ngIf",!t.incrementIconTemplate&&!t._incrementIconTemplate),d(),f("ngTemplateOutlet",t.incrementIconTemplate||t._incrementIconTemplate)}}function cT(e,i){e&1&&(dt(0),b(1,"0"),ut())}function dT(e,i){if(e&1&&(Oe(),x(0,"svg",48)),e&2){let t=g(4);f("pBind",t.ptm("pcDecrementButton").icon)}}function uT(e,i){}function pT(e,i){e&1&&H(0,uT,0,0,"ng-template")}function hT(e,i){if(e&1&&H(0,dT,1,1,"svg",47)(1,pT,1,0,null,12),e&2){let t=g(3);f("ngIf",!t.decrementIconTemplate&&!t._decrementIconTemplate),d(),f("ngTemplateOutlet",t.decrementIconTemplate||t._decrementIconTemplate)}}function gT(e,i){if(e&1&&(Oe(),x(0,"svg",46)),e&2){let t=g(4);f("pBind",t.ptm("pcIncrementButton").icon)}}function mT(e,i){}function fT(e,i){e&1&&H(0,mT,0,0,"ng-template")}function vT(e,i){if(e&1&&H(0,gT,1,1,"svg",45)(1,fT,1,0,null,12),e&2){let t=g(3);f("ngIf",!t.incrementIconTemplate&&!t._incrementIconTemplate),d(),f("ngTemplateOutlet",t.incrementIconTemplate||t._incrementIconTemplate)}}function CT(e,i){e&1&&(dt(0),b(1,"0"),ut())}function bT(e,i){if(e&1&&(Oe(),x(0,"svg",48)),e&2){let t=g(4);f("pBind",t.ptm("pcDecrementButton").icon)}}function _T(e,i){}function yT(e,i){e&1&&H(0,_T,0,0,"ng-template")}function wT(e,i){if(e&1&&H(0,bT,1,1,"svg",47)(1,yT,1,0,null,12),e&2){let t=g(3);f("ngIf",!t.decrementIconTemplate&&!t._decrementIconTemplate),d(),f("ngTemplateOutlet",t.decrementIconTemplate||t._decrementIconTemplate)}}function xT(e,i){if(e&1&&(h(0,"div",18)(1,"span",18),b(2),p()()),e&2){let t=g(3);ie(t.cx("separator")),f("pBind",t.ptm("separatorContainer")),d(),f("pBind",t.ptm("separator")),d(),A(t.timeSeparator)}}function ST(e,i){if(e&1&&(Oe(),x(0,"svg",46)),e&2){let t=g(5);f("pBind",t.ptm("pcIncrementButton").icon)}}function kT(e,i){}function ET(e,i){e&1&&H(0,kT,0,0,"ng-template")}function TT(e,i){if(e&1&&H(0,ST,1,1,"svg",45)(1,ET,1,0,null,12),e&2){let t=g(4);f("ngIf",!t.incrementIconTemplate&&!t._incrementIconTemplate),d(),f("ngTemplateOutlet",t.incrementIconTemplate||t._incrementIconTemplate)}}function IT(e,i){e&1&&(dt(0),b(1,"0"),ut())}function MT(e,i){if(e&1&&(Oe(),x(0,"svg",48)),e&2){let t=g(5);f("pBind",t.ptm("pcDecrementButton").icon)}}function DT(e,i){}function PT(e,i){e&1&&H(0,DT,0,0,"ng-template")}function RT(e,i){if(e&1&&H(0,MT,1,1,"svg",47)(1,PT,1,0,null,12),e&2){let t=g(4);f("ngIf",!t.decrementIconTemplate&&!t._decrementIconTemplate),d(),f("ngTemplateOutlet",t.decrementIconTemplate||t._decrementIconTemplate)}}function FT(e,i){if(e&1){let t=L();h(0,"div",18)(1,"p-button",43),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){S(t);let r=g(3);return k(r.incrementSecond(o))})("keydown.space",function(o){S(t);let r=g(3);return k(r.incrementSecond(o))})("mousedown",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){S(t);let o=g(3);return k(o.onTimePickerElementMouseLeave())}),H(2,TT,2,2,"ng-template",null,2,Xt),p(),h(4,"span",18),H(5,IT,2,0,"ng-container",6),b(6),p(),h(7,"p-button",43),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){S(t);let r=g(3);return k(r.decrementSecond(o))})("keydown.space",function(o){S(t);let r=g(3);return k(r.decrementSecond(o))})("mousedown",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){S(t);let r=g(3);return k(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){S(t);let o=g(3);return k(o.onTimePickerElementMouseLeave())}),H(8,RT,2,2,"ng-template",null,2,Xt),p()()}if(e&2){let t=g(3);ie(t.cx("secondPicker")),f("pBind",t.ptm("secondPicker")),d(),f("styleClass",t.cx("pcIncrementButton"))("pt",t.ptm("pcIncrementButton")),ve("aria-label",t.getTranslation("nextSecond"))("data-pc-group-section","timepickerbutton"),d(3),f("pBind",t.ptm("second")),d(),f("ngIf",t.currentSecond<10),d(),A(t.currentSecond),d(),f("styleClass",t.cx("pcDecrementButton"))("pt",t.ptm("pcDecrementButton")),ve("aria-label",t.getTranslation("prevSecond"))("data-pc-group-section","timepickerbutton")}}function AT(e,i){if(e&1&&(h(0,"div",18)(1,"span",18),b(2),p()()),e&2){let t=g(3);ie(t.cx("separator")),f("pBind",t.ptm("separatorContainer")),d(),f("pBind",t.ptm("separator")),d(),A(t.timeSeparator)}}function OT(e,i){if(e&1&&(Oe(),x(0,"svg",46)),e&2){let t=g(5);f("pBind",t.ptm("pcIncrementButton").icon)}}function LT(e,i){}function NT(e,i){e&1&&H(0,LT,0,0,"ng-template")}function VT(e,i){if(e&1&&H(0,OT,1,1,"svg",45)(1,NT,1,0,null,12),e&2){let t=g(4);f("ngIf",!t.incrementIconTemplate&&!t._incrementIconTemplate),d(),f("ngTemplateOutlet",t.incrementIconTemplate||t._incrementIconTemplate)}}function zT(e,i){if(e&1&&(Oe(),x(0,"svg",48)),e&2){let t=g(5);f("pBind",t.ptm("pcDecrementButton").icon)}}function BT(e,i){}function HT(e,i){e&1&&H(0,BT,0,0,"ng-template")}function GT(e,i){if(e&1&&H(0,zT,1,1,"svg",47)(1,HT,1,0,null,12),e&2){let t=g(4);f("ngIf",!t.decrementIconTemplate&&!t._decrementIconTemplate),d(),f("ngTemplateOutlet",t.decrementIconTemplate||t._decrementIconTemplate)}}function UT(e,i){if(e&1){let t=L();h(0,"div",18)(1,"p-button",49),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("onClick",function(o){S(t);let r=g(3);return k(r.toggleAMPM(o))})("keydown.enter",function(o){S(t);let r=g(3);return k(r.toggleAMPM(o))}),H(2,VT,2,2,"ng-template",null,2,Xt),p(),h(4,"span",18),b(5),p(),h(6,"p-button",50),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("click",function(o){S(t);let r=g(3);return k(r.toggleAMPM(o))})("keydown.enter",function(o){S(t);let r=g(3);return k(r.toggleAMPM(o))}),H(7,GT,2,2,"ng-template",null,2,Xt),p()()}if(e&2){let t=g(3);ie(t.cx("ampmPicker")),f("pBind",t.ptm("ampmPicker")),d(),f("styleClass",t.cx("pcIncrementButton"))("pt",t.ptm("pcIncrementButton")),ve("aria-label",t.getTranslation("am"))("data-pc-group-section","timepickerbutton"),d(3),f("pBind",t.ptm("ampm")),d(),A(t.pm?"PM":"AM"),d(),f("styleClass",t.cx("pcDecrementButton"))("pt",t.ptm("pcDecrementButton")),ve("aria-label",t.getTranslation("pm"))("data-pc-group-section","timepickerbutton")}}function jT(e,i){if(e&1){let t=L();h(0,"div",18)(1,"div",18)(2,"p-button",43),R("keydown",function(o){S(t);let r=g(2);return k(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){S(t);let r=g(2);return k(r.incrementHour(o))})("keydown.space",function(o){S(t);let r=g(2);return k(r.incrementHour(o))})("mousedown",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){S(t);let o=g(2);return k(o.onTimePickerElementMouseLeave())}),H(3,lT,2,2,"ng-template",null,2,Xt),p(),h(5,"span",18),H(6,cT,2,0,"ng-container",6),b(7),p(),h(8,"p-button",43),R("keydown",function(o){S(t);let r=g(2);return k(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){S(t);let r=g(2);return k(r.decrementHour(o))})("keydown.space",function(o){S(t);let r=g(2);return k(r.decrementHour(o))})("mousedown",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){S(t);let o=g(2);return k(o.onTimePickerElementMouseLeave())}),H(9,hT,2,2,"ng-template",null,2,Xt),p()(),h(11,"div",44)(12,"span",18),b(13),p()(),h(14,"div",18)(15,"p-button",43),R("keydown",function(o){S(t);let r=g(2);return k(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){S(t);let r=g(2);return k(r.incrementMinute(o))})("keydown.space",function(o){S(t);let r=g(2);return k(r.incrementMinute(o))})("mousedown",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){S(t);let o=g(2);return k(o.onTimePickerElementMouseLeave())}),H(16,vT,2,2,"ng-template",null,2,Xt),p(),h(18,"span",18),H(19,CT,2,0,"ng-container",6),b(20),p(),h(21,"p-button",43),R("keydown",function(o){S(t);let r=g(2);return k(r.onContainerButtonKeydown(o))})("keydown.enter",function(o){S(t);let r=g(2);return k(r.decrementMinute(o))})("keydown.space",function(o){S(t);let r=g(2);return k(r.decrementMinute(o))})("mousedown",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("keyup.space",function(o){S(t);let r=g(2);return k(r.onTimePickerElementMouseUp(o))})("mouseleave",function(){S(t);let o=g(2);return k(o.onTimePickerElementMouseLeave())}),H(22,wT,2,2,"ng-template",null,2,Xt),p()(),H(24,xT,3,5,"div",23)(25,FT,10,14,"div",23)(26,AT,3,5,"div",23)(27,UT,9,13,"div",23),p()}if(e&2){let t=g(2);ie(t.cx("timePicker")),f("pBind",t.ptm("timePicker")),d(),ie(t.cx("hourPicker")),f("pBind",t.ptm("hourPicker")),d(),f("styleClass",t.cx("pcIncrementButton"))("pt",t.ptm("pcIncrementButton")),ve("aria-label",t.getTranslation("nextHour"))("data-pc-group-section","timepickerbutton"),d(3),f("pBind",t.ptm("hour")),d(),f("ngIf",t.currentHour<10),d(),A(t.currentHour),d(),f("styleClass",t.cx("pcDecrementButton"))("pt",t.ptm("pcDecrementButton")),ve("aria-label",t.getTranslation("prevHour"))("data-pc-group-section","timepickerbutton"),d(3),f("pBind",t.ptm("separatorContainer")),d(),f("pBind",t.ptm("separator")),d(),A(t.timeSeparator),d(),ie(t.cx("minutePicker")),f("pBind",t.ptm("minutePicker")),d(),f("styleClass",t.cx("pcIncrementButton"))("pt",t.ptm("pcIncrementButton")),ve("aria-label",t.getTranslation("nextMinute"))("data-pc-group-section","timepickerbutton"),d(3),f("pBind",t.ptm("minute")),d(),f("ngIf",t.currentMinute<10),d(),A(t.currentMinute),d(),f("styleClass",t.cx("pcDecrementButton"))("pt",t.ptm("pcDecrementButton")),ve("aria-label",t.getTranslation("prevMinute"))("data-pc-group-section","timepickerbutton"),d(3),f("ngIf",t.showSeconds),d(),f("ngIf",t.showSeconds),d(),f("ngIf",t.hourFormat=="12"),d(),f("ngIf",t.hourFormat=="12")}}function WT(e,i){e&1&&si(0)}function $T(e,i){if(e&1&&H(0,WT,1,0,"ng-container",20),e&2){let t=g(3);f("ngTemplateOutlet",t.buttonBarTemplate||t._buttonBarTemplate)("ngTemplateOutletContext",He(2,aE,t.onTodayButtonClick.bind(t),t.onClearButtonClick.bind(t)))}}function qT(e,i){if(e&1){let t=L();h(0,"p-button",51),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("onClick",function(o){S(t);let r=g(3);return k(r.onTodayButtonClick(o))}),p(),h(1,"p-button",51),R("keydown",function(o){S(t);let r=g(3);return k(r.onContainerButtonKeydown(o))})("onClick",function(o){S(t);let r=g(3);return k(r.onClearButtonClick(o))}),p()}if(e&2){let t=g(3);f("styleClass",t.cx("pcTodayButton"))("label",t.getTranslation("today"))("ngClass",t.todayButtonStyleClass)("pt",t.ptm("pcTodayButton")),ve("data-pc-group-section","button"),d(),f("styleClass",t.cx("pcClearButton"))("label",t.getTranslation("clear"))("ngClass",t.clearButtonStyleClass)("pt",t.ptm("pcClearButton")),ve("data-pc-group-section","button")}}function YT(e,i){if(e&1&&(h(0,"div",18),y(1,$T,1,5,"ng-container")(2,qT,2,10),p()),e&2){let t=g(2);ie(t.cx("buttonbar")),f("pBind",t.ptm("buttonbar")),d(),w(t.buttonBarTemplate||t._buttonBarTemplate?1:2)}}function KT(e,i){e&1&&si(0)}function QT(e,i){if(e&1){let t=L();h(0,"div",22,1),R("@overlayAnimation.start",function(o){S(t);let r=g();return k(r.onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){S(t);let r=g();return k(r.onOverlayAnimationDone(o))})("click",function(o){S(t);let r=g();return k(r.onOverlayClick(o))}),Tt(2),H(3,wE,1,0,"ng-container",12)(4,oT,5,6,"ng-container",6)(5,jT,28,38,"div",23)(6,YT,3,4,"div",23),Tt(7,1),H(8,KT,1,0,"ng-container",12),p()}if(e&2){let t=g();ie(t.cn(t.cx("panel"),t.panelStyleClass)),f("ngStyle",t.panelStyle)("@overlayAnimation",j(18,iE,He(15,tE,t.showTransitionOptions,t.hideTransitionOptions)))("@.disabled",t.inline===!0)("pBind",t.ptm("panel")),ve("id",t.panelId)("aria-label",t.getTranslation("chooseDate"))("role",t.inline?null:"dialog")("aria-modal",t.inline?null:"true"),d(3),f("ngTemplateOutlet",t.headerTemplate||t._headerTemplate),d(),f("ngIf",!t.timeOnly),d(),f("ngIf",(t.showTime||t.timeOnly)&&t.currentView==="date"),d(),f("ngIf",t.showButtonBar),d(2),f("ngTemplateOutlet",t.footerTemplate||t._footerTemplate)}}var ZT=` 1528 ${Uv} 1529 1530 /* For PrimeNG */ 1531 .p-datepicker.ng-invalid.ng-dirty .p-inputtext {
1532 border-color: dt('inputtext.invalid.border.color'); 1533 } 1534`,JT={root:()=>({position:"relative"})},XT={root:({instance:e})=>["p-datepicker p-component p-inputwrapper",{"p-invalid":e.invalid(),"p-datepicker-fluid":e.hasFluid,"p-inputwrapper-filled":e.$filled(),"p-variant-filled":e.$variant()==="filled","p-inputwrapper-focus":e.focus||e.overlayVisible,"p-focus":e.focus||e.overlayVisible}],pcInputText:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:e})=>["p-datepicker-panel p-component",{"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":e.inline,"p-disabled":e.$disabled(),"p-datepicker-timeonly":e.timeOnly}],calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:e})=>["p-datepicker-day-cell",{"p-datepicker-other-month":e.otherMonth,"p-datepicker-today":e.today}],day:({instance:e,date:i})=>{let t="";if(e.isRangeSelection()&&e.isSelected(i)&&i.selectable){let n=e.value[0],o=e.value[1],r=n&&i.year===n.getFullYear()&&i.month===n.getMonth()&&i.day===n.getDate(),a=o&&i.year===o.getFullYear()&&i.month===o.getMonth()&&i.day===o.getDate();t=r||a?"p-datepicker-day-selected":"p-datepicker-day-selected-range"}return{"p-datepicker-day":!0,"p-datepicker-day-selected":!e.isRangeSelection()&&e.isSelected(i)&&i.selectable,"p-disabled":e.$disabled()||!i.selectable,[t]:!0}},monthView:"p-datepicker-month-view",month:({instance:e,index:i})=>["p-datepicker-month",{"p-datepicker-month-selected":e.isMonthSelected(i),"p-disabled":e.isMonthDisabled(i)}],yearView:"p-datepicker-year-view",year:({instance:e,year:i})=>["p-datepicker-year",{"p-datepicker-year-selected":e.isYearSelected(i),"p-disabled":e.isYearDisabled(i)}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button",clearIcon:"p-datepicker-clear-icon"},Wv=(()=>{class e extends Et{name="datepicker";style=ZT;classes=XT;inlineStyles=JT;static \u0275fac=(()=>{let t;return function(o){return(t||(t=de(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var eI={provide:ni,useExisting:lt(()=>qv),multi:!0},$v=new Me("DATEPICKER_INSTANCE"),qv=(()=>{class e extends bv{zone;overlayService;bindDirectiveInstance=F(gt,{self:!0});$pcDatePicker=F($v,{optional:!0,skipSelf:!0})??void 0;iconDisplay="button";styleClass;inputStyle;inputId;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;get dateFormat(){return this._dateFormat}set dateFormat(t){this._dateFormat=t,this.initialized&&this.updateInputfield()}multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;readonlyInput;shortYearCutoff="+10";get hourFormat(){return this._hourFormat}set hourFormat(t){this._hourFormat=t,this.initialized&&this.updateInputfield()}timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;
vendor: 4,178 bytes, line 1534
1534get minDate(){return this._minDate}set minDate(t){this._minDate=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(t){this._disabledDates=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(t){this._disabledDays=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get showTime(){return this._showTime}set showTime(t){this._showTime=t,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(t){this._responsiveOptions=t,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(t){this._numberOfMonths=t,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(t){this._firstDayOfWeek=t,this.createWeekDays()}get view(){return this._view}set view(t){this._view=t,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(t){if(this._defaultDate=t,this.initialized){let n=t||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}appendTo=xe(void 0);onFocus=new se;onBlur=new se;onClose=new se;onSelect=new se;onClear=new se;onInput=new se;onTodayClick=new se;onClearClick=new se;onMonthChange=new se;onYearChange=new se;onClickOutside=new se;onShow=new se;inputfieldViewChild;set content(t){this.contentViewChild=t,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=F(Wv);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;p;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;$appendTo=Pe(()=>this.appendTo()||this.config.overlayAppendTo());calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;_minDate;_maxDate;_dateFormat;_hourFormat="24";_showTime;_yearRange;preventDocumentListener;dayClass(t){return this._componentStyle.classes.day({instance:this,date:t})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;buttonBarTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_buttonBarTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(t,n){super(),this.zone=t,this.overlayService=n,this.window=this.document.defaultView}
1534onInit(){this.attributeSelector=tr("pn_id_"),this.panelId=this.attributeSelector+"_panel";let t=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=t.getMonth(),this.currentYear=t.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(t),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.$disabled()&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=Jo(this.el?.nativeElement)+"px")))}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}templates;
vendor: 29,618 bytes, line 1534
1534onAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"date":this._dateTemplate=t.template;break;case"decade":this._decadeTemplate=t.template;break;case"disabledDate":this._disabledDateTemplate=t.template;break;case"header":this._headerTemplate=t.template;break;case"inputicon":this._inputIconTemplate=t.template;break;case"buttonbar":this._buttonBarTemplate=t.template;break;case"previousicon":this._previousIconTemplate=t.template;break;case"nexticon":this._nextIconTemplate=t.template;break;case"triggericon":this._triggerIconTemplate=t.template;break;case"clearicon":this._clearIconTemplate=t.template;break;case"decrementicon":this._decrementIconTemplate=t.template;break;case"incrementicon":this._incrementIconTemplate=t.template;break;case"footer":this._footerTemplate=t.template;break;default:this._dateTemplate=t.template;break}})}getTranslation(t){return this.config.getTranslation(t)}populateYearOptions(t,n){this.yearOptions=[];for(let o=t;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let t=this.getFirstDateOfWeek(),n=this.getTranslation(Vi.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[t]),t=t==6?0:++t}monthPickerValues(){let t=[];for(let n=0;n<=11;n++)t.push(this.config.getTranslation("monthNamesShort")[n]);return t}yearPickerValues(){let t=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)t.push(n+o);return t}createMonths(t,n){this.months=this.months=[];for(let o=0;o<this.numberOfMonths;o++){let r=t+o,a=n;r>11&&(r=r%12,a=n+Math.floor((t+o)/12)),this.months.push(this.createMonth(r,a))}}getWeekNumber(t){let n=new Date(t.getTime());if(this.startWeekFromFirstDayOfYear){let r=+this.getFirstDateOfWeek();n.setDate(n.getDate()+6+r-n.getDay())}else n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(t,n){let o=[],r=this.getFirstDayOfMonthIndex(t,n),a=this.getDaysCountInMonth(t,n),s=this.getDaysCountInPrevMonth(t,n),l=1,c=new Date,u=[],m=Math.ceil((a+r)/7);for(let v=0;v<m;v++){let C=[];if(v==0){for(let E=s-r+1;E<=s;E++){let D=this.getPreviousMonthAndYear(t,n);C.push({day:E,month:D.month,year:D.year,otherMonth:!0,today:this.isToday(c,E,D.month,D.year),selectable:this.isSelectable(E,D.month,D.year,!0)})}let _=7-C.length;for(let E=0;E<_;E++)C.push({day:l,month:t,year:n,today:this.isToday(c,l,t,n),selectable:this.isSelectable(l,t,n,!1)}),l++}else for(let _=0;_<7;_++){if(l>a){let E=this.getNextMonthAndYear(t,n);C.push({day:l-a,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(c,l-a,E.month,E.year),selectable:this.isSelectable(l-a,E.month,E.year,!0)})}else C.push({day:l,month:t,year:n,today:this.isToday(c,l,t,n),selectable:this.isSelectable(l,t,n,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(C[0].year,C[0].month,C[0].day))),o.push(C)}return{month:t,year:n,dates:o,weekNumbers:u}}initTime(t){this.pm=t.getHours()>11,this.showTime?(this.currentMinute=t.getMinutes(),this.currentSecond=this.showSeconds?t.getSeconds():0,this.setCurrentHourPM(t.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(t){if(this.$disabled()){t.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(t){if(this.$disabled()){t.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let t=this.yearOptions;if(this.currentYear<t[0]){let n=t[t.length-1]-t[0];this.populateYearOptions(t[0]-n,t[t.length-1]-n)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let t=this.yearOptions;if(this.currentYear>t[t.length-1]){let n=t[t.length-1]-t[0];this.populateYearOptions(t[0]+n,t[t.length-1]+n)}}switchToMonthView(t){this.setCurrentView("month"),t.preventDefault()}switchToYearView(t){this.setCurrentView("year"),t.preventDefault()}onDateSelect(t,n){if(this.$disabled()||!n.selectable){t.preventDefault();return}this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,r)=>!this.isDateEquals(o,n)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{t.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),t.preventDefault()}shouldSelectDate(t){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(t,n){this.view==="month"?this.onDateSelect(t,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(t,n){this.view==="year"?this.onDateSelect(t,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let t="";if(this.value){if(this.isSingleSelection())t=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n<this.value.length;n++){let o=this.formatDateTime(this.value[n]);t+=o,n!==this.value.length-1&&(t+=this.multipleSeparator+" ")}else if(this.isRangeSelection()&&this.value&&this.value.length){let n=this.value[0],o=this.value[1];t=this.formatDateTime(n),o&&(t+=" "+this.rangeSeparator+" "+this.formatDateTime(o))}}this.writeModelValue(t),this.inputFieldValue=t,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}inputFieldValue=null;formatDateTime(t){let n=this.keepInvalid?t:null,o=this.isValidDateForTimeConstraints(t);return this.isValidDate(t)?this.timeOnly?n=this.formatTime(t):(n=this.formatDate(t,this.getDateFormat()),this.showTime&&(n+=" "+this.formatTime(t))):this.dataType==="string"&&(n=t),n=o?n:"",n}formatDateMetaToDate(t){return new Date(t.year,t.month,t.day)}formatDateKey(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`}setCurrentHourPM(t){this.hourFormat=="12"?(this.pm=t>11,t>=12?this.currentHour=t==12?12:t-12:this.currentHour=t==0?12:t):this.currentHour=t}setCurrentView(t){this.currentView=t,this.cd.detectChanges(),this.alignOverlay()}selectDate(t){let n=this.formatDateMetaToDate(t);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?n.setHours(this.pm?12:0):n.setHours(this.pm?this.currentHour+12:this.currentHour):n.setHours(this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else if(this.isRangeSelection())if(this.value&&this.value.length){let o=this.value[0],r=this.value[1];!r&&n.getTime()>=o.getTime()?r=n:(o=n,r=null),this.updateModel([o,r])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(t){if(this.value=t,this.dataType=="date")this.writeModelValue(this.value),this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.writeModelValue(n),this.onModelChange(n)}}getFirstDayOfMonthIndex(t,n){let o=new Date;o.setDate(1),o.setMonth(t),o.setFullYear(n);let r=o.getDay()+this.getSundayIndex();return r>=7?r-7:r}getDaysCountInMonth(t,n){return 32-this.daylightSavingAdjust(new Date(n,t,32)).getDate()}getDaysCountInPrevMonth(t,n){let o=this.getPreviousMonthAndYear(t,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(t,n){let o,r;return t===0?(o=11,r=n-1):(o=t-1,r=n),{month:o,year:r}}getNextMonthAndYear(t,n){let o,r;return t===11?(o=0,r=n+1):(o=t+1,r=n),{month:o,year:r}}getSundayIndex(){let t=this.getFirstDateOfWeek();return t>0?7-t:0}isSelected(t){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,t);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,t),n)break;return n}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],t)||this.isDateEquals(this.value[1],t)||this.isDateBetween(this.value[0],this.value[1],t):this.isDateEquals(this.value[0],t)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(t){if(!this.isComparable())return!1;if(this.isMultipleSelection())return this.value.some(n=>n.getMonth()===t&&n.getFullYear()===this.currentYear);if(this.isRangeSelection())if(this.value[1]){let n=new Date(this.currentYear,t,1),o=new Date(this.value[0].getFullYear(),this.value[0].getMonth(),1),r=new Date(this.value[1].getFullYear(),this.value[1].getMonth(),1);return n>=o&&n<=r}else return this.value[0]?.getFullYear()===this.currentYear&&this.value[0]?.getMonth()===t;else return this.value.getMonth()===t&&this.value.getFullYear()===this.currentYear}isMonthDisabled(t,n){let o=n??this.currentYear;for(let r=1;r<this.getDaysCountInMonth(t,o)+1;r++)if(this.isSelectable(r,t,o,!1))return!1;return!0}isYearDisabled(t){return Array(12).fill(0).every((n,o)=>this.isMonthDisabled(o,t))}isYearSelected(t){if(this.isComparable()){let n=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:n.getFullYear()===t}return!1}isDateEquals(t,n){return t&&gs(t)?t.getDate()===n.day&&t.getMonth()===n.month&&t.getFullYear()===n.year:!1}isDateBetween(t,n,o){let r=!1;if(gs(t)&&gs(n)){let a=this.formatDateMetaToDate(o);return t.getTime()<=a.getTime()&&n.getTime()>=a.getTime()}return r}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(t,n,o,r){return t.getDate()===n&&t.getMonth()===o&&t.getFullYear()===r}isSelectable(t,n,o,r){let a=!0,s=!0,l=!0,c=!0;return r&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&this.currentView!="year"&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>t))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()<o||this.maxDate.getFullYear()===o&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<t))&&(s=!1),this.disabledDates&&(l=!this.isDateDisabled(t,n,o)),this.disabledDays&&(c=!this.isDayDisabled(t,n,o)),a&&s&&l&&c)}isDateDisabled(t,n,o){if(this.disabledDates){for(let r of this.disabledDates)if(r.getFullYear()===o&&r.getMonth()===n&&r.getDate()===t)return!0}return!1}isDayDisabled(t,n,o){if(this.disabledDays){let a=new Date(o,n,t).getDay();return this.disabledDays.indexOf(a)!==-1}return!1}onInputFocus(t){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(t)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(t){this.focus=!1,this.onBlur.emit(t),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(t,n=this.inputfieldViewChild?.nativeElement){this.$disabled()||(this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay()))}clear(){this.value=null,this.inputFieldValue=null,this.writeModelValue(this.value),this.onModelChange(this.value),this.updateInputfield(),this.onClear.emit()}onOverlayClick(t){this.overlayService.add({originalEvent:t,target:this.el.nativeElement})}getMonthName(t){return this.config.getTranslation("monthNames")[t]}getYear(t){return this.currentView==="month"?this.currentYear:t.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.$disabled()}onPrevButtonClick(t){this.navigationState={backward:!0,button:!0},this.navBackward(t)}onNextButtonClick(t){this.navigationState={backward:!1,button:!0},this.navForward(t)}onContainerButtonKeydown(t){switch(t.which){case 9:if(this.inline||this.trapFocus(t),this.inline){let n=Bt(this.el?.nativeElement,".p-datepicker-header"),o=t.target;if(this.timeOnly)return;o==n?.children[n?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break;default:break}}onInputKeydown(t){this.isKeydown=!0,t.keyCode===40&&this.contentViewChild?this.trapFocus(t):t.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault()):t.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,t.preventDefault()):t.keyCode===9&&this.contentViewChild&&(Rp(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(t,n,o){let r=t.currentTarget,a=r.parentElement,s=this.formatDateMetaToDate(n);switch(t.which){case 40:{r.tabIndex="-1";let _=ps(a),E=a.parentElement.nextElementSibling;if(E){let D=E.children[_].children[0];Si(D,"p-disabled")?(this.navigationState={backward:!1},this.navForward(t)):(E.children[_].children[0].tabIndex="0",E.children[_].children[0].focus())}else this.navigationState={backward:!1},this.navForward(t);t.preventDefault();break}case 38:{r.tabIndex="-1";let _=ps(a),E=a.parentElement.previousElementSibling;if(E){let D=E.children[_].children[0];Si(D,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(t)):(D.tabIndex="0",D.focus())}else this.navigationState={backward:!0},this.navBackward(t);t.preventDefault();break}case 37:{r.tabIndex="-1";let _=a.previousElementSibling;if(_){let E=_.children[0];Si(E,"p-disabled")||Si(E.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(E.tabIndex="0",E.focus())}else this.navigateToMonth(!0,o);t.preventDefault();break}case 39:{r.tabIndex="-1";let _=a.nextElementSibling;if(_){let E=_.children[0];Si(E,"p-disabled")?this.navigateToMonth(!1,o):(E.tabIndex="0",E.focus())}else this.navigateToMonth(!1,o);t.preventDefault();break}case 13:case 32:{this.onDateSelect(t,n),t.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break}case 9:{this.inline||this.trapFocus(t);break}case 33:{r.tabIndex="-1";let _=new Date(s.getFullYear(),s.getMonth()-1,s.getDate()),E=this.formatDateKey(_);this.navigateToMonth(!0,o,`span[data-date='${E}']:not(.p-disabled):not(.p-ink)`),t.preventDefault();break}case 34:{r.tabIndex="-1";let _=new Date(s.getFullYear(),s.getMonth()+1,s.getDate()),E=this.formatDateKey(_);this.navigateToMonth(!1,o,`span[data-date='${E}']:not(.p-disabled):not(.p-ink)`),t.preventDefault();break}case 36:r.tabIndex="-1";let l=new Date(s.getFullYear(),s.getMonth(),1),c=this.formatDateKey(l),u=Bt(r.offsetParent,`span[data-date='${c}']:not(.p-disabled):not(.p-ink)`);u&&(u.tabIndex="0",u.focus()),t.preventDefault();break;case 35:r.tabIndex="-1";let m=new Date(s.getFullYear(),s.getMonth()+1,0),v=this.formatDateKey(m),C=Bt(r.offsetParent,`span[data-date='${v}']:not(.p-disabled):not(.p-ink)`);m&&(C.tabIndex="0",C.focus()),t.preventDefault();break;default:break}}onMonthCellKeydown(t,n){let o=t.currentTarget;switch(t.which){case 38:case 40:{o.tabIndex="-1";var r=o.parentElement.children,a=ps(o);let s=r[t.which===40?a+3:a-3];s&&(s.tabIndex="0",s.focus()),t.preventDefault();break}case 37:{o.tabIndex="-1";let s=o.previousElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{o.tabIndex="-1";let s=o.nextElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:case 32:{this.onMonthSelect(t,n),t.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break}case 9:{this.inline||this.trapFocus(t);break}default:break}}onYearCellKeydown(t,n){let o=t.currentTarget;switch(t.which){case 38:case 40:{o.tabIndex="-1";var r=o.parentElement.children,a=ps(o);let s=r[t.which===40?a+2:a-2];s&&(s.tabIndex="0",s.focus()),t.preventDefault();break}case 37:{o.tabIndex="-1";let s=o.previousElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{o.tabIndex="-1";let s=o.nextElementSibling;s?(s.tabIndex="0",s.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:case 32:{this.onYearSelect(t,n),t.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break}case 9:{this.trapFocus(t);break}default:break}}navigateToMonth(t,n,o){if(t)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this._focusKey=o,this.navBackward(event);else{let r=this.contentViewChild.nativeElement.children[n-1];if(o){let a=Bt(r,o);a.tabIndex="0",a.focus()}else{let a=tn(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),s=a[a.length-1];s.tabIndex="0",s.focus()}}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=o,this.navForward(event);else{let r=this.contentViewChild.nativeElement.children[n+1];if(o){let a=Bt(r,o);a.tabIndex="0",a.focus()}else{let a=Bt(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");a.tabIndex="0",a.focus()}}}updateFocus(){let t;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?Bt(this.contentViewChild.nativeElement,".p-datepicker-prev-button").focus():Bt(this.contentViewChild.nativeElement,".p-datepicker-next-button").focus();else{if(this.navigationState.backward){let n;this.currentView==="month"?n=tn(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?n=tn(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):n=tn(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(t=n[n.length-1])}else this.currentView==="month"?t=Bt(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?t=Bt(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):t=Bt(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");t&&(t.tabIndex="0",t.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){let t=this.contentViewChild?.nativeElement,n;if(this.currentView==="month"){let o=tn(t,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"),r=Bt(t,".p-datepicker-month-view .p-datepicker-month.p-highlight");o.forEach(a=>a.tabIndex=-1),n=r||o[0],o.length===0&&tn(t,'.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if(this.currentView==="year"){let o=tn(t,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"),r=Bt(t,".p-datepicker-year-view .p-datepicker-year.p-highlight");o.forEach(a=>a.tabIndex=-1),n=r||o[0],o.length===0&&tn(t,'.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if(n=Bt(t,"span.p-highlight"),!n){let o=Bt(t,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");o?n=o:n=Bt(t,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.$disabled()||n.focus()},1),this.preventFocus=!1)}trapFocus(t){let n=Rp(this.contentViewChild.nativeElement);if(n&&n.length>0)if(!n[0].ownerDocument.activeElement)n[0].focus();else{let o=n.indexOf(n[0].ownerDocument.activeElement);if(t.shiftKey)if(o==-1||o===0)if(this.focusTrap)n[n.length-1].focus();else{if(o===-1)return this.hideOverlay();if(o===0)return}else n[o-1].focus();else if(o==-1)if(this.timeOnly)n[0].focus();else{let r=0;for(let a=0;a<n.length;a++)n[a].tagName==="SPAN"&&(r=a);n[r].focus()}else if(o===n.length-1){if(!this.focusTrap&&o!=-1)return this.hideOverlay();n[0].focus()}else n[o+1].focus()}t.preventDefault()}onMonthDropdownChange(t){this.currentMonth=parseInt(t),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(t){this.currentYear=parseInt(t),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(t,n){return this.hourFormat=="12"?t===12?n?12:0:n?t+12:t:t}constrainTime(t,n,o,r){let a=[t,n,o],s=!1,l=this.value,c=this.convertTo24Hour(t,r),u=this.isRangeSelection(),m=this.isMultipleSelection();(u||m)&&(this.value||(this.value=[new Date,new Date]),u&&(l=this.value[1]||this.value[0]),m&&(l=this.value[this.value.length-1]));let C=l?l.toDateString():null,_=this.minDate&&C&&this.minDate.toDateString()===C,E=this.maxDate&&C&&this.maxDate.toDateString()===C;switch(_&&(s=this.minDate.getHours()>=12),!0){case(_&&s&&this.minDate.getHours()===12&&this.minDate.getHours()>c):a[0]=11;case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(_&&!s&&this.minDate.getHours()-1===c&&this.minDate.getHours()>c):a[0]=11,this.pm=!0;case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(_&&s&&this.minDate.getHours()>c&&c!==12):this.setCurrentHourPM(this.minDate.getHours()),a[0]=this.currentHour||0;case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(_&&this.minDate.getHours()>c):a[0]=this.minDate.getHours();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()>n):a[1]=this.minDate.getMinutes();case(_&&this.minDate.getHours()===c&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o):a[2]=this.minDate.getSeconds();break;case(E&&this.maxDate.getHours()<c):a[0]=this.maxDate.getHours();case(E&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()<n):a[1]=this.maxDate.getMinutes();case(E&&this.maxDate.getHours()===c&&this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<o):a[2]=this.maxDate.getSeconds();break}return a}incrementHour(t){let n=this.currentHour??0,o=(this.currentHour??0)+this.stepHour,r=this.pm;this.hourFormat=="24"?o=o>=24?o-24:o:this.hourFormat=="12"&&(n<12&&o>11&&(r=!this.pm),o=o>=13?o-12:o),this.toggleAMPMIfNotMinDate(r),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(o,this.currentMinute,this.currentSecond,r),t.preventDefault()}toggleAMPMIfNotMinDate(t){let n=this.value,o=n?n.toDateString():null;this.minDate&&o&&this.minDate.toDateString()===o&&this.minDate.getHours()>=12?this.pm=!0:this.pm=t}onTimePickerElementMouseDown(t,n,o){this.$disabled()||(this.repeat(t,null,n,o),t.preventDefault())}onTimePickerElementMouseUp(t){this.$disabled()||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.$disabled()&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(t,n,o,r){let a=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(t,100,o,r),this.cd.markForCheck()},a),o){case 0:r===1?this.incrementHour(t):this.decrementHour(t);break;case 1:r===1?this.incrementMinute(t):this.decrementMinute(t);break;case 2:r===1?this.incrementSecond(t):this.decrementSecond(t);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(t){let n=(this.currentHour??0)-this.stepHour,o=this.pm;this.hourFormat=="24"?n=n<0?24+n:n:this.hourFormat=="12"&&(this.currentHour===12&&(o=!this.pm),n=n<=0?12+n:n),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(n,this.currentMinute,this.currentSecond,o),t.preventDefault()}incrementMinute(t){let n=(this.currentMinute??0)+this.stepMinute;n=n>59?n-60:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,n,this.currentSecond,this.pm),t.preventDefault()}decrementMinute(t){let n=(this.currentMinute??0)-this.stepMinute;n=n<0?60+n:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,n,this.currentSecond||0,this.pm),t.preventDefault()}incrementSecond(t){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,n,this.pm),t.preventDefault()}decrementSecond(t){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,n,this.pm),t.preventDefault()}updateTime(){let t=this.value;this.isRangeSelection()&&(t=this.value[1]||this.value[0]),this.isMultipleSelection()&&(t=this.value[this.value.length-1]),t=t?new Date(t.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?t.setHours(this.pm?12:0):t.setHours(this.pm?this.currentHour+12:this.currentHour):t.setHours(this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?t=[this.value[0],t]:t=[t,null]),this.isMultipleSelection()&&(t=[...this.value.slice(0,-1),t]),this.updateModel(t),this.onSelect.emit(t),this.updateInputfield()}toggleAMPM(t){let n=!this.pm;this.pm=n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,this.currentSecond||0,n),this.updateTime(),t.preventDefault()}onUserInput(t){if(!this.isKeydown)return;this.isKeydown=!1;let n=t.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{let r=this.keepInvalid?n:null;this.updateModel(r)}this.onInput.emit(t)}isValidSelection(t){if(this.isSingleSelection())return this.isSelectable(t.getDate(),t.getMonth(),t.getFullYear(),!1);let n=t.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1));return n&&this.isRangeSelection()&&(n=t.length===1||t.length>1&&t[1]>=t[0]),n}parseValueFromString(t){if(!t||t.trim().length===0)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(t);else if(this.isMultipleSelection()){let o=t.split(this.multipleSeparator);n=[];for(let r of o)n.push(this.parseDateTime(r.trim()))}else if(this.isRangeSelection()){let o=t.split(" "+this.rangeSeparator+" ");n=[];for(let r=0;r<o.length;r++)n[r]=this.parseDateTime(o[r].trim())}return n}parseDateTime(t){let n,o=t.split(" ");if(this.timeOnly)n=new Date,this.populateTime(n,o[0],o[1]);else{let r=this.getDateFormat();if(this.showTime){let a=this.hourFormat=="12"?o.pop():null,s=o.pop();n=this.parseDate(o.join(" "),r),this.populateTime(n,s,a)}else n=this.parseDate(t,r)}return n}populateTime(t,n,o){if(this.hourFormat=="12"&&!o)throw"Invalid Time";this.pm=o==="PM"||o==="pm";let r=this.parseTime(n);t.setHours(r.hour),t.setMinutes(r.minute),t.setSeconds(r.second)}isValidDate(t){return gs(t)&&je(t)}updateUI(){let t=this.value;Array.isArray(t)&&(t=t.length===2?t[1]:t[0]);let n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:t&&this.isValidDate(t)?t:new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=this.showSeconds?n.getSeconds():0)}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(t){switch(t.toState){case"visible":case"visibleTouchUI":if(!this.inl
1534ine){this.overlay=t.element,this.$attrSelector&&this.overlay.setAttribute(this.$attrSelector,"");let n=this.inline?void 0:{position:"absolute",top:"0"};O0(this.overlay,n||{}),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?vs.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):vs.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(t)}break;case"void":this.onOverlayHide(),this.onClose.emit(t);break}}onOverlayAnimationDone(t){switch(t.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&vs.clear(t.element);break}}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?this.document.body.appendChild(this.overlay):V0(this.$appendTo(),this.overlay))}restoreOverlayAppend(){this.overlay&&this.$appendTo()!=="self"&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.view==="date"?(this.overlay.style.width||(this.overlay.style.width=Jo(this.overlay)+"px"),this.overlay.style.minWidth||(this.overlay.style.minWidth=Jo(this.inputfieldViewChild?.nativeElement)+"px")):this.overlay.style.width||(this.overlay.style.width=Jo(this.inputfieldViewChild?.nativeElement)+"px"),this.$appendTo()&&this.$appendTo()!=="self"?A0(this.overlay,this.inputfieldViewChild?.nativeElement):L0(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(t){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(t.style.zIndex)-1)),ao(this.mask,"p-overlay-mask p-datepicker-mask p-datepicker-mask-scrollblocker p-overlay-mask p-overlay-mask-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",o=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),gv())}disableModality(){this.mask&&(ao(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let t=this.document.body.children,n;for(let o=0;o<t.length;o++){let r=t[o];if(Si(r,"p-datepicker-mask-scrollblocker")){n=!0;break}}n||mv(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(Vi.FIRST_DAY_OF_WEEK)}formatDate(t,n){if(!t)return"";let o,r=u=>{let m=o+1<n.length&&n.charAt(o+1)===u;return m&&o++,m},a=(u,m,v)=>{let C=""+m;if(r(u))for(;C.length<v;)C="0"+C;return C},s=(u,m,v,C)=>r(u)?C[m]:v[m],l="",c=!1;if(t)for(o=0;o<n.length;o++)if(c)n.charAt(o)==="'"&&!r("'")?c=!1:l+=n.charAt(o);else switch(n.charAt(o)){case"d":l+=a("d",t.getDate(),2);break;case"D":l+=s("D",t.getDay(),this.getTranslation(Vi.DAY_NAMES_SHORT),this.getTranslation(Vi.DAY_NAMES));break;case"o":l+=a("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=a("m",t.getMonth()+1,2);break;case"M":l+=s("M",t.getMonth(),this.getTranslation(Vi.MONTH_NAMES_SHORT),this.getTranslation(Vi.MONTH_NAMES));break;case"y":l+=r("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":l+=t.getTime();break;case"!":l+=t.getTime()*1e4+this.ticksTo1970;break;case"'":r("'")?l+="'":c=!0;break;default:l+=n.charAt(o)}return l}formatTime(t){if(!t)return"";let n="",o=t.getHours(),r=t.getMinutes(),a=t.getSeconds();return this.hourFormat=="12"&&o>11&&o!=12&&(o-=12),this.hourFormat=="12"?n+=o===0?12:o<10?"0"+o:o:n+=o<10?"0"+o:o,n+=":",n+=r<10?"0"+r:r,this.showSeconds&&(n+=":",n+=a<10?"0"+a:a),this.hourFormat=="12"&&(n+=t.getHours()>11?" PM":" AM"),n}parseTime(t){let n=t.split(":"),o=this.showSeconds?3:2;if(n.length!==o)throw"Invalid time";let r=parseInt(n[0]),a=parseInt(n[1]),s=this.showSeconds?parseInt(n[2]):null;if(isNaN(r)||isNaN(a)||r>23||a>59||this.hourFormat=="12"&&r>12||this.showSeconds&&(isNaN(s)||s>59))throw"Invalid time";return this.hourFormat=="12"&&(r!==12&&this.pm?r+=12:!this.pm&&r===12&&(r-=12)),{hour:r,minute:a,second:s}}parseDate(t,n){if(n==null||t==null)throw"Invalid arguments";
vendor: 8,362 bytes, lines 1534-1546
1534if(t=typeof t=="object"?t.toString():t+"",t==="")return null;let o,r,a,s=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,m=-1,v=-1,C=!1,_,E=O=>{let K=o+1<n.length&&n.charAt(o+1)===O;return K&&o++,K},D=O=>{let K=E(O),we=O==="@"?14:O==="!"?20:O==="y"&&K?4:O==="o"?3:2,Ke=O==="y"?we:1,at=new RegExp("^\\d{"+Ke+","+we+"}"),$e=t.substring(s).match(at);if(!$e)throw"Missing number at position "+s;return s+=$e[0].length,parseInt($e[0],10)},P=(O,K,we)=>{let Ke=-1,at=E(O)?we:K,$e=[];for(let mt=0;mt<at.length;mt++)$e.push([mt,at[mt]]);$e.sort((mt,Qt)=>-(mt[1].length-Qt[1].length));for(let mt=0;mt<$e.length;mt++){let Qt=$e[mt][1];if(t.substr(s,Qt.length).toLowerCase()===Qt.toLowerCase()){Ke=$e[mt][0],s+=Qt.length;break}}if(Ke!==-1)return Ke+1;throw"Unknown name at position "+s},T=()=>{if(t.charAt(s)!==n.charAt(o))throw"Unexpected literal at position "+s;s++};for(this.view==="month"&&(m=1),o=0;o<n.length;o++)if(C)n.charAt(o)==="'"&&!E("'")?C=!1:T();else switch(n.charAt(o)){case"d":m=D("d");break;case"D":P("D",this.getTranslation(Vi.DAY_NAMES_SHORT),this.getTranslation(Vi.DAY_NAMES));break;case"o":v=D("o");break;case"m":u=D("m");break;case"M":u=P("M",this.getTranslation(Vi.MONTH_NAMES_SHORT),this.getTranslation(Vi.MONTH_NAMES));break;case"y":c=D("y");break;case"@":_=new Date(D("@")),c=_.getFullYear(),u=_.getMonth()+1,m=_.getDate();break;case"!":_=new Date((D("!")-this.ticksTo1970)/1e4),c=_.getFullYear(),u=_.getMonth()+1,m=_.getDate();break;case"'":E("'")?T():C=!0;break;default:T()}if(s<t.length&&(a=t.substr(s),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(c===-1?c=new Date().getFullYear():c<100&&(c+=new Date().getFullYear()-new Date().getFullYear()%100+(c<=l?0:-100)),v>-1){u=1,m=v;do{if(r=this.getDaysCountInMonth(c,u-1),m<=r)break;u++,m-=r}while(!0)}if(this.view==="year"&&(u=u===-1?1:u,m=m===-1?1:m),_=this.daylightSavingAdjust(new Date(c,u-1,m)),_.getFullYear()!==c||_.getMonth()+1!==u||_.getDate()!==m)throw"Invalid date";return _}daylightSavingAdjust(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null}isValidDateForTimeConstraints(t){return this.keepInvalid?!0:(!this.minDate||t>=this.minDate)&&(!this.maxDate||t<=this.maxDate)}onTodayButtonClick(t){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(n.getMonth(),n.getFullYear()),this.onDateSelect(t,o),this.onTodayClick.emit(n)}onClearButtonClick(t){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(t)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",hs(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let t="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!!(o.breakpoint&&o.numMonths)).sort((o,r)=>-1*o.breakpoint.localeCompare(r.breakpoint,void 0,{numeric:!0}));for(let o=0;o<n.length;o++){let{breakpoint:r,numMonths:a}=n[o],s=` 1535 .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${a}) .p-datepicker-next { 1536 display: inline-flex !important; 1537 } 1538 `;for(let l=a;l<this.numberOfMonths;l++)s+=` 1539 .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) { 1540 display: none !important; 1541 } 1542 `;t+=` 1543 @media screen and (max-width: ${r}) { 1544 ${s} 1545 } 1546 `}}this.responsiveStyleElement.innerHTML=t,hs(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let t=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(t,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Tc(this.el?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(t){return!(this.el.nativeElement.isSameNode(t.target)||this.isNavIconClicked(t)||this.el.nativeElement.contains(t.target)||this.overlay&&this.overlay.contains(t.target))}isNavIconClicked(t){return Si(t.target,"p-datepicker-prev-button")||Si(t.target,"p-datepicker-prev-icon")||Si(t.target,"p-datepicker-next-button")||Si(t.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!H0()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}writeControlValue(t){if(this.value=t,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=t)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&vs.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||e)(I(qn),I(tv))};static \u0275cmp=N({type:e,selectors:[["p-datePicker"],["p-datepicker"],["p-date-picker"]],contentQueries:function(n,o,r){if(n&1&&(vt(r,Nk,4),vt(r,Vk,4),vt(r,zk,4),vt(r,Bk,4),vt(r,Hk,4),vt(r,Gk,4),vt(r,Uk,4),vt(r,jk,4),vt(r,Wk,4),vt(r,$k,4),vt(r,qk,4),vt(r,Yk,4),vt(r,Kk,4),vt(r,kc,4)),n&2){let a;Se(a=ke())&&(o.dateTemplate=a.first),Se(a=ke())&&(o.headerTemplate=a.first),Se(a=ke())&&(o.footerTemplate=a.first),Se(a=ke())&&(o.disabledDateTemplate=a.first),Se(a=ke())&&(o.decadeTemplate=a.first),Se(a=ke())&&(o.previousIconTemplate=a.first),Se(a=ke())&&(o.nextIconTemplate=a.first),Se(a=ke())&&(o.triggerIconTemplate=a.first),Se(a=ke())&&(o.clearIconTemplate=a.first),Se(a=ke())&&(o.decrementIconTemplate=a.first),Se(a=ke())&&(o.incrementIconTemplate=a.first),Se(a=ke())&&(o.inputIconTemplate=a.first),Se(a=ke())&&(o.buttonBarTemplate=a.first),Se(a=ke())&&(o.templates=a)}},viewQuery:function(n,o){if(n&1&&(It(Qk,5),It(Zk,5)),n&2){let r;Se(r=ke())&&(o.inputfieldViewChild=r.first),Se(r=ke())&&(o.content=r.first)}},hostVars:4,hostBindings:function(n,o){n&2&&(yl(o.sx("root")),ie(o.cn(o.cx("root"),o.styleClass)))},inputs:{iconDisplay:"iconDisplay",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",ge],showOtherMonths:[2,"showOtherMonths","showOtherMonths",ge],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",ge],showIcon:[2,"showIcon","showIcon",ge],icon:"icon",readonlyInput:[2,"readonlyInput","readonlyInput",ge],shortYearCutoff:"shortYearCutoff",hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",ge],stepHour:[2,"stepHour","stepHour",yn],stepMinute:[2,"stepMinute","stepMinute",
1546yn],stepSecond:[2,"stepSecond","stepSecond",yn],showSeconds:[2,"showSeconds","showSeconds",ge],showOnFocus:[2,"showOnFocus","showOnFocus",ge],showWeek:[2,"showWeek","showWeek",ge],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",ge],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",yn],showButtonBar:[2,"showButtonBar","showButtonBar",ge],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",ge],autoZIndex:[2,"autoZIndex","autoZIndex",ge],baseZIndex:[2,"baseZIndex","baseZIndex",yn],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",ge],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",ge],touchUI:[2,"touchUI","touchUI",ge],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",ge],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",yn],minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",view:"view",defaultDate:"defaultDate",appendTo:[1,"appendTo"]},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Te([eI,Wv,{provide:$v,useExisting:e},{provide:Hi,useExisting:e}]),Yi([gt]),ue],ngContentSelectors:Xk,decls:2,vars:2,consts:[["inputfield",""],["contentWrapper",""],["icon",""],[3,"ngIf"],[3,"ngStyle","class","pBind","click",4,"ngIf"],["pInputText","","type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"focus","keydown","click","blur","input","pSize","value","ngStyle","pAutoFocus","variant","fluid","invalid","pt"],[4,"ngIf"],["type","button","aria-haspopup","dialog","tabindex","0",3,"class","disabled","pBind","click",4,"ngIf"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","tabindex","0",3,"click","disabled","pBind"],[3,"ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","calendar",3,"pBind",4,"ngIf"],["data-p-icon","calendar",3,"pBind"],[3,"pBind"],["data-p-icon","calendar",3,"class","pBind","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","calendar",3,"click","pBind"],[3,"click","ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngFor","ngForOf"],["rounded","","variant","text","severity","secondary","type","button",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["type","button","pRipple","",3,"class","pBind","click","keydown",4,"ngIf"],["rounded","","variant","text","severity","secondary",3,"keydown","onClick","styleClass","ngStyle","ariaLabel","pt"],["role","grid",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-left",4,"ngIf"],["data-p-icon","chevron-left"],["type","button","pRipple","",3,"click","keydown","pBind"],["data-p-icon","chevron-right",4,"ngIf"],["data-p-icon","chevron-right"],["role","grid",3,"pBind"],["scope","col",3,"class","pBind",4,"ngFor","ngForOf"],[3,"pBind",4,"ngFor","ngForOf"],["scope","col",3,"pBind"],["draggable","false","pRipple","",3,"click","keydown","ngClass","pBind"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],["pRipple","",3,"class","pBind","click","keydown",4,"ngFor","ngForOf"],["pRipple","",3,"click","keydown","pBind"],["rounded","","variant","text","severity","secondary",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave","styleClass","pt"],[1,"p-datepicker-separator",3,"pBind"],["data-p-icon","chevron-up",3,"pBind",4,"ngIf"],["data-p-icon","chevron-up",3,"pBind"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],["text","","rounded","","severity","secondary",3,"keydown","onClick","keydown.enter","styleClass","pt"],["text","","rounded","","severity","secondary",3,"keydown","click","keydown.enter","styleClass","pt"],["size","small","severity","secondary","variant","text","size","small",3,"keydown","onClick","styleClass","label","ngClass","pt"]],template:function(n,o){n&1&&(jt(Jk),H(0,yE,5,27,"ng-template",3)(1,QT,9,20,"div",4)),n&2&&(f("ngIf",!o.inline),d(),f("ngIf",o.inline||o.overlayVisible))},dependencies:[J,Ie,kl,yr,wr,Kn,Vv,Pc,Tv,Iv,Mv,Ev,Pv,kv,Ic,Gv,nn,Dc,gt],encapsulation:2,data:{animation:[xn("overlayAnimation",[Ki("visibleTouchUI",ht({transform:"translate(-50%,-50%)",opacity:1})),ti("void => visible",[ht({opacity:0,transform:"scaleY(0.8)"}),ei("{{showTransitionParams}}",ht({opacity:1,transform:"*"}))]),ti("visible => void",[ei("{{hideTransitionParams}}",ht({opacity:0}
1546))]),ti("void => visibleTouchUI",[ht({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),ei("{{showTransitionParams}}")]),ti("visibleTouchUI => void",[ei("{{hideTransitionParams}}",ht({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return e})(),JY=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=z({type:e});static \u0275inj=V({imports:[qv,nn,nn]})}return e})();var $p=new Me("JWT_OPTIONS"),Ur=(()=>{class e{constructor(t=null){this.tokenGetter=t&&t.tokenGetter||function(){}}urlBase64Decode(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:{n+="==";break}case 3:{n+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(n)}b64decode(t){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(t=String(t).replace(/=+$/,""),t.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let r=0,a,s,l=0;s=t.charAt(l++);~s&&(a=r%4?a*64+s:s,r++%4)?o+=String.fromCharCode(255&a>>(-2*r&6)):0)s=n.indexOf(s);return o}b64DecodeUnicode(t){return decodeURIComponent(Array.prototype.map.call(this.b64decode(t),n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(t=this.tokenGetter()){return t instanceof Promise?t.then(n=>this._decodeToken(n)):this._decodeToken(t)}_decodeToken(t){if(!t||t==="")return null;let n=t.split(".");if(n.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(n[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(t=this.tokenGetter()){return t instanceof Promise?t.then(n=>this._getTokenExpirationDate(n)):this._getTokenExpirationDate(t)}_getTokenExpirationDate(t){let n;if(n=this.decodeToken(t),!n||!n.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(n.exp),o}isTokenExpired(t=this.tokenGetter(),n){return t instanceof Promise?t.then(o=>this._isTokenExpired(o,n)):this._isTokenExpired(t,n)}_isTokenExpired(t,n){if(!t||t==="")return!0;let o=this.getTokenExpirationDate(t);return n=n||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+n*1e3)}getAuthScheme(t,n){return typeof t=="function"?t(n):t}}return e.\u0275fac=function(t){return new(t||e)(U($p))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})(),Yv=e=>e instanceof Promise?br(()=>e):W(e),tI=(()=>{class e{constructor(t,n,o){this.jwtHelper=n,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=t.tokenGetter,this.headerName=t.headerName||"Authorization",this.authScheme=t.authScheme||t.authScheme===""?t.authScheme:"Bearer ",this.allowedDomains=t.allowedDomains||[],this.disallowedRoutes=t.disallowedRoutes||[],this.throwNoTokenError=t.throwNoTokenError||!1,this.skipWhenExpired=t.skipWhenExpired}isAllowedDomain(t){let n=new URL(t.url,this.document.location.origin);if(n.host===this.document.location.host)return!0;let o=`${n.hostname}${n.port&&!this.standardPorts.includes(n.port)?":"+n.port:""}`;return this.allowedDomains.findIndex(r=>typeof r=="string"?r===o:r instanceof RegExp?r.test(o):!1)>-1}isDisallowedRoute(t){let n=new URL(t.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let r=new URL(o,this.document.location.origin);return r.hostname===n.hostname&&r.pathname===n.pathname}return o instanceof RegExp?o.test(t.url):!1})>-1}handleInterception(t,n,o){let r=this.jwtHelper.getAuthScheme(this.authScheme,n);if(!t&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let a=W(!1);return this.skipWhenExpired&&(a=t?Yv(this.jwtHelper.isTokenExpired(t)):W(!0)),t?a.pipe(G(s=>s&&this.skipWhenExpired?n.clone():n.clone({setHeaders:{[this.headerName]:`${r}${t}`}})),wt(s=>o.handle(s))):o.handle(n)}intercept(t,n){if(!this.isAllowedDomain(t)||this.isDisallowedRoute(t))return n.handle(t);let o=this.tokenGetter(t);return Yv(o).pipe(wt(r=>this.handleInterception(r,t,n)))}}return e.\u0275fac=function(t){return new(t||e)(U($p),U(Ur),U(Ze))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})(),uK=(()=>{class e{constructor(t){if(t)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(t){return{ngModule:e,providers:[{provide:Km,useClass:tI,multi:!0},t.jwtOptionsProvider||{provide:$p,useValue:t.config},Ur]}}}return e.\u0275fac=function(t){return new(t||e)(U(e,12))},e.\u0275mod=z({type:e}),e.\u0275inj=V({}),e})();var ir=(()=>{let i=class i{constructor(){this.document=F(Ze),this.platformId=F(De),this.request=F(Um,{optional:!0}),this.documentIsAccessible=Ee(this.platformId)}static getCookieRegExp(n){let o=n.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+o+"|;\\s*"+o+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(n){try{return decodeURIComponent(n)}catch{return n}}check(n){return n=encodeURIComponent(n),i.getCookieRegExp(n).test(this.documentIsAccessible?this.document.cookie:this.getRequestCookies())}get(n){if(this.check(n)){n=encodeURIComponent(n);let r=i.getCookieRegExp(n).exec(this.documentIsAccessible?this.document.cookie:this.getRequestCookies());return r?.[1]?i.safeDecodeURIComponent(r[1]):""}return""}getAll(){let n={},o=this.documentIsAccessible?this.document?.cookie:this.getRequestCookies();return o&&o!==""&&o.split(";").forEach(r=>{let[a,s]=r.split("=");n[i.safeDecodeURIComponent(a.replace(/^ /,""))]=i.safeDecodeURIComponent(s)}),n}set(n,o,r,a,s,l,c,u){if(!this.documentIsAccessible)return;if(typeof r=="number"||r instanceof Date||a||s||l||c){let C={expires:r,path:a,domain:s,secure:l,sameSite:c??"Lax",partitioned:u};this.set(n,o,C);return}let m=encodeURIComponent(n)+"="+encodeURIComponent(o)+";",v=r??{};if(v.expires)if(typeof v.expires=="number"){let C=new Date(new Date().getTime()+v.expires*1e3*60*60*24);m+="expires="+C.toUTCString()+";"}else m+="expires="+v.expires.toUTCString()+";";v.path&&(m+="path="+v.path+";"),v.domain&&(m+="domain="+v.domain+";"),v.secure===!1&&v.sameSite==="None"&&(v.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${n} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),v.secure&&(m+="secure;"),v.sameSite??="Lax",m+="sameSite="+v.sameSite+";",v.partitioned&&(m+="Partitioned;"),this.document.cookie=m}delete(n,o,r,a,s="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(n,"",{expires:l,path:o,domain:r,secure:a,sameSite:s})}deleteAll(n,o,r,a="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let l in s)s.hasOwnProperty(l)&&this.delete(l,n,o,r,a)}
1546getRequestCookies(){if(!this.request)return null;if(this.request.headers&&typeof this.request.headers.get=="function")return this.request.headers.get("cookie");let n=this.request;if(typeof n.get=="function")return n.get("cookie")||n.get("Cookie");let o=this.request.headers;return o&&typeof o=="object"?o.cookie||o.Cookie:null}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Gt=[];for(Rc=0;Rc<256;++Rc)Gt.push((Rc+256).toString(16).slice(1));var Rc;function Kv(e,i=0){return(Gt[e[i+0]]+Gt[e[i+1]]+Gt[e[i+2]]+Gt[e[i+3]]+"-"+Gt[e[i+4]]+Gt[e[i+5]]+"-"+Gt[e[i+6]]+Gt[e[i+7]]+"-"+Gt[e[i+8]]+Gt[e[i+9]]+"-"+Gt[e[i+10]]+Gt[e[i+11]]+Gt[e[i+12]]+Gt[e[i+13]]+Gt[e[i+14]]+Gt[e[i+15]]).toLowerCase()}var Fc,oI=new Uint8Array(16);function qp(){if(!Fc&&(Fc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Fc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fc(oI)}var rI=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Yp={randomUUID:rI};function aI(e,i,t){if(Yp.randomUUID&&!i&&!e)return Yp.randomUUID();e=e||{};var n=e.random||(e.rng||qp)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,i){t=t||0;for(var o=0;o<16;++o)i[t+o]=n[o];return i}return Kv(n)}var Kp=aI;function Qv(e,i){let t=i?.injector??F(Cn),n=new Un(1),o=qt(()=>{let r;try{r=e()}catch(a){pt(()=>n.error(a));return}pt(()=>n.next(r))},{injector:t,manualCleanup:!0});return t.get($n).onDestroy(()=>{o.destroy(),n.complete()}),n.asObservable()}function Zv(e,i){let n=!i?.manualCleanup?i?.injector?.get($n)??F($n):null,o=sI(i?.equal),r;i?.requireSync?r=Ae({kind:0},{equal:o}):r=Ae({kind:1,value:i?.initialValue},{equal:o});let a,s=e.subscribe({next:l=>r.set({kind:1,value:l}),error:l=>{r.set({kind:2,error:l}),a?.()},complete:()=>{a?.()}});if(i?.requireSync&&r().kind===0)throw new nt(601,!1);return a=n?.onDestroy(s.unsubscribe.bind(s)),Pe(()=>{let l=r();switch(l.kind){case 1:return l.value;case 2:throw l.error;case 0:throw new nt(601,!1)}},{equal:i?.equal})}function sI(e=Object.is){return(i,t)=>i.kind===1&&t.kind===1&&e(i.value,t.value)}var di="com.amazon.rum",Jv="com.amazonaws.rum",jr="".concat(di,".http_event"),Ac="".concat(di,".xray_trace_event"),Xv="".concat(di,".largest_contentful_paint_event"),eC="".concat(di,".first_input_delay_event"),tC="".concat(di,".cumulative_layout_shift_event"),iC="".concat(di,".interaction_to_next_paint_event"),nr="".concat(di,".performance_navigation_event"),Oc="".concat(di,".performance_resource_event"),nC="".concat(di,".dom_event"),oC="".concat(di,".js_error_event"),rC="".concat(di,".page_view_event"),Lc="".concat(di,".session_start_event"),OK="".concat(di,".time_to_interactive_event"),LK="".concat(di,".rrweb_event");var ui=(function(){function e(i){this.enabled=!0,this.pluginId=e.generatePluginId(i)}return e.generatePluginId=function(i){return"".concat(e.idPrefix,".").concat(i)},e.prototype.load=function(i){var t;this.context=i,(t=this.onload)===null||t===void 0||t.call(this)},e.prototype.getPluginId=function(){return this.pluginId},e.idPrefix=Jv,e})();var Nc=function(e,i,t){if(t||arguments.length===2)for(var n=0,o=i.length,r;n<o;n++)(r||!(n in i))&&(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return e.concat(r||Array.prototype.slice.call(i))},Vc="[aws-rum-web:unknown.unknown]",re=(function(){function e(){}return e.configure=function(i){e.debugEnabled=i},e.getCallerInfo=function(){var i,t;try{var n=new Error().stack;if(!n)return Vc;var o=n.split(` 1547`);if(o.length<4)return Vc;var r=o[3];if(!r)return Vc;var a=r.match(/at (?:(.+?)\s+\()?/);if(a&&a.length>=2){var s=a[1].trim(),l=s.split(".");if(l.length>=2){var c=(i=l[l.length-2])!==null&&i!==void 0?i:"unknown",u=(t=l[l.length-1])!==null&&t!==void 0?t:"unknown";return"[aws-rum-web:".concat(c,".").concat(u,"]")}return"[aws-rum-web:".concat(s,"]")}}catch{}return Vc},e.info=function(i){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.info.apply(console,Nc([o,i],t,!1))}},e.debug=function(i){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.debug.apply(console,Nc([o,i],t,!1))}},e.warn=function(i){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.warn.apply(console,Nc([o,i],t,!1))}},e.error=function(i){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e.debugEnabled){var o=this.getCallerInfo();console.error.apply(console,Nc([o,i],t,!1))}},e.debugEnabled=!1,e})();var aC=(function(){function e(i){this.context=i,this.plugins=new Map}return e.prototype.addPlugin=function(i){var t=i.getPluginId();if(this.hasPlugin(t))throw new Error('Plugin "'.concat(t,'" already defined in the PluginManager'));this.plugins.set(t,i),i.load(this.context),re.debug("Plugin loaded: ".concat(t))},e.prototype.updatePlugin=function(i,t){var n,o=this.getPlugin(i);(n=o?.update)===null||n===void 0||n.call(o,t)},e.prototype.enable=function(){this.plugins.forEach(function(i){return i.enable()})},e.prototype.disable=function(){this.plugins.forEach(function(i){return i.disable()})},e.prototype.flush=function(){this.plugins.forEach(function(i){var t;return(t=i.flush)===null||t===void 0?void 0:t.call(i)})},e.prototype.hasPlugin=function(i){return!!this.getPlugin(i)},e.prototype.record=function(i,t){var n=this.getPlugin(i);if(n?.record instanceof Function)n.record(t);else throw new Error("AWS RUM Client record: Invalid plugin ID")},e.prototype.getPlugin=function(i){var t;return(t=this.plugins.get(i))!==null&&t!==void 0?t:this.plugins.get(ui.generatePluginId(i))},e})();var lI=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}
1547i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),or=function(){return or=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},or.apply(this,arguments)},Qp="dom-event",cI={interactionId:function(){return""},enableMutationObserver:!1,events:[]},sC=(function(e){lI(i,e);function i(t){var n=e.call(this,Qp)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=or(or({},cI),t),n}return i.getElementInfo=function(t){var n={name:"UNKNOWN"};return t.target instanceof Node&&(n.name=t.target.nodeName),t.target instanceof Element&&t.target.id&&(n.id=t.target.id),n},i.prototype.enable=function(){var t=this;if(document.readyState!=="complete"){window.addEventListener("load",function(){return t.enable()});return}this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)},i.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},i.prototype.update=function(t){var n=this;t.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},i.prototype.onload=function(){this.enable()},i.prototype.removeListeners=function(){var t=this;this.config.events.forEach(function(n){return t.removeEventHandler(n)})},i.prototype.addListeners=function(){var t=this;this.config.events.forEach(function(n){return t.addEventHandler(n)})},i.prototype.getEventListener=function(t){var n=this;return function(o){var r,a=i.getElementInfo(o),s=n.config.interactionId(o),l=or(or(or({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),s?{interactionId:s}:{}),t?{cssLocator:t}:{});!((r=n.context)===null||r===void 0)&&r.record&&n.context.record(nC,l)}},i.prototype.addEventHandler=function(t){var n=t.event,o=this.getEventListener(t.cssLocator),r=[],a=this.eventListenerMap.has(t)?this.eventListenerMap.get(t):[];if(t.cssLocator){var s=document.querySelectorAll(t.cssLocator);s.forEach(function(c){r.push(c)})}else if(t.elementId){var l=document.getElementById(t.elementId);l&&r.push(l)}else t.element&&r.push(t.element);r.forEach(function(c){c.addEventListener(n,o),a.push({element:c,eventListener:o})}),this.eventListenerMap.set(t,a)},i.prototype.removeEventHandler=function(t){var n=this.eventListenerMap.get(t);n&&(n.forEach(function(o){var r=o.element,a=o.eventListener;r.removeEventListener(t.event,a)}),this.eventListenerMap.delete(t))},i.prototype.observeDOMMutation=function(){var t=this;this.observer=new MutationObserver(function(){t.removeListeners(),t.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},i})(ui);var dI=function(e){var i=typeof e;return(i==="object"||i==="function")&&!!e},uI=function(e){var i={version:"1.0.0",type:"undefined",message:"undefined"};return e.type!==void 0&&(i.type=e.type),e.message!==void 0&&(i.message=e.message),e.filename!==void 0&&(i.filename=e.filename),e.lineno!==void 0&&(i.lineno=e.lineno),e.colno!==void 0&&(i.colno=e.colno),i},pI=function(e,i){e.type!=="unhandledrejection"&&(e.type=i.toString()),e.message=i.toString()},hI=function(e,i,t){i.name&&(e.type=i.name),i.message&&(e.message=i.message),i.fileName&&(e.filename=i.fileName),i.lineNumber&&(e.lineno=i.lineNumber),i.columnNumber&&(e.colno=i.columnNumber),t&&i.stack&&(e.stack=i.stack.length>t?i.stack.substring(0,t)+"...":i.stack)},Zp=function(e){return e!==Object(e)&&e!==void 0&&e!==null},Wr=function(e,i){var t=uI(e),n=e.error;return dI(n)?hI(t,n,i):Zp(n)&&pI(t,n),t};var gI=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),zc=function(){return zc=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},zc.apply(this,arguments)},Jp="js-error",mI={stackTraceLength:1e3,ignore:function(){return!1}},lC=(function(e){gI(i,e);function i(t){var n=e.call(this,Jp)||this;return n.eventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent(o)}
1547,n.promiseRejectEventHandler=function(o){n.config.ignore(o)||n.recordJsErrorEvent({type:o.type,error:o.reason})},n.config=zc(zc({},mI),t),n}return i.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},i.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},i.prototype.record=function(t){t instanceof ErrorEvent?this.recordJsErrorEvent(t):this.recordJsErrorEvent({type:"error",error:t})},i.prototype.onload=function(){this.addEventHandler()},i.prototype.recordJsErrorEvent=function(t){var n;(n=this.context)===null||n===void 0||n.record(oC,Wr(t,this.config.stackTraceLength))},i.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},i.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},i})(ui);var Xp=function(e,i,t,n,o){var r=e+"=";r+=i||"",o!==void 0?r+="; Expires=".concat(o.toUTCString()):n!==void 0&&(r+="; Expires=".concat(fI(n).toUTCString())),r+="; Domain=".concat(t.domain),r+="; Path=".concat(t.path),r+="; SameSite=".concat(t.sameSite),r+=t.secure?"; Secure":"",document.cookie=r},fI=function(e){return new Date(new Date().getTime()+e*1e3)};var eh=function(e){for(var i=document.cookie.split("; "),t=0,n=i;t<n.length;t++){var o=n[t],r=o.split("=");if(r[0]===e)return r[1]}return""};var Bc,vI=new Uint8Array(16);function th(){if(!Bc&&(Bc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bc(vI)}var Ut=[];for(let e=0;e<256;++e)Ut.push((e+256).toString(16).slice(1));function cC(e,i=0){return Ut[e[i+0]]+Ut[e[i+1]]+Ut[e[i+2]]+Ut[e[i+3]]+"-"+Ut[e[i+4]]+Ut[e[i+5]]+"-"+Ut[e[i+6]]+Ut[e[i+7]]+"-"+Ut[e[i+8]]+Ut[e[i+9]]+"-"+Ut[e[i+10]]+Ut[e[i+11]]+Ut[e[i+12]]+Ut[e[i+13]]+Ut[e[i+14]]+Ut[e[i+15]]}var CI=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ih={randomUUID:CI};function bI(e,i,t){if(ih.randomUUID&&!i&&!e)return ih.randomUUID();e=e||{};let n=e.random||(e.rng||th)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,i){t=t||0;for(let o=0;o<16;++o)i[t+o]=n[o];return i}return cC(n)}var Dn=bI;var hC=gu(dC());var $r="cwr_c",qr="cwr_i",nh="cwr_s",oh="cwr_u",uC=3e4;var pC="arw-module";var jc=function(){return jc=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},jc.apply(this,arguments)},Gc="00000000-0000-0000-0000-000000000000",Uc="unknown",_I="desktop",yI="web";var gC=(function(){function e(i,t,n,o){this.appMonitorDetails=i,this.config=t,this.recordEvent=n,this.pageManager=o,this.sessionCookieName=this.config.cookieAttributes.unique?"".concat(nh,"_").concat(this.appMonitorDetails.id):nh,this.session={sessionId:Gc,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return e.prototype.isSampled=function(){return this.session.record},e.prototype.getSession=function(){return(this.session.sessionId===Gc||new Date>=this.sessionExpiry)&&this.createSession(),this.session},e.prototype.getAttributes=function(){return this.attributes},e.prototype.addSessionAttributes=function(i){this.attributes=jc(jc({},this.attributes),i)},e.prototype.getUserId=function(){return this.useCookies()?this.userId:Gc},e.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},e.prototype.isLimitExceeded=function(){return this.session.eventCount>=this.config.sessionEventLimit&&this.config.sessionEventLimit>0},e.prototype.canRecord=function(){return this.session.record&&!this.isLimitExceeded()},e.prototype.initializeUser=function(){var i="";this.userExpiry=new Date,this.userExpiry.setDate(this.userExpiry.getDate()+this.config.userIdRetentionDays),this.config.userIdRetentionDays<=0?this.userId="00000000-0000-0000-0000-000000000000":this.useCookies()?(i=this.getUserIdCookie(),this.userId=i||Dn(),this.createOrRenewUserCookie(i,this.userExpiry)
1547):this.userId=Dn()},e.prototype.createOrRenewSessionCookie=function(i,t){btoa&&Xp(this.sessionCookieName,btoa(JSON.stringify(i)),this.config.cookieAttributes,void 0,t)},e.prototype.createOrRenewUserCookie=function(i,t){Xp(oh,i,this.config.cookieAttributes,void 0,t)},e.prototype.getUserIdCookie=function(){return eh(oh)},e.prototype.getSessionFromCookie=function(){if(this.useCookies()){var i=eh(this.sessionCookieName);if(i&&atob)try{this.session=JSON.parse(atob(i)),this.pageManager.resumeSession(this.session.page),re.info("Restored session: ".concat(this.session.sessionId))}catch(t){re.error("Failed to restore session",t)}}},e.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},e.prototype.createSession=function(){this.session={sessionId:Dn(),record:this.session.sessionId===Gc?this.session.record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.storeSessionAsCookie(),re.info("Session start: ".concat(this.session.sessionId)),this.session.record||re.warn("Session is NOT sampled. Consider increasing sessionSampleRate to avoid data loss (currently ".concat(this.config.sessionSampleRate,")")),this.recordEvent(Lc,{version:"1.0.0"})},e.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+this.config.sessionLengthSeconds*1e3),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},e.prototype.collectAttributes=function(){var i=new hC.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:i.browser.name?i.browser.name:Uc,browserVersion:i.browser.version?i.browser.version:Uc,osName:i.os.name?i.os.name:Uc,osVersion:i.os.version?i.os.version:Uc,deviceType:i.device.type?i.device.type:_I,platformType:yI,domain:window.location.hostname,"aws:releaseId":this.config.releaseId}},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},e})();var Yr=gu(CC());var SI=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),co=(function(e){SI(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.enable=t.patch.bind(t,!0),t.disable=t.patch.bind(t,!1),t.enabled=!1,t}return i.prototype.patchAll=function(){for(var t=Yr.wrap.bind(Yr),n=0,o=this.patches;n<o.length;n++){var r=o[n];t(r.nodule,r.name,r.wrapper())}},i.prototype.unpatchAll=function(){for(var t=Yr.unwrap.bind(Yr),n=0,o=this.patches;n<o.length;n++){var r=o[n];t(r.nodule,r.name)}},i.prototype.patch=function(t){t===void 0&&(t=!0),this.enabled!==t&&(this.enabled=t,t?this.patchAll():this.unpatchAll())},i})(ui);var kI=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),bC=(function(e){kI(i,e);function i(t,n,o){var r=e.call(this,"virtual-page-load-timer")||this;return r.sendWrapper=function(){var a=r;return function(s){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),s.apply(this,arguments)}}},r.endTracking=function(a){var s=Date.now(),l=a.target;l.removeEventListener("loadend",r.endTracking),r.removeXhr(l,s)}
1547,r.fetch=function(a,s,l){return a.apply(s,l).catch(function(c){throw c}).finally(r.decrementFetchCounter)},r.fetchWrapper=function(){var a=r;return function(s){return function(l,c){return a.fetchCounter+=1,a.fetch(s,this,arguments)}}},r.decrementFetchCounter=function(){r.isPageLoaded||(r.latestEndTime=Date.now()),r.fetchCounter-=1},r.checkLoadStatus=function(){re.debug("VirtualPageLoadTimer: Checking load status - XHR: ".concat(r.ongoingRequests.size,", Fetch: ").concat(r.fetchCounter)),r.ongoingRequests.size===0&&r.fetchCounter===0&&(re.debug("Page load completed, recording navigation event"),clearInterval(r.periodicCheckerId),clearTimeout(r.timeoutCheckerId),r.domMutationObserver.disconnect(),r.recordRouteChangeNavigationEvent(r.pageManager.getPage()),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.isPageLoaded=!0)},r.declareTimeout=function(){re.debug("Page load timed out"),clearInterval(r.periodicCheckerId),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver.disconnect(),r.isPageLoaded=!0},r.resetInterval=function(){r.latestEndTime=Date.now(),clearInterval(r.periodicCheckerId),r.periodicCheckerId=setInterval(r.checkLoadStatus,r.config.routeChangeComplete)},r.moveItemsFromBuffer=function(a){r.ongoingRequests.add(a)},r.updateLatestInteractionTime=function(a){r.latestInteractionTime=Date.now(),re.debug("Updated interaction time: ".concat(r.latestInteractionTime))},r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver=new MutationObserver(r.resetInterval),r.ongoingRequests=new Set,r.requestBuffer=new Set,r.fetchCounter=0,r.isPageLoaded=!0,r.latestEndTime=0,r.latestInteractionTime=0,r.config=n,r.pageManager=t,r.record=o,r.enable(),document.addEventListener("mousedown",r.updateLatestInteractionTime),document.addEventListener("keydown",r.updateLatestInteractionTime),r}return Object.defineProperty(i.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),i.prototype.startTiming=function(){this.latestEndTime=Date.now(),re.debug("Starting timing for virtual page load"),this.periodicCheckerId&&clearInterval(this.periodicCheckerId),this.timeoutCheckerId&&clearTimeout(this.timeoutCheckerId),this.domMutationObserver.disconnect(),this.periodicCheckerId=setInterval(this.checkLoadStatus,this.config.routeChangeComplete),this.timeoutCheckerId=setTimeout(this.declareTimeout,this.config.routeChangeTimeout),this.domMutationObserver.observe(document,{subtree:!0,childList:!0,attributes:!1,characterData:!1}),this.isPageLoaded=!1,this.requestBuffer.forEach(this.moveItemsFromBuffer),this.requestBuffer.clear(),re.debug("Moved ".concat(this.requestBuffer.size," requests from buffer to ongoing"))},i.prototype.recordXhr=function(t){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?(this.ongoingRequests.add(t),re.debug("Added XHR to ongoing requests (total: ".concat(this.ongoingRequests.size,")"))):(this.requestBuffer.add(t),re.debug("VirtualPageLoadTimer: Added XHR to buffer (total: ".concat(this.requestBuffer.size,")")))},i.prototype.removeXhr=function(t,n){var o=this.pageManager.getPage();o&&this.ongoingRequests.has(t)?(this.ongoingRequests.delete(t),this.latestEndTime=n):this.requestBuffer.has(t)&&this.requestBuffer.delete(t)},i.prototype.recordRouteChangeNavigationEvent=function(t){var n={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:t.start,duration:this.latestEndTime-t.start};this.record&&this.record(nr,n)},i})(co);var Wc=function(){return Wc=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Wc.apply(this,arguments)},_C=(function(){function e(i,t){this.TIMEOUT=1e3,this.config=i,this.record=t,this.page=void 0,this.resumed=!1,this.recordInteraction=!1,i.legacySPASupport&&(re.warn("VirtualPageLoadTiming (deprecated) is enabled and may result in innaccurate page load timing for Single Page Applications. Please use with caution after reviewing https://github.com/aws-observability/aws-rum-web/issues/723"),this.virtualPageLoadTimer=new bC(this,i,t))}return e.prototype.getPage=function(){return this.page},e.prototype.getAttributes=function(){return this.attributes},e.prototype.resumeSession=function(i){this.recordInteraction=!0,i&&(this.page=i,this.resumed=!0)},e.prototype.recordPageView=function(i){var t;if(typeof i=="string"?t=i:t=i.pageId,re.debug("recordPageView called with pageId: ".concat(t)),this.useCookies()&&(this.recordInteraction=!0),!this.page)this.createLandingPage(t),re.info("Landing page created: ".concat(t));else if(this.page.pageId!==t)this.createNextPage(this.page,t),re.debug("Navigation to new page: ".concat(t));else if(this.resumed){re.info("Resumed session for page: ".concat(t)),this.collectAttributes(this.page,typeof i=="object"?i:void 0);return}else{re.debug("No page change detected for: ".concat(t));return}this.collectAttributes(this.page,typeof i=="object"?i:void 0),this.recordPageViewEvent(this.page)},e.prototype.createNextPage=function(i,t){var n=Date.now();if(re.debug("Creating next page ".concat(t,", interaction: ").concat(i.interaction+1)),this.config.legacySPASupport&&this.virtualPageLoadTimer){var o=this.virtualPageLoadTimer.latestInteractionTime;!this.resumed&&n-o<=this.TIMEOUT?(n=o,this.virtualPageLoadTimer.startTiming(),re.debug("Started virtual page load timing for ".concat(t))):re.debug("Skipped virtual page load timing for ".concat(t," (resumed: ").concat(this.resumed,", timeDiff: ").concat(n-o,"ms)"))}this.timeOnParentPage=n-i.start,this.resumed=!1,this.page={pageId:t,parentPageId:i.pageId,interaction:i.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:n}},e.prototype.createLandingPage=function(i){this.page={pageId:i,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}},e.prototype.collectAttributes=function(i,t){var n;this.attributes={title:!((n=t?.pageAttributes)===null||n===void 0)&&n.title?t.pageAttributes.title:document.title,pageId:i.pageId},this.recordInteraction&&(this.attributes.interaction=i.interaction,i.parentPageId!==void 0&&(this.attributes.parentPageId=i.parentPageId)),t?.pageTags&&(this.attributes.pageTags=t.pageTags),t?.pageAttributes&&(this.attributes=Wc(Wc({},t.pageAttributes),this.attributes))},e.prototype.createPageViewEvent=function(i){var t={version:"1.0.0",pageId:i.pageId};return this.recordInteraction&&(t.interaction=i.interaction,t.pageInteractionId=i.pageId+"-"+i.interaction,i.parentPageId!==void 0&&(t.parentPageInteractionId=i.parentPageId+"-"+(i.interaction-1),t.timeOnParentPage=this.timeOnParentPage),t.referrer=document.referrer,t.referrerDomain=this.getDomainFromReferrer()),t},e.prototype.recordPageViewEvent=function(i){this.record(rC,this.createPageViewEvent(i))},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.getDomainFromReferrer=function(){try{return new URL(document.referrer).hostname}catch{return document.referrer==="localhost"?document.referrer:""}},e})();var Kr=(function(e){return e.EVENT="event",e})(Kr||{}),EI=(function(){function e(){this.subscribers=new Map}return e.prototype.subscribe=function(i,t){var n,o=(n=this.subscribers.get(i))!==null&&n!==void 0?n:[];o.length||this.subscribers.set(i,o),o.push(t)},e.prototype.unsubscribe=function(i,t){var n=this.subscribers.get(i);if(n){for(var o=0;o<n.length;o++)if(n[o]===t)return n.splice(o,1),!0}return!1},e.prototype.dispatch=function(i,t){var n=this.subscribers.get(i);if(n)for(var o=0,r=n;o<r.length;o++){var a=r[o];a(t)}},e})(),$c=EI;var Pn=function(){return Pn=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Pn.apply(this,arguments)},TI="2.1.0",yC=(function(){function e(i,t,n){n===void 0&&(n=new $c);var o=this;this.eventBus=n,this.events=[],this.candidates=new Map,this.droppedEvent=0,this.sessionLimitExceeded=0,this.recordPageView=function(r){o.isCurrentUrlAllowed()&&o.pageManager.recordPageView(r)},this.recordEvent=function(r,a){o.enabled&&o.isCurrentUrlAllowed()&&(r!==Lc&&o.sessionManager.getSession(),o.sessionManager.canRecord()?(o.sessionManager.incrementSessionEventCount(),o.addRecordToCache(r,a)):o.sessionLimitExceeded++)},this.recordCandidate=function(r,a){var s=o.sessionManager.getSession();if(!(!o.enabled||!o.isCurrentUrlAllowed()||!s.record)){var l=o.createEvent(r,a)[0];if(o.candidates.has(r)){o.candidates.set(r,l);return}o.candidates.size<o.config.candidatesCacheSize&&!o.sessionManager.isLimitExceeded()&&(o.candidates.set(r,l),o.sessionManager.incrementSessionEventCount())}}
1547,this.getSession=function(){if(o.isCurrentUrlAllowed())return o.sessionManager.getSession()},this.addRecordToCache=function(r,a){if(o.enabled){if(o.events.length>=o.config.eventCacheSize){o.droppedEvent+=1;return}var s=o.createEvent(r,a),l=s[0],c=s[1];o.eventBus.dispatch(Kr.EVENT,c),o.events.push(l)}},this.createEvent=function(r,a){var s=Pn(Pn(Pn({},o.sessionManager.getAttributes()),o.pageManager.getAttributes()),{version:"1.0.0","aws:client":o.installationMethod,"aws:clientVersion":TI}),l={id:Dn(),timestamp:new Date,type:r};return[Pn(Pn({},l),{details:JSON.stringify(a),metadata:JSON.stringify(s)}),Pn(Pn({},l),{details:a,metadata:s})]},this.appMonitorDetails=i,this.config=t,this.enabled=!0,this.pageManager=new _C(t,this.recordEvent),this.sessionManager=new gC(i,t,this.recordEvent,this.pageManager),this.installationMethod=t.client}return e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.setPluginFlushHook=function(i){this.pluginFlushHook=i},e.prototype.isSessionSampled=function(){return this.sessionManager.isSampled()},e.prototype.hasEvents=function(){if(this.sessionLimitExceeded>0){var i=this.events.length+this.sessionLimitExceeded;this.sessionManager.isSampled()?re.warn("Dropped ".concat(this.sessionLimitExceeded," of ").concat(i," recently observed events (").concat((this.sessionLimitExceeded/i*100).toFixed(2),"%) because the session limit has exceeded. Consider increasing sessionEventLimit (currently ").concat(this.config.sessionEventLimit,") to ").concat(i," or more to avoid data loss.")):re.warn("Dropped ".concat(this.sessionLimitExceeded," of ").concat(i," recently observed events (").concat((this.sessionLimitExceeded/i*100).toFixed(2),"%) because current session is not sampled. Consider increasing sessionSampleRate (currently ").concat(this.config.sessionSampleRate,") to capture more user sessions.")),this.sessionLimitExceeded=0}return this.events.length!==0},e.prototype.hasCandidates=function(){return this.candidates.size!==0},e.prototype.getEventBatch=function(i){var t;if(i===void 0&&(i=!1),this.droppedEvent>0){var n=this.events.length+this.droppedEvent;re.warn("Dropped ".concat(this.droppedEvent," of ").concat(n," recently observed events (").concat((this.droppedEvent/n*100).toFixed(2),"%) due to insufficient in-memory queue. Increase eventCacheSize to ").concat(n," (currently ").concat(this.config.eventCacheSize,") to avoid data loss.")),this.droppedEvent=0}var o=[];if(i&&((t=this.pluginFlushHook)===null||t===void 0||t.call(this)),i&&this.hasCandidates())if(this.candidates.size<=this.config.batchLimit)o=Array.from(this.candidates.values()),this.candidates.clear();else for(var r=0,a=0,s=Array.from(this.candidates.keys());a<s.length;a++){var l=s[a];if(r++>=this.config.batchLimit)break;var c=this.candidates.get(l);c&&(o.push(c),this.candidates.delete(l))}return this.events.length&&(this.events.length<=this.config.batchLimit-o.length?(o.push.apply(o,this.events),this.events=[]):o.push.apply(o,this.events.splice(0,this.config.batchLimit-o.length))),o},e.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},e.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},e.prototype.addSessionAttributes=function(i){this.sessionManager.addSessionAttributes(i)},e.prototype.isCurrentUrlAllowed=function(){var i=document.location.toString(),t=this.config.pagesToExclude.some(function(o){return o.test(i)}),n=this.config.pagesToInclude.some(function(o){return o.test(i)});return n&&!t},e})();var wC={},ah={};for(let e=0;e<256;e++){let i=e.toString(16).toLowerCase();i.length===1&&(i=`0${i}`),wC[e]=i,ah[i]=e}function xC(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let i=new Uint8Array(e.length/2);for(let t=0;t<e.length;t+=2){let n=e.slice(t,t+2).toLowerCase();if(n in ah)i[t/2]=ah[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return i}function ki(e){let i="";for(let t=0;t<e.byteLength;t++)i+=wC[e[t]];return i}var sh=e=>{if(typeof e=="function")return e;let i=Promise.resolve(e);return()=>i};var Gi=e=>encodeURIComponent(e).replace(/[!'()*]/g,II),II=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;var Qr=e=>new TextEncoder().encode(e);var uo=e=>typeof e=="string"?Qr(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e);var SC="X-Amz-Algorithm",kC="X-Amz-Credential",lh="X-Amz-Date",EC="X-Amz-SignedHeaders",TC="X-Amz
1547-Expires",ch="X-Amz-Signature",dh="X-Amz-Security-Token";var uh="authorization",ph=lh.toLowerCase(),MI="date",IC=[uh,ph,MI],MC=ch.toLowerCase(),ys="x-amz-content-sha256",DC=dh.toLowerCase();var PC={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},RC=/^proxy-/,FC=/^sec-/;var qc="AWS4-HMAC-SHA256";var AC="AWS4-HMAC-SHA256-PAYLOAD",OC="UNSIGNED-PAYLOAD",LC=50,hh="aws4_request",NC=3600*24*7;var Yc={},gh=[],Kc=(e,i,t)=>`${e}/${i}/${t}/${hh}`,zC=(e,i,t,n,o)=>st(null,null,function*(){let r=yield VC(e,i.secretAccessKey,i.accessKeyId),a=`${t}:${n}:${o}:${ki(r)}:${i.sessionToken}`;if(a in Yc)return Yc[a];for(gh.push(a);gh.length>LC;)delete Yc[gh.shift()];let s=`AWS4${i.secretAccessKey}`;for(let l of[t,n,o,hh])s=yield VC(e,s,l);return Yc[a]=s});var VC=(e,i,t)=>{let n=new e(i);return n.update(uo(t)),n.digest()};var Qc=({headers:e},i,t)=>{let n={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let r=o.toLowerCase();(r in PC||i?.has(r)||RC.test(r)||FC.test(r))&&(!t||t&&!t.has(r))||(n[r]=e[o].trim().replace(/\s+/g," "))}return n};var mh=({query:e={}})=>{let i=[],t={};for(let n of Object.keys(e)){if(n.toLowerCase()===MC)continue;let o=Gi(n);i.push(o);let r=e[n];typeof r=="string"?t[o]=`${o}=${Gi(r)}`:Array.isArray(r)&&(t[o]=r.slice(0).reduce((a,s)=>a.concat([`${o}=${Gi(s)}`]),[]).sort().join("&"))}return i.sort().map(n=>t[n]).filter(n=>n).join("&")};var BC=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";var ws=(n,o)=>st(null,[n,o],function*({headers:e,body:i},t){for(let r of Object.keys(e))if(r.toLowerCase()===ys)return e[r];if(i==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof i=="string"||ArrayBuffer.isView(i)||BC(i)){let r=new t;return r.update(uo(i)),ki(yield r.digest())}return OC});var Zc=class{format(i){let t=[];for(let r of Object.keys(i)){let a=Qr(r);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(i[r]))}let n=new Uint8Array(t.reduce((r,a)=>r+a.byteLength,0)),o=0;for(let r of t)n.set(r,o),o+=r.byteLength;return n}formatHeaderValue(i){switch(i.type){case"boolean":return Uint8Array.from([i.value?0:1]);case"byte":return Uint8Array.from([2,i.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,i.value,!1),new Uint8Array(t.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,i.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(i.value.bytes,1),o;case"binary":let r=new DataView(new ArrayBuffer(3+i.value.byteLength));r.setUint8(0,6),r.setUint16(1,i.value.byteLength,!1);let a=new Uint8Array(r.buffer);return a.set(i.value,3),a;case"string":let s=Qr(i.value),l=new DataView(new ArrayBuffer(3+s.byteLength));l.setUint8(0,7),l.setUint16(1,s.byteLength,!1);let c=new Uint8Array(l.buffer);return c.set(s,3),c;case"timestamp":let u=new Uint8Array(9);return u[0]=8,u.set(fh.fromNumber(i.value.valueOf()).bytes,1),u;case"uuid":if(!DI.test(i.value))throw new Error(`Invalid UUID received: ${i.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(xC(i.value.replace(/\-/g,"")),1),m}}};var DI=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,fh=class e{constructor(i){if(this.bytes=i,i.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(i){if(i>9223372036854776e3||i<-9223372036854776e3)throw new Error(`${i} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(i));n>-1&&o>0;n--,o/=256)t[n]=o;return i<0&&HC(t),new e(t)}valueOf(){let i=this.bytes.slice(0),t=i[0]&128;return t&&HC(i),parseInt(ki(i),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function HC(e){for(let i=0;i<8;i++)e[i]^=255;for(let i=7;i>-1&&(e[i]++,e[i]===0);i--);}var GC=(e,i)=>{e=e.toLowerCase();for(let t of Object.keys(i))if(e===t.toLowerCase())return!0;return!1};var Ei=class e{constructor(i){this.method=i.method||"GET",this.hostname=i.hostname||"localhost",this.port=i.port,this.query=i.query||{},this.headers=i.headers||{},this.body=i.body,this.protocol=i.protocol?i.protocol.slice(-1)!==":"?`${i.protocol}
1547:`:i.protocol:"https:",this.path=i.path?i.path.charAt(0)!=="/"?`/${i.path}`:i.path:"/",this.username=i.username,this.password=i.password,this.fragment=i.fragment}static clone(i){let t=new e(ae(M({},i),{headers:M({},i.headers)}));return t.query&&(t.query=PI(t.query)),t}static isInstance(i){if(!i)return!1;let t=i;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query=="object"&&typeof t.headers=="object"}clone(){return e.clone(this)}};function PI(e){return Object.keys(e).reduce((i,t)=>{let n=e[t];return ae(M({},i),{[t]:Array.isArray(n)?[...n]:n})},{})}var on=class{constructor(i){this.statusCode=i.statusCode,this.reason=i.reason,this.headers=i.headers||{},this.body=i.body}static isInstance(i){if(!i)return!1;let t=i;return typeof t.statusCode=="number"&&typeof t.headers=="object"}};var vh=(e,i={})=>{let{headers:t,query:n={}}=Ei.clone(e);for(let o of Object.keys(t)){let r=o.toLowerCase();(r.slice(0,6)==="x-amz-"&&!i.unhoistableHeaders?.has(r)||i.hoistableHeaders?.has(r))&&(n[o]=t[o],delete t[o])}return ae(M({},e),{headers:t,query:n})};var Jc=e=>{e=Ei.clone(e);for(let i of Object.keys(e.headers))IC.indexOf(i.toLowerCase())>-1&&delete e.headers[i];return e};var UC=e=>RI(e).toISOString().replace(/\.\d{3}Z$/,"Z"),RI=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;var ed=class{constructor({applyChecksum:i,credentials:t,region:n,service:o,sha256:r,uriEscapePath:a=!0}){this.headerFormatter=new Zc,this.service=o,this.sha256=r,this.uriEscapePath=a,this.applyChecksum=typeof i=="boolean"?i:!0,this.regionProvider=sh(n),this.credentialProvider=sh(t)}presign(n){return st(this,arguments,function*(i,t={}
1547){let{signingDate:o=new Date,expiresIn:r=3600,unsignableHeaders:a,unhoistableHeaders:s,signableHeaders:l,hoistableHeaders:c,signingRegion:u,signingService:m}=t,v=yield this.credentialProvider();this.validateResolvedCredentials(v);let C=u??(yield this.regionProvider()),{longDate:_,shortDate:E}=Xc(o);if(r>NC)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let D=Kc(E,C,m??this.service),P=vh(Jc(i),{unhoistableHeaders:s,hoistableHeaders:c});v.sessionToken&&(P.query[dh]=v.sessionToken),P.query[SC]=qc,P.query[kC]=`${v.accessKeyId}/${D}`,P.query[lh]=_,P.query[TC]=r.toString(10);let T=Qc(P,a,l);return P.query[EC]=jC(T),P.query[ch]=yield this.getSignature(_,D,this.getSigningKey(v,C,E,m),this.createCanonicalRequest(P,T,yield ws(i,this.sha256))),P})}sign(i,t){return st(this,null,function*(){return typeof i=="string"?this.signString(i,t):i.headers&&i.payload?this.signEvent(i,t):i.message?this.signMessage(i,t):this.signRequest(i,t)})}signEvent(s,l){return st(this,arguments,function*({headers:i,payload:t},{signingDate:n=new Date,priorSignature:o,signingRegion:r,signingService:a}){let c=r??(yield this.regionProvider()),{shortDate:u,longDate:m}=Xc(n),v=Kc(u,c,a??this.service),C=yield ws({headers:{},body:t},this.sha256),_=new this.sha256;_.update(i);let E=ki(yield _.digest()),D=[AC,m,v,o,E,C].join(` 1548`);return this.signString(D,{signingDate:n,signingRegion:c,signingService:a})})}signMessage(r,a){return st(this,arguments,function*(i,{signingDate:t=new Date,signingRegion:n,signingService:o}){return this.signEvent({headers:this.headerFormatter.format(i.message.headers),payload:i.message.body},{signingDate:t,signingRegion:n,signingService:o,priorSignature:i.priorSignature}).then(l=>({message:i.message,signature:l}))})}signString(r){return st(this,arguments,function*(i,{signingDate:t=new Date,signingRegion:n,signingService:o}={}){let a=yield this.credentialProvider();this.validateResolvedCredentials(a);let s=n??(yield this.regionProvider()),{shortDate:l}=Xc(t),c=new this.sha256(yield this.getSigningKey(a,s,l,o));return c.update(uo(i)),ki(yield c.digest())})}signRequest(s){return st(this,arguments,function*(i,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:r,signingService:a}={}){let l=yield this.credentialProvider();this.validateResolvedCredentials(l);let c=r??(yield this.regionProvider()),u=Jc(i),{longDate:m,shortDate:v}=Xc(t),C=Kc(v,c,a??this.service);u.headers[ph]=m,l.sessionToken&&(u.headers[DC]=l.sessionToken);let _=yield ws(u,this.sha256);!GC(ys,u.headers)&&this.applyChecksum&&(u.headers[ys]=_);let E=Qc(u,o,n),D=yield this.getSignature(m,C,this.getSigningKey(l,c,v,a),this.createCanonicalRequest(u,E,_));return u.headers[uh]=`${qc} Credential=${l.accessKeyId}/${C}, SignedHeaders=${jC(E)}, Signature=${D}`,u})}createCanonicalRequest(i,t,n){let o=Object.keys(t).sort();return`${i.method} 1549${this.getCanonicalPath(i)} 1550${mh(i)} 1551${o.map(r=>`${r}:${t[r]}`).join(` 1552`)} 1553 1554${o.join(";")} 1555${n}`}createStringToSign(i,t,n){return st(this,null,function*(){let o=new this.sha256;o.update(uo(n));let r=yield o.digest();return`${qc} 1556${i} 1557${t} 1558${ki(r)}`})}getCanonicalPath({path:i}){if(this.uriEscapePath){let t=[];for(let r of i.split("/"))r?.length!==0&&r!=="."&&(r===".."?t.pop():t.push(r));let n=`${i?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&i?.endsWith("/")?"/":""}`;return Gi(n).replace(/%2F/g,"/")}return i}getSignature(i,t,n,o){return st(this,null,function*(){let r=yield this.createStringToSign(i,t,o),a=new this.sha256(yield n);return a.update(uo(r)),ki(yield a.digest())})}getSigningKey(i,t,n,o){return zC(this.sha256,i,n,t,o||this.service)}validateResolvedCredentials(i){if(typeof i!="object"||typeof i.accessKeyId!="string"||typeof i.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},Xc=e=>{let i=UC(e).replace(/[\-:]/g,"");return{longDate:i,shortDate:i.slice(0,8)}},jC=e=>Object.keys(e).sort().join(";");var Eh=gu(lb());var ub=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},pb=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]}
1558,trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cb=2048,db=.2,gM=function(){return typeof CompressionStream<"u"},mM=function(e){return ub(void 0,void 0,void 0,function(){var i,t;return pb(this,function(n){switch(n.label){case 0:return i=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")),t=Uint8Array.bind,[4,new Response(i).arrayBuffer()];case 1:return[2,new(t.apply(Uint8Array,[void 0,n.sent()]))]}})})},hb=function(e){return ub(void 0,void 0,void 0,function(){var i,t,n;return pb(this,function(o){switch(o.label){case 0:return i=e.length,re.debug("compressIfBeneficial called, payload size: ".concat(i,"B")),gM()?i<cb?(re.debug("Payload size ".concat(i,"B below threshold ").concat(cb,"B, skipping compression")),[2,{body:e,compressed:!1}]):[4,mM(e)]:(re.debug("CompressionStream not supported, skipping compression"),[2,{body:e,compressed:!1}]);case 1:return t=o.sent(),n=1-t.length/i,n>=db?(re.debug("Compressed ".concat(i,"B -> ").concat(t.length,"B (").concat((n*100).toFixed(1),"% reduction)")),[2,{body:t,compressed:!0}]):(re.debug("Compression ratio ".concat((n*100).toFixed(1),"% below threshold ").concat(db*100,"%, skipping")),[2,{body:e,compressed:!1}])}})})};var Rn=function(){return Rn=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Rn.apply(this,arguments)},cd=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},dd=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},fM="rum",vM="POST",CM="application/json",bM="text/plain;charset=UTF-8",_M=64e3,yM={expiresIn:60},mb=(function(){function e(i){var t=this;this.sendFetch=function(n){return cd(t,void 0,void 0,function(){var o,r,a,s,l,c,u,m,v,C,_;return dd(this,function(E){switch(E.label){case 0:return o=JSON.stringify(gb(n)),r=(_=(C=this.config.compressionStrategy)===null||C===void 0?void 0:C.enabled)!==null&&_!==void 0?_:!1,r?[4,hb(o)]:[3,2];case 1:return c=E.sent(),[3,3];case 2:c={body:o,compressed:!1},E.label=3;case 3:return a=c,s=a.body,l=a.compressed,[4,this.getHttpRequestOptions(n,s,CM,l)];case 4:return u=E.sent(),m=new Ei(u),this.awsSigV4?[4,this.awsSigV4.sign(m)]:[3,6];case 5:m=E.sent(),E.label=6;case 6:return v=this.config.fetchRequestHandler.handle(m),[2,v]}})})},this.sendBeacon=function(n){return cd(t,void 0,void 0,function(){var o,r,a,s;return dd(this,function(l){switch(l.label){case 0:if(o=JSON.stringify(gb(n)),o.length>_M)throw new Error("Payload too large for sendBeacon");return[4,this.getHttpRequestOptions(n,o,bM,!1)];case 1:return r=l.sent(),a=new Ei(r),this.awsSigV4?[4,this.awsSigV4.presign(a,yM)]:[3,3];case 2:a=l.sent(),l.label=3;case 3:return s=this.config.beaconRequestHandler.handle(a),[2,s]}})})},this.getHttpRequestOptions=function(n,o,r,a){return cd(t,void 0,void 0,function(){var s,l,c,u,m,v,C,_;return dd(this,function(E){switch(E.label){case 0:return s=this.config.endpoint.pathname.replace(/\/$/,""),l=Rn({"content-type":r,host:this.config.endpoint.host},this.config.headers),a&&(l["Content-Encoding"]="gzip"),c={method:vM,protocol:this.config.endpoint.protocol,port:Number(this.config.endpoint.port)||void 0,headers:l,hostname:this.config.endpoint.hostname,path:"".concat(s,"/appmonitors/").concat(n.AppMonitorDetails.id),body:o},this.awsSigV4?(u=[Rn({},c)],C={},m=[Rn({},c.headers)],_={},v="X-Amz-Content-Sha256",[4,xM(o)]):[3,2];case 1:return[2,Rn.apply(void 0,u.concat([(C.headers=Rn.apply(void 0,m.concat([(_[v]=E.sent(),_)])),C)]))];case 2:return[2,c]}})})},this.config=i,i.credentials&&(this.awsSigV4=new ed({applyChecksum:!0,credentials:i.credentials,region:i.region,service:fM,uriEscapePath:!0,sha256:Eh.Sha256}))}return e})();var gb=function(e){var i=[];
1558e.RumEvents.forEach(function(n){return i.push(wM(n))});var t={BatchId:e.BatchId,AppMonitorDetails:e.AppMonitorDetails,UserDetails:e.UserDetails,RumEvents:i};return e.Alias&&(t=Rn(Rn({},t),{Alias:e.Alias})),t},wM=function(e){return{id:e.id,timestamp:Math.round(e.timestamp.getTime()/1e3),type:e.type,metadata:e.metadata,details:e.details}},xM=function(e){return cd(void 0,void 0,void 0,function(){var i,t;return dd(this,function(n){switch(n.label){case 0:return i=new Eh.Sha256,i.update(e),t=ki,[4,i.digest()];case 1:return[2,t.apply(void 0,[n.sent()]).toLowerCase()]}})})};var Ss=e=>encodeURIComponent(e).replace(/[!'()*]/g,SM),SM=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function ud(e){let i=[];for(let t of Object.keys(e).sort()){let n=e[t];if(t=Ss(t),Array.isArray(n))for(let o=0,r=n.length;o<r;o++)i.push(`${t}=${Ss(n[o])}`);else{let o=t;(n||typeof n=="string")&&(o+=`=${Ss(n)}`),i.push(o)}}return i.join("&")}var fb=(function(){function e(){}return e.prototype.handle=function(i){var t=this.sendBeacon(i);return new Promise(function(n,o){t?n({response:new on({statusCode:200})}):o()})},e.prototype.updateHttpClientConfig=function(i,t){},e.prototype.httpHandlerConfigs=function(){return{}},e.prototype.sendBeacon=function(i){var t=i.path;if(i.query){var n=ud(i.query);n&&(t+="?".concat(n))}var o=i.port,r="".concat(i.protocol,"//").concat(i.hostname).concat(o?":".concat(o):"").concat(t);return navigator.sendBeacon(r,i.body)},e})();var vb=function(e){return e===void 0&&(e=0),new Promise(function(i,t){e&&setTimeout(function(){var n=new Error("Request did not complete within ".concat(e," ms"));n.name="TimeoutError",t(n)},e)})};var Cb=(function(){function e(i){var t=i===void 0?{}:i,n=t.fetchFunction,o=t.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return e.prototype.destroy=function(){},e.prototype.handle=function(i,t){var n=t===void 0?{}:t,o=n.abortSignal,r=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var s=i.path;if(i.query){var l=ud(i.query);l&&(s+="?".concat(l))}var c=i.port,u=i.method,m="".concat(i.protocol,"//").concat(i.hostname).concat(c?"
1558:".concat(c):"").concat(s),v=u==="GET"||u==="HEAD"?void 0:i.body,C={body:v,headers:new Headers(i.headers),method:u};typeof AbortController<"u"&&(C.signal=o);var _=new Request(m,C),E=[this.fetchFunction.apply(window,[_]).then(function(D){for(var P=D.headers,T={},O=0,K=P.entries();O<K.length;O++){var we=K[O];T[we[0]]=we[1]}var Ke=D.body!==void 0;return Ke?{response:new on({headers:T,statusCode:D.status,body:D.body})}:D.blob().then(function(at){return{response:new on({headers:T,statusCode:D.status,body:at})}})}),vb(r)];return o&&E.push(new Promise(function(D,P){o.onabort=function(){var T=new Error("Request aborted");T.name="AbortError",P(T)}})),Promise.race(E)},e.prototype.updateHttpClientConfig=function(i,t){},e.prototype.httpHandlerConfigs=function(){return{}},e})();var pd=function(e){if(crypto)return crypto.getRandomValues(e);if(msCrypto)return msCrypto.getRandomValues(e);throw new Error("No crypto library found.")};var bb=[];for(ks=0;ks<256;ks++)bb[ks]=(ks+256).toString(16).substr(1);var ks,Es="X-Amzn-Trace-Id",Ts="traceparent",kM=2,EM=32,TM=16,IM=4,hd=function(e,i){return Array.isArray(i)?i.some(function(t){return t.test(e)}):i},gd={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},_b=function(e){return 200<=e&&e<300},md=function(e){return Math.floor(e/100)===4},Zr=function(e){return Math.floor(e/100)===5},Jr=function(e){return e===429},fd=function(e,i){var t=i.urlsToInclude.some(function(o){return o.test(e)}),n=i.urlsToExclude.some(function(o){return o.test(e)});return t&&!n},po=function(){return Date.now()/1e3},yb=function(e,i,t){var n={request:{}};return n.request.method=i?.method?i.method:"GET",n.request.traced=t,n.request.url=Is(e),n},vd=function(e,i,t,n){var o={version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:kb(),start_time:i,trace_id:t?PM():DM(),end_time:void 0,subsegments:[],in_progress:!1};return n&&(o.http=n),o},Cd=function(e,i,t){var n={id:kb(),name:e,start_time:i,end_time:void 0,in_progress:!1,namespace:e.endsWith("amazonaws.com")?"aws":"remote"};return t&&(n.http=t),n},bd=function(e){try{return e.hostname?e.hostname:e.url?new URL(e.url).hostname:new URL(e.toString()).hostname}catch{return window.location.hostname}},wb=function(e,i,t,n){e.headers||(e.headers={}),n?e.headers[Ts]=yd(i,t):e.headers[Es]=_d(i,t)},xb=function(e,i,t,n){n?e.set(Ts,yd(i,t)):e.set(Es,_d(i,t))},_d=function(e,i){return"Root="+e+";Parent="+i+";Sampled=1"},yd=function(e,i){return"00-"+e+"-"+i+"-01"},MM=function(e){return e?.length===IM&&e[0].length===kM&&e[1].length===EM&&e[2].length===TM&&(e[3]==="00"||e[3]==="01")},Sb=function(e,i){var t,n,o={};if(e)if(i){var r=(t=e.get(Ts))===null||t===void 0?void 0:t.split("-");r&&MM(r)&&(o.traceId=r[1],o.segmentId=r[2])}else{var r=(n=e.get(Es))===null||n===void 0?void 0:n.split(";");r?.length===3&&(o.traceId=r[0].split("Root=")[1],o.segmentId=r[1].split("Parent=")[1])}return o},Is=function(e){return e.url?e.url:e.toString()},DM=function(){return"1-".concat(RM(),"-").concat(FM())},PM=function(){var e=new Uint8Array(16);return pd(e),"".concat(Th(e))},kb=function(){var e=new Uint8Array(8);return pd(e),Th(e)},RM=function(){return Math.floor(Date.now()/1e3).toString(16)},FM=function(){var e=new Uint8Array(12);return pd(e),Th(e)},Th=function(e){for(var i="",t=0;t<e.length;t++)i+=bb[e[t]];return i};var Eb=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},Tb=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ib=(function(){function e(i,t,n){n===void 0&&(n=function(o){return 2e3*Math.pow(2,o-1)}),this.handler=i,this.retries=t,this.backoff=n}return e.prototype.handle=function(i){return Eb(this,void 0,void 0,function(){var t,n,o;return Tb(this,function(r){switch(r.label){case 0:t=this.retries,r.label=1;case 1:r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.handler.handle(i)];case 3:if(n=r.sent(),_b(n.response.statusCode))return[2,n];throw n.response.statusCode;case 4:if(o=r.sent(),typeof o=="number"&&!Jr(o)&&!Zr(o))throw new Error("".concat(o));if(t<=0)throw o;return t--,[4,this.sleep(this.backoff(this.retries-t))];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},e.prototype.sleep=function(i){return Eb(this,void 0,void 0,function(){return Tb(this,function(t){return[2,new Promise(function(n){return setTimeout(n,i)})]})})},e.prototype.updateHttpClientConfig=function(i,t){},e.prototype.httpHandlerConfigs=function(){return{}},e})();function Mb(e){let i=[];for(let t of Object.keys(e).sort()){let n=e[t];if(t=Gi(t),Array.isArray(n))for(let o=0,r=n.length;o<r;o++)i.push(`${t}=${Gi(n[o])}`);else{let o=t;(n||typeof n=="string")&&(o+=`=${Gi(n)}`),i.push(o)}}return i.join("&")}
1558function Ih(e,i){return new Request(e,i)}function Db(e=0){return new Promise((i,t)=>{e&&setTimeout(()=>{let n=new Error(`Request did not complete within ${e} ms`);n.name="TimeoutError",t(n)},e)})}var Mh={supported:void 0},Xr=class e{static create(i){return typeof i?.handle=="function"?i:new e(i)}constructor(i){typeof i=="function"?this.configProvider=i().then(t=>t||{}):(this.config=i??{},this.configProvider=Promise.resolve(this.config)),Mh.supported===void 0&&(Mh.supported=typeof Request<"u"&&"keepalive"in Ih("https://[::1]"))}destroy(){}handle(n){return st(this,arguments,function*(i,{abortSignal:t}={}){this.config||(this.config=yield this.configProvider);let o=this.config.requestTimeout,r=this.config.keepAlive===!0,a=this.config.credentials;if(t?.aborted){let T=new Error("Request aborted");return T.name="AbortError",Promise.reject(T)}let s=i.path,l=Mb(i.query||{});l&&(s+=`?${l}`),i.fragment&&(s+=`#${i.fragment}`);let c="";if(i.username!=null||i.password!=null){let T=i.username??"",O=i.password??"";c=`${T}:${O}@`}let{port:u,method:m}=i,v=`${i.protocol}//${c}${i.hostname}${u?`:${u}`:""}${s}`,C=m==="GET"||m==="HEAD"?void 0:i.body,_={body:C,headers:new Headers(i.headers),method:m,credentials:a};this.config?.cache&&(_.cache=this.config.cache),C&&(_.duplex="half"),typeof AbortController<"u"&&(_.signal=t),Mh.supported&&(_.keepalive=r),typeof this.config.requestInit=="function"&&Object.assign(_,this.config.requestInit(i));let E=()=>{},D=Ih(v,_),P=[fetch(D).then(T=>{let O=T.headers,K={};for(let Ke of O.entries())K[Ke[0]]=Ke[1];return T.body!=null?{response:new on({headers:K,reason:T.statusText,statusCode:T.status,body:T.body})}:T.blob().then(Ke=>({response:new on({headers:K,reason:T.statusText,statusCode:T.status,body:Ke})}))}),Db(o)];return t&&P.push(new Promise((T,O)=>{let K=()=>{let we=new Error("Request aborted");we.name="AbortError",O(we)};if(typeof t.addEventListener=="function"){let we=t;we.addEventListener("abort",K,{once:!0}),E=()=>we.removeEventListener("abort",K)}else t.onabort=K})),Promise.race(P).finally(E)})}updateHttpClientConfig(i,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[i]=t,n))}httpHandlerConfigs(){return this.config??{}}};var rr={},ea=new Array(64);for(let e=0,i=65,t=90;e+i<=t;e++){let n=String.fromCharCode(e+i);rr[n]=e,ea[e]=n}for(let e=0,i=97,t=122;e+i<=t;e++){let n=String.fromCharCode(e+i),o=e+26;rr[n]=o,ea[o]=n}for(let e=0;e<10;e++){rr[e.toString(10)]=e+52;let i=e.toString(10),t=e+52;rr[i]=t,ea[t]=i}rr["+"]=62;ea[62]="+";rr["/"]=63;ea[63]="/";var Pb=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},Rb=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},wd=function(e){return Pb(void 0,void 0,void 0,function(){var i;return Rb(this,function(t){switch(t.label){case 0:return[4,e.body.getReader().read()];case 1:return i=t.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,i))]}})})},Fb=function(e){return Pb(void 0,void 0,void 0,function(){var i;return Rb(this,function(t){switch(t.label){case 0:return[4,e.body.getReader().read()];case 1:return i=t.sent().value,[2,String.fromCharCode.apply(null,i)]}})})};var xd=function(){return xd=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},xd.apply(this,arguments)},LM=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},NM=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]}
1558,trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},VM="POST",zM="application/x-www-form-urlencoded",BM="https:",HM="AssumeRoleWithWebIdentity",GM="2011-06-15",Ab=(function(){function e(i){var t=this;this.assumeRoleWithWebIdentity=function(n){return LM(t,void 0,void 0,function(){var o,r,a,s,l,c;return NM(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=xd(xd({},n),{Action:HM,Version:GM}),r=new URLSearchParams(Object.entries(o)).toString(),a=new Ei({method:VM,headers:{"content-type":zM,host:this.hostname},protocol:BM,hostname:this.hostname,body:r}),[4,this.fetchRequestHandler.handle(a)];case 1:return s=u.sent().response,[4,Fb(s)];case 2:return l=u.sent(),[2,{accessKeyId:l.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:l.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:l.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(l.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw c=u.sent(),new Error("CWR: Failed to retrieve credentials from STS: ".concat(c));case 4:return[2]}})})},this.hostname="sts.".concat(i.region,".amazonaws.com"),this.fetchRequestHandler=i.fetchRequestHandler}return e})();var Dh=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},Ph=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},UM="POST",jM="application/x-amz-json-1.1",WM="https:",$M="AWSCognitoIdentityService.GetId",qM="AWSCognitoIdentityService.GetOpenIdToken",YM="AWSCognitoIdentityService.GetCredentialsForIdentity",Ob=(function(){function e(i){var t=this,n;this.getId=function(o){return Dh(t,void 0,void 0,function(){var r,a,s,l,c,u,m;return Ph(this,function(v){switch(v.label){case 0:r=null;try{r=JSON.parse(localStorage.getItem(this.identityStorageKey))}catch(C){!((m=this.config)===null||m===void 0)&&m.debug&&re.error("Failed to parse stored identity:",C)}if(r&&r.IdentityId)return[2,Promise.resolve(r)];v.label=1;case 1:return v.trys.push([1,4,,5]),a=JSON.stringify(o),s=this.getHttpRequest($M,a),c=wd,[4,this.fetchRequestHandler.handle(s)];case 2:return[4,c.apply(void 0,[v.sent().response])];case 3:l=v.sent();try{localStorage.setItem(this.identityStorageKey,JSON.stringify({IdentityId:l.IdentityId}))}catch(C){re.error("Failed to store identity:",C)}return[2,l];case 4:throw u=v.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(u));case 5:return[2]}})})},this.getOpenIdToken=function(o){return Dh(t,void 0,void 0,function(){var r,a,s,l,c;return Ph(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),r=J
1558SON.stringify(o),a=this.getHttpRequest(qM,r),[4,this.fetchRequestHandler.handle(a)];case 1:return s=u.sent().response,l=this.validateOpenIdTokenResponse,[4,wd(s)];case 2:return[2,l.apply(this,[u.sent()])];case 3:throw c=u.sent(),localStorage.removeItem(this.identityStorageKey),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(c));case 4:return[2]}})})},this.getCredentialsForIdentity=function(o){return Dh(t,void 0,void 0,function(){var r,a,s,l,c,u,m,v,C,_;return Ph(this,function(E){switch(E.label){case 0:return E.trys.push([0,3,,4]),r=JSON.stringify({IdentityId:o}),a=this.getHttpRequest(YM,r),[4,this.fetchRequestHandler.handle(a)];case 1:return s=E.sent().response,C=this.validateCredenentialsResponse,[4,wd(s)];case 2:return l=C.apply(this,[E.sent()]),c=l.AccessKeyId,u=l.Expiration,m=l.SecretKey,v=l.SessionToken,[2,{accessKeyId:c,secretAccessKey:m,sessionToken:v,expiration:new Date(u*1e3)}];case 3:throw _=E.sent(),localStorage.removeItem(this.identityStorageKey),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(_));case 4:return[2]}})})},this.validateOpenIdTokenResponse=function(o){if("IdentityId"in o&&"Token"in o)return o;throw o&&"__type"in o&&"message"in o?new Error("".concat(o.__type,": ").concat(o.message)):new Error("Unknown OpenIdToken response")},this.validateCredenentialsResponse=function(o){if("IdentityId"in o&&"Credentials"in o)return o.Credentials;throw o&&"__type"in o&&"message"in o?new Error("".concat(o.__type,": ").concat(o.message)):new Error("Unknown Credentials response")},this.getHttpRequest=function(o,r){return new Ei({method:UM,headers:{"content-type":jM,"x-amz-target":o},protocol:WM,hostname:t.hostname,body:r})},this.hostname="cognito-identity.".concat(i.region,".amazonaws.com"),this.fetchRequestHandler=i.fetchRequestHandler,this.config=i.clientConfig,this.identityStorageKey=!((n=i.clientConfig)===null||n===void 0)&&n.cookieAttributes.unique?"".concat(qr,"_").concat(i.applicationId):qr}return e})();var Sd=function(){return Sd=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Sd.apply(this,arguments)},Rh=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},Fh=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},kd=(function(){function e(i,t){var n=this;this.ChainAnonymousCredentialsProvider=function(){return Rh(n,void 0,void 0,function(){return Fh(this,function(r){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Rh(n,void 0,void 0,function(){var r=this;return Fh(this,function(a){return[2,new Promise(function(s,l){if(r.renewCredentials())return l();s(r.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Rh(n,void 0,void 0,function(){var r=this;return Fh(this,function(a){return[2,new Promise(function(s,l){var c;try{c=JSON.parse(localStorage.getItem(r.credentialStorageKey))}catch{return l()}if(r.credentials=Sd(Sd({},c),{expiration:new Date(c.expiration)}),r.renewCredentials())return l();s(r.credentials)})]})})};var o=i.identityPoolId.split(":")[0];this.config=i,this.cognitoIdentityClient=new Ob({fetchRequestHandler:new Xr,region:o,clientConfig:i,applicationId:t}),this.credentialStorageKey=this.config.cookieAttributes.unique?"".concat($r,"_").concat(t):$r}return e.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var i=new Date(this.credentials.expiration.getTime()-uC);return new Date>i},e})();var KM=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}
1558i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),QM=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},ZM=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Lb=(function(e){KM(i,e);function i(t,n){var o=e.call(this,t,n)||this;o.AnonymousCognitoCredentialsProvider=function(){return QM(o,void 0,void 0,function(){var a,s,l,c,u;return ZM(this,function(m){switch(m.label){case 0:a=1,m.label=1;case 1:m.label=2;case 2:return m.trys.push([2,6,,7]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return s=m.sent(),[4,this.cognitoIdentityClient.getOpenIdToken(s)];case 4:return l=m.sent(),[4,this.stsClient.assumeRoleWithWebIdentity({RoleArn:this.config.guestRoleArn,RoleSessionName:"
1558cwr",WebIdentityToken:l.Token})];case 5:c=m.sent(),this.credentials=c;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(c))}catch{}return re.debug("AWS credentials fetched successfully"),[2,c];case 6:if(u=m.sent(),a)a--,re.warn("AWS credential fetch failed, retrying");else throw re.error("AWS credential fetch failed:",u),u;return[3,7];case 7:return[3,1];case 8:return[2]}})})};var r=t.identityPoolId.split(":")[0];return o.stsClient=new Ab({fetchRequestHandler:new Xr,region:r}),o}return i})(kd);var JM=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),XM=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},eD=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Nb=(function(e){JM(i,e);function i(t,n){var o=e.call(this,t,n)||this;return o.AnonymousCognitoCredentialsProvider=function(){return XM(o,void 0,void 0,function(){var r,a,s,l;return eD(this,function(c){switch(c.label){case 0:r=1,c.label=1;case 1:c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return a=c.sent(),[4,this.cognitoIdentityClient.getCredentialsForIdentity(a.IdentityId)];case 4:s=c.sent(),this.credentials=s;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(s))}catch{}return re.debug("AWS credentials fetched successfully"),[2,s];case 5:if(l=c.sent(),r)r--,re.warn("AWS credential fetch failed, retrying");else throw re.error("AWS credential fetch failed:",l),l;return[3,6];case 6:return[3,1];case 7:return[2]}})})},o}return i})(kd);var Ed=function(e,i,t,n){function o(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function s(u){try{c(n.next(u))}catch(m){a(m)}}function l(u){try{c(n.throw(u))}catch(m){a(m)}}function c(u){u.done?r(u.value):o(u.value).then(s,l)}c((n=n.apply(e,i||[])).next())})},Td=function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(r=c[0]&2?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(r=t.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){t.label=c[1];break}if(c[0]===6&&t.label<r[1]){t.label=r[1],r=c;break}if(r&&t.label<r[2]){t.label=r[2],t.ops.push(c);break}r[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(e,t)}catch(u){c=[6,u],o=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Vb="CWR: Cannot dispatch; no AWS credentials.",zb=(function(){function e(i,t,n,o,r){var a=this;this.disableCodes=["403","404"],this.shouldPurgeCredentials=!0,this.dispatchFetch=function(){return Ed(a,void 0,void 0,function(){var s;return Td(this,function(l){return this.doRequest()?(s=this.createRequest(),re.info("Dispatching ".concat(s.RumEvents.length," events via fetch")),[2,this.rum.sendFetch(s).catch(this.handleReject)]):[2]})})},this.dispatchBeacon=function(){return Ed(a,void 0,void 0,function(){var s,l=this;return Td(this,function(c){return this.doRequest()?(s=this.createRequest(),re.info("Dispatching ".concat(s.RumEvents.length," events via beacon")),[2,this.rum.sendBeacon(s).catch(function(){return l.rum.sendFetch(s)})]):[2]})})},this.dispatchFetchFailSilent=function(){return Ed(a,void 0,void 0,function(){return Td(this,function(s){return[2,this.dispatchFetch().catch(function(l){re.error("Dispatch fetch failed silently:",l)})]})})},this.dispatchBeaconFailSilent=function(){return Ed(a,void 0,void 0,function(){return Td(this,function(s){return[2,this.dispatchBeacon().catch(function(l){re.error("Dispatch beacon failed silently:",l)})]})})},this.flushSync=function(){var s;if(document.visibilityState==="hidden"&&a.doRequest(!0)){var l=a.rum.sendBeacon,c=a.rum.sendFetch;a.config.useBeacon||(s=[c,l],l=s[0],c=s[1]);var u=a.createRequest(!0);re.debug("Flushing ".concat(u.RumEvents.length," events on page hide")),l(u).catch(function(){return c(u)}).catch(function(m){re.error("Page hide flush failed:",m)})}},this.handleReject=function(s){throw s instanceof Error&&(s.message==="403"&&a.config.signing&&a.shouldPurgeCredentials?(a.shouldPurgeCredentials=!1,a.forceRebuildClient()):a.disableCodes.includes(s.message)&&(re.error("Dispatch failed with status code:",s.message),a.disable())),s},this.defaultClientBuilder=function(s,l,c,u){return new mb({fetchRequestHandler:new Ib(new Cb({fetchFunction:a.config.fetchFunction}),a.config.retries),beaconRequestHandler:new fb,endpoint:s,region:l,credentials:c,headers:a.headers,compressionStrategy:u})},this.applicationId=i,this.region=t,this.endpoint=n,this.eventCache=o,this.enabled=!0,this.buildClient=r.clientBuilder||this.defaultClientBuilder,this.config=r,this.headers=r.headers,this.startDispatchTimer(),r.signing?this.rum={sendFetch:function(){return Promise.reject(new Error(Vb))},sendBeacon:function(){return Promise.reject(new Error(Vb))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0,this.config.compressionStrategy),this.credentialStorageKey=this.config.cookieAttributes.unique?"".concat($r,"_").concat(i):$r,this.identityStorageKey=this.config.cookieAttributes.unique?"".concat(qr,"_").concat(i):qr}return e.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},e.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1,re.warn("Dispatch disabled")},e.prototype.setAwsCredentials=function(i){this.credentialProvider=i,this.rum=this.buildClient(this.endpoint,this.region,i,this.config.compressionStrategy),typeof i=="function"&&i()},e.prototype.setCognitoCredentials=function(i,t){i&&t?this.setAwsCredentials(new Lb(this.config,this.applicationId).ChainAnonymousCredentialsProvider):this.setAwsCredentials(new Nb(this.config,this.applicationId).ChainAnonymousCredentialsProvider)},e.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.flushSync),document.addEventListener("pagehide",this.flushSync),!(this.config.dispatchInterval<=0||this.dispatchTimerId)&&(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},e.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.flushSync),document.removeEventListener("pagehide",this.flushSync),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},e.prototype.doRequest=function(i){return i===void 0&&(i=!1),this.enabled?i&&this.eventCache.hasCandidates()?!0:this.eventCache.hasEvents():!1},e.prototype.createRequest=function(i){return i===void 0&&(i=!1),{BatchId:Dn(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch(i),Alias:this.config.alias}},e.prototype.forceRebuildClient=function(){re.warn("Removing credentials from local storage"),localStorage.removeItem(this.credentialStorageKey),this.config.identityPoolId?(re.info("Rebuilding client with fresh cognito credentials"),localStorage.removeItem(this.identityStorageKey),this.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn)):this.credentialProvider&&(re.info("Rebuilding client with most recently passed provider"),this.setAwsCredentials(this.credentialProvider))},e})();var bt=(function(e){return e.OTHER="other",e.STYLESHEET="stylesheet",e.DOCUMENT="document",e.SCRIPT="script",e.IMAGE="image",e.FONT="font",e})(bt||{}),ho=(function(e){return e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.FRAME="frame",e.SCRIPT="script",e.CSS="css",e})(ho||{}),Ah=function(e){return[e.startTime,e.duration].join("#")},tD=[{name:bt.STYLESHEET,list:["css","less"]},{name:bt.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:bt.SCRIPT,list:["js"]},{name:bt.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:bt.FONT,list:["fnt","fon","otf","ttf","woff"]}],Oh=function(e,i){var t=bt.OTHER;if(e){var n=e.substring(e.lastIndexOf("/")+1),o=n.substring(n.lastIndexOf(".")+1).split(/[?#]/)[0];tD.forEach(function(r){r.list.indexOf(o)>-1&&(t=r.name)})}if(i&&t===bt.OTHER)switch(i){case ho.IMAGE:case ho.IMG:case ho.INPUT:t=bt.IMAGE;break;case ho.IFRAME:case ho.FRAME:t=bt.DOCUMENT;break;case ho.SCRIPT:t=bt.SCRIPT;break;case ho.CSS:t=bt.STYLESHEET;break}return t};var Bb=function(){return PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")};var iD=/\/appmonitors\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,Hb=function(e,i){try{return new URL(e).hostname===i&&iD.test(e)}catch{return!1}};var nD=function(e){return e.entryType==="resource"&&(!/^https?:/.test(e.name)||/^(fetch|xmlhttprequest)$/.test(e.initiatorType))},ta={eventLimit:10,ignore:nD,recordAllTypes:[bt.DOCUMENT,bt.SCRIPT,bt.STYLESHEET,bt.FONT],sampleTypes:[bt.IMAGE,bt.OTHER],reportAllLCP:!1,reportAllCLS:!1,reportAllINP:!1};var oD=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}
1558i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Id=function(){return Id=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Id.apply(this,arguments)},rD="navigation",ia="navigation",Lh="load",Gb=(function(e){oD(i,e);function i(t){var n=e.call(this,rD)||this;return n.eventListener=function(){if(performance.getEntriesByType(ia).length===0)n.performanceNavigationEventHandlerTimingLevel1();else{var o=new PerformanceObserver(function(r){r.getEntries().filter(function(a){return a.entryType===ia}).filter(function(a){return!n.config.ignore(a)}).forEach(function(a){n.performanceNavigationEventHandlerTimingLevel2(a)})});o.observe({entryTypes:[ia]})}},n.performanceNavigationEventHandlerTimingLevel1=function(){var o=function(){var r,a=performance.timing,s=a.navigationStart,l={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:a.unloadEventStart>0?a.unloadEventStart-s:0,promptForUnload:a.unloadEventEnd-a.unloadEventStart,redirectStart:a.redirectStart>0?a.redirectStart-s:0,redirectTime:a.redirectEnd-a.redirectStart,fetchStart:a.fetchStart>0?a.fetchStart-s:0,domainLookupStart:a.domainLookupStart>0?a.domainLookupStart-s:0,dns:a.domainLookupEnd-a.domainLookupStart,connectStart:a.connectStart>0?a.connectStart-s:0,connect:a.connectEnd-a.connectStart,secureConnectionStart:a.secureConnectionStart>0?a.secureConnectionStart-s:0,tlsTime:a.secureConnectionStart>0?a.connectEnd-a.secureConnectionStart:0,requestStart:a.requestStart>0?a.requestStart-s:0,timeToFirstByte:a.responseStart-a.requestStart,responseStart:a.responseStart>0?a.responseStart-s:0,responseTime:a.responseStart>0?a.responseEnd-a.responseStart:0,domInteractive:a.domInteractive>0?a.domInteractive-s:0,domContentLoadedEventStart:a.domContentLoadedEventStart>0?a.domContentLoadedEventStart-s:0,domContentLoaded:a.domContentLoadedEventEnd-a.domContentLoadedEventStart,domComplete:a.domComplete>0?a.domComplete-s:0,domProcessingTime:a.loadEventStart-a.responseEnd,loadEventStart:a.loadEventStart>0?a.loadEventStart-s:0,loadEventTime:a.loadEventEnd-a.loadEventStart,duration:a.loadEventEnd-a.navigationStart,navigationTimingLevel:1};!((r=n.context)===null||r===void 0)&&r.record&&n.context.record(nr,l)};setTimeout(o,0)},n.performanceNavigationEventHandlerTimingLevel2=function(o){var r,a={version:"1.0.0",initiatorType:o.initiatorType,navigationType:o.type,startTime:o.startTime,unloadEventStart:o.unloadEventStart,promptForUnload:o.unloadEventEnd-o.unloadEventStart,redirectCount:o.redirectCount,redirectStart:o.redirectStart,redirectTime:o.redirectEnd-o.redirectStart,workerStart:o.workerStart,workerTime:o.workerStart>0?o.fetchStart-o.workerStart:0,fetchStart:o.fetchStart,domainLookupStart:o.domainLookupStart,dns:o.domainLookupEnd-o.domainLookupStart,nextHopProtocol:o.nextHopProtocol,connectStart:o.connectStart,connect:o.connectEnd-o.connectStart,secureConnectionStart:o.secureConnectionStart,tlsTime:o.secureConnectionStart>0?o.connectEnd-o.secureConnectionStart:0,requestStart:o.requestStart,timeToFirstByte:o.responseStart-o.requestStart,responseStart:o.responseStart,responseTime:o.responseStart>0?o.responseEnd-o.responseStart:0,domInteractive:o.domInteractive,domContentLoadedEventStart:o.domContentLoadedEventStart,domContentLoaded:o.domContentLoadedEventEnd-o.domContentLoadedEventStart,domComplete:o.domComplete,domProcessingTime:o.loadEventStart-o.responseEnd,loadEventStart:o.loadEventStart,loadEventTime:o.loadEventEnd-o.loadEventStart,duration:o.duration,headerSize:o.transferSize>0?o.transferSize-o.encodedBodySize:0,transferSize:o.transferSize,compressionRatio:o.encodedBodySize>0?o.decodedBodySize/o.encodedBodySize:0,navigationTimingLevel:2};!((r=n.context)===null||r===void 0)&&r.record&&n.context.record(nr,a)},n.config=Id(Id({},ta),t),n}return i.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Lh,this.eventListener))},i.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(Lh,this.eventListener))},i.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(ia).length){var t=window.performance.getEntriesByType(ia)[0];return!!t.loadEventEnd}return!1},i.prototype.onload=function(){var t=this;this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(ia).filter(function(n){return!t.config.ignore(n)}
1558).forEach(function(n){return t.performanceNavigationEventHandlerTimingLevel2(n)}):window.addEventListener(Lh,this.eventListener))},i})(ui);var aD=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Md=function(){return Md=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Md.apply(this,arguments)},sD="resource",Nh="resource",Ub=(function(e){aD(i,e);function i(t){var n=e.call(this,sD)||this;return n.performanceEntryHandler=function(o){n.recordPerformanceEntries(o.getEntries())},n.recordPerformanceEntries=function(o){o.forEach(function(r){if(!(r.entryType!==Nh||n.config.ignore(r))){var a=r,s=a.name,l=a.initiatorType,c=Oh(s,l);n.config.recordAllTypes.includes(c)?n.recordResourceEvent(r):n.config.sampleTypes.includes(c)&&n.eventCount<n.config.eventLimit&&(n.recordResourceEvent(r),n.eventCount++)}})},n.recordResourceEvent=function(o){var r,a=o.name,s=o.startTime,l=o.initiatorType,c=o.duration,u=o.transferSize;if(!Hb(a,n.context.config.endpointUrl.hostname)&&!((r=n.context)===null||r===void 0)&&r.record){var m={version:"1.0.0",initiatorType:l,startTime:s,duration:c,fileType:Oh(a,l),transferSize:u};n.context.config.recordResourceUrl&&(m.targetUrl=a),n.context.record(Oc,m)}},n.config=Md(Md({},ta),t),n.eventCount=0,n.resourceObserver=new PerformanceObserver(n.performanceEntryHandler),n}return i.prototype.enable=function(){this.enabled||(this.enabled=!0,this.resourceObserver.observe({type:Nh,buffered:!0}))},i.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceObserver.disconnect())},i.prototype.onload=function(){this.resourceObserver.observe({type:Nh,buffered:!0})},i})(ui);var Bh,jb,Fd=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Uh=function(e){if(document.readyState==="loading")return"loading";var i=Fd();if(i){if(e<i.domInteractive)return"loading";if(i.domContentLoadedEventStart===0||e<i.domContentLoadedEventStart)return"dom-interactive";if(i.domComplete===0||e<i.domComplete)return"dom-content-loaded"}return"complete"},lD=function(e){var i=e.nodeName;return e.nodeType===1?i.toLowerCase():i.toUpperCase().replace(/^#/,"")},Ad=function(e,i){var t="";try{for(;e&&e.nodeType!==9;){var n=e,o=n.id?"#"+n.id:lD(n)+(n.classList&&n.classList.value&&n.classList.value.trim()&&n.classList.value.trim().length?"."+n.classList.value.trim().replace(/\s+/g,"."):"");if(t.length+o.length>(i||100)-1)return t||o;if(t=t?o+">"+t:o,n.id)break;e=n.parentNode}}catch{}return t},Xb=-1,cD=function(){return Xb},aa=function(e){addEventListener("pageshow",function(i){i.persisted&&(Xb=i.timeStamp,e(i))},!0)},jh=function(){var e=Fd();return e&&e.activationStart||0},an=function(e,i){var t=Fd(),n="navigate";return cD()>=0?n="back-forward-cache":t&&(document.prerendering||jh()>0?n="prerender":document.wasDiscarded?n="restore":t.type&&(n=t.type.replace(/_/g,"-"))),{name:e,value:i===void 0?-1:i,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},ar=function(e,i,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(o){Promise.resolve().then(function(){i(o.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},t||{})),n}}catch{}},sn=function(e,i,t,n){var o,r;return function(a){i.value>=0&&(a||n)&&((r=i.value-(o||0))||o===void 0)&&(o=i.value,i.delta=r,i.rating=(function(s,l){return s>l[1]?"poor":s>l[0]?"needs-improvement":"good"})(i.value,t),e(i))}},Wh=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},Rs=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},Od=function(e){var i=!1;return function(){i||(e(),i=!0)}},na=-1,Wb=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Pd=function(e){document.visibilityState==="hidden"&&na>-1&&(na=e.type==="visibilitychange"?e.timeStamp:0,dD())},$b=function(){addEventListener("visibilitychange",Pd,!0),addEventListener("prerenderingchange",Pd,!0)},dD=function(){removeEventListener("visibilitychange",Pd,!0),removeEventListener("prerenderingchange",Pd,!0)},$h=function(){return na<0&&(na=Wb(),$b(),aa(function(){setTimeout(function(){na=Wb(),$b()},0)})),{get firstHiddenTime(){return na}}},Ld=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},qb=[1800,3e3],uD=function(e,i){i=i||{},Ld(function(){var t,n=$h(),o=an("FCP"),r=ar("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(r.disconnect(),s.startTime<n.firstHiddenTime&&(o.value=Math.max(s.startTime-jh(),0),o.entries.push(s),t(!0)))})});r&&(t=sn(e,o,qb,i.reportAllChanges),aa(function(a){o=an("FCP"),t=sn(e,o,qb,i.reportAllChanges),Wh(function(){o.value=performance.now()-a.timeStamp,t(!0)})}))})},Yb=[.1,.25],e1=function(e,i){(function(t,n){n=n||{},uD(Od(function(){var o,r=an("CLS",0),a=0,s=[],l=function(u){u.forEach(function(m){if(!m.hadRecentInput){var v=s[0],C=s[s.length-1];a&&m.startTime-C.startTime<1e3&&m.startTime-v.startTime<5e3?(a+=m.value,s.push(m)):(a=m.value,s=[m])}}),a>r.value&&(r.value=a,r.entries=s,o())},c=ar("layout-shift",l);c&&(o=sn(t,r,Yb,n.reportAllChanges),Rs(function(){l(c.takeRecords()),o(!0)}),aa(function(){a=0,r=an("CLS",0),o=sn(t,r,Yb,n.reportAllChanges),Wh(function(){return o()})}),setTimeout(o,0))}))})(function(t){var n=(function(o){var r,a={};
1558if(o.entries.length){var s=o.entries.reduce(function(c,u){return c&&c.value>u.value?c:u});if(s&&s.sources&&s.sources.length){var l=(r=s.sources).find(function(c){return c.node&&c.node.nodeType===1})||r[0];l&&(a={largestShiftTarget:Ad(l.node),largestShiftTime:s.startTime,largestShiftValue:s.value,largestShiftSource:l,largestShiftEntry:s,loadState:Uh(s.startTime)})}}return Object.assign(o,{attribution:a})})(t);e(n)},i)};var t1=0,Vh=1/0,Dd=0,pD=function(e){e.forEach(function(i){i.interactionId&&(Vh=Math.min(Vh,i.interactionId),Dd=Math.max(Dd,i.interactionId),t1=Dd?(Dd-Vh)/7+1:0)})},i1=function(){return Bh?t1:performance.interactionCount||0},hD=function(){"interactionCount"in performance||Bh||(Bh=ar("event",pD,{type:"event",buffered:!0,durationThreshold:0}))},Ui=[],Ds=new Map,n1=0,gD=function(){var e=Math.min(Ui.length-1,Math.floor((i1()-n1)/50));return Ui[e]},o1=[],mD=function(e){if(o1.forEach(function(o){return o(e)}),e.interactionId||e.entryType==="first-input"){var i=Ui[Ui.length-1],t=Ds.get(e.interactionId);if(t||Ui.length<10||e.duration>i.latency){if(t)e.duration>t.latency?(t.entries=[e],t.latency=e.duration):e.duration===t.latency&&e.startTime===t.entries[0].startTime&&t.entries.push(e);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};Ds.set(n.id,n),Ui.push(n)}Ui.sort(function(o,r){return r.latency-o.latency}),Ui.length>10&&Ui.splice(10).forEach(function(o){return Ds.delete(o.id)})}}},qh=function(e){var i=self.requestIdleCallback||self.setTimeout,t=-1;return e=Od(e),document.visibilityState==="hidden"?e():(t=i(e),Rs(e)),t},Kb=[200,500],fD=function(e,i){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(i=i||{},Ld(function(){var t;hD();var n,o=an("INP"),r=function(s){qh(function(){s.forEach(mD);var l=gD();l&&l.latency!==o.value&&(o.value=l.latency,o.entries=l.entries,n())})},a=ar("event",r,{durationThreshold:(t=i.durationThreshold)!==null&&t!==void 0?t:40});n=sn(e,o,Kb,i.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Rs(function(){r(a.takeRecords()),n(!0)}),aa(function(){n1=i1(),Ui.length=0,Ds.clear(),o=an("INP"),n=sn(e,o,Kb,i.reportAllChanges)}))}))},oa=[],go=[],Hh=0,Yh=new WeakMap,ra=new Map,Gh=-1,vD=function(e){oa=oa.concat(e),r1()},r1=function(){Gh<0&&(Gh=qh(CD))},CD=function(){ra.size>10&&ra.forEach(function(a,s){Ds.has(s)||ra.delete(s)});var e=Ui.map(function(a){return Yh.get(a.entries[0])}),i=go.length-50;go=go.filter(function(a,s){return s>=i||e.includes(a)});for(var t=new Set,n=0;n<go.length;n++){var o=go[n];s1(o.startTime,o.processingEnd).forEach(function(a){t.add(a)})}var r=oa.length-1-50;oa=oa.filter(function(a,s){return a.startTime>Hh&&s>r||t.has(a)}),Gh=-1};o1.push(function(e){e.interactionId&&e.target&&!ra.has(e.interactionId)&&ra.set(e.interactionId,e.target)},function(e){var i,t=e.startTime+e.duration;Hh=Math.max(Hh,e.processingEnd);for(var n=go.length-1;n>=0;n--){var o=go[n];if(Math.abs(t-o.renderTime)<=8){(i=o).startTime=Math.min(e.startTime,i.startTime),i.processingStart=Math.min(e.processingStart,i.processingStart),i.processingEnd=Math.max(e.processingEnd,i.processingEnd),i.entries.push(e);break}}i||(i={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:t,entries:[e]},go.push(i)),(e.interactionId||e.entryType==="first-input")&&Yh.set(e,i),r1()});var mo,Ps,a1,Rd,s1=function(e,i){for(var t,n=[],o=0;t=oa[o];o++)if(!(t.startTime+t.duration<e)){if(t.startTime>i)break;n.push(t)}return n},l1=function(e,i){jb||(jb=ar("long-animation-frame",vD)),fD(function(t){var n=(function(o){var r=o.entries[0],a=Yh.get(r),s=r.processingStart,l=a.processingEnd,c=a.entries.sort(function(D,P){return D.processingStart-P.processingStart}),u=s1(r.startTime,l),m=o.entries.find(function(D){return D.target}),v=m&&m.target||ra.get(r.interactionId),C=[r.startTime+r.duration,l].concat(u.map(function(D){return D.startTime+D.duration})),_=Math.max.apply(Math,C),E={interactionTarget:Ad(v),interactionTargetElement:v,interactionType:r.name.startsWith("key")?"keyboard":"pointer",interactionTime:r.startTime,nextPaintTime:_,processedEventEntries:c,longAnimationFrameEntries:u,inputDelay:s-r.startTime,processingDuration:l-s,presentationDelay:Math.max(_-l,0),loadState:Uh(r.startTime)};return Object.assign(o,{attribution:E})})(t);e(n)},i)},Qb=[2500,4e3],zh={},c1=function(e,i){(function(t,n){n=n||{},Ld(function(){var o,r=$h(),a=an("LCP"),s=function(u){n.reportAllChanges||(u=u.slice(-1)),u.forEach(function(m){m.startTime<r.firstHiddenTime&&(a.value=Math.max(m.startTime-jh(),0),a.entries=[m],o())})},l=ar("largest-contentful-paint",s);if(l){o=sn(t,a,Qb,n.reportAllChanges);var c=Od(function(){zh[a.id]||(s(l.takeRecords()),l.disconnect(),zh[a.id]=!0,o(!0))});["keydown","click"].forEach(function(u){addEventListener(u,function(){return qh(c)},{once:!0,capture:!0})}),Rs(c),aa(function(u){a=an("LCP"),o=sn(t,a,Qb,n.reportAllChanges),Wh(function(){a.value=performance.now()-u.timeStamp,zh[a.id]=!0,o(!0)})})}})})(function(t){var n=(function(o){var r={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:o.value};
1558if(o.entries.length){var a=Fd();if(a){var s=a.activationStart||0,l=o.entries[o.entries.length-1],c=l.url&&performance.getEntriesByType("resource").filter(function(_){return _.name===l.url})[0],u=Math.max(0,a.responseStart-s),m=Math.max(u,c?(c.requestStart||c.startTime)-s:0),v=Math.max(m,c?c.responseEnd-s:0),C=Math.max(v,l.startTime-s);r={element:Ad(l.element),timeToFirstByte:u,resourceLoadDelay:m-u,resourceLoadDuration:v-m,elementRenderDelay:C-v,navigationEntry:a,lcpEntry:l},l.url&&(r.url=l.url),c&&(r.lcpResourceEntry=c)}}return Object.assign(o,{attribution:r})})(t);e(n)},i)};var Ms={passive:!0,capture:!0},bD=new Date,Zb=function(e,i){mo||(mo=i,Ps=e,a1=new Date,u1(removeEventListener),d1())},d1=function(){if(Ps>=0&&Ps<a1-bD){var e={entryType:"first-input",name:mo.type,target:mo.target,cancelable:mo.cancelable,startTime:mo.timeStamp,processingStart:mo.timeStamp+Ps};Rd.forEach(function(i){i(e)}),Rd=[]}},_D=function(e){if(e.cancelable){var i=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?(function(t,n){var o=function(){Zb(t,n),a()},r=function(){a()},a=function(){removeEventListener("pointerup",o,Ms),removeEventListener("pointercancel",r,Ms)};addEventListener("pointerup",o,Ms),addEventListener("pointercancel",r,Ms)})(i,e):Zb(i,e)}},u1=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(i){return e(i,_D,Ms)})},Jb=[100,300],yD=function(e,i){i=i||{},Ld(function(){var t,n=$h(),o=an("FID"),r=function(l){l.startTime<n.firstHiddenTime&&(o.value=l.processingStart-l.startTime,o.entries.push(l),t(!0))},a=function(l){l.forEach(r)},s=ar("first-input",a);t=sn(e,o,Jb,i.reportAllChanges),s&&(Rs(Od(function(){a(s.takeRecords()),s.disconnect()})),aa(function(){var l;o=an("FID"),t=sn(e,o,Jb,i.reportAllChanges),Rd=[],Ps=-1,mo=null,u1(addEventListener),l=r,Rd.push(l),d1()}))})},p1=function(e,i){yD(function(t){var n=(function(o){var r=o.entries[0],a={eventTarget:Ad(r.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:Uh(r.startTime)};return Object.assign(o,{attribution:a})})(t);e(n)},i)};var wD=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Nd=function(){return Nd=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Nd.apply(this,arguments)},xD="web-vitals",h1=(function(e){wD(i,e);function i(t){var n=e.call(this,xD)||this;return n.resourceEventIds=new Map,n.cacheLCPCandidates=Bb(),n.handleEvent=function(o){switch(o.type){case Oc:var r=o.details;n.cacheLCPCandidates&&r.fileType===bt.IMAGE&&n.resourceEventIds.set(Ah(o.details),o.id);break;case nr:n.navigationEventId=o.id;break}},n.config=Nd(Nd({},ta),t),n}return i.prototype.enable=function(){},i.prototype.disable=function(){},i.prototype.onload=function(){var t=this;this.context.eventBus.subscribe(Kr.EVENT,this.handleEvent),c1(function(n){return t.handleLCP(n)},{reportAllChanges:this.config.reportAllLCP}),p1(function(n){return t.handleFID(n)}),e1(function(n){return t.handleCLS(n)},{reportAllChanges:!0}),l1(function(n){return t.handleINP(n)},{reportAllChanges:!0})},i.prototype.handleLCP=function(t){var n,o,r=t.attribution,a={element:r?.element,url:r?.url,timeToFirstByte:r?.t
1558imeToFirstByte,resourceLoadDelay:r?.resourceLoadDelay,resourceLoadTime:r?.resourceLoadDuration,elementRenderDelay:r?.elementRenderDelay};if(r?.lcpResourceEntry){var s=Ah(r?.lcpResourceEntry);a.lcpResourceEntry=this.resourceEventIds.get(s)}this.navigationEventId&&(a.navigationEntry=this.navigationEventId),(n=this.context)===null||n===void 0||n.record(Xv,{version:"1.0.0",value:t.value,attribution:a}),(o=this.context)===null||o===void 0||o.eventBus.unsubscribe(Kr.EVENT,this.handleEvent),this.resourceEventIds.clear(),this.navigationEventId=void 0},i.prototype.handleCLS=function(t){var n=t.attribution,o=this.context,r=o.record,a=o.recordCandidate;(this.config.reportAllCLS?r:a)(tC,{version:"1.0.0",value:t.value,attribution:{largestShiftTarget:n?.largestShiftTarget,largestShiftValue:n?.largestShiftValue,largestShiftTime:n?.largestShiftTime,loadState:n?.loadState}})},i.prototype.handleFID=function(t){var n,o=t.attribution;(n=this.context)===null||n===void 0||n.record(eC,{version:"1.0.0",value:t.value,attribution:{eventTarget:o?.eventTarget,eventType:o?.eventType,eventTime:o?.eventTime,loadState:o?.loadState}})},i.prototype.handleINP=function(t){var n=t.attribution,o=this.context,r=o.record,a=o.recordCandidate;(this.config.reportAllINP?r:a)(iC,{version:"1.0.0",value:t.value,attribution:{interactionTarget:n?.interactionTarget,interactionTime:n?.interactionTime,nextPaintTime:n?.nextPaintTime,interactionType:n?.interactionType,inputDelay:n?.inputDelay,processingDuration:n?.processingDuration,presentationDelay:n?.presentationDelay,loadState:n?.loadState}})},i})(ui);var SD=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),g1=(function(e){SD(i,e);function i(t){var n=e.call(this,t)||this;return n.name="XMLHttpRequest error",n}return i})(Error);var kD=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Vd=function(){return Vd=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Vd.apply(this,arguments)},ED="xhr",m1=(function(e){kD(i,e);function i(t){var n=e.call(this,ED)||this;return n.addXRayTraceIdHeader=function(o){return hd(o,n.config.addXRayTraceIdHeader)},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.handleXhrLoadEvent=function(o){var r=o.target,a=n.xhrMap.get(r);if(a){var s=po();a.trace.end_time=s,a.trace.subsegments[0].end_time=s,a.trace.subsegments[0].http.response={status:r.status},Jr(r.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):md(r.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Zr(r.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var l=r.getResponseHeader("Content-Length"),c=l?parseInt(l,10):NaN;isNaN(c)||(a.trace.subsegments[0].http.response.content_length=c),n.recordTraceEvent(a.trace),n.recordHttpEventWithResponse(a,r)}},n.handleXhrErrorEvent=function(o){var r=o.target,a=n.xhrMap.get(r),s="XMLHttpRequest error",l=r.statusText?r.status.toString()+": "+r.statusText:r.status.toString();if(a){var c=po();a.trace.fault=!0,a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].fault=!0,a.trace.subsegments[0].cause={exceptions:[{type:s,message:l}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,r,new g1(l))}},n.handleXhrAbortEvent=function(o){var r=o.target,a=n.xhrMap.get(r);a&&n.handleXhrDetailsOnError(a,r,"XMLHttpRequest abort")},n.handleXhrTimeoutEvent=function(o){var r=o.target,a=n.xhrMap.get(r),s="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,r,s)},n.initializeTrace=function(o){var r=po();o.trace=vd(n.config.logicalServiceName,r,n.context.config.enableW3CTraceId),o.trace.subsegments.push(Cd(bd(o.url),r,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(r){return function(){var a=o.xhrMap.get(this);return a&&(this.addEventListener("load",o.handleXhrLoadEvent),this.addEventListener("error",o.handleXhrErrorEvent),this.addEventListener("abort",o.handleXhrAbortEvent),this.addEventListener("timeout",o.handleXhrTimeoutEvent),o.initializeTrace(a),!o.isSyntheticsUA&&o.isTracingEnabled()&&o.addXRayTraceIdHeader(a.url)&&o.isSessionRecorded()&&(o.context.config.enableW3CTraceId?this.setRequestHeader(Ts,yd(a.trace.trace_id,a.trace.subsegments[0].id)):this.setRequestHeader(Es,_d(a.trace.trace_id,a.trace.subsegments[0].id)))),r.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(r){return function(a,s,l){return fd(s,o.config)&&o.xhrMap.set(this,{url:s,method:a,async:l}),r.apply(this,arguments)}}},n.config=Vd(Vd({},gd),t),n.xhrMap=new Map,n.isSyntheticsUA=navigator.userAgent.includes("CloudWatchSynthetics"),n}return i.prototype.onload=function(){this.enable()},Object.defineProperty(i.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]}
1558,enumerable:!1,configurable:!0}),i.prototype.handleXhrDetailsOnError=function(t,n,o){if(t){var r=po();t.trace.end_time=r,t.trace.subsegments[0].end_time=r,t.trace.subsegments[0].error=!0,t.trace.subsegments[0].cause={exceptions:[{type:o}]},this.recordTraceEvent(t.trace),this.recordHttpEventWithError(t,n,o)}},i.prototype.statusOk=function(t){return t>=200&&t<300},i.prototype.recordHttpEventWithResponse=function(t,n){this.xhrMap.delete(n);var o={version:"1.0.0",request:{method:t.method,url:t.url},response:{status:n.status,statusText:n.statusText}};this.isTracingEnabled()&&(o.trace_id=t.trace.trace_id,o.segment_id=t.trace.subsegments[0].id),(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(jr,o)},i.prototype.recordHttpEventWithError=function(t,n,o){this.xhrMap.delete(n);var r={version:"1.0.0",request:{method:t.method,url:t.url},error:Wr({type:"error",error:o},this.config.stackTraceLength)};this.isTracingEnabled()&&(r.trace_id=t.trace.trace_id,r.segment_id=t.trace.subsegments[0].id),this.context.record(jr,r)},i.prototype.recordTraceEvent=function(t){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(Ac,t)},i})(co);var TD=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),zd=function(){return zd=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},zd.apply(this,arguments)},ID="fetch",f1=(function(e){TD(i,e);function i(t){var n=e.call(this,ID)||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var o;return((o=n.context.getSession())===null||o===void 0?void 0:o.record)||!1},n.beginTrace=function(o,r,a){var s=po(),l=yb(o,r,!0),c=vd(n.config.logicalServiceName,s,n.context.config.enableW3CTraceId),u=Cd(bd(o),s,l);return c.subsegments.push(u),n.isTraceIdHeaderEnabled(o)&&n.addXRayTraceIdHeader(o,r,a,c),c},n.addXRayTraceIdHeader=function(o,r,a,s){if(o.headers)return xb(o.headers,s.trace_id,s.subsegments[0].id,n.context.config.enableW3CTraceId);r||(r={},[].push.call(a,r)),wb(r,s.trace_id,s.subsegments[0].id,n.context.config.enableW3CTraceId)},n.endTrace=function(o,r,a){if(o){var s=po();if(o.subsegments[0].end_time=s,o.end_time=s,r){o.subsegments[0].http.response={status:r.status},Jr(r.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):md(r.status)?(o.subsegments[0].error=!0,o.error=!0):Zr(r.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var l=r.headers.get("Content-Length"),c=l?parseInt(l,10):NaN;isNaN(c)||(o.subsegments[0].http.response.content_length=c)}a&&(o.fault=!0,o.subsegments[0].fault=!0,a instanceof Object?n.appendErrorCauseFromObject(o.subsegments[0],a):Zp(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(Ac,o)}},n.createHttpEvent=function(o,r){var a=o;return{version:"1.0.0",request:{url:Is(o),method:r?.method?r.method:a.method?a.method:"GET"}}},n.recordHttpEventWithResponse=function(o,r){(n.config.recordAllRequests||!r.ok)&&(o.response={status:r.status,statusText:r.statusText},n.context.record(jr,o))},n.recordHttpEventWithError=function(o,r){o.error=Wr({type:"error",error:r},n.config.stackTraceLength),n.context.record(jr,o)},n.fetch=function(o,r,a,s,l){var c=n.createHttpEvent(s,l),u;if(!fd(Is(s),n.config))return o.apply(r,a);var m=Sb(s.headers,n.context.config.enableW3CTraceId);return m.traceId&&m.segmentId?(c.trace_id=m.traceId,c.segment_id=m.segmentId):n.isTracingEnabled()&&n.isSessionRecorded()&&(u=n.beginTrace(s,l,a),c.trace_id=u.trace_id,c.segment_id=u.subsegments[0].id),o.apply(r,a).then(function(v){return n.endTrace(u,v,void 0),n.recordHttpEventWithResponse(c,v),v}).catch(function(v){throw n.endTrace(u,void 0,v),n.recordHttpEventWithError(c,v),v})},n.fetchWrapper=function(){var o=n;return function(r){return function(a,s){return o.fetch(r,this,arguments,a,s)}}},n.config=zd(zd({},gd),t),n}return Object.defineProperty(i.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]}
1558,enumerable:!1,configurable:!0}),i.prototype.onload=function(){this.enable()},i.prototype.isTraceIdHeaderEnabled=function(t){var n=Is(t);return hd(n,this.config.addXRayTraceIdHeader)},i.prototype.appendErrorCauseFromPrimitive=function(t,n){t.cause={exceptions:[{type:n}]}},i.prototype.appendErrorCauseFromObject=function(t,n){t.cause={exceptions:[{type:n.name,message:n.message}]}},i})(co);var MD=(function(){var e=function(i,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},e(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),DD="page-view",v1=(function(e){MD(i,e);function i(){var t=e.call(this,DD)||this;return t.pushState=function(){var n=t;return function(o){return function(r,a,s){var l=o.apply(this,arguments);return n.recordPageView(),l}}},t.replaceState=function(){var n=t;return function(o){return function(r,a,s){var l=o.apply(this,arguments);return n.recordPageView(),l}}},t.popstateListener=function(n){t.recordPageView()},t.recordPageView=function(){t.context.recordPageView(t.createIdForCurrentPage())},t.enable(),t}return i.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(i.prototype,"patches",{get:function(){return[{nodule:History.prototype,name:"pushState",wrapper:this.pushState},{nodule:History.prototype,name:"replaceState",wrapper:this.replaceState}]},enumerable:!1,configurable:!0}),i.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},i.prototype.createIdForCurrentPage=function(){var t=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case sr.PathAndHash:return t&&n?t+n:t||n||"";case sr.Hash:return n||"";case sr.Path:default:return t||""}},i})(co);var fo=function(){return fo=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},fo.apply(this,arguments)},PD=function(e,i){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)i.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t},sa=function(e,i,t){if(t||arguments.length===2)for(var n=0,o=i.length,r;n<o;n++)(r||!(n in i))&&(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return e.concat(r||Array.prototype.slice.call(i))},C1="us-west-2",Kh="https://dataplane.rum.".concat(C1,".amazonaws.com"),la=(function(e){return e.Errors="errors",e.Performance="performance",e.Interaction="interaction",e.Http="http",e})(la||{}),sr=(function(e){return e.Path="PATH",e.Hash="HASH",e.PathAndHash="PATH_AND_HASH",e})(sr||{}),RD=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},FD=function(e){return fo({allowCookies:!1,batchLimit:100,client:pC,compressionStrategy:{enabled:!1},cookieAttributes:e,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Kh,endpointUrl:new URL(Kh),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:sr.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,legacySPASupport:!1},b1)},b1={candidatesCacheSize:10},Qh=(function(){function e(i,t,n,o){o===void 0&&(o={});var r=this,a=o.cookieAttributes,s=PD(o,["cookieAttributes"]);this.eventBus=new $c,typeof n>"u"&&(n="us-west-2");var l=fo(fo({},RD()),a);this.config=fo(fo(fo({fetchFunction:fetch},FD(l)),s),b1),this.config.endpoint=this.getDataPlaneEndpoint(n,s),this.config.endpointUrl=new URL(this.config.endpoint),re.configure(this.config.debug),re.debug("Configuration:",JSON.stringify({allowCookies:this.config.allowCookies,compressionStrategy:this.config.compressionStrategy,debug:this.config.debug,dispatchInterval:this.config.dispatchInterval,enableXRay:this.config.enableXRay,endpoint:this.config.endpoint,sessionSampleRate:this.config.sessionSampleRate,signing:this.config.signing},null,2)),this.eventCache=this.initEventCache(i,t),this.dispatchManager=this.initDispatch(n,i),this.pluginManager=this.initPluginManager(i,t),this.eventCache.setPluginFlushHook(function(){return r.pluginManager.flush()}),re.info("RUM client initialized for app: ".concat(i)),re.info("Telemetries enabled: ".concat(this.config.telemetries.join(", ")||"none")),this.config.enableRumClient?this.enable():this.disable()}return e.prototype.setAwsCredentials=function(i){this.dispatchManager.setAwsCredentials(i)},e.prototype.addSessionAttributes=function(i){this.eventCache.addSessionAttributes(i)},e.prototype.addPlugin=function(i){this.pluginManager.addPlugin(i)},e.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},e.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},e.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},e.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},e.prototype.allowCookies=function(i){this.config.allowCookies=i},e.prototype.recordPageView=function(i){this.eventCache.recordPageView(i)},e.prototype.recordError=function(i){this.pluginManager.record(Jp,i)},e.prototype.registerDomEvents=function(i){this.pluginManager.updatePlugin(Qp,i)},e.prototype.recordEvent=function(i,t){this.eventCache.recordEvent(i,t)},e.prototype.initEventCache=function(i,t){return new yC({id:i,version:t},this.config,this.eventBus)},e.prototype.initDispatch=function(i,t){var n=new zb(t,i,this.config.endpointUrl,this.eventCache,this.config);return this.config.signing&&this.config.identityPoolId&&n.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),n},e.prototype.initPluginManager=function(i,t){var n=this.constructBuiltinPlugins(),o=sa(sa([],n,!0),this.config.eventPluginsToLoad,!0),r={applicationId:i,applicationVersion:t,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new aC(r);return this.config.disableAutoPageView||a.addPlugin(new v1),o.forEach(function(s){a.addPlugin(s)}),a},e.prototype.constructBuiltinPlugins=function(){var i=[],t=this.telemetryFunctor();
1558return this.config.telemetries.forEach(function(n){typeof n=="string"&&t[n.toLowerCase()]?i=sa(sa([],i,!0),t[n.toLowerCase()]({}),!0):Array.isArray(n)&&t[n[0].toLowerCase()]&&(i=sa(sa([],i,!0),t[n[0].toLowerCase()](n[1]),!0))}),i},e.prototype.getDataPlaneEndpoint=function(i,t){return t.endpoint?t.endpoint:Kh.replace(C1,i)},e.prototype.telemetryFunctor=function(){var i;return i={},i[la.Errors]=function(t){return[new lC(t)]},i[la.Performance]=function(t){return[new Gb(t),new Ub(t),new h1(t)]},i[la.Interaction]=function(t){return[new sC(t)]},i[la.Http]=function(t){return[new m1(t),new f1(t)]},i},e})();var _1="\u2026",AD=40,Bd=(()=>{class e{transform(t,...n){let o=n[0]||AD,r="",a=!1,s=t||"";n&&n[1]&&typeof n[1]=="object"?(r=n[1].trailingString||_1,a=n[1].countTrailing||!1):(r=n[1]||_1,a=n[2]||!1);let l=this.getStringLength(o,r,a);return l<0?(l*=-1,s.length>l?r+s.substring(s.length-l,s.length):s):s.length>l?s.substring(0,l)+r:s}getStringLength(t,n,o=!1){return o?t<0?t+n.length:t-n.length:t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Zt({name:"truncate",type:e,pure:!0,standalone:!1}),e})();var Fs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=z({type:e}),e.\u0275inj=V({}),e})();var Zh=class{constructor(){this.change=new se,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}defaultId(){return this.DEFAULT_ID}register(i){return i.id==null&&(i.id=this.DEFAULT_ID),this.instances[i.id]?this.updateInstance(i):(this.instances[i.id]=i,!0)}updateInstance(i){let t=!1;for(let n in this.instances[i.id])i[n]!==this.instances[i.id][n]&&(this.instances[i.id][n]=i[n],t=!0);return t}getCurrentPage(i){return this.instances[i]?this.instances[i].currentPage:1}setCurrentPage(i,t){if(this.instances[i]){let n=this.instances[i],o=Math.ceil(n.totalItems/n.itemsPerPage);t<=o&&1<=t&&(this.instances[i].currentPage=t,this.change.emit(i))}}setTotalItems(i,t){this.instances[i]&&0<=t&&(this.instances[i].totalItems=t,this.change.emit(i))}setItemsPerPage(i,t){this.instances[i]&&(this.instances[i].itemsPerPage=t,this.change.emit(i))}getInstance(i=this.DEFAULT_ID){return this.instances[i]?this.clone(this.instances[i]):{}}clone(i){var t={};for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t}},Kie=Number.MAX_SAFE_INTEGER;var y1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=z({type:e}),e.\u0275inj=V({providers:[Zh],imports:[[J]]}),e})();var yg=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}
1558setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,i,t){let n=i?this.allAsyncListeners:this.allSyncListeners,o=n.get(e);return!o&&t&&(o=new Set,n.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,i,t=!1){this.getListeners(e,t,!0).add(i)}removeEventListener(e,i,t=!1){let n=this.getListeners(e,t,!1);n&&(n.delete(i),n.size===0&&(t?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,i=!1){(i?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,i=!1){(i?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){let i=e;this.dispatchToListeners(i,!0),this.dispatchToListeners(i,!1),this.firedEvents[i.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,i){let t=e.type;if(i&&"event"in e){let s=e.event;s instanceof Event&&(e.eventPath=s.composedPath())}let n=(s,l)=>s.forEach(c=>{if(!l.has(c))return;let u=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);i?this.dispatchAsync(u):u()}),o=this.getListeners(t,i,!1)??new Set,r=new Set(o);r.size>0&&n(r,o),new Set(i?this.globalAsyncListeners:this.globalSyncListeners).forEach(s=>{let l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>s(t,e)):()=>s(t,e);i?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){let i=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(i):i(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(i=>i())}},H1=(e=>(e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e))(H1||{}),w1={};function G1(e,i){w1[i]||(e(),w1[i]=!0)}function ug(e,...i){console.log("AG Grid: "+e,...i)}function X(e,...i){G1(()=>console.warn("AG Grid: "+e,...i),e+i?.join(""))}function Xe(e,...i){G1(()=>console.error("AG Grid: "+e,...i),e+i?.join(""))}function U1(e){return!!(e&&e.constructor&&e.call&&e.apply)}function dn(e,i){let t;return function(...n){let o=this;window.clearTimeout(t),t=window.setTimeout(function(){e.apply(o,n)},i)}}function LD(...e){return i=>e.reduce((t,n)=>n(t),i)}function wg(e){return e==null||e===""?null:e}function le(e,i=!1){return e!=null&&(e!==""||i)}function Rt(e){return!le(e)}function pa(e){return e==null||e.length===0}function x1(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function S1(e){if(e===void 0)return;if(e===null||e==="")return null;if(typeof e=="number")return isNaN(e)?void 0:e;let i=parseInt(e,10);return isNaN(i)?void 0:i}function k1(e){return typeof e=="boolean"?e:typeof e=="string"?e.toUpperCase()==="TRUE"||e=="":!1}function Us(e,i){let t=e?JSON.stringify(e):null,n=i?JSON.stringify(i):null;return t===n}function Jh(e){if(e instanceof Set||e instanceof Map){let i=[];return e.forEach(t=>i.push(t)),i}return Object.values(e)}function j1(e,i){return e.get("rowModelType")===i}function wo(e){return j1(e,"clientSide")}function qd(e){return j1(e,"serverSide")}function xg(e,i){return e.get("domLayout")===i}function ND(e){return KD(e)!==void 0}function VD(e){return typeof e.get("getRowHeight")=="function"}
1558function Gd(e,i,t=!1,n){if(n==null&&(n=e.environment.getDefaultRowHeight()),VD(e)){if(t)return{height:n,estimated:!0};let a={node:i,data:i.data},s=e.getCallback("getRowHeight")(a);if(pg(s))return s===0&&X("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,s),estimated:!1}}if(i.detail&&e.get("masterDetail"))return zD(e);let o=e.get("rowHeight");return{height:o&&pg(o)?o:n,estimated:!1}}function zD(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};let i=e.get("detailRowHeight");return pg(i)?{height:i,estimated:!1}:{height:300,estimated:!1}}function ha(e){let{environment:i}=e,t=e.get("rowHeight");if(!t||Rt(t))return i.getDefaultRowHeight();let n=i.refreshRowHeightVariable();return n!==-1?n:(X("row height must be a number if not using standard row model"),i.getDefaultRowHeight())}function pg(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function BD(e,i,t){let n=i[e.getDomDataKey()];return n?n[t]:void 0}function js(e,i,t,n){let o=e.getDomDataKey(),r=i[o];Rt(r)&&(r={},i[o]=r),r[t]=n}function Fn(e){let i=null,t=e.get("getDocument");return t&&le(t)?i=t():e.eGridDiv&&(i=e.eGridDiv.ownerDocument),i&&le(i)?i:document}function HD(e){return e.eGridDiv.getRootNode()}function An(e){return HD(e).activeElement}function GD(e){let i=Fn(e),t=An(e);return t===null||t===i.body}function Xh(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function UD(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function hg(e){let i=e.get("groupAggFiltering");if(typeof i=="function")return e.getCallback("groupAggFiltering");if(i===!0)return()=>!0}function W1(e){let i=e.get("grandTotalRow");if(i)return i;if(e.get("groupIncludeTotalFooter"))return"bottom"}function $1(e){let i=e.get("groupTotalRow");if(typeof i=="function")return e.getCallback("groupTotalRow");if(i)return()=>i;let t=e.get("groupIncludeFooter");if(typeof t=="function"){let n=e.getCallback("groupIncludeFooter");return o=>n(o)?"bottom":void 0}return()=>t?"bottom":void 0}function q1(e){return e.exists("groupDisplayType")?e.get("groupDisplayType")==="multipleColumns":e.get("groupHideOpenParents")}function jD(e,i){return i?!1:e.get("groupDisplayType")==="groupRows"}function Yd(e){let i=e.getCallback("getRowId");return i===void 0?i:t=>{let n=i(t);return typeof n!="string"&&(X("The getRowId callback must return a string. The ID ",n," is being cast to a string."),n=String(n)),n}}function Sg(e){return e?.checkboxes??!0}function WD(e){return e?.hideDisabledCheckboxes??!1}function $D(e){return e.get("cellSelection")!==void 0}
1558function qD(e){let i=e.get("cellSelection");return i!==void 0?typeof i!="boolean"?i?.suppressMultiRanges??!1:!1:e.get("suppressMultiRangeSelection")}function Kd(e){let i=e.get("cellSelection");return i!==void 0?!!i:e.get("enableRangeSelection")}function YD(e){let i=e.get("cellSelection");return i!==void 0?typeof i!="boolean"?i.handle?.mode==="range":!1:e.get("enableRangeHandle")}function E1(e){let i=e.get("cellSelection");return i!==void 0?typeof i!="boolean"?i.handle?.mode==="fill":!1:e.get("enableFillHandle")}function Y1(e){let i=e.get("rowSelection");return typeof i=="string"?e.get("isRowSelectable"):i?.isRowSelectable}function KD(e){let i=e.get("rowSelection");if(typeof i=="string")switch(i){case"multiple":return"multiRow";case"single":return"singleRow";default:return}return i?.mode}function kg(e){let i=e.get("rowSelection");if(typeof i=="string"){let t=e.get("groupSelectsChildren"),n=e.get("groupSelectsFiltered");return t&&n?"filteredDescendants":t?"descendants":"self"}return i?.mode==="multiRow"?i.groupSelects:void 0}function gg(e){let i=kg(e);return i==="descendants"||i==="filteredDescendants"}function eg(e){return e.isModuleRegistered("@ag-grid-enterprise/set-filter")&&!e.get("suppressSetFilterByDefault")}function dr(e){if(!(!e||!e.length))return e[e.length-1]}function Eg(e,i,t){return e==null&&i==null?!0:e!=null&&i!=null&&e.length===i.length&&e.every((n,o)=>t?t(n,i[o]):i[o]===n)}function K1(e,i){let t=e.indexOf(i);t>=0&&e.splice(t,1)}function QD(e,i,t){e.splice(t,0,i)}function Q1(e,i){return e.indexOf(i)>-1}var Z1="__ag_Grid_Stop_Propagation",ZD=["touchstart","touchend","touchmove","touchcancel","scroll"],tg={};function mg(e){e[Z1]=!0}function J1(e){return e[Z1]===!0}var JD=(()=>{let e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t=>{if(typeof tg[t]=="boolean")return tg[t];let n=document.createElement(e[t]||"div");return t="on"+t,tg[t]=t in n}})();function XD(e,i,t){let n=i;for(;n;){let o=BD(e,n,t);if(o)return o;n=n.parentElement}return null}function eP(e,i,t,n){let r=Q1(ZD,t)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(i,t,n,r)}var fe=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.frameworkOverrides=e.frameworkOverrides,this.stubContext=e.context,this.eventService=e.eventService,this.gos=e.gos,this.localeService=e.localeService}getFrameworkOverrides(){return this.frameworkOverrides}destroy(){for(let e=0;e<this.destroyFunctions.length;e++)this.destroyFunctions[e]();this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,i,t){this.localEventService||(this.localEventService=new yg),this.localEventService.addEventListener(e,i,t)}removeEventListener(e,i,t){this.localEventService&&this.localEventService.removeEventListener(e,i,t)}dispatchLocalEvent(e){this.localEventService&&this.localEventService.dispatchEvent(e)}addManagedElementListeners(e,i){return this._setupListeners(e,i)}addManagedEventListeners(e){return this._setupListeners(this.eventService,e)}addManagedListeners(e,i){return this._setupListeners(e,i)}_setupListeners(e,i){let t=[];for(let n in i){let o=i[n];o&&t.push(this._setupListener(e,n,o))}return t}_setupListener(e,i,t){if(this.destroyed)return()=>null;e instanceof HTMLElement?eP(this.getFrameworkOverrides(),e,i,t):e.addEventListener(i,t);let n=()=>(e.removeEventListener(i,t),null);return this.destroyFunctions.push(n),()=>(n(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==n),null)}setupGridOptionListener(e,i){this.gos.addPropertyEventListener(e,i);let t=()=>(this.gos.removePropertyEventListener(e,i),null);return this.destroyFunctions.push(t),()=>(t(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==t),null)}addManagedPropertyListener(e,i){return this.destroyed?()=>null:this.setupGridOptionListener(e,i)}addManagedPropertyListeners(e,i){if(this.destroyed)return;let t=e.join("-")+this.propertyListenerId++,n=o=>{if(o.changeSet){if(o.changeSet&&o.changeSet.id===this.lastChangeSetIdLookup[t])return;this.lastChangeSetIdLookup[t]=o.changeSet.id}let r={type:"gridPropertyChanged",changeSet:o.changeSet,source:o.source};i(r)};e.forEach(o=>
1558this.setupGridOptionListener(o,n))}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createManagedBean(e,i){let t=this.createBean(e,i);return this.addDestroyFunc(this.destroyBean.bind(this,e,i)),t}createBean(e,i,t){return(i||this.stubContext).createBean(e,t)}destroyBean(e,i){return(i||this.stubContext).destroyBean(e)}destroyBeans(e,i){return(i||this.stubContext).destroyBeans(e)}};var tP="ag-Grid-ControlsColumn";var iP="ag-Grid-AutoColumn";function nP(e){return e.getId().startsWith(iP)}function Tg(e){return e.getColId().startsWith(tP)}function ig(e){let i=[];return e instanceof Array?e.some(n=>typeof n!="string")?X("if colDef.type is supplied an array it should be of type 'string[]'"):i=e:typeof e=="string"?i=e.split(","):X("colDef.type should be of type 'string' | 'string[]'"),i}var X1=class{constructor(e){this.frameworkOverrides=e,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}wrap(e,i){let{frameworkOverrides:t,wrappedListeners:n}=this,o=i;if(t.shouldWrapOutgoing){o=a=>{t.wrapOutgoing(()=>i(a))};let r=n.get(e);r||(r=new Map,n.set(e,r)),r.set(i,o)}return o}wrapGlobal(e){let{frameworkOverrides:i,wrappedGlobalListeners:t}=this,n=e;return i.shouldWrapOutgoing&&(n=(o,r)=>{i.wrapOutgoing(()=>e(o,r))},t.set(e,n)),n}unwrap(e,i){let{wrappedListeners:t}=this,n=t.get(e);if(n){let o=n.get(i);if(o)return n.delete(i),n.size===0&&t.delete(e),o}return i}unwrapGlobal(e){let{wrappedGlobalListeners:i}=this,t=i.get(e);return t?(i.delete(e),t):e}},Ig=new Set(["__proto__","constructor","prototype"]);function Mg(e,i){if(e!=null){if(Array.isArray(e)){for(let t=0;t<e.length;t++)i(t.toString(),e[t]);return}for(let[t,n]of Object.entries(e))Ig.has(t)||i(t,n)}}function e_(e){let i={},t=Object.keys(e);for(let n=0;n<t.length;n++){if(Ig.has(t[n]))continue;let o=t[n],r=e[o];i[o]=r}return i}function oP(e){if(!e)return[];let i=Object;if(typeof i.values=="function")return i.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&e.propertyIsEnumerable(n)&&t.push(e[n]);return t}function _o(e,i,t=!0,n=!1){le(i)&&Mg(i,(o,r)=>{if(Ig.has(o))return;let a=e[o];a!==r&&(n&&a==null&&r!=null&&typeof r=="object"&&r.constructor===Object&&(a={},e[o]=a),T1(r)&&T1(a)&&!Array.isArray(a)?_o(a,r,t,n):(t||r!==void 0)&&(e[o]=r))})}function t_(e,i,t){if(!i||!e)return;if(!t)return e[i];let n=i.split("."),o=e;for(let r=0;r<n.length;r++){if(o==null)return;o=o[n[r]]}return o}function T1(e){return typeof e=="object"&&e!==null}var rP={resizable:!0,sortable:!0},aP=0;function sP(){return aP++}function I1(e){return e instanceof lP}var lP=class extends fe{constructor(e,i,t,n){super(),this.isColumn=!0,this.instanceId=sP(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.columnEventService=new yg,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=i,this.colId=t,this.primary=n,this.setState(e)}wireBeans(e){this.columnHoverService=e.columnHoverService}getInstanceId(){return this.instanceId}setState(e){e.sort!==void 0?(e.sort==="asc"||e.sort==="desc")&&(this.sort=e.sort):(e.initialSort==="asc"||e.initialSort==="desc")&&(this.sort=e.initialSort);let i=e.sortIndex,t=e.initialSortIndex;i!==void 0?i!==null&&(this.sortIndex=i):t!==null&&(this.sortIndex=t);let n=e.hide,o=e.initialHide;n!==void 0?this.visible=!n:this.visible=!o,e.pinned!==void 0?this.setPinned(e.pinned):this.setPinned(e.initialPinned);let r=e.flex,a=e.initialFlex;r!==void 0?this.flex=r:a!==void 0&&(this.flex=a)}setColDef(e,i,t){this.colDef=e,this.userProvidedColDef=i,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.columnEventService.dispatchEvent(this.createColumnEvent("colDefChanged",t))}getUserProvidedColDef(){return this.userProvidedColDef}setParent(e){this.parent=e}getParent(){return this.parent}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}postConstruct(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){let e=this.gos.get("suppressFieldDotNotation");this.fieldContainsDots=le(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=le(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e}initMinAndMaxWidths(){let e=this.colDef;this.minWidth=e.minWidth??this.gos.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.tooltipEnabled=le(this.colDef.tooltipField)||le(this.colDef.tooltipValueGetter)||le(this.colDef.tooltipComponent)}resetActualWidth(e){let i=this.calculateColInitialWidth(this.colDef);this.setActualWidth(i,e,!0)}calculateColInitialWidth(e){let i,t=S1(e.width),n=S1(e.initialWidth);return t!=null?i=t:n!=null?i=n:i=200,Math.max(Math.min(i,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){if(Rt(this.colDef)||Rt(this.colDef.showRowGroup))return!1;let i=this.colDef.showRowGroup===!0,t=this.colDef.showRowGroup===e;return i||t}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}addEventListener(e,i){this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.columnEventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new X1(this.frameworkOverrides));let t=this.frameworkEventListenerService?.wrap(e,i)??i;this.columnEventService.addEventListener(e,t)}removeEventListener(e,i){let t=this.frameworkEventListenerService?.unwrap(e,i)??i;this.columnEventService.removeEventListener(e,t)}createColumnFunctionCallbackParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){let i=this.createColumnFunctionCallbackParams(e),t=this.colDef.suppressNavigable;return t(i)}return!1}isCellEditable(e){if(e.group){if(this.gos.get("treeData")){if(!e.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return this.isColumnFunc(e,this.colDef.editable)}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){let i=this.gos.get("rowSelection");
vendor: 6,038 bytes, line 1558
1558if(i&&typeof i!="string"){let t=Tg(this)&&Sg(i);return this.isColumnFunc(e,t)}else return this.isColumnFunc(e,this.colDef.checkboxSelection)}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??rP[e]}isColumnFunc(e,i){if(typeof i=="boolean")return i;if(typeof i=="function"){let t=this.createColumnFunctionCallbackParams(e);return i(t)}return!1}setHighlighted(e){this.highlighted!==e&&(this.highlighted=e,this.columnEventService.dispatchEvent(this.createColumnEvent("headerHighlightChanged","uiColumnMoved")))}setMoving(e,i){this.moving=e,this.columnEventService.dispatchEvent(this.createColumnEvent("movingChanged",i))}createColumnEvent(e,i){return this.gos.addGridCommonParams({type:e,column:this,columns:[this],source:i})}isMoving(){return this.moving}getSort(){return this.sort}setSort(e,i){this.sort!==e&&(this.sort=e,this.columnEventService.dispatchEvent(this.createColumnEvent("sortChanged",i))),this.dispatchStateUpdatedEvent("sort")}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Rt(this.sort)}isSorting(){return le(this.sort)}getSortIndex(){return this.sortIndex}setSortIndex(e){this.sortIndex=e,this.dispatchStateUpdatedEvent("sortIndex")}setMenuVisible(e,i){this.menuVisible!==e&&(this.menuVisible=e,this.columnEventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",i)))}isMenuVisible(){return this.menuVisible}setAggFunc(e){this.aggFunc=e,this.dispatchStateUpdatedEvent("aggFunc")}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,i){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.columnEventService.dispatchEvent(this.createColumnEvent("leftChanged",i)))}isFilterActive(){return this.filterActive}setFilterActive(e,i,t){this.filterActive!==e&&(this.filterActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",i)));let n=this.createColumnEvent("filterChanged",i);t&&_o(n,t),this.columnEventService.dispatchEvent(n)}isHovered(){return this.columnHoverService.isHovered(this)}setPinned(e){e===!0||e==="left"?this.pinned="left":e==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")}setFirstRightPinned(e,i){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.columnEventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",i)))}setLastLeftPinned(e,i){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.columnEventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",i)))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,i){let t=e===!0;this.visible!==t&&(this.visible=t,this.columnEventService.dispatchEvent(this.createColumnEvent("visibleChanged",i))),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let i=e.getPaddingLevel()+1,t=!0;for(;e;){if(!e.isPadding()){t=!1;break}e=e.getParent()}return{numberOfParents:i,isSpanningTotal:t}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){let i=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,i}createBaseColDefParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Rt(this.colDef.colSpan))return 1;let i=this.createBaseColDefParams(e),t=this.colDef.colSpan(i);return Math.max(t,1)}getRowSpan(e){if(Rt(this.colDef.rowSpan))return 1;let i=this.createBaseColDefParams(e),t=this.colDef.rowSpan(i);return Math.max(t,1)}setActualWidth(e,i,t=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&i!=="flex"&&i!=="gridInitializing"&&(this.flex=null),t||this.fireColumnWidthChangedEvent(i)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.columnEventService.dispatchEvent(this.createColumnEvent("widthChanged",e))}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex||0}setFlex(e){this.flex!==e&&(this.flex=e),this.dispatchStateUpdatedEvent("flex")}setMinimum(e){this.setActualWidth(this.minWidth,e)}setRowGroupActive(e,i){this.rowGroupActive!==e&&(this.rowGroupActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",i))),this.dispatchStateUpdatedEvent("rowGroup")}isRowGroupActive(){return this.rowGroupActive}setPivotActive(e,i){this.pivotActive!==e&&(this.pivotActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",i))),this.dispatchStateUpdatedEvent("pivot")}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}setValueActive(e,i){this.aggregationActive!==e&&(this.aggregationActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnValueChanged",i)))}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}
1558dispatchStateUpdatedEvent(e){this.columnEventService.dispatchEvent({type:"columnStateUpdated",key:e})}};function cP(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}var dP=/[&<>"']/g,uP={"&":"&","<":"<",">":">",'"':""","'":"'"};function i_(e,i){if(e==null)return null;let t=e.toString().toString();return i?t:t.replace(dP,n=>uP[n])}function pP(e,i){return e+"_"+i}function ua(e){return e instanceof hP}var hP=class extends fe{constructor(e,i,t,n){super(),this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.groupId=i,this.partId=t,this.providedColumnGroup=e,this.pinned=n}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}setParent(e){this.parent=e}getUniqueId(){return pP(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){let e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(i=>i.isMoving())}checkLeft(){if(this.displayedChildren.forEac
vendor: 4,751 bytes, line 1558
1558h(e=>{ua(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){let i=dr(this.displayedChildren).getLeft();this.setLeft(i)}else{let e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren&&this.displayedChildren.forEach(i=>{e+=i.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(i=>{i.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(i=>{e+=i.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){let e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){let e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){let i=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,i}addDisplayedLeafColumns(e){this.displayedChildren.forEach(i=>{I1(i)?e.push(i):ua(i)&&i.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(i=>{I1(i)?e.push(i):ua(i)&&i.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(t=>{if(ua(t)&&(!t.displayedChildren||!t.displayedChildren.length))return;switch(t.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(t);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(t);break;default:this.displayedChildren.push(t);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},gP=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){let i=this.existingIds[e],t;return typeof i!="number"?t=0:t=i+1,this.existingIds[e]=t,t}};var n_=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterOpened","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDrag
1558Cancel"],mP=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged"],fP=[...n_,...mP];var Kt=class{};Kt.STRING_PROPERTIES=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow"];Kt.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","theme","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","cellSelection","selectionColumnDef"];Kt.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"];Kt.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"];Kt.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","suppressGroupMaintainValueType","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault"];Kt.OTHER_PROPERTIES=["suppressStickyTotalRow","loadThemeGoogleFonts","rowSelection"];Kt.FUNCTION_PROPERTIES=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","
1558sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering","chartMenuItems","groupTotalRow"];Kt.ALL_PROPERTIES=[...Kt.ARRAY_PROPERTIES,...Kt.OBJECT_PROPERTIES,...Kt.STRING_PROPERTIES,...Kt.NUMBER_PROPERTIES,...Kt.FUNCTION_PROPERTIES,...Kt.BOOLEAN_PROPERTIES,...Kt.OTHER_PROPERTIES];var Ws=Kt,Pi=class{static getCallbackForEvent(i){return!i||i.length<2?i:"on"+i[0].toUpperCase()+i.substring(1)}};Pi.VUE_OMITTED_PROPERTY="AG-VUE-OMITTED-PROPERTY";Pi.PUBLIC_EVENTS=n_;Pi.EVENT_CALLBACKS=fP.map(e=>Pi.getCallbackForEvent(e));Pi.BOOLEAN_PROPERTIES=Ws.BOOLEAN_PROPERTIES;Pi.ALL_PROPERTIES=Ws.ALL_PROPERTIES;Pi.ALL_PROPERTIES_AND_CALLBACKS=[...Pi.ALL_PROPERTIES,...Pi.EVENT_CALLBACKS];Pi.ALL_PROPERTIES_AND_CALLBACKS_SET=new Set(Pi.ALL_PROPERTIES_AND_CALLBACKS);var vP=Pi;function CP(e,i,t){return t&&e.addDestroyFunc(()=>i.destroyBean(t)),t??e}var bP=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){let i=(e||"").split(" ");if(i.length>1){i.forEach(n=>this.addCssClass(n));return}if(this.cssClassStates[e]!==!0&&e.length){let n=this.getGui();n&&n.classList.add(e),this.cssClassStates[e]=!0}}removeCssClass(e){let i=(e||"").split(" ");if(i.length>1){i.forEach(n=>this.removeCssClass(n));return}if(this.cssClassStates[e]!==!1&&e.length){let n=this.getGui();n&&n.classList.remove(e),this.cssClassStates[e]=!1}}containsCssClass(e){let i=this.getGui();return i?i.classList.contains(e):!1}addOrRemoveCssClass(e,i){if(!e)return;if(e.indexOf(" ")>=0){let n=(e||"").split(" ");if(n.length>1){n.forEach(o=>this.addOrRemoveCssClass(o,i));return}}if(this.cssClassStates[e]!==i&&e.length){let n=this.getGui();n&&n.classList.toggle(e,i),this.cssClassStates[e]=i}}};function ma(e,i,t){t==null||typeof t=="string"&&t==""?_P(e,i):fa(e,i,t)}function fa(e,i,t){e.setAttribute(o_(i),t.toString())}function _P(e,i){e.removeAttribute(o_(i))}function o_(e){return`aria-${e}`}function xo(e,i){i?e.setAttribute("role",i):e.removeAttribute("role")}function yP(e){return e.getAttribute("aria-label")}function Dg(e,i){ma(e,"label",i)}function fg(e,i){ma(e,"labelledby",i)}function wP(e,i){ma(e,"disabled",i)}function r_(e,i){ma(e,"hidden",i)}function M1(e,i){fa(e,"expanded",i)}function xP(e,i){fa(e,"setsize",i)}function SP(e,i){fa(e,"posinset",i)}function a_(e,i){fa(e,"colindex",i)}function kP(e,i){fa(e,"colspan",i)}function vg(e,i){ma(e,"selected",i)}function EP(e,i){ma(e,"controls",i.id),fg(i,e.id)}function s_(e,i){return i===void 0?e("ariaIndeterminate","indeterminate"):i===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var TP="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function IP(e){let i=Element.prototype.matches||Element.prototype.msMatchesSelector,n=i.call(e,"input, select, button, textarea"),o=i.call(e,TP),r=Ud(e);return n&&!o&&r}function So(e,i,t={}){let{skipAriaHidden:n}=t;e.classList.toggle("ag-hidden",!i),n||r_(e,!i)}function MP(e,i,t={}){let{skipAriaHidden:n}=t;e.classList.toggle("ag-invisible",!i),n||r_(e,!i)}function $s(e,i){let t="disabled",n=i?o=>o.setAttribute(t,""):o=>o.removeAttribute(t);n(e),c_(e.querySelectorAll("input"),o=>n(o))}function l_(e,i,t){let n=0;for(;e;){if(e.classList.contains(i))return!0;if(e=e.parentElement,typeof t=="number"){if(++n>t)break}else if(e===t)break}return!1}function va(e){let{height:i,width:t,borderTopWidth:n,borderRightWidth:o,borderBottomWidth:r,borderLeftWidth:a,paddingTop:s,paddingRight:l,paddingBottom:c,paddingLeft:u,marginTop:m,marginRight:v,marginBottom:C,marginLeft:_,boxSizing:E}=window.getComputedStyle(e);return{height:parseFloat(i||"0"),width:parseFloat(t||"0"),borderTopWidth:parseFloat(n||"0"),borderRightWidth:parseFloat(o||"0"),borderBottomWidth:parseFloat(r||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(s||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(u||"0"),marginTop:parseFloat(m||"0"),marginRight:parseFloat(v||"0"),marginBottom:parseFloat(C||"0"),marginLeft:parseFloat(_||"0"),boxSizing:E}}function DP(e){let i=va(e);return i.boxSizing==="border-box"?i.height-i.paddingTop-i.paddingBottom:i.height}function PP(e){let i=va(e);return i.boxSizing==="border-box"?i.width-i.paddingLeft-i.paddingRight:i.width}function RP(e){let{height:i,marginBottom:t,marginTop:n}=va(e);return Math.floor(i+t+n)}function Cg(e){let{width:i,marginLeft:t,marginRight:n}=va(e);return Math.floor(i+t+n)}function Ks(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function qs(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function FP(e){return!!e.offsetParent}function Ud(e){let i=e;return i.checkVisibility?i.checkVisibility({checkVisibilityCSS:!0}):!(!FP(e)||window.getComputedStyle(e).visibility!=="visible")}function Pg(e){let i=document.createElement("div");return i.innerHTML=(e||"").trim(),i.firstChild}
1558function jd(e,i){i==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Wd(e,i)}function Wd(e,i){i=Rg(i),e.style.width=i.toString(),e.style.maxWidth=i.toString(),e.style.minWidth=i.toString()}function D1(e,i){i=Rg(i),e.style.height=i.toString(),e.style.maxHeight=i.toString(),e.style.minHeight=i.toString()}function Rg(e){return typeof e=="number"?`${e}px`:e}function Fg(e){return e instanceof Node||e instanceof HTMLElement}function AP(e){if(e==null)return[];let i=[];return c_(e,t=>i.push(t)),i}function OP(e,i){if(e)for(let t=0;t<e.length;t++){let n=e[t];i(n.name,n.value)}}function ji(e,i,t){t==null||t===""?e.removeAttribute(i):e.setAttribute(i,t.toString())}function c_(e,i){if(e!=null)for(let t=0;t<e.length;t++)i(e[t])}var Ys=class{constructor(e=0,i=1){this.nextValue=e,this.step=i}next(){let e=this.nextValue;return this.nextValue+=this.step,e}peek(){return this.nextValue}skip(e){this.nextValue+=e}},ng,Hd,og,rg,ag,sg;function ur(){return ng===void 0&&(ng=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ng}function LP(){if(Hd===void 0)if(ur()){let e=navigator.userAgent.match(/version\/(\d+)/i);e&&(Hd=e[1]!=null?parseFloat(e[1]):0)}else Hd=0;return Hd}function NP(){if(og===void 0){let e=window;og=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return og}function VP(){return rg===void 0&&(rg=/(firefox)/i.test(navigator.userAgent)),rg}function zP(){return ag===void 0&&(ag=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),ag}function d_(){return sg===void 0&&(sg=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),sg}var BP=1e3,HP=1e3,P1=100,GP=(()=>{let e=class lr extends fe{constructor(t,n,o,r){super(),this.parentComp=t,this.tooltipShowDelayOverride=n,this.tooltipHideDelayOverride=o,this.shouldDisplayTooltip=r,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(t){this.popupService=t.popupService,this.userComponentFactory=t.userComponentFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");let t=this.parentComp.getGui();this.tooltipTrigger===0&&this.addManagedListeners(t,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(t,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(t,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(t,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(t){let n=this.gos.get(t);return n<0&&X(`${t} should not be lower than 0`),Math.max(200,n)}getTooltipDelay(t){return t==="show"?this.tooltipShowDelayOverride??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipHideDelayOverride??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){let t=this.gos.get("tooltipTrigger");return!t||t==="hover"?0:1}onMouseEnter(t){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!d_()&&(lr.isLocked?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(t)},P1):this.prepareToShowTooltip(t))}onMouseMove(t){this.lastMouseEvent&&(this.lastMouseEvent=t),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(t){let n=t.relatedTarget,o=this.parentComp.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||o.contains(n)||this.interactionEnabled&&r?.contains(n)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(t){if(this.state!=0||lr.isLocked)return;let n=0;t&&(n=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=t||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),n),this.state=1}isLastTooltipHiddenRecently(){let t=new Date().getTime(),n=lr.lastTooltipHideTime;return t-n<BP}setToDoNothing(t){!t&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){let t=M({},this.parentComp.getTooltipParams());if(!le(t.value)||this.shouldDisplayTooltip&&!this.shouldDisplayTooltip()){this.setToDoNothing();return}this.state=2,this.tooltipInstanceCount++;let n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);
1558this.userComponentFactory.getTooltipCompDetails(t).newAgStackInstance().then(n)}hideTooltip(t){!t&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),lr.lastTooltipHideTime=new Date().getTime()),this.eventService.dispatchEvent({type:"tooltipHide",parentGui:this.parentComp.getGui()}),t&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(t,n){if(this.state!==2||this.tooltipInstanceCount!==t){this.destroyBean(n);return}let r=n.getGui();this.tooltipComp=n,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");let a=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({eChild:r,ariaLabel:a("ariaLabelTooltip","Tooltip")});if(s&&(this.tooltipPopupDestroyFunc=s.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){let l=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:l,columnMoved:l})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(Fn(this.gos),{keydown:l=>{r.contains(l?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventService.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.parentComp.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){let t=this.tooltipComp?.getGui(),n=An(this.gos);return!!t&&t.contains(n)}onTooltipFocusOut(t){let n=this.parentComp.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,n.contains(t.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){let t={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent(ae(M({},t),{mouseEvent:this.lastMouseEvent})):this.popupService.positionPopupByComponent(ae(M({},t),{eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");let t=this.tooltipPopupDestroyFunc,n=this.tooltipComp,o=this.tooltipTrigger===0?HP:0;window.setTimeout(()=>{t(),this.destroyBean(n)},o),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(t=>{t&&t()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){lr.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},P1)}unlockService(){lr.isLocked=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};return e.isLocked=!1,e})(),UP=GP,Ag=class extends fe{constructor(e,i){super(),this.ctrl=e,i&&(this.beans=i)}wireBeans(e){this.beans=e}postConstruct(){this.refreshToolTip()}setBrowserTooltip(e){let i="title",t=this.ctrl.getGui();t&&(e!=null&&e!=""?t.setAttribute(i,e):t.removeAttribute(i))}updateTooltipText(){this.tooltip=this.ctrl.getTooltipValue()}createTooltipFeatureIfNeeded(){if(this.tooltipManager!=null)return;let e={getTooltipParams:()=>this.getTooltipParams(),getGui:()=>this.ctrl.getGui()};this.tooltipManager=this.createBean(new UP(e,this.ctrl.getTooltipShowDelayOverride?.(),this.ctrl.getTooltipHideDelayOverride?.(),this.ctrl.
1558shouldDisplayTooltip),this.beans.context)}refreshToolTip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context))):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}getTooltipParams(){let e=this.ctrl,i=e.getColumn?.(),t=e.getColDef?.(),n=e.getRowNode?.();return{location:e.getLocation(),colDef:t,column:i,rowIndex:e.getRowIndex?.(),node:n,data:n?.data,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?.(),hideTooltipCallback:()=>this.tooltipManager?.hideTooltip(!0)}}getTooltipText(){return this.tooltip}destroy(){this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)),super.destroy()}},jP=new Ys,We=null,gi=class u_ extends fe{constructor(i,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=jP.next(),this.cssClassManager=new bP(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(n=>[n.selector,n])),i&&this.setTemplate(i)}preWireBeans(i){super.preWireBeans(i)}preConstruct(){this.usingBrowserTooltips=this.gos.get("enableBrowserTooltips"),this.wireTemplate(this.getGui())}wireTemplate(i,t){i&&this.gos&&(this.applyElementsToComponent(i),this.createChildComponentsFromTags(i,t))}getCompId(){return this.compId}getTooltipParams(){return{value:this.tooltipText,location:"UNKNOWN"}}setTooltip(i){let{newTooltipText:t,showDelayOverride:n,hideDelayOverride:o,location:r,shouldDisplayTooltip:a}=i||{};this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.tooltipText!==t&&(this.tooltipText=t);let s=()=>this.tooltipText;t!=null&&(this.tooltipFeature=this.createBean(new Ag({getTooltipValue:s,getGui:()=>this.getGui(),getLocation:()=>r??"UNKNOWN",getColDef:i?.getColDef,getColumn:i?.getColumn,getTooltipShowDelayOverride:n!=null?()=>n:void 0,getTooltipHideDelayOverride:o!=null?()=>o:void 0,shouldDisplayTooltip:a})))}getDataRefAttribute(i){return i.getAttribute?i.getAttribute("data-ref"):null}applyElementsToComponent(i,t,n,o=null){if(t===void 0&&(t=this.getDataRefAttribute(i)),t){let r=this[t];if(r===We)this[t]=o??i;else{let a=n&&n[t];!this.suppressDataRefValidation&&!a&&X(`Issue with data-ref: ${t} on ${this.constructor.name} with ${r}`)}}}createChildComponentsFromTags(i,t){AP(i.childNodes).forEach(o=>{if(!(o instanceof HTMLElement))return;let r=this.createComponentFromElement(o,a=>{a.getGui()&&this.copyAttributesFromNode(o,a.getGui())},t);if(r){if(r.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);let a=Array.prototype.slice.call(o.children);r.addItems(a)}this.swapComponentForNode(r,i,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)})}createComponentFromElement(i,t,n){let o=i.nodeName,r=this.getDataRefAttribute(i),a=o.indexOf("AG-")===0,s=a?this.componentSelectors.get(o):null,l=null;if(s){u_.elementGettingCreated=i;let c=n&&r?n[r]:void 0;l=new s.component(c),l.setParentComponent(this),this.createBean(l,null,t)}else a&&X(`Missing selector: ${o}`);return this.applyElementsToComponent(i,r,n,l),l}copyAttributesFromNode(i,t){OP(i.attributes,(n,o)=>t.setAttribute(n,o))}swapComponentForNode(i,t,n){let o=i.getGui();t.replaceChild(o,n),t.insertBefore(document.createComment(n.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,i))}activateTabIndex(i){let t=this.gos.get("tabIndex");
1558i||(i=[]),i.length||i.push(this.getGui()),i.forEach(n=>n.setAttribute("tabindex",t.toString()))}setTemplate(i,t,n){let o=Pg(i);this.setTemplateFromElement(o,t,n)}setTemplateFromElement(i,t,n,o=!1){if(this.eGui=i,this.suppressDataRefValidation=o,t)for(let r=0;r<t.length;r++){let a=t[r];this.componentSelectors.set(a.selector,a)}this.wireTemplate(i,n)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(i){this.parentComponent=i}getParentComponent(){return this.parentComponent}setGui(i){this.eGui=i}queryForHtmlElement(i){return this.eGui.querySelector(i)}getContainerAndElement(i,t){let n=t;return i==null?null:(n||(n=this.eGui),Fg(i)?{element:i,parent:n}:{element:i.getGui(),parent:n})}prependChild(i,t){let{element:n,parent:o}=this.getContainerAndElement(i,t)||{};!n||!o||o.insertAdjacentElement("afterbegin",n)}appendChild(i,t){let{element:n,parent:o}=this.getContainerAndElement(i,t)||{};!n||!o||o.appendChild(n)}isDisplayed(){return this.displayed}setVisible(i,t={}){if(i!==this.visible){this.visible=i;let{skipAriaHidden:n}=t;MP(this.eGui,i,{skipAriaHidden:n})}}setDisplayed(i,t={}){if(i!==this.displayed){this.displayed=i;let{skipAriaHidden:n}=t;So(this.eGui,i,{skipAriaHidden:n});let o={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(o)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),super.destroy()}addGuiEventListener(i,t,n){this.eGui.addEventListener(i,t,n),this.addDestroyFunc(()=>this.eGui.removeEventListener(i,t))}addCssClass(i){this.cssClassManager.addCssClass(i)}removeCssClass(i){this.cssClassManager.removeCssClass(i)}containsCssClass(i){return this.cssClassManager.containsCssClass(i)}addOrRemoveCssClass(i,t){this.cssClassManager.addOrRemoveCssClass(i,t)}},p_={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",menuAlt:"menu-alt",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",checkboxChecked:"checkbox-checked",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off"},WP=(()=>{let e=new Set(Object.values(p_));return e.add("eye"),e})();function yo(e,i,t,n){let o=null,r=t&&t.getColDef().icons;if(r&&(o=r[e]),i&&!o){let a=i.get("icons");a&&(o=a[e])}if(o){let a;if(typeof o=="function")a=o();else if(typeof o=="string")a=o;else throw new Error("icon from grid options needs to be a string or a function");if(typeof a=="string")return Pg(a);if(Fg(a))return a;X("iconRenderer should return back a string or a dom object")}else{let a=document.createElement("span"),s=p_[e]??(WP.has(e)?e:void 0);return s||(n?s=e:(X(`Did not find icon ${e}`),s="")),a.setAttribute("class",`ag-icon ag-icon-${s}`),a.setAttribute("unselectable","on"),xo(a,"presentation"),a}}function As(e,i){return`<span data-ref="eSort${e}" class="ag-sort-indicator-icon ag-sort-${i} ag-hidden" aria-hidden="true"></span>`}var Xie=`<span class="ag-sort-indicator-container"> 1559 ${As("Order","order")} 1560 ${As("Asc","ascending-icon")} 1561 ${As("Desc","descending-icon")} 1562 ${As("Mixed","mixed-icon")} 1563 ${As("None","none-icon")} 1564 </span>`;var $=(()=>{let e=class{};return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.D="KeyD",e.V="KeyV",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ",e})(),$P=class extends gi{constructor(e,i,t){super(i,t),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{}}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");let{labelSeparator:e,label:i,labelWidth:t,labelAlignment:n,disabled:o}=this.config;o!=null&&this.setDisabled(o),e!=null&&this.setLabelSeparator(e),i!=null&&this.setLabel(i),t!=null&&this.setLabelWidth(t),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()}refreshLabel(){Ks(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?(So(this.eLabel,!1),xo(this.eLabel,"presentation")):(So(this.eLabel,!0),xo(this.eLabel,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){return this.eLabel.id=this.eLabel.id||`ag-${this.getCompId()}-label`,this.eLabel.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){let t=this.getGui().classList;return t.toggle("ag-label-align-left",e==="left"),t.toggle("ag-label-align-right",e==="right"),t.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(jd(this.eLabel,e),this)}setDisabled(e){e=!!e;let i=this.getGui();return $s(i,e),i.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},h_=class extends $P{constructor(e,i,t,n){super(e,i,t),this.className=n}
vendor: 2,023 bytes, lines 1564-1570
1564postConstruct(){super.postConstruct();let{width:e,value:i,onValueChange:t}=this.config;e!=null&&this.setWidth(e),i!=null&&this.setValue(i),t!=null&&this.onValueChange(t),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){let e=this.getAriaElement(),i=this.getLabelId(),t=this.getLabel();t==null||t==""||yP(e)!==null?fg(e,""):fg(e,i??"")}setAriaLabel(e){return Dg(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return Wd(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,i){return this.value===e?this:(this.previousValue=this.value,this.value=e,i||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},cr=class extends h_{constructor(e,i,t="text",n="input"){super(e,e?.template??` 1565 <div role="presentation"> 1566 <div data-ref="eLabel" class="ag-input-field-label"></div> 1567 <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation"> 1568 <${n} data-ref="eInput" class="ag-input-field-input"></${n}> 1569 </div> 1570 </div>`,[],i),this.inputType=t,this.displayFieldTag=n,this.eLabel=We,this.eWrapper=We,this.eInput=We}postConstruct(){super.postConstruct(),this.setInputType(),this.eLabel.classList.add(`${this.className}-label`),this.eWrapper.classList.add(`${this.className}-input-wrapper`),this.eInput.classList.add(`${this.className}-input`),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||`ag-${this.getCompId()}-input`;let{inputName:e,inputWidth:i}=this.config;e!=null&&this.setInputName(e),i!=null&&this.setInputWidth(i),this.addInputListeners(),this.activateTabIndex([this.eInput])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input
1570:e=>this.setValue(e.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return jd(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){let i=this.eInput;return i.maxLength=e,this}setInputPlaceholder(e){return ji(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Dg(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return $s(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)ji(this.eInput,"autocomplete",null);else{let i=typeof e=="string"?e:"off";ji(this.eInput,"autocomplete",i)}return this}},g_=class extends cr{constructor(e,i="ag-checkbox",t="checkbox"){super(e,i,t),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();let{readOnly:e,passive:i}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof i=="boolean"&&this.setPassive(i)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;let e=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,e):this.setValue(i)}getValue(){return this.isSelected()}setValue(e,i){return this.refreshSelectedClass(e),this.setSelected(e,i),this}setName(e){let i=this.getInputElement();return i.name=e,this}isSelected(){return this.selected}setSelected(e,i){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,i||this.dispatchChange(this.selected,this.previousValue))}dispatchChange(e,i,t){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:i,event:t});let n=this.getInputElement();this.eventService.dispatchEvent({type:"checkboxChanged",id:n.id,name:n.name,selected:e,previousValue:i})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;let i=this.isSelected(),t=this.selected=e.target.checked;this.refreshSelectedClass(t),this.dispatchChange(t,i,e)}refreshSelectedClass(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)}},m_={selector:"AG-CHECKBOX",component:g_};var Qs=class extends gi{isPopup(){return!0}setParentComponent(e){e.addCssClass("ag-has-popup"),super.setParentComponent(e)}destroy(){let e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}};function qP(e){let{inputValue:i,allSuggestions:t,hideIrrelevant:n,filterByPercentageOfBestMatch:o,addSequentialWeight:r}=e,a=t.map((c,u)=>({value:c,relevance:KP(i.toLowerCase(),c.toLocaleLowerCase(),r),idx:u}));if(a.sort((c,u)=>u.relevance-c.relevance),n&&(a=a.filter(c=>c.relevance!==0)),a.length>0&&o&&o>0){let u=a[0].relevance*o;a=a.filter(m=>u-m.relevance<0)}let s=[],l=[];for(let c of a)s.push(c.value),l.push(c.idx);return{values:s,indices:l}}function YP(e){let i=[],t=e.length;for(let n=1;n<=t;n++)for(let o=0;o<=t-n;o++){let r=o+n-1;i.push(e.slice(o,r+1))}return i}function KP(e,i,t=!1){let n=e.replace(/\s/g,""),o=i.replace(/\s/g,""),r=n.length,a=o.length,s=new Array(r+1).fill(null).map(()=>new Array(a+1).fill(0));for(let m=0;m<=r;m+=1)s[m][0]=m;for(let m=0;m<=a;m+=1)s[0][m]=m;for(let m=1;m<=r;m++)for(let v=1;v<=a;v++)n[m-1]===o[v-1]?s[m][v]=s[m-1][v-1]:s[m][v]=1+Math.min(s[m][v-1],Math.min(s[m-1][v],s[m-1][v-1]));let l=s[r][a],u=Math.max(r,a)-l;if(t){let m=YP(n);for(let v=0;v<m.length;v++){let C=m[v];o.indexOf(C)!==-1&&(u+=1,u*=C.length)}}return u}var cn=class Vs{constructor(i){this.status=0,this.resolution=null,this.waiters=[],i(t=>this.onDone(t),t=>this.onReject(t))}static all(i){return i.length?new Vs(t=>{let n=i.length,o=new Array(n);
1570i.forEach((r,a)=>{r.then(s=>{o[a]=s,n--,n===0&&t(o)})})}):Vs.resolve()}static resolve(i=null){return new Vs(t=>t(i))}then(i){return new Vs(t=>{this.status===1?t(i(this.resolution)):this.waiters.push(n=>t(i(n)))})}onDone(i){this.status=1,this.resolution=i,this.waiters.forEach(t=>t(i))}onReject(i){}},QP={propertyName:"dateComponent",cellRenderer:!1},ZP={propertyName:"dragAndDropImageComponent",cellRenderer:!1},JP={propertyName:"headerComponent",cellRenderer:!1},XP={propertyName:"headerGroupComponent",cellRenderer:!1},R1={propertyName:"cellRenderer",cellRenderer:!0},eR={propertyName:"cellRenderer",cellRenderer:!1},tR={propertyName:"loadingCellRenderer",cellRenderer:!0},iR={propertyName:"cellEditor",cellRenderer:!1},F1={propertyName:"innerRenderer",cellRenderer:!0},nR={propertyName:"loadingOverlayComponent",cellRenderer:!1},oR={propertyName:"noRowsOverlayComponent",cellRenderer:!1},rR={propertyName:"tooltipComponent",cellRenderer:!1},Og={propertyName:"filter",cellRenderer:!1},aR={propertyName:"floatingFilterComponent",cellRenderer:!1},sR={propertyName:"toolPanel",cellRenderer:!1},lR={propertyName:"statusPanel",cellRenderer:!1},cR={propertyName:"fullWidthCellRenderer",cellRenderer:!0},dR={propertyName:"loadingCellRenderer",cellRenderer:!0},uR={propertyName:"groupRowRenderer",cellRenderer:!0},pR={propertyName:"detailCellRenderer",cellRenderer:!0},hR={propertyName:"menuItem",cellRenderer:!1},gR=class f_ extends fe{constructor(){super(...arguments),this.beanName="userComponentFactory"}wireBeans(i){this.agComponentUtils=i.agComponentUtils,this.componentMetadataProvider=i.componentMetadataProvider,this.userComponentRegistry=i.userComponentRegistry,this.frameworkComponentWrapper=i.frameworkComponentWrapper,this.gridOptions=i.gridOptions}getDragAndDropImageCompDetails(i){return this.getCompDetails(this.gridOptions,ZP,"agDragAndDropImage",i,!0)}getHeaderCompDetails(i,t){return this.getCompDetails(i,JP,"agColumnHeader",t)}getHeaderGroupCompDetails(i){let t=i.columnGroup.getColGroupDef();return this.getCompDetails(t,XP,"agColumnGroupHeader",i)}getFullWidthCellRendererDetails(i){return this.getCompDetails(this.gridOptions,cR,null,i,!0)}getFullWidthLoadingCellRendererDetails(i){return this.getCompDetails(this.gridOptions,dR,"agLoadingCellRenderer",i,!0)}getFullWidthGroupCellRendererDetails(i){return this.getCompDetails(this.gridOptions,uR,"agGroupRowRenderer",i,!0)}getFullWidthDetailCellRendererDetails(i){return this.getCompDetails(this.gridOptions,pR,"agDetailCellRenderer",i,!0)}getInnerRendererDetails(i,t){return this.getCompDetails(i,F1,null,t)}getFullWidthGroupRowInnerCellRenderer(i,t){return this.getCompDetails(i,F1,null,t)}getCellRendererDetails(i,t){return this.getCompDetails(i,R1,null,t)}getEditorRendererDetails(i,t){return this.getCompDetails(i,eR,null,t)}getLoadingCellRendererDetails(i,t){return this.getCompDetails(i,tR,"agSkeletonCellRenderer",t,!0)}getCellEditorDetails(i,t){return this.getCompDetails(i,iR,"agCellEditor",t,!0)}getFilterDetails(i,t,n){return this.getCompDetails(i,Og,n,t,!0)}getDateCompDetails(i){return this.getCompDetails(this.gridOptions,QP,"agDateInput",i,!0)}getLoadingOverlayCompDetails(i){return this.getCompDetails(this.gridOptions,nR,"agLoadingOverlay",i,!0)}getNoRowsOverlayCompDetails(i){return this.getCompDetails(this.gridOptions,oR,"agNoRowsOverlay",i,!0)}getTooltipCompDetails(i){return this.getCompDetails(i.colDef,rR,"agTooltipComponent",i,!0)}getSetFilterCellRendererDetails(i,t){return this.getCompDetails(i,R1,null,t)}getFloatingFilterCompDetails(i,t,n){return this.getCompDetails(i,aR,n,t)}getToolPanelCompDetails(i,t){return this.getCompDetails(i,sR,null,t,!0)}getStatusPanelCompDetails(i,t){return this.getCompDetails(i,lR,null,t,!0)}getMenuItemCompDetails(i,t){return this.getCompDetails(i,hR,"agMenuItem",t,!0)}getCompDetails(i,t,n,o,r=!1){let{propertyName:a,cellRenderer:s}=t,{compName:l,jsComp:c,fwComp:u,paramsFromSelector:m,popupFromSelector:v,popupPositionFromSelector:C}=f_.getCompKeys(this.frameworkOverrides,i,t,o),_,E=O=>{let K=this.userComponentRegistry.retrieve(a,O);K&&(c=K.componentFromFramework?void 0:K.component,u=K.componentFromFramework?K.component:void 0,_=K.params)};if(l!=null&&E(l),c==null&&u==null&&n!=null&&E(n),c&&s&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(a,c)),!c&&!u){r&&Xe(`Could not find component ${l}, did you forget to configure this component?`);return}
1570let D=this.mergeParamsWithApplicationProvidedParams(i,t,o,m,_),P=c==null,T=c||u;return{componentFromFramework:P,componentClass:T,params:D,type:t,popupFromSelector:v,popupPositionFromSelector:C,newAgStackInstance:()=>this.newAgStackInstance(T,P,D,t)}}static getCompKeys(i,t,n,o){let{propertyName:r}=n,a,s,l,c,u,m;if(t){let v=t,C=v[r+"Selector"],_=C?C(o):null,E=D=>{typeof D=="string"?a=D:D!=null&&D!==!0&&(i.isFrameworkComponent(D)?l=D:s=D)};_?(E(_.component),c=_.params,u=_.popup,m=_.popupPosition):E(v[r])}return{compName:a,jsComp:s,fwComp:l,paramsFromSelector:c,popupFromSelector:u,popupPositionFromSelector:m}}newAgStackInstance(i,t,n,o){let r=o.propertyName,a=!t,s;if(a)s=new i;else{let c=this.componentMetadataProvider.retrieve(r);s=this.frameworkComponentWrapper.wrap(i,c.mandatoryMethodList,c.optionalMethodList,o)}let l=this.initComponent(s,n);return l==null?cn.resolve(s):l.then(()=>s)}mergeParamsWithApplicationProvidedParams(i,t,n,o=null,r){let a=this.gos.getGridCommonParams();_o(a,n),r&&_o(a,r);let s=i,l=s&&s[t.propertyName+"Params"];if(typeof l=="function"){let c=l(n);_o(a,c)}else typeof l=="object"&&_o(a,l);return _o(a,o),a}initComponent(i,t){if(this.createBean(i),i.init!=null)return i.init(t)}};function Bs(e){let i=e;return i!=null&&i.getFrameworkComponentInstance!=null?i.getFrameworkComponentInstance():e}var mR=(()=>{let e=class Ne{static register(t){Ne.__register(t,!0,void 0)}static registerModules(t){Ne.__registerModules(t,!0,void 0)}static __register(t,n,o){Ne.runVersionChecks(t),o!==void 0?(Ne.areGridScopedModules=!0,Ne.gridModulesMap[o]===void 0&&(Ne.gridModulesMap[o]={}),Ne.gridModulesMap[o][t.moduleName]=t):Ne.globalModulesMap[t.moduleName]=t,Ne.setModuleBased(n)}static __unRegisterGridModules(t){delete Ne.gridModulesMap[t]}static __registerModules(t,n,o){Ne.setModuleBased(n),t&&t.forEach(r=>Ne.__register(r,n,o))}static isValidModuleVersion(t){let[n,o]=t.version.split(".")||[],[r,a]=Ne.currentModuleVersion.split(".")||[];return n===r&&o===a}static runVersionChecks(t){Ne.currentModuleVersion||(Ne.currentModuleVersion=t.version);let n=o=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${o} Please update all modules to the same version.`;if(t.version?Ne.isValidModuleVersion(t)||Xe(n(`'${t.moduleName}' is version ${t.version} but the other modules are version ${Ne.currentModuleVersion}.`)):Xe(n(`'${t.moduleName}' is incompatible.`)),t.validate){let o=t.validate();o.isValid||Xe(`${o.message}`)}}static setModuleBased(t){Ne.moduleBased===void 0?Ne.moduleBased=t:Ne.moduleBased!==t&&(Xe("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community)
1570- you can only use one or the other of these mechanisms."),Xe("Please see https://www.ag-grid.com/javascript-grid/modules/ for more information."))}static __setIsBundled(){Ne.isBundled=!0}static __assertRegistered(t,n,o){if(this.__isRegistered(t,o))return!0;let r;if(Ne.isBundled)r=`AG Grid: unable to use ${n} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle: 1571 1572 <script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script> 1573 1574For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(Ne.moduleBased||Ne.moduleBased===void 0){let a=Object.entries(H1).find(([s,l])=>l===t)?.[0];r=`AG Grid: unable to use ${n} as the ${a} is not registered${Ne.areGridScopedModules?` for gridId: ${o}`:""}. Check if you have registered the module: 1575 1576 import { ModuleRegistry } from '@ag-grid-community/core'; 1577 import { ${a} } from '${t}'; 1578 1579 ModuleRegistry.registerModules([ ${a} ]); 1580 1581For more info see: https://www.ag-grid.com/javascript-grid/modules/`}else r=`AG Grid: unable to use ${n} as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package: 1582 1583 import 'ag-grid-enterprise';`;return Xe(r),!1}static __isRegistered(t,n){return!!Ne.globalModulesMap[t]||!!Ne.gridModulesMap[n]?.[t]}static __getRegisteredModules(t){return[...Jh(Ne.globalModulesMap),...Jh(Ne.gridModulesMap[t]||{})]}static __getGridRegisteredModules(t){return Jh(Ne.gridModulesMap[t]??{})||[]}static __isPackageBased(){return!Ne.moduleBased}};return e.globalModulesMap={},e.gridModulesMap={},e.areGridScopedModules=!1,e})(),fR=mR;var v_=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(v_||{});var vR=class extends gi{constructor(e,i,t,n,o,r){super(),this.cellValueFn=e,this.rowNode=i,this.column=t,this.customGui=n,this.dragStartPixels=o,this.suppressVisibilityChange=r,this.dragSource=null}wireBeans(e){this.beans=e}isCustomGui(){return this.customGui!=null}postConstruct(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(yo("rowDrag",this.gos,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){let e=this.gos.get("rowDragManaged")?new bR(this,this.beans,this.rowNode,this.column):new CR(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}}setDragElement(e,i){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(i)}getSelectedNodes(){if(!this.gos.get("rowDragMultiRow"))return[this.rowNode];let i=this.beans.selectionService.getSelectedNodes();return i.indexOf(this.rowNode)!==-1?i:[this.rowNode]}checkCompatibility(){let e=this.gos.get("rowDragManaged");this.gos.get("treeData")&&e&&X("If using row drag with tree data, you cannot have rowDragManaged=true")}getDragItem(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){let i=e.getColDef();if(i.rowDragText)return i.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){this.dragSource&&this.removeDragSource();let i=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(i,{mousedown:n=>{n?.preventDefault()}})[0]);let t=this.localeService.getLocaleTextFunc();this.dragSource={type:2,eElement:i,dragItemName:()=>{let n=this.getDragItem(),o=n.rowNodes?.length||1,r=this.getRowDragText(this.column);return r?r(n,o):o===1?this.cellValueFn():`${o} ${t("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},C_=class extends fe{constructor(e,i,t){super(),this.parent=e,this.rowNode=i,this.column=t}
1583setDisplayedOrVisible(e){let i={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,i);else{let t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=U1(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0,i),this.parent.setVisible(t,i)):(this.parent.setDisplayed(t,i),this.parent.setVisible(!0,i))}}},CR=class extends C_{constructor(e,i,t,n){super(e,t,n),this.beans=i}postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));let e=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedListeners(this.beans.eventService,{newColumnsLoaded:e}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let e=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(e)}},bR=class extends C_{constructor(e,i,t,n){super(e,t,n),this.beans=i}postConstruct(){let e=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventService,{sortChanged:e,filterChanged:e,columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let i=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=i&&i.shouldPreventRowMove(),n=this.gos.get("suppressRowDrag"),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)}},_R=new Set(["localEventService","__objectId","sticky","__autoHeights","checkAutoHeightsDebounced"]),yR=(()=>{let e=class bo{constructor(t){this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=bo.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=t}setData(t){this.setDataCommon(t,!1)}updateData(t){this.setDataCommon(t,!0)}setDataCommon(t,n){let o=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();let r=this.createDataChangedEvent(t,o,n);this.localEventService?.dispatchEvent(r)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(t,n,o){return{type:"dataChanged",node:this,oldData:n,newData:t,update:o}}getRowIndexString(){return this.rowIndex==null?(Xe("Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid."),null):this.rowPinned==="top"?bo.ID_PREFIX_TOP_PINNED+this.rowIndex:this.rowPinned==="bottom"?bo.ID_PREFIX_BOTTOM_PINNED+this.rowIndex:this.rowIndex.toString()}createDaemonNode(){let t=new bo(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t}setDataAndId(t,n){let o=le(this.id)?this.createDaemonNode():null,r=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(n),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,o);let a=this.createDataChangedEvent(t,r,!1);this.localEventService?.dispatchEvent(a)}checkRowSelectable(){let t=Y1(this.beans.gos);this.setRowSelectable(t?t(this):!0)}setRowSelectable(t,n){if(this.selectable!==t){if(this.selectable=t,this.dispatchRowEvent("selectableChanged"),n)return;if(gg(this.beans.gos)){let r=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:r??!1,source:"selectableChanged"});return}this.isSelected()&&!this.selectable&&this.setSelectedParams({newValue:!1,source:"selectableChanged"})}}setId(t){let n=Yd(this.beans.gos);if(n)if(this.data){let o=this.parent?.getRoute()??[];this.id=n({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(bo.ID_PREFIX_ROW_GROUP)&&Xe(`Row IDs cannot start with ${bo.ID_PREFIX_ROW_GROUP}, this is a reserved prefix for AG Grid's row grouping feature.`)}else this.id=void 0;else this.id=t}setRowTop(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.dispatchRowEvent("topChanged"),this.setDisplayed(t!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(t){this.hovered=t}isHovered(){return this.hovered}setMaster(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.dispatchRowEvent("masterChanged"))}setGroup(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.checkRowSelectable(),this.dispatchRowEvent("groupChanged"))}setRowHeight(t,n=!1){this.rowHeight=t,this.rowHeightEstimated=n,this.dispatchRowEvent("heightChanged")}setRowAutoHeight(t,n){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[n.getId()]=t,t!=null&&(this.checkAutoHeightsDebounced==null&&(this.checkAutoHeightsDebounced=dn(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())}checkAutoHeights(){let t=!1,n=!0,o=0,r=this.__autoHeights;if(r==null||(this.beans.visibleColsService.getAllAutoHeightCols().forEac
1583h(l=>{let c=r[l.getId()];if(c==null)if(this.beans.columnModel.isColSpanActive()){let u=[];switch(l.getPinned()){case"left":u=this.beans.visibleColsService.getLeftColsForRow(this);break;case"right":u=this.beans.visibleColsService.getRightColsForRow(this);break;case null:u=this.beans.columnViewportService.getColsWithinViewport(this);break}if(u.includes(l)){t=!0;return}c=-1}else{t=!0;return}else n=!1;c>o&&(o=c)}),t)||((n||o<10)&&(o=Gd(this.beans.gos,this).height),o==this.rowHeight))return;this.setRowHeight(o),this.beans.rowModel.onRowHeightChangedDebounced?.()}setExpanded(t,n,o){if(this.expanded===t)return;this.expanded=t,this.dispatchRowEvent("expandedChanged");let r=ae(M({},this.createGlobalRowEvent("rowGroupOpened")),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r,o),this.beans.rowRenderer.refreshCells({rowNodes:[this]})}createGlobalRowEvent(t){return this.beans.gos.addGridCommonParams({type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})}setDataValue(t,n,o){let a=typeof t!="string"?t:this.beans.columnModel.getCol(t)??this.beans.columnModel.getColDefCol(t),s=this.beans.valueService.getValueForDisplay(a,this);if(this.beans.gos.get("readOnlyEdit"))return this.beans.eventService.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:a,colDef:a.getColDef(),data:this.data,node:this,oldValue:s,newValue:n,value:n,source:o}),!1;let l=this.beans.valueService.setValue(this,a,n,o);return this.dispatchCellChangedEvent(a,n,s),this.checkRowSelectable(),l}setGroupValue(t,n){let o=this.beans.columnModel.getCol(t);Rt(this.groupData)&&(this.groupData={});let r=o.getColId(),a=this.groupData[r];a!==n&&(this.groupData[r]=n,this.dispatchCellChangedEvent(o,n,a))}setAggData(t){let n=this.aggData;if(this.aggData=t,this.localEventService){let o=r=>{let a=this.aggData?this.aggData[r]:void 0,s=n?n[r]:void 0;if(a===s)return;let l=this.beans.columnModel.getCol(r);l&&this.dispatchCellChangedEvent(l,a,s)};for(let r in n)o(r);for(let r in t)(!n||!(r in n))&&o(r)}}updateHasChildren(){let t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(qd(this.beans.gos)){let o=this.beans.gos.get("treeData"),r=this.beans.gos.get("isServerSideGroup");t=!this.stub&&!this.footer&&(o?!!r&&r(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(t,n,o){let r={type:"cellChanged",node:this,column:t,newValue:n,oldValue:o};this.localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.footer?!1:this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master}isSelected(){return this.footer?this.sibling.isSelected():this.selected}depthFirstSearch(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(n=>n.depthFirstSearch(t)),t(this)}calculateSelectedFromChildren(){let t=!1,n=!1;if(!this.childrenAfterGroup?.length)return this.selectable?this.selected:null;for(let o=0;o<this.childrenAfterGroup.length;o++){let r=this.childrenAfterGroup[o],a=r.isSelected();if(!r.selectable){let s=r.calculateSelectedFromChildren();if(s===null)continue;a=s}switch(a){case!0:t=!0;break;case!1:n=!0;break;default:return}}if(!(t&&n))return t?!0:n?!1:this.selectable?this.selected:null}setSelectedInitialValue(t){this.selected=t}dispatchRowEvent(t){this.localEventService?.dispatchEvent({type:t,node:this})}selectThisNode(t,n,o="api"){let r=!this.selectable&&t,a=this.selected===t;if(r||a)return!1;this.selected=t,this.dispatchRowEvent("rowSelected");let s=this.sibling;return s&&s.footer&&s.localEventService&&s.dispatchRowEvent("rowSelected"),this.beans.eventService.dispatchEvent(ae(M({},this.createGlobalRowEvent("rowSelected")),{event:n||null,source:o})),!0}setSelected(t,n=!1,o="api"){if(typeof o=="boolean"){X("since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.");return}this.setSelectedParams({newValue:t,clearSelection:n,rangeSelect:!1,source:o})}setSelectedParams(t){return this.rowPinned?(X("cannot select pinned rows"),0):this.id===void 0?(X("cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected(ae(M({},t),{nodes:[this.footer?this.sibling:this]}
vendor: 7,881 bytes, line 1583
1583))}isRowPinned(){return!!this.rowPinned}addEventListener(t,n){this.localEventService||(this.localEventService=new yg),this.beans.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.localEventService.setFrameworkOverrides(this.beans.frameworkOverrides),this.frameworkEventListenerService=new X1(this.beans.frameworkOverrides));let o=this.frameworkEventListenerService?.wrap(t,n)??n;this.localEventService.addEventListener(t,o)}removeEventListener(t,n){if(!this.localEventService)return;let o=this.frameworkEventListenerService?.unwrap(t,n)??n;this.localEventService.removeEventListener(t,o),this.localEventService.noRegisteredListenersExist()&&(this.localEventService=null)}onMouseEnter(){this.dispatchRowEvent("mouseEnter")}onMouseLeave(){this.dispatchRowEvent("mouseLeave")}isFullWidthCell(){if(X("since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option."),this.detail)return!0;let t=this.beans.gos.getCallback("isFullWidthRow");return t?t({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;let t=[],n=this;for(;n&&n.key!=null;)t.push(n.key),n=n.parent;return t.reverse()}createFooter(){if(this.sibling)return;let t=new bo(this.beans);Object.keys(this).forEach(n=>{_R.has(n)||(t[n]=this[n])}),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,t.id="rowGroupFooter_"+this.id,t.sibling=this,this.sibling=t}destroyFooter(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)}setFirstChild(t){this.firstChild!==t&&(this.firstChild=t,this.dispatchRowEvent("firstChildChanged"))}setLastChild(t){this.lastChild!==t&&(this.lastChild=t,this.dispatchRowEvent("lastChildChanged"))}setChildIndex(t){this.childIndex!==t&&(this.childIndex=t,this.dispatchRowEvent("childIndexChanged"))}setDisplayed(t){this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}setDragging(t){this.dragging!==t&&(this.dragging=t,this.dispatchRowEvent("draggingChanged"))}setHighlighted(t){this.highlighted!==t&&(this.highlighted=t,this.dispatchRowEvent("rowHighlightChanged"))}setAllChildrenCount(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.dispatchRowEvent("allChildrenCountChanged"))}setRowIndex(t){this.rowIndex!==t&&(this.rowIndex=t,this.dispatchRowEvent("rowIndexChanged"))}setUiLevel(t){this.uiLevel!==t&&(this.uiLevel=t,this.dispatchRowEvent("uiLevelChanged"))}};return e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e})(),ga=yR,wR=class extends fe{constructor(){super(...arguments),this.beanName="filterManager",this.advancedFilterModelUpdateQueue=[]}wireBeans(e){this.columnModel=e.columnModel,this.dataTypeService=e.dataTypeService,this.quickFilterService=e.quickFilterService,this.advancedFilterService=e.advancedFilterService,this.columnFilterService=e.columnFilterService}postConstruct(){let e=this.refreshFiltersForAggregations.bind(this),i=this.updateAdvancedFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:i,columnVisible:i,advancedFilterEnabledChanged:({enabled:t})=>this.onAdvancedFilterEnabledChanged(t),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.addManagedPropertyListener("advancedFilterModel",t=>this.setAdvancedFilterModel(t.currentValue)),this.quickFilterService&&this.addManagedListeners(this.quickFilterService,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})})}isExternalFilterPresentCallback(){let e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1}doesExternalFilterPass(e){let i=this.gos.get("doesExternalFilterPass");return typeof i=="function"?i(e):!1}setFilterModel(e,i="api"){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}this.columnFilterService?.setFilterModel(e,i)}getFilterModel(){return this.columnFilterService?.getFilterModel()??{}}isColumnFilterPresent(){return!!this.columnFilterService?.isColumnFilterPresent()}isAggregateFilterPresent(){return!!this.columnFilterService?.isAggregateFilterPresent()}isExternalFilterPresent(){return this.externalFilterPresent}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}isAdvancedFilterPresent(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()}onAdvancedFilterEnabledChanged(e){e?this.columnFilterService?.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilterService?.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvancedFilterEnabled(){return!!this.advancedFilterService?.isEnabled()}isAdvancedFilterHeaderActive(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()}isAnyFilterPresent(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}resetQuickFilterCache(){this.quickFilterService?.resetQuickFilterCache()}refreshFiltersForAggregations(){hg(this.gos)&&this.onFilterChanged()}onFilterChanged(e={}){let{source:i,additionalEventAttributes:t,columns:n=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.columnFilterService?this.columnFilterService.updateBeforeFilterChanged(e):cn.resolve()).then(()=>{let o={source:i,type:"filterChanged",columns:n};t&&_o(o,t),this.eventService.dispatchEvent(o),this.columnFilterService?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.columnFilterService?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilterService?.isQuickFilterPresent()}updateAggFiltering(){this.aggFiltering=!!hg(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.columnModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,i){return this.doesRowPassFilter({rowNode:i,filterInstanceToSkip:e})}doesRowPassAggregateFilters(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isAggregateFilterPresent()&&!this.columnFilterService.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))}doesRowPassFilter(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.columnFilterService.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)||this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))}isFilterActive(e){return!!this.columnFilterService?.isFilterActive(e)}getOrCreateFilterWrapper(e){return this.columnFilterService?.getOrCreateFilterWrapper(e)??null}getDefaultFloatingFilter(e){return this.columnFilterService.getDefaultFloatingFilter(e)}createFilterParams(e,i){return this.columnFilterService.createFilterParams(e,i)}isFilterAllowed(e){return this.isAdvancedFilterEnabled()?!1:!!this.columnFilterService?.isFilterAllowed(e)}
1583getFloatingFilterCompDetails(e,i){return this.columnFilterService?.getFloatingFilterCompDetails(e,i)}getCurrentFloatingFilterParentModel(e){return this.columnFilterService?.getCurrentFloatingFilterParentModel(e)}destroyFilter(e,i="api"){this.columnFilterService?.destroyFilter(e,i)}areFilterCompsDifferent(e,i){return!!this.columnFilterService?.areFilterCompsDifferent(e,i)}getAdvancedFilterModel(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null}setAdvancedFilterModel(e){if(this.isAdvancedFilterEnabled()){if(this.dataTypeService?.isPendingInference()){this.advancedFilterModelUpdateQueue.push(e);return}this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"})}}toggleAdvancedFilterBuilder(e,i){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder({source:i,force:e})}updateAdvancedFilterColumns(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvancedFilterEnabled()?!1:!!this.columnFilterService?.hasFloatingFilters()}getFilterInstance(e,i){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}return this.columnFilterService?.getFilterInstance(e,i)}getColumnFilterInstance(e){return this.isAdvancedFilterEnabled()?(this.warnAdvancedFilters(),Promise.resolve(void 0)):this.columnFilterService?.getColumnFilterInstance(e)??Promise.resolve(void 0)}warnAdvancedFilters(){X("Column Filter API methods have been disabled as Advanced Filters are enabled.")}setupAdvancedFilterHeaderComp(e){this.advancedFilterService?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvancedFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advancedFilterModelUpdateQueue.forEach(e=>this.setAdvancedFilterModel(e)),this.advancedFilterModelUpdateQueue=[]}getColumnFilterModel(e){return this.columnFilterService?.getColumnFilterModel(e)}setColumnFilterModel(e,i){return this.isAdvancedFilterEnabled()?(this.warnAdvancedFilters(),Promise.resolve()):this.columnFilterService?.setColumnFilterModel(e,i)??Promise.resolve()}setColDefPropertiesForDataType(e,i,t){this.columnFilterService?.setColDefPropertiesForDataType(e,i,t)}};var b_="ag-resizer-wrapper",vo=(e,i)=>`<div data-ref="${e}Resizer" class="ag-resizer ag-resizer-${i}"></div>`,xR=`<div class="${b_}"> 1584 ${vo("eTopLeft","topLeft")} 1585 ${vo("eTop","top")} 1586 ${vo("eTopRight","topRight")} 1587 ${vo("eRight","right")} 1588 ${vo("eBottomRight","bottomRight")} 1589 ${vo("eBottom","bottom")} 1590 ${vo("eBottomLeft","bottomLeft")} 1591 ${vo("eLeft","left")} 1592 </div>`,SR=class extends fe{constructor(e,i){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},i)}wireBeans(e){this.popupService=e.popupService,this.resizeObserverService=e.resizeObserverService,this.dragService=e.dragService}center(){let{clientHeight:e,clientWidth:i}=this.offsetParent,t=i/2-this.getWidth()/2,n=e/2-this.getHeight()/2;this.offsetElement(t,n)}initialisePosition(){if(this.positioned)return;let{centered:e,forcePopupParentAsOffsetParent:i,minWidth:t,width:n,minHeight:o,height:r,x:a,y:s}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0,u=Ud(this.element);if(u){let m=this.findBoundaryElement(),v=window.getComputedStyle(m);if(v.minWidth!=null){let C=m.offsetWidth-this.element.offsetWidth;c=parseInt(v.minWidth,10)-C}if(v.minHeight!=null){let C=m.offsetHeight-this.element.offsetHeight;l=parseInt(v.minHeight,10)-C}}if(this.minHeight=o||l,this.minWidth=t||c,n&&this.setWidth(n),r&&this.setHeight(r),(!n||!r)&&this.refreshSize(),e)this.center();else if(a||s)this.offsetElement(a,s);else if(u&&i){let m=this.boundaryEl,v=!0;
1592if(m||(m=this.findBoundaryElement(),v=!1),m){let C=parseFloat(m.style.top),_=parseFloat(m.style.left);v?this.offsetElement(isNaN(_)?0:_,isNaN(C)?0:C):this.setPosition(_,C)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,i){if(!this.config.popup||e===this.movable)return;this.movable=e;let t=this.moveElementDragListener||{eElement:i,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(i=>{let n=!!e[i],o=this.getResizerElement(i),r={dragStartPixels:0,eElement:o,onDragStart:a=>this.onResizeStart(a,i),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,i)};(n||!this.isAlive()&&!n)&&(n?(this.dragService.addDragSource(r),this.resizeListeners.push(r),o.style.pointerEvents="all"):o.style.pointerEvents="none",this.resizable[i]=n)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";let{height:e,width:i}=this.lastSize;i!==-1&&(this.element.style.width=`${i}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){let{popup:i}=this.config,t=this.element,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)D1(t,e),e=RP(t),n=!0;else if(e=Math.max(this.minHeight,e),this.positioned){let o=this.getAvailableHeight();o&&e>o&&(e=o)}this.getHeight()!==e&&(n?(t.style.maxHeight="unset",t.style.minHeight="unset"):i?D1(t,e):(t.style.height=`${e}px`,t.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){let{popup:e,forcePopupParentAsOffsetParent:i}=this.config;this.positioned||this.initialisePosition();let{clientHeight:t}=this.offsetParent;if(!t)return null;let n=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),r=e?this.position.y:n.top,a=e?0:o.top,s=0;if(i){let c=this.element.parentElement;if(c){let{bottom:u}=c.getBoundingClientRect();s=u-n.bottom}}return t+a-r-s}getWidth(){return this.element.offsetWidth}setWidth(e){let i=this.element,{popup:t}=this.config,n=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Wd(i,e),e=Cg(i),n=!0;else if(this.positioned){e=Math.max(this.minWidth,e);let{clientWidth:o}=this.offsetParent,r=t?this.position.x:this.element.getBoundingClientRect().left;o&&e+r>o&&(e=o-r)}this.getWidth()!==e&&(n?(i.style.maxWidth="unset",i.style.minWidth="unset"):this.config.popup?Wd(i,e):(i.style.width=`${e}px`,i.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,i=0){let{forcePopupParentAsOffsetParent:t}=this.config,n=t?this.boundaryEl:this.element;n&&(this.popupService.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:i})}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;let i=()=>{let t=this.getAvailableHeight();this.element.style.setProperty("max-height",`${t}px`)};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),i):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,i){this.position.x=e,this.position.y=i}updateDragStartPosition(e,i){this.dragStartPosition={x:e,y:i}}calculateMouseMovement(e){let{e:i,isLeft:t,isTop:n,anywhereWithin:o,topBuffer:r}=e,a=i.clientX-this.dragStartPosition.x,s=i.clientY-this.dragStartPosition.y,l=this.shouldSkipX(i,!!t,!!o,a)?0:a,c=this.shouldSkipY(i,!!n,r,s)?0:s;return{movementX:l,movementY:c}}shouldSkipX(e,i,t,n){let o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:o.left,l=s<=0&&r.left>=e.clientX||r.right<=e.clientX&&r.right<=a.right;return l?!0:(i?l=n<0&&e.clientX>s+r.left||n>0&&e.clientX<s+r.left:t?l=n<0&&e.clientX>a.right||n>0&&e.clientX<s+r.left:l=n<0&&e.clientX>a.right||n>0&&e.clientX<a.right,l)}shouldSkipY(e,i,t=0,n){let o=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:o.top,l=s<=0&&r.top>=e.clientY||r.bottom<=e.clientY&&r.bottom<=a.bottom;return l?!0:(i?l=n<0&&e.clientY>s+r.top+t||n>
15920&&e.clientY<s+r.top:l=n<0&&e.clientY>a.bottom||n>0&&e.clientY<a.bottom,l)}createResizeMap(){let e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[data-ref=eTopLeftResizer]")},top:{element:e.querySelector("[data-ref=eTopResizer]")},topRight:{element:e.querySelector("[data-ref=eTopRightResizer]")},right:{element:e.querySelector("[data-ref=eRightResizer]")},bottomRight:{element:e.querySelector("[data-ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[data-ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[data-ref=eBottomLeftResizer]")},left:{element:e.querySelector("[data-ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;let e=this.element;if(!e)return;let t=new DOMParser().parseFromString(xR,"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;let e=this.element.querySelector(`.${b_}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!i.match(/top/i),isRight:!!i.match(/right/i),isBottom:!!i.match(/bottom/i),isLeft:!!i.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[i].element.classList.add("ag-active");let{popup:t,forcePopupParentAsOffsetParent:n}=this.config;!t&&!n&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){let i=this.element.parentElement;return i?Array.prototype.slice.call(i.children).filter(t=>!t.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){let e=this.getSiblings()||[],i=0,t=0;for(let n=0;n<e.length;n++){let o=e[n],r=!!o.style.flex&&o.style.flex!=="0 0 auto";if(o===this.element)continue;let a=this.minHeight||0,s=this.minWidth||0;if(r){let l=window.getComputedStyle(o);l.minHeight&&(a=parseInt(l.minHeight,10)),l.minWidth&&(s=parseInt(l.minWidth,10))}else a=o.offsetHeight,s=o.offsetWidth;i+=a,t+=s}return{height:i,width:t}}
1592applySizeToSiblings(e){let i=null,t=this.getSiblings();if(t){for(let n=0;n<t.length;n++){let o=t[n];o!==i&&(e?o.style.height=`${o.offsetHeight}px`:o.style.width=`${o.offsetWidth}px`,o.style.flex="0 0 auto",o===this.element&&(i=t[n+1]))}i&&(i.style.removeProperty("height"),i.style.removeProperty("min-height"),i.style.removeProperty("max-height"),i.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;let{popup:i,forcePopupParentAsOffsetParent:t}=this.config,{isTop:n,isRight:o,isBottom:r,isLeft:a}=this.currentResizer,s=o||a,l=r||n,{movementX:c,movementY:u}=this.calculateMouseMovement({e,isLeft:a,isTop:n}),m=this.position.x,v=this.position.y,C=0,_=0;if(s&&c){let E=a?-1:1,D=this.getWidth(),P=D+c*E,T=!1;a&&(C=D-P,(m+C<=0||P<=this.minWidth)&&(T=!0,C=0)),T||this.setWidth(P)}if(l&&u){let E=n?-1:1,D=this.getHeight(),P=D+u*E,T=!1;n?(_=D-P,(v+_<=0||P<=this.minHeight)&&(T=!0,_=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&D<P&&this.getMinSizeOfSiblings().height+P>this.element.parentElement.offsetHeight&&(T=!0),T||this.setHeight(P)}this.updateDragStartPosition(e.clientX,e.clientY),((i||t)&&C||_)&&this.offsetElement(m+C,v+_)}onResizeEnd(e,i){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[i].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){let e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;let{x:i,y:t}=this.position,n;this.config.calculateTopBuffer&&(n=this.config.calculateTopBuffer());let{movementX:o,movementY:r}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:n});this.offsetElement(i+o,t+r),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){let e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},kR=(()=>{let e=class __ extends fe{constructor(t,n={}){super(),this.eFocusableElement=t,this.callbacks=n,this.callbacks=M({shouldStopEventPropagation:()=>!1,onTabKeyDown:o=>{if(o.defaultPrevented)return;let r=this.focusService.findNextFocusableElement(this.eFocusableElement,!1,o.shiftKey);r&&(r.focus(),o.preventDefault())}},n)}wireBeans(t){this.focusService=t.focusService}postConstruct(){this.eFocusableElement.classList.add(__.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedElementListeners(this.eFocusableElement,{focusin:this.callbacks.onFocusIn}),this.callbacks.onFocusOut&&this.addManagedElementListeners(this.eFocusableElement,{focusout:this.callbacks.onFocusOut})}addKeyDownListeners(t){this.addManagedElementListeners(t,{keydown:n=>{if(!(n.defaultPrevented||J1(n))){if(this.callbacks.shouldStopEventPropagation(n)){mg(n);return}n.key===$.TAB?this.callbacks.onTabKeyDown(n):this.callbacks.handleKeyDown&&this.callbacks.handleKeyDown(n)}}})}};return e.FOCUS_MANAGED_CLASS="ag-focus-managed",e})(),Lg=kR,y_={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function Ng(e,i){return $d(e)?(e.debounceMs!=null&&X("debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:i}function $d(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0}var ER=class extends gi{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=We,this.buttonListeners=[]}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.resetTemplate(),this.createManagedBean(new Lg(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new SR(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit);let t=` 1593 <form class="ag-filter-wrapper"> 1594 <div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody"> 1595 ${this.createBodyTemplate()} 1596 </div> 1597 </form>`;this.setTemplate(t,this.getAgComponents(),e),i=this.getGui(),i&&i.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.providedFilterParams.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.providedFilterParams=e,this.applyActive=$d(e),this.resetButtonsPanel(e)}updateParams(e){this.providedFilterParams=e,this.applyActive=$d(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,i){let{buttons:t,readOnly:n}=i??{},{buttons:o,readOnly:r}=e;if(n===r&&Us(t,o))return;let a=o&&o.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Ks(this.eButtonsPanel),this.buttonListeners.forEac
1597h(c=>c()),this.buttonListeners=[]):a&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!a){this.eButtonsPanel&&qs(this.eButtonsPanel);return}let s=document.createDocumentFragment(),l=c=>{let u,m;switch(c){case"apply":u=this.translate("applyFilter"),m=_=>this.onBtApply(!1,!1,_);break;case"clear":u=this.translate("clearFilter"),m=()=>this.onBtClear();break;case"reset":u=this.translate("resetFilter"),m=()=>this.onBtReset();break;case"cancel":u=this.translate("cancelFilter"),m=_=>{this.onBtCancel(_)};break;default:X("Unknown button type specified");return}let C=Pg(`<button 1598 type="${c==="apply"?"submit":"button"}" 1599 data-ref="${c}FilterButton" 1600 class="ag-button ag-standard-button ag-filter-apply-panel-button" 1601 >${u} 1602 </button>`);this.buttonListeners.push(...this.addManagedElementListeners(C,{click:m})),s.append(C)};o.forEach(c=>l(c)),this.eButtonsPanel.append(s),this.getGui().appendChild(this.eButtonsPanel)}getDefaultDebounceMs(){return 0}setupOnBtApplyDebounce(){let e=Ng(this.providedFilterParams,this.getDefaultDebounceMs()),i=dn(this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,i()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel?this.appliedModel:null}setModel(e){return(e!=null?this.setModelIntoUi(e):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(e)})}handleCancelEnd(e){this.providedFilterParams.closeOnApply&&this.close(e)}resetUiToActiveModel(e,i){let t=()=>{this.onUiChanged(!1,"prevent"),i?.()};e!=null?this.setModelIntoUi(e).then(t):this.resetUiToDefaults().then(t)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){let i=this.getModelFromUi();if(!this.isModelValid(i))return!1;let t=this.appliedModel;return this.appliedModel=i,!this.areModelsEqual(t,i)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,i=!1,t){t&&t.preventDefault(),this.applyModel(i?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:i,source:"columnFilter"});let{closeOnApply:n}=this.providedFilterParams;n&&this.applyActive&&!e&&!i&&this.close(t)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;let i=e,t=i&&i.key,n;(t==="Enter"||t==="Space")&&(n={keyboardEvent:i}),this.hidePopup(n),this.hidePopup=null}onUiChanged(e=!1,i){if(this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){let t=this.isModelValid(this.getModelFromUi()),n=this.queryForHtmlElement('[data-ref="applyFilterButton"]');n&&$s(n,!t)}e&&!i||i==="immediately"?this.onBtApply(e):(!this.applyActive&&!i||i==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){if(!this.positionableFeature||e==="toolPanel")return;let i=e==="floatingFilter"||e==="columnFilter",{positionableFeature:t,gos:n}=this;i?(t.restoreLastSize(),t.setResizable(n.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)}refresh(e){let i=this.providedFilterParams;return this.providedFilterParams=e,this.resetButtonsPanel(e,i),!0}destroy(){let e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.localeService.getLocaleTextFunc()(e,y_[e])}getCellValue(e){return this.providedFilterParams.getValue(e)}getPositionableElement(){return this.eFilterBody}},TR=class extends g_{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}
1602addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)}},IR=class extends gi{constructor(e="default",i=!1){super(`<div class="ag-list ag-${e}-list" role="listbox"></div>`),this.cssIdentifier=e,this.unFocusable=i,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){let e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){let i=e.key;switch(i){case $.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{let t=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(t)}break;case $.DOWN:case $.UP:e.preventDefault(),this.navigate(i);break;case $.PAGE_DOWN:case $.PAGE_UP:case $.PAGE_HOME:case $.PAGE_END:e.preventDefault(),this.navigateToPage(i);break}}navigate(e){let i=e===$.DOWN,t;if(!this.highlightedEl)t=this.itemEls[i?0:this.itemEls.length-1];else{let o=this.itemEls.indexOf(this.highlightedEl)+(i?1:-1);o=Math.min(Math.max(o,0),this.itemEls.length-1),t=this.itemEls[o]}this.highlightItem(t)}navigateToPage(e){if(!this.highlightedEl||this.itemEls.length===0)return;let i=this.itemEls.indexOf(this.highlightedEl),t=this.options.length-1,n=this.itemEls[0].clientHeight,o=Math.floor(this.getGui().clientHeight/n),r=-1;e===$.PAGE_HOME?r=0:e===$.PAGE_END?r=t:e===$.PAGE_DOWN?r=Math.min(i+o,t):e===$.PAGE_UP&&(r=Math.max(i-o,0)),r!==-1&&this.highlightItem(this.itemEls[r])}addOptions(e){return e.forEach(i=>this.addOption(i)),this}addOption(e){let{value:i,text:t}=e,n=t||i;return this.options.push({value:i,text:n}),this.renderOption(i,n),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(e=>{qs(e)}),this.itemEls=[]}updateIndices(){let e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((i,t)=>{SP(i,t+1),xP(i,e.length)})}renderOption(e,i){let t=Fn(this.gos),n=t.createElement("div");xo(n,"option"),n.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);let o=t.createElement("span");n.appendChild(o),o.textContent=i,this.unFocusable||(n.tabIndex=-1),this.itemEls.push(n),this.addManagedListeners(n,{mouseover:()=>this.highlightItem(n),mousedown:r=>{r.preventDefault(),r.stopPropagation(),this.setValue(e)}}),this.createManagedBean(new Ag({getTooltipValue:()=>i,getGui:()=>n,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>o.scrollWidth>o.clientWidth})),this.getGui().appendChild(n)}setValue(e,i){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(i),this;let t=this.options.findIndex(n=>n.value===e);if(t!==-1){let n=this.options[t];this.value=n.value,this.displayValue=n.text,this.highlightItem(this.itemEls[t]),i||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();let e=this.options.findIndex(i=>i.value===this.value);e!==-1&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!Ud(e))return;this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(this.activeClass),vg(this.highlightedEl,!0);let i=this.getGui(),{scrollTop:t,clientHeight:n}=i,{offsetTop:o,offsetHeight:r}=e;(o+r>t+n||o<t)&&this.highlightedEl.scrollIntoView({block:"nearest"}),this.unFocusable||this.highlightedEl.focus()}clearHighlighted(){!this.highlightedEl||!Ud(this.highlightedEl)||(this.highlightedEl.classList.remove(this.activeClass),vg(this.highlightedEl,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},MR=class extends h_{constructor(e){if(super(e,e?.template||` 1603 <div class="ag-picker-field" role="presentation"> 1604 <div data-ref="eLabel"></div> 1605 <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed"> 1606 <div data-ref="eDisplayField" class="ag-picker-field-display"></div> 1607 <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div> 1608 </div> 1609 </div>`,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=We,this.eWrapper=We,this.eDisplayField=We,this.eIcon=We,this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;let{pickerGap:i,maxPickerHeight:t,variableWidth:n,minPickerWidth:o,maxPickerWidth:r}=e;i!=null&&(this.pickerGap=i),this.variableWidth=!!n,t!=null&&this.setPickerMaxHeight(t),o!=null&&this.setPickerMinWidth(o),r!=null&&this.setPickerMaxWidth(r)}wireBeans(e){this.popupService=e.popupService}
1609postConstruct(){super.postConstruct(),this.setupAria();let e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);let i=this.getAriaElement();this.addManagedElementListeners(i,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});let{pickerIcon:t,inputWidth:n}=this.config;if(t){let o=yo(t,this.gos);o&&this.eIcon.appendChild(o)}n!=null&&this.setInputWidth(n)}setupAria(){let e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),M1(e,!1),this.ariaRole&&xo(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){let i=this.getFocusableElement();if(i!==this.eWrapper&&e?.target===i)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case $.UP:case $.DOWN:case $.ENTER:case $.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case $.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());let e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){let e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));let i=this.localeService.getLocaleTextFunc(),{pickerAriaLabelKey:t,pickerAriaLabelValue:n,modalPicker:o=!0}=this.config,r={modal:o,eChild:e,closeOnEsc:!0,closedCallback:()=>{let v=GD(this.gos);this.beforeHidePicker(),v&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:i(t,n),anchorToElement:this.eWrapper};e.style.position="absolute";let a=this.popupService.addPopup(r),{maxPickerHeight:s,minPickerWidth:l,maxPickerWidth:c,variableWidth:u}=this;u?(l&&(e.style.minWidth=l),e.style.width=Rg(Cg(this.eWrapper)),c&&(e.style.maxWidth=c)):jd(e,c??Cg(this.eWrapper));let m=s??`${DP(this.popupService.getPopupParent())}px`;return e.style.setProperty("max-height",m),this.alignPickerToComponent(),a.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;let{pickerType:e}=this.config,{pickerGap:i}=this,t=this.gos.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:t,keepWithinBounds:!0,nudgeY:i})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);let e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;let i=this.getAriaElement();M1(i,e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&this.hideCurrentPicker()}setInputWidth(e){return jd(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},Vg=class extends MR{constructor(e){super(M({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"combobox"},e))}
vendor: 4,511 bytes, line 1609
1609postConstruct(){super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");let{options:e,value:i,placeholder:t}=this.config;e!=null&&this.addOptions(e),i!=null&&this.setValue(i,!0),t&&i==null&&(this.eDisplayField.textContent=t),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){this.listComponent=this.createBean(new IR("select",!0)),this.listComponent.setParentComponent(this);let e=this.listComponent.getAriaElement(),i=`ag-select-list-${this.listComponent.getCompId()}`;e.setAttribute("id",i),EP(this.getAriaElement(),e),this.listComponent.addManagedListeners(this.listComponent,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),this.listComponent.addManagedListeners(this.listComponent,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){let{key:i}=e;switch(i===$.TAB&&this.hidePicker(),i){case $.ENTER:case $.UP:case $.DOWN:case $.PAGE_UP:case $.PAGE_DOWN:case $.PAGE_HOME:case $.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case $.ESCAPE:super.onKeyDown(e);break;case $.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){this.listComponent&&(super.showPicker(),this.listComponent.refreshHighlighted())}addOptions(e){return e.forEach(i=>this.addOption(i)),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this}setValue(e,i,t){if(this.value===e||!this.listComponent)return this;if(t||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue())return this;let o=this.listComponent.getDisplayValue();return o==null&&this.config.placeholder&&(o=this.config.placeholder),this.eDisplayField.textContent=o,this.setTooltip({newTooltipText:o??null,shouldDisplayTooltip:()=>this.eDisplayField.scrollWidth>this.eDisplayField.clientWidth}),super.setValue(e,i)}destroy(){this.listComponent&&(this.listComponent=this.destroyBean(this.listComponent)),super.destroy()}},DR={selector:"AG-SELECT",component:Vg},w_=class{constructor(){this.customFilterOptions={}}init(e,i){this.filterOptions=e.filterOptions||i,this.mapCustomOptions(),this.selectDefaultItem(e)}getFilterOptions(){return this.filterOptions}mapCustomOptions(){this.filterOptions&&this.filterOptions.forEach(e=>{if(typeof e=="string")return;let i=[["displayKey"],["displayName"],["predicate","test"]],t=n=>n.some(o=>e[o]!=null)?!0:(X(`ignoring FilterOptionDef as it doesn't contain one of '${n}'`),!1);if(!i.every(t)){this.filterOptions=this.filterOptions.filter(n=>n===e)||[];return}this.customFilterOptions[e.displayKey]=e})}selectDefaultItem(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){let i=this.filterOptions[0];typeof i=="string"?this.defaultOption=i:i.displayKey?this.defaultOption=i.displayKey:X("invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else X("no filter options for filter")}getDefaultOption(){return this.defaultOption}getCustomOption(e){return this.customFilterOptions[e]}},x_=class extends ER{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(e){let i=this.optionsFactory.getCustomOption(e);if(i){let{numberOfInputs:n}=i;return n??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}onFloatingFilterChanged(e,i){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(i),this.onUiChanged(!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((i,t)=>{t===0?i.setValue(e,!0):i.setValue(this.optionsFactory.getDefaultOption(),!0)})}getModelFromUi(){let e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"}
1609areModelsEqual(e,i){if(!e&&!i)return!0;if(!e&&i||e&&!i)return!1;let t=!e.operator,n=!i.operator;if(!t&&n||t&&!n)return!1;let r;if(t){let a=e,s=i;r=this.areSimpleModelsEqual(a,s)}else{let a=e,s=i;r=a.operator===s.operator&&Eg(a.conditions,s.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return r}shouldRefresh(e){let i=this.getModel(),t=i?i.conditions??[i]:null,n=e.filterOptions?.map(r=>typeof r=="string"?r:r.displayKey)??this.getDefaultFilterOptions();return!(!(!t||t.every(r=>n.find(a=>a===r.type)!==void 0))||typeof e.maxNumConditions=="number"&&t&&t.length>e.maxNumConditions)}refresh(e){return!this.shouldRefresh(e)||!super.refresh(e)?!1:(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(e){if(e.operator){let t=e,n=t.conditions;n==null&&(n=[],X("Filter model is missing 'conditions'"));let o=this.validateAndUpdateConditions(n),r=this.getNumConditions();if(o<r)this.removeConditionsAndOperators(o);else if(o>r)for(let s=r;s<o;s++)this.createJoinOperatorPanel(),this.createOption();let a=t.operator==="OR";this.eJoinOperatorsAnd.forEach(s=>s.setValue(!a,!0)),this.eJoinOperatorsOr.forEach(s=>s.setValue(a,!0)),n.forEach((s,l)=>{this.eTypes[l].setValue(s.type,!0),this.setConditionIntoUi(s,l)})}else{let t=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(t.type,!0),this.setConditionIntoUi(t,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),cn.resolve()}validateAndUpdateConditions(e){let i=e.length;return i>this.maxNumConditions&&(e.splice(this.maxNumConditions),X('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),i=this.maxNumConditions),i}doesFilterPass(e){let i=this.getModel();if(i==null)return!0;let{operator:t}=i,n=[];if(t){let r=i;n.push(...r.conditions??[])}else n.push(i);return n[t&&t==="OR"?"some":"every"](r=>this.individualConditionPasses(e,r))}setParams(e){super.setParams(e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new w_,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(e){this.maxNumConditions=e.maxNumConditions??2,this.maxNumConditions<1&&(X('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=e.numAlwaysVisibleConditions??1,this.numAlwaysVisibleConditions<1&&(X('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(X('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)}createOption(){let e=this.createManagedBean(new Vg);this.eTypes.push(e),e.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());let i=this.createValueElement();this.eConditionBodies.push(i),this.eFilterBody.appendChild(i),this.putOptionsIntoDropdown(e),this.resetType(e);let t=this.getNumConditions()-1;this.forEachPositionInput(t,n=>this.resetInput(n)),this.addChangedListeners(e,t)}createJoinOperatorPanel(){let e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");let i=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),t=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);let n=this.eJoinOperatorPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(i,n,o),this.resetJoinOperatorOr(t,n,o),this.isReadOnly()||(i.onValueChange(this.listener),t.onValueChange(this.listener))}createJoinOperator(e,i,t){let n=this.createManagedBean(new TR);return e.push(n),n.addCssClass("ag-filter-condition-operator"),n.addCssClass(`ag-filter-condition-operator-${t}`),i.appendChild(n.getGui()),n}getDefaultJoinOperator(e){return e==="AND"||e==="OR"?e:"AND"}createFilterListOptions(){let e=this.optionsFactory.getFilterOptions();this.filterListOptions=e.map(i=>typeof i=="string"?this.createBoilerplateListOption(i):this.createCustomListOption(i))}putOptionsIntoDropdown(e){this.filterListOptions.forEach(i=>
1609{e.addOption(i)}),e.setDisabled(this.filterListOptions.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){let{displayKey:i}=e,t=this.optionsFactory.getCustomOption(e.displayKey);return{value:i,text:t?this.localeService.getLocaleTextFunc()(t.displayKey,t.displayName):this.translate(i)}}createBodyTemplate(){return""}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){let e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,i=!0;for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)?e=t:i=!1;if(this.shouldAddNewConditionAtEnd(i))this.createJoinOperatorPanel(),this.createOption();else{let t=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<t){this.removeConditionsAndOperators(t+1);let n=e+1,o=t-n;o>0&&this.removeConditionsAndOperators(n,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,i){this.eTypes.forEach((n,o)=>{let r=this.isConditionDisabled(o,e);n.setDisabled(r||this.filterListOptions.length<=1),o===1&&($s(this.eJoinOperatorPanels[0],r),this.eJoinOperatorsAnd[0].setDisabled(r),this.eJoinOperatorsOr[0].setDisabled(r))}),this.eConditionBodies.forEach((n,o)=>{So(n,this.isConditionBodyVisible(o))});let t=(i??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(n=>{n.setValue(!t,!0)}),this.eJoinOperatorsOr.forEach(n=>{n.setValue(t,!0)}),this.forEachInput((n,o,r,a)=>{this.setElementDisplayed(n,o<a),this.setElementDisabled(n,this.isConditionDisabled(r,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,i){if(e>=this.getNumConditions())return;this.removeComponents(this.eTypes,e,i),this.removeElements(this.eConditionBodies,e,i),this.removeValueElements(e,i);let t=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,t,i),this.removeComponents(this.eJoinOperatorsAnd,t,i),this.removeComponents(this.eJoinOperatorsOr,t,i)}removeElements(e,i,t){this.removeItems(e,i,t).forEach(o=>qs(o))}removeComponents(e,i,t){this.removeItems(e,i,t).forEach(o=>{qs(o.getGui()),this.destroyBean(o)})}removeItems(e,i,t){return t==null?e.splice(i):e.splice(i,t)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus)if(this.isReadOnly())this.eFilterBody.focus();else{let i=this.getInputs(0)[0];if(!i)return;i instanceof cr&&i.getInputElement().focus()}}afterGuiDetached(){super.afterGuiDetached();let e=this.getModel();this.resetUiToActiveModel(e);let i=-1,t=-1,n=!1,o=this.getJoinOperator();for(let a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))i===-1&&(i=a,t=a);else{let s=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),l=a<i;(s||l)&&(this.removeConditionsAndOperators(a,1),n=!0,l&&t--)}let r=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),r=!0),this.shouldAddNewConditionAtEnd(t===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),r=!0),r&&this.updateConditionStatusesAndValues(t,o),n&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=t}getPlaceholderText(e,i){let t=this.translate(e);if(U1(this.filterPlaceholder)){let n=this.filterPlaceholder,o=this.eTypes[i].getValue(),r=this.translate(o);t=n({filterOptionKey:o,filterOption:r,placeholder:t})}else typeof this.filterPlaceholder=="string"&&(t=this.filterPlaceholder);return t}resetPlaceholder(){let e=this.localeService.getLocaleTextFunc();this.forEachInput((i,t,n,o)=>{if(!(i instanceof cr))return;let r=t===0&&o>1?"inRangeStart":t===0?"filterOoo":"inRangeEnd",a=t===0&&o>1?e("ariaFilterFromValue","Filter from value"):t===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");i.setInputPlaceholder(this.getPlaceholderText(r,n)),i.setInputAriaLabel(a)})}setElementValue(e,i,t){e instanceof cr&&e.setValue(i!=null?String(i):null,!0)}setElementDisplayed(e,i){e instanceof gi&&So(e.getGui(),i)}setElementDisabled(e,i){e instanceof gi&&$s(e.getGui(),i)}attachElementOnChange(e,i){e instanceof cr&&e.onValueChange(i)}
vendor: 4,788 bytes, line 1609
1609forEachInput(e){this.getConditionTypes().forEach((i,t)=>{this.forEachPositionTypeInput(t,i,e)})}forEachPositionInput(e,i){let t=this.getConditionType(e);this.forEachPositionTypeInput(e,t,i)}forEachPositionTypeInput(e,i,t){let n=this.getNumberOfInputs(i),o=this.getInputs(e);for(let r=0;r<o.length;r++){let a=o[r];a!=null&&t(a,r,e,n)}}isConditionDisabled(e,i){return this.isReadOnly()?!0:e===0?!1:e>i+1}isConditionBodyVisible(e){let i=this.getConditionType(e);return this.getNumberOfInputs(i)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(t=>t==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let e=[];for(let i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)&&e.push(this.createCondition(i));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(i=>this.resetType(i)),this.eJoinOperatorsAnd.forEach((i,t)=>this.resetJoinOperatorAnd(i,t,this.joinOperatorId+t)),this.eJoinOperatorsOr.forEach((i,t)=>this.resetJoinOperatorOr(i,t,this.joinOperatorId+t)),this.joinOperatorId++,this.forEachInput(i=>this.resetInput(i)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),cn.resolve()}resetType(e){let t=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(t).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,i,t){this.resetJoinOperator(e,i,this.isDefaultOperator("AND"),this.translate("andCondition"),t)}resetJoinOperatorOr(e,i,t){this.resetJoinOperator(e,i,this.isDefaultOperator("OR"),this.translate("orCondition"),t)}resetJoinOperator(e,i,t,n,o){this.updateJoinOperatorDisabled(e.setValue(t,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(n),i)}updateJoinOperatorsDisabled(){this.eJoinOperatorsAnd.forEach((e,i)=>this.updateJoinOperatorDisabled(e,i)),this.eJoinOperatorsOr.forEach((e,i)=>this.updateJoinOperatorDisabled(e,i))}updateJoinOperatorDisabled(e,i){e.setDisabled(this.isReadOnly()||i>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,i){let t=this.mapValuesFromModel(e);this.forEachInput((n,o,r)=>{r===i&&this.setElementValue(n,t[o]!=null?t[o]:null)})}setValueFromFloatingFilter(e){this.forEachInput((i,t,n)=>{this.setElementValue(i,t===0&&n===0?e:null,!0)})}isDefaultOperator(e){return e===this.defaultJoinOperator}addChangedListeners(e,i){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(i,t=>{this.attachElementOnChange(t,this.listener)}))}individualConditionPasses(e,i){let t=this.getCellValue(e.node),n=this.mapValuesFromModel(i),o=this.optionsFactory.getCustomOption(i.type),r=this.evaluateCustomFilter(o,n,t);return r??(t==null?this.evaluateNullValue(i.type):this.evaluateNonNullValue(n,t,i,e))}evaluateCustomFilter(e,i,t){if(e==null)return;let{predicate:n}=e;if(n!=null&&!i.some(o=>o==null))return n(i,t)}isBlank(e){return e==null||typeof e=="string"&&e.trim().length===0}hasInvalidInputs(){return!1}},S_=class extends x_{setParams(e){super.setParams(e),this.scalarFilterParams=e}evaluateNullValue(e){switch(e){case"equals":if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case"notEqual":if(this.scalarFilterParams.includeBlanksInNotEqual)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case"lessThan":case"lessThanOrEqual":if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case"inRange":if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,i,t){let n=this.comparator(),o=e[0]!=null?n(e[0],i):0;switch(t.type){case"equals":return o===0;case"notEqual":return o!==0;case"greaterThan":return o>0;case"greaterThanOrEqual":return o>=0;case"lessThan":return o<0;case"lessThanOrEqual":return o<=0;case"inRange":{let r=n(e[1],i);return this.scalarFilterParams.inRangeInclusive?o>=0&&r<=0:o>0&&r<0}case"blank":return this.isBlank(i);case"notBlank":return!this.isBlank(i);default:return X('Unexpected type of filter "'+t.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}}};function PR(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function RR(e,i,t,n,o){let r=n?n.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;
1609let a=e.addGridCommonParams({event:i,editing:o,column:n,node:t,data:t.data,colDef:n.getColDef()});return!!(r&&r(a))}function FR(e,i,t,n){let o=n.getDefinition(),r=o&&o.suppressHeaderKeyboardEvent;if(!le(r))return!1;let a=e.addGridCommonParams({colDef:o,column:n,headerRowIndex:t,event:i});return!!r(a)}function AR(e,i=!1){return e===$.DELETE?!0:!i&&e===$.BACKSPACE?zP():!1}var pr=class extends cr{constructor(e,i="ag-text-field",t="text"){super(e,i,t)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,i){return this.eInput.value!==e&&(this.eInput.value=le(e)?e:""),super.setValue(e,i)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){let e=new RegExp(`[${this.config.allowedCharPattern}]`),i=t=>{PR(t)&&t.key&&!e.test(t.key)&&t.preventDefault()};this.addManagedListeners(this.eInput,{keydown:i,paste:t=>{let n=t.clipboardData?.getData("text");n&&n.split("").some(o=>!e.test(o))&&t.preventDefault()}})}},Qd={selector:"AG-INPUT-TEXT-FIELD",component:pr},zg=class extends pr{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct(),this.addManagedListeners(this.eInput,{blur:()=>{let o=parseFloat(this.eInput.value),r=isNaN(o)?"":this.normalizeValue(o.toString());this.value!==r&&this.setValue(r)},wheel:this.onWheel.bind(this)}),this.eInput.step="any";let{precision:e,min:i,max:t,step:n}=this.config;typeof e=="number"&&this.setPrecision(e),typeof i=="number"&&this.setMin(i),typeof t=="number"&&this.setMax(t),typeof n=="number"&&this.setStep(n)}onWheel(e){An(this.gos)===this.eInput&&e.preventDefault()}normalizeValue(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));let i=parseFloat(e);return this.min!=null&&i<this.min?e=this.min.toString():this.max!=null&&i>this.max&&(e=this.max.toString()),e}adjustPrecision(e,i){if(this.precision==null)return e;if(i){let n=parseFloat(e).toFixed(this.precision);return parseFloat(n).toString()}let t=String(e).split(".");if(t.length>1){if(t[1].length<=this.precision)return e;if(this.precision>0)return`${t[0]}.${t[1].slice(0,this.precision)}`}return t[0]}setMin(e){return this.min===e?this:(this.min=e,ji(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,ji(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,ji(this.eInput,"step",e),this)}setValue(e,i){return this.setValueOrInputValue(t=>super.setValue(t,i),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(i=>super.setValue(i,!0),i=>{this.eInput.value=i},e)}setValueOrInputValue(e,i,t){if(le(t)){let n=this.isScientificNotation(t);if(n&&this.eInput.validity.valid)return e(t);if(!n){t=this.adjustPrecision(t);let o=this.normalizeValue(t);n=t!=o}if(n)return i(t)}return e(t)}getValue(){if(!this.eInput.validity.valid)return;let e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},OR={selector:"AG-INPUT-NUMBER-FIELD",component:zg},k_=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"],Bg=class{constructor(e,i,t){this.localeService=e,this.optionsFactory=i,this.valueFormatter=t}getModelAsString(e){if(!e)return null;let i=e.operator!=null,t=this.localeService.getLocaleTextFunc();if(i){let n=e,r=(n.conditions??[]).map(s=>this.getModelAsString(s)),a=n.operator==="AND"?"andCondition":"orCondition";return r.join(` ${t(a,y_[a])} `)}else{if(e.type==="blank"||e.type==="notBlank")return t(e.type,e.type);{let n=e,o=this.optionsFactory.getCustomOption(n.type),{displayKey:r,displayName:a,numberOfInputs:s}=o||{};return r&&a&&s===0?(t(r,a),a):this.conditionToString(n,o)}}}updateParams(e){this.optionsFactory=e.optionsFactory}formatValue(e){return this.valueFormatter?this.valueFormatter(e??null)??"":String(e)}},E_=class extends Bg{conditionToString(e,i){let{numberOfInputs:t}=i||{};return e.type=="inRange"||t===2?`${this.formatValue(e.filter)}-${this.formatValue(e.filterTo)}`:e.filter!=null?this.formatValue(e.filter):`${e.type}`}};function bg(e){let{allowedCharPattern:i}=e??{};return i??null}
vendor: 9,273 bytes, line 1609
1609var LR=class extends S_{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[]}refresh(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:super.refresh(e)}mapValuesFromModel(e){let{filter:i,filterTo:t,type:n}=e||{};return[this.processValue(i),this.processValue(t)].slice(0,this.getNumberOfInputs(n))}getDefaultDebounceMs(){return 500}comparator(){return(e,i)=>e===i?0:e<i?1:-1}setParams(e){this.numberFilterParams=e,super.setParams(e),this.filterModelFormatter=new E_(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return k_}setElementValue(e,i,t){let n=!t&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(i??null):i;super.setElementValue(e,n)}createValueElement(){let e=bg(this.numberFilterParams),i=document.createElement("div");return i.classList.add("ag-filter-body"),xo(i,"presentation"),this.createFromToElement(i,this.eValuesFrom,"from",e),this.createFromToElement(i,this.eValuesTo,"to",e),i}createFromToElement(e,i,t,n){let o=this.createManagedBean(n?new pr({allowedCharPattern:n}):new zg);o.addCssClass(`ag-filter-${t}`),o.addCssClass("ag-filter-filter"),i.push(o),e.appendChild(o.getGui())}removeValueElements(e,i){this.removeComponents(this.eValuesFrom,e,i),this.removeComponents(this.eValuesTo,e,i)}getValues(e){let i=[];return this.forEachPositionInput(e,(t,n,o,r)=>{n<r&&i.push(this.processValue(this.stringToFloat(t.getValue())))}),i}areSimpleModelsEqual(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type}getFilterType(){return"number"}processValue(e){return e==null||isNaN(e)?null:e}stringToFloat(e){if(typeof e=="number")return e;let i=wg(e);return i!=null&&i.trim()===""&&(i=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(i):i==null||i.trim()==="-"?null:parseFloat(i)}createCondition(e){let i=this.getConditionType(e),t={filterType:this.getFilterType(),type:i},n=this.getValues(e);return n.length>0&&(t.filter=n[0]),n.length>1&&(t.filterTo=n[1]),t}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}hasInvalidInputs(){let e=!1;return this.forEachInput(i=>{if(!i.getInputElement().validity.valid){e=!0;return}}),e}},T_=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],I_=class extends Bg{conditionToString(e,i){let{numberOfInputs:t}=i||{};return e.type=="inRange"||t===2?`${e.filter}-${e.filterTo}`:e.filter!=null?`${e.filter}`:`${e.type}`}};function M_(e){let i=e&&e.trim();return i===""?e:i}var NR=class extends x_{constructor(){super("textFilter"),this.defaultFormatter=e=>e,this.defaultLowercaseFormatter=e=>e==null?null:e.toString().toLowerCase(),this.defaultMatcher=({filterOption:e,value:i,filterText:t})=>{if(t==null)return!1;switch(e){case"contains":return i.indexOf(t)>=0;case"notContains":return i.indexOf(t)<0;case"equals":return i===t;case"notEqual":return i!=t;case"startsWith":return i.indexOf(t)===0;case"endsWith":{let n=i.lastIndexOf(t);return n>=0&&n===i.length-t.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[]}getDefaultDebounceMs(){return 500}setParams(e){this.textFilterParams=e,super.setParams(e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new I_(this.localeService,this.optionsFactory)}getTextMatcher(){let e=this.textFilterParams.textCustomComparator;return e?(X("textCustomComparator is deprecated, use textMatcher instead."),({filterOption:i,value:t,filterText:n})=>e(i,t,n)):this.textFilterParams.textMatcher||this.defaultMatcher}createCondition(e){let i=this.getConditionType(e),t={filterType:this.getFilterType(),type:i},n=this.getValuesWithSideEffects(e,!0);return n.length>0&&(t.filter=n[0]),n.length>1&&(t.filterTo=n[1]),t}getFilterType(){return"text"}areSimpleModelsEqual(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(e,i){let t=[];return this.forEachPositionInput(e,(n,o,r,a)=>{if(o<a){let s=wg(n.getValue());i&&this.textFilterParams.trimInput&&(s=M_(s)??null,n.setValue(s,!0)),t.push(s)}}),t}getDefaultFilterOptions(){return T_}createValueElement(){let e=document.createElement("div");return e.classList.add("ag-filter-body"),xo(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e}createFromToElement(e,i,t){let n=this.createManagedBean(new pr);n.addCssClass(`ag-filter-${t}`),n.addCssClass("ag-filter-filter"),i.push(n),e.appendChild(n.getGui())}removeValueElements(e,i){this.removeComponents(this.eValuesFrom,e,i),this.removeComponents(this.eValuesTo,e,i)}mapValuesFromModel(e){let{filter:i,filterTo:t,type:n}=e||{};return[i||null,t||null].slice(0,this.getNumberOfInputs(n))}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,i,t,n){let o=e.map(v=>this.formatter(v))||[],r=this.formatter(i),{api:a,colDef:s,column:l,context:c,textFormatter:u}=this.textFilterParams;if(t.type==="blank")return this.isBlank(i);if(t.type==="notBlank")return!this.isBlank(i);let m={api:a,colDef:s,column:l,context:c,node:n.node,data:n.data,filterOption:t.type,value:r,textFormatter:u};return o.some(v=>this.matcher(ae(M({},m),{filterText:v})))}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}};function D_(e){if(typeof e=="number")return e;if(typeof e=="string"){let i=parseInt(e);return isNaN(i)?void 0:i}}function ln(e,i=Number.MAX_VALUE){return t=>{let n=D_(t);if(!(n==null||n<e||n>i))return n}}function Hs(e,i){return e.toString().padStart(i,"0")}function VR(e,i,t){return typeof e!="number"?"":e.toString().replace(".",t).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${i}`)}function Ri(e,i=!0,t="-"){if(!e)return null;let n=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(o=>Hs(o,2)).join(t);return i&&(n+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(o=>Hs(o,2)).join(":")),n}var lg=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Gs(e,i="YYYY-MM-DD"){let t=Hs(e.getFullYear(),4),n=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:()=>t.slice(t.length-4,t.length),YY:()=>t.slice(t.length-2,t.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>n[e.getMonth()],MMM:()=>n[e.getMonth()].slice(0,3),MM:()=>Hs(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${lg(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${lg(e.getDate())}`,DD:()=>Hs(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>o[e.getDay()],ddd:()=>o[e.getDay()].slice(0,3),dd:()=>o[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${lg(e.getDay())}`,d:()=>`${e.getDay()}`},a=new RegExp(Object.keys(r).join("|"),"g");return i.replace(a,s=>s in r?r[s]():s)}function hi(e){if(!e)return null;let[i,t]=e.split(" ");if(!i)return null;let n=i.split("-").map(m=>parseInt(m,10));if(n.filter(m=>!isNaN(m)).length!==3)return null;let[o,r,a]=n,s=new Date(o,r-1,a);if(s.getFullYear()!==o||s.getMonth()!==r-1||s.getDate()!==a)return null;if(!t||t==="00:00:00")return s;let[l,c,u]=t.split(":").map(m=>parseInt(m,10));return l>=0&&l<24&&s.setHours(l),c>=0&&c<60&&s.setMinutes(c),u>=0&&u<60&&s.setSeconds(u),s}var P_=class{constructor(e,i,t,n,o){this.alive=!0,this.context=e,this.eParent=n,i.getDateCompDetails(t).newAgStackInstance().then(s=>{if(!this.alive){e.destroyBean(s);return}this.dateComp=s,s&&(n.appendChild(s.getGui()),s.afterGuiAttached&&s.afterGuiAttached(),this.tempValue&&s.setDate(this.tempValue),this.disabled!=null&&this.setDateCompDisabled(this.disabled),o?.(this))})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e}setDisabled(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e}setDisplayed(e){So(this.eParent,e)}setInputPlaceholder(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)}setInputAriaLabel(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)}afterGuiAttached(e){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(e)}updateParams(e){let i=!1;this.dateComp?.refresh&&typeof this.dateComp.refresh=="function"&&this.dateComp.refresh(e)!==null&&(i=!0),!i&&this.dateComp?.onParamsUpdated&&typeof this.dateComp.onParamsUpdated=="function"&&this.dateComp.onParamsUpdated(e)!==null&&X("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}setDateCompDisabled(e){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(e)}},R_=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"],F_
1609=class extends Bg{constructor(e,i,t){super(i,t),this.dateFilterParams=e}conditionToString(e,i){let{type:t}=e,{numberOfInputs:n}=i||{},o=t=="inRange"||n===2,r=hi(e.dateFrom),a=hi(e.dateTo),s=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(o){let l=r!==null?Gs(r,s):"null",c=a!==null?Gs(a,s):"null";return`${l}-${c}`}return r!=null?Gs(r,s):`${t}`}updateParams(e){super.updateParams(e),this.dateFilterParams=e.dateFilterParams}},A1=1e3,O1=1/0,zR=class extends S_{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=A1,this.maxValidYear=O1,this.minValidDate=null,this.maxValidDate=null}wireBeans(e){super.wireBeans(e),this.context=e.context,this.userComponentFactory=e.userComponentFactory}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}mapValuesFromModel(e){let{dateFrom:i,dateTo:t,type:n}=e||{};return[i&&hi(i)||null,t&&hi(t)||null].slice(0,this.getNumberOfInputs(n))}comparator(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)}defaultComparator(e,i){let t=i;return i==null||t<e?-1:t>e?1:0}setParams(e){this.dateFilterParams=e,super.setParams(e);let i=(t,n)=>{if(e[t]!=null)if(isNaN(e[t]))X(`DateFilter ${t} is not a number`);else return e[t]==null?n:Number(e[t]);return n};this.minValidYear=i("minValidYear",A1),this.maxValidYear=i("maxValidYear",O1),this.minValidYear>this.maxValidYear&&X("DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:hi(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:hi(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&X("DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new F_(this.dateFilterParams,this.localeService,this.optionsFactory)}createDateCompWrapper(e){let i=new P_(this.context,this.userComponentFactory,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams},e);return this.addDestroyFunc(()=>i.destroy()),i}setElementValue(e,i){e.setDate(i)}setElementDisplayed(e,i){e.setDisplayed(i)}setElementDisabled(e,i){e.setDisabled(i)}getDefaultFilterOptions(){return R_}createValueElement(){let i=Fn(this.gos).createElement("div");return i.classList.add("ag-filter-body"),this.createFromToElement(i,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(i,this.eConditionPanelsTo,this.dateConditionToComps,"to"),i}createFromToElement(e,i,t,n){let r=Fn(this.gos).createElement("div");r.classList.add(`ag-filter-${n}`),r.classList.add(`ag-filter-date-${n}`),i.push(r),e.appendChild(r),t.push(this.createDateCompWrapper(r))}removeValueElements(e,i){this.removeDateComps(this.dateConditionFromComps,e,i),this.removeDateComps(this.dateConditionToComps,e,i),this.removeItems(this.eConditionPanelsFrom,e,i),this.removeItems(this.eConditionPanelsTo,e,i)}removeDateComps(e,i,t){this.removeItems(e,i,t).forEach(o=>o.destroy())}isValidDateValue(e){if(e===null)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let i=!0;return this.forEachInput((t,n,o,r)=>{o!==e||!i||n>=r||(i=i&&this.isValidDateValue(t.getDate()))}),i}areSimpleModelsEqual(e,i){return e.dateFrom===i.dateFrom&&e.dateTo===i.dateTo&&e.type===i.type}getFilterType(){return"date"}createCondition(e){let i=this.getConditionType(e),t={},n=this.getValues(e);return n.length>0&&(t.dateFrom=Ri(n[0])),n.length>1&&(t.dateTo=Ri(n[1])),M({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:i},t)}resetPlaceholder(){let e=this.localeService.getLocaleTextFunc(),i=this.translate("dateFormatOoo"),t=e("ariaFilterValue","Filter Value");this.forEachInput(n=>{n.setInputPlaceholder(i),n.setInputAriaLabel(t)}
1609)}getInputs(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]}getValues(e){let i=[];return this.forEachPositionInput(e,(t,n,o,r)=>{n<r&&i.push(t.getDate())}),i}translate(e){return e==="lessThan"?super.translate("before"):e==="greaterThan"?super.translate("after"):super.translate(e)}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}},BR=class extends fe{constructor(e,i,t,n){super(),this.columnOrGroup=e,this.columnOrGroup=e,this.eCell=i,this.ariaEl=this.eCell.querySelector("[role=columnheader]")||this.eCell,this.colsSpanning=n,this.beans=t}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){return this.beans.gos.get("enableRtl")&&this.colsSpanning?dr(this.colsSpanning):this.columnOrGroup}postConstruct(){let e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){let e=this.beans.gos.get("suppressColumnMoveAnimation"),i=le(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&i&&!e?this.animateInLeft():this.onLeftChanged()}animateInLeft(){let e=this.getColumnOrGroup(),i=e.getLeft(),t=e.getOldLeft(),n=this.modifyLeftForPrintLayout(e,t),o=this.modifyLeftForPrintLayout(e,i);this.setLeft(n),this.actualLeft=o,this.beans.columnAnimationService.executeNextVMTurn(()=>{this.actualLeft===o&&this.setLeft(o)})}onLeftChanged(){let e=this.getColumnOrGroup(),i=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,i),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,i){if(!xg(this.beans.gos,"print")||e.getPinned()==="left")return i;let n=this.beans.visibleColsService.getColsLeftWidth();if(e.getPinned()==="right"){let o=this.beans.visibleColsService.getBodyContainerWidth();return n+o+i}return n+i}setLeft(e){if(le(e)&&(this.eCell.style.left=`${e}px`),ua(this.columnOrGroup)){let i=this.columnOrGroup.getLeafColumns();if(!i.length)return;i.length>1&&kP(this.ariaEl,i.length)}}},HR="ag-column-first",GR="ag-column-last";function A_(e,i,t){e.addOrRemoveCssClass(HR,t.isColAtEdge(i,"first")),e.addOrRemoveCssClass(GR,t.isColAtEdge(i,"last"))}var UR=0,jR=(()=>{let e=class O_ extends fe{constructor(t,n,o){super(),this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.columnGroupChild=t,this.parentRowCtrl=o,this.beans=n,this.instanceId=t.getUniqueId()+"-"+UR++}wireBeans(t){this.pinnedWidthService=t.pinnedWidthService,this.focusService=t.focusService,this.userComponentFactory=t.userComponentFactory,this.ctrlsService=t.ctrlsService,this.dragAndDropService=t.dragAndDropService,this.menuService=t.menuService}postConstruct(){let t=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],t),this.addManagedEventListeners({overlayExclusiveChanged:t})}shouldStopEventPropagation(t){let{headerRowIndex:n,column:o}=this.focusService.getFocusedHeader();return FR(this.gos,t,n,o)}getWrapperHasFocus(){return An(this.gos)===this.eGui}setGui(t,n){this.eGui=t,this.addDomData(n),n.addManagedListeners(this.beans.eventService,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),n.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventService.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(t){let{wrapperElement:n,checkMeasuringCallback:o,compBean:r}=t,{animationFrameService:a,resizeObserverService:s,columnModel:l,gos:c}=this.beans,u=D=>{if(!this.isAlive()||!r.isAlive())return;let{paddingTop:P,paddingBottom:T,borderBottomWidth:O,borderTopWidth:K}=va(this.getGui()),we=P+T+O+K,at=n.offsetHeight+we;if(D<5){let $e=Fn(c),mt=!$e||!$e.contains(n),Qt=at==0;if(mt||Qt){a.requestAnimationFrame(()=>u(D+1));return}}l.setColHeaderHeight(this.column,at)},m=!1,v,C=()=>{let D=this.column.isAutoHeaderHeight();D&&!m&&_(),!D&&m&&E()},_=()=>{m=!0,u(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),v=s.observeResize(n,()=>u(0))},E=()=>{m=!1,v&&v(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),v=void 0};C(),r.addDestroyFunc(()=>E()),r.addManagedListeners(this.column,{widthChanged:()=>m&&u(0)}),r.addManagedEventListeners({sortChanged:()=>{m&&window.setTimeout(()=>u(0))}}),o&&o(C)}onDisplayedColumnsChanged(){let{comp:t,column:n,beans:o,eGui:r}=this;!t||!n||!r||(A_(t,n,o.visibleColsService),a_(r,o.visibleColsService.getAr
1609iaColIndex(n)))}addResizeAndMoveKeyboardListeners(t){this.resizeFeature&&t.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){let t=this.focusService.isHeaderFocusSuppressed();this.eGui&&ji(this.eGui,"tabindex",t?null:"-1")}onGuiKeyDown(t){let n=An(this.gos),o=t.key===$.LEFT||t.key===$.RIGHT;if(this.isResizing&&(t.preventDefault(),t.stopImmediatePropagation()),n!==this.eGui||!t.shiftKey&&!t.altKey||((this.isResizing||o)&&(t.preventDefault(),t.stopImmediatePropagation()),!o))return;let r=t.key===$.LEFT!==this.gos.get("enableRtl"),a=v_[r?"Left":"Right"];if(t.altKey){this.isResizing=!0,this.resizeMultiplier+=1;let s=this.getViewportAdjustedResizeDiff(t);this.resizeHeader(s,t.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(a)}getViewportAdjustedResizeDiff(t){let n=this.getResizeDiff(t);if(this.column.getPinned()){let r=this.pinnedWidthService.getPinnedLeftWidth(),a=this.pinnedWidthService.getPinnedRightWidth(),s=PP(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(r+a+n>s)if(s>r+a)n=s-r-a;else return 0}return n}getResizeDiff(t){let n=t.key===$.LEFT!==this.gos.get("enableRtl"),o=this.column.getPinned(),r=this.gos.get("enableRtl");return o&&r!==(o==="right")&&(n=!n),(n?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(t){let n=this.getWrapperHasFocus();switch(t.key){case $.PAGE_DOWN:case $.PAGE_UP:case $.PAGE_HOME:case $.PAGE_END:n&&t.preventDefault()}}addDomData(t){let n=O_.DOM_DATA_KEY_HEADER_CTRL;js(this.gos,this.eGui,n,this),t.addDestroyFunc(()=>js(this.gos,this.eGui,n,null))}getGui(){return this.eGui}focus(t){return this.eGui?(this.lastFocusEvent=t||null,this.eGui.focus(),!0):!1}getRowIndex(){return this.parentRowCtrl.getRowIndex()}getParentRowCtrl(){return this.parentRowCtrl}getPinned(){return this.parentRowCtrl.getPinned()}getColumnGroupChild(){return this.columnGroupChild}removeDragSource(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(t,n,o){let r=t??n;this.gos.get("preventDefaultOnContextMenu")&&r.preventDefault(),this.menuService.isHeaderContextMenuEnabled(o)&&this.menuService.showHeaderContextMenu(o,t,n),this.dispatchColumnMouseEvent("columnHeaderContextMenu",o)}dispatchColumnMouseEvent(t,n){this.eventService.dispatchEvent({type:t,column:n})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null}};return e.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",e})(),WR=jR,$R=class extends fe{wireBeans(e){this.columnHoverService=e.columnHoverService}constructor(e,i){super(),this.columns=e,this.element=i}postConstruct(){this.gos.get("columnHoverHighlight")&&this.addMouseHoverListeners()}addMouseHoverListeners(){this.addManagedListeners(this.element,{mouseout:this.onMouseOut.bind(this),mouseover:this.onMouseOver.bind(this)})}onMouseOut(){this.columnHoverService.clearMouseOver()}onMouseOver(){this.columnHoverService.setMouseOver(this.columns)}},qR=class extends WR{constructor(e,i,t){super(e,i,t),this.iconCreated=!1,this.column=e}setComp(e,i,t,n,o){this.comp=e,o=CP(this,this.beans.context,o),this.eButtonShowMainFilter=t,this.eFloatingFilterBody=n,this.setGui(i,o),this.setupActive(),this.setupWidth(o),this.setupLeft(o),this.setupHover(o),this.setupFocus(o),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(o),this.setupUi(),o.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(o),o.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(o)}),o.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetail
1609s=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}setupActive(){let e=this.column.getColDef(),i=!!e.filter,t=!!e.floatingFilter;this.active=i&&t}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;let e=yo("filter",this.gos,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Lg(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let e=this.localeService.getLocaleTextFunc();Dg(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){if(An(this.gos)===this.eGui)return;let n=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(n){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),n.focus();return}let o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:o},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){let i=this.beans.visibleColsService,t=this.column;do if(t=e?i.getColBefore(t):i.getColAfter(t),!t)break;while(!t.getColDef().filter||!t.getColDef().floatingFilter);return t}handleKeyDown(e){super.handleKeyDown(e);let i=this.getWrapperHasFocus();switch(e.key){case $.UP:case $.DOWN:i||e.preventDefault();case $.LEFT:case $.RIGHT:if(i)return;e.stopPropagation();case $.ENTER:i&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case $.ESCAPE:i||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;let t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&l_(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){let r=this.lastFocusEvent,a=!!(r&&r.key===$.TAB);if(r&&a){let s=r.shiftKey;this.focusService.focusInto(this.eGui,s)}}let o=this.getRowIndex();this.beans.focusService.setFocusedHeader(o,this.column)}setupHover(e){e.createManagedBean(new $R([this.column],this.eGui));let i=()=>{if(!this.gos.get("columnHoverHighlight"))return;let t=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass("ag-column-hover",t)};e.addManagedEventListeners({columnHoverChanged:i}),i()}setupLeft(e){let i=new BR(this.column,this.eGui,this.beans);e.createManagedBean(i)}setupFilterButton(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()}setupUserComp(){if(!this.active)return;let e=this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){let e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;let{filterManager:i}=this.beans,t=n=>{if(n?.source==="filterDestroyed"&&!this.isAlive())return;let o=this.comp.getFloatingFilterComp();o&&o.then(r=>{if(r){let a=i?.getCurrentFloatingFilterParentModel(this.column),s=n?ae(M({},n),{columns:n.columns??[],source:n.source==="api"?"api":"columnFilter"}):null;r.onParentModelChanged(a,s)}})};[this.destroySyncListener]=e.addManagedListeners(this.column,{filterChanged:t}),i?.isFilterActive(this.column)&&t(null)}setupWidth(e){let i=()=>{let t=`${this.column.getActualWidth()}px`;this.comp.setWidth(t)};e.addManagedListeners(this.column,{widthChanged:i}),i()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){let e=!!this.beans.filterManager?.is
1609FilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){let i=this.active;this.setupActive();let t=!i&&this.active;i&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let n=this.active?this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,o=this.comp.getFloatingFilterComp();!o||!n?this.updateCompDetails(e,n,t):o.then(r=>{!r||this.beans.filterManager?.areFilterCompsDifferent(this.userCompDetails??null,n)?this.updateCompDetails(e,n,t):this.updateFloatingFilterParams(n)})}updateCompDetails(e,i,t){this.isAlive()&&(this.setCompDetails(i),this.setupFilterButton(),this.setupUi(),t&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e){if(!e)return;let i=e.params;this.comp.getFloatingFilterComp()?.then(t=>{let n=!1;t?.refresh&&typeof t.refresh=="function"&&t.refresh(i)!==null&&(n=!0),!n&&t?.onParamsUpdated&&typeof t.onParamsUpdated=="function"&&t.onParamsUpdated(i)!==null&&X("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")})}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};var pe="32.3.9";function YR(e){return!!e.filterManager?.isColumnFilterPresent()||!!e.filterManager?.isAggregateFilterPresent()}function KR(e,i,t){return e.filterManager?.getFilterInstance(i,t)}function QR(e,i){return e.filterManager?.getColumnFilterInstance(i)??Promise.resolve(void 0)}function ZR(e,i){let t=e.columnModel.getColDefCol(i);if(t)return e.filterManager?.destroyFilter(t,"api")}function JR(e,i){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(i))}function XR(e){return e.filterManager?.getFilterModel()??{}}function eF(e,i){return e.filterManager?.getColumnFilterModel(i)??null}function tF(e,i,t){return e.filterManager?.setColumnFilterModel(i,t)??Promise.resolve()}function iF(e,i){let t=e.columnModel.getCol(i);if(!t){Xe(`column '${i}' not found`);return}e.menuService.showFilterMenu({column:t,containerType:"columnFilter",positionBy:"auto"})}function nF(e,i,t){if(i==null)return null;let n=null,{compName:o,jsComp:r,fwComp:a}=gR.getCompKeys(e,i,Og);return o?n={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[o]:r==null&&a==null&&i.filter===!0&&(n=t()),n}var L1={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},N1=["january","february","march","april","may","june","july","august","september","october","november","december"],oF=class extends fe{constructor(){super(...arguments),this.beanName="columnFilterService",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.rowModel=e.rowModel,this.userComponentFactory=e.userComponentFactory,this.rowRenderer=e.rowRenderer,this.dataTypeService=e.dataTypeService,this.filterManager=e.filterManager}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),rowDataUpdated:()=>this.onNewRowsLoaded("rowDataUpdated"),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel=M({},this.gos.get("initialState")?.filter?.filterModel??{})}setFilterModel(e,i="api"){if(this.dataTypeService?.isPendingInference()){this.filterModelUpdateQueue.push({model:e,source:i});return}let t=[],n=this.getFilterModel(!0);if(e){let o=new Set(Object.keys(e));
1609this.allColumnFilters.forEach((r,a)=>{let s=e[a];t.push(this.setModelOnFilterWrapper(r.filterPromise,s)),o.delete(a)}),o.forEach(r=>{let a=this.columnModel.getColDefCol(r)||this.columnModel.getCol(r);if(!a){X("setFilterModel() - no column found for colId: "+r);return}if(!a.isFilterAllowed()){X("setFilterModel() - unable to fully apply model, filtering disabled for colId: "+r);return}let s=this.getOrCreateFilterWrapper(a);if(!s){X("setFilterModel() - unable to fully apply model, unable to create filter for colId: "+r);return}t.push(this.setModelOnFilterWrapper(s.filterPromise,e[r]))})}else this.allColumnFilters.forEach(o=>{t.push(this.setModelOnFilterWrapper(o.filterPromise,null))});cn.all(t).then(()=>{let o=this.getFilterModel(!0),r=[];this.allColumnFilters.forEach((a,s)=>{let l=n?n[s]:null,c=o?o[s]:null;Us(l,c)||r.push(a.column)}),r.length>0&&this.filterManager?.onFilterChanged({columns:r,source:i})})}setModelOnFilterWrapper(e,i){return new cn(t=>{e.then(n=>{typeof n.setModel!="function"&&(X("filter missing setModel method, which is needed for setFilterModel"),t()),(n.setModel(i)||cn.resolve()).then(()=>t())})})}getFilterModel(e){let i={},{allColumnFilters:t,initialFilterModel:n}=this;return t.forEach((o,r)=>{let a=this.getModelFromFilterWrapper(o);le(a)&&(i[r]=a)}),e||Object.entries(n).forEach(([o,r])=>{le(r)&&!t.has(o)&&this.columnModel.getCol(o)?.isFilterAllowed()&&(i[o]=r)}),i}getModelFromFilterWrapper(e){let{filter:i}=e;return i?typeof i.getModel!="function"?(X("filter API missing getModel method, which is needed for getFilterModel"),null):i.getModel():this.getModelFromInitialState(e.column)}getModelFromInitialState(e){return this.initialFilterModel[e.getColId()]??null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){return this.allColumnFilters.size?(this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"advancedFilterEnabled")),!0):!1}doAggregateFiltersPass(e,i){return this.doColumnFiltersPass(e,i,!0)}updateActiveFilters(){let e=r=>r?r.isFilterActive?r.isFilterActive():(X("Filter is missing isFilterActive() method"),!1):!1,i=!!hg(this.gos),t=r=>{if(!r.isPrimary())return!0;let s=!this.columnModel.isPivotActive();return!r.isValueActive()||!s?!1:this.columnModel.isPivotMode()?!0:i},n=[],o=[];return this.forEachColumnFilter((r,a)=>{e(r)&&(t(a.column)?n.push(r):o.push(r))}).then(()=>{this.activeAggregateFilters=n,this.activeColumnFilters=o})}updateFilterFlagInColumns(e,i){return this.forEachColumnFilter((t,n)=>n.column.setFilterActive(t.isFilterActive(),e,i))}forEachColumnFilter(e){return cn.all(Array.from(this.allColumnFilters.values()).map(i=>i.filterPromise.then(t=>e(t,i))))}doColumnFiltersPass(e,i,t){let{data:n,aggData:o}=e,r=t?this.activeAggregateFilters:this.activeColumnFilters,a=t?o:n;for(let s=0;s<r.length;s++){let l=r[s];if(!(l==null||l===i)){if(typeof l.doesFilterPass!="function")throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:a}))return!1}}return!0}callOnFilterChangedOutsideRenderCycle(e){let i=()=>this.filterManager?.onFilterChanged(e);this.rowRenderer.isRefreshInProgress()?setTimeout(i,0):i()}updateBeforeFilterChanged(e={}){let{filterInstance:i,additionalEventAttributes:t}=e;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",t).then(()=>{this.allColumnFilters.forEach(n=>{n.filterPromise&&n.filterPromise.then(o=>{o&&o!==i&&o.onAnyFilterChanged&&o.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){this.forEachColumnFilter(i=>{i.onNewRowsLoaded&&i.onNewRowsLoaded()}).then(()=>this.updateFilterFlagInColumns(e,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createValueGetter(e){return({node:i})=>this.valueService.getValue(e,i,!0)}createGetValue(e){return(i,t)=>{let n=t?this.columnModel.getCol(t):e;return n?this.valueService.getValue(n,i,!0):void 0}}isFilterActive(e){let{filter:i}=this.cachedFilter(e)??{};return i?i.isFilterActive():this.getModelFromInitialState(e)!=null}getOrCreateFilterWrapper(e){if(!e.isFilterAllowed())return null;let i=this.cachedFilter(e);
1609return i||(i=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,i)),i}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e){let i;if(eg(this.gos))i="agSetColumnFilter";else{let t=this.dataTypeService?.getBaseDataType(e);t==="number"?i="agNumberColumnFilter":t==="date"||t==="dateString"?i="agDateColumnFilter":i="agTextColumnFilter"}return i}getDefaultFloatingFilter(e){let i;if(eg(this.gos))i="agSetColumnFloatingFilter";else{let t=this.dataTypeService?.getBaseDataType(e);t==="number"?i="agNumberColumnFloatingFilter":t==="date"||t==="dateString"?i="agDateColumnFloatingFilter":i="agTextColumnFloatingFilter"}return i}createFilterInstance(e,i){let t=this.getDefaultFilter(e),n=e.getColDef(),o,r=ae(M({},this.createFilterParams(e,n)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(o,e)(),filterChangedCallback:s=>this.filterChangedCallbackFactory(o,e)(s),doesRowPassOtherFilter:s=>this.filterManager?this.filterManager.doesRowPassOtherFilters(o,s):!0}),a=this.userComponentFactory.getFilterDetails(n,r,t);return a?{filterPromise:()=>{let s=a.newAgStackInstance();return s?.then(l=>{o=l,i&&(i.filter=l)}),s},compDetails:a}:{filterPromise:null,compDetails:null}}createFilterParams(e,i){return this.gos.addGridCommonParams({column:e,colDef:e_(i),rowModel:this.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},valueGetter:this.createValueGetter(e),getValue:this.createGetValue(e),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(e){let i={column:e,filterPromise:null,compiledElement:null,compDetails:null},{filterPromise:t,compDetails:n}=this.createFilterInstance(e,i);return i.filterPromise=t?.()??null,i.compDetails=n,i}onColumnsChanged(){let e=[];this.allColumnFilters.forEach((t,n)=>{let o;t.column.isPrimary()?o=this.columnModel.getColDefCol(n):o=this.columnModel.getCol(n),!(o&&o===t.column)&&(e.push(t.column),this.disposeFilterWrapper(t,"columnChanged"),this.disposeColumnListener(n))});let i=e.every(t=>t.getColDef().filter==="agGroupColumnFilter");e.length>0&&!i?this.filterManager?.onFilterChanged({columns:e,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){this.columnModel.getAutoCols()?.forEach(i=>{i.getColDef().filter==="agGroupColumnFilter"&&this.getOrCreateFilterWrapper(i)})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;let{filter:t}=this.allColumnFilters.get(e.getColId())??{};return t&&typeof t?.isFilterAllowed=="function"?t.isFilterAllowed():!0}getFloatingFilterCompDetails(e,i){let t=l=>{let c=this.getOrCreateFilterWrapper(e)?.filterPromise;c?.then(u=>{l(Bs(u))})},n=e.getColDef(),o=ae(M({},this.createFilterParams(e,n)),{filterChangedCallback:()=>t(l=>this.filterChangedCallbackFactory(l,e)())}),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(n,Og,o),a=nF(this.frameworkOverrides,n,()=>this.getDefaultFloatingFilter(e));a==null&&(a="agReadOnlyFloatingFilter");let s={column:e,filterParams:r,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:t,showParentFilter:i,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(n,s,a)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilter(e,i="api"){let t=e.getColId(),n=this.allColumnFilters.get(t);this.disposeColumnListener(t),delete this.initialFilterModel[t],n&&(this.disposeFilterWrapper(n,i),this.filterManager?.onFilterChanged({columns:[e],source:"api"}))}disposeColumnListener(e){let i=this.allColumnListeners.get(e);i&&(this.allColumnListeners.delete(e),i())}disposeFilterWrapper(e,i){e.filterPromise.then(t=>{this.destroyBean(t),e.column.setFilterActive(!1,"filterDestroyed"),this.allColumnFilters.delete(e.column.getColId()),this.eventService.dispatchEvent({type:"filterDestroyed",source:i,column:e.column})})}filterModifiedCallbackFactory(e,i){return()=>{this.eventService.dispatchEvent({type:"filterModified",column:i,filterInstance:e})}}filterChangedCallbackFactory(e,i){return t=>{let n=t?.source??"columnFilter",o={filter:e,additionalEventAttributes:t,columns:[i],source:n};this.callOnFilterChangedOutsideRenderCycle(o)}}checkDestroyFilter(e){let i=this.allColumnFilters.get(e);if(!i)return;
1609let t=i.column,{compDetails:n}=t.isFilterAllowed()?this.createFilterInstance(t):{compDetails:null};if(this.areFilterCompsDifferent(i.compDetails,n)){this.destroyFilter(t,"paramsUpdated");return}let o=t.getColDef().filterParams;if(!i.filterPromise){this.destroyFilter(t,"paramsUpdated");return}i.filterPromise.then(r=>{(r?.refresh?r.refresh(M(ae(M({},this.createFilterParams(t,t.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(r,t),filterChangedCallback:this.filterChangedCallbackFactory(r,t),doesRowPassOtherFilter:s=>this.filterManager?this.filterManager.doesRowPassOtherFilters(r,s):!0}),o)):!0)===!1&&this.destroyFilter(t,"paramsUpdated")})}setColumnFilterWrapper(e,i){let t=e.getColId();this.allColumnFilters.set(t,i),this.allColumnListeners.set(t,this.addManagedListeners(e,{colDefChanged:()=>this.checkDestroyFilter(t)})[0])}areFilterCompsDifferent(e,i){if(!i||!e)return!0;let{componentClass:t}=e,{componentClass:n}=i;return!(t===n||t?.render&&n?.render&&t.render===n.render)}hasFloatingFilters(){return this.columnModel.getCols().some(i=>i.getColDef().floatingFilter)}getFilterInstance(e,i){i&&this.getFilterInstanceImpl(e).then(t=>{let n=Bs(t);i(n)})}getColumnFilterInstance(e){return new Promise(i=>{this.getFilterInstanceImpl(e).then(t=>{i(Bs(t))})})}getFilterInstanceImpl(e){let i=this.columnModel.getColDefCol(e);return i?this.getOrCreateFilterWrapper(i)?.filterPromise??cn.resolve(null):cn.resolve(void 0)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:e,source:i})=>this.setFilterModel(e,i)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:e,model:i,resolve:t})=>{this.setColumnFilterModel(e,i).then(()=>t())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(e){let i=this.getFilterWrapper(e);return i?this.getModelFromFilterWrapper(i):null}setColumnFilterModel(e,i){if(this.dataTypeService?.isPendingInference()){let r=()=>{},a=new Promise(s=>{r=s});return this.columnFilterModelUpdateQueue.push({key:e,model:i,resolve:r}),a}let t=this.columnModel.getColDefCol(e),n=t?this.getOrCreateFilterWrapper(t):null;return n?(r=>new Promise(a=>{r.then(s=>a(s))}))(this.setModelOnFilterWrapper(n.filterPromise,i)):Promise.resolve()}getFilterWrapper(e){let i=this.columnModel.getColDefCol(e);return i?this.cachedFilter(i)??null:null}setColDefPropertiesForDataType(e,i,t){let n=eg(this.gos),o=this.localeService.getLocaleTextFunc(),r=a=>{let{filterParams:s}=e;e.filterParams=typeof s=="object"?M(M({},s),a):a};switch(i.baseDataType){case"number":{n&&r({comparator:(a,s)=>{let l=a==null?0:parseInt(a),c=s==null?0:parseInt(s);return l===c?0:l>c?1:-1}});break}case"boolean":{r(n?{valueFormatter:a=>le(a.value)?o(String(a.value),a.value?"True":"False"):o("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(a,s)=>s,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(a,s)=>s===!1,numberOfInputs:0}]});break}case"date":{n&&r({valueFormatter:a=>{let s=t(a);return le(s)?s:o("blanks","(Blanks)")},treeList:!0,treeListFormatter:(a,s)=>{if(s===1&&a!=null){let l=N1[Number(a)-1];return o(l,L1[l])}return a??o("blanks","(Blanks)")}});break}case"dateString":{let a=i.dateParser;r(n?{valueFormatter:s=>{let l=t(s);return le(l)?l:o("blanks","(Blanks)")},treeList:!0,treeListPathGetter:s=>{let l=a(s??void 0);return l?[String(l.getFullYear()),String(l.getMonth()+1),String(l.getDate())]:null},treeListFormatter:(s,l)=>{if(l===1&&s!=null){let c=N1[Number(s)-1];return o(c,L1[c])}return s??o("blanks","(Blanks)")}}:{comparator:(s,l)=>{let c=a(l);return l==null||c<s?-1:c>s?1:0}});break}case"object":{n?r({valueFormatter:a=>{let s=t(a);return le(s)?s:o("blanks","(Blanks)")}}):e.filterValueGetter=a=>t({column:a.column,node:a.node,value:this.valueService.getValue(a.column,a.node)});break}}}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear()}};function rF(e){return!!e.filterManager?.isAnyFilterPresent()}function aF(e,i="api"){e.filterManager?.onFilterChanged({source:i})}var sF=class extends gi{constructor(){super(` 1610 <div class="ag-floating-filter-input" role="presentation"> 1611 <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field> 1612 </div>`,[Qd]),this.eFloatingFilterText=We}wireBeans(e){this.columnNameService=e.columnNameService}destroy(){super.destroy()}init(e){this.params=e;let i=this.columnNameService.getDisplayNameForColumn(e.column,"header",!0),t=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${i} ${t("ariaFilterInput","Filter Input")}`)}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(i=>{if(i.getModelAsString){let t=i.getModelAsString(e);this.eFloatingFilterText.setValue(t)}})}onParamsUpdated(e){this.refresh(e)}refresh(e){this.init(e)}},L_=class extends gi{wireBeans(e){this.columnNameService=e.columnNameService}getDefaultDebounceMs(){return 0}destroy(){super.destroy()}isEventFromFloatingFilter(e){return e&&e.afterFloatingFilter}isEventFromDataChange(e){return e?.afterDataChange}getLastType(){return this.lastType}isReadOnly(){return this.readOnly}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.getDefaultOption();return}let i=e.operator,t;i?t=e.conditions[0]:t=e,this.lastType=t.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;let t=e;return this.isTypeEditable(t.type)}
vendor: 14,736 bytes, lines 1612-1622
1612init(e){this.setSimpleParams(e,!1)}setSimpleParams(e,i=!0){this.optionsFactory=new w_,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),i||(this.lastType=this.optionsFactory.getDefaultOption()),this.readOnly=!!e.filterParams.readOnly;let t=this.isTypeEditable(this.optionsFactory.getDefaultOption());this.setEditable(t)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.setSimpleParams(e)}doesFilterHaveSingleInput(e){let i=this.optionsFactory.getCustomOption(e),{numberOfInputs:t}=i||{};return t==null||t==1}isTypeEditable(e){let i=["inRange","empty","blank","notBlank"];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&i.indexOf(e)<0}getAriaLabel(e){let i=this.columnNameService.getDisplayNameForColumn(e.column,"header",!0),t=this.localeService.getLocaleTextFunc();return`${i} ${t("ariaFilterInput","Filter Input")}`}},lF=class extends L_{constructor(){super(` 1613 <div class="ag-floating-filter-input" role="presentation"> 1614 <ag-input-text-field data-ref="eReadOnlyText"></ag-input-text-field> 1615 <div data-ref="eDateWrapper" style="display: flex;"></div> 1616 </div>`,[Qd]),this.eReadOnlyText=We,this.eDateWrapper=We}wireBeans(e){super.wireBeans(e),this.context=e.context,this.userComponentFactory=e.userComponentFactory}getDefaultFilterOptions(){return R_}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new F_(this.filterParams,this.localeService,this.optionsFactory);let i=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(i("ariaDateFilterInput","Date Filter Input"))}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){let i=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(i),i){if(e){let t=e;this.dateComp.setDate(hi(t.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){So(this.eDateWrapper,e),So(this.eReadOnlyText.getGui(),!e)}onParentModelChanged(e,i){this.isEventFromFloatingFilter(i)||this.isEventFromDataChange(i)||(super.setLastTypeFromModel(e),this.updateCompOnModelChange(e))}onDateChanged(){let e=this.dateComp.getDate(),i=Ri(e);this.params.parentFilterInstance(t=>{if(t){let n=hi(i);t.onFloatingFilterChanged(this.getLastType()||null,n)}})}getDateComponentParams(){let e=Ng(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:dn(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}}createDateComponent(){this.dateComp=new P_(this.context,this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper,e=>{e.setInputAriaLabel(this.getAriaLabel(this.params))}),this.addDestroyFunc(()=>this.dateComp.destroy())}updateDateComponent(){let e=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)}getFilterModelFormatter(){return this.filterModelFormatter}},cF=class extends gi{constructor(){super(` 1617 <div class="ag-filter-filter"> 1618 <ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field> 1619 </div>`,[Qd]),this.eDateInput=We}destroy(){super.destroy()}init(e){this.params=e,this.setParams(e);let i=this.eDateInput.getInputElement();this.addManagedListeners(i,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||i.focus()},input:t=>{t.target===An(this.gos)&&(this.eDateInput.isDisabled()||this.params.onDateChanged())}})}setParams(e){let i=this.eDateInput.getInputElement(),t=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=t&&ur(),i.type=t?"date":"text";let{minValidYear:n,maxValidYear:o,minValidDate:r,maxValidDate:a}=e.filterParams||{};if(r&&n&&X("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),a&&o&&X("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),r&&a){let[s,l]=[r,a].map(c=>c instanceof Date?c:hi(c));s&&l&&s.getTime()>l.getTime()&&X("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}r?r instanceof Date?i.min=Gs(r):i.min=r:n&&(i.min=`${n}-01-01`),a?a instanceof Date?i.max=Gs(a):i.max=a:o&&(i.max=`${o}-12-31`)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams(e)}getDate(){return hi(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(Ri(e,!1))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()}shouldUseBrowserDatePicker(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:NP()||VP()||ur()&&LP()>=14.1}},N_=class extends fe{constructor(e){super(),this.params=e,this.eFloatingFilterTextInput=We,this.valueChangedListener=()=>{}}setupGui(e){this.eFloatingFilterTextInput=this.createManagedBean(new pr(this.params?.config));let i=this.eFloatingFilterTextInput.getGui();e.appendChild(i);let t=n=>this.valueChangedListener(n);this.addManagedListeners(i,{input:t,keydown:t})}setEditable(e){this.eFloatingFilterTextInput.setDisabled(!e)}setAutoComplete(e){this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.eFloatingFilterTextInput.getValue()}setValue(e,i){this.eFloatingFilterTextInput.setValue(e,i)}setValueChangedListener(e){this.valueChangedListener=e}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)}},V_=class extends L_{constructor(){super(...arguments),this.eFloatingFilterInputContainer=We}postConstruct(){this.setTemplate(` 1620 <div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div> 1621 `)}getDefaultDebounceMs(){return 500}onParentModelChanged(e,i){this.isEventFromFloatingFilter(i)||this.isEventFromDataChange(i)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))}init(e){this.setupFloatingFilterInputService(e),super.init(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){this.params=e;let i=e.browserAutoComplete??!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:i}),this.applyActive=$d(this.params.filterParams),!this.isReadOnly()){let t=Ng(this.params.filterParams,this.getDefaultDebounceMs()),n=dn(this.syncUpWithParentFilter.bind(this),t);this.floatingFilterInputService.setValueChangedListener(n)}}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){let i=this.floatingFilterInputService.getValue();Ks(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(i,!0)}syncUpWithParentFilter(e){let i=e.key===$.ENTER;if(this.applyActive&&!i)return;let t=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(t=M_(t),this.floatingFilterInputService.setValue(t,!0)),this.params.parentFilterInstance(n=>{n&&n.onFloatingFilterChanged(this.getLastType()||null,t||null)})}setEditable(e){this.floatingFilterInputService.setEditable(e)}},dF=class extends fe{constructor(){super(...arguments),this.valueChangedListener=()=>{},this.numberInputActive=!0}setupGui(e){this.eFloatingFilterNumberInput=this.createManagedBean(new zg),this.eFloatingFilterTextInput=this.createManagedBean(new pr),this.eFloatingFilterTextInput.setDisabled(!0);let i=this.eFloatingFilterNumberInput.getGui(),t=this.eFloatingFilterTextInput.getGui();e.appendChild(i),e.appendChild(t),this.setupListeners(i,n=>this.valueChangedListener(n)),this.setupListeners(t,n=>this.valueChangedListener(n))}setEditable(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,i){this.getActiveInputElement().setValue(e,i)}getActiveInputElement(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput}setValueChangedListener(e){this.valueChangedListener=e}setupListeners(e,i){this.addManagedListeners(e,{input:i,keydown:i})}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)}},uF=class extends V_{init(e){super.init(e),this.filterModelFormatter=new E_(this.localeService,this.optionsFactory,e.filterParams?.numberFormatter)}onParamsUpdated(e){this.refresh(e)}refresh(e){bg(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return k_}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(e){return this.allowedCharPattern=bg(e.filterParams),this.allowedCharPattern?this.createManagedBean(new N_({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new dF)}},pF=class extends V_{init(e){super.init(e),this.filterModelFormatter=new I_(this.localeService,this.optionsFactory)}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return T_}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(){return this.createManagedBean(new N_)}};function hF(e){return!!e.filterManager?.isQuickFilterPresent()}function gF(e){return e.gos.get("quickFilterText")}function mF(e){e.filterManager?.resetQuickFilterCache()}var fF=class extends fe{constructor(){super(...arguments),this.beanName="quickFilterService",this.quickFilter=null,this.quickFilterParts=null}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.rowModel=e.rowModel,this.pivotResultColsService=e.pivotResultColsService}postConstruct(){let e=this.resetQuickFilterCache.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{this.gos.get("includeHiddenColumnsInQuickFilter")||this.resetQuickFilterCache()}}),this.addManagedPropertyListener("quickFilterText",i=>this.setQuickFilter(i.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onQuickFilterColumnConfigChanged()),this.quickFilter=this.parseQuickFilter(this.gos.get("quickFilterText")),this.parser=this.gos.get("quickFilterParser"),this.matcher=this.gos.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setQuickFilterParserAndMatcher())}refreshQuickFilterCols(){let e=this.columnModel.isPivotMode(),i=this.columnModel.getAutoCols(),t=this.columnModel.getColDefCols(),n=(e&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")?this.pivotResultColsService.getPivotResultCols()?.list:t)??[];i&&(n=n.concat(i)),this.colsForQuickFilter=this.gos.get("includeHiddenColumnsInQuickFilter")?n:n.filter(o=>o.isVisible()||o.isRowGroupActive())}isQuickFilterPresent(){return this.quickFilter!==null}doesRowPassQuickFilter(e){let i=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(i,e):this.quickFilterParts.every(t=>i?this.doesRowPassQuickFilterCache(e,t):this.doesRowPassQuickFilterNoCache(e,t))}resetQuickFilterCache(){this.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}setQuickFilterParts(){let{quickFilter:e,parser:i}=this;e?this.quickFilterParts=i?i(e):e.split(" "):this.quickFilterParts=null}parseQuickFilter(e){return le(e)?wo(this.gos)?e.toUpperCase():(X("Quick filtering only works with the Client-Side Row Model"),null):null}setQuickFilter(e){if(e!=null&&typeof e!="string"){X(`Grid option quickFilterText only supports string inputs, received: ${typeof e}`);return}let i=this.parseQuickFilter(e);this.quickFilter!==i&&(this.quickFilter=i,this.setQuickFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setQuickFilterParserAndMatcher(){let e=this.gos.get("quickFilterParser"),i=this.gos.get("quickFilterMatcher"),t=e!==this.parser||i!==this.matcher;this.parser=e,this.matcher=i,t&&(this.setQuickFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onQuickFilterColumnConfigChanged(){this.refreshQuickFilterCols(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassQuickFilterNoCache(e,i){return this.colsForQuickFilter.some(t=>{let n=this.getQuickFilterTextForColumn(t,e);return le(n)&&n.indexOf(i)>=0})}doesRowPassQuickFilterCache(e,i){return this.checkGenerateQuickFilterAggregateText(e),e.quickFilterAggregateText.indexOf(i)>=0}doesRowPassQuickFilterMatcher(e,i){let t;e?(this.checkGenerateQuickFilterAggregateText(i),t=i.quickFilterAggregateText):t=this.getQuickFilterAggregateText(i);let{quickFilterParts:n,matcher:o}=this;return o(n,t)}checkGenerateQuickFilterAggregateText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getQuickFilterAggregateText(e))}getQuickFilterTextForColumn(e,i){let t=this.valueService.getValue(e,i,!0),n=e.getColDef();if(n.getQuickFilterText){let o=this.gos.addGridCommonParams({value:t,node:i,data:i.data,column:e,colDef:n});t=n.getQuickFilterText(o)}return le(t)?t.toString().toUpperCase():null}getQuickFilterAggregateText(e){let i=[];return this.colsForQuickFilter.forEach(t=>{let n=this.getQuickFilterTextForColumn(t,e);le(n)&&i.push(n)}),i.join(` 1622`)}}
1622,Hg={version:pe,moduleName:"@ag-grid-community/filter-core",beans:[wR]},vF={version:pe,moduleName:"@ag-grid-community/filter-api",apiFunctions:{isAnyFilterPresent:rF,onFilterChanged:aF},dependantModules:[Hg]},Zd={version:pe,moduleName:"@ag-grid-community/column-filter",beans:[oF],dependantModules:[Hg]},CF={version:pe,moduleName:"@ag-grid-community/column-filter-api",apiFunctions:{isColumnFilterPresent:YR,getFilterInstance:KR,getColumnFilterInstance:QR,destroyFilter:ZR,setFilterModel:JR,getFilterModel:XR,getColumnFilterModel:eF,setColumnFilterModel:tF,showColumnFilter:iF},dependantModules:[Zd,vF]},Gg={version:pe,moduleName:"@ag-grid-community/floating-filter-core",controllers:[{name:"headerFilterCell",classImp:qR}],dependantModules:[Zd]},ene={version:pe,moduleName:"@ag-grid-community/floating-filter",dependantModules:[Gg,Zd]},bF={version:pe,moduleName:"@ag-grid-community/read-only-floating-filter",userComponents:[{name:"agReadOnlyFloatingFilter",classImp:sF}],dependantModules:[Gg]},_F={version:pe,moduleName:"@ag-grid-community/simple-filter",dependantModules:[Zd],userComponents:[{name:"agTextColumnFilter",classImp:NR},{name:"agNumberColumnFilter",classImp:LR},{name:"agDateColumnFilter",classImp:zR},{name:"agDateInput",classImp:cF}]},yF={version:pe,moduleName:"@ag-grid-community/simple-floating-filter",dependantModules:[_F,Gg],userComponents:[{name:"agTextColumnFloatingFilter",classImp:pF},{name:"agNumberColumnFloatingFilter",classImp:uF},{name:"agDateColumnFloatingFilter",classImp:lF}]},z_={version:pe,moduleName:"@ag-grid-community/quick-filter-core",beans:[fF],dependantModules:[Hg]},wF={version:pe,moduleName:"@ag-grid-community/quick-filter-api",apiFunctions:{isQuickFilterPresent:hF,getQuickFilter:gF,resetQuickFilter:mF},dependantModules:[z_]},xF={version:pe,moduleName:"@ag-grid-community/quick-filter",dependantModules:[z_,wF]},SF={version:pe,moduleName:"@ag-grid-community/filter",dependantModules:[yF,bF,xF,CF]};var kF=100,tne=kF/2;var EF=class extends gi{constructor(){super(` 1623 <div class="ag-selection-checkbox" role="presentation"> 1624 <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox> 1625 </div>`,[m_]),this.eCheckbox=We}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){let e=this.localeService.getLocaleTextFunc(),i=this.rowNode.isSelected(),t=s_(e,i),[n,o]=this.rowNode.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],r=e(n,o);this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(`${r} (${t})`)}onClicked(e,i,t){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:t.shiftKey,groupSelectsFiltered:i,event:t,source:"checkboxSelected"})}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:n=>mg(n),click:n=>{mg(n);let o=kg(this.gos)==="filteredDescendants",r=this.eCheckbox.getValue();this.shouldHandleIndeterminateState(r,o)?this.onClicked(!0,o,n||{})===0&&this.onClicked(!1,o,n):r?this.onClicked(!1,o,n):this.onClicked(!0,o,n||{})}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),Y1(this.gos)||typeof this.getIsVisible()=="function"){let n=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n}),this.addManagedListeners(this.rowNode,{dataChanged:n,cellChanged:n}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}shouldHandleIndeterminateState(e,i){return i&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&wo(this.gos)}showOrHideSelect(){let e=this.rowNode.selectable,i=this.getIsVisible();if(e)if(typeof i=="function"){let o=this.overrides?.callbackParams;if(!this.column)e=i(ae(M({},o),{node:this.rowNode,data:this.rowNode.data}));else{let r=this.column.createColumnFunctionCallbackParams(this.rowNode);e=i(M(M({},o),r))}}else e=i??!1;let t=this.gos.get("rowSelection");if(t&&typeof t!="string"?!WD(t):this.column?.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!e),this.setVisible(!0),this.setDisplayed(!0);return}if(this.overrides?.removeHidden){this.setDisplayed(e);return}this.setVisible(e)}getIsVisible(){if(this.overrides)return this.overrides.isVisible;let e=this.gos.get("rowSelection");return e&&typeof e!="string"?Sg(e):this.column?.getColDef()?.checkboxSelection}},TF=class extends gi{constructor(e,i,t){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=e,this.column=i,this.eCell=t}postConstruct(){this.getGui().appendChild(yo("rowDrag",this.gos,null)),this.addGuiEventListener("mousedown",i=>{i.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){let i=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);let t=()=>{try{let n=JSON.stringify(this.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch{}};if(i){let n=this.gos.addGridCommonParams({rowNode:this.rowNode,dragEvent:e});i(n)}else t()}checkVisibility(){let e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}}
1625,IF=class extends fe{constructor(e,i){super(),this.staticClasses=[],this.cellCtrl=e,this.beans=i,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let e=this.column.getColDef(),{cellClassRules:i}=e,t=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,rowIndex:this.rowNode.rowIndex});this.beans.stylingService.processClassRules(i===this.cellClassRules?void 0:this.cellClassRules,i,t,n=>this.cellComp.addOrRemoveCssClass(n,!0),n=>this.cellComp.addOrRemoveCssClass(n,!1)),this.cellClassRules=i}applyUserStyles(){let e=this.column.getColDef();if(!e.cellStyle)return;let i;if(typeof e.cellStyle=="function"){let t=this.beans.gos.addGridCommonParams({column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex}),n=e.cellStyle;i=n(t)}else i=e.cellStyle;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){let e=this.column.getColDef(),i=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,rowIndex:this.rowNode.rowIndex});this.staticClasses.length&&this.staticClasses.forEach(t=>this.cellComp.addOrRemoveCssClass(t,!1)),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,i),this.staticClasses.length&&this.staticClasses.forEach(t=>this.cellComp.addOrRemoveCssClass(t,!0))}destroy(){super.destroy()}},MF=class extends fe{constructor(e,i,t,n,o){super(),this.cellCtrl=e,this.beans=i,this.rowNode=n,this.rowCtrl=o}setComp(e){this.eGui=e}onKeyDown(e){let i=e.key;switch(i){case $.ENTER:this.onEnterKeyDown(e);break;case $.F2:this.onF2KeyDown(e);break;case $.ESCAPE:this.onEscapeKeyDown(e);break;case $.TAB:this.onTabKeyDown(e);break;case $.BACKSPACE:case $.DELETE:this.onBackspaceOrDeleteKeyDown(i,e);break;case $.DOWN:case $.UP:case $.RIGHT:case $.LEFT:this.onNavigationKeyDown(e,i);break}}onNavigationKeyDown(e,i){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,i,this.cellCtrl.getCellPosition(),!0),e.preventDefault())}onShiftRangeSelect(e){if(!this.beans.rangeService)return;let i=this.beans.rangeService.extendLatestRangeInDirection(e);i&&this.beans.navigationService.ensureCellVisible(i)}onTabKeyDown(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,i){let{cellCtrl:t,beans:n,rowNode:o}=this,{gos:r,rangeService:a,eventService:s}=n;if(!t.isEditing()){if(s.dispatchEvent({type:"keyShortcutChangedCellStart"}),AR(e,r.get("enableCellEditingOnBackspace"))){if(a&&Kd(r))a.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(t.isCellEditable()){let l=t.getColumn(),c=this.beans.valueService.getDeleteValue(l,o);o.setDataValue(l,c,"cellClear")}}else t.startRowOrCellEdit(e,i);s.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gos.get("enterNavigatesVertically")){let i=e.shiftKey?$.UP:$.DOWN;this.beans.navigationService.navigateToNextCell(null,i,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit($.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()}onF2KeyDown(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit($.F2,e)}onEscapeKeyDown(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.isEditing())return;let n=e.key;n===" "?this.onSpaceKeyDown(e):this.cellCtrl.startRowOrCellEdit(n,e)&&e.preventDefault()}onSpaceKeyDown(e){let{gos:i}=this.beans;if(!this.cellCtrl.isEditing()&&ND(i)){let t=this.rowNode.isSelected(),n=!t,o=kg(i)==="filteredDescendants",r=this.rowNode.setSelectedParams({newValue:n,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:"spaceKey"});
1625t===void 0&&r===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:o,event:e,source:"spaceKey"})}e.preventDefault()}destroy(){super.destroy()}},DF=class extends fe{constructor(e,i,t){super(),this.cellCtrl=e,this.beans=i,this.column=t}onMouseEvent(e,i){if(!J1(i))switch(e){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i);break}}onCellClicked(e){if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}let{eventService:i,rangeService:t,gos:n}=this.beans,o=e.ctrlKey||e.metaKey;t&&o&&t.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&t.intersectLastRange(!0);let r=this.cellCtrl.createEvent(e,"cellClicked");i.dispatchEvent(r);let a=this.column.getColDef();a.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{a.onCellClicked(r)})},0),(n.get("singleClickEdit")||a.singleClickEdit)&&!n.get("suppressClickEdit")&&!(e.shiftKey&&t?.getCellRanges().length!=0)&&this.cellCtrl.startRowOrCellEdit()}isDoubleClickOnIPad(){if(!d_()||JD("dblclick"))return!1;let e=new Date().getTime(),i=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,i}onCellDoubleClicked(e){let{column:i,beans:t,cellCtrl:n}=this,{eventService:o,frameworkOverrides:r,gos:a}=t,s=i.getColDef(),l=n.createEvent(e,"cellDoubleClicked");o.dispatchEvent(l),typeof s.onCellDoubleClicked=="function"&&window.setTimeout(()=>{r.wrapOutgoing(()=>{s.onCellDoubleClicked(l)})},0),!a.get("singleClickEdit")&&!a.get("suppressClickEdit")&&n.startRowOrCellEdit(null,e)}onMouseDown(e){let{ctrlKey:i,metaKey:t,shiftKey:n}=e,o=e.target,{cellCtrl:r,beans:a}=this,{eventService:s,rangeService:l,focusService:c,gos:u}=a;if(this.isRightClickInExistingRange(e))return;let m=l&&l.getCellRanges().length!=0;if(!n||!m){let C=u.get("enableCellTextSelection")&&e.defaultPrevented,_=(ur()||C)&&!r.isEditing()&&!IP(o);
1625r.focusCell(_)}if(n&&m&&!c.isCellFocused(r.getCellPosition())){e.preventDefault();let v=c.getFocusedCell();if(v){let{column:C,rowIndex:_,rowPinned:E}=v,P=a.rowRenderer.getRowByPosition({rowIndex:_,rowPinned:E})?.getCellCtrl(C);P?.isEditing()&&P.stopEditing(),c.setFocusedCell({column:C,rowIndex:_,rowPinned:E,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(o)){if(l){let v=this.cellCtrl.getCellPosition();if(n)l.extendLatestRangeToCell(v);else{let C=i||t;l.setRangeToCell(v,C)}}s.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){let{rangeService:i}=this.beans;if(i){let t=i.isCellInAnyRange(this.cellCtrl.getCellPosition()),n=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(t&&n)return!0}return!1}containsWidget(e){return l_(e,"ag-selection-checkbox",3)}onMouseOut(e){this.mouseStayingInsideCell(e)||(this.beans.eventService.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),this.beans.columnHoverService.clearMouseOver())}onMouseOver(e){this.mouseStayingInsideCell(e)||(this.beans.eventService.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),this.beans.columnHoverService.setMouseOver([this.column]))}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;let i=this.cellCtrl.getGui(),t=i.contains(e.target),n=i.contains(e.relatedTarget);return t&&n}destroy(){super.destroy()}},PF=class extends fe{constructor(e,i){super(),this.cellCtrl=e,this.beans=i,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventService,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(e){this.eGui=e,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){let e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))}onDisplayColumnsChanged(){let e=this.getColSpanningList();Eg(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventService,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;let e=this.getCellWidth();this.eGui.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,i)=>e+i.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){let e=this.column.getColSpan(this.rowNode),i=[];if(e===1)i.push(this.column);else{let t=this.column,n=this.column.getPinned();for(let o=0;t&&o<e&&(i.push(t),t=this.beans.visibleColsService.getColAfter(t),!(!t||Rt(t)||n!==t.getPinned()));o++);}return i}onLeftChanged(){if(!this.eGui)return;let e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=dr(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()==="left")return e;let i=this.beans.visibleColsService.getColsLeftWidth();if(this.column.getPinned()==="right"){let t=this.beans.visibleColsService.getBodyContainerWidth();return i+t+(e||0)}return i+(e||0)}applyRowSpan(e){if(this.rowSpan===1&&!e)return;let t=ha(this.beans.gos)*this.rowSpan;this.eGui.style.height=`${t}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}};var Os="ag-cell-range-selected",RF="ag-cell-range-chart",FF="ag-cell-range-single-cell",AF="ag-cell-range-chart-category",OF="ag-cell-range-handle",LF="ag-cell-range-top",NF="ag-cell-range-right",VF="ag-cell-range-bottom",zF="ag-cell-range-left",BF=class{constructor(e,i){this.beans=e,this.rangeService=e.rangeService,this.selectionHandleFactory=e.selectionHandleFactory,this.cellCtrl=i}setComp(e,i){this.cellComp=e,this.eGui=i,this.onCellSelectionChanged()}onCellSelectionChanged(){this.cellComp&&(this.rangeCount=this.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Os,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass(`${Os}-1`,this.rangeCount===1),this.cellComp.addOrRemoveCssClass(`${Os}-2`,this.rangeCount===2),this.cellComp.addOrRemoveCssClass(`${Os}-3`,this.rangeCount===3),this.cellComp.addOrRemoveCssClass(`${Os}-4`,this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(RF,this.hasChartRange),vg(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(FF,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())}updateRangeBorders(){let e=this.getRangeBorders(),i=this.isSingleCell(),t=!i&&e.top,n=!i&&e.right,o=!i&&e.bottom,r=!i&&e.left;this.cellComp.addOrRemoveCssClass(LF,t),this.cellComp.addOrRemoveCssClass(NF,n),this.cellComp.addOrRemoveCssClass(VF,o),this.cellComp.addOrRemoveCssClass(zF,r)}isSingleCell(){let{rangeService:e}=this.beans;return this.rangeCount===1&&!!e&&!e.isMoreThanOneCell()}getHasChartRange(){let{rangeService:e}=this.beans;if(!this.rangeCount||!e)return!1;let i=e.getCellRanges();return i.length>0&&i.every(t=>Q1([1,0],t.type))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){let e=this.beans.gos.get("enableRtl"),i=!1,t=!1,n=!1,o=!1,r=this.cellCtrl.getCellPosition().column,a=this.beans.visibleColsService,s,l;e?(s=a.getColAfter(r),l=a.getColBefore(r)):(s=a.getColBefore(r),l=a.getColAfter(r));let c=this.rangeService.getCellRanges().filter(u=>this.rangeService.isCellInSpecificRange(this.cellCtrl.getCellPosition(),u));s||(o=!0),l||(t=!0);for(let u=0;u<c.length&&!(i&&t&&n&&o);u++){let m=c[u],v=this.rangeService.getRangeStartRow(m),C=this.rangeService.getRangeEndRow(m);!i&&this.beans.rowPositionUtils.sameRow(v,this.cellCtrl.getCellPosition())&&(i=!0),!n&&this.beans.rowPositionUtils.sameRow(C,this.cellCtrl.getCellPosition())&&(n=!0),!o&&s&&m.columns.indexOf(s)<0&&(o=!0),!t&&l&&m.columns.indexOf(l)<0&&(t=!0)}return{top:i,right:t,bottom:n,left:o}}
1625refreshHandle(){if(this.beans.context.isDestroyed())return;let e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(OF,!!this.selectionHandle)}shouldHaveSelectionHandle(){let e=this.beans.gos,i=this.rangeService.getCellRanges(),t=i.length;if(this.rangeCount<1||t<1)return!1;let n=dr(i),o=this.cellCtrl.getCellPosition(),r=E1(e)&&!this.cellCtrl.isSuppressFillHandle(),a=YD(e),s=t===1&&!this.cellCtrl.isEditing()&&(r||a);if(this.hasChartRange){let c=i[0].type===1&&this.rangeService.isCellInSpecificRange(o,i[0]);this.cellComp.addOrRemoveCssClass(AF,c),s=n.type===0}return s&&n.endRow!=null&&this.rangeService.isContiguousRange(n)&&this.rangeService.isBottomRightCell(n,o)}addSelectionHandle(){let e=dr(this.rangeService.getCellRanges()).type,t=E1(this.beans.gos)&&Rt(e)?0:1;this.selectionHandle&&this.selectionHandle.getType()!==t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.selectionHandleFactory.createSelectionHandle(t)),this.selectionHandle.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}},HF="ag-cell",GF="ag-cell-auto-height",UF="ag-cell-normal-height",jF="ag-cell-focus",WF="ag-cell-first-right-pinned",$F="ag-cell-last-left-pinned",qF="ag-cell-not-inline-editing",YF="ag-column-hover",KF="ag-cell-wrap-text",QF=0,ZF=(()=>{let e=class _g extends fe{constructor(t,n,o,r){super(),this.column=t,this.rowNode=n,this.beans=o,this.rowCtrl=r,this.cellRangeFeature=void 0,this.cellPositionFeature=void 0,this.cellCustomStyleFeature=void 0,this.tooltipFeature=void 0,this.cellMouseListenerFeature=void 0,this.cellKeyboardListenerFeature=void 0,this.suppressRefreshCell=!1,this.onCellCompAttachedFuncs=[],this.onCellEditorAttachedFuncs=[],this.instanceId=t.getId()+"-"+QF++,this.colIdSanitised=i_(this.column.getId()),this.createCellPosition(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)}onFocusOut(){this.beans.focusService.clearRestoreFocus()}addFeatures(){this.cellPositionFeature=new PF(this,this.beans),this.cellCustomStyleFeature=new IF(this,this.beans),this.cellMouseListenerFeature=new DF(this,this.beans,this.column),this.cellKeyboardListenerFeature=new MF(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature(),this.beans.rangeService&&Kd(this.beans.gos)&&(this.cellRangeFeature=new BF(this.beans,this))}removeFeatures(){let t=this.beans.context;this.cellPositionFeature=t.destroyBean(this.cellPositionFeature),this.cellCustomStyleFeature=t.destroyBean(this.cellCustomStyleFeature),this.cellMouseListenerFeature=t.destroyBean(this.cellMouseListenerFeature),this.cellKeyboardListenerFeature=t.destroyBean(this.cellKeyboardListenerFeature),this.cellRangeFeature=t.destroyBean(this.cellRangeFeature),this.disableTooltipFeature()}enableTooltipFeature(t,n){let o=()=>{let s=this.column.getColDef(),l=this.rowNode.data;if(s.tooltipField&&le(l))return t_(l,s.tooltipField,this.column.isTooltipFieldContainsDots());let c=s.tooltipValueGetter;return c?c(this.beans.gos.addGridCommonParams({location:"cell",colDef:this.column.getColDef(),column:this.column,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,value:this.value,valueFormatted:this.valueFormatted})):null},r=this.beans.gos.get("tooltipShowMode")==="whenTruncated";!n&&r&&!this.isCellRenderer()&&(n=()=>{let s=this.getGui(),l=s.children.length===0?s:s.querySelector(".ag-cell-value");return l?l.scrollWidth>l.clientWidth:!0});let a={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getRowIndex:()=>this.cellPosition.rowIndex,getRowNode:()=>this.rowNode,getGui:()=>this.getGui(),getLocation:()=>"cell",getTooltipValue:t!=null?()=>t:o,getValueFormatted:()=>this.valueFormatted,shouldDisplayTooltip:n};this.tooltipFeature=new Ag(a,this.beans)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(t,n,o,r,a,s){this.cellComp=t,this.eGui=n,this.printLayout=r,s??(s=this),this.addDomData(s),this.addFeatures(),s.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasse
1625s(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(o,s),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.cellPositionFeature?.setComp(n),this.cellCustomStyleFeature?.setComp(t),this.tooltipFeature?.refreshToolTip(),this.cellKeyboardListenerFeature?.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,n),a&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(l=>l()),this.onCellCompAttachedFuncs=[])}setupAutoHeight(t,n){if(this.isAutoHeight=this.column.isAutoHeight(),!this.isAutoHeight||!t)return;let o=t.parentElement,r=Gd(this.beans.gos,this.rowNode).height,a=c=>{if(this.editing||!this.isAlive()||!n.isAlive())return;let{paddingTop:u,paddingBottom:m,borderBottomWidth:v,borderTopWidth:C}=va(o),_=u+m+v+C,D=t.offsetHeight+_;if(c<5){let T=Fn(this.beans.gos),O=!T||!T.contains(t),K=D==0;if(O||K){window.setTimeout(()=>a(c+1),0);return}}let P=Math.max(D,r);this.rowNode.setRowAutoHeight(P,this.column)},s=()=>a(0);s();let l=this.beans.resizeObserverService.observeResize(t,s);n.addDestroyFunc(()=>{l(),this.rowNode.setRowAutoHeight(void 0,this.column)})}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){let t=this.column.getColDef();return t.cellRenderer!=null||t.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(t=!1){let{beans:n,column:o,rowNode:r,cellRangeFeature:a,cellComp:s}=this,{userComponentFactory:l,animationFrameService:c}=n,u=this.getValueToDisplay(),m;if(r.stub&&r.groupData?.[this.column.getId()]==null){let C=this.createCellRendererParams();m=l.getLoadingCellRendererDetails(o.getColDef(),C)}else if(this.isCellRenderer()){let C=this.createCellRendererParams();m=l.getCellRendererDetails(o.getColDef(),C)}s.setRenderDetails(m,u,t),c.requestAnimationFrame(()=>a?.refreshHandle())}setupControlComps(){let t=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(t)),this.includeRowDrag=this.isIncludeControl(t.rowDrag),this.includeDndSource=this.isIncludeControl(t.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(t){return this.rowNode.rowPinned!=null?!1:typeof t=="function"||t===!0}isCheckboxSelection(t){let{rowSelection:n}=this.beans.gridOptions;return t.checkboxSelection||Tg(this.column)&&n&&typeof n!="string"&&Sg(n)}refreshShouldDestroy(){let t=this.column.getColDef(),n=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(t)),o=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),r=this.includeDndSource!=this.isIncludeControl(t.dndSource),a=this.isAutoHeight!=this.column.isAutoHeight();return n||o||r||a}startEditing(t=null,n=!1,o=null){let{editService:r}=this.beans;return!this.isCellEditable()||this.editing||!r?!0:this.cellComp?r.startEditing(this,t,n,o):(this.onCellCompAttachedFuncs.push(()=>{this.startEditing(t,n,o)}),!0)}setEditing(t,n){this.editCompDetails=n,this.editing!==t&&(this.editing=t)}stopRowOrCellEdit(t=!1){this.beans.gos.get("editType")==="fullRow"?this.rowCtrl.stopEditing(t):this.stopEditing(t)}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(t=!1){this.onCellEditorAttachedFuncs=[];let{editService:n}=this.beans;return!this.editing||!n?!1:n.stopEditing(this,t)}createCellRendererParams(){return this.beans.gos.addGridCommonParams({value:this.value,valueFormatted:this.valueFormatted,getValue:()=>this.beans.valueService.getValueForDisplay(this.column,this.rowNode),setValue:n=>this.beans.valueService.setValue(this.rowNode,this.column,n),formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:(n,o,r,a)=>this.registerRowDragger(n,o,a),setTooltip:(n,o)=>{this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(n,o),this.tooltipFeature?.refreshToolTip()}})}setFocusOutOnEditor(){this.editing&&this.beans.editService?.setFocusOutOnEditor(this)}setFocusInOnEditor(){this.editing&&this.beans.editService?.setFocusInOnEditor(this)}onCellChanged(t){t.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(t){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(t)}refreshCell(t){if(this.suppressRefreshCell||this.editing)return;let n=this.column.getColDef(),o=t!=null&&!!t.newData,r=t!=null&&!!t.suppressFlash||!!n.suppressCellFlash,a=n.field==null&&n.valueGetter==null&&n.showRowGroup==null,s=t&&t.forceRefresh||a||o,l=!!this.cellComp,c=this.updateAndFormatValue(l),u=s||c;if(l){if(u){this.showValue(o);let m=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!r&&!m&&(this.beans.gos.get("enableCellChangeFlash")||n.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature?.applyUserStyles(),this.cellCustomStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshToolTip(),this.cellCustomStyleFeature?.applyCellClassRules()}}stopEditingAndFocus(t=!1,n=!1){this.beans.editService?.stopEditingAndFocus(this,t,n)}flashCell(t){let n=t?.flashDuration??t?.flashDelay,o=t?.fadeDuration??t?.fadeDelay;this.animateCell("data-changed",n,o)}animateCell(t,n,o){if(!this.cellComp)return;let{gos:r}=this.beans;if(n||(n=r.get("cellFlashDuration")),n===0)return;le(o)||(o=r.get("cellFadeDuration"));let a=`ag-cell-${t}`,s=`ag-cell-${t}-animation`;this.cellComp.addOrRemoveCssClass(a,!0),this.cellComp.addOrRemoveCssClass(s,!1),this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(a,!1),this.cellComp.addOrRemoveCssClass(s,!0),this.eGui.style.transition=`background-color ${o}ms`,window.setTimeout(()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(s,!1),this.eGui.style.transition="")},o))},n)})}onFlashCells(t){if(!this.cellComp)return;let n=this.beans.cellPositionUtils.createId(this.getCellPosition());t.cells[n]&&this.animateCell("highlight")}isCellEditable(){return this.column.isCellEditable(this.rowNode)}isSuppressFillHandle(){return this.column.isSuppressFillHandle()}formatValue(t){return this.callValueFormatter(t)??t}callValueFormatter(t){return this.beans.valueService.formatValue(this.column,this.rowNode,t)}updateAndFormatValue(t){let n=this.value,o=this.valueFormatted;return this.value=this.beans.valueService.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),t?!this.valuesAreEqual(n,this.value)||this.valueFormatted!=o:!0}valuesAreEqual(t,n){let o=this.column.getColDef();return o.equals?o.equals(t,n):t===n}getComp(){return this.cellComp}getValue(){return this.value}addDomData(t){let n=this.getGui();js(this.beans.gos,n,_g.DOM_DATA_KEY_CELL_CTRL,this),t.addDestroyFunc(()=>js(this.beans.gos,n,_g.DOM_DATA_KEY_CELL_CTRL,null))}createEvent(t,n){return this.beans.gos.addGridCommonParams({type:n,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),rowPinned:this.rowNode.rowPinned,event:t,rowIndex:this.rowNode.rowIndex})}processCharacter(t){this.cellKeyboardListenerFeature?.processCharacter(t)}onKeyDown(t){this.cellKeyboardListenerFeature?.onKeyDown(t)}onMouseEvent(t,n){this.cellMouseListenerFeature?.onMouseEvent(t,n)}getGui(){return this.eGui}
1625getColSpanningList(){return this.cellPositionFeature.getColSpanningList()}onLeftChanged(){this.cellComp&&this.cellPositionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){let{cellComp:t,column:n,beans:o}=this;A_(t,n,o.visibleColsService)}refreshAriaColIndex(){let t=this.beans.visibleColsService.getAriaColIndex(this.column);a_(this.getGui(),t)}isSuppressNavigable(){return this.column.isSuppressNavigable(this.rowNode)}onWidthChanged(){return this.cellPositionFeature?.onWidthChanged()}getColumn(){return this.column}getRowNode(){return this.rowNode}isPrintLayout(){return this.printLayout}getCellPosition(){return this.cellPosition}isEditing(){return this.editing}startRowOrCellEdit(t,n=null){return this.cellComp?this.beans.gos.get("editType")==="fullRow"?this.rowCtrl.startRowEditing(t,this):this.startEditing(t,!0,n):(this.onCellCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(t,n)}),!0)}getRowCtrl(){return this.rowCtrl}getRowPosition(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}}updateRangeBordersIfRangeCount(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.cellRangeFeature!=null}focusCell(t=!1){this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:t})}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onCellSelectionChanged()}onSuppressCellFocusChanged(t){this.eGui&&ji(this.eGui,"tabindex",t?void 0:-1)}onFirstRightPinnedChanged(){if(!this.cellComp)return;let t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(WF,t)}onLastLeftPinnedChanged(){if(!this.cellComp)return;let t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass($F,t)}onCellFocused(t){if(this.beans.focusService.isCellFocusSuppressed())return;let n=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp){n&&t?.forceBrowserFocus&&(this.focusEventToRestore=t);return}if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass(jF,n),n&&t&&t.forceBrowserFocus){let r=this.cellComp.getFocusableElement();if(this.editing){let a=this.beans.focusService.findFocusableElements(r,null,!0);a.length&&(r=a[0])}r.focus({preventScroll:!!t.preventScrollOnBrowserFocus})}let o=this.beans.gos.get("editType")==="fullRow";!n&&!o&&this.editing&&this.stopRowOrCellEdit(),n&&this.rowCtrl.announceDescription()}createCellPosition(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:wg(this.rowNode.rowPinned),column:this.column}}applyStaticCssClasses(){this.cellComp.addOrRemoveCssClass(HF,!0),this.cellComp.addOrRemoveCssClass(qF,!0);let t=this.column.isAutoHeight()==!0;this.cellComp.addOrRemoveCssClass(GF,t),this.cellComp.addOrRemoveCssClass(UF,!t)}onColumnHover(){if(!this.cellComp||!this.beans.gos.get("columnHoverHighlight"))return;let t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(YF,t)}onColDefChanged(){if(!this.cellComp)return;this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?this.beans.editService?.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0})}setWrapText(){let t=this.column.getColDef().wrapText==!0;this.cellComp.addOrRemoveCssClass(KF,t)}dispatchCellContextMenuEvent(t){let n=this.column.getColDef(),o=this.createEvent(t,"cellContextMenu");this.beans.eventService.dispatchEvent(o),n.onCellContextMenu&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{n.onCellContextMenu(o)})},0)}getCellRenderer(){return this.cellComp?this.cellComp.getCellRenderer():null}getCellEditor(){return this.cellComp?this.cellComp.getCellEditor():null}destroy(){this.onCellCompAttachedFuncs=[],this.onCellEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){let t=new EF;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t}createDndSource(){let t=new TF(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(t),t}registerRowDragger(t,n,o){if(this.customRowDragComp){this.customRowDragComp.setDragElement(t,n);return}let r=this.createRowDragComp(t,n,o);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}))}createRowDragComp(t,n,o){let r=this.beans.gos.get("pagination"),a=this.beans.gos.get("rowDragManaged"),s=wo(this.beans.gos);if(a){if(!s){X("managed row dragging is only allowed in the Client Side Row Model");return}if(r){X("managed row dragging is not possible when doing pagination");return}}let l=new vR(()=>this.value,this.rowNode,this.column,t,n,o);return this.beans.context.createBean(l),l}setSuppressRefreshCell(t){this.suppressRefreshCell=t}
1625getEditCompDetails(){return this.editCompDetails}onCellEditorAttached(t){this.onCellEditorAttachedFuncs.push(t)}cellEditorAttached(){this.onCellEditorAttachedFuncs.forEach(t=>t()),this.onCellEditorAttachedFuncs=[]}};return e.DOM_DATA_KEY_CELL_CTRL="cellCtrl",e})(),JF=ZF;var XF=["topCenter","topLeft","topRight"],eA=["bottomCenter","bottomLeft","bottomRight"],tA=["center","left","right"];var B_=["stickyTopCenter","stickyTopLeft","stickyTopRight"],H_=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],ine=[...B_,"stickyTopFullWidth",...H_,"stickyBottomFullWidth"],nne=[...XF,...eA,...tA,...B_,...H_];function Ls(e){return e.map(i=>`<ag-row-container name="${i}"></ag-row-container>`).join("")}var one=`<div class="ag-root ag-unselectable" role="treegrid"> 1626 <ag-header-root></ag-header-root> 1627 <div class="ag-floating-top" data-ref="eTop" role="presentation"> 1628 ${Ls(["topLeft","topCenter","topRight","topFullWidth"])} 1629 </div> 1630 <div class="ag-body" data-ref="eBody" role="presentation"> 1631 <div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation"> 1632 ${Ls(["left","center","right","fullWidth"])} 1633 </div> 1634 <ag-fake-vertical-scroll></ag-fake-vertical-scroll> 1635 </div> 1636 <div class="ag-sticky-top" data-ref="eStickyTop" role="presentation"> 1637 ${Ls(["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])} 1638 </div> 1639 <div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation"> 1640 ${Ls(["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])} 1641 </div> 1642 <div class="ag-floating-bottom" data-ref="eBottom" role="presentation"> 1643 ${Ls(["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])} 1644 </div> 1645 <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll> 1646 <ag-overlay-wrapper></ag-overlay-wrapper> 1647 </div>`;var V1="__ag_grid_instance",iA=class G_ extends fe{constructor(){super(...arguments),this.beanName="mouseEventService",this.gridInstanceId=G_.gridInstanceSequence.next()}wireBeans(i){this.ctrlsService=i.ctrlsService}stampTopLevelGridCompWithGridInstance(i){i[V1]=this.gridInstanceId}getRenderedCellForEvent(i){return XD(this.gos,i.target,JF.DOM_DATA_KEY_CELL_CTRL)}isEventFromThisGrid(i){return this.isElementInThisGrid(i.target)}isElementInThisGrid(i){let t=i;for(;t;){let n=t[V1];if(le(n))return n===this.gridInstanceId;t=t.parentElement}return!1}getCellPositionForEvent(i){let t=this.getRenderedCellForEvent(i);return t?t.getCellPosition():null}getNormalisedPosition(i){let t=xg(this.gos,"normal"),n=i,o,r;if(n.clientX!=null||n.clientY!=null?(o=n.clientX,r=n.clientY):(o=n.x,r=n.y),t){let a=this.ctrlsService.getGridBodyCtrl(),s=a.getScrollFeature().getVScrollPosition(),l=a.getScrollFeature().getHScrollPosition();o+=l.left,r+=s.top}return{x:o,y:r}}};iA.gridInstanceSequence=new Ys;var nA=class extends cr{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,i){let t=super.setValue(e,i);return this.eInput.value=e,t}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},oA={selector:"AG-INPUT-TEXT-AREA",component:nA},rA=class extends Qs{constructor(){super(`<div class="ag-large-text"> 1648 <ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area> 1649 </div>`,[oA]),this.eTextArea=We}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),le(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){let i=e.key;(i===$.LEFT||i===$.UP||i===$.RIGHT||i===$.DOWN||e.shiftKey&&i===$.ENTER)&&e.stopPropagation()}afterGuiAttached(){let e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){let e=this.eTextArea.getValue();
1649return!le(e)&&!le(this.params.value)?this.params.value:this.params.parseValue(e)}},aA=class extends Qs{constructor(e){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=e}postConstruct(){js(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){let e=this.getGui(),i=this.params,t=n=>{RR(this.gos,n,i.node,i.column,!0)||i.onKeyDown(n)};this.addManagedElementListeners(e,{keydown:t})}},sA=class extends Qs{constructor(){super(`<div class="ag-cell-edit-wrapper"> 1650 <ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select> 1651 </div>`,[DR]),this.eSelect=We,this.startedByEnter=!1}wireBeans(e){this.valueService=e.valueService}init(e){this.focusAfterAttached=e.cellStartedEdit;let{eSelect:i,valueService:t,gos:n}=this,{values:o,value:r,eventKey:a}=e;if(Rt(o)){X("no values found for select cellEditor");return}this.startedByEnter=a!=null?a===$.ENTER:!1;let s=!1;o.forEach(m=>{let v={value:m},C=t.formatValue(e.column,null,m),_=C!=null;v.text=_?C:m,i.addOption(v),s=s||r===m}),s?i.setValue(e.value,!0):e.values.length&&i.setValue(e.values[0],!0);let{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:u}=e;l!=null&&i.setPickerGap(l),u!=null&&i.setPickerMaxHeight(u),c!=null&&i.setPickerMaxWidth(c),n.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}},Jd=class extends Qs{constructor(e){super(` 1652 <div class="ag-cell-edit-wrapper"> 1653 ${e.getTemplate()} 1654 </div>`,e.getAgComponents()),this.cellEditorInput=e,this.eInput=We}init(e){this.params=e;let{cellStartedEdit:i,eventKey:t,suppressPreventDefault:n}=e,o=this.eInput;this.cellEditorInput.init(o,e);let r,a=!0;i?(this.focusAfterAttached=!0,t===$.BACKSPACE||t===$.DELETE?r="":t&&t.length===1?n?a=!1:r=t:(r=this.cellEditorInput.getStartValue(),t!==$.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=this.cellEditorInput.getStartValue()),a&&r!=null&&o.setStartValue(r),this.addManagedElementListeners(o.getGui(),{keydown:s=>{let{key:l}=s;(l===$.PAGE_UP||l===$.PAGE_DOWN)&&s.preventDefault()}})}afterGuiAttached(){let e=this.localeService.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;ur()||i.getFocusableElement().focus();let t=i.getInputElement();this.highlightAllOnFocus?t.select():this.cellEditorInput.setCaret?.()}focusIn(){let e=this.eInput,i=e.getFocusableElement(),t=e.getInputElement();i.focus(),t.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}},lA=class{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[Qd]}init(e,i){this.eInput=e,this.params=i,i.maxLength!=null&&e.setMaxLength(i.maxLength)}getValue(){let e=this.eInput.getValue();return!le(e)&&!le(this.params.value)?this.params.value:this.params.parseValue(e)}getStartValue(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value}setCaret(){let e=this.eInput.getValue(),i=le(e)&&e.length||0;i&&this.eInput.getInputElement().setSelectionRange(i,i)}},U_=class extends Jd{constructor(){super(new lA)}},cA=class{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[OR]}init(e,i){this.eInput=e,this.params=i,i.max!=null&&e.setMax(i.max),i.min!=null&&e.setMin(i.min),i.precision!=null&&e.setPrecision(i.precision),i.step!=null&&e.setStep(i.step);let t=e.getInputElement();i.preventStepping?e.addManagedElementListeners(t,{keydown:this.preventStepping}):i.showStepperButtons&&t.classList.add("ag-number-field-input-stepper")}preventStepping(e){(e.key===$.UP||e.key===$.DOWN)&&e.preventDefault()}getValue(){let e=this.eInput.getValue();if(!le(e)&&!le(this.params.value))return this.params.value;let i=this.params.parseValue(e);if(i==null)return i;if(typeof i=="string"){if(i==="")return null;i=Number(i)}return isNaN(i)?null:i}getStartValue(){return this.params.value}setCaret(){ur()&&this.eInput.getInputElement().focus({preventScroll:!0})}},dA=class extends Jd{constructor(){super(new cA)}},uA=class extends pr{constructor(e){super(e,"ag-date-field","date")}
1654postConstruct(){super.postConstruct();let e=ur();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){An(this.gos)===this.eInput&&e.preventDefault()}setMin(e){let i=e instanceof Date?Ri(e??null,!1)??void 0:e;return this.min===i?this:(this.min=i,ji(this.eInput,"min",i),this)}setMax(e){let i=e instanceof Date?Ri(e??null,!1)??void 0:e;return this.max===i?this:(this.max=i,ji(this.eInput,"max",i),this)}setStep(e){return this.step===e?this:(this.step=e,ji(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return hi(this.getValue())??void 0}setDate(e,i){this.setValue(Ri(e??null,!1),i)}},j_={selector:"AG-INPUT-DATE-FIELD",component:uA},pA=class{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[j_]}init(e,i){this.eInput=e,this.params=i,i.min!=null&&e.setMin(i.min),i.max!=null&&e.setMax(i.max),i.step!=null&&e.setStep(i.step)}getValue(){let e=this.eInput.getDate();return!le(e)&&!le(this.params.value)?this.params.value:e??null}getStartValue(){let{value:e}=this.params;if(e instanceof Date)return Ri(e,!1)}},hA=class extends Jd{constructor(){super(new pA)}},gA=class{constructor(e){this.getDataTypeService=e}getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[j_]}init(e,i){this.eInput=e,this.params=i,i.min!=null&&e.setMin(i.min),i.max!=null&&e.setMax(i.max),i.step!=null&&e.setStep(i.step)}getValue(){let e=this.formatDate(this.eInput.getDate());return!le(e)&&!le(this.params.value)?this.params.value:this.params.parseValue(e??"")}getStartValue(){return Ri(this.parseDate(this.params.value??void 0)??null,!1)}parseDate(e){let i=this.getDataTypeService();return i?i.getDateParserFunction(this.params.column)(e):hi(e)??void 0}formatDate(e){let i=this.getDataTypeService();return i?i.getDateFormatterFunction(this.params.column)(e):Ri(e??null,!1)??void 0}},mA=class extends Jd{wireBeans(e){this.dataTypeService=e.dataTypeService}constructor(){super(new gA(()=>this.dataTypeService))}},fA=class extends Qs{constructor(){super(` 1655 <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit"> 1656 <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox> 1657 </div>`,[m_]),this.eCheckbox=We}init(e){this.params=e;let i=e.value??void 0;this.eCheckbox.setValue(i),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(i),this.addManagedListeners(this.eCheckbox,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){let i=this.localeService.getLocaleTextFunc(),t=s_(i,e),n=i("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${n} (${t})`)}},zs=class{constructor(e){this.cellValueChanges=e}},cg=class extends zs{constructor(e,i,t,n){super(e),this.initialRange=i,this.finalRange=t,this.ranges=n}},vA=10,z1=class{constructor(e){this.actionStack=[],this.maxStackSize=e||vA,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},CA=class extends fe{constructor(){super(...arguments),this.beanName="undoRedoService",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=e=>{let i={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},t=this.activeCellEdit!==null&&this.cellPositionUtils.equals(this.activeCellEdit,i),n=this.activeRowEdit!==null&&this.rowPositionUtils.sameRow(this.activeRowEdit,i);if(!(t||n||this.isPasting||this.isRangeInAction))return;let{rowPinned:r,rowIndex:a,column:s,oldValue:l,value:c}=e,u={rowPinned:r,rowIndex:a,columnId:s.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(u)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}wireBeans(e){this.focusService=e.focusService,this.ctrlsService=e.ctrlsService,this.cellPositionUtils=e.cellPositionUtils,this.rowPositionUtils=e.rowPositionUtils,this.columnModel=e.columnModel,this.rangeService=e.rangeService}postConstruct(){if(!this.gos.get("undoRedoCellEditing"))return;let e=this.gos.get("undoRedoCellEditingLimit");if(e<=0)return;this.undoStack=new z1(e),this.redoStack=new z1(e),this.addListeners();let i=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:t=>{t.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:i,newColumnsLoaded:i,columnGroupOpened:i,columnRowGroupChanged:i,columnMoved:i,columnPinned:i,columnVisible:i,rowDragEnd:i}),this.ctrlsService.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?this.undoStack.getCurrentStackSize():0}getCurrentRedoStackSize(){return this.redoStack?this.redoStack.getCurrentStackSize():0}undo(e){this.eventService.dispatchEvent({type:"undoStarted",source:e});let i=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo");this.eventService.dispatchEvent({type:"undoEnded",source:e,operationPerformed:i})}redo(e){this.eventService.dispatchEvent({type:"redoStarted",source:e});let i=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo");this.eventService.dispatchEvent({type:"redoEnded",source:e,operationPerformed:i})}undoRedo(e,i,t,n,o){if(!e)return!1;let r=e.pop();return!r||!r.cellValueChanges?!1:(this.processAction(r,a=>a[n],o),r instanceof cg?this.processRange(this.rangeService,r.ranges||[r[t]]):this.processCell(r.cellValueChanges),i.push(r),!0)}
1657processAction(e,i,t){e.cellValueChanges.forEach(n=>{let{rowIndex:o,rowPinned:r,columnId:a}=n,s={rowIndex:o,rowPinned:r},l=this.rowPositionUtils.getRowNode(s);l.displayed&&l.setDataValue(a,i(n),t)})}processRange(e,i){let t;e.removeAllCellRanges(!0),i.forEach((n,o)=>{if(!n)return;let r=n.startRow,a=n.endRow;o===i.length-1&&(t={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:n.startColumn.getColId()},this.setLastFocusedCell(t));let s={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:n.startColumn,columns:n.columns};e.addCellRange(s)})}processCell(e){let i=e[0],{rowIndex:t,rowPinned:n}=i,o={rowIndex:t,rowPinned:n},r=this.rowPositionUtils.getRowNode(o),a={rowPinned:i.rowPinned,rowIndex:r.rowIndex,columnId:i.columnId};this.setLastFocusedCell(a,this.rangeService)}setLastFocusedCell(e,i){let{rowIndex:t,columnId:n,rowPinned:o}=e,r=this.gridBodyCtrl.getScrollFeature(),a=this.columnModel.getCol(n);if(!a)return;r.ensureIndexVisible(t),r.ensureColumnVisible(a);let s={rowIndex:t,column:a,rowPinned:o};this.focusService.setFocusedCell(ae(M({},s),{forceBrowserFocus:!0})),i?.setRangeToCell(s)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{let e=new zs(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let t=new zs(this.cellValueChanges);this.pushActionsToUndoStack(t)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let e=new zs(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{let i=new cg(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(i),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;this.rangeService&&Kd(this.gos)?e=new cg(this.cellValueChanges,void 0,void 0,[...this.rangeService.getCellRanges()]):e=new zs(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1}})}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}};function bA(e){return e.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition()}function _A(e){return e.ctrlsService.getGridBodyCtrl().getScrollFeature().getHScrollPosition()}function W_(e,i,t="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(i,t),"ensureVisible")}function $_(e,i,t){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureIndexVisible(i,t),"ensureVisible")}function yA(e,i,t=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureNodeVisible(i,t),"ensureVisible")}function wA(e){e.undoRedoService?.undo("api")}function xA(e){e.undoRedoService?.redo("api")}function SA(e,i={}){return e.rowRenderer.getCellEditorInstances(i).map(Bs)}function kA(e){return e.rowRenderer.getEditingCells()}function EA(e,i=!1){e.rowRenderer.stopEditing(i)}function TA(e,i){let t=e.columnModel.getCol(i.colKey);if(!t){X(`no column found for ${i.colKey}`);return}let n={rowIndex:i.rowIndex,rowPinned:i.rowPinned||null,column:t};i.rowPinned==null&&$_(e,i.rowIndex),W_(e,i.colKey);let r=e.navigationService.getCellByPosition(n);if(!r)return;let{focusService:a,gos:s}=e,l=()=>{let u=An(s),m=r.getGui();return u!==m&&!!m?.contains(u)},c=s.get("stopEditingWhenCellsLoseFocus")&&l();(c||!a.isCellFocused(n))&&a.setFocusedCell(ae(M({},n),{forceBrowserFocus:c,preventScrollOnBrowserFocus:!0})),r.startRowOrCellEdit(i.key)}function IA(e){return e.undoRedoService?.getCurrentUndoStackSize()??0}function MA(e){return e.undoRedoService?.getCurrentRedoStackSize()??0}var DA=class extends fe{constructor(){super(...arguments),this.beanName="editService"}wireBeans(e){this.navigationService=e.navigationService,this.userComponentFactory=e.userComponentFactory,this.valueService=e.valueService}startEditing(e,i=null,t=!1,n=null){let o=this.createCellEditorParams(e,i,t),r=e.getColumn().getColDef(),a=this.userComponentFactory.getCellEditorDetails(r,o),s=a?.popupFromSelector!=null?a.popupFromSelector:!!r.cellEditorPopup,l=a?.popupPositionFromSelector!=null?a.popupPositionFromSelector:r.cellEditorPopupPosition;return e.setEditing(!0,a),e.getComp().setEditDetails(a,s,l,this.gos.get("reactiveCustomComponents")),this.eventService.dispatchEvent(e.createEvent(n,"cellEditingStarted")),!a?.params?.suppressPreventDefault}
1657stopEditing(e,i){let t=e.getComp(),{newValue:n,newValueExists:o}=this.takeValueFromCellEditor(i,t),r=e.getRowNode(),a=e.getColumn(),s=this.valueService.getValueForDisplay(a,r),l=!1;return o&&(l=this.saveNewValue(e,s,n,r,a)),e.setEditing(!1,void 0),t.setEditDetails(),e.updateAndFormatValue(!1),e.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventService.dispatchEvent(ae(M({},e.createEvent(null,"cellEditingStopped")),{oldValue:s,newValue:n,valueChanged:l})),l}handleColDefChanged(e){let i=e.getCellEditor();if(i?.refresh){let{eventKey:t,cellStartedEdit:n}=e.getEditCompDetails().params,o=this.createCellEditorParams(e,t,n),r=e.getColumn().getColDef(),a=this.userComponentFactory.getCellEditorDetails(r,o);i.refresh(a.params)}}setFocusOutOnEditor(e){let i=e.getComp().getCellEditor();i&&i.focusOut&&i.focusOut()}setFocusInOnEditor(e){let i=e.getComp(),t=i.getCellEditor();t?.focusIn?t.focusIn():(e.focusCell(!0),e.onCellEditorAttached(()=>i.getCellEditor()?.focusIn?.()))}stopEditingAndFocus(e,i=!1,t=!1){e.stopRowOrCellEdit(),e.focusCell(!0),i||this.navigateAfterEdit(t,e.getCellPosition())}createPopupEditorWrapper(e){return new aA(e)}
1657takeValueFromCellEditor(e,i){let t={newValueExists:!1};if(e)return t;let n=i.getCellEditor();return!n||n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}}saveNewValue(e,i,t,n,o){if(t===i)return!1;e.setSuppressRefreshCell(!0);let r=n.setDataValue(o,t,"edit");return e.setSuppressRefreshCell(!1),r}createCellEditorParams(e,i,t){let n=e.getColumn(),o=e.getRowNode();return this.gos.addGridCommonParams({value:this.valueService.getValueForDisplay(n,o),eventKey:i,column:n,colDef:n.getColDef(),rowIndex:e.getCellPosition().rowIndex,node:o,data:o.data,cellStartedEdit:t,onKeyDown:e.onKeyDown.bind(e),stopEditing:e.stopEditingAndFocus.bind(e),eGridCell:e.getGui(),parseValue:r=>this.valueService.parseValue(n,o,r,e.getValue()),formatValue:e.formatValue.bind(e)})}navigateAfterEdit(e,i){if(this.gos.get("enterNavigatesVerticallyAfterEdit")){let n=e?$.UP:$.DOWN;this.navigationService.navigateToNextCell(null,n,i,!1)}}},PA=class extends fe{constructor(){super(...arguments),this.beanName="rowEditService"}startEditing(e,i=null,t=null,n=null){let o=!0;return e.getAllCellCtrls().reduce((a,s)=>{let l=s===t;return l?o=s.startEditing(i,l,n):s.startEditing(null,l,n),a?!0:s.isEditing()},!1)&&this.setEditing(e,!0),o}stopEditing(e,i=!1){let t=e.getAllCellCtrls(),n=e.isEditing();e.setStoppingRowEdit(!0);let o=!1;for(let r of t){let a=r.stopEditing(i);n&&!i&&!o&&a&&(o=!0)}o&&this.eventService.dispatchEvent(e.createRowEvent("rowValueChanged")),n&&this.setEditing(e,!1),e.setStoppingRowEdit(!1)}setEditing(e,i){e.setEditingRow(i),e.forEachGui(void 0,n=>n.rowComp.addOrRemoveCssClass("ag-row-editing",i));let t=i?e.createRowEvent("rowEditingStarted"):e.createRowEvent("rowEditingStopped");this.eventService.dispatchEvent(t)}},hr={version:pe,moduleName:"@ag-grid-community/edit-core",beans:[DA]},RA={version:pe,moduleName:"@ag-grid-community/edit-api",apiFunctions:{undoCellEditing:wA,redoCellEditing:xA,getCellEditorInstances:SA,getEditingCells:kA,stopEditing:EA,startEditingCell:TA,getCurrentUndoSize:IA,getCurrentRedoSize:MA},dependantModules:[hr]},FA={version:pe,moduleName:"@ag-grid-community/undo-redo-edit",beans:[CA],dependantModules:[hr]},AA={version:pe,moduleName:"@ag-grid-community/full-row-edit",beans:[PA],dependantModules:[hr]},q_={version:pe,moduleName:"@ag-grid-community/default-editor",userComponents:[{name:"agCellEditor",classImp:U_}],dependantModules:[hr]},OA={version:pe,moduleName:"@ag-grid-community/data-type-editors",userComponents:[{name:"agTextCellEditor",classImp:U_},{name:"agNumberCellEditor",classImp:dA,params:{suppressPreventDefault:!0}},{name:"agDateCellEditor",classImp:hA},{name:"agDateStringCellEditor",classImp:mA},{name:"agCheckboxCellEditor",classImp:fA}],dependantModules:[q_]},LA={version:pe,moduleName:"@ag-grid-community/select-editor",userComponents:[{name:"agSelectCellEditor",classImp:sA}],dependantModules:[hr]},NA={version:pe,moduleName:"@ag-grid-community/large-text-editor",userComponents:[{name:"agLargeTextCellEditor",classImp:rA}],dependantModules:[hr]},VA={version:pe,moduleName:"@ag-grid-community/all-editors",dependantModules:[q_,OA,LA,NA]},zA={version:pe,moduleName:"@ag-grid-community/editing",dependantModules:[hr,FA,AA,VA,RA]};var BA=class extends fe{constructor(e){super(),this.state="needsLoading",this.version=0,this.id=e}getId(){return this.id}load(){this.state="loading",this.loadFromDatasource()}getVersion(){return this.version}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}getState(){return this.state}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed",this.processServerFail()),this.dispatchLoadCompleted(!1)}success(e,i){this.successCommon(e,i)}pageLoaded(e,i,t){this.successCommon(e,{rowData:i,rowCount:t})}isRequestMostRecentAndLive(e){let i=e===this.version,t=this.isAlive();return i&&t}successCommon(e,i){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(i))}dispatchLoadCompleted(e=!0){let i={type:"loadComplete",success:e,block:this};this.dispatchLocalEvent(i)}},HA=class extends fe{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();let e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=dn(this.performCheckBlocksToLoad.bind(this),e))}getMaxConcurrentDatasourceRequests(){let e=this.gos.get("maxConcurrentDatasourceRequests");if(e==null)return 2;if(!(e<=0))return e}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){K1(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchLocalEvent({type:"blockLoaded"}),this.activeBlockLoadsCount==0&&this.dispatchLocalEvent({type:"blockLoaderFinis
1657hed"})}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){this.gos.get("debug")&&ug("RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}let e=this.getAvailableLoadingCount(),i=this.blocks.filter(t=>t.getState()==="needsLoading").slice(0,e);this.registerLoads(i.length),i.forEach(t=>t.load()),this.printCacheStatus()}getBlockState(){if(qd(this.gos))return this.rowModel.getBlockStates();let e={};return this.blocks.forEach(i=>{let{id:t,state:n}=i.getBlockStateJson();e[t]=n}),e}printCacheStatus(){this.gos.get("debug")&&ug(`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}isLoading(){return this.activeBlockLoadsCount>0}registerLoads(e){this.activeBlockLoadsCount+=e}getAvailableLoadingCount(){return this.maxConcurrentRequests!==void 0?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0}},GA={version:pe,moduleName:"@ag-grid-community/row-node-block",beans:[HA]};var UA=class extends fe{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;let{comp:i,eTopGuard:t,eBottomGuard:n,focusTrapActive:o,forceFocusOutWhenTabGuardsAreEmpty:r,isFocusableContainer:a,focusInnerElement:s,onFocusIn:l,onFocusOut:c,shouldStopEventPropagation:u,onTabKeyDown:m,handleKeyDown:v,eFocusableElement:C}=e;this.comp=i,this.eTopGuard=t,this.eBottomGuard=n,this.providedFocusInnerElement=s,this.eFocusableElement=C,this.focusTrapActive=!!o,this.forceFocusOutWhenTabGuardsAreEmpty=!!r,this.isFocusableContainer=!!a,this.providedFocusIn=l,this.providedFocusOut=c,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=m,this.providedHandleKeyDown=v}wireBeans(e){this.focusService=e.focusService}postConstruct(){this.createManagedBean(new Lg(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)}))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;let e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&this.focusService.findFocusableElements(this.eFocusableElement,".ag-tab-guard").length===0){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;let i=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(i):this.focusInnerElement(i)}findNextElementOutsideAndFocus(e){let i=Fn(this.gos),t=this.focusService.findFocusableElements(i.body,null,!0),n=t.indexOf(e?this.eTopGuard:this.eBottomGuard);if(n===-1)return;let o,r;e?(o=0,r=n):(o=n+1,r=t.length);let a=t.slice(o,r),s=this.gos.get("tabIndex");a.sort((l,c)=>{let u=parseInt(l.getAttribute("tabindex")||"0"),m=parseInt(c.getAttribute("tabindex")||"0");return m===s?1:u===s?-1:u===0?1:m===0?-1:u-m}),a[e?a.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;let i=this.tabGuardsAreActive();i&&this.deactivateTabGuards();let t=this.getNextFocusableElement(e.shiftKey);i&&setTimeout(()=>this.activateTabGuards(),0),t&&(t.focus(),e.preventDefault())}focusInnerElement(e=!1){let i=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(i.splice(0,1),i.splice(i.length-1,1)),i.length&&i[e?i.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;let i=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,i.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,i){return e===this.eTopGuard&&!i||e===this.eBottomGuard&&(i??!0)}setAllowFocus(e){this.allowFocus=e}},jA=class extends fe{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();let{eTopGuard:i,eBottomGuard:t,eFocusableElement:n}=this,o=[i,t],r={setTabIndex:E=>{o.forEach(D=>E!=null?D.setAttribute("tabindex",E):D.removeAttribute("tabindex"))}};this.addTabGuards(i,t);let{focusTrapActive:a=!1,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:m,shouldStopEventPropagation:v,forceFocusOutWhenTabGuardsAreEmpty:C,isFocusableContainer:_}=e;this.tabGuardCtrl=this.createManagedBean(new UA({comp:r,focusTrapActive:a,eTopGuard:i,eBottomGuard:t,eFocusableElement:n,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:m,shouldStopEventPropagation:v,forceFocusOutWhenTabGuardsAreEmpty:C,isFocusableContainer:_}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){let i=Fn(this.gos).createElement("div"),t=e==="top"?"ag-tab-guard-top":"ag-tab-guard-bottom";return i.classList.add("ag-tab-guard",t),xo(i,"presentation"),i}addTabGuards(e,i){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",i)}removeAllChildrenExceptTabGuards(){let e=[this.eTopGuard,this.eBottomGuard];Ks(this.comp.getFocusableElement()),this.addTabGuards(...e)}
1657forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,i,t){Fg(i)||(i=i.getGui());let{eBottomGuard:n}=this;n?n.insertAdjacentElement("beforebegin",i):e(i,t)}},WA=class extends gi{initialiseTabGuard(e){this.tabGuardFeature=this.createManagedBean(new jA(this)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,i){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,i)}};var ri=(e,i)=>{for(let t in i)i[t]=e;return i},rne=M(M(M(M(M(M(M(M(M(M(M(M(M(M(M({},ri("@ag-grid-community/core",{dispatchEvent:0,destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,getState:0,setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0,redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRow:0,getFirstDisplayedRowIndex:0,getLastDisplayedRow:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0,getModel:0,getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0,getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0,addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0,expireValueCache:0,getValue:0,getCellValue:0,showColumnMenuAfterButtonClick:0,showColumnMenuAfterMouseClick:0,showColumnMenu:0,hidePopupMenu:0,onSortChanged:0,getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0,setGridAriaProperty:0,refreshCells:0,flashCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0,addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getColumnDef:0,getColumnDefs:0,sizeColumnsToFit:0,setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumn:0,getDisplayNameForColumnGroup:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnVisible:0,setColumnsVisible:0,setColumnPinned:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0,moveColumn:0,moveColumnByIndex:0,moveColumns:0,setColumnWidth:0,setColumnWidths:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0,autoSizeColumn:0,autoSizeColumns:0,autoSizeAllColumns:0,undoCellEditing:0,redoCellEditing:0,getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0,getCurrentUndoSize:0,getCurrentRedoSize:0,isAnyFilterPresent:0,onFilterChanged:0,isColumnFilterPresent:0,getFilterInstance:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0,paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0,expandAll:0,collapseAll:0,onRowHeightChanged:0,setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0})),ri("@ag-grid-community/client-side-row-model",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0})),ri("@ag-grid-community/csv-export",{getDataAsCsv:0,exportDataAsCsv:0})),ri("@ag-grid-community/infinite-row-model",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0})),ri("@ag-grid-enterprise/advanced-filter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0})),ri("@ag-grid-enterprise/charts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0})),ri("@ag-grid-enterprise/clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0})),ri("@ag-grid-enterprise/excel-export",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0})),ri("@ag-grid-enterprise/master-detail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0})),ri("@ag-grid-enterprise/menu",{showContextMenu:0,showColumnChooser:0,hideColumnChooser:0})),ri("@ag-grid-enterprise/range-selection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0})),ri("@ag-grid-enterprise/row-grouping",{addAggFunc:0,addAggFuncs:0,clearAggFuncs:0,setColumnAggFu
1657nc:0,isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumn:0,removeValueColumns:0,addValueColumn:0,addValueColumns:0,setRowGroupColumns:0,removeRowGroupColumn:0,removeRowGroupColumns:0,addRowGroupColumn:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0,setPivotColumns:0,removePivotColumn:0,removePivotColumns:0,addPivotColumn:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0})),ri("@ag-grid-enterprise/server-side-row-model",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0})),ri("@ag-grid-enterprise/side-bar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0})),ri("@ag-grid-enterprise/status-bar",{getStatusPanel:0}));var $A=class{};Reflect.defineProperty($A,"name",{value:"GridApi"});var qA=["rowPositionUtils","cellPositionUtils","headerPositionUtils","paginationAutoPageSizeService","apiFunctionService","gridApi","userComponentRegistry","agComponentUtils","componentMetadataProvider","resizeObserverService","userComponentFactory","rowContainerHeightService","horizontalResizeService","localeService","validationService","pinnedRowModel","dragService","visibleColsService","eventService","gos","popupService","selectionService","columnFilterService","quickFilterService","filterManager","columnModel","headerNavigationService","pageBoundsService","paginationService","pageBoundsListener","rowRenderer","expressionService","columnFactory","alignedGridsService","navigationService","valueCache","valueService","loggerFactory","autoWidthCalculator","filterMenuFactory","dragAndDropService","focusService","mouseEventService","environment","cellNavigationService","stylingService","scrollVisibleService","sortController","columnHoverService","columnAnimationService","selectableService","autoColService","controlsColService","changeDetectionService","animationFrameService","undoRedoService","columnDefFactory","rowCssClassCalculator","rowNodeBlockLoader","rowNodeSorter","ctrlsService","pinnedWidthService","rowNodeEventThrottle","ctrlsFactory","dataTypeService","syncService","overlayService","stateService","expansionService","apiEventService","ariaAnnouncementService","menuService","columnApplyStateService","columnEventDispatcher","columnMoveService","columnAutosizeService","columnGetStateService","columnGroupStateService","columnSizeService","funcColsService","columnNameService","columnViewportService","pivotResultColsService","showRowGroupColsService"],ane=Object.fromEntries(qA.map((e,i)=>[e,i]));var YA=class extends fe{constructor(){super(...arguments),this.beanName="alignedGridsService",this.consuming=!1}wireBeans(e){this.columnModel=e.columnModel,this.columnSizeService=e.columnSizeService,this.ctrlsService=e.ctrlsService,this.columnApplyStateService=e.columnApplyStateService}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[],i=typeof e=="function";typeof e=="function"&&(e=e());let t=()=>`See ${this.getFrameworkOverrides().getDocLink("aligned-grids")}`;return e.map(o=>{if(!o){Xe("alignedGrids contains an undefined option."),i||Xe(`You may want to configure via a callback to avoid setup race conditions: 1658 "alignedGrids: () => [linkedGrid]"`),Xe(t());return}if(this.isGridApi(o))return o;let r=o;return"current"in r?r.current?.api:(r.api||Xe(`alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ${t()}`),r.api)}).filter(o=>!!o&&!o.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){let e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:i})=>this.onColumnEvent(i),alignedGridScroll:({event:i})=>this.onScrollEvent(i)})}
1658fireEvent(e){this.consuming||this.getAlignedGridApis().forEach(i=>{i.isDestroyed()||i.dispatchEvent(e)})}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,i){let t=[];return e.columns?e.columns.forEach(n=>{t.push(i(n))}):e.column&&t.push(i(e.column)),t}getMasterColumns(e){return this.extractDataFromEvent(e,i=>i)}getColumnIds(e){return this.extractDataFromEvent(e,i=>i.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":X("pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}})}processGroupOpenedEvent(e){let{columnModel:i}=this;e.columnGroups.forEach(t=>{let n=null;t&&(n=i.getProvidedColGroup(t.getGroupId())),!(t&&!n)&&i.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged")})}processColumnEvent(e){let i=e.column,t=null;if(i&&(t=this.columnModel.getColDefCol(i.getColId())),i&&!t)return;let n=this.getMasterColumns(e),{columnApplyStateService:o,columnSizeService:r,ctrlsService:a}=this;switch(e.type){case"columnMoved":{let u=e.api.getColumnState().map(m=>({colId:m.colId}));o.applyColumnState({state:u,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{let u=e.api.getColumnState().map(m=>({colId:m.colId,hide:m.hide}));o.applyColumnState({state:u},"alignedGridChanged")}break;case"columnPinned":{let u=e.api.getColumnState().map(m=>({colId:m.colId,pinned:m.pinned}));o.applyColumnState({state:u},"alignedGridChanged")}break;case"columnResized":{let c=e,u={};n.forEach(m=>{u[m.getId()]={key:m.getColId(),newWidth:m.getActualWidth()}}),c.flexColumns?.forEach(m=>{u[m.getId()]&&delete u[m.getId()]}),r.setColumnWidths(Object.values(u),!1,c.finished,"alignedGridChanged");break}}let l=a.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(c=>{c.setGridOption("alwaysShowVerticalScroll",l)})}},KA={version:pe,moduleName:"@ag-grid-community/aligned-grid",beans:[YA]};function QA(e,i){let t=e.columnModel.getColDefCol(i);return t?t.getColDef():null}function ZA(e){return e.columnModel.getColumnDefs()}function JA(e,i){typeof i=="number"?e.columnSizeService.sizeColumnsToFit(i,"api"):e.ctrlsService.getGridBodyCtrl().sizeColumnsToFit(i)}function XA(e,i,t){e.columnModel.setColumnGroupOpened(i,t,"api")}function e5(e,i,t){return e.visibleColsService.getColumnGroup(i,t)}function t5(e,i){return e.columnModel.getProvidedColGroup(i)}function i5(e,i,t){return e.columnNameService.getDisplayNameForColumn(i,t)||""}function n5(e,i,t){return e.columnNameService.getDisplayNameForColumnGroup(i,t)||""}function o5(e,i){return e.columnModel.getColDefCol(i)}function r5(e){return e.columnModel.getColDefCols()}function a5(e,i){return e.columnApplyStateService.applyColumnState(i,"api")}function s5(e){return e.columnGetStateService.getColumnState()}function l5(e){e.columnApplyStateService.resetColumnState("api")}function c5(e){return e.columnGroupStateService.getColumnGroupState()}function d5(e,i){e.columnGroupStateService.setColumnGroupState(i,"api")}function u5(e){e.columnGroupStateService.resetColumnGroupState("api")}function p5(e){return e.visibleColsService.isPinningLeft()||e.visibleColsService.isPinningRight()}function h5(e){return e.visibleColsService.isPinningLeft()}function g5(e){return e.visibleColsService.isPinningRight()}function m5(e,i){return e.visibleColsService.getColAfter(i)}function f5(e,i){return e.visibleColsService.getColBefore(i)}function v5(e,i,t){e.columnModel.setColsVisible([i],t,"api")}function C5(e,i,t){e.columnModel.setColsVisible(i,t,"api")}function b5(e,i,t){e.columnModel.setColsPinned([i],t,"api")}function _5(e,i,t){e.columnModel.setColsPinned(i,t,"api")}function y5(e){return e.columnModel.getCols()}function w5(e){return e.visibleColsService.getLeftCols()}function x5(e){return e.visibleColsService.getCenterCols()}function S5(e){return e.visibleColsService.getRightCols()}function k5(e){return e.visibleColsService.getAllCols()}function E5(e){return e.columnViewportService.getViewportColumns()}function T5(e,i,t){e.columnMoveService.moveColumns([i],t,"api")}function I5(e,i,t){e.columnMoveService.moveColumnByIndex(i,t,"api")}function M5(e,i,t){e.columnMoveService.moveColumns(i,t,"api")}function D5(e,i,t,n=!0,o="api"){e.columnSizeService.setColumnWidths([{key:i,newWidth:t}],!1,n,o)}function P5(e,i,t=!0,n="api"){e.columnSizeService.setColumnWidths(i,!1,t,n)}function R5(e){return e.visibleColsService.getTreeLeft()}function F5(e){return e.visibleColsService.getTreeCenter()}function A5(e){return e.visibleColsService.getTreeRight()}function O5(e){return e.visibleColsService.getAllTrees()}function L5(e,i,t){return e.columnAutosizeService.autoSizeCols({colKeys:[i],skipHeader:t,source:"api"})}function N5(e,i,t){e.columnAutosizeService.autoSizeCols({colKeys:i,skipHeader:t,source:"api"})}function V5(e,i){e.columnAutosizeService.autoSizeAllColumns("api",i)}var z5=class extends fe{constructor(){super(...arguments),this.beanName="dataTypeService",this.dataTypeDefinitions={},this.isWaitingForRowData=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(e){this.rowModel=e.rowModel,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.columnApplyStateService=e.columnApplyStateService,this.filterManager=e.filterManager}postConstruct(){this.groupHideOpenParents=this.gos.get("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",()=>{this.groupHideOpenParents=this.gos.get("groupHideOpenParents")}),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.columnModel.recreateColumnDefs(cP(e.source))})}processDataTypeDefinitions(){let e=this.getDefaultDataTypes();this.dataTypeDefinitions={},this.formatValueFuncs={};let i=n=>o=>{let{column:r,node:a,value:s}=o,l=r.getColDef().valueFormatter;return l===n.groupSafeValueFormatter&&(l=n.valueFormatter),this.valueService.formatValue(r,a,s,l)};Object.entries(e).forEach(([n,o])=>{let r=ae(M({},o),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(o)});this.dataTypeDefinitions[n]=r,this.formatValueFuncs[n]=i(r)});let t=this.gos.get("dataTypeDefinitions")??{};this.dataTypeMatchers={},Object.entries(t).forEach(([n,o])=>{let r=this.processDataTypeDefinition(o,t,[n],e);r&&(this.dataTypeDefinitions[n]=r,o.dataTypeMatcher&&(this.dataTypeMatchers[n]=o.dataTypeMatcher),this.formatValueFuncs[n]=i(r))}),this.checkObjectValueHandlers(e),["dateString","text","number","boolean","date"].forEach(n=>{let o=this.dataTypeMatchers[n];o&&delete this.dataTypeMatchers[n],this.dataTypeMatchers[n]=o??e[n].dataTypeMatcher})}mergeDataTypeDefinitions(e,i){let t=M(M({},e),i);
1658return e.columnTypes&&i.columnTypes&&i.appendColumnTypes&&(t.columnTypes=[...ig(e.columnTypes),...ig(i.columnTypes)]),t}processDataTypeDefinition(e,i,t,n){let o,r=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let a=n[r],s=i[r];if(a&&s&&(a=s),!this.validateDataTypeDefinition(e,a,r))return;o=this.mergeDataTypeDefinitions(a,e)}else{if(t.includes(r)){X('Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.');return}let a=i[r];if(!this.validateDataTypeDefinition(e,a,r))return;let s=this.processDataTypeDefinition(a,i,[...t,r],n);if(!s)return;o=this.mergeDataTypeDefinitions(s,e)}return ae(M({},o),{groupSafeValueFormatter:this.createGroupSafeValueFormatter(o)})}validateDataTypeDefinition(e,i,t){return i?i.baseDataType!==e.baseDataType?(X('The "baseDataType" property of a data type definition must match that of its parent.'),!1):!0:(X(`The data type definition ${t} does not exist.`),!1)}createGroupSafeValueFormatter(e){if(e.valueFormatter)return i=>{if(i.node?.group){let t=(i.colDef.pivotValueColumn??i.column).getAggFunc();if(t){if(t==="first"||t==="last")return e.valueFormatter(i);if(e.baseDataType==="number"&&t!=="count"){if(typeof i.value=="number")return e.valueFormatter(i);if(typeof i.value=="object"){if(!i.value)return;if("toNumber"in i.value)return e.valueFormatter(ae(M({},i),{value:i.value.toNumber()}));if("value"in i.value)return e.valueFormatter(ae(M({},i),{value:i.value.value}))}}return}if((this.gos.get("suppressGroupMaintainValueType")||this.gos.get("groupDisplayType")==="groupRows")&&!this.gos.get("treeData"))return}else if(this.groupHideOpenParents&&i.column.isRowGroupActive()&&typeof i.value=="string"&&!e.dataTypeMatcher?.(i.value))return;return e.valueFormatter(i)}}updateColDefAndGetColumnType(e,i,t){let{cellDataType:n}=i,{field:o}=i;if(n===void 0&&(n=e.cellDataType),(n==null||n===!0)&&(n=this.canInferCellDataType(e,i)?this.inferCellDataType(o,t):!1),!n){e.cellDataType=!1;return}let r=this.dataTypeDefinitions[n];if(!r){X(`Missing data type definition - "${n}"`);return}return e.cellDataType=n,r.groupSafeValueFormatter&&(e.valueFormatter=r.groupSafeValueFormatter),r.valueParser&&(e.valueParser=r.valueParser),r.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,n,r,t),r.columnTypes}addColumnListeners(e){if(!this.isWaitingForRowData)return;let i=this.columnStateUpdatesPendingInference[e.getColId()];if(!i)return;let t=n=>{i.add(n.key)};e.addEventListener("columnStateUpdated",t),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.removeEventListener("columnStateUpdated",t))}canInferCellDataType(e,i){if(!wo(this.gos))return!1;let t={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0}
1658;if(this.doColDefPropsPreventInference(i,t))return!1;let n=i.type===null?e.type:i.type;if(n){let o=this.gos.get("columnTypes")??{};if(ig(n).some(a=>{let s=o[a.trim()];return s&&this.doColDefPropsPreventInference(s,t)}))return!1}return!this.doColDefPropsPreventInference(e,t)}doColDefPropsPreventInference(e,i){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([t,n])=>this.doesColDefPropPreventInference(e,i,t,n))}doesColDefPropPreventInference(e,i,t,n){if(!i[t])return!1;let o=e[t];return o===null?(i[t]=!1,!1):n===void 0?!!o:o===n}inferCellDataType(e,i){if(!e)return;let t,n=this.getInitialData();if(n){let r=e.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");t=t_(n,e,r)}else this.initWaitForRowData(i);if(t==null)return;let[o]=Object.entries(this.dataTypeMatchers).find(([r,a])=>a(t))??["object"];return o}getInitialData(){let e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{let i=this.rowModel.getRootNode().allLeafChildren;if(i?.length)return i[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isWaitingForRowData)return;this.isWaitingForRowData=!0;let i=this.isColumnTypeOverrideInDataTypeDefinitions;i&&this.columnModel.queueResizeOperations();let[t]=this.addManagedEventListeners({rowDataUpdateStarted:n=>{let{firstRowData:o}=n;o&&(t?.(),this.isWaitingForRowData=!1,this.processColumnsPendingInference(o,i),this.columnStateUpdatesPendingInference={},i&&this.columnModel.processResizeOperations(),this.eventService.dispatchEvent({type:"dataTypesInferred"}))}})}isPendingInference(){return this.isWaitingForRowData}processColumnsPendingInference(e,i){this.initialData=e;let t=[];this.destroyColumnStateUpdateListeners();let n={},o={};Object.entries(this.columnStateUpdatesPendingInference).forEach(([r,a])=>{let s=this.columnModel.getCol(r);if(!s)return;let l=s.getColDef();if(!this.columnModel.resetColDefIntoCol(s,"cellDataTypeInferred"))return;let c=s.getColDef();if(i&&c.type&&c.type!==l.type){let u=this.getUpdatedColumnState(s,a);u.rowGroup&&u.rowGroupIndex==null&&(n[r]=u),u.pivot&&u.pivotIndex==null&&(o[r]=u),t.push(u)}}),i&&t.push(...this.funcColsService.generateColumnStateForRowGroupAndPivotIndexes(n,o)),t.length&&this.columnApplyStateService.applyColumnState({state:t},"cellDataTypeInferred"),this.initialData=null}getUpdatedColumnState(e,i){let t=this.columnApplyStateService.getColumnStateFromColDef(e);return i.forEach(n=>{delete t[n],n==="rowGroup"?delete t.rowGroupIndex:n==="pivot"&&delete t.pivotIndex}),t}checkObjectValueHandlers(e){let i=this.dataTypeDefinitions.object,t=e.object;this.hasObjectValueParser=i.valueParser!==t.valueParser,this.hasObjectValueFormatter=i.valueFormatter!==t.valueFormatter}getDateStringTypeDefinition(e){return e?this.getDataTypeDefinition(e)??this.dataTypeDefinitions.dateString:this.dataTypeDefinitions.dateString}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDataTypeDefinition(e){let i=e.getColDef();if(i.cellDataType)return this.dataTypeDefinitions[i.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,i){if(i==null)return!0;let t=this.getDataTypeDefinition(e)?.dataTypeMatcher;return t?t(i):!0}validateColDef(e){let i=t=>X(`Cell data type is "object" but no Value ${t} has been provided. Please either provide an object data type definition with a Value ${t}, or set "colDef.value${t}"`);e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&i("Formatter"),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&i("Parser"))}getFormatValue(e){return this.formatValueFuncs[e]}setColDefPropertiesForBaseDataType(e,i,t,n){let o=this.formatValueFuncs[i];switch(t.baseDataType){case"number":{e.cellEditor="agNumberCellEditor";break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=r=>!!r.colDef.editable&&r.event.key===$.SPACE;break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=o;break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=o;break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=(r,a)=>{let s=this.columnModel.getColDefCol(n),l=s?.getColDef();if(!s||!l)return 0;let c=r==null?"":o({column:s,node:null,value:r}),u=a==null?"":o({column:s,node:null,value:a});return c===u?0:c>u?1:-1},e.keyCreator=o;break}}this.filterManager?.setColDefPropertiesForDataType(e,t,o)}getDefaultDataTypes(){let e=t=>!!t.match("^\\d{4}-\\d{2}-\\d{2}$"),i=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>
vendor: 15,151 bytes, line 1658
1658t.newValue?.trim?.()===""?null:Number(t.newValue),valueFormatter:t=>t.value==null?"":typeof t.value!="number"||isNaN(t.value)?i("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:t=>typeof t=="number"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:x1(t.newValue),dataTypeMatcher:t=>typeof t=="string"},boolean:{baseDataType:"boolean",valueParser:t=>t.newValue==null?t.newValue:t.newValue?.trim?.()===""?null:String(t.newValue).toLowerCase()==="true",valueFormatter:t=>t.value==null?"":String(t.value),dataTypeMatcher:t=>typeof t=="boolean"},date:{baseDataType:"date",valueParser:t=>hi(t.newValue==null?null:String(t.newValue)),valueFormatter:t=>t.value==null?"":!(t.value instanceof Date)||isNaN(t.value.getTime())?i("invalidDate","Invalid Date"):Ri(t.value,!1)??"",dataTypeMatcher:t=>t instanceof Date},dateString:{baseDataType:"dateString",dateParser:t=>hi(t)??void 0,dateFormatter:t=>Ri(t??null,!1)??void 0,valueParser:t=>e(String(t.newValue))?t.newValue:null,valueFormatter:t=>e(String(t.value))?t.value:"",dataTypeMatcher:t=>typeof t=="string"&&e(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>x1(t.value)??""}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(e=>e()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}},B5={version:pe,moduleName:"@ag-grid-community/data-type",beans:[z5]},H5={version:pe,moduleName:"@ag-grid-community/column-api",apiFunctions:{getColumnDef:QA,getColumnDefs:ZA,sizeColumnsToFit:JA,setColumnGroupOpened:XA,getColumnGroup:e5,getProvidedColumnGroup:t5,getDisplayNameForColumn:i5,getDisplayNameForColumnGroup:n5,getColumn:o5,getColumns:r5,applyColumnState:a5,getColumnState:s5,resetColumnState:l5,getColumnGroupState:c5,setColumnGroupState:d5,resetColumnGroupState:u5,isPinning:p5,isPinningLeft:h5,isPinningRight:g5,getDisplayedColAfter:m5,getDisplayedColBefore:f5,setColumnVisible:v5,setColumnsVisible:C5,setColumnPinned:b5,setColumnsPinned:_5,getAllGridColumns:y5,getDisplayedLeftColumns:w5,getDisplayedCenterColumns:x5,getDisplayedRightColumns:S5,getAllDisplayedColumns:k5,getAllDisplayedVirtualColumns:E5,moveColumn:T5,moveColumnByIndex:I5,moveColumns:M5,setColumnWidth:D5,setColumnWidths:P5,getLeftDisplayedColumnGroups:R5,getCenterDisplayedColumnGroups:F5,getRightDisplayedColumnGroups:A5,getAllDisplayedColumnGroups:O5,autoSizeColumn:L5,autoSizeColumns:N5,autoSizeAllColumns:V5}};function G5(e,i){e.ctrlsService.getGridBodyCtrl().getRowDragFeature().addRowDropZone(i)}function U5(e,i){let t=e.dragAndDropService.findExternalZone(i);t&&e.dragAndDropService.removeDropTarget(t)}function j5(e,i){return e.ctrlsService.getGridBodyCtrl().getRowDragFeature().getRowDropZone(i)}var W5={version:pe,moduleName:"@ag-grid-community/drag-api",apiFunctions:{addRowDropZone:G5,removeRowDropZone:U5,getRowDropZoneParams:j5}};function $5(e){return e.pinnedRowModel.getPinnedTopRowCount()}function q5(e){return e.pinnedRowModel.getPinnedBottomRowCount()}function Y5(e,i){return e.pinnedRowModel.getPinnedTopRow(i)}function K5(e,i){return e.pinnedRowModel.getPinnedBottomRow(i)}var Q5={version:pe,moduleName:"@ag-grid-community/pinned-row-api",apiFunctions:{getPinnedTopRowCount:$5,getPinnedBottomRowCount:q5,getPinnedTopRow:Y5,getPinnedBottomRow:K5}};function Z5(e){e.overlayService.showLoadingOverlay()}function J5(e){e.overlayService.showNoRowsOverlay()}function X5(e){e.overlayService.hideOverlay()}var eO={version:pe,moduleName:"@ag-grid-community/overlay-api",apiFunctions:{showLoadingOverlay:Z5,showNoRowsOverlay:J5,hideOverlay:X5}};function tO(e,i,t){if(!i)return;let n=e.ctrlsService.getGridBodyCtrl().getGui(),o=`aria-${i}`;t===null?n.removeAttribute(o):n.setAttribute(o,t)}function iO(e,i={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(i))}function nO(e,i={}){let t=n=>X(`Since v31.1 api.flashCells parameter '${n}Delay' is deprecated. Please use '${n}Duration' instead.`);le(i.fadeDelay)&&t("fade"),le(i.flashDelay)&&t("flash"),e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.flashCells(i))}function oO(e){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getHeaderRowContainerCtrls().forEach(i=>i.refresh()))}function rO(e){return e.animationFrameService.isQueueEmpty()}function aO(e){e.animationFrameService.flushAllFrames()}function sO(e){return{rowHeight:ha(e.gos),headerHeight:e.columnModel.getHeaderHeight()}}function lO(e,i={}){return e.rowRenderer.getCellRendererInstances(i).map(Bs)}var cO={version:pe,moduleName:"@ag-grid-community/render-api",apiFunctions:{setGridAriaProperty:tO,refreshCells:iO,flashCells:nO,refreshHeader:oO,isAnimationFrameQueueEmpty:rO,flushAllAnimationFrames:aO,getSizesForCurrentTheme:sO,getCellRendererInstances:lO}};function dO(e){e.valueCache.expire()}function uO(e,i,t){return Y_(e,{colKey:i,rowNode:t})}function Y_(e,i){let{colKey:t,rowNode:n,useFormatter:o}=i,r=e.columnModel.getColDefCol(t)??e.columnModel.getCol(t);if(Rt(r))return null;let a=e.valueService.getValueForDisplay(r,n);return o?e.valueService.formatValue(r,n,a)??i_(a,!0):a}function pO(e){return e.context.getGridId()}function hO(e){e.gridDestroyService.destroy()}function gO(e){return e.gridDestroyService.isDestroyCalled()}function mO(e,i){return e.gos.get(i)}function fO(e,i,t){K_(e,{[i]:t})}function K_(e,i){e.gos.updateGridOptions({options:i})}function vO(e,i,t){e.apiEventService.addEventListener(i,t)}function CO(e,i,t){e.apiEventService.removeEventListener(i,t)}function bO(e,i){e.apiEventService.addGlobalListener(i)}function _O(e,i){e.apiEventService.removeGlobalListener(i)}function yO(e){return e.focusService.getFocusedCell()}function wO(e){return e.focusService.clearFocusedCell()}function xO(e,i,t,n){e.focusService.setFocusedCell({rowIndex:i,column:t,rowPinned:n,forceBrowserFocus:!0})}function SO(e,i){return e.navigationService.tabToNextCell(!1,i)}function kO(e,i){return e.navigationService.tabToNextCell(!0,i)}function EO(e,i,t=!1){let n=e.headerNavigationService.getHeaderPositionForColumn(i,t);n&&e.focusService.focusHeaderPosition({headerPosition:n})}function TO(e,i,t){let n=e.columnModel.getCol(i);e.menuService.showColumnMenu({column:n,buttonElement:t,positionBy:"button"})}function IO(e,i,t){let n=e.columnModel.getCol(i);if(n||(n=e.columnModel.getColDefCol(i)),!n){Xe(`column '${i}' not found`);return}e.menuService.showColumnMenu({column:n,mouseEvent:t,positionBy:"mouse"})}function MO(e,i){let t=e.columnModel.getCol(i);if(!t){Xe(`column '${i}' not found`);return}e.menuService.showColumnMenu({column:t,positionBy:"auto"})}function DO(e){e.menuService.hidePopupMenu()}function PO(e,i={}){let t=i?i.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(t))}function RO(e,i,t,n,o){e.expansionService.setRowNodeExpanded(i,t,n,o)}function FO(e,i){return e.rowModel.getRowNode(i)}function AO(e,i,t,n){e.rowRenderer.addRenderedRowListener(i,t,n)}function OO(e){return e.rowRenderer.getRenderedNodes()}function LO(e,i,t){e.rowModel.forEachNode(i,t)}function NO(e){return Q_(e)}function Q_(e){return e.rowRenderer.getFirstVirtualRenderedRow()}function VO(e){return Z_(e)}function Z_(e){return e.rowRenderer.getLastVirtualRenderedRow()}function zO(e,i){return e.rowModel.getRow(i)}function BO(e){return e.rowModel.getRowCount()}function HO(e){return e.rowModel}function GO(e,i){if(!i.nodes.every(s=>s.rowPinned?(X("cannot select pinned rows"),!1):s.id===void 0?(X("cannot select node until id for node is known"),!1):!0))return;let{nodes:n,source:o,newValue:r}=i,a=n;e.selectionService.setNodesSelected({nodes:a,source:o??"api",newValue:r})}function UO(e,i="apiSelectAll"){e.selectionService.selectAllRowNodes({source:i})}function jO(e,i="apiSelectAll"){e.selectionService.deselectAllRowNodes({source:i})}function WO(e,i="apiSelectAllFiltered"){e.selectionService.selectAllRowNodes({source:i,justFiltered:!0})}function $O(e,i="apiSelectAllFiltered"){e.selectionService.deselectAllRowNodes({source:i,justFiltered:!0})}function qO(e,i="apiSelectAllCurrentPage"){e.selectionService.selectAllRowNodes({source:i,justCurrentPage:!0})}function YO(e,i="apiSelectAllCurrentPage"){e.selectionService.deselectAllRowNodes({source:i,justCurrentPage:!0})}function KO(e){return e.selectionService.getSelectedNodes()}function QO(e){return e.selectionService.getSelectedRows()}function ZO(e){e.sortController.onSortChanged("api")}var JO={version:pe,moduleName:"@ag-grid-community/core-api",apiFunctions:{getGridId:pO,destroy:hO,isDestroyed:gO,getGridOption:mO,setGridOption:fO,updateGridOptions:K_}},XO={version:pe,moduleName:"@ag-grid-community/row-selection-api",apiFunctions:{setNodesSelected:GO,selectAll:UO,deselectAll:jO,selectAllFiltered:WO,deselectAllFiltered:$O,selectAllOnCurrentPage:qO,deselectAllOnCurrentPage:YO,getSelectedNodes:KO,getSelectedRows:QO}},e4={version:pe,moduleName:"@ag-grid-community/row-api",apiFunctions:{redrawRows:PO,setRowNodeExpanded:RO,getRowNode:FO,addRenderedRowListener:AO,getRenderedNodes:OO,forEachNode:LO,getFirstDisplayedRow:NO,getFirstDisplayedRowIndex:Q_,getLastDisplayedRow:VO,getLastDisplayedRowIndex:Z_,getDisplayedRowAtIndex:zO,getDisplayedRowCount:BO,getModel:HO}},t4={version:pe,moduleName:"@ag-grid-community/scroll-api",apiFunctions:{getVerticalPixelRange:bA,getHorizontalPixelRange:_A,ensureColumnVisible:W_,ensureIndexVisible:$_,ensureNodeVisible:yA}},i4={version:pe,moduleName:"@ag-grid-community/keyboard-navigation-api",apiFunctions:{getFocusedCell:yO,clearFocusedCell:wO,setFocusedCell:xO,setFocusedHeader:EO,tabToNextCell:SO,tabToPreviousCell:kO}},n4={version:pe,moduleName:"@ag-grid-community/event-api",apiFunctions:{addEventListener:vO,addGlobalListener:bO,removeEventListener:CO,removeGlobalListener:_O}},o4={version:pe,moduleName:"@ag-grid-community/cell-api",apiFunctions:{expireValueCache:dO,getValue:uO,getCellValue:Y_}},r4={version:pe,moduleName:"@ag-grid-community/menu-api",apiFunctions:{showColumnMenuAfterButtonClick:TO,showColumnMenuAfterMouseClick:IO,showColumnMenu:MO,hidePopupMenu:DO}},a4={version:pe,moduleName:"@ag-grid-community/sort-api",apiFunctions:{onSortChanged:ZO}},s4={version:pe,moduleName:"@ag-grid-community/api",dependantModules:[JO,Q5,XO,H5,e4,W5,t4,eO,i4,n4,cO,o4,r4,a4]};function l4(e){return e.stateService?.getState()??{}}function c4(e){switch(e=M({},e),e.version||(e.version="32.1.0"),e.version){case"32.1.0":e=d4(e)}return e}function d4(e){return e.cellSelection=u4(e,"rangeSelection"),e}function u4(e,i){if(e&&typeof e=="object")return e[i]}var p4=class extends fe{constructor(){super(...arguments),this.beanName="stateService",this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=dn(()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=dn(()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),0),this.onRowSelectedDebounced=dn(()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}wireBeans(e){this.filterManager=e.filterManager,this.ctrlsService=e.ctrlsService,this.pivotResultColsService=e.pivotResultColsService,this.focusService=e.focusService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.columnGroupStateService=e.columnGroupStateService,this.columnGetStateService=e.columnGetStateService,this.paginationService=e.paginationService,this.selectionService=e.selectionService,this.expansionService=e.expansionService,this.columnAnimationService=e.columnAnimationService,this.columnApplyStateService=e.columnApplyStateService,this.sideBarService=e.sideBarService,this.rangeService=e.rangeService}postConstruct(){this.isClientSideRowModel=wo(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",pe),this.ctrlsService.whenReady(this,()=>this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnGridReady()));let[e,i,t]=this.addManagedEventListeners({newColumnsLoaded:({source:n})=>{n==="gridInitializing"&&(e(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{i?.(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{t?.(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnFirstDataRendered())}})}getInitialState(){return c4(this.gos.get("initialState")??{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){this.updateCachedState("sideBar",this.getSideBarState());let e=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:e,sideBarUpdated:e})}setupStateOnColumnsInitialised(){let e=this.getInitialState();this.setColumnState(e),this.setColumnGroupState(e),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());let i=t=>()=>this.updateColumnState([t]);this.addManagedEventListeners({columnValueChanged:i("aggregation"),columnMoved:i("columnOrder"),columnPinned:i("columnPinning"),columnResized:i("columnSizing"),columnVisible:i("columnVisibility"),columnPivotChanged:i("pivot"),columnPivotModeChanged:i("pivot"),columnRowGroupChanged:i("rowGroup"),sortChanged:i("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){let{filter:e,rowGroupExpansion:i,rowSelection:t,pagination:n}=this.getInitialState(),o=this.gos.get("advancedFilterModel");(e||o)&&this.setFilterState(e,o),i&&this.setRowGroupExpansionState(i),t&&this.setRowSelectionState(t),n&&this.setPaginationState(n),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState());let r=()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState());this.addManagedEventListeners({filterChanged:()=>this.updateCachedState("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:r,columnRowGroupChanged:r,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&setTimeout(()=>{r()})},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&this.updateCachedState("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){let{scroll:e,cellSelection:i,focusedCell:t,columnOrder:n}=this.getInitialState();t&&this.setFocusedCellState(t),i&&this.setCellSelectionState(i),e&&this.setScrollState(e),this.setColumnPivotState(!!n?.orderedColIds),this.updateCachedState("sideBar",this.get
1658SideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState());let o=this.getRangeSelectionState();this.updateCachedState("rangeSelection",o),this.updateCachedState("cellSelection",o),this.updateCachedState("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>this.updateCachedState("focusedCell",this.getFocusedCellState()),cellSelectionChanged:r=>{if(r.finished){let a=this.getRangeSelectionState();this.updateCachedState("rangeSelection",a),this.updateCachedState("cellSelection",a)}},bodyScrollEnd:()=>this.updateCachedState("scroll",this.getScrollState())})}getColumnState(){let e=this.columnModel.isPivotMode(),i=[],t=[],n=[],o=[],r=[],a=[],s=[],l=[],c=[],u=0,m=this.columnGetStateService.getColumnState();for(let v=0;v<m.length;v++){let{colId:C,sort:_,sortIndex:E,rowGroup:D,rowGroupIndex:P,aggFunc:T,pivot:O,pivotIndex:K,pinned:we,hide:Ke,width:at,flex:$e}=m[v];c.push(C),_&&(i[E??u++]={colId:C,sort:_}),D&&(t[P??0]=C),typeof T=="string"&&n.push({colId:C,aggFunc:T}),O&&(o[K??0]=C),we&&(we==="right"?a:r).push(C),Ke&&s.push(C),($e||at)&&l.push({colId:C,flex:$e??void 0,width:at})}return{sort:i.length?{sortModel:i}:void 0,rowGroup:t.length?{groupColIds:t}:void 0,aggregation:n.length?{aggregationModel:n}:void 0,pivot:o.length||e?{pivotMode:e,pivotColIds:o}:void 0,columnPinning:r.length||a.length?{leftColIds:r,rightColIds:a}:void 0,columnVisibility:s.length?{hiddenColIds:s}:void 0,columnSizing:l.length?{columnSizingModel:l}:void 0,columnOrder:c.length?{orderedColIds:c}:void 0}}setColumnState(e){let{sort:i,rowGroup:t,aggregation:n,pivot:o,columnPinning:r,columnVisibility:a,columnSizing:s,columnOrder:l,partialColumnState:c}=e,u={},m=D=>{let P=u[D];return P||(P={colId:D},u[D]=P,P)},v=c?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};i&&(i.sortModel.forEach(({colId:D,sort:P},T)=>{let O=m(D);O.sort=P,O.sortIndex=T}),v.sort=null,v.sortIndex=null),t&&(t.groupColIds.forEach((D,P)=>{let T=m(D);T.rowGroup=!0,T.rowGroupIndex=P}),v.rowGroup=null,v.rowGroupIndex=null),n&&(n.aggregationModel.forEach(({colId:D,aggFunc:P})=>{m(D).aggFunc=P}),v.aggFunc=null),o&&(o.pivotColIds.forEach((D,P)=>{let T=m(D);T.pivot=!0,T.pivotIndex=P}),this.gos.updateGridOptions({options:{pivotMode:o.pivotMode},source:"gridInitializing"}),v.pivot=null,v.pivotIndex=null),r&&(r.leftColIds.forEach(D=>{m(D).pinned="left"}),r.rightColIds.forEach(D=>{m(D).pinned="right"}),v.pinned=null),a&&(a.hiddenColIds.forEach(D=>{m(D).hide=!0}),v.hide=null),s&&(s.columnSizingModel.forEach(({colId:D,flex:P,width:T})=>{let O=m(D);O.flex=P??null,O.width=T}),v.flex=null);let C=l?.orderedColIds,_=!!C?.length,E=_?C.map(D=>m(D)):Object.values(u);E.length&&(this.columnStates=E,this.columnApplyStateService.applyColumnState({state:E,applyOrder:_,defaultState:v},"gridInitializing"))}setColumnPivotState(e){let i=this.columnStates;this.columnStates=void 0;let t=this.columnGroupStates;if(this.columnGroupStates=void 0,!!this.pivotResultColsService.isPivotResultColsPresent()){if(i){let n=[];for(let o of i)this.pivotResultColsService.getPivotResultCol(o.colId)&&n.push(o);this.columnApplyStateService.applyColumnState({state:n,applyOrder:e},"gridInitializing")}t&&this.columnGroupStateService.setColumnGroupState(t,"gridInitializing")}}getColumnGroupState(){let e=this.columnGroupStateService.getColumnGroupState(),i=[];return e.forEach(({groupId:t,open:n})=>{n&&i.push(t)}),i.length?{openColumnGroupIds:i}:void 0}setColumnGroupState(e){if(!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;let i=new Set(e.columnGroup?.openColumnGroupIds),n=this.columnGroupStateService.getColumnGroupState().map(({groupId:o})=>{let r=i.has(o);return r&&i.delete(o),{groupId:o,open:r}});i.forEach(o=>{n.push({groupId:o,open:!0})}),n.length&&(this.columnGroupStates=n),this.columnGroupStateService.setColumnGroupState(n,"gridInitializing")}getFilterState(){let e=this.filterManager?.getFilterModel();e&&Object.keys(e).length===0&&(e=void 0);let i=this.filterManager?.getAdvancedFilterModel()??void 0;return e||i?{filterModel:e,advancedFilterModel:i}:void 0}setFilterState(e,i){let{filterModel:t,advancedFilterModel:n}=e??{advancedFilterModel:i};t&&this.filterManager?.setFilterModel(t,"columnFilter"),n&&this.filterManager?.setAdvancedFilterModel(n)}getRangeSelectionState(){let e=this.rangeService?.getCellRanges().map(i=>{let{id:t,type:n,startRow:o,endRow:r,columns:a,startColumn:s}=i;
1658return{id:t,type:n,startRow:o,endRow:r,colIds:a.map(l=>l.getColId()),startColId:s.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){let{gos:i,rangeService:t,columnModel:n,visibleColsService:o}=this;if(!Kd(i)||!t)return;let r=[];if(e.cellRanges.forEach(a=>{let s=[];if(a.colIds.forEach(c=>{let u=n.getCol(c);u&&s.push(u)}),!s.length)return;let l=n.getCol(a.startColId);if(!l){let c=o.getAllCols(),u=new Set(s);l=c.find(m=>u.has(m))}r.push(ae(M({},a),{columns:s,startColumn:l}))}),$D(i)&&qD(i)&&r.length>1)return X("cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`");t.setCellRanges(r)}getScrollState(){if(!this.isClientSideRowModel)return;let e=this.ctrlsService.getGridBodyCtrl()?.getScrollFeature(),{left:i}=e?.getHScrollPosition()??{left:0},{top:t}=e?.getVScrollPosition()??{top:0};return t||i?{top:t,left:i}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;let{top:i,left:t}=e;this.ctrlsService.getGridBodyCtrl()?.getScrollFeature().setScrollPosition(i,t)}getSideBarState(){return this.sideBarService?.getSideBarComp()?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let e=this.focusService.getFocusedCell();if(e){let{column:i,rowIndex:t,rowPinned:n}=e;return{colId:i.getColId(),rowIndex:t,rowPinned:n}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;let{colId:i,rowIndex:t,rowPinned:n}=e;this.focusService.setFocusedCell({column:this.columnModel.getCol(i),rowIndex:t,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){if(!this.paginationService)return;let e=this.paginationService.getCurrentPage(),i=this.gos.get("paginationAutoPageSize")?void 0:this.paginationService.getPageSize();if(!(!e&&!i))return{page:e,pageSize:i}}setPaginationState(e){this.paginationService&&(e.pageSize&&!this.gos.get("paginationAutoPageSize")&&this.paginationService.setPageSize(e.pageSize,"initialState"),typeof e.page=="number"&&this.paginationService.setPage(e.page))}getRowSelectionState(){let e=this.selectionService.getSelectionState();return!e||!Array.isArray(e)&&(e.selectAll===!1||e.selectAllChildren===!1)&&!e?.toggledNodes?.length?void 0:e}setRowSelectionState(e){this.selectionService.setSelectionState(e,"gridInitializing")}getRowGroupExpansionState(){let e=this.expansionService.getExpandedRows();return e.length?{expandedRowGroupIds:e}:void 0}setRowGroupExpansionState(e){this.expansionService.expandRows(e.expandedRowGroupIds)}updateColumnState(e){let i=this.getColumnState(),t=!1;Object.entries(i).forEach(([n,o])=>{Us(o,this.cachedState[n])||(t=!0)}),this.cachedState=M(M({},this.cachedState),i),t&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,i){let t=this.cachedState[e];this.setCachedStateValue(e,i),Us(i,t)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,i){this.cachedState=ae(M({},this.cachedState),{[e]:i})}refreshStaleState(){this.staleStateKeys.forEach(e=>{switch(e){case"rowSelection":this.setCachedStateValue(e,this.getRowSelectionState());break}}),this.staleStateKeys.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach(i=>this.queuedUpdateSources.add(i)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){let e=Array.from(this.queuedUpdateSources);this.queuedUpdateSources.clear(),this.eventService.dispatchEvent({type:"stateUpdated",sources:e,state:this.cachedState})}suppressEventsAndDispatchInitEvent(e){this.suppressEvents=!0,this.columnAnimationService.setSuppressAnimation(!0),e(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.columnAnimationService.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}},J_={version:pe,moduleName:"@ag-grid-community/state-core",beans:[p4]},h4={version:pe,moduleName:"@ag-grid-community/state-api",apiFunctions:{getState:l4},dependantModules:[J_]},g4={version:pe,moduleName:"@ag-grid-community/state",dependantModules:[J_,h4]};function m4(e){return e.rowModel.isLastRowIndexKnown()}function f4(e){return e.paginationService?.getPageSize()??100}function v4(e){return e.paginationService?.getCurrentPage()??0}function C4(e){return e.paginationService?.getTotalPages()??1}function b4(e){return e.paginationService?e.paginationService.getMasterRowCount():e.rowModel.getRowCount()}function _4(e){e.paginationService?.goToNextPage()}function y4(e){e.paginationService?.goToPreviousPage()}function w4(e){e.paginationService?.goToFirstPage()}function x4(e){e.paginationService?.goToLastPage()}function S4(e,i){e.paginationService?.goToPage(i)}var k4=class extends fe{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeService"}wireBeans(e){this.ctrlsService=e.ctrlsService,this.paginationService=e.paginationService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.centerRowsCtrl=e.center;let i=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:i,scrollVisibilityChanged:i}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.paginationService.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;
vendor: 5,949 bytes, line 1658
1658let e=this.centerRowsCtrl.getViewportSizeFeature().getBodyHeight();if(e>0){let i=()=>{let t=Math.max(ha(this.gos),1),n=Math.floor(e/t);this.paginationService.setPageSize(n,"autoCalculated")};this.isBodyRendered?dn(()=>i(),50)():(i(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function E4(e,i,t){e.addManagedElementListeners(i,{keydown:n=>{if(!n.defaultPrevented&&n.key===$.TAB){let o=n.shiftKey;t.findNextFocusableElement(i,!1,o)||t.focusNextGridCoreContainer(o)&&n.preventDefault()}}})}var Ns="paginationPageSizeSelector",T4=class extends gi{constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;let e=this.selectPageSizeComp.getValue();if(!e)return;let i=Number(e);isNaN(i)||i<1||i===this.paginationService.getPageSize()||(this.paginationService.setPageSize(i,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.paginationService=e.paginationService}postConstruct(){this.addManagedPropertyListener(Ns,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;let i=this.paginationService.getPageSize();this.getPageSizeSelectorValues().includes(i)?this.selectPageSizeComp.setValue(i.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Ks(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(Ns)!==!1}reloadPageSizesSelector(){let e=this.getPageSizeSelectorValues(),i=this.paginationService.getPageSize(),t=!i||!e.includes(i);if(t){let o=this.gos.exists("paginationPageSize"),r=this.gos.get(Ns)!==!0;X(`'paginationPageSize=${i}'${o?"":" (default value)"}, but ${i} is not included in${r?"":" the default"} paginationPageSizeSelector=[${e.join(", ")}].`),r||X(`Either set '${Ns}' to an array that includes ${i} or to 'false' to disable the page size selector.`),e.unshift("")}let n=String(t?"":i);this.selectPageSizeComp?(Eg(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(n,!0)):this.createPageSizeSelectorComp(e,n),this.hasEmptyOption=t}createPageSizeSelectOptions(e){return e.map(i=>({value:String(i)}))}createPageSizeSelectorComp(e,i){let t=this.localeService.getLocaleTextFunc(),n=t("pageSizeSelectorLabel","Page Size:"),o=t("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Vg).addOptions(this.createPageSizeSelectOptions(e)).setValue(i).setAriaLabel(o).setLabel(n).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let e=[20,50,100],i=this.gos.get(Ns);return!Array.isArray(i)||pa(i)?e:[...i].sort((t,n)=>t-n)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},I4={selector:"AG-PAGE-SIZE-SELECTOR",component:T4},M4=class extends WA{constructor(){super(),this.btFirst=We,this.btPrevious=We,this.btNext=We,this.btLast=We,this.lbRecordCount=We,this.lbFirstRowOnPage=We,this.lbLastRowOnPage=We,this.lbCurrent=We,this.lbTotal=We,this.pageSizeComp=We,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1}wireBeans(e){this.rowModel=e.rowModel,this.paginationService=e.paginationService,this.focusService=e.focusService,this.ariaAnnouncementService=e.ariaAnnouncementService}postConstruct(){let e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[I4]);let{btFirst:i,btPrevious:t,btNext:n,btLast:o}=this;this.activateTabIndex([i,t,n,o]),i.insertAdjacentElement("afterbegin",yo(e?"last":"first",this.gos)),t.insertAdjacentElement("afterbegin",yo(e?"next":"previous",this.gos)),n.insertAdjacentElement("afterbegin",yo(e?"previous":"next",this.gos)),o.insertAdjacentElement("afterbegin",yo(e?"first":"last",this.gos)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:r=>{this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(r):this.focusService.focusGridInnerElement(r)},forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){let i=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(i),i&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}
1658].forEach(e=>{let{el:i,fn:t}=e;this.addManagedListeners(i,{click:t,keydown:n=>{(n.key===$.ENTER||n.key===$.SPACE)&&(n.preventDefault(),t())}})}),E4(this,this.getGui(),this.focusService),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.paginationService.goToFirstPage()}formatNumber(e){let i=this.gos.getCallback("paginationNumberFormatter");if(i)return i({value:e});let t=this.localeService.getLocaleTextFunc(),n=t("thousandSeparator",","),o=t("decimalSeparator",".");return VR(e,n,o)}getTemplate(){let e=this.localeService.getLocaleTextFunc(),i=e("page","Page"),t=e("to","to"),n=e("of","of"),o=e("firstPage","First Page"),r=e("previousPage","Previous Page"),a=e("nextPage","Next Page"),s=e("lastPage","Last Page"),l=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${l}"> 1659 <ag-page-size-selector data-ref="pageSizeComp"></ag-page-size-selector> 1660 <span class="ag-paging-row-summary-panel"> 1661 <span id="ag-${l}-first-row" data-ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span> 1662 <span id="ag-${l}-to">${t}</span> 1663 <span id="ag-${l}-last-row" data-ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span> 1664 <span id="ag-${l}-of">${n}</span> 1665 <span id="ag-${l}-row-count" data-ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span> 1666 </span> 1667 <span class="ag-paging-page-summary-panel" role="presentation"> 1668 <div data-ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${o}"></div> 1669 <div data-ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${r}"></div> 1670 <span class="ag-paging-description"> 1671 <span id="ag-${l}-start-page">${i}</span> 1672 <span id="ag-${l}-start-page-number" data-ref="lbCurrent" class="ag-paging-number"></span> 1673 <span id="ag-${l}-of-page">${n}</span> 1674 <span id="ag-${l}-of-page-number" data-ref="lbTotal" class="ag-paging-number"></span> 1675 </span> 1676 <div data-ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${a}"></div> 1677 <div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${s}"></div> 1678 </span> 1679 </div>`}onBtNext(){this.nextButtonDisabled||this.paginationService.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.paginationService.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.paginationService.goToLastPage()}enableOrDisableButtons(){let e=this.paginationService.getCurrentPage(),i=this.rowModel.isLastRowIndexKnown(),t=this.paginationService.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let n=this.isZeroPagesToDisplay(),o=e===t-1;this.nextButtonDisabled=o||n,this.lastButtonDisabled=!i||n||e===t-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,i){wP(e,i),e.classList.toggle("ag-disabled",i)}isZeroPagesToDisplay(){let e=this.rowModel.isLastRowIndexKnown(),i=this.paginationService.getTotalPages();return e&&i===0}updateLabels(){let e=this.rowModel.isLastRowIndexKnown(),i=this.paginationService.getTotalPages(),t=this.paginationService.getMasterRowCount(),n=e?t:null;if(n===1){let T=this.rowModel.getRow(0);if(T&&T.group&&!(T.groupData||T.aggData)){this.setTotalLabelsToZero();return}}let o=this.paginationService.getCurrentPage(),r=this.paginationService.getPageSize(),a,s;this.isZeroPagesToDisplay()?a=s=0:(a=r*o+1,s=a+r-1,e&&s>n&&(s=n));let l=a+r-1,c=!e&&t<l,u=this.formatNumber(a);this.lbFirstRowOnPage.textContent=u;let m,v=this.localeService.getLocaleTextFunc();c?m=v("pageLastRowUnknown","?"):m=this.formatNumber(s),this.lbLastRowOnPage.textContent=m;let _=i>0?o+1:0,E=this.formatNumber(_);this.lbCurrent.textContent=E;let D,P;if(e)D=this.formatNumber(i),P=this.formatNumber(n);else{let T=v("more","more");D=T,P=T}this.lbTotal.textContent=D,this.lbRecordCount.textContent=P,this.announceAriaStatus(u,m,P,E,D)}announceAriaStatus(e,i,t,n,o){let r=this.localeService.getLocaleTextFunc(),a=r("page","Page"),s=r("to","to"),l=r("of","of"),c=`${e} ${s} ${i} ${l} ${t}`,u=`${a} ${n} ${l} ${o}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnouncementService.announceValue(c,"paginationRow")),u!==this.ariaPageStatus&&(this.ariaPageStatus=u,this.ariaAnnouncementService.announceValue(u,"paginationPage"))}setTotalLabelsToZero(){let e=this.formatNumber(0);this.lbFirstRowOnPage.textContent=e,this.lbCurrent.textContent=e,this.lbLastRowOnPage.textContent=e,this.lbTotal.textContent=e,this.lbRecordCount.textContent=e,this.announceAriaStatus(e,e,e,e,e)}},D4={selector:"AG-PAGINATION",component:M4},P4=class extends fe{constructor(){super(...arguments),this.beanName="paginationService",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDis
vendor: 4,449 bytes, line 1679
1679playedRowIndex=0,this.masterRowCount=0}wireBeans(e){this.rowModel=e.rowModel,this.pageBoundsService=e.pageBoundsService}postConstruct(){this.active=this.gos.get("pagination"),this.pageSizeFromGridOptions=this.gos.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return D4}isPaginateChildRows(){return this.gos.get("groupRemoveSingleChildren")||this.gos.get("groupRemoveLowestSingleChildren")?!0:this.gos.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){!this.active||this.currentPage===e||typeof this.currentPage!="number"||(this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}isRowPresent(e){return e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex}getPageForIndex(e){return Math.floor(e/this.pageSize)}goToPageWithIndex(e){if(!this.active)return;let i=this.getPageForIndex(e);this.goToPage(i)}isRowInPage(e){return this.active?this.getPageForIndex(e.rowIndex)===this.currentPage:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let e=this.rowModel.getRowCount(),i=Math.floor(e/this.pageSize);this.goToPage(i)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return le(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:le(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:le(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:le(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.pageBoundsService.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;let e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,i){let t=this.pageSize;switch(i){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}t!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0){this.setZeroRows();return}let e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();let i=this.pageSize*this.currentPage,t=this.pageSize*(this.currentPage+1)-1;if(t>e&&(t=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(i),t===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{let n=this.rowModel.getTopLevelRowDisplayedIndex(t+1);this.bottomDisplayedRowIndex=n-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){if(this.masterRowCount=this.rowModel.getRowCount(),this.masterRowCount===0){this.setZeroRows();return}let e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDis
1679playedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){let{keepRenderedRows:i=!1,newPage:t=!1,newPageSize:n=!1}=e;this.eventService.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:t,newPageSize:n,keepRenderedRows:i})}},X_={version:pe,moduleName:"@ag-grid-community/pagination-core",beans:[P4,k4]},R4={version:pe,moduleName:"@ag-grid-community/pagination-api",dependantModules:[X_],apiFunctions:{paginationIsLastPageFound:m4,paginationGetPageSize:f4,paginationGetCurrentPage:v4,paginationGetTotalPages:C4,paginationGetRowCount:b4,paginationGoToNextPage:_4,paginationGoToPreviousPage:y4,paginationGoToFirstPage:w4,paginationGoToLastPage:x4,paginationGoToPage:S4}},F4={version:pe,moduleName:"@ag-grid-community/pagination",dependantModules:[X_,R4]},pi="clientSide",ai="serverSide",ca="infinite",A4={onGroupExpandedOrCollapsed:[pi],refreshClientSideRowModel:[pi],isRowDataEmpty:[pi],forEac
1679hLeafNode:[pi],forEachNodeAfterFilter:[pi],forEachNodeAfterFilterAndSort:[pi],resetRowHeights:[pi],applyTransaction:[pi],applyTransactionAsync:[pi],flushAsyncTransactions:[pi],getBestCostNodeSelection:[pi],getServerSideSelectionState:[ai],setServerSideSelectionState:[ai],applyServerSideTransaction:[ai],applyServerSideTransactionAsync:[ai],applyServerSideRowData:[ai],retryServerSideLoads:[ai],flushServerSideAsyncTransactions:[ai],refreshServerSide:[ai],getServerSideGroupLevelState:[ai],refreshInfiniteCache:[ca],purgeInfiniteCache:[ca],getInfiniteRowCount:[ca],isLastRowIndexKnown:[ca,ai],expandAll:[pi,ai],collapseAll:[pi,ai],onRowHeightChanged:[pi,ai],setRowCount:[ca,ai],getCacheBlockState:[ca,ai]},O4={getValue:{version:"v31.3",new:"getCellValue"},getFirstDisplayedRow:{version:"v31.1",new:"getFirstDisplayedRowIndex"},getLastDisplayedRow:{version:"v31.1",new:"getLastDisplayedRowIndex"},getModel:{version:"v31.1",message:"Please use the appropriate grid API methods instead."},setColumnVisible:{version:"v31.1",old:"setColumnVisible(key,visible)",new:"setColumnsVisible([key],visible)"},setColumnPinned:{version:"v31.1",old:"setColumnPinned(key,pinned)",new:"setColumnsPinned([key],pinned)"},moveColumn:{version:"v31.1",old:"moveColumn(key, toIndex)",new:"moveColumns([key], toIndex)"},setColumnWidth:{version:"v31.1",old:"setColumnWidth(col, width)",new:"setColumnWidths([{key: col, newWidth: width}])"},autoSizeColumn:{version:"v31.1",old:"autoSizeColumn(key, skipHeader)",new:"autoSizeColumns([key], skipHeader)"},addAggFunc:{version:"v31.1",old:"addAggFunc(key, func)",new:"addAggFuncs({ key: func })"},removeValueColumn:{version:"v31.1",old:"removeValueColumn(colKey)",new:"removeValueColumns([colKey])"},addValueColumn:{version:"v31.1",old:"addValueColumn(colKey)",new:"addValueColumns([colKey])"},removeRowGroupColumn:{version:"v31.1",old:"removeRowGroupColumn(colKey)",new:"removeRowGroupColumns([colKey])"},addRowGroupColumn:{version:"v31.1",old:"addRowGroupColumn(colKey)",new:"addRowGroupColumns([colKey])"},removePivotColumn:{version:"v31.1",old:"removePivotColumn(colKey)",new:"removePivotColumns([colKey])"},addPivotColumn:{version:"v31.1",old:"addPivotColumn(colKey)",new:"addPivotColumns([colKey])"},showColumnMenuAfterButtonClick:{version:"v31.1",message:"Use 'IHeaderParams.showColumnMenu' within a header component, or 'api.showColumnMenu' elsewhere."},showColumnMenuAfterMouseClick:{version:"v31.1",message:"Use 'IHeaderParams.showColumnMenuAfterMouseClick' within a header component, or 'api.showColumnMenu' elsewhere."},getFilterInstance:{version:"v31.1",message:"'getFilterInstance' is deprecated. To get/set individual filter models, use 'getColumnFilterModel' or 'setColumnFilterModel' instead. To get hold of the filter instance, use 'getColumnFilterInstance' which returns the instance asynchronously."},showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"}};function L4(e,i,t){let n=O4[e];if(n){let{version:r,new:a,old:s,message:l}=n,c=s??e;return(...u)=>{let m=a?`Please use ${a} instead. `:"";return X(`Since ${r} api.${c} is deprecated. ${m}${l??""}`),i.apply(i,u)}}let o=A4[e];return o?(...r)=>{let a=t.rowModel.getType();if(!o.includes(a)){Xe(`api.${e} can only be called when gridOptions.rowModelType is ${o.join(" or ")}`);return}return i.apply(i,r)}:i}var N4={columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."},suppressCellFlash:{version:"31.2",message:"Use `enableCellChangeFlash={false}` in the ColDef"},checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}},Co=(e,i)=>{let t=i.rowModelType??"clientSide";return t==="clientSide"||t==="serverSide"?{module:"@ag-grid-enterprise/row-grouping"}:null},V4={enableRowGroup:Co,rowGroup:Co,rowGroupIndex:Co,enablePivot:Co,enableValue:Co,pivot:Co,pivotIndex:Co,aggFunc:Co,cellEditor:e=>e.cellEditor==="agRichSelect"||e.cellEditor==="agRichSelectCellEditor"?{module:"@ag-grid-enterprise/rich-select"}:null,menuTabs:e=>{let i=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(t=>i.includes(t))?{module:"@ag-grid-enterprise/menu"}:null},columnsMenuParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},columnChooserParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(e,{rowSelection:i})=>i==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:i})=>i==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:i})=>i==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},children:()=>da},z4={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressS
1679panHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0},B4=Object.keys(z4),da={objectName:"colDef",allProperties:B4,docsUrl:"column-properties/",deprecations:N4,validations:V4},H4=()=>({advancedFilterModel:{version:"31",message:"Use `initialState.filter.advancedFilterModel` instead."},suppressAsyncEvents:{version:"31",message:"Events should be handled asynchronously."},cellFadeDelay:{version:"31.1",renamed:"cellFadeDuration"},cellFlashDelay:{version:"31.1",renamed:"cellFlashDuration"},suppressServerSideInfiniteScroll:{version:"31.1"},serverSideSortOnServer:{version:"31.1"},serverSideFilterOnServer:{version:"31.1"},enableCellChangeFlash:{version:"31.2",message:"Use `enableCellChangeFlash` in the `ColDef` or `defaultColDef` for all columns."},groupIncludeFooter:{version:"31.3",message:"Use `groupTotalRow` instead."},groupIncludeTotalFooter:{version:"31.3",message:"Use `grandTotalRow` instead."},suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."}});var G4=()=>({sideBar:{module:"@ag-grid-enterprise/side-bar"},statusBar:{module:"@ag-grid-enterprise/status-bar"},enableCharts:{module:"@ag-grid-enterprise/charts"},getMainMenuItems:{module:"@ag-grid-enterprise/menu"},getContextMenuItems:{module:"@ag-grid-enterprise/menu"},allowContextMenuWithControlKey:{module:"@ag-grid-enterprise/menu"},enableAdvancedFilter:{module:"@ag-grid-enterprise/advanced-filter"},treeData:{supportedRowModels:["clientSide","serverSide"],module:"@ag-grid-enterprise/row-grouping",validate:e=>{let i=e.rowModelType??"clientSide";switch(i){case"clientSide":{let t=`treeData requires 'getDataPath' in the ${i} row model.`;return e.getDataPath?null:t}case"serverSide":{let t=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${i} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:t}}return null}},masterDetail:{module:"@ag-grid-enterprise/master-detail"},enableRangeSelection:{module:"@ag-grid-enterprise/range-selection"},enableRangeHandle:{dependencies:{enableRangeSelection:[!0]}},enableFillHandle:{dependencies:{enableRangeSelection:[!0]}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupIncludeFooter:{supportedRowModels:["clientSide","serverSide"],validate:e=>{switch(e.rowModelType??"clientSide"){case"clientSide":return null;case"serverSide":return e.suppressServerSideInfiniteScroll?"groupIncludeFooter is not supported alongside suppressServerSideInfiniteScroll":null}return null}},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:[void 0,"bottom"]}},groupIncludeTotalFooter:{supportedRowModels:["clientSide"]}
1679,groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveLowestSingleChildren:[void 0,!1]}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveSingleChildren:[void 0,!1]}},groupSelectsChildren:{dependencies:{rowSelection:["multiple"]}},viewportDatasource:{supportedRowModels:["viewport"],module:"@ag-grid-enterprise/viewport-row-model"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"@ag-grid-enterprise/server-side-row-model"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"]},datasource:{supportedRowModels:["infinite"],module:"@ag-grid-community/infinite-row-model"},rowData:{supportedRowModels:["clientSide"],module:"@ag-grid-community/client-side-row-model"},paginationPageSizeSelector:{validate:e=>{let i=e.paginationPageSizeSelector;return typeof i=="boolean"||i==null||i.length?null:`'paginationPageSizeSelector' cannot be an empty array. 1680 If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},rowSelection:{validate({rowSelection:e}){return e&&typeof e=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':e&&typeof e!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":null}},cellSelection:{module:"@ag-grid-enterprise/range-selection"},columnDefs:()=>da,defaultColDef:()=>da,defaultColGroupDef:()=>da,autoGroupColumnDef:()=>da,selectionColumnDef:()=>da}),U4=()=>({objectName:"gridOptions",allProperties:[...Ws.ALL_PROPERTIES,...vP.EVENT_CALLBACKS],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:H4(),validations:G4()}),j4=class extends fe{constructor(){super(...arguments),this.beanName="validationService"}wireBeans(e){this.beans=e,this.gridOptions=e.gridOptions}postConstruct(){this.processGridOptions(this.gridOptions)}processGridOptions(e){this.processOptions(e,U4())}validateApiFunction(e,i){return L4(e,i,this.beans)}processOptions(e,i){let{validations:t,deprecations:n,allProperties:o,propertyExceptions:r,objectName:a,docsUrl:s}=i;o&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...r??[],...Object.keys(n)],o,a,s);let l=new Set;Object.keys(e).forEach(u=>{let m=n[u];if(m)if("renamed"in m){let{renamed:O,version:K}=m;l.add(`As of v${K}, ${String(u)} is deprecated. Please use ${String(O)} instead.`),e[O]=e[u]}else{let{message:O,version:K}=m;l.add(`As of v${K}, ${String(u)} is deprecated. ${O??""}`)}let v=e[u];if(v==null||v===!1)return;let C=t[u],_;if(C)if(typeof C=="function"){let O=C(e,this.gridOptions);if(!O)return;if("objectName"in O){let K=e[u];if(Array.isArray(K)){K.forEach(we=>{this.processOptions(we,O)});return}this.processOptions(e[u],O);return}_=O}else _=C;else return;let{module:E,dependencies:D,validate:P,supportedRowModels:T}=_;if(T){let O=this.gridOptions.rowModelType??"clientSide";if(!T.includes(O)){l.add(`${String(u)} is not supported with the '${O}' row model.`);return}}if(E){let O=Array.isArray(E)?E:[E],K=!0;if(O.forEach(we=>{this.gos.assertModuleRegistered(we,String(u))||(K=!1,l.add(`${String(u)} is only available when ${we} is loaded.`))}),!K)return}if(D){let O=this.checkForRequiredDependencies(u,D,e);if(O){l.add(O);return}}if(P){let O=P(e,this.gridOptions);if(O){l.add(O);return}}}),l.size>0&&l.forEach(u=>{X(u)})}checkForRequiredDependencies(e,i,t){let o=Object.entries(i).find(([s,l])=>{let c=t[s];return!l.includes(c)});if(!o)return null;let[r,a]=o;return a.length>1?`'${String(e)}' requires '${r}' to be one of [${a.join(", ")}].`:`'${String(e)}' requires '${r}' to be ${a[0]}.`}checkProperties(e,i,t,n,o){let r=["__ob__","__v_skip","__metadata__"],a=W4(Object.getOwnPropertyNames(e),[...r,...i,...t],t);if(Mg(a,(s,l)=>{let c=`invalid ${n} property '${s}' did you mean any of these: ${l.slice(0,8).join(", ")}.`;t.includes("context")&&(c+=` 1681If you are trying to annotate ${n} with application data, use the '${n}.context' property instead.`),X(c)}),Object.keys(a).length>0&&o){let s=this.getFrameworkOverrides().getDocLink(o);X(`to see all the valid ${n} properties please check: ${s}`)}}};function W4(e,i,t){let n={},o=e.filter(r=>!i.some(a=>a===r));return o.length>0&&o.forEach(r=>n[r]=qP({inputValue:r,allSuggestions:t}).values),n}var $4={version:pe,moduleName:"@ag-grid-community/core"},q4={version:pe,moduleName:"@ag-grid-community/core-validations",beans:[j4]},Y4={version:pe,moduleName:"@ag-grid-community/core-community-features",dependantModules:[$4,q4,zA,SF,g4,B5,KA,F4,s4]};var sne=new Map([...Ws.BOOLEAN_PROPERTIES.map(e=>
1681[e,k1]),...Ws.NUMBER_PROPERTIES.map(e=>[e,D_]),["groupAggFiltering",e=>typeof e=="function"?e:k1(e)],["pageSize",ln(1)],["autoSizePadding",ln(0)],["keepDetailRowsCount",ln(1)],["rowBuffer",ln(0)],["infiniteInitialRowCount",ln(1)],["cacheOverflowSize",ln(1)],["cacheBlockSize",ln(1)],["serverSideInitialRowCount",ln(1)],["viewportRowModelPageSize",ln(1)],["viewportRowModelBufferSize",ln(0)]]);var K4=class{constructor(e,i){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:i,children:null},this.mapToItems[i.id]=this.pathRoot}setInactive(){this.active=!1}isActive(){return this.active}depthFirstSearchChangedPath(e,i){if(e.children)for(let t=0;t<e.children.length;t++)this.depthFirstSearchChangedPath(e.children[t],i);i(e.rowNode)}depthFirstSearchEverything(e,i,t){if(e.childrenAfterGroup)for(let n=0;n<e.childrenAfterGroup.length;n++){let o=e.childrenAfterGroup[n];o.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[n],i,t):t&&i(o)}i(e)}forEachChangedNodeDepthFirst(e,i=!1,t=!1){this.active&&!t?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,i)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let i=e,t=0;for(;!this.mapToItems[i.id];){let n={rowNode:i,children:null};this.mapToItems[i.id]=n,t++,i=i.parent}return t}populateColumnsMap(e,i){if(!this.keepingColumns||!i)return;let t=e;for(;t;)this.nodeIdsToColumns[t.id]||(this.nodeIdsToColumns[t.id]={}),i.forEach(n=>this.nodeIdsToColumns[t.id][n.getId()]=!0),t=t.parent}linkPathItems(e,i){let t=e;for(let n=0;n<i;n++){let o=this.mapToItems[t.id],r=this.mapToItems[t.parent.id];r.children||(r.children=[]),r.children.push(o),t=t.parent}}addParentNode(e,i){if(!e||e.isRowPinned())return;let t=this.createPathItems(e);this.linkPathItems(e,t),this.populateColumnsMap(e,i)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,i){if(!this.keepingColumns)return i;let t=this.nodeIdsToColumns[e.id];return i.filter(o=>t[o.getId()])}getNotValueColumnsForNode(e,i){if(!this.keepingColumns)return null;let t=this.nodeIdsToColumns[e.id];return i.filter(o=>!t[o.getId()])}};var ey=class extends fe{constructor(){super(...arguments),this.beanName="rowModelHelperService"}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){let e=this.rowModel;switch(e.getType()){case"clientSide":this.clientSideRowModel=e;break;case"infinite":this.infiniteRowModel=e;break;case"serverSide":this.serverSideRowModel=e;break}}getClientSideRowModel(){return this.clientSideRowModel}getInfiniteRowModel(){return this.infiniteRowModel}getServerSideRowModel(){return this.serverSideRowModel}};function Q4(e){e.expansionService.expandAll(!0)}function Z4(e){e.expansionService.expandAll(!1)}function J4(e){let i=e.rowModelHelperService?.getClientSideRowModel(),t=e.rowModelHelperService?.getServerSideRowModel();i?i.onRowHeightChanged():t&&t.onRowHeightChanged()}function X4(e,i,t){let n=e.rowModelHelperService?.getServerSideRowModel();if(n){if(e.funcColsService.isRowGroupEmpty()){n.setRowCount(i,t);return}Xe("setRowCount cannot be used while using row grouping.");return}let o=e.rowModelHelperService?.getInfiniteRowModel();if(o){o.setRowCount(i,t);return}}function e6(e){return e.rowNodeBlockLoader?.getBlockState()??{}}function t6(e){return e.rowModel.isLastRowIndexKnown()}var i6={version:pe,moduleName:"@ag-grid-community/csrm-ssrm-shared-api",apiFunctions:{expandAll:Q4,collapseAll:Z4,onRowHeightChanged:J4}},n6={version:pe,moduleName:"@ag-grid-community/ssrm-infinite-shared-api",apiFunctions:{setRowCount:X4,getCacheBlockState:e6,isLastRowIndexKnown:t6}};var Ca=typeof global>"u"?{}:global;Ca.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement;Ca.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement;Ca.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement;Ca.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement;Ca.Node=typeof Node>"u"?{}:Node;Ca.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var o6="ROOT_NODE_ID",dg=0,r6=class{constructor(e,i,t,n,o,r){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=e,this.gos=i,this.eventService=t,this.funcColsService=n,this.beans=r,this.selectionService=o,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=o6,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}getCopyOfNodesMap(){return e_(this.allNodesMap)}getRowNode(e){return this.allNodesMap[e]}setRowData(e){if(typeof e=="string"){X("rowData must be an array.");return}this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e);let i=this.rootNode,t=this.rootNode.sibling;i.childrenAfterFilter=null,i.childrenAfterGroup=null,i.childrenAfterAggFilter=null,i.childrenAfterSort=null,i.childrenMapped=null,i.updateHasChildren(),this.nextId=0,this.allNodesMap={},e?i.allLeafChildren=e.map((n,o)=>this.createNode(n,this.rootNode,dg,o)):(i.allLeafChildren=[],i.childrenAfterGroup=[]),t&&(t.childrenAfterFilter=i.childrenAfterFilter,t.childrenAfterGroup=i.childrenAfterGroup,t.childrenAfterAggFilter=i.childrenAfterAggFilter,t.childrenAfterSort=i.childrenAfterSort,t.childrenMapped=i.childrenMapped,t.allLeafChildren=i.allLeafChildren)}updateRowData(e){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e.add);let i={rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},t=[];return this.executeRemove(e,i,t),this.executeUpdate(e,i,t),this.executeAdd(e,i),this.updateSelection(t,"rowDataChanged"),i}updateRowOrderFromRowData(e){let i=this.rootNode.allLeafChildren,t=i?.length??0,n=new Map,o=-1,r=-1;for(let a=0;a<t;
1681++a){let s=i[a],l=s.data;l!==e[a]&&(r<0&&(o=a),r=a,n.set(l,s))}if(o<0)return!1;for(let a=o;a<=r;++a){let s=n.get(e[a]);s!==void 0&&(i[a]=s,s.sourceRowIndex=a)}return!0}isRowCountReady(){return this.rowCountReady}dispatchRowDataUpdateStartedEvent(e){this.eventService.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}updateSelection(e,i){let t=e.length>0;t&&this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:i}),this.selectionService.updateGroupsFromChildrenSelections(i),t&&this.eventService.dispatchEvent({type:"selectionChanged",source:i})}executeAdd(e,i){let t=e.add;if(pa(t))return;let n=this.rootNode.allLeafChildren,o=n.length;if(typeof e.addIndex=="number"&&(o=this.sanitizeAddIndex(e.addIndex),o>0&&this.gos.get("treeData"))){for(let l=0;l<n.length;l++)if(n[l]?.rowIndex==o-1){o=l+1;break}}let r=t.map((s,l)=>this.createNode(s,this.rootNode,dg,o+l));if(o<n.length){let s=n.slice(0,o),l=n.slice(o,n.length),c=s.length+r.length;for(let u=0,m=l.length;u<m;++u)l[u].sourceRowIndex=c+u;this.rootNode.allLeafChildren=[...s,...r,...l],i.rowsInserted=!0}else this.rootNode.allLeafChildren=n.concat(r);let a=this.rootNode.sibling;a&&(a.allLeafChildren=n),i.rowNodeTransaction.add=r}sanitizeAddIndex(e){let i=this.rootNode.allLeafChildren?.length??0;return e<0||e>=i||Number.isNaN(e)?i:Math.ceil(e)}executeRemove(e,{rowNodeTransaction:i},t){let{remove:n}=e;if(pa(n))return;let o={};n.forEach(a=>{let s=this.lookupRowNode(a);s&&(s.isSelected()&&t.push(s),s.clearRowTopAndRowIndex(),o[s.id]=!0,delete this.allNodesMap[s.id],i.remove.push(s))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren?.filter(a=>!o[a.id])??null,this.rootNode.allLeafChildren?.forEach((a,s)=>{a.sourceRowIndex=s});let r=this.rootNode.sibling;r&&(r.allLeafChildren=this.rootNode.allLeafChildren)}executeUpdate(e,{rowNodeTransaction:i},t){let{update:n}=e;pa(n)||n.forEach(o=>{let r=this.lookupRowNode(o);r&&(r.updateData(o),!r.selectable&&r.isSelected()&&t.push(r),this.setMasterForRow(r,o,dg,!1),i.update.push(r))})}lookupRowNode(e){let i=Yd(this.gos),t;if(i){let n=i({data:e,level:0});if(t=this.allNodesMap[n],!t)return Xe(`could not find row id=${n}, data item was not found for this id`),null}else if(t=this.rootNode.allLeafChildren?.find(n=>n.data===e),!t)return Xe("could not find data item as object was not found",e),Xe("Consider using getRowId to help the Grid find matching row data"),null;return t||null}createNode(e,i,t,n){let o=new ga(this.beans);return o.sourceRowIndex=n,o.group=!1,this.setMasterForRow(o,e,t,!0),i&&(o.parent=i),o.level=t,o.setDataAndId(e,this.nextId.toString()),this.allNodesMap[o.id]&&X(`duplicate node id '${o.id}' detected from getRowId callback, this could cause issues in your grid.`),this.allNodesMap[o.id]=o,this.nextId++,o}setMasterForRow(e,i,t,n){if(this.gos.get("treeData"))e.setMaster(!1),n&&(e.expanded=!1);else{if(this.gos.get("masterDetail")){let a=this.gos.get("isRowMaster");a?e.setMaster(a(i)):e.setMaster(!0)}else e.setMaster(!1);if(n){let a=this.funcColsService.getRowGroupColumns(),s=a?a.length:0,l=t+s;e.expanded=e.master?this.isExpanded(l):!1}}}isExpanded(e){let i=this.gos.get("groupDefaultExpanded");return i===-1?!0:e<i}},a6=class extends fe{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=dn(this.onRowHeightChanged.bind(this),100),this.rowsToDisplay=[],this.hasStarted=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowCountReady=!1}wireBeans(e){this.beans=e,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.selectionService=e.selectionService,this.valueCache=e.valueCache,this.environment=e.environment,this.filterStage=e.filterStage,this.sortStage=e.sortStage,this.flattenStage=e.flattenStage,this.groupStage=e.groupStage,this.aggregationStage=e.aggregationStage,this.pivotStage=e.pivotStage,this.filterAggregatesStage=e.filterAggregatesStage}postConstruct(){let e=this.refreshModel.bind(this,{step:"group"}),i=!this.gos.get("suppressAnimationFrame"),t=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:i});this.addManagedEventListeners({newColumnsLoaded:t,columnRowGroupChanged:e,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:e,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new ga(this.beans),this.nodeManager=new r6(this.rootNode,this.gos,this.eventService,this.funcColsService,this.selectionService,this.beans)}addPropertyListeners(){let e=new Set(["treeData","masterDetail"]),i=new Set(["groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),t=new Set(["excludeChildrenWhenTreeDataFiltering"]),n=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),o=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly","grandTotalRow"]),r=new Set(["postSortRows","groupDisplayType","accentedSort"]),a=new Set([]),s=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter","groupTotalRow"]),l=[...e,...i,...t,...n,...n,...o,...r,...a,...s];this.addManagedPropertyListeners(l,c=>{let u=c.changeSet?.properties;if(!u)return;let m=v=>u.some(C=>v.has(C));if(m(e)){this.setRowData(this.rootNode.allLeafChildren.map(v=>v.data));return}if(m(i)){this.refreshModel({step:"group"});return}if(m(t)){this.refreshModel({step:"filter"});return}if(m(n)){this.refreshModel({step:"pivot"});return}if(m(o)){this.refreshModel({step:"aggregate"});return}if(m(r)){this.refreshModel({step:"sort"});return}if(m(a)){this.refreshModel({step:"filter_aggregates"});return}m(s)&&this.refreshModel({step:"map"})}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()}setInitialData(){let e=this.gos.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))}ensureRowHeightsValid(e,i,t,n){let o,r=!1;do{o=!1;let a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(i),l=Math.max(a,t),c=Math.min(s,n);for(let u=l;u<=c;u++){let m=this.getRow(u);if(m.rowHeightEstimated){let v=Gd(this.gos,m);m.setRowHeight(v.height),o=!0,r=!0}}o&&this.setRowTopAndRowIndex()}while(o);return r}setRowTopAndRowIndex(){let e=this.environment.getDefaultRowHeight(),i=0,t=new Set,n=xg(this.gos,"normal");for(let o=0;o<this.rowsToDisplay.length;o++){let r=this.rowsToDisplay[o];if(r.id!=null&&t.add(r.id),r.rowHeight==null){let a=Gd(this.gos,r,n,e);
1681r.setRowHeight(a.height,a.estimated)}r.setRowTop(i),r.setRowIndex(o),i+=r.rowHeight}return t}clearRowTopAndRowIndex(e,i){let t=e.isActive(),n=r=>{r&&r.id!=null&&!i.has(r.id)&&r.clearRowTopAndRowIndex()},o=r=>{if(n(r),n(r.detailNode),n(r.sibling),r.hasChildren()&&r.childrenAfterGroup){let a=r.level==-1;t&&!a&&!r.expanded||r.childrenAfterGroup.forEach(o)}};o(this.rootNode)}ensureRowsAtPixel(e,i,t=0){let n=this.getRowIndexAtPixel(i),o=this.getRow(n),r=!this.gos.get("suppressAnimationFrame");if(o===e[0])return!1;let a=this.rootNode.allLeafChildren;return e.forEach(s=>{K1(a,s)}),e.forEach((s,l)=>{QD(a,s,Math.max(n+t,0)+l)}),e.forEach((s,l)=>{s.sourceRowIndex=l}),this.refreshModel({step:"group",keepRenderedRows:!0,keepEditingRows:!0,animate:r,rowNodesOrderChanged:!0}),!0}highlightRowAtPixel(e,i){let t=i!=null?this.getRowIndexAtPixel(i):null,n=t!=null?this.getRow(t):null;if(!n||!e||i==null){this.clearHighlightedRow();return}let o=this.getHighlightPosition(i,n),r=this.isHighlightingCurrentPosition(e,n,o),a=this.lastHighlightedRow!=null&&this.lastHighlightedRow!==n;(r||a)&&(this.clearHighlightedRow(),r)||(n.setHighlighted(o),this.lastHighlightedRow=n)}getHighlightPosition(e,i){if(!i){let o=this.getRowIndexAtPixel(e);if(i=this.getRow(o||0),!i)return 1}let{rowTop:t,rowHeight:n}=i;return e-t<n/2?0:1}getLastHighlightedRowNode(){return this.lastHighlightedRow}isHighlightingCurrentPosition(e,i,t){if(e===i)return!0;let n=t===0?-1:1;return this.getRow(i.rowIndex+n)===e}clearHighlightedRow(){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){if(this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;let i=this.rootNode.childrenAfterAggFilter,t=this.rootNode.sibling?1:0;return(i?i.length:0)+t}getTopLevelRowDisplayedIndex(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;let t=e;if(this.rowsToDisplay[0].footer){if(e===0)return 0;t-=1}let n=this.rowsToDisplay[this.rowsToDisplay.length-1],o=t>=this.rootNode.childrenAfterSort.length;if(n.footer&&o)return n.rowIndex;let r=this.rootNode.childrenAfterSort[t];if(this.gos.get("groupHideOpenParents"))for(;r.expanded&&r.childrenAfterSort&&r.childrenAfterSort.length>0;)r=r.childrenAfterSort[0];return r.rowIndex}getRowBounds(e){if(Rt(this.rowsToDisplay))return null;let i=this.rowsToDisplay[e];return i?{rowTop:i.rowTop,rowHeight:i.rowHeight}:null}onRowGroupOpened(){let e=Xh(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;let i=Xh(this.gos),n=e.columns.length===0||e.columns.some(o=>o.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:n,keepRenderedRows:!0,animate:i})}onSortChanged(){let e=Xh(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:e,keepEditingRows:!0})}getType(){return"clientSide"}onValueChanged(){this.columnModel.isPivotActive()?this.refreshModel({step:"pivot"}):this.refreshModel({step:"aggregate"})}createChangePath(e){let i=pa(e),t=new K4(!1,this.rootNode);return i&&t.setInactive(),t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;let i=e.rowNodeTransactions.filter(n=>n.add!=null&&n.add.length>0||n.remove!=null&&n.remove.length>0);return i==null||i.length==0}buildRefreshModelParams(e){let i="group",t={everything:"group",group:"group",filter:"filter",map:"map",aggregate:"aggregate",filter_aggregates:"filter_aggregates",sort:"sort",pivot:"pivot",nothing:"nothing"};if(le(e)&&(i=t[e]),Rt(i)){Xe(`invalid step ${e}, available steps are ${Object.keys(t).join(", ")}`);return}let n=!this.gos.get("suppressAnimationFrame");return{step:i,keepRenderedRows:!0,keepEditingRows:!0,animate:n}}refreshModel(e){if(!this.hasStarted||this.isRefreshingModel||this.columnModel.isChangeEventsDispatching())return;let i=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(!i||this.isSuppressModelUpdateAfterUpdateTransaction(i))return;let t=this.createChangePath(i.rowNodeTransactions);switch(this.isRefreshingModel=!0,i.step){case"group":this.doRowGrouping(i.rowNodeTransactions,t,!!i.rowNodesOrderChanged,!!i.afterColumnsChanged);case"filter":this.doFilter(t);case"pivot":this.doPivot(t);case"aggregate":this.doAggregate(t);case"filter_aggregates":this.doFilterAggregates(t);case"sort":this.doSort(i.rowNodeTransactions,t);case"map":this.doRowsToDisplay()}let n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(t,n),this.isRefreshingModel=!1,this.eventService.dispatchEvent({type:"modelUpdated",animate:i.animate,keepRenderedRows:i.keepRenderedRows,newD
1681ata:i.newData,newPage:!1,keepUndoRedoStack:i.keepUndoRedoStack})}isEmpty(){let e=Rt(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return Rt(this.rootNode)||e||!this.columnModel.isReady()}isRowsToRender(){return le(this.rowsToDisplay)&&this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,i){let t=!1,n=!1,o=[],r=gg(this.gos);return this.forEachNodeAfterFilterAndSort(a=>{if(n)return;if(t&&(a===i||a===e)&&(n=!0,a.group&&r)){o.push(...a.allLeafChildren);return}if(!t){if(a!==i&&a!==e)return;t=!0}if(!a.group||!r){o.push(a);return}}),o}setDatasource(e){Xe("should never call setDatasource on clientSideRowController")}getTopLevelNodes(){return this.rootNode?this.rootNode.childrenAfterGroup:null}getRootNode(){return this.rootNode}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){if(this.isEmpty()||this.rowsToDisplay.length===0)return-1;let i=0,t=this.rowsToDisplay.length-1;if(e<=0)return 0;if(dr(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;let o=-1,r=-1;for(;;){let a=Math.floor((i+t)/2),s=this.rowsToDisplay[a];if(this.isRowInPixel(s,e)||(s.rowTop<e?i=a+1:s.rowTop>e&&(t=a-1),o===i&&r===t))return a;o=i,r=t}}isRowInPixel(e,i){let t=e.rowTop,n=e.rowTop+e.rowHeight;return t<=i&&n>i}forEachLeafNode(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((i,t)=>e(i,t))}forEachNode(e,i=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterGroup||[]],callback:e,recursionType:0,index:0,includeFooterNodes:i})}forEachNodeAfterFilter(e,i=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterAggFilter||[]],callback:e,recursionType:1,index:0,includeFooterNodes:i})}forEachNodeAfterFilterAndSort(e,i=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterSort||[]],callback:e,recursionType:2,index:0,includeFooterNodes:i})}forEachPivotNode(e,i=!1){this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:3,index:0,includeFooterNodes:i})}recursivelyWalkNodesAndCallback(e){let{nodes:i,callback:t,recursionType:n,includeFooterNodes:o}=e,{index:r}=e,a=s=>{let l=i[0]?.parent;if(!l)return;let c=o&&W1(this.gos),u=$1(this.gos),m=o&&u({node:l});if(l===this.rootNode){c===s&&(l.createFooter(),t(l.sibling,r++));return}m===s&&(l.createFooter(),t(l.sibling,r++))};a("top");for(let s=0;s<i.length;s++){let l=i[s];if(t(l,r++),l.hasChildren()&&!l.footer){let c=null;switch(n){case 0:c=l.childrenAfterGroup;break;case 1:c=l.childrenAfterAggFilter;break;case 2:c=l.childrenAfterSort;break;case 3:c=l.leafGroup?null:l.childrenAfterSort;break}c&&(r=this.recursivelyWalkNodesAndCallback({nodes:[...c],callback:t,recursionType:n,index:r,includeFooterNodes:o}))}}return a("bottom"),r}doAggregate(e){this.aggregationStage?.execute({rowNode:this.rootNode,changedPath:e})}doFilterAggregates(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter}expandOrCollapseAll(e){let i=this.gos.get("treeData"),t=this.columnModel.isPivotActive(),n=o=>{o&&o.forEach(r=>{let a=()=>{r.expanded=e,n(r.childrenAfterGroup)};if(i){le(r.childrenAfterGroup)&&a();return}if(t){!r.leafGroup&&a();return}r.group&&a()})};this.rootNode&&n(this.rootNode.childrenAfterGroup),this.refreshModel({step:"map"}),this.eventService.dispatchEvent({type:"expandOrCollapseAll",source:e?"expandAll":"collapseAll"})}doSort(e,i){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:i})}doRowGrouping(e,i,t,n){if(this.groupStage)e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodesOrderChanged:t,changedPath:i}):this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:n}),gg(this.gos)&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",i)&&this.eventService.dispatchEvent({type:"selectionChanged",source:"rowGroupChanged"});else{let o=this.rootNode,r=o.sibling;o.childrenAfterGroup=o.allLeafChildren,r&&(r.childrenAfterGroup=o.childrenAfterGroup),this.rootNode.updateHasChildren()}this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})}doPivot(e){this.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getNodeManager(){return this.nodeManager}getRowNode(e){if(typeof e=="string"&&e.indexOf(ga.ID_PREFIX_ROW_GROUP)==0){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}return this.nodeManager.getRowNode(e)}setRowData(e){this.selectionService.reset("rowDataChanged"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()}dispatchUpdateEventsAndRefresh(){this.eventService.dispatchEvent({type:"rowDataUpdated"}),this.refreshModel({step:"group",newData:!0})}batchUpdateRowData(e,i){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];let t=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},t)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:i})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache.onDataChanged();let e=[],i=[],t=!1;this.rowDataTransactionBatch?.forEach(n=>{let{rowNodeTransaction:o,rowsInserted:r}=this.nodeManager.updateRowData(n.rowDataTransaction);r&&(t=!0),i.push(o),n.callback&&e.push(n.callback.bind(null,o))}),this.commonUpdateRowData(i,t),e.length>0&&window.setTimeout(()=>{e.forEach(n=>n())},0),i.length>0&&this.eventService.dispatchEvent({type:"asyncTransactionsFlushed",results:i}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e){this.valueCache.onDataChanged();let{rowNodeTransaction:i,rowsInserted:t}=this.nodeManager.updateRowData(e);return this.commonUpdateRowData([i],t),i}afterImmutableDataChange(e,i){this.commonUpdateRowData([e],i)}commonUpdateRowData(e,i){if(!this.hasStarted)return;let t=!this.gos.get("suppressAnimationFrame");this.eventService.dispatchEvent({type:"rowDataUpdated"}),this.refreshModel({step:"group",rowNodeTransactions:e,rowNodesOrderChanged:i,keepRenderedRows:!0,keepEditingRows:!0,animate:t})}doRowsToDisplay(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){let e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(i=>{i.setRowHeight(i.rowHeight,!0);let t=i.detailNode;t&&t.setRowHeight(t.rowHeight,!0),i.sibling&&i.sibling.setRowHeight(i.sibling.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){if(e.rowHeightChanged){if(this.columnModel.isAutoRowHeightActive())return;this.resetRowHeights()}}onGridReady(){this.hasStarted||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlightedRow()}};function s6(e){e.expansionService.onGroupExpandedOrCollapsed()}function l6(e,i){e.rowModelHelperService?.getClientSideRowModel()?.refreshModel(i)}function c6(e){return e.rowModelHelperService?.getClientSideRowModel()?.isEmpty()??!0}function d6(e,i){e.rowModelHelperService?.getClientSideRowModel()?.forEachLeafNode(i)}function u6(e,i){e.rowModelHelperService?.getClientSideRowModel()?.forEachNodeAfterFilter(i)}function p6(e,i){e.rowModelHelperService?.getClientSideRowModel()?.forEachNodeAfterFilterAndSort(i)}function h6(e){if(e.columnModel.isAutoRowHeightActive()){X("calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");return}e.rowModelHelperService?.getClientSideRowModel()?.resetRowHeights()}function g6(e,i){return e.frameworkOverrides.wrapIncoming(()=>e.rowModelHelperService?.getClientSideRowModel()?.updateRowData(i))}function m6(e,i,t){e.frameworkOverrides.wrapIncoming(()=>e.rowModelHelperService?.getClientSideRowModel()?.batchUpdateRowData(i,t))}function f6(e){e.frameworkOverrides.wrapIncoming(()=>e.rowModelHelperService?.getClientSideRowModel()?.flushAsyncTransactions())}
1681function v6(e){return e.selectionService.getBestCostNodeSelection()}var C6=class extends fe{constructor(){super(...arguments),this.beanName="filterStage"}wireBeans(e){this.filterManager=e.filterManager}execute(e){let{changedPath:i}=e;this.filter(i)}filter(e){let i=!!this.filterManager?.isChildFilterPresent();this.filterNodes(i,e)}filterNodes(e,i){let t=(n,o)=>{n.hasChildren()&&e&&!o?n.childrenAfterFilter=n.childrenAfterGroup.filter(r=>{let a=r.childrenAfterFilter&&r.childrenAfterFilter.length>0,s=r.data&&this.filterManager.doesRowPassFilter({rowNode:r});return a||s}):n.childrenAfterFilter=n.childrenAfterGroup,n.sibling&&(n.sibling.childrenAfterFilter=n.childrenAfterFilter)};if(this.doingTreeDataFiltering()){let n=(r,a)=>{if(r.childrenAfterGroup)for(let s=0;s<r.childrenAfterGroup.length;s++){let l=r.childrenAfterGroup[s],c=a||this.filterManager.doesRowPassFilter({rowNode:l});l.childrenAfterGroup?n(r.childrenAfterGroup[s],c):t(l,c)}t(r,a)},o=r=>n(r,!1);i.executeFromRootNode(o)}else{let n=o=>t(o,!1);i.forEachChangedNodeDepthFirst(n,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},b6=class extends fe{constructor(){super(...arguments),this.beanName="flattenStage"}wireBeans(e){this.beans=e,this.columnModel=e.columnModel}execute(e){let i=e.rowNode,t=[],n=this.columnModel.isPivotMode(),o=n&&i.leafGroup,r=o?[i]:i.childrenAfterSort,a=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(a,r,t,n,0);let s=t.length>0;if(!o&&s&&a.grandTotalRow){i.createFooter();let c=a.grandTotalRow==="top";this.addRowNodeToRowsToDisplay(a,i.sibling,t,0,c)}return t}getFlattenDetails(){let e=this.gos.get("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!e&&this.gos.get("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:e,isGroupMultiAutoColumn:q1(this.gos),hideOpenParents:this.gos.get("groupHideOpenParents"),grandTotalRow:W1(this.gos),groupTotalRow:$1(this.gos)}}recursivelyAddToRowsToDisplay(e,i,t,n,o){if(!pa(i))for(let r=0;r<i.length;r++){let a=i[r],s=a.hasChildren(),l=n&&!s,c=e.groupRemoveSingleChildren&&s&&a.childrenAfterGroup.length===1,u=e.groupRemoveLowestSingleChildren&&s&&a.leafGroup&&a.childrenAfterGroup.length===1,m=n&&a.leafGroup,v=e.hideOpenParents&&a.expanded&&!a.master&&!m;if(!l&&!v&&!c&&!u&&this.addRowNodeToRowsToDisplay(e,a,t,o),!(n&&a.leafGroup)){if(s){let _=c||u;if(a.expanded||_){let E=e.groupTotalRow({node:a});E||a.destroyFooter();let D=_?o:o+1;E==="top"&&(a.createFooter(),this.addRowNodeToRowsToDisplay(e,a.sibling,t,D)),this.recursivelyAddToRowsToDisplay(e,a.childrenAfterSort,t,n,D),E==="bottom"&&(a.createFooter(),this.addRowNodeToRowsToDisplay(e,a.sibling,t,D))}}else if(a.master&&a.expanded){let _=this.createDetailNode(a);this.addRowNodeToRowsToDisplay(e,_,t,o)}}}}addRowNodeToRowsToDisplay(e,i,t,n,o){o?t.unshift(i):t.push(i),i.setUiLevel(e.isGroupMultiAutoColumn?0:n)}createDetailNode(e){if(le(e.detailNode))return e.detailNode;let i=new ga(this.beans);return i.detail=!0,i.selectable=!1,i.parent=e,le(e.id)&&(i.id="detail_"+e.id),i.data=e.data,i.level=e.level+1,e.detailNode=i,i}},_6=class extends fe{constructor(){super(...arguments),this.beanName="immutableService"}wireBeans(e){this.rowModel=e.rowModel,this.selectionService=e.selectionService}postConstruct(){wo(this.gos)&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",()=>this.onRowDataUpdated()))}isActive(){let e=this.gos.exists("getRowId");return this.gos.get("resetRowDataOnUpdate")?!1:e}setRowData(e){let i=this.createTransactionForRowData(e);if(!i)return;let t=this.clientSideRowModel.getNodeManager(),{rowNodeTransaction:n,rowsInserted:o}=t.updateRowData(i),r=!1;this.gos.get("suppressMaintainUnsortedOrder")||(r=t.updateRowOrderFromRowData(e)),this.clientSideRowModel.afterImmutableDataChange(n,r||o)}createTransactionForRowData(e){if(!wo(this.gos))return Xe("ImmutableService only works with ClientSideRowModel"),null;let i=Yd(this.gos);if(i==null)return Xe("ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!"),null;let t=this.clientSideRowModel.getNodeManager().getCopyOfNodesMap(),n=[],o=[],r=[];return le(e)&&e.forEach(a=>{let s=i({data:a,level:0}),l=t[s];l?(l.data!==a&&o.push(a),t[s]=void 0):r.push(a)}),Mg(t,(a,s)=>{s&&n.push(s.data)}),{remove:n,update:o,add:r}}onRowDataUpdated(){let e=this.gos.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))}},y6=class extends fe{constructor(){super(...arguments),this.beanName="sortService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.rowNodeSorter=e.rowNodeSorter,this.showRowGroupColsService=e.showRowGroupColsService}sort(e,i,t,n,o,r){let a=this.gos.get("groupMaintainOrder"),s=this.columnModel.getCols().some(v=>v.isRowGroupActive()),l={};t&&n&&(l=this.calculateDirtyNodes(n));let c=this.columnModel.isPivotMode(),u=this.gos.getCallback("postSortRows"),m=v=>{this.pullDownGroupDataForHideOpenParents(v.childrenAfterAggFilter,!0);let C=c&&v.leafGroup;if(a&&s&&!v.leafGroup&&!r){let D=this.funcColsService.getRowGroupColumns()?.[v.level+1]?.getSort()===null,P=v.childrenAfterAggFilter.slice(0);if(v.childrenAfterSort&&!D){let T={};
1681v.childrenAfterSort.forEach((O,K)=>{T[O.id]=K}),P.sort((O,K)=>(T[O.id]??0)-(T[K.id]??0))}v.childrenAfterSort=P}else!i||C?v.childrenAfterSort=v.childrenAfterAggFilter.slice(0):t?v.childrenAfterSort=this.doDeltaSort(v,l,o,e):v.childrenAfterSort=this.rowNodeSorter.doFullSort(v.childrenAfterAggFilter,e);if(v.sibling&&(v.sibling.childrenAfterSort=v.childrenAfterSort),this.updateChildIndexes(v),u){let E={nodes:v.childrenAfterSort};u(E)}};o&&o.forEachChangedNodeDepthFirst(m),this.updateGroupDataForHideOpenParents(o)}calculateDirtyNodes(e){let i={},t=n=>{n&&n.forEach(o=>i[o.id]=!0)};return e&&e.forEach(n=>{t(n.add),t(n.update),t(n.remove)}),i}doDeltaSort(e,i,t,n){let o=e.childrenAfterAggFilter,r=e.childrenAfterSort;if(!r)return this.rowNodeSorter.doFullSort(o,n);let a={},s=[];o.forEach(m=>{i[m.id]||!t.canSkip(m)?s.push(m):a[m.id]=!0});let l=r.filter(m=>a[m.id]),c=(m,v)=>({currentPos:v,rowNode:m}),u=s.map(c).sort((m,v)=>this.rowNodeSorter.compareRowNodes(n,m,v));return this.mergeSortedArrays(n,u,l.map(c)).map(({rowNode:m})=>m)}mergeSortedArrays(e,i,t){let n=[],o=0,r=0;for(;o<i.length&&r<t.length;)this.rowNodeSorter.compareRowNodes(e,i[o],t[r])<0?n.push(i[o++]):n.push(t[r++]);for(;o<i.length;)n.push(i[o++]);for(;r<t.length;)n.push(t[r++]);return n}updateChildIndexes(e){if(Rt(e.childrenAfterSort))return;let i=e.childrenAfterSort;for(let t=0;t<i.length;t++){let n=i[t],o=t===0,r=t===e.childrenAfterSort.length-1;n.setFirstChild(o),n.setLastChild(r),n.setChildIndex(t)}}updateGroupDataForHideOpenParents(e){if(!this.gos.get("groupHideOpenParents"))return;if(this.gos.get("treeData"))return X("The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them."),!1;let i=t=>{this.pullDownGroupDataForHideOpenParents(t.childrenAfterSort,!1),t.childrenAfterSort.forEach(n=>{n.hasChildren()&&i(n)})};e&&e.executeFromRootNode(t=>i(t))}pullDownGroupDataForHideOpenParents(e,i){!this.gos.get("groupHideOpenParents")||Rt(e)||e.forEach(t=>{(this.showRowGroupColsService?.getShowRowGroupCols()??[]).forEach(o=>{let r=o.getColDef().showRowGroup;if(typeof r!="string"){Xe("groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}let a=r,s=this.columnModel.getColDefCol(a);if(s!==t.rowGroupColumn)if(i)t.setGroupValue(o.getId(),void 0);else{let c=this.getFirstChildOfFirstChild(t,s);c&&t.setGroupValue(o.getId(),c.key)}})})}getFirstChildOfFirstChild(e,i){let t=e;for(;t;){let n=t.parent;if(n&&t.firstChild){if(n.rowGroupColumn===i)return n}else return null;t=n}return null}},w6=class extends fe{constructor(){super(...arguments),this.beanName="sortStage"}wireBeans(e){this.sortService=e.sortService,this.sortController=e.sortController}execute(e){let i=this.sortController.getSortOptions(),t=le(i)&&i.length>0,n=t&&le(e.rowNodeTransactions)&&this.gos.get("deltaSort"),o=i.some(r=>UD(this.gos)?r.column.isPrimary()&&r.column.isRowGroupActive():!!r.column.getColDef().showRowGroup);this.sortService.sort(i,t,n,e.rowNodeTransactions,e.changedPath,o)}},Ug="32.3.9",ty={version:Ug,moduleName:"@ag-grid-community/client-side-row-model-core",rowModel:"clientSide",beans:[a6,C6,w6,b6,y6,_6]},x6={version:Ug,moduleName:"@ag-grid-community/client-side-row-model-api",beans:[ey],apiFunctions:{onGroupExpandedOrCollapsed:s6,refreshClientSideRowModel:l6,isRowDataEmpty:c6,forEachLeafNode:d6,forEachNodeAfterFilter:u6,forEachNodeAfterFilterAndSort:p6,resetRowHeights:h6,applyTransaction:g6,applyTransactionAsync:m6,flushAsyncTransactions:f6,getBestCostNodeSelection:v6},dependantModules:[ty,i6]},S6={version:Ug,moduleName:"@ag-grid-community/client-side-row-model",dependantModules:[ty,x6]},k6=class extends fe{setBeans(e){this.beans=e}getFileName(e){let i=this.getDefaultFileExtension();return(e==null||!e.length)&&(e=this.getDefaultFileName()),e.indexOf(".")===-1?`${e}.${i}`:e}getData(e){let i=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(i,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},E6=class{constructor(e){this.groupColumns=[];let{columnModel:i,funcColsService:t,columnNameService:n,valueService:o,gos:r,processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c}=e;this.columnModel=i,this.funcColsService=t,this.columnNameService=n,this.valueService=o,this.gos=r,this.processCellCallback=a,this.processHeaderCallback=s,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c}prepare(e){this.groupColumns=e.filter(i=>!!i.getColDef().showRowGroup)}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e,i,t,n,o){let a=(!this.gos.get("groupHideOpenParents")||o.footer)&&this.shouldRenderGroupSummaryCell(o,e,i)?this.createValueForGroupNode(e,o):this.valueService.getValue(e,o);return this.processCell({accumulatedRowIndex:t,rowNode:o,column:e,value:a,processCellCallback:this.processCellCallback,type:n})}shouldRenderGroupSummaryCell(e,i,t){if(!(e&&e.group))return!1;if(this.groupColumns.indexOf(i)!==-1){let a=e.groupData?.[i.getId()],s=this.gos.get("suppressGroupMaintainValueType");if(s&&a!=null||!s&&a!==void 0||qd(this.gos)&&e.group)return!0;
1681if(e.footer&&e.level===-1){let l=i.getColDef();return l==null||l.showRowGroup===!0||l.showRowGroup===this.funcColsService.getRowGroupColumns()[0].getId()}}let r=jD(this.gos,this.columnModel.isPivotMode());return t===0&&r}getHeaderName(e,i){return e?e(this.gos.addGridCommonParams({column:i})):this.columnNameService.getDisplayNameForColumn(i,"csv",!0)}createValueForGroupNode(e,i){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gos.addGridCommonParams({column:e,node:i}));let t=this.gos.get("treeData"),n=this.gos.get("suppressGroupMaintainValueType"),o=l=>{if(t||n)return l.key;let c=l.groupData?.[e.getId()];return!c||!l.rowGroupColumn||l.rowGroupColumn.getColDef().useValueFormatterForExport===!1?c:this.valueService.formatValue(l.rowGroupColumn,l,c)??c},r=i.footer,a=[o(i)];if(!q1(this.gos))for(;i.parent;)i=i.parent,a.push(o(i));let s=a.reverse().join(" -> ");return r?`Total ${s}`:s}processCell(e){let{accumulatedRowIndex:i,rowNode:t,column:n,value:o,processCellCallback:r,type:a}=e;return r?{value:r(this.gos.addGridCommonParams({accumulatedRowIndex:i,column:n,node:t,value:o,type:a,parseValue:s=>this.valueService.parseValue(n,t,s,this.valueService.getValue(n,t)),formatValue:s=>this.valueService.formatValue(n,t,s)??s}))??""}:n.getColDef().useValueFormatterForExport!==!1?{value:o??"",valueFormatted:this.valueService.formatValue(n,t,o)}:{value:o??""}}},T6=class{static download(e,i){let t=document.defaultView||window;if(!t){X("There is no `window` associated with the current `document`");return}let n=document.createElement("a"),o=t.URL.createObjectURL(i);n.setAttribute("href",o),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:t})),document.body.removeChild(n),t.setTimeout(()=>{t.URL.revokeObjectURL(o)},0)}},B1=`\r 1682`,I6=class extends E6{constructor(e){super(e),this.isFirstLine=!0,this.result="";let{suppressQuotes:i,columnSeparator:t}=e;this.suppressQuotes=i,this.columnSeparator=t}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,B1),this.result+=e):e.forEach(i=>
1682{this.beginNewLine(),i.forEach((t,n)=>{n!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t.data.value||""),t.mergeAcross&&this.appendEmptyCells(t.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,i,t,n){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(i),this.appendEmptyCells(n)}appendEmptyCells(e){for(let i=1;i<=e;i++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,i){i!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,i,t){i!=0&&(this.result+=this.columnSeparator);let n=this.extractRowCellValue(e,i,i,"csv",t);this.result+=this.putInQuotes(n.valueFormatted??n.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let i;return typeof e=="string"?i=e:typeof e.toString=="function"?i=e.toString():(X("unknown value type during csv conversion"),i=""),'"'+i.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=B1),this.isFirstLine=!1}},M6=class extends k6{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.gridSerializer=e.gridSerializer}postConstruct(){this.setBeans({gridSerializer:this.gridSerializer,gos:this.gos})}getMergedParams(e){let i=this.gos.get("defaultCsvExportParams");return Object.assign({},i,e)}export(e){if(this.isExportSuppressed()){X("Export cancelled. Export is not allowed as per your configuration.");return}let i=this.getMergedParams(e),t=this.getData(i),n=new Blob(["\uFEFF",t],{type:"text/plain"}),o=typeof i.fileName=="function"?i.fileName(this.gos.getGridCommonParams()):i.fileName;T6.download(this.getFileName(o),n)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,i=!1){let t=i?Object.assign({},e):this.getMergedParams(e);return this.getData(t)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){let{columnModel:i,columnNameService:t,funcColsService:n,valueService:o,gos:r}=this,{processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:u,columnSeparator:m}=e;return new I6({columnModel:i,columnNameService:t,funcColsService:n,valueService:o,gos:r,processCellCallback:a||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:u||!1,columnSeparator:m||","})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function D6(e,i){return e.csvCreator?.getDataAsCsv(i)}function P6(e,i){e.csvCreator?.exportDataAsCsv(i)}var R6=class extends fe{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleColsService=e.visibleColsService,this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel,this.selectionService=e.selectionService,this.rowNodeSorter=e.rowNodeSorter,this.sortController=e.sortController}serialize(e,i={}){let{allColumns:t,columnKeys:n,skipRowGroups:o}=i,r=this.getColumnsToExport(t,o,n);return LD(this.prepareSession(r),this.prependContent(i),this.exportColumnGroups(i,r),this.exportHeaders(i,r),this.processPinnedTopRows(i,r),this.processRows(i,r),this.processPinnedBottomRows(i,r),this.appendContent(i))(e).parse()}processRow(e,i,t,n){let o=i.shouldRowBeSkipped||(()=>!1),r=this.gos.get("groupRemoveSingleChildren"),a=this.gos.get("groupRemoveLowestSingleChildren"),l=i.rowPositions!=null||!!i.onlySelected,c=this.gos.get("groupHideOpenParents")&&!l,u=this.columnModel.isPivotMode()?n.leafGroup:!n.group,m=!!n.footer,v=a&&n.leafGroup,C=n.allChildrenCount===1&&n.childrenAfterGroup?.length===1&&(r||v);if(!u&&!m&&(i.skipRowGroups||C||c)||i.onlySelected&&!n.isSelected()||i.skipPinnedTop&&n.rowPinned==="top"||i.skipPinnedBottom&&n.rowPinned==="bottom"||n.level===-1&&!u&&!m||o(this.gos.addGridCommonParams({node:n})))return;let D=e.onNewBodyRow(n);if(t.forEach((P,T)=>{D.onColumn(P,T,n)}),i.getCustomContentBelowRow){let P=i.getCustomContentBelowRow(this.gos.addGridCommonParams({node:n}));P&&e.addCustomContent(P)}}appendContent(e){return i=>{let t=e.appendContent;return t&&i.addCustomContent(t),i}}prependContent(e){return i=>{let t=e.prependContent;return t&&i.addCustomContent(t),i}}prepareSession(e){return i=>(i.prepare(e),i)}
1682exportColumnGroups(e,i){return t=>{if(!e.skipColumnGroupHeaders){let n=new gP,o=this.visibleColsService.createGroups({columns:i,idCreator:n,pinned:null,isStandaloneStructure:!0});this.recursivelyAddHeaderGroups(o,t,e.processGroupHeaderCallback)}return t}}exportHeaders(e,i){return t=>{if(!e.skipColumnHeaders){let n=t.onNewHeaderRow();i.forEach((o,r)=>{n.onColumn(o,r,void 0)})}return t}}processPinnedTopRows(e,i){return t=>{let n=this.processRow.bind(this,t,e,i);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="top").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>this.pinnedRowModel.getPinnedTopRow(o.rowIndex)).forEach(n):this.pinnedRowModel.forEachPinnedRow("top",n),t}}processRows(e,i){return t=>{let n=this.rowModel,o=wo(this.gos),r=qd(this.gos),a=!o&&e.onlySelected,s=this.processRow.bind(this,t,e,i),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(c=>c.rowPinned==null).sort((c,u)=>c.rowIndex-u.rowIndex).map(c=>n.getRow(c.rowIndex)).forEach(s);else if(this.columnModel.isPivotMode())o?n.forEachPivotNode(s,!0):r?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);else if(e.onlySelectedAllPages||a){let c=this.selectionService.getSelectedNodes();this.replicateSortedOrder(c),c.forEach(s)}else l==="all"?n.forEachNode(s):o||r?n.forEachNodeAfterFilterAndSort(s,!0):n.forEachNode(s);return t}}replicateSortedOrder(e){let i=this.sortController.getSortOptions(),t=(n,o)=>n.rowIndex!=null&&o.rowIndex!=null?n.rowIndex-o.rowIndex:n.level===o.level?n.parent?.id===o.parent?.id?this.rowNodeSorter.compareRowNodes(i,{rowNode:n,currentPos:n.rowIndex??-1},{rowNode:o,currentPos:o.rowIndex??-1}):t(n.parent,o.parent):n.level>o.level?t(n.parent,o):t(n,o.parent);e.sort(t)}processPinnedBottomRows(e,i){return t=>{let n=this.processRow.bind(this,t,e,i);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="bottom").sort((o,r)=>o.rowIndex-r.rowIndex).map(o=>this.pinnedRowModel.getPinnedBottomRow(o.rowIndex)).forEach(n):this.pinnedRowModel.forEachPinnedRow("bottom",n),t}}getColumnsToExport(e=!1,i=!1,t){let n=this.columnModel.isPivotMode();if(t&&t.length)return this.columnModel.getColsForKeys(t);let o=this.gos.get("treeData"),r=[];return e&&!n?r=this.columnModel.getCols():r=this.visibleColsService.getAllCols(),i&&!o&&(r=r.filter(a=>!nP(a)&&!Tg(a))),r}recursivelyAddHeaderGroups(e,i,t){let n=[];e.forEach(o=>{let r=o;
1682r.getChildren&&r.getChildren().forEach(a=>n.push(a))}),e.length>0&&ua(e[0])&&this.doAddHeaderHeader(i,e,t),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,i,t)}doAddHeaderHeader(e,i,t){let n=e.onNewHeaderGroupingRow(),o=0;i.forEach(r=>{let a=r,s;t?s=t(this.gos.addGridCommonParams({columnGroup:a})):s=this.columnNameService.getDisplayNameForColumnGroup(a,"header");let l=a.getLeafColumns().reduce((c,u,m,v)=>{let C=dr(c);return u.getColumnGroupShow()==="open"?(!C||C[1]!=null)&&(C=[m],c.push(C)):C&&C[1]==null&&(C[1]=m-1),m===v.length-1&&C&&C[1]==null&&(C[1]=m),c},[]);n.onColumn(a,s||"",o++,a.getLeafColumns().length-1,l)})}},jg="32.3.9",iy={version:jg,moduleName:"@ag-grid-community/csv-export-core",beans:[M6,R6]},F6={version:jg,moduleName:"@ag-grid-community/csv-export-api",apiFunctions:{getDataAsCsv:D6,exportDataAsCsv:P6},dependantModules:[iy]},A6={version:jg,moduleName:"@ag-grid-community/csv-export",dependantModules:[iy,F6]};var lne=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);var O6=class extends BA{wireBeans(e){this.beans=e}constructor(e,i,t){super(e),this.parentCache=i,this.params=t,this.startRow=e*t.blockSize,this.endRow=this.startRow+t.blockSize}postConstruct(){this.createRowNodes()}getBlockStateJson(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}}setDataAndId(e,i,t){le(i)?e.setDataAndId(i,t.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){let e=this.createLoadParams();if(Rt(this.params.datasource.getRows)){X("datasource is missing getRows method");return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}processServerFail(){}createLoadParams(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gos.getGridCommonParams().context}}
1682forEachNode(e,i,t){this.rowNodes.forEach((n,o)=>{this.startRow+o<t&&e(n,i.next())})}getLastAccessed(){return this.lastAccessed}getRow(e,i=!1){i||(this.lastAccessed=this.params.lastAccessedSequence.next());let t=e-this.startRow;return this.rowNodes[t]}getStartRow(){return this.startRow}getEndRow(){return this.endRow}createRowNodes(){this.rowNodes=[];for(let e=0;e<this.params.blockSize;e++){let i=this.startRow+e,t=new ga(this.beans);t.setRowHeight(this.params.rowHeight),t.uiLevel=0,t.setRowIndex(i),t.setRowTop(this.params.rowHeight*i),this.rowNodes.push(t)}}processServerResult(e){this.rowNodes.forEach((t,n)=>{let o=e.rowData?e.rowData[n]:void 0;!t.id&&t.alreadyRendered&&o&&(this.rowNodes[n]=new ga(this.beans),this.rowNodes[n].setRowIndex(t.rowIndex),this.rowNodes[n].setRowTop(t.rowTop),this.rowNodes[n].setRowHeight(t.rowHeight),t.clearRowTopAndRowIndex()),this.setDataAndId(this.rowNodes[n],o,this.startRow+n)});let i=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){this.rowNodes.forEach(e=>{e.clearRowTopAndRowIndex()}),super.destroy()}},L6=2,N6=class extends fe{constructor(e){super(),this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount,this.params=e}wireBeans(e){this.rowRenderer=e.rowRenderer,this.focusService=e.focusService}getRow(e,i=!1){let t=Math.floor(e/this.params.blockSize),n=this.blocks[t];if(!n){if(i)return;n=this.createBlock(t)}return n.getRow(e)}createBlock(e){let i=this.createBean(new O6(e,this,this.params));return this.blocks[i.getId()]=i,this.blockCount++,this.purgeBlocksIfNeeded(i),this.params.rowNodeBlockLoader.addBlock(i),i}refreshCache(){if(this.blockCount==0){this.purgeCache();return}this.getBlocksInOrder().forEach(i=>i.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){this.getBlocksInOrder().forEach(e=>this.destroyBlock(e)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,i){this.isAlive()&&(this.gos.get("debug")&&ug(`InfiniteCache - onPageLoaded: page = ${e.getId()}, lastRow = ${i}`),this.checkRowCount(e,i),this.onCacheUpdated())}purgeBlocksIfNeeded(e){let i=this.getBlocksInOrder().filter(a=>a!=e),t=(a,s)=>s.getLastAccessed()-a.getLastAccessed();i.sort(t);let n=this.params.maxBlocksInCache>0,o=n?this.params.maxBlocksInCache-1:null,r=L6-1;i.forEach((a,s)=>{let l=a.getState()==="needsLoading"&&s>=r,c=n?s>=o:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(a)||this.isBlockFocused(a))return;this.removeBlockFromCache(a)}})}isBlockFocused(e){let i=this.focusService.getFocusCellToUseAfterRefresh();if(!i||i.rowPinned!=null)return!1;let t=e.getStartRow(),n=e.getEndRow();return i.rowIndex>=t&&i.rowIndex<n}isBlockCurrentlyDisplayed(e){let i=e.getStartRow(),t=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(i,t)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,i){if(typeof i=="number"&&i>=0)this.rowCount=i,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}}setRowCount(e,i){this.rowCount=e,le(i)&&(this.lastRowIndexKnown=i),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){let i=new Ys;this.getBlocksInOrder().forEach(t=>t.forEachNode(e,i,this.rowCount))}getBlocksInOrder(){let e=(t,n)=>t.getId()-n.getId();return oP(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventService.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){let e=[];this.getBlocksInOrder().forEach(i=>{i.getId()*this.params.blockSize>=this.rowCount&&e.push(i)}),e.length>0&&e.forEach(i=>this.destroyBlock(i))}purgeCache(){this.getBlocksInOrder().forEach(e=>this.removeBlockFromCache(e)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,i){let t=[],n=-1,o=!1,r=new Ys,a=!1;
1682return this.getBlocksInOrder().forEach(l=>{if(!a){if(o&&n+1!==l.getId()){a=!0;return}n=l.getId(),l.forEachNode(c=>{let u=c===e||c===i;(o||u)&&t.push(c),u&&(o=!o)},r,this.rowCount)}}),a||o?[]:t}},V6=class extends fe{constructor(){super(...arguments),this.beanName="rowModel"}wireBeans(e){this.filterManager=e.filterManager,this.sortController=e.sortController,this.selectionService=e.selectionService,this.rowRenderer=e.rowRenderer,this.rowNodeBlockLoader=e.rowNodeBlockLoader}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=ha(this.gos),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache()),this.verifyProps())}verifyProps(){this.gos.exists("initialGroupOrderComparator")&&X("initialGroupOrderComparator cannot be used with Infinite Row Model as sorting is done on the server side")}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.onCacheUpdated.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=ha(this.gos),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onFilterChanged(){this.reset()}onSortChanged(){this.reset()}onColumnEverything(){let e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()}isSortModelDifferent(){return!Us(this.cacheParams.sortModel,this.sortController.getSortModel())}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,i){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,i):[]}reset(){if(!this.datasource)return;Yd(this.gos)!=null||this.selectionService.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventService.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager?.getFilterModel()??{},sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.gos.get("infiniteInitialRowCount"),maxBlocksInCache:this.gos.get("maxBlocksInCache"),rowHeight:ha(this.gos),overflowSize:this.gos.get("cacheOverflowSize"),blockSize:this.gos.get("cacheBlockSize"),lastAccessedSequence:new Ys},this.infiniteCache=this.createBean(new N6(this.cacheParams)),this.eventService.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))}onCacheUpdated(){this.dispatchModelUpdatedEvent()}getRow(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)}getRowNode(e){let i;return this.forEachNode(t=>{t.id===e&&(i=t)}),i}forEachNode(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){let i=Math.floor(e/this.rowHeight),t=this.getRowCount()-1;return i>t?t:i}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache&&this.infiniteCache.refreshCache()}purgeCache(){this.infiniteCache&&this.infiniteCache.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1}setRowCount(e,i){this.infiniteCache&&this.infiniteCache.setRowCount(e,i)}};function z6(e){e.rowModelHelperService?.getInfiniteRowModel()?.refreshCache()}function B6(e){e.rowModelHelperService?.getInfiniteRowModel()?.purgeCache()}function H6(e){return e.rowModelHelperService?.getInfiniteRowModel()?.getRowCount()}var Wg="32.3.9",ny={version:Wg,moduleName:"@ag-grid-community/infinite-row-model-core",rowModel:"infinite",beans:[V6],dependantModules:[GA]},G6={version:Wg,moduleName:"@ag-grid-community/infinite-row-model-api",beans:[ey],apiFunctions:{refreshInfiniteCache:z6,purgeInfiniteCache:B6,getInfiniteRowCount:H6},dependantModules:[ny,n6]},U6={version:Wg,moduleName:"@ag-grid-community/infinite-row-model",dependantModules:[ny,G6]};var j6=e=>{let i=new Map;return t=>{let n=t;return i.has(n)||i.set(n,e(t)),i.get(n)}},cne=j6(e=>
1682{if(/Color$/.test(e))return"color";if(/Scale?$/.test(e))return"scale";if(e==="spacing"||/(Padding|Spacing|Size|Width|Height|Radius|Indent|Start|End|Top|Bottom|Horizontal|Vertical)$/.test(e))return"length";if(/Border$/.test(e))return"border";if(/BorderStyle$/.test(e))return"borderStyle";if(/Shadow$/.test(e))return"shadow";if(/Image$/.test(e))return"image";if(/Family$/.test(e))return"fontFamily";if(/Weight$/.test(e))return"fontWeight";if(/Duration$/.test(e))return"duration";if(/ColorScheme$/.test(e))return"colorScheme";throw new Error(`"${e}" is not a valid theme parameter.`)});var dne=typeof window!="object"||!window||typeof document!="object"||window.document!==document;fR.__registerModules([Y4,S6,U6,A6],!1,void 0);var oy=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({});let e=i;return e})();var q6=[[["","header",""]],[["","body",""]]],Y6=["[header]","[body]"],Zg=(e,i)=>({"icon-arrow-up":e,"icon-arrow-down":i});function K6(e,i){e&1&&(h(0,"span",6),b(1,"More"),p())}function Q6(e,i){e&1&&(h(0,"span",6),b(1,"Less"),p())}function Z6(e,i){if(e&1&&(h(0,"div",2),y(1,K6,2,0,"span",6)(2,Q6,2,0,"span",6),x(3,"span",7),p()),e&2){let t=g();d(),w(t.isOpen?2:1),d(2),f("ngClass",He(2,Zg,t.isOpen,!t.isOpen))}}function J6(e,i){if(e&1&&(h(0,"h4",3),b(1),p()),e&2){let t=g();d(),A(t.title)}}function X6(e,i){if(e&1&&(h(0,"span",3)(1,"strong"),b(2),p()()),e&2){let t=g();d(2),A(t.minorTitle)}}function eL(e,i){if(e&1&&x(0,"span",4),e&2){let t=g();f("ngClass",He(1,Zg,t.isOpen,!t.isOpen))}}var tt=e=>[e],tL=(e,i)=>["fab-button__copy",e,i],iL=(e,i,t)=>[e,i,t];function nL(e,i){e&1&&si(0)}function oL(e,i){if(e&1){let t=L();h(0,"button",4),R("click",function(){S(t);let o=g();return k(o.buttonClick())}),H(1,nL,1,0,"ng-container",5),p()}if(e&2){let t=g(),n=Je(4);ie(Wt("fab-button fab-button--",t.button.type)),f("ngClass",j(7,tt,!t.enabled||t.button.disabled?"fab-button--"+t.button.type+"--disabled":"")),ve("aria-label",t.button.aria)("aria-disabled",!t.enabled||t.button.disabled),d(),f("ngTemplateOutlet",n)}}function rL(e,i){e&1&&si(0)}function aL(e,i){if(e&1){let t=L();h(0,"a",6),R("click",function(){S(t);let o=g();return k(o.buttonClick())}),H(1,rL,1,0,"ng-container",5),p()}if(e&2){let t=g(),n=Je(4);ie(Wt("fab-button fab-button--",t.button.type)),f("target",oe(t.button.action.openInNewTab?"_blank":"_self"))("ngClass",j(10,tt,!t.enabled||t.button.disabled?"fab-button--"+t.button.type+"--disabled":""))("routerLink",t.button.action.link&&t.enabled&&!t.button.disabled?t.button.action.link:null),ve("aria-label",t.button.aria)("aria-disabled",!t.enabled||t.button.disabled),d(),f("ngTemplateOutlet",n)}}function sL(e,i){e&1&&si(0)}function lL(e,i){if(e&1){let t=L();h(0,"a",7),R("click",function(){S(t);let o=g();return k(o.buttonClick())}),H(1,sL,1,0,"ng-container",5),p()}if(e&2){let t=g(),n=Je(4);ie(Wt("fab-button fab-button--",t.button.type)),f("target",oe(t.button.action.openInNewTab?"_blank":"_self"))("ngClass",j(10,tt,!t.enabled||t.button.disabled?"fab-button--"+t.button.type+"--disabled":"")),ve("href",t.button.action.link&&t.enabled&&!t.button.disabled?t.button.action.link:null,ee)("aria-label",t.button.aria)("aria-disabled",!t.enabled||t.button.disabled),d(),f("ngTemplateOutlet",n)}}function cL(e,i){if(e&1&&x(0,"i"),e&2){let t=g(2);ie($t(2,iL,"icon-"+t.button.glyph.icon,t.button.glyph.glyphAnimation==="spin"?"spin":"","fab-button__copy__icon__position-"+(t.button.glyph.glyphPosition?t.button.glyph.glyphPosition:"")))}}function dL(e,i){if(e&1&&(h(0,"span",9),b(1),p()),e&2){let t=g(2);d(),A(t.button.text)}}function uL(e,i){if(e&1&&(h(0,"span"),y(1,cL,1,6,"i",8),y(2,dL,2,1,"span",9),p()),e&2){let t=g();ie(He(4,tL,"fab-button__copy--"+(t.button.glyph!=null&&t.button.glyph.glyphPosition?t.button.glyph.glyphPosition:""),"fab-button__copy__type-"+(t.button.type==="text"||t.button.type.includes("icon")?t.button.type:""))),d(),w(t.button.glyph?1:-1),d(),w(t.button.text?2:-1)}}function pL(e,i){if(e&1&&(h(0,"div",0)(1,"div",2)(2,"a",3),x(3,"img",4),p()(),h(4,"div",5),x(5,"fab-button",6),h(6,"p"),b(7),p()()()),e&2){let t=g();d(2),f("href",oe(t.content.linkData.link),ee)("target",oe(t.content.linkData.target||t.content.linkData.openInNewTab?"_blank":"_self")),d(),f("src",oe(t.content.image),ee)("alt",oe(t.content.linkData.linkCta)),d(2),f("button",t.content.buttonLinkData),d(2),A(t.content.text)}}function hL(e,i){if(e&1&&(h(0,"div")(1,"div",2)(2,"a",3),x(3,"img",4),p()(),h(4,"div",5),x(5,"fab-button",6),h(6,"p"),b(7),p()()()),e&2){let t=i.$implicit;d(2),f("href",oe(t.linkData.link),ee)("target",oe(t.linkData.target||t.linkData.openInNewTab?"_blank":"_self")),d(),f("src",oe(t.image),ee)("alt",oe(t.linkData.linkCta)),d(2),f("button",t.buttonLinkData),d(2),A(t.text)}}function gL(e,i){if(e&1&&(h(0,"div",1),Q(1,hL,8,10,"div",null,ne),p()),e&2){let t=g();d(),Z(t.content.items)}}var mL=(e,i)=>({row:e,"results-card__info-row":i}),cy=e=>
1682({"card__footer__content--image results-card__footer__content--image":e}),fL=e=>({row:e,"results-card__info-row":"content.hideImage"});function vL(e,i){e&1&&(h(0,"span",13),b(1,"Sponsored"),p())}function CL(e,i){if(e&1&&(h(0,"div")(1,"span",12),b(2),p(),y(3,vL,2,0,"span",13),p()),e&2){let t=g(2);d(2),A(t.sectionContent.tag),d(),w(t.content.partnerOrganisation?3:-1)}}function bL(e,i){if(e&1){let t=L();h(0,"img",16),R("error",function(o){S(t);let r=g(3);return k(r.setDefaultPic(o))}),p()}if(e&2){let t=g(3);f("src",oe(t.sectionContent.image==null?null:t.sectionContent.image.url),ee)("alt",oe(t.sectionContent.image==null?null:t.sectionContent.image.alt))}}function _L(e,i){if(e&1&&(h(0,"div",15),b(1),p()),e&2){let t=g(3);d(),q(" ",t.authorInitials," ")}}function yL(e,i){if(e&1&&(h(0,"a",9),y(1,bL,1,4,"img",14),y(2,_L,2,1,"div",15),h(3,"h6"),b(4),Y(5,"truncate"),p()()),e&2){let t=g(2);f("href",oe(t.content.authorLink),ee),d(),w(t.showAuthorImage?1:-1),d(),w(t.showAuthorImage?-1:2),d(2),A(Mt(5,5,t.sectionContent.footerTextTop,30))}}function wL(e,i){if(e&1&&x(0,"div",18),e&2){let t=g(3);ot("background-image","url("+(t.content.mainImage==null?null:t.content.mainImage.url)+")")}}function xL(e,i){if(e&1&&(h(0,"div",11),y(1,wL,1,2,"div",17),p()),e&2){let t=g(2);d(),w(t.content.mainImage?1:-1)}}function SL(e,i){if(e&1&&(h(0,"a",0)(1,"div",2)(2,"div",3)(3,"div",4),y(4,CL,4,2,"div"),h(5,"div",5)(6,"h4"),b(7),p(),x(8,"div",6),Y(9,"htmlStripper"),p(),h(10,"div",7)(11,"div",8),y(12,yL,6,8,"a",9),h(13,"p",10),b(14),Y(15,"date"),p()()()()(),y(16,xL,2,1,"div",11),p()()),e&2){let t=g();f("href",oe(t.content.link),ee),d(),f("ngClass",He(15,mL,!t.content.hideImage,t.content.hideImage)),d(3),w(t.content.hideType?-1:4),d(3),A(t.content.title),d(),f("innerHTML",me(9,10,t.content.summary),te),d(3),f("ngClass",j(18,cy,t.sectionContent.image.url)),d(),w(t.content.author?12:-1),d(2),q(" ",t.sectionContent.footerTextBottom?Mt(15,12,t.sectionContent.footerTextBottom,"d MMMM yyyy"):"Date unknown"," "),d(2),w(t.content.hideImage?-1:16)}}function kL(e,i){e&1&&(h(0,"span",13),b(1,"Sponsored"),p())}function EL(e,i){if(e&1){let t=L();h(0,"img",16),R("error",function(o){S(t);let r=g(2);return k(r.setDefaultPic(o))}),p()}if(e&2){let t=g(2);f("src",oe(t.sectionContent.image==null?null:t.sectionContent.image.url),ee)("alt",oe(t.sectionContent.image==null?null:t.sectionContent.image.alt))}}function TL(e,i){if(e&1&&(h(0,"div",15),b(1),p()),e&2){let t=g(2);d(),q(" ",t.authorInitials," ")}}function IL(e,i){if(e&1&&x(0,"div",18),e&2){let t=g(3);ot("background-image","url("+(t.content.mainImage==null?null:t.content.mainImage.url)+")")}}function ML(e,i){if(e&1&&(h(0,"div",11),y(1,IL,1,2,"div",17),p()),e&2){let t=g(2);d(),w(t.content.mainImage?1:-1)}}function DL(e,i){if(e&1&&(h(0,"a",19)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"span",12),b(6),p(),y(7,kL,2,0,"span",13),p(),h(8,"div",5)(9,"h4"),b(10),p(),x(11,"div",6),Y(12,"htmlStripper"),p(),h(13,"div",7)(14,"div",8)(15,"a",20),y(16,EL,1,4,"img",14),y(17,TL,2,1,"div",15),h(18,"h6"),b(19),Y(20,"truncate"),p()(),h(21,"p",10),b(22),Y(23,"date"),p()()()()(),y(24,ML,2,1,"div",11),p()()),e&2){let t=g();ie(xl("card results-card card--",t.sectionContent.type," results-card--",t.sectionContent.type)),f("routerLink",j(25,tt,"/"+t.content.link)),d(),f("ngClass",j(27,fL,!t.content.hideImage)),d(5),A(t.sectionContent.tag),d(),w(t.content.partnerOrganisation?7:-1),d(3),A(t.content.title),d(),f("innerHTML",me(12,17,t.content.summary),te),d(3),f("ngClass",j(29,cy,t.sectionContent.image)),d(),f("routerLink",j(31,tt,"/"+t.content.authorLink)),d(),w(t.showAuthorImage?16:-1),d(),w(t.showAuthorImage?-1:17),d(2),A(Mt(20,19,t.sectionContent.footerTextTop,30)),d(3),q(" ",t.sectionContent.footerTextBottom?Mt(23,22,t.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," "),d(2),w(t.content.hideImage?-1:24)}}var dy=e=>({"card__footer__content--image secondary-card__footer__content--image":e});function PL(e,i){e&1&&(h(0,"span",14),b(1,"Sponsored"),p())}function RL(e,i){if(e&1&&(h(0,"div",12)(1,"span",13),b(2),p(),y(3,PL,2,0,"span",14),p()),e&2){let t=g(2);ot("background-image","url("+(t.content.mainImage==null?null:t.content.mainImage.url)+")"),d(2),A(t.sectionContent.tag),d(),w(t.content.partnerOrganisation?3:-1)}}function FL(e,i){if(e&1){let t=L();h(0,"img",15),R("error",function(o){S(t);let r=g(2);return k(r.setDefaultPic(o))}),p()}if(e&2){let t=g(2);f("src",oe(t.sectionContent.image.url),ee)("alt",oe(t.sectionContent.image.alt))}}function AL(e,i){if(e&1&&(h(0,"div",10),b(1),p()),e&2){let t=g(2);d(),q(" ",t.authorInitials," ")}}function OL(e,i){if(e&1&&(h(0,"a",2),y(1,RL,4,4,"div",3),h(2,"div",4)(3,"h4"),b(4),p(),x(5,"div",5),Y(6,"htmlStripper"),p(),h(7,"div",6)(8,"div",7)(9,"a",8),y(10,FL,1,4,"img",9),y(11,AL,2,1,"div",10),h(12,"h6"),b(13),Y(14,"truncate"),p()(),h(15,"p",11),b(16),Y(17,"date"),p()()()()),e&2){let t=g();ie(xl("card secondary-card card--",t.sectionContent.type," secondary-card--",t.sectionContent.type)),f("href",oe(t.content.link),ee),d(),w(t.content.mainImage?1:-1),d(3),A(t.content.title),d(),f("innerHTML",me(6,16,t.content.summary),te),d(3),f("ngClass",j(24,dy,t.sectionContent.image)),d(),f("href",oe(t.content.authorLink),ee),d(),w(t.showAuthorImage?10:-1),d(),w(t.showAuthorImage?-1:11),d(2),A(Mt(14,18,t.sectionContent.footerTextTop,30)),d(3),q(" ",t.sectionContent.footerTextBottom?Mt(17,21,t.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}function LL(e,i){e&1&&(h(0,"span",14),b(1,"Sponsored"),p())}function NL(e,i){if(e&1&&(h(0,"div",12)(1,"span",13),b(2),p(),y(3,LL,2,0,"span",14),p()),e&2){let t=g(2);ot("background-image","url("+(t.content.mainImage==null?null:t.content.mainImage.url)+")"),d(2),A(t.sectionContent.tag),d(),w(t.content.partnerOrganisation?3:-1)}}function VL(e,i){if(e&1){let t=L();h(0,"img",15),R("error",function(o){S(t);let r=g(2);return k(r.setDefaultPic(o))}),p()}if(e&2){let t=g(2);f("src",oe(t.sectionContent.image.url),ee)("alt",oe(t.sectionContent.image.alt))}}function zL(e,i){if(e&1&&(h(0,"div",10),b(1),p()),e&2){let t=g(2);d(),q(" ",t.authorInitials," ")}}function BL(e,i){if(e&1&&(h(0,"a",16),y(1,NL,4,4,"div",3),h(2,"div",4)(3,"h4"),b(4),p(),x(5,"div",5),Y(6,"htmlStripper"),p(),h(7,"div",6)(8,"div",7)(9,"a",17),y(10,VL,1,4,"img",9),y(11,zL,2,1,"div",10),h(12,"h6"),b(13),Y(14,"truncate"),p()(),h(15,"p",11),b(16),Y(17,"date"),p()()()()),e&2){let t=g();ie(xl("card secondary-card card--",t.sectionContent.type," secondary-card--",t.sectionContent.type)),f("routerLink",j(22,tt,"/"+t.content.link)),d(),w(t.content.mainImage?1:-1),d(3),A(t.content.title),d(),f("innerHTML",me(6,14,t.content.summary),te),d(3),f("ngClass",j(24,dy,t.sectionContent.image)),d(),f("routerLink",j(26,tt,"/"+t.content.authorLink)),d(),w(t.showAuthorImage?10:-1),d(),w(t.showAuthorImage?-1:11),d(2),A(Mt(14,16,t.sectionContent.footerTextTop,30)),d(3),q(" ",t.sectionContent.footerTextBottom?Mt(17,19,t.sectionContent.footerTextBottom,"mediumDate"):"Date unknown"," ")}}function HL(e,i){if(e&1&&(h(0,"a",6),x(1,"i",8),p()),e&2){let t=g();f("href",oe(t.content.linkedin.uri),ee)}}function GL(e,i){if(e&1&&(h(0,"a",6),x(1,"i",9),p()),e&2){let t=g();f("href",oe(t.content.facebook.uri),ee)}}function UL(e,i){if(e&1&&(h(0,"a",6),x(1,"i",10),p()),e&2){let t=g();
1682f("href",oe(t.content.twitter.uri),ee)}}function jL(e,i){if(e&1&&(h(0,"h3"),b(1),p()),e&2){let t=g();d(),A(t.content.listViewTitle)}}function WL(e,i){if(e&1&&(h(0,"h3"),b(1),p()),e&2){let t=g();d(),bi("",t.content.accountingTechmagMonths," ",t.content.magazineIssueYear)}}var $L=["p"];function qL(e,i){if(e&1){let t=L();h(0,"a",8),R("keyup.enter",function(o){S(t);let r=g(3),a=Je(1);return r.navigate(o,a.getCurrent()-1),k(a.previous())})("click",function(o){S(t);let r=g(3),a=Je(1);return r.navigate(o,a.getCurrent()-1),k(a.previous())}),x(1,"i",9),p()}if(e&2){let t=g(3),n=Je(1);f("href",t.getUrl(n.getCurrent()-1),ee),ve("aria-label",t.previousLabel+" "+t.screenReaderPageLabel)}}function YL(e,i){e&1&&(h(0,"span"),x(1,"i",9),p())}function KL(e,i){if(e&1&&(h(0,"li",6),y(1,qL,2,2,"a",7),y(2,YL,2,0,"span"),p()),e&2){g(2);let t=Je(1);Be("disabled",t.isFirstPage()),d(),w(1<t.getCurrent()?1:-1),d(),w(t.isFirstPage()?2:-1)}}function QL(e,i){if(e&1){let t=L();h(0,"a",8),R("keyup.enter",function(o){S(t);let r=g().$implicit,a=g(2),s=Je(1);return a.navigate(o,r.value),k(s.setCurrent(r.value))})("click",function(o){S(t);let r=g().$implicit,a=g(2),s=Je(1);return a.navigate(o,r.value),k(s.setCurrent(r.value))}),h(1,"span",10),b(2),p(),h(3,"span"),b(4),p()()}if(e&2){let t=g().$implicit,n=g(2);f("href",n.getUrl(t.value),ee),d(2),q("",n.screenReaderPageLabel," "),d(2),A(t.label)}}function ZL(e,i){if(e&1&&(h(0,"span",10),b(1),p(),h(2,"span"),b(3),p()),e&2){let t=g().$implicit,n=g(2);d(),q("",n.screenReaderCurrentLabel," "),d(2),A(t.label)}}function JL(e,i){if(e&1&&(h(0,"li"),y(1,QL,5,3,"a",7),y(2,ZL,4,2),p()),e&2){let t=i.$implicit;g(2);let n=Je(1);Be("current",n.getCurrent()===t.value),d(),w(n.getCurrent()!==t.value?1:-1),d(),w(n.getCurrent()===t.value?2:-1)}}function XL(e,i){if(e&1){let t=L();h(0,"a",8),R("keyup.enter",function(o){S(t);let r=g(3),a=Je(1);return r.navigate(o,a.getCurrent()+1),k(a.next())})("click",function(o){S(t);let r=g(3),a=Je(1);return r.navigate(o,a.getCurrent()+1),k(a.next())}),x(1,"i",12),p()}if(e&2){let t=g(3),n=Je(1);f("href",t.getUrl(n.getCurrent()+1),ee),ve("aria-label",t.nextLabel+" "+t.screenReaderPageLabel)}}function eN(e,i){e&1&&(h(0,"span"),x(1,"i",12),p())}function tN(e,i){if(e&1&&(h(0,"li",11),y(1,XL,2,2,"a",7),y(2,eN,2,0,"span"),p()),e&2){g(2);let t=Je(1);Be("disabled",t.isLastPage()),d(),w(t.isLastPage()?-1:1),d(),w(t.isLastPage()?2:-1)}}function iN(e,i){if(e&1&&(h(0,"ul",2),y(1,KL,3,4,"li",3),Q(2,JL,3,4,"li",4,ne),y(4,tN,3,4,"li",5),p()),e&2){let t=g(),n=Je(1);ve("aria-label",t.screenReaderPaginationLabel),d(),w(t.directionLinks?1:-1),d(),Z(n.pages),d(2),w(t.directionLinks?4:-1)}}var nN=e=>({disabled:e}),uy=(e,i)=>({"form__field-valid":e,"form__field-invalid":i}),oN=e=>({selected:e}),rN=(e,i)=>({"icon icon-success":e,"icon icon-error":i});function aN(e,i){if(e&1&&(h(0,"div",2)(1,"label"),x(2,"span",12),p()()),e&2){let t=g();d(2),f("innerHTML",t.content.label,te)}}function sN(e,i){if(e&1&&(h(0,"p"),b(1),p()),e&2){let t=g();d(),A(t.fixedContent??(t.formControl.value==null?null:t.formControl.value.label)??t.placeholder)}}function lN(e,i){if(e&1&&(h(0,"p"),b(1),p()),e&2){let t=g();d(),A(t.fixedContent??t.selectedString??t.placeholder)}}function cN(e,i){if(e&1){let t=L();h(0,"li",15),R("keydown.enter",function(){let o=S(t).$implicit,r=g(2);return k(r.makeSelection(o))})("click",function(){let o=S(t).$implicit,r=g(2);return k(r.makeSelection(o))}),b(1),p()}if(e&2){let t=i.$implicit,n=i.$index,o=g(2);ie(Wt("dropdown__item dropdown__item--option ",o.group)),f("value",oe(n))("ngClass",j(7,oN,o.options[n].selected)),d(),q(" ",t.label," ")}}function dN(e,i){if(e&1){let t=L();h(0,"div",13),R("blur",function(o){S(t);let r=g();return k(r.closeDropdown(r.group,o))}),h(1,"ul"),Q(2,cN,2,9,"li",14,ne),p()()}if(e&2){let t=g();d(2),Z(t.options)}}function uN(e,i){if(e&1&&(h(0,"div",9)(1,"div",16),x(2,"i",3),p()()),e&2){let t=g();d(2),f("ngClass",He(1,rN,t.formControl&&t.formControl.valid&&(t.formControl.dirty||t.formControl.touched)&&t.optionSelected||!t.formControl&&t.optionSelected,t.formControl&&t.formControl.invalid&&t.formControl.touched&&!t.focus&&t.showError))}}function pN(e,i){if(e&1&&(h(0,"div",11)(1,"strong"),b(2),p()()),e&2){let t=g();d(2),A(t.content.validationMessage)}}function hN(e,i){if(e&1&&(h(0,"div")(1,"div",1)(2,"div",17)(3,"p",18),b(4),p()()()()),e&2){let t=g();d(4),A(t.content.toolTip)}}var gN=["wrapper"],py=["dropdown"],hy=(e,i,t)=>({itemsPerPage:e,currentPage:i,totalItems:t});function mN(e,i){if(e&1&&(h(0,"h2"),b(1),p()),e&2){let t=g();d(),q(" ",t.config.viewTitle," ")}}function fN(e,i){if(e&1){let t=L();h(0,"div",5)(1,"fab-dropdown-simple",8,1),R("outputReturnSelectedOptions",function(o){S(t);let r=g(2);return k(r.captureRegionSelection(o))}),p(),x(3,"fab-button",9),p()}if(e&2){let t=g(2);d(),f("content",t.regionDropdownValues)("selectContent",t.regionOnLoad),d(2),f("button",t.resetQueryButton)}}function vN(e,i){if(e&1&&(h(0,"div"),x(1,"fab-basic-push",13),p()),e&2){let t=g().$implicit;d(),f("content",t)}}function CN(e,i){if(e&1&&(h(0,"div",10),x(1,"fab-results-card",13),p()),e&2){let t=g().$implicit;d(),f("content",t)}}function bN(e,i){if(e&1&&(h(0,"div",10),x(1,"fab-vacancy-card",13),p()),e&2){let t=g().$implicit;d(),f("content",t)}}function _N(e,i){if(e&1&&(h(0,"div",11),x(1,"fab-branch-card",13),p()),e&2){let t=g().$implicit;d(),f("content",t)}}function yN(e,i){if(e&1&&(h(0,"div",12),x(1,"fab-magazine-card",13),p()),e&2){let t=g().$implicit;d(),f("content",t)}}function wN(e,i){if(e&1&&(h(0,"div")(1,"div",14),x(2,"fab-secondary-card",13),p()()),e&2){let t=g().$implicit;d(2),f("content",t)}}function xN(e,i){if(e&1&&(h(0,"div",6)(1,"div"),y(2,vN,2,1,"div")(3,CN,2,1,"div",10)(4,bN,2,1,"div",10)(5,_N,2,1,"div",11)(6,yN,2,1,"div",12)(7,wN,3,1,"div"),p()()),e&2){let t,n=g(2);d(2),w((t=n.cardType)==="BasicPush"?2:t==="ResultsCards"?3:t==="VacancyCards"?4:t==="BranchCards"?5:t==="MagazineCards"?6:t==="SecondaryCards"?7:-1)}}function SN(e,i){if(e&1){let t=L();h(0,"fab-pagination-controls",16),R("pageChange",function(o){S(t);let r=g(3);return k(r.pageChanged(o))}),p()}}function kN(e,i){if(e&1&&(h(0,"div",7)(1,"div",15),y(2,SN,1,0,"fab-pagination-controls"),p()()),e&2){let t=g(2);d(2),w(t.isLoaded?2:-1)}}function EN(e,i){if(e&1&&(h(0,"div",3)(1,"div"),y(2,fN,4,3,"div",5),Q(3,xN,8,1,"div",6,ne),Y(5,"paginate"),p(),y(6,kN,3,1,"div",7),p()),e&2){let t=g();d(2),w(t.cardType==="BranchCards"&&t.regionDropdownValues.options.length>0?2:-1),d(),Z(Mt(5,2,t.items,$t(5,hy,t.perPage,t.p,t.total))),d(3),w(t.showPaginator?6:-1)}}function TN(e,i){if(e&1&&(h(0,"div",18),x(1,"fab-secondary-card",13),p()),e&2){let t=i.$implicit;d(),f("content",t)}}function IN(e,i){if(e&1&&(h(0,"div",4)(1,"div",17),Q(2,TN,2,1,"div",18,ne),Y(4,"paginate"),p()()),e&2){let t=g();d(2),Z(Mt(4,0,t.items,$t(3,hy,t.perPage,t.p,t.total)))}}var MN=(e,i,t,n)=>({"col-md-8":e,"col-sm-10":i,"col-xs-10":t,"col-xs-12":n}),DN=(e,i,t)=>
1682({"icon icon-success":e,"icon icon-error":i,"icon icon-loop2 spin":t}),Zs=(e,i,t)=>({"icon-success":e,"icon-error":i,default:t});function PN(e,i){if(e&1&&(h(0,"label",4),x(1,"span",11),p()),e&2){let t=g();f("for",t.content.id),d(),f("innerHTML",t.content.label,te)}}function RN(e,i){if(e&1&&(h(0,"div",8)(1,"div",12),x(2,"i",6),p()()),e&2){let t=g();d(2),f("ngClass",$t(1,DN,t.value&&t.formControl.valid,t.showError||t.value&&t.formControl.invalid&&!t.formControl.pending&&t.formControl.dirty&&(t.content.showErrorInFocus||!t.focus)||t.formControl.invalid&&!t.formControl.pending&&t.formControl.touched&&t.requiredInput&&(t.content.showErrorInFocus||!t.focus),t.formControl.pending))}}function FN(e,i){if(e&1&&(h(0,"div"),b(1),p()),e&2){let t=g(3);d(),q(" ",t.formControl.errors.formControlValidationErrors.value," ")}}function AN(e,i){if(e&1&&(h(0,"div"),b(1),p()),e&2){let t=g(3);d(),q(" ",t.validationResult.blankMessage," ")}}function ON(e,i){if(e&1&&(h(0,"div"),y(1,FN,2,1,"div"),y(2,AN,2,1,"div"),p()),e&2){let t=g(2);d(),w(t.value&&t.formControl.dirty&&(t.formControl.errors!=null&&t.formControl.errors.formControlValidationErrors)&&(t.formControl.errors==null||t.formControl.errors.formControlValidationErrors==null?null:t.formControl.errors.formControlValidationErrors.value)!=""&&(t.content.showErrorInFocus||!t.focus)?1:-1),d(),w(!t.value&&(t.content.showErrorInFocus||!t.focus)&&t.requiredInput&&(t.validationResult!=null&&t.validationResult.blankMessage)?2:-1)}}function LN(e,i){if(e&1){let t=L();h(0,"a",14),R("click",function(){S(t);let o=g(3);return k(o.showPassword())}),b(1,"Show"),p()}}function NN(e,i){if(e&1){let t=L();h(0,"a",14),R("click",function(){S(t);let o=g(3);return k(o.hidePassword())}),b(1,"Hide"),p()}}function VN(e,i){if(e&1&&(h(0,"div"),y(1,LN,2,0,"a"),y(2,NN,2,0,"a"),p()),e&2){let t=g(2);d(),w(t.inputType==="password"?1:-1),d(),w(t.inputType==="text"?2:-1)}}function zN(e,i){if(e&1&&(h(0,"div",9)(1,"div",13),y(2,ON,3,2,"div"),y(3,VN,3,2,"div"),p()()),e&2){let t=g();d(),f("ngClass",t.formControl.invalid&&(t.formControl.dirty||t.formControl.touched)?"space-between":""),d(),w(t.formControl.invalid&&(t.formControl.dirty||t.formControl.touched)?2:-1),d(),w(t.content.codeType==="PasswordChoice"||t.content.codeType==="Password"||t.content.validationMessage==="Enter your password"?3:-1)}}function BN(e,i){if(e&1&&(h(0,"div",10)(1,"div",3)(2,"p"),b(3,"Your new password must include:"),p()(),x(4,"div"),h(5,"div",15),x(6,"i",16),h(7,"p",17),b(8,"8 or more characters"),p()(),h(9,"div",15),x(10,"i",16),h(11,"p",17),b(12,"Any of these @ ~ ! & * ; ? . #"),p()(),h(13,"div",15),x(14,"i",16),h(15,"p",17),b(16,"At least one lower case letter"),p()(),h(17,"div",15),x(18,"i",16),h(19,"p",17),b(20,"At least one upper case letter"),p()(),h(21,"div",15),x(22,"i",16),h(23,"p",17),b(24,"At least one number"),p()()()),e&2){let t=g();d(5),f("ngClass",t.validationResult.passwordErrors.minlength?"text-success":"text-danger"),d(),f("ngClass",$t(10,Zs,t.validationResult.passwordErrors.minlength,!t.validationResult.passwordErrors.minlength,!t.value)),d(3),f("ngClass",t.validationResult.passwordErrors.hasSpecialCharacters?"text-success":"text-danger"),d(),f("ngClass",$t(14,Zs,t.validationResult.passwordErrors.hasSpecialCharacters,!t.validationResult.passwordErrors.hasSpecialCharacters,!t.value)),d(3),f("ngClass",t.validationResult.passwordErrors.hasSmallCase?"text-success":"text-danger"),d(),f("ngClass",$t(18,Zs,t.validationResult.passwordErrors.hasSmallCase,!t.validationResult.passwordErrors.hasSmallCase,!t.value)),d(3),f("ngClass",t.validationResult.passwordErrors.hasCapitalCase?"text-success":"text-danger"),d(),f("ngClass",$t(22,Zs,t.validationResult.passwordErrors.hasCapitalCase,!t.validationResult.passwordErrors.hasCapitalCase,!t.value)),d(3),f("ngClass",t.validationResult.passwordErrors.hasNumber?"text-success":"text-danger"),d(),f("ngClass",$t(26,Zs,t.validationResult.passwordErrors.hasNumber,!t.validationResult.passwordErrors.hasNumber,!t.value))}}function HN(e,i){if(e&1&&(h(0,"div")(1,"div",2)(2,"div",18)(3,"p",19),b(4),p()()()()),e&2){let t=g();d(4),A(t.content.toolTip)}}var GN=(e,i,t)=>({reversed:e,gray:i,invalid:t}),UN=e=>({checkbox__disabled:e});var jN=["closeBtn"],WN=[[["",8,"modal__cta"]],[["",8,"modal__content"]]],$N=[".modal__cta",".modal__content"];function qN(e,i){if(e&1){let t=L();h(0,"div")(1,"div",3)(2,"a",4,0),R("click",function(){S(t);let o=g();return k(o.closeModal())})("keydown.Enter",function(){S(t);let o=g();return k(o.closeModal())}),p(),Tt(4,1),p(),h(5,"div",5),R("click",function(){S(t);let o=g();return k(o.closeModal())}),p()()}if(e&2){let t=g();d(),Be("active",t.isModalOpened),d(4),Be("active",t.isModalOpened)}}var YN=(e,i)=>({"notification--full-width":e,"notification--left-align":i});function KN(e,i){if(e&1){let t=L();h(0,"div",2)(1,"a",9),R("click",function(){S(t);let o=g(2);return k(o.closeNotification())}),x(2,"i",10),p()()}}function QN(e,i){if(e&1){let t=L();h(0,"div",3)(1,"a",9),R("click",function(){S(t);let o=g(2);return k(o.toggleNotification())}),x(2,"i",1),p()()}if(e&2){let t=g(2);d(2),f("ngClass",He(1,Zg,t.isMessageOpen,!t.isMessageOpen))}}function ZN(e,i){if(e&1&&x(0,"i"),e&2){let t=g(2);ie(Wt("icon-",t.notification.glyph))}}function JN(e,i){if(e&1&&(h(0,"div",1),y(1,KN,3,0,"div",2),y(2,QN,3,4,"div",3),h(3,"div",4)(4,"div",5)(5,"span"),y(6,ZN,1,3,"i",6),p(),x(7,"span",7),Y(8,"notificationMessagePipe"),p(),h(9,"div",8),x(10,"span",7),Y(11,"notificationMessagePipe"),p()()()),e&2){let t=g();ie(Wt("notification notification--",t.notification.type)),Be("active",t.isNotificationOpen)("open",t.isMessageOpen),f("ngClass",He(17,YN,t.notification.fullWidth,t.notification.leftAlign)),d(),w(t.notification.closeNotification?1:-1),d(),w(t.notification.toggleNotification?2:-1),d(4),w(t.notification.glyph?6:-1),d(),f("innerHTML",me(8,13,t.notification.message),te),d(3),f("innerHTML",me(11,15,t.notification.messageDetail),te)}}var XN=(e,i,t)=>({"loader--small":e,"loader--medium":i,"loader--large":t});var tu=["*"];var e7=e=>({"suggestion--label":e});function t7(e,i){if(e&1&&(h(0,"div",2)(1,"label"),b(2),p()()),e&2){let t=g();d(2),A(t.label)}}function i7(e,i){if(e&1&&(h(0,"option",10),b(1),p()),e&2){let t=i.$implicit,n=i.$index;f("selected",n==0)("ngValue",t),d(),q(" ",t.title," ")}}function n7(e,i){if(e&1){let t=L();h(0,"select",9),Ra("ngModelChange",function(o){S(t);let r=g();return Pa(r.search.context,o)||(r.search.context=o),k(o)}),Q(1,i7,2,3,"option",10,ne),p()}if(e&2){let t=g();Da("ngModel",t.search.context),d(),Z(t.searchContext)}}function o7(e,i){if(e&1&&(h(0,"section",7),Tt(1),p()),e&2){let t=g();f("ngClass",j(1,e7,t.label))}}function r7(e,i){if(e&1&&(h(0,"section",8)(1,"header",11),b(2,"YOUR RESULTS"),p(),x(3,"div",12),p()),e&2){let t=g();d(3),f("innerHtml",t.errorMessage,te)}}var a7=["collapsedCrumb"],s7=(e,i)=>i.title,l7=(e,i)=>i.path;function c7(e,i){if(e&1&&(h(0,"a",3),b(1),p()),e&2){let t=g(3);f("routerLink",j(2,tt,"/"+t.prefixUrl)),d(),A(t.prefix)}}function d7(e,i){if(e&1&&(h(0,"a",4),b(1),p()),e&2){let t=g(3);f("href",t.prefixUrl,ee),d(),A(t.prefix)}}function u7(e,i){if(e&1&&y(0,c7,2,4,"a",3)(1,d7,2,2,"a",4),e&2){let t=g(2);w(t.useRouterLink?0:1)}}function p7(e,i){if(e&1&&(h(0,"span"),b(1),p()),e&2){let t=g(2);d(),A(t.prefix)}}function h7(e,i){if(e&1&&(y(0,u7,2,1)(1,p7,2,1,"span"),x(2,"i",2)),e&2){let t=g();
1682w(t.prefixUrl?0:1),d(2),Be("fab-breadcrumb__divider",t.divider)("icon-arrow-right",!t.divider),f("innerHTML",t.divider,te)}}function g7(e,i){if(e&1&&(h(0,"a",4),b(1),p(),x(2,"i",2)),e&2){let t=g().$implicit,n=g(2);f("href",t.path,ee),d(),A(t.title),d(),Be("fab-breadcrumb__divider",n.divider)("icon-arrow-right",!n.divider),f("innerHTML",n.divider,te)}}function m7(e,i){if(e&1&&(h(0,"span",5),b(1),p()),e&2){let t=g().$implicit;d(),q(" ",t.title," ")}}function f7(e,i){if(e&1&&(h(0,"a",4),b(1),p(),x(2,"i",2)),e&2){let t=g().$implicit,n=g(2);f("href",t.path,ee),d(),A(t.title),d(),Be("fab-breadcrumb__divider",n.divider)("icon-arrow-right",!n.divider),f("innerHTML",n.divider,te)}}function v7(e,i){if(e&1&&(h(0,"a",11,0),x(2,"i",8),b(3),p()),e&2){let t=i.$implicit,n=i.$index,o=g(5);f("href",t.path,ee)("autofocus",n===0),d(2),Be("fab-breadcrumb__divider",o.divider)("icon-arrow-right",!o.divider),f("innerHTML",o.divider,te),d(),q(" ",t.title," ")}}function C7(e,i){if(e&1){let t=L();h(0,"div",6)(1,"button",7),R("click",function(){S(t);let o=g(4);return k(o.tooltipToggleShow())}),b(2," \u2026 "),p(),x(3,"i",8),h(4,"div",9)(5,"div",10),Q(6,v7,4,8,"a",11,l7),Y(8,"slice"),p()()()}if(e&2){g(2);let t=Fa(0),n=Fa(1),o=g(),r=g();d(),Su("aria-expanded",r.showCollapsedBreadcrumbs),d(2),Be("fab-breadcrumb__divider",r.divider)("icon-arrow-right",!r.divider),f("innerHTML",r.divider,te),d(2),ot("display",r.showCollapsedBreadcrumbs?"initial":"none"),f("hidden",!r.showCollapsedBreadcrumbs),Su("aria-hidden",!r.showCollapsedBreadcrumbs),d(),Z(_n(8,10,o,t,n+1))}}function b7(e,i){if(e&1&&y(0,C7,9,14,"div",6),e&2){let t=g().$index,n=Fa(0);w(t===n?0:-1)}}function _7(e,i){if(e&1&&(Iu(0)(1),y(2,g7,3,7)(3,m7,2,1,"span",5)(4,f7,3,7)(5,b7,1,1)),e&2){let t=i.$index,n=i.$index,o=i.$count,r=i.$count;g();let a=Fa(0),s=g(),l=!s.prefix&&n!==r-1&&n===0,c=t===o-2;wl(s.prefix?0:1),d(),wl(o-3),d(),w(l||c?2:n===r-1?3:a?5:4)}}function y7(e,i){if(e&1&&(Iu(0),Q(1,_7,6,3,null,null,s7)),e&2){let t=i,n=g();wl(!n.prefix&&t.length>4||n.prefix&&t.length>3),d(),Z(t)}}var w7=(e,i)=>({"wa-bullets__content":e,"wa-bullets__content--border":i}),x7=(e,i)=>({"col-sm-6 col-md-6":e," col-md-4":i});function S7(e,i){if(e&1&&(h(0,"h3"),b(1),p()),e&2){let t=g().$implicit;d(),A(t.title)}}function k7(e,i){if(e&1&&(h(0,"div",5)(1,"div",6)(2,"div",7),x(3,"fab-aat-icon",8),p(),h(4,"div",9),y(5,S7,2,1,"h3"),x(6,"p",10),p()()()),e&2){let t=i.$implicit,n=g();f("ngClass",He(4,x7,n.content.alignment==="left",n.content.alignment==="center")),d(3),f("content",n.icon),d(2),w(t.title?5:-1),d(),f("innerHTML",t.content,te)}}function E7(e,i){if(e&1&&(h(0,"div",0),x(1,"iframe",1),p()),e&2){let t=g();d(),f("src",t.iframeSrc(),wu)}}var gy=e=>({width:e}),T7=e=>({backgroundImage:e}),I7=(e,i)=>["page__container",e,i],M7=e=>({stroke:e}),D7=e=>({color:e}),iu=e=>({active:e}),my=e=>({videoId:e,autoplay:!0});function P7(e,i){if(e&1&&x(0,"fab-button",11),e&2){let t=g().$implicit;f("button",t.heroTabCta2)}}function R7(e,i){if(e&1){let t=L();h(0,"button",14),R("click",function(){S(t);let o=g(2);return k(o.switchTab(null,!0))}),Oe(),h(1,"svg",15),x(2,"circle",16),p(),Em(),x(3,"i",17),p()}if(e&2){let t=g().$implicit;d(2),f("ngStyle",j(2,M7,t.arrowColour)),d(),f("ngStyle",j(4,D7,t.arrowColour))}}function F7(e,i){if(e&1&&(h(0,"div",13),x(1,"i",18),p()),e&2){let t=g().$implicit;d(),f("tooltip",t.heroTabImage.caption)("positionInput","left")}}function A7(e,i){if(e&1&&(h(0,"div",3)(1,"div",6),x(2,"fab-optimised-image",7),p(),h(3,"div",8)(4,"div",9)(5,"div")(6,"h2")(7,"strong"),b(8),p()(),h(9,"p"),b(10),p(),h(11,"div",10),x(12,"fab-button",11),y(13,P7,1,1,"fab-button",11),p()()()(),y(14,R7,4,6,"button",12),y(15,F7,2,2,"div",13),p()),e&2){let t=i.$implicit,n=g();f("ngStyle",j(11,gy,n.itemWidth+"%"))("id","scrollToItem-"+t.index),d(),f("ngStyle",j(13,T7,"url("+t.heroTabImage.image+")")),d(),f("imageConfig",t.imageConfiguration),d(2),f("ngClass",He(15,I7,"align-"+t.textAlignment,"color-"+t.textColour)),d(4),A(t.heading),d(2),A(t.heroTabStrapline),d(2),f("button",t.heroTabCta1),d(),w(t.heroTabCta2?13:-1),d(),w(!n.isSingular&&!n.preventClick?14:-1),d(),w(t.heroTabImage.caption?15:-1)}}function O7(e,i){if(e&1){let t=L();h(0,"div",19)(1,"button",20),R("click",function(){let o=S(t).$implicit,r=g(2);return k(r.switchTab(o.index))}),b(2),p()()}if(e&2){let t=i.$implicit,n=g(2);d(),f("ngClass",j(2,iu,n.current===t.index)),d(),q(" ",t.heroTabText," ")}}function L7(e,i){if(e&1&&(h(0,"div",4),Q(1,O7,3,4,"div",19,ne),p()),e&2){let t=g();d(),Z(t.panels)}}function N7(e,i){if(e&1){let t=L();h(0,"div",21),R("click",function(){S(t);let o=g();return k(o.toggleVideo(!1))}),h(1,"i",22),R("click",function(){S(t);let o=g();return k(o.toggleVideo(!1))}),p(),h(2,"div"),x(3,"fab-video",23),p()()}if(e&2){let t=g();d(3),f("config",j(1,my,t.videoId))}}var V7=["modal"],z7=["coBrowser"];function B7(e,i){e&1&&(h(0,"div",4)(1,"p"),b(2,"Generate co-browsing code"),p()())}function H7(e,i){if(e&1){let t=L();h(0,"div",5)(1,"h3",6),b(2,"Generate help code for co-browsing"),p(),h(3,"p",6),b(4," Co-browsing technology allows customers and AAT customer support advisors to navigate and interact with the same web page on the AAT website simultaneously. The tool enables advisors to offer assistance and guide customers through tasks remotely by sharing a browser session. Advisors can observe your screen during a phone or live chat session and, if necessary, take control of the cursor to demonstrate tasks while you observe. "),p(),h(
16825,"p",6),b(6," Please ensure you're connected with an advisor via phone or live chat to utilise our co-browsing service. Click the "),h(7,"b"),b(8," Generate co-browsing "),p(),b(9," box below if you\u2019re currently speaking with an advisor through phone or live chat to continue with our co-browsing service. "),p(),h(10,"p",6),b(11," If you require screen sharing assistance and have not yet contacted an advisor, please reach out to us via the provided phone numbers or start a live chat by clicking the "),h(12,"b"),b(13," Get help "),p(),b(14,"box below, to ensure we can properly assist you. "),p(),h(15,"div",7)(16,"fab-journey-card",8),R("click",function(){S(t);let o=g();return k(o.nextStep())}),p(),x(17,"fab-journey-card",9),p()()}if(e&2){let t=g();d(16),f("content",t.journeyGetAgentCode),d(),f("content",t.journeyHelpCard)}}function G7(e,i){if(e&1){let t=L();h(0,"div",5)(1,"h3",6),b(2,"Generate help code for co-browsing"),p(),h(3,"div",10)(4,"p"),b(5," Three co-browsing modes are available to best suit your needs and preferences. Please read the details carefully and select the option that aligns with your requirements. "),p(),h(6,"fab-radio",11),R("selectEvent",function(o){S(t);let r=g();return k(r.setControl(o))}),p(),h(7,"fab-radio",11),R("selectEvent",function(o){S(t);let r=g();return k(r.setControl(o))}),p(),h(8,"fab-radio",11),R("selectEvent",function(o){S(t);let r=g();return k(r.setControl(o))}),p(),h(9,"p"),b(10," Customer data security and privacy are paramount to us. During co-browsing sessions, our advisors can only view the AAT website, and sensitive information, such as password fields, is automatically masked to ensure your privacy and protection. "),p(),h(11,"fab-input-checkbox",12),Ra("isCheckedChange",function(o){S(t);let r=g();return Pa(r.declarationAgreement,o)||(r.declarationAgreement=o),k(o)}),p(),h(12,"div",13),x(13,"fab-button",14)(14,"fab-button",15),p()()()}if(e&2){let t=g();d(6),f("content",t.fullControl),d(),f("content",t.partialControl),d(),f("content",t.noControl),d(3),Da("isChecked",t.declarationAgreement),f("content",t.cardCheckBox),d(2),f("button",t.goBack),d(),f("button",t.next)("enabled",t.browsingMode!==void 0&&t.declarationAgreement)}}function U7(e,i){e&1&&(h(0,"div",5)(1,"p",16),b(2,"Please reload your browser to change your cobrowsing settings."),p()())}function j7(e,i){if(e&1&&(h(0,"div",11)(1,"p"),b(2),p(),h(3,"p"),b(4),Y(5,"number"),p()()),e&2){let t=g(3).$implicit;d(2),A(t.comparisonBarLabel),d(2),bi("",t.units," ",t.value?me(5,3,t.value):"0")}}function W7(e,i){if(e&1&&(h(0,"p",12),b(1),Y(2,"number"),p()),e&2){let t=g(3).$implicit;d(),Tu(" ",t.comparisonBarLabel," ",t.units,"",t.value?me(2,3,t.value):"0"," ")}}function $7(e,i){if(e&1&&(dt(0),H(1,j7,6,5,"div",9)(2,W7,3,5,"p",10),ut()),e&2){let t=g(3);d(),f("ngIf",t.largeComparison),d(),f("ngIf",!t.largeComparison)}}function q7(e,i){if(e&1&&(h(0,"div",11),x(1,"p"),h(2,"p"),b(3),p()()),e&2){let t=g(3).$implicit;d(3),A(t.value)}}function Y7(e,i){if(e&1&&(h(0,"p",12),b(1),p()),e&2){let t=g(3).$implicit;d(),q(" ",t.value," ")}}function K7(e,i){if(e&1&&H(0,q7,4,1,"div",9)(1,Y7,2,1,"p",10),e&2){let t=g(3);f("ngIf",t.largeComparison),d(),f("ngIf",!t.largeComparison)}}function Q7(e,i){if(e&1&&x(0,"div",13),e&2){let t=i.ngIf;ot("width",t,"%")}}function Z7(e,i){if(e&1&&(h(0,"div",5),H(1,$7,3,2,"ng-container",6)(2,K7,2,2,"ng-template",null,0,Xt),h(4,"div",7),H(5,Q7,1,2,"div",8),Y(6,"async"),p()()),e&2){let t=Je(3),n=g(),o=n.$implicit,r=n.index,a=g();d(),f("ngIf",o.value!==a.content.notAvailableMessage)("ngIfElse",t),d(4),f("ngIf",me(6,3,a.percentages$[r]))}}function J7(e,i){if(e&1&&x(0,"div",15),e&2){let t=i.ngIf;ot("width",t,"%")}}function X7(e,i){if(e&1&&(h(0,"div",11)(1,"p"),b(2),p(),h(3,"p"),b(4),Y(5,"number"),p()()),e&2){let t=g(3).$implicit;d(2),A(t.comparisonBarLabel),d(2),bi("",t.units," ",t.value?me(5,3,t.value):"0")}}function e8(e,i){if(e&1&&(h(0,"p",12),b(1),Y(2,"number"),p()),e&2){let t=g(3).$implicit;d(),Tu(" ",t.comparisonBarLabel," ",t.units,"",t.value?me(2,3,t.value):"0"," ")}}function t8(e,i){if(e&1&&(dt(0),H(1,X7,6,5,"div",9)(2,e8,3,5,"p",10),ut()),e&2){let t=g(3);d(),f("ngIf",t.largeComparison),d(),f("ngIf",!t.largeComparison)}}function i8(e,i){if(e&1&&(h(0,"div",11),x(1,"p"),h(2,"p"),b(3),p()()),e&2){let t=g(3).$implicit;d(3),A(t.value)}}function n8(e,i){if(e&1&&(h(0,"p",12),b(1),p()),e&2){let t=g(3).$implicit;d(),q(" ",t.value," ")}}function o8(e,i){if(e&1&&H(0,i8,4,1,"div",9)(1,n8,2,1,"p",10),e&2){let t=g(3);f("ngIf",t.largeComparison),d(),f("ngIf",!t.largeComparison)}}function r8(e,i){if(e&1&&(h(0,"div",5)(1,"div",7),H(2,J7,1,2,"div",14),Y(3,"async"),p(),H(4,t8,3,2,"ng-container",6)(5,o8,2,2,"ng-template",null,0,Xt),p()),e&2){let t=Je(6),n=g(
1682),o=n.$implicit,r=n.index,a=g();d(2),f("ngIf",me(3,3,a.percentages$[r])),d(2),f("ngIf",o.value!==a.content.notAvailableMessage)("ngIfElse",t)}}function a8(e,i){if(e&1&&(h(0,"div"),H(1,Z7,7,5,"div",4)(2,r8,7,5,"div",4),p()),e&2){let t=i.$implicit;d(),f("ngIf",t.comparisonBarLabelPosition==="top"),d(),f("ngIf",t.comparisonBarLabelPosition==="bottom")}}function s8(e,i){if(e&1&&(h(0,"div"),x(1,"fab-dropdown-simple",11),p()),e&2){let t=g().$implicit,n=g();d(),f("content",t.dropdownSimpleObject)("formControl",n.form.controls[n.transformToCamel(t.heading)])}}function l8(e,i){if(e&1&&(h(0,"div")(1,"p",12),b(2),p(),x(3,"fab-input-text-2",13),p()),e&2){let t=g().$implicit,n=g();d(2),A(t.heading),d(),f("disableIcons",!0)("content",n.numberInput)("formControl",n.form.controls[n.transformToCamel(t.heading)])}}function c8(e,i){if(e&1&&(h(0,"div",4),y(1,s8,2,2,"div"),y(2,l8,4,4,"div"),p()),e&2){let t=i.$implicit;d(),w(t.inputType==="dropdown"?1:-1),d(),w(t.inputType==="numeric"?2:-1)}}function d8(e,i){if(e&1&&x(0,"fab-comparison-graph",14),e&2){let t=g().$implicit;f("content",t.comparisonData)}}function u8(e,i){if(e&1&&(h(0,"div",10),y(1,d8,1,1,"fab-comparison-graph",14),p()),e&2){let t=i.$implicit;d(),w(t.inputType==="dropdown"&&!t.referenceField?1:-1)}}function p8(e,i){if(e&1&&(h(0,"div",7)(1,"strong"),b(2),p(),h(3,"h4"),b(4),p()()),e&2){let t=i.$implicit;d(2),A(t.jobTitle),d(2),A(t.salary)}}function h8(e,i){if(e&1&&(h(0,"div",7)(1,"strong"),b(2),p(),h(3,"h4"),b(4),p()()),e&2){let t=i.$implicit;d(2),A(t.jobTitle),d(2),A(t.salary)}}function g8(e,i){if(e&1&&(h(0,"div",7)(1,"strong"),b(2),p(),h(3,"h4"),b(4),p()()),e&2){let t=i.$implicit;d(2),A(t.jobTitle),d(2),A(t.salary)}}function m8(e,i){if(e&1&&(h(0,"li"),b(1),p()),e&2){let t=i.$implicit;d(),A(t.name)}}function f8(e,i){if(e&1&&(h(0,"ul"),Q(1,m8,2,1,"li",null,ne),p()),e&2){let t=g(2);d(),Z(t.content.consultationOrganisation)}}function v8(e,i){if(e&1&&(h(0,"p"),b(1),p()),e&2){let t=g(2);d(),q(" ",t.content.consultationOrganisation[0].name," ")}}function C8(e,i){if(e&1&&(h(0,"div",2)(1,"h3"),b(2),p(),y(3,f8,3,0,"ul"),y(4,v8,2,1,"p"),p()),e&2){let t=g();d(2),q("Consultation author",t.content.consultationOrganisation.length>1?"s":""),d(),w(t.content.consultationOrganisation.length>1?3:-1),d(),w(t.content.consultationOrganisation.length==1?4:-1)}}function b8(e,i){if(e&1){let t=L();h(0,"p",3)(1,"a",5),R("click",function(){S(t);let o=g();return k(o.onCRClick(o.content.originalConsultationLink.uri,"Read the original consultation","click read original consultation"))}),b(2,"Read the original consultation"),p()()}if(e&2){let t=g();d(),f("href",t.content.originalConsultationLink.uri,ee)}}function _8(e,i){if(e&1&&(h(0,"div")(1,"h2"),b(2,"Executive summary"),p(),x(3,"div",6),p()),e&2){let t=g();d(3),f("innerHtml",t.content.executiveSummary,te)}}function y8(e,i){if(e&1&&x(0,"fab-button",4),e&2){let t=g();f("button",t.responseButton)}}function w8(e,i){if(e&1&&x(0,"span",11),e&2){let t=i.$implicit;f("innerHtml",t,te)}}function x8(e,i){if(e&1){let t=L();h(0,"a",9),R("click",function(){let o=S(t).$implicit,r=g(2);return k(r.onCRClick(o.pathAlias,o.title,"click related consultation response"))}),h(1,"h4")(2,"strong"),b(3),p()(),h(4,"div",10),Q(5,w8,1,1,"span",11,ne),p(),x(7,"div",6),p()}if(e&2){let t=i.$implicit,n=g(2);f("ngClass","consultation-response__card--"+n.relatedItems.length)("href",t.pathAlias,ee),d(3),A(t.title),d(2),Z(t.tags),d(2),f("innerHtml",t.summary,te)}}function S8(e,i){if(e&1&&(h(0,"div")(1,"h2"),b(2,"Related consultation responses"),p(),h(3,"div",7),Q(4,x8,8,4,"a",8,ne),p()()),e&2){let t=g();d(4),Z(t.relatedItems)}}function k8(e,i){if(e&1&&(h(0,"a",4)(1,"div",6)(2,"p"),b(3),p()()()),e&2){let t=g().$implicit;f("href",t.link,ee),d(3),A(t.label)}}function E8(e,i){if(e&1&&(h(0,"a",5)(1,"div",6)(2,"p"),b(3),p()()()),e&2){let t=g().$implicit;f("routerLink",j(2,tt,"/"+t.link)),d(3),A(t.label)}}function T8(e,i){if(e&1){let t=L();h(0,"div",3),R("click",function(o){let r=S(t).$implicit,a=g(2);return k(a.itemClicked(o,r))}),y(1,k8,4,2,"a",4),y(2,E8,4,4,"a",5),p()}if(e&2){let t=g(2);d(),w(t.useRouterLink?-1:1),d(),w(t.useRouterLink?2:-1)}}
1682function I8(e,i){if(e&1&&(h(0,"div",0)(1,"div",1),Q(2,T8,3,2,"div",2,ne),p()()),e&2){let t=g();d(2),Z(t.content)}}var M8=["feed"];function D8(e,i){if(e&1&&x(0,"img",9),e&2){let t=g().$implicit;f("src",t.imageUrl,ee)("alt",t.imageCaption)}}function P8(e,i){if(e&1){let t=L();h(0,"a",7),R("click",function(o){let r=S(t).$implicit,a=g();return k(a.onNavigate(o,r))}),h(1,"div",8),y(2,D8,1,2,"img",9),h(3,"span"),b(4),p()(),h(5,"div",10)(6,"h4")(7,"strong"),b(8),p()(),x(9,"div",11),p()()}if(e&2){let t=i.$implicit,n=g();f("href",t.nodeUrl,ee),d(),ot("height",n.imageHeight,"px"),d(),w(t.imageUrl?2:-1),d(2),A(t.label),d(4),A(t.title),d(),f("innerHtml",t.summary,te)}}function R8(e,i){e&1&&x(0,"i",4)}function F8(e,i){e&1&&x(0,"i",5)}function A8(e,i){if(e&1){let t=L();h(0,"li")(1,"a",3),R("click",function(){let o=S(t).$implicit,r=g(3);return k(r.setActive(o))}),b(2),p()()}if(e&2){let t=i.$implicit,n=g(3);d(2),A(n.titles[t])}}function O8(e,i){if(e&1&&(h(0,"div",6)(1,"ul"),Q(2,A8,3,1,"li",null,ne),p()()),e&2){let t=g(2);d(2),Z(t.titleArr)}}function L8(e,i){if(e&1&&(h(0,"div",13),x(1,"fab-optimised-image",14),p()),e&2){let t=g().$implicit,n=g(2);ot("height",n.imageHeight,"px"),d(),f("imageConfig",t.imageConfig)}}function N8(e,i){if(e&1){let t=L();h(0,"a",9),R("click",function(o){let r=S(t).$implicit,a=g(2);return k(a.onNavigate(o,r))}),y(1,L8,2,3,"div",10),h(2,"div",11)(3,"h4")(4,"strong"),b(5),p()(),x(6,"div",12),p()()}if(e&2){let t=i.$implicit;f("target",oe(t.openInNewTab?"_blank":"_self"))("href",t.nodeUrl,ee),d(),w(t.imageUrl?1:-1),d(4),A(t.title),d(),f("innerHtml",t.summary,te)}}function V8(e,i){if(e&1){let t=L();h(0,"div")(1,"div",1)(2,"h3"),b(3),h(4,"div",2,0)(6,"a",3),R("click",function(){S(t);let o=g();return k(o.togglePanel())}),h(7,"b"),b(8),y(9,R8,1,0,"i",4),y(10,F8,1,0,"i",5),p()(),y(11,O8,4,0,"div",6),p()()(),h(12,"div",7),Q(13,N8,7,6,"a",8,ne),p()()}if(e&2){let t=g();d(3),q(" ",t.intro," "),d(5),q(" ",t.titles[t.activePanel]," "),d(),w(t.showPanel?-1:9),d(),w(t.showPanel?10:-1),d(),w(t.showPanel?11:-1),d(2),Z(t.panels[t.activePanel])}}function z8(e,i){if(e&1&&x(0,"fab-button",4),e&2){let t=g();f("button",t.ctaOne)}}function B8(e,i){if(e&1&&x(0,"fab-button",4),e&2){let t=g();f("button",t.ctaTwo)}}function H8(e,i){if(e&1&&(h(0,"span",9),b(1),p()),e&2){let t=g(2);d(),A(t.content.level)}}function G8(e,i){if(e&1&&(h(0,"span",10),b(1),p()),e&2){let t=g(2);d(),A(t.content.duration)}}function U8(e,i){if(e&1&&(h(0,"div",8),y(1,H8,2,1,"span",9),y(2,G8,2,1,"span",10),p()),e&2){let t=g();ot("background-image","url("+t.content.imageUrl+")"),d(),w(t.content.level?1:-1),d(),w(t.content.duration?2:-1)}}function j8(e,i){if(e&1&&(h(0,"div",5)(1,"h5"),b(2),p()()),e&2){let t=g();d(2),q("(",t.content.scottishQualName,")")}}function W8(e,i){if(e&1&&(h(0,"div",7)(1,"strong"),b(2,"Total cost: "),p(),b(3),p()),e&2){let t=g();d(3),q("",t.content.assessmentFees," ")}}function $8(e,i){if(e&1){let t=L();h(0,"div",1)(1,"fab-product-card-medium",2),R("click",function(){let o=S(t).$implicit,r=g(2);return k(r.addToGa(o))}),p()()}if(e&2){let t=i.$implicit;d(),f("content",t)}}function q8(e,i){if(e&1&&(h(0,"div",0),Q(1,$8,2,1,"div",1,ne),p()),e&2){let t=g();d(),Z(t.productCards)}}function Y8(e,i){if(e&1){let t=L();h(0,"div",5)(1,"input",6),R("change",function(o){let r=S(t).$implicit,a=g().$index,s=g();return k(s.onAnswerSelect(o,r.value,a,r.label))}),p(),h(2,"label",7),b(3),p()()}if(e&2){let t=i.$implicit,n=g().$implicit;d(),f("formControlName",n.id)("id",t.id)("value",t.index),d(),f("for",t.id),d(),A(t.label)}}function K8(e,i){if(e&1&&(h(0,"div",2)(1,"fab-accordion",4),Q(2,Y8,4,5,"div",5,ne),p()()),e&2){let t=i.$implicit;d(),f("title",t.label)("isOpen",t.isOpen)("id",t.id),d(),Z(t.answers)}}function Q8(e,i){if(e&1&&x(0,"h2",8),e&2){let t=g(2);f("innerHTML",t.content.resultsHeading,te)}}function Z8(e,i){e&1&&x(0,"fab-loader")}function J8(e,i){if(e&1){let t=L();h(0,"fab-product-card-container",10),R("onLoaded",function(o){S(t);let r=g(2);return k(r.onProductCardsLoad(o))}),p()}if(e&2){let t=g(2);f("productNodeIds",t.resultsToDisplay)}}function X8(e,i){if(e&1&&x(0,"div",11),e&2){let t=g(3);f("innerHTML",t.resultsText,te)}}function eV(e,i){if(e&1&&(h(0,"div",13),x(1,"fab-button",14),p()),e&2){let t=g(3);d(),f("button",t.printButton)}}function tV(e,i){if(e&1&&x(0,"div",11),e&2){let t=g(3);f("innerHTML",t.content.resultsIntroduction,te)}}function iV(e,i){if(e&1&&x(0,"fab-hubspot-form",15)(1,"input",16)(2,"input",17),e&2){let t=g(3);f("portalId",t.content.hubspotForm.portalId)("formId",t.content.hubspotForm.guid)("formMapping",t.hubspotMapping),d(),f("value",t.hubspotData.environment),d(),f("value",t.hubspotData.product_recommendation)}}function nV(e,i){if(e&1&&(y(0,X8,1,1,"div",11),h(1,"div",12),y(2,eV,2,1,"div",13),h(3,"div",13),x(4,"fab-button",14),p()(),y(5,tV,1,1,"div",11),y(6,iV,3,5)),e&2){let t=g(2);w(t.resultsText?0:-1),d(2),w(t.content.allowPrintResults?2:-1),d(2),f("button",t.restartButton),d(),w(t.content.resultsIntroduction?5:-1),d(),w(t.content.hubspotForm?6:-1)}}function oV(e,i){if(e&1&&(h(0,"div",3),y(1,Q8,1,1,"h2",8),y(2,Z8,1,0,"fab-loader"),y(3,J8,1,1,"fab-product-card-container",9),y(4,nV,7,5),p()),e&2){let t=g();d(),w(t.haveProductCardsLoaded?1:-1),d(),w(t.haveProductCardsLoaded?-1:2),d(),w(t.resultsToDisplay?3:-1),d(),w(t.haveProductCardsLoaded?4:-1)}}function rV(e,i){if(e&1&&(h(0,"div",2),b(1),p()),e&2){let t=g();d(),q(" ",t.parsePrice(t.content.previouslyRegisteredOnly&&t.content.fees&&t.content.fees.memberFeeUk&&t.content.fees.memberReinstateFee?t.content.fees.memberFeeUk+t.content.fees.memberReinstateFee:t.content.fees==null?null:t.content.fees.aatFeesUk)," ")}}function aV(e,i){if(e&1&&(h(0,"span"),b(1),p(),x(2,"br")),e&2){let t=i.$implicit;d(),A(t)}}function sV(e,i){e&1&&x(0,"br")}function lV(e,i){if(e&1&&(h(0,"strong"),b(1,"Price for"),p(),x(2,"br"),h(3,"small",4),Q(4,aV,3,1,null,null,ne),p(),y(6,sV,1,0,"br")),e&2){let t=g();d(4),Z(t.content.pricePart),d(2),w(t.content.basketable?-1:6)}}function cV(e,i){e&1&&(h(0,"small",4),b(1,"This qualification will be available for registration on "),h(2,"strong"),b(3,"1
1682September 2026"),p(),b(4,"."),p())}function dV(e,i){e&1&&(h(0,"div",5),b(1," You need to be at least 16 years old to register online. Complete the registration form for the qualification you want to study. "),p())}function uV(e,i){e&1&&(h(0,"div",5),b(1," We cannot process your registration for student membership online. "),p())}function pV(e,i){e&1&&(h(0,"div",7)(1,"a",9),b(2,"View Basket"),p()())}function hV(e,i){if(e&1&&(h(0,"div")(1,"h3"),b(2,"Consent"),p(),x(3,"div",1),p()),e&2){let t=g();d(3),f("innerHtml",t.content.disciplinaryConsent,te)}}var fy=e=>({hidden:e});function gV(e,i){if(e&1&&x(0,"i",1),e&2){let t=g();f("ngClass","icon-"+t.item.icon)}}function mV(e,i){if(e&1&&x(0,"img",2),e&2){let t=g();f("src",t.getIconSource(),ee)}}function fV(e,i){if(e&1&&x(0,"fab-icon-links-item",1),e&2){let t=i.$implicit;f("item",t)}}var vV='[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2} .icon-links{display:flex;flex-direction:row} .icon-links a.icon-links__link{background-color:#fff;border:2px solid #000000;box-sizing:border-box;border-radius:50%;position:relative;height:40px;width:40px;margin:5px;display:inline-block;text-decoration:none;transition:all .3s ease-in-out} .icon-links a.icon-links__link i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:20px;color:#000} .icon-links a.icon-links__link span{text-align:left;font-family:Open Sans,Arial,Helvetica,"sans-serif";position:absolute;top:-7px;left:50%;background-color:#2f2f2f;padding:5px;transform:translate(-50%,-100%);display:none;font-size:14px;color:#fff;width:max-content;max-width:150px} .icon-links a.icon-links__link span:after{content:"";width:5px;height:5px;position:absolute;bottom:-3px;left:50%;background-color:#2f2f2f;transform-origin:center center;transform:rotate(45deg) translate(-33%)} .icon-links a.icon-links__link:hover{box-shadow:0 5px 5px #00000040} .icon-links a.icon-links__link:hover span{display:block} .icon-links--vertical{flex-direction:column;text-align:right} .icon-links--vertical a.icon-links__link span{top:50%;left:-7px;transform:translate(-100%,-50%)} .icon-links--vertical a.icon-links__link span:after{inset:50% -1px auto auto;transform:rotate(45deg) translate(0) translateY(-33%)}',CV=()=>({"background-size":"cover"}),bV=(e,i,t)=>({"standard-hero--expanded":e,"standard-hero--details":i,"standard-hero--v2":t}),_V=(e,i)=>({"standard-hero__copy--light":e,"standard-hero--v2":i}),yV=e=>({"space-bar":e}),wV=e=>({light:e});function xV(e,i){if(e&1&&(h(0,"div",1),x(1,"i",13),p()),e&2){let t=g();d(),f("tooltip",t.content.gdprIdentifier)("positionInput","left")}}function SV(e,i){if(e&1&&(h(0,"a",3),b(1),p()),e&2){let t=g();f("href",oe(t.content.toplineLink),ee),d(),A(t.content.topline)}}function kV(e,i){if(e&1&&(h(0,"a",4),b(1),p()),e&2){let t=g();f("routerLink",j(2,tt,"/"+t.content.toplineLink)),d(),A(t.content.topline)}}function EV(e,i){if(e&1&&x(0,"h1",5),e&2){let t=g();f("innerHTML",t.content.title,te)}}function TV(e,i){if(e&1&&x(0,"div",6),e&2){let t=g();f("innerHTML",t.content.subTitle,te)("ngClass",j(2,wV,t.content.colourWay==="light"))}}function IV(e,i){if(e&1&&x(0,"p",5),e&2){let t=g();f("innerHTML",t.content.content,te)}}function MV(e,i){if(e&1&&(h(0,"a",14)(1,"p",16),b(2),Y(3,"truncate"),p()()),e&2){let t=g(2);f("href",oe(t.content.authorlink),ee),d(2),q(" ",Mt(3,3,t.content.authorline,30)," ")}}function DV(e,i){if(e&1&&(h(0,"a",15)(1,"p",16),b(2),Y(3,"truncate"),p()()),e&2){let t=g(2);f("routerLink",j(5,tt,"/"+t.content.authorlink)),d(2),q(" ",Mt(3,2,t.content.authorline,30)," ")}}function PV(e,i){if(e&1&&(h(0,"div",7)(1,"p"),b(2,"By \xA0"),p(),y(3,MV,4,6,"a",14),y(4,DV,4,7,"a",15),p()),e&2){let t=g();d(3),w(t.content.useRouterLink?-1:3),d(),w(t.content.useRouterLink?4:-1)}}function RV(e,i){if(e&1&&x(0,"fab-icon-links",17),e&2){let t=g(2);f("content",t.iconLinks)}}function FV(e,i){if(e&1&&(h(0,"div",8),y(1,RV,1,1,"fab-icon-links",17),p()),e&2){let t=g();d(),w(t.content.isContentArticle?1:-1)}}function AV(e,i){if(e&1&&(h(0,"div",9)(1,"b"),b(2,"Brought to you by \xA0"),p(),h(3,"a",18),x(4,"img",19),p()()),e&2){let t=g();d(3),f("href",oe(t.content.sponsorshipDetails==null?null:t.content.sponsorshipDetails.link),ee),d(),f("src",oe(t.content.sponsorshipDetails==null?null:t.content.sponsorshipDetails.image),ee)}}function OV(e,i){if(e&1&&x(0,"fab-button",11),e&2){let t=g();f("button",t.content.cta)}}function LV(e,i){if(e&1&&(h(0,"div",12)(1,"p"),b(2),p()()),e&2){let t=g();d(2),A(t.content.attribution)}}var NV=()=>["/"],VV=()=>["Cobrowsing",!0];function zV(e,i){if(e&1&&(h(0,"a",6),x(1,"img",19),p()),e&2){let t=g();d(),f("src",oe(t.content.logo),ee)}}function BV(e,i){if(e&1&&(h(0,"a",7),x(1,"img",19),p()),e&2){let t=g();f("routerLink",Sl(3,NV)),d(),f("src",oe(t.content.logo),ee)}}function HV(e,i){if(e&1&&(h(0,"a",22),b(1),p()),e&2){let t=i.$implicit;ie(t.icon),f("href",oe(t.link),ee),d(),A(t.linkText)}}function GV(e,i){if(e&1){let t=L();h(0,"a",23),R("click",function(){S(t),g(3);let o=Je(1);return k(o.openModal())}),b(1,"Generate help code"),p()}}function UV(e,i){if(e&1&&(h(0,"div",4),Q(1,HV,2,5,"a",20,ne),H(3,GV,2,0,"a",21),p()),e&2){let t=g().$implicit;d(),Z(t.links),d(2),f("featureFlag",Sl(1,VV))}}function jV(e,i){if(e&1&&(h(0,"a",25),b(1),p()),e&2){let t=i.$implicit;ie(t.icon),f("routerLink",j(4,tt,"/"+t.link)),d(),A(t.linkText)}}function WV(e,i){if(e&1&&(h(0,"div",4),Q(1,jV,2,6,"a",24,ne),p()),e&2){let t=g().$implicit;d(),Z(t.links)}}function $V(e,i){if(e&1&&(h(0,"div",10)(1,"h6")(2,"strong"),b(3),p()(),y(4,UV,4,2,"div",4),y(5,WV,3,0,"div",4),p()),e&2){let t=i.$implicit,n=g();d(3),A(t.title),d(),w(n.content.useRouterLink?-1:4),d(),w(n.content.useRouterLink?5:-1)}}function qV(e,i){if(e&1&&(h(0,"a",26),x(1,"i"),h(2,"span"),b(3),p()()),e&2){let t=i.$implicit;f("href",oe(t.link),ee),d(),ie(Wt("icon icon-",t.icon)),d(2),A(t.linkText)}}function YV(e,i){if(e&1&&(h(0,"div",4),Q(1,qV,4,6,"a",26,ne),p()),e&2){let t=g().$implicit;d(),Z(t.links)}}function KV(e,i){if(e&1&&(h(0,"a",25),x(1,"i"),h(2,"span"),b(3),p()()),e&2){let t=i.$implicit;f("routerLink",j(5,tt,"/"+t.link)),d(),ie(Wt("icon icon-",t.icon)),d(2),A(t.linkText)}}function QV(e,i){if(e&1&&(h(0,"div",4),Q(1,KV,4,7,"a",25,ne),p()),e&2){let t=g().$implicit;d(),Z(t.links)}}function ZV(e,i){if(e&1&&(h(0,"div",12)(1,"h6")(2,"strong"),b(3),p()(),y(4,YV,3,0,"div",4),y(5,QV,3,0,"div",4),p()),e&2){let t=i.$implicit,n=g();d(3),A(t.title),d(),w(n.content.useRouterLink?-1:4),d(),w(n.content.useRouterLink?5:-1)}}function JV(e,i){if(e&1&&(x(0,"fab-button",14),Y(1,"formatContentToButton")),e&2){let t=g();f("button",me(1,1,t.content))}}function XV(e,i){if(e&1&&(h(0,"a",22),b(1),p()),e&2){let t=i.$implicit;f("href",oe(t.link),ee),d(),A(t.linkText)}}function ez(e,i){if(e&1&&(h(0,"div",17),Q(1,XV,2,3,"a",22,ne),p()),e&2){let t=g();d(),Z(t.content.bottomLinks)}}function tz(e,i){if(e&1&&(h(0,"a",25),b(1),p()),e&2){let t=i.$implicit;f("routerLink",j(2,tt,"/"+t.link)),d(),A(t.linkText)}}function iz(e,i){if(e&1&&(h(0,"div",17),Q(1,tz,2,4,"a",25,ne),p()),e&2){let t=g();d(),Z(t.content.bottomLinks)}}function nz(e,i){if(e&1&&(h(0,"a",11),b(1),p()),e&2){let t=g().$implicit;f("href",oe(t.link),ee)("openInNewTab",!!t.openInNewTab),d(),A(t.title)}}function oz(e,i){if(e&1&&(h(0,"a",12),b(1),p()),e&2){let t=g().$implicit;f("routerLink",j(3,tt,"/"+t.link))("openInNewTab",!!t.openInNewTab),d(),A(t.title)}}
1682function rz(e,i){if(e&1&&(h(0,"div"),y(1,nz,2,4,"a",11),y(2,oz,2,5,"a",12),p()),e&2){let t=i.$implicit;d(),w(t.useRouterLink?-1:1),d(),w(t.useRouterLink?2:-1)}}function az(e,i){if(e&1){let t=L();h(0,"div")(1,"a",10),R("click",function(){let o=S(t).$implicit,r=g(2);return k(r.changeGroup(o))}),b(2),Y(3,"groupName"),p()()}if(e&2){let t=i.$implicit;d(2),q("Switch to ",me(3,1,t))}}function sz(e,i){if(e&1){let t=L();h(0,"div",0)(1,"div",1),R("click",function(){S(t);let o=g();return k(o.togglePane())}),b(2),p(),h(3,"div",2),R("click",function(){S(t);let o=g();return k(o.closePane())})("click",function(){S(t);let o=g();return k(o.closeDropdown())}),p(),h(4,"div",3),R("click",function(){S(t);let o=g();return k(o.toggleDropdown())}),h(5,"div",4),b(6),p(),h(7,"div",5)(8,"div",6),b(9),p(),h(10,"div",7),b(11),p()(),x(12,"i",8),h(13,"div",9),Q(14,rz,3,2,"div",null,ne),Q(16,az,4,3,"div",null,ne),x(18,"hr"),h(19,"a",10),R("click",function(){S(t);let o=g();return k(o.logout())}),b(20,"Sign out"),p()()()()}if(e&2){let t=g();d(2),q(" ",t.initials," "),d(),Be("logged-in__show",t.paneIsActive||t.dropdownIsActive),d(),Be("logged-in__show",t.paneIsActive),d(2),q(" ",t.initials," "),d(3),bi("",t.cognitoDetails.given_name," ",t.cognitoDetails.family_name),d(2),q(" ",t.cognitoDetails["custom:member_id"]," "),d(2),Be("logged-in__show",t.dropdownIsActive),d(),Z(t.content.menuItems),d(2),Z(t.groupMenuItems)}}function lz(e,i){if(e&1){let t=L();h(0,"li",9),R("mousedown",function(){let o=S(t).$index;g();let r=Je(3);return k(r.selectSuggestion(o))}),x(1,"span",10),Y(2,"textHighlight"),p()}if(e&2){let t=i.$implicit,n=i.$index;g();let o=Je(3);d(),Be("selected",o.currentIndex==n),f("innerHTML",Mt(2,3,t.label,o.search.term),te)}}function cz(e,i){if(e&1){let t=L();h(0,"div",1)(1,"div",2)(2,"fab-autocomplete",3,0)(4,"header",4),b(5,"Suggestions"),p(),h(6,"ul"),Q(7,lz,3,6,"li",5,ne),p()()(),h(9,"div",6)(10,"a",7),R("click",function(){S(t);let o=g();return k(o.showSearch())}),x(11,"fab-aat-icon",8),p()()()}if(e&2){let t=Je(3),n=g();d(),Be("open",n.isOpen),d(),f("service",n.headerSearchService),d(5),Z(t.results),d(2),Be("hide",n.isOpen),d(2),f("content",n.searchIcon)("size",n.iconSize)}}var dz=(e,i)=>i.url;function uz(e,i){if(e&1&&(h(0,"a",6),b(1),p()),e&2){let t=g().$implicit;f("href",t.url,ee)("openInNewTab",!!t.openInNewTab),d(),A(t.label)}}function pz(e,i){if(e&1&&(h(0,"a",7),b(1),p()),e&2){let t=g().$implicit;f("routerLink",t.url),d(),A(t.label)}}function hz(e,i){if(e&1&&(h(0,"li",2),y(1,uz,2,3,"a",6),y(2,pz,2,2,"a",7),p()),e&2){let t=i.$implicit;d(),w(t.type==="href"?1:-1),d(),w(t.type==="routerLink"?2:-1)}}var gz=e=>({"border-right":e});function mz(e,i){if(e&1&&x(0,"fab-aat-icon",6),e&2){let t=g(2);f("content",t.chevron)("size",t.iconSize)}}function fz(e,i){if(e&1){let t=L();h(0,"a",4),Y(1,"async"),R("mouseenter",function(){let o=S(t).$implicit,r=g();return k(r.setLastSubHoveredHeader(o))}),b(2),h(3,"span",5),y(4,mz,1,2,"fab-aat-icon",6),p()()}if(e&2){let t=i.$implicit,n=g();f("href",t.path,ee)("openInNewTab",!!t.openInNewTab)("ngClass",j(7,iu,me(1,5,n.subHeader$)===t)),d(2),q(" ",t.title," "),d(2),w(t.links?4:-1)}}function vz(e,i){if(e&1){let t=L();h(0,"a",4),Y(1,"async"),R("mouseenter",function(){let o=S(t).$implicit,r=g();return k(r.setSubSubHeader(o))}),b(2),p()}if(e&2){let t=i.$implicit,n=g();f("href",t.path,ee)("openInNewTab",!!t.openInNewTab)("ngClass",j(6,iu,me(1,4,n.activeSubSubHeader$)===t)),d(2),q(" ",t.title," ")}}function Cz(e,i){if(e&1){let t=L();h(0,"div",4),R("mouseenter",function(){let o=S(t).$implicit,r=g();return k(r.setLastHoveredHeader(o))})("mouseleave",function(){S(t);let o=g();return k(o.unsetLastHoveredHeader())}),h(1,"a",5),Y(2,"async"),b(3),p()()}if(e&2){let t=i.$implicit,n=g();d(),f("href",t.path,ee)("openInNewTab",!!t.openInNewTab)("ngClass",j(6,iu,me(2,4,n.activeHeader$)===t)),d(2),q(" ",t.title," ")}}function bz(e,i){if(e&1&&(h(0,"div",7)(1,"h4"),b(2),Y(3,"async"),p(),h(4,"a",10),b(5),p()()),e&2){let t,n=i,o=g(2);d(2),A((t=me(3,4,o.activeHeader$))==null?null:t.title),d(2),f("href",n.path,ee)("openInNewTab",!!n.openInNewTab),d(),A(n.customLinkText??"Find out more")}}function _z(e,i){if(e&1&&(h(0,"div",9),x(1,"img",11),h(2,"h4"),b(3),Y(4,"async"),p(),x(5,"p",12),Y(6,"async"),p()),e&2){let t=g(2);d(),f("src",i,ee),d(2),q(" ",me(4,3,t.imgTitle$)," "),d(2),f("innerHTML",me(6,5,t.imgDescription$),te)}
1682}function yz(e,i){if(e&1&&(h(0,"div",3)(1,"div",6),y(2,bz,6,6,"div",7),Y(3,"async"),x(4,"app-header-desktop-dropdown",8),Y(5,"async"),y(6,_z,7,7,"div",9),Y(7,"async"),p()()),e&2){let t,n,o,r=g();d(2),w((t=me(3,3,r.activeHeader$))?2:-1,t),d(2),f("headerData",(n=me(5,5,r.activeHeader$))==null?null:n.links),d(2),w((o=me(7,7,r.imgSrc$))?6:-1,o)}}function wz(e,i){if(e&1&&x(0,"fab-aat-icon",6),e&2){let t=g().$implicit,n=g(3);f("content",n.chevron)("size",n.iconSize)("@rotatedState",n.chevronState.subHeader[t.title]??"default")}}function xz(e,i){if(e&1){let t=L();h(0,"div",3)(1,"a",10),R("click",function(o){return S(t),k(o.stopPropagation())}),b(2),p()()}if(e&2){let t=i.$implicit;d(),f("href",t.path,ee)("openInNewTab",!!t.openInNewTab),d(),q(" ",t.title," ")}}function Sz(e,i){if(e&1&&(h(0,"div",11),Q(1,xz,3,3,"div",3,ne),Y(3,"async"),Y(4,"orderBy"),p()),e&2){let t=g(4);d(),Z(_n(4,2,me(3,0,t.activeSubHeaderLinks$),"weight",!1))}}function kz(e,i){if(e&1){let t=L();h(0,"div",9),R("click",function(o){let r=S(t).$implicit,a=g(3);return a.subHeaderClicked(r),o.stopPropagation(),k(a.rotate("subHeader",r.title))}),h(1,"div",3)(2,"a",10),R("click",function(o){return S(t),k(o.stopPropagation())}),b(3),p(),h(4,"span",5),y(5,wz,1,3,"fab-aat-icon",6),p()(),y(6,Sz,5,6,"div",11),Y(7,"async"),p()}if(e&2){let t=i.$implicit,n=g(3);d(2),f("href",t.path,ee)("openInNewTab",!!t.openInNewTab),d(),q(" ",t.title," "),d(2),w(t.links?5:-1),d(),w(me(7,5,n.activeSubHeader$)===t?6:-1)}}function Ez(e,i){if(e&1&&(h(0,"div",7),Q(1,kz,8,7,"div",8,ne),Y(3,"async"),Y(4,"orderBy"),p()),e&2){let t=g(2);d(),Z(_n(4,2,me(3,0,t.activeHeaderLinks$),"weight",!1))}}function Tz(e,i){if(e&1){let t=L();h(0,"div",2),R("click",function(o){let r=S(t).$implicit,a=g();return a.headerClicked(r),a.rotate("header",r.title),k(o.stopPropagation())}),h(1,"div",3)(2,"a",4),R("click",function(o){return S(t),k(o.stopPropagation())}),b(3),p(),h(4,"span",5),x(5,"fab-aat-icon",6),p()(),y(6,Ez,5,6,"div",7),Y(7,"async"),p()}if(e&2){let t=i.$implicit,n=g();d(2),f("href",t.path,ee)("openInNewTab",!!t.openInNewTab),d(),q(" ",t.title," "),d(2),f("content",n.chevron)("size",n.iconSize)("@rotatedState",n.chevronState.header[t.title]??"default"),d(),w(me(7,7,n.activeHeader$)===t?6:-1)}}var Iz=["header"],Mz=e=>({header__container__ready:e}),Dz=e=>({"header-mobile__container__ready":e}),Pz=e=>({"hamburger-active":e});function Rz(e,i){if(e&1){let t=L();h(0,"a",14,1),R("click",function(){S(t);let o=g(3);return k(o.navigateHome())}),x(2,"img",15),p()}if(e&2){let t=g(3);d(2),f("src",t.logoUrl,ee)}}function Fz(e,i){if(e&1){let t=L();h(0,"div",16)(1,"fab-site-search",17),R("isOpenChange",function(o){S(t);let r=g(3);return k(r.searchOpenChange(o))}),p()()}if(e&2){let t=g(2).let,n=g();Be("no-auth",!t),d(),f("content",n.searchContent)}}function Az(e,i){if(e&1&&(h(0,"div",18),x(1,"fab-basket-icon",19),p()),e&2){let t=g(2).let;Be("no-auth",!t),d(),f("count",i)}}function Oz(e,i){if(e&1&&(h(0,"div",11),x(1,"fab-button",20)(2,"fab-button",21),p()),e&2){let t=g(3);d(),f("button",t.registerButton),d(),f("button",t.loginButton)}}function Lz(e,i){if(e&1){let t=L();h(0,"div",12)(1,"fab-logged-in-user",22),R("rightPaneChange",function(o){S(t);let r=g(3);return k(r.rightPaneIsActive(o))}),p()()}if(e&2){let t=g(3);d(),f("content",t.loggedInUserData)}}function Nz(e,i){e&1&&(h(0,"div",13),x(1,"app-header-desktop",null,2),p())}function Vz(e,i){if(e&1){let t=L();h(0,"div",7),R("mouseleave",function(){S(t);let o=g(2);return k(o.hideHeader())}),y(1,Rz,3,1,"a",8),y(2,Fz,2,3,"div",9),y(3,Az,2,3,"div",10),Y(4,"async"),y(5,Oz,3,2,"div",11),y(6,Lz,2,1,"div",12),y(7,Nz,3,0,"div",13),p()}if(e&2){let t,n=g().let,o=g();f("ngClass",j(9,Mz,o.isClient)),d(),w(n?-1:1),d(),w(o.hideSearch()?-1:2),d(),w((t=me(4,7,o.enableBasket&&o.basketCountChanged$))?3:-1,t),d(2),w(n?-1:5),d(),w(n&&o.isClient?6:-1),d(),w(n?-1:7)}}function zz(e,i){if(e&1){let t=L();h(0,"a",14),R("click",function(){S(t);let o=g(3);return k(o.navigateHome())}),x(1,"img",30),p()}if(e&2){let t=g(3);d(),f("src",t.logoUrl,ee)}}function Bz(e,i){if(e&1){let t=L();h(0,"fab-site-search",31),R("isOpenChange",function(o){S(t);let r=g(3);return k(r.searchOpenChange(o))}),p()}if(e&2){let t=g(3);f("content",t.searchContent)("isOpen",!1)}}function Hz(e,i){e&1&&(h(0,"div",26),x(1,"fab-basket-icon",19),p()),e&2&&(d(),f("count",i))}function Gz(e,i){if(e&1){let t=L();h(0,"fab-logged-in-user",32),R("rightPaneChange",function(o){S(t);let r=g(3);return k(r.rightPaneIsActive(o))}),p()}if(e&2){let t=g(3);f("content",t.loggedInUserData)}}function Uz(e,i){if(e&1){let t=L();h(0,"div",33),R("click",function(){S(t);let o=g(3);return k(o.toggleMobileHeader())}),h(1,"label",34),Y(2,"async"),x(3,"span")(4,"span")(5,"span"),p()()}if(e&2){let t=g(3);d(),f("ngClass",j(3,Pz,me(2,1,t.menuOpen$)))}}function jz(e,i){if(e&1&&(h(0,"div",29),Y(1,"async"),x(2,"app-header-mobile",35),h(3,"div",36),x(4,"fab-button",37)(5,"fab-button",38),p()()),e&2){let t=g(3);f("hidden",me(1,3,t.menuOpen$)===!1),d(4),f("button",t.registerButton),d(),f("button",t.loginButton)}}function Wz(e,i){if(e&1&&(h(0,"div",6)(1,"div",23),y(2,zz,2,1,"a",8),h(3,"div",24),y(4,Bz,1,2,"fab-site-search",25),y(5,Hz,2,1,"div",26),Y
1682(6,"async"),y(7,Gz,1,1,"fab-logged-in-user",27),y(8,Uz,6,5,"div",28),p()(),y(9,jz,6,5,"div",29),p()),e&2){let t,n=g().let,o=g();f("ngClass",j(9,Dz,o.isClient)),d(2),w(n?-1:2),d(2),w(o.hideSearch()?-1:4),d(),w((t=me(6,7,o.enableBasket&&o.basketCountChanged$))?5:-1,t),d(2),w(n&&o.isClient?7:-1),d(),w(n?-1:8),d(),w(!n&&o.isClient?9:-1)}}function $z(e,i){e&1&&x(0,"fab-quick-links-bar")}function qz(e,i){if(e&1&&(h(0,"nav",4,0),y(2,Vz,8,11,"div",5),y(3,Wz,10,11,"div",6),y(4,$z,1,0,"fab-quick-links-bar"),Y(5,"async"),p()),e&2){let t=i.let,n=g();d(2),w(n.showLargeHeader&&n.isClient?2:-1),d(),w(!n.showLargeHeader&&n.isClient?3:-1),d(),w(!t&&!me(5,3,n.menuOpen$)?4:-1)}}var Yz=e=>({"quote-block-component-left":e});function Kz(e,i){if(e&1&&x(0,"i",3),e&2){let t=g(2);f("tooltip",t.content.toolTip)("positionInput","left")}}function Qz(e,i){if(e&1&&(h(0,"div",1)(1,"div",2),y(2,Kz,1,2,"i",3),p(),h(3,"div",4)(4,"div",5),x(5,"div",6)(6,"div",7)(7,"div",8),p(),Tt(8),p()()),e&2){let t=g();ot("background-image",t.content.background?t.getSanitizer(t.content.background):"none"),f("ngClass",j(6,Yz,t.content.left)),d(2),w(t.content.toolTip?2:-1),d(4),f("innerHTML",t.content.content,te),d(),f("innerHTML",t.content.signature,te)}}var Zz=(e,i,t,n)=>({title:e,body:i,link:t,callback:n});function Jz(e,i){if(e&1){let t=L();h(0,"div",5)(1,"a",9),R("click",function(){S(t);let o=g();return k(o.toggleVideo(!0))}),h(2,"span"),b(3),p(),x(4,"i",10),p()()}if(e&2){let t=g();d(3),A(t.content.videoLinkText)}}function Xz(e,i){if(e&1){let t=L();h(0,"div",11),R("click",function(){S(t);let o=g();return k(o.toggleVideo(!1))}),h(1,"i",12),R("click",function(){S(t);let o=g();return k(o.toggleVideo(!1))}),p(),h(2,"div"),x(3,"fab-video",13),p()()}if(e&2){let t=g();d(3),f("config",j(1,my,t.content.videoId))}}function eB(e,i){if(e&1&&x(0,"fab-journey-card",14),e&2){let t=g().$implicit,n=g();f("content",Mu(1,Zz,t.heroCardTitle,t.heroCardStrapline,t.heroCardTargetUrl,n.gtmPush.bind(n,t)))}}function tB(e,i){if(e&1&&(h(0,"div"),y(1,eB,1,6,"fab-journey-card",14),p()),e&2){let t=i.$implicit;d(),w(t.heroCardTitle?1:-1)}}var iB=["locationSearchDistance"],nB=["locationSearchSelectContainer"],oB=e=>({"is-invalid":e});function rB(e,i){if(e&1){let t=L();h(0,"img",11),R("click",function(){S(t);let o=g();return k(o.getLocationSuggestion())}),p()}}function aB(e,i){if(e&1){let t=L();h(0,"img",12),R("click",function(){S(t);let o=g();return k(o.clearSearch())}),p()}}function sB(e,i){e&1&&(h(0,"span"),b(1,"Radius"),p())}function lB(e,i){if(e&1&&(h(0,"span"),b(1),p()),e&2){let t=g();d(),A(t.distanceModel.label)}}function cB(e,i){if(e&1){let t=L();h(0,"li",17),R("click",function(){let o=S(t).$implicit,r=g(3);return k(r.selectSuggestion(o))})("keydown",function(o){S(t);let r=g(3);return k(r.locationSuggestions(o))}),h(1,"span"),b(2),p()()}if(e&2){let t=i.$implicit,n=i.$index,o=g(3);Be("selected",o.suggestionIndex===n),f("value",t.description),d(2),A(t.description)}}function dB(e,i){if(e&1&&(h(0,"ul",13)(1,"li")(2,"strong"),b(3,"Your results"),p()(),Q(4,cB,3,4,"li",16,ne),p()),e&2){let t=g(2);d(4),Z(t.suggestions)}}function uB(e,i){if(e&1){let t=L();h(0,"li",18),R("click",function(){let o=S(t).$index,r=g(2);return k(r.selectDistance(o))})("keydown",function(){let o=S(t).$index,r=g(2);return k(r.selectDistance(o))}),b(1),p()}if(e&2){let t=i.$implicit,n=i.$index,o=g(2);Be("selected",o.distanceIndex===n),d(),q(" ",t.label," ")}}function pB(e,i){if(e&1&&(h(0,"div",10,1),y(2,dB,6,0,"ul",13),h(3,"ul",14,2),Q(5,uB,2,3,"li",15,ne),p()()),e&2){let t=g();d(2),w(t.suggestions&&t.suggestions.length?2:-1),d(3),Z(t.distances)}}var nu=(e,i)=>({"logged-in-nav__item__label--nest-open":e,"logged-in-nav__item__label--nest-closed":i});function hB(e,i){if(e&1){let t=L();h(0,"a",0)(1,"span"),b(2),p(),h(3,"fab-aat-icon",3),R("click",function(o){S(t);let r=g();return k(r.branch.items.length?r.toggleBranches(o,r.branch):null)}),p()()}if(e&2){let t=g();f("href",oe(t.branch.link),ee)("ngClass",He(6,nu,t.branch.items.length&&t.branchOpen==t.branch,t.branch.items.length&&t.branchOpen!=t.branch))("openInNewTab",!!t.branch.openInNewTab),d(2),q(" ",t.branch.label," "),d(),f("content",t.arrowIcon)}}function gB(e,i){if(e&1){let t=L();h(0,"a",1)(1,"span"),b(2),p(),h(3,"fab-aat-icon",3),R("click",function(o){S(t);let r=g();return k(r.branch.items.length?r.toggleBranches(o,r.branch):null)}),p()()}if(e&2){let t=g();
1682f("ngClass",He(5,nu,t.branch.items.length&&t.branchOpen==t.branch,t.branch.items.length&&t.branchOpen!=t.branch))("routerLink",j(8,tt,"/"+t.branch.link))("openInNewTab",!!t.branch.openInNewTab),d(2),q(" ",t.branch.label," "),d(),f("content",t.arrowIcon)}}function mB(e,i){if(e&1&&(h(0,"a",4)(1,"span"),b(2),p()()),e&2){let t=g().$implicit;f("href",oe(t.link),ee)("openInNewTab",!!t.openInNewTab),d(2),q(" ",t.label," ")}}function fB(e,i){if(e&1&&(b(0," /** * @TODO * - MAYBE open in new tab */ "),h(1,"a",5)(2,"span"),b(3),p()()),e&2){let t=g().$implicit;d(),f("routerLink",j(3,tt,"/"+t.link))("openInNewTab",!!t.openInNewTab),d(2),q(" ",t.label," ")}}function vB(e,i){if(e&1&&(h(0,"div"),y(1,mB,3,4,"a",4),y(2,fB,4,5),p()),e&2){let t=i.$implicit;d(),w(t.useRouterLink?-1:1),d(),w(t.useRouterLink?2:-1)}}function CB(e,i){if(e&1&&(h(0,"div",2),Q(1,vB,3,2,"div",null,ne),p()),e&2){let t=g();d(),Z(t.branch.items)}}var vy=e=>({"logged-in-nav__item__icon--selected":e});function bB(e,i){if(e&1){let t=L();h(0,"a",6),R("click",function(o){S(t);let r=g();return k(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),x(1,"fab-aat-icon",7),p()}if(e&2){let t=g();f("ngClass",j(4,vy,t.treeOpen==t.tree))("routerLink",j(6,tt,"/"+t.tree.link))("openInNewTab",!!t.tree.openInNewTab),d(),f("content",t.iconData)}}function _B(e,i){if(e&1){let t=L();h(0,"a",8),R("click",function(o){S(t);let r=g();return k(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),x(1,"fab-aat-icon",7),p()}if(e&2){let t=g();f("ngClass",j(4,vy,t.treeOpen==t.tree))("href",t.tree.link,ee)("openInNewTab",!!t.tree.openInNewTab),d(),f("content",t.iconData)}}function yB(e,i){if(e&1){let t=L();h(0,"a",9)(1,"span"),b(2),p(),h(3,"fab-aat-icon",11),R("click",function(o){S(t);let r=g(2);return k(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),p()()}if(e&2){let t=g(2);f("ngClass",He(5,nu,t.tree.items&&t.tree.items.length&&t.treeOpen==t.tree,t.tree.items&&t.tree.items.length&&t.treeOpen!=t.tree))("routerLink",j(8,tt,"/"+t.tree.link))("openInNewTab",!!t.tree.openInNewTab),d(2),A(t.tree.label),d(),f("content",t.arrowIcon)}}function wB(e,i){if(e&1){let t=L();h(0,"a",10)(1,"span"),b(2),p(),h(3,"fab-aat-icon",11),R("click",function(o){S(t);let r=g(2);return k(r.tree.items!=null&&r.tree.items.length?r.toggleTrees(o,r.tree):null)}),p()()}if(e&2){let t=g(2);f("ngClass",He(5,nu,t.tree.items&&t.tree.items.length&&t.treeOpen==t.tree,t.tree.items&&t.tree.items.length&&t.treeOpen!=t.tree))("href",t.tree.link,ee)("openInNewTab",!!t.tree.openInNewTab),d(2),A(t.tree.label),d(),f("content",t.arrowIcon)}}function xB(e,i){if(e&1&&y(0,yB,4,10,"a",9)(1,wB,4,8,"a",10),e&2){let t=g();w(t.tree.useRouterLink?0:1)}}function SB(e,i){if(e&1&&x(0,"fab-logged-in-nav-sub-list",12),e&2){let t=i.$implicit;f("branch",t)}}function kB(e,i){if(e&1&&(h(0,"div",5),Q(1,SB,1,1,"fab-logged-in-nav-sub-list",12,Om),p()),e&2){let t=g();d(),Z(t.tree.items)}}var EB=(e,i)=>({"left-nav-main":e,"left-nav-main--opened":i}),TB=e=>({"nav-control--closed":e}),IB=e=>({"logged-in-nav--nav-closed":e}),MB=e=>({"logged-in-nav__item logged-in-nav__item--link":!0,"logged-in-nav__item--active":e});function DB(e,i){if(e&1){let t=L();h(0,"div",14),R("click",function(){S(t);let o=g();return k(o.toggleNav())}),h(1,"label",15),x(2,"span")(3,"span")(4,"span"),p()()}}function PB(e,i){if(e&1&&(h(0,"div",16)(1,"span"),b(2),p()()),e&2){let t=g();ot("left",t.tooltip.left,"px")("top",t.tooltip.top,"px"),d(2),q(" ",t.tooltip.title," ")}}function RB(e,i){if(e&1&&(h(0,"a",7),x(1,"img",17),p()),e&2){let t=g();f("href",oe(t.content==null?null:t.content.homeLink),ee),d(),f("src",oe(t.content==null?null:t.content.homeLogo),ee)}}function FB(e,i){if(e&1&&(h(0,"a",8),x(1,"img",17),p()),e&2){let t=g();f("routerLink",j(3,tt,"/"+(t.content==null?null:t.content.homeLink))),d(),f("src",oe(t.content==null?null:t.content.homeLogo),ee)}}function AB(e,i){if(e&1){let t=L();h(0,"fab-logged-in-nav-link",18),R("mouseenter",function(o){let r=S(t).$implicit,a=g();return k(a.outputSetHoveredSection(o,r.section,r.label))})("mouseleave",function(){S(t);let o=g();return k(o.outputUnsetHoveredSection())})("outputNavClosed",function(){S(t);let o=g();return k(o.outputNavClosed())}),p()}if(e&2){let t=i.$implicit,n=g();f("ngClass",j(4,MB,t.section==n.currentSection||t.section==n.hoveredSection))("tree",t)("navClosed",n.navClosed)("openInNewTab",!!t.openInNewTab)}}function OB(e,i){if(e&1&&(h(0,"div",13)(1,"a",19),x(2,"i",20),p(),h(3,"div",21)(4,"a",22),b(5),p()()()),e&2){let t=g();d(),f("href",oe(t.content==null?null:t.content.externalLink),ee),d(3),f("href",oe(t.content==null?null:t.content.externalLink),ee),d(),A(t.content==null?null:t.content.externalLabel)}}function LB(e,i){if(e&1&&(h(0,"div",13)(1,"a",23),x(2,"i",20),p(),h(3,"div",21)(4,"a",24),b(5),p()()()),e&2){let t=g();d(),f("routerLink",j(3,tt,"/"+(t.content==null?null:t.content.externalLink))),d(3),f("routerLink",j(5,tt,"/"+(t.content==null?null:t.content.externalLink))),d(),A(t.content==null?null:t.content.externalLabel)}}var NB='[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.chevron[_ngcontent-%COMP%]{width:50px;height:40px;position:fixed;z-index:2000;justify-content:center;display:flex}.nav-control[_ngcontent-%COMP%]{width:26px;height:61px;top:0;left:234px;position:fixed;z-index:2000;transition:all .3s ease-in-out;cursor:pointer}.nav-control[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);transform-origin:center center;width:8px;height:8px;border:2px solid #fff;border-top:none;border-right:none;transition:all .3s ease-in-out}.nav-control--closed[_ngcontent-%COMP%]{left:75px}.nav-control--closed[_ngcontent-%COMP%]:before{border-color:#000;transform:translate(-50%,-50%) rotate(225deg)}.nav-tooltip[_ngcontent-%COMP%]{position:fixed;top:0;transform:translateY(-50%);padding:10px;display:inline-block;background-color:#000;border-radius:1px;z-index:9999}.nav-tooltip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;color:#fff;font-size:14px;line-height:1em;padding:0;margin:0;height:14px;display:block}.nav-tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:0;transform-origin:center center;transform:translate(-3px,-50%) rotate(45deg);width:7px;height:7px;background-color:#000}.left-nav-hamburger[_ngcontent-%COMP%]{display:block;position:fixed;width:50px;height:50px;cursor:pointer;line-height:49px;color:#000;margin-left:10px;font-size:2em;z-index:1001}@media (min-width: 992px){.left-nav-hamburger[_ngcontent-%COMP%]{display:none}}.left-nav-main[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.left-nav-main[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out}}.left-nav-main--opened[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out} .logged-in-nav{overflow:visible;position:fixed;left:0;top:0;bottom:0;z-index:1001} .logged-in-nav__outer-container{height:100vh;overflow:auto;scrollbar-base-color:#31373e;scrollbar-face-color:#31373e;scrollbar-3dlight-color:#31373e;scrollbar-highlight-color:#31373e;scrollbar-track-color:#31373e;scrollbar-arrow-color:#31373e;scrollbar-shadow-color:#31373e;scrollbar-color:#31373e #31373e;scrollbar-width:none} .logged-in-nav__outer-container::-webkit-scrollbar{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-thumb{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-track{background-color:#31373e} .logged-in-nav__container{width:260px;background-color:#31373e;display:flex;flex-direction:column;position:relative} .logged-in-nav__container--main{min-height:calc(100vh - 60px);padding-top:60px;padding-bottom:50px} .logged-in-nav__container--top, .logged-in-nav__container--bottom{position:absolute;height:60px;left:0;z-index:9999} .logged-in-nav__container--top{top:0} .logged-in-nav__container--bottom{bottom:0} .logged-in-nav__container:before{content:"";width:68px;position:absolute;top:0;bottom:0;left:0;background-color:#1a2129;z-index:0} .logged-in-nav a{color:#fff;text-decoration:none;display:block;font-weight:100;box-sizing:content-box} .logged-in-nav__item{display:flex;z-index:1;overflow:visible} .logged-in-nav__item__icon{padding-top:16px;padding-left:11px;padding-right:21px;overflow:visible;background-color:#1a2129;text-decoration:none;width:35px;position:relative} .logged-in-nav__item__icona{background-color:#1a2129} .logged-in-nav__item__icon i{color:#fffc;font-size:24px;position:relative;transition:all .2s ease-in-out} .logged-in-nav__item__icon--logo{width:65px;margin-top:-10px;margin-left:-10px;padding-right:0} .logged-in-nav__item__label{color:#fff;width:100%} .logged-in-nav__item__label--link{color:#fff;font-weight:100} .logged-in-nav__item__label fab-aat-icon{display:none;position:absolute;top:50%;right:10px;transform:translateY(-50%) rotate(90deg);height:18px;width:18px} .logged-in-nav__item__label--nest-open fab-aat-icon{transform:translateY(-50%) rotate(-90deg)} .logged-in-nav__item__label a{opacity:.8;padding:14px 10px;position:relative} .logged-in-nav__item__label a:hover{opacity:1} .logged-in-nav__item__branch, .logged-in-nav__item__twig{padding-left:10px} .logged-in-nav__item__branch a:hover, .logged-in-nav__item__twig a:hover{background-color:#ffffff1a} .logged-in-nav__item--active .logged-in-nav__item__icon i{color:#fff} .logged-in-nav__item--active .logged-in-nav__item__icon i:after{height:48px} .logged-in-nav__item--bottom{position:absolute;bottom:0;left:0;width:100%;background-color:#31373e} .logged-in-nav__item--bottom a{padding-left:21px} .logged-in-nav a.logged-in-nav__item__label--nest-open, .logged-in-nav a.logged-in-nav__item__label--nest-closed{padding-right:40px} .logged-in-nav a.logged-in-nav__item__label--nest-open fab-aat-icon, .logged-in-nav a.logged-in-nav__item__label--nest-closed fab-aat-icon{display:block} .logged-in-nav--nav-closed .logged-in-nav__container{width:68px} .logged-in-nav--nav-closed .logged-in-nav__item__label{display:none}a.logged-in-nav__item__icon[_ngcontent-%COMP%]{background-color:#1a2129}.hamburger[_ngcontent-%COMP%]{position:fixed;order:3;margin-right:10px!important;display:flex;align-items:center;justify-content:center;padding:12px 10px 8px;flex-direction:column;z-index:1231}.hamburger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:28px;height:0px;border-top:2px solid #000;margin-bottom:.25rem}.hamburger[_ngcontent-%COMP%]:after{content:"menu";text-transform:capitalize;font-size:11px;font-weight:500;line-height:12px;margin-top:4px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:all ease .3s}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{transform:rotate(45deg);top:4px;position:relative;width:22px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){display:none}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg);top:-1px;position:relative;width:22px}';var VB=e=>({"primary-push--reverse-order":e}),zB=e=>({"expandable-content-hidden":e});function BB(e,i){if(e&1&&x(0,"i",6),e&2){let t=g();f("tooltip",t.content.imageToolTip)("positionInput",t.screenWidth<992?"left"
1682:"right")}}function HB(e,i){if(e&1&&x(0,"fab-button",12),e&2){let t=g(2);f("button",t.content.cta)}}function GB(e,i){if(e&1&&(h(0,"div",11),x(1,"div",8),y(2,HB,1,1,"fab-button",12),p()),e&2){let t=g();d(),f("innerHTML",t.content.content,te),d(),w(t.content.cta?2:-1)}}function UB(e,i){if(e&1){let t=L();h(0,"i",22),R("click",function(){S(t);let o=g().$implicit;return k(o.expanded=!o.expanded)}),p()}}function jB(e,i){if(e&1){let t=L();h(0,"i",23),R("click",function(){S(t);let o=g().$implicit;return k(o.expanded=!o.expanded)}),p()}}function WB(e,i){if(e&1&&x(0,"fab-button",12),e&2){let t=g().$implicit;f("button",t.cta)}}function $B(e,i){e&1&&x(0,"div",21)}function qB(e,i){if(e&1&&(h(0,"div",14)(1,"div",15),y(2,UB,1,0,"i",16),y(3,jB,1,0,"i",17),p(),x(4,"div",18),h(5,"div",19),x(6,"div",20),y(7,WB,1,1,"fab-button",12),p(),y(8,$B,1,0,"div",21),p()),e&2){let t=i.$implicit,n=i.$index,o=i.$count;d(2),w(t.expanded?2:-1),d(),w(t.expanded?-1:3),d(),f("innerHTML",t.title,te),d(),f("ngClass",j(7,zB,!t.expanded)),d(),f("innerHTML",t.content,te),d(),w(t.cta?7:-1),d(),w(n!==o-1?8:-1)}}function YB(e,i){if(e&1&&(h(0,"div",11)(1,"div",13),Q(2,qB,9,9,"div",14,ne),p()()),e&2){let t=g();d(2),Z(t.content.expandablePoints)}}function KB(e,i){if(e&1&&x(0,"fab-notification",1),e&2){let t=g();f("notification",t.notification)}}function QB(e,i){e&1&&Tt(0)}function ZB(e,i){if(e&1&&(h(0,"li"),b(1),p()),e&2){let t=i.$implicit;d(),A(t)}}function JB(e,i){if(e&1&&(h(0,"div",6)(1,"strong"),b(2,"Level"),p(),h(3,"ul"),Q(4,ZB,2,1,"li",null,ne),p()()),e&2){let t=g(3);d(4),Z(t.product.levels)}}function XB(e,i){if(e&1&&(h(0,"div",7)(1,"div",8)(2,"strong"),b(3,"Total qualification time (hours)"),p(),h(4,"div",9),x(5,"fab-aat-icon",10),p()(),b(6),Y(7,"number"),p()),e&2){let t=g(3);d(4),f("tooltip",t.qualHoursTooltip),d(),f("content",t.infoIconConfig),d(),q(" ",me(7,3,t.product.totalQualificationTime)," ")}}function e9(e,i){if(e&1&&(h(0,"div",7)(1,"strong"),b(2,"Number of assessments"),p(),x(3,"br"),b(4),Y(5,"number"),h(6,"small",11),b(7," ("),h(8,"a",12),b(9,"learn how AAT assessments work"),p(),b(10,") "),p()()),e&2){let t=g(3);d(4),q(" ",me(5,1,t.product.numberOfAssessments)," ")}}function t9(e,i){if(e&1&&(h(0,"div",7)(1,"strong"),b(2,"Total credits (Scotland only)"),p(),x(3,"br"),b(4),Y(5,"number"),p()),e&2){let t=g(3);d(4),q(" ",me(5,1,t.product.totalCredits)," ")}}function i9(e,i){if(e&1&&(h(0,"div",7)(1,"div",8)(2,"strong"),b(3,"Guided learning hours"),p(),h(4,"div",9),x(5,"fab-aat-icon",10),p()(),b(6),Y(7,"number"),p()),e&2){let t=g(3);d(4),f("tooltip",t.guidedLearningTooltip),d(),f("content",t.infoIconConfig),d(),q(" ",me(7,3,t.product.guidedLearningHours)," ")}}function n9(e,i){if(e&1&&(h(0,"div")(1,"div",6)(2,"strong"),b(3,"How long does it take?"),p(),h(4,"p"),b(5),p(),h(6,"p"),b(7,"(Depends on study method and course timetable)"),p()(),y(8,JB,6,0,"div",6),p(),h(9,"div"),y(10,XB,8,5,"div",7),y(11,e9,11,3,"div",7),y(12,t9,6,3,"div",7),y(13,i9,8,5,"div",7),p()),e&2){let t=g(2);d(5),A(t.product.duration),d(3),w(t.product.levels.length?8:-1),d(2),w(t.product.totalQualificationTime?10:-1),d(),w(t.product.numberOfAssessments?11:-1),d(),w(t.product.totalCredits?12:-1),d(),w(t.product.guidedLearningHours?13:-1)}}function o9(e,i){if(e&1&&x(0,"fab-product-card-small",5),e&2){let t=g(2);f("content",t.productCard)("basketItem",t.basketItem)}}function r9(e,i){if(e&1&&(h(0,"div",2)(1,"div",3)(2,"div",4),y(3,QB,1,0),y(4,n9,14,6),p(),y(5,o9,1,2,"fab-product-card-small",5),p()()),e&2){let t=g();d(3),w(t.product.duration?-1:3),d(),w(t.product.duration?4:-1),d(),w(t.productCard?5:-1)}}var a9=(e,i,t)=>({"progress-indicator__none":e,"progress-indicator__selected":i,"progress-indicator__done":t});function s9(e,i){if(e&1&&(h(0,"p",1),b(1),p()),e&2){let t=g();d(),q(" ",t.getCustomTitle()," ")}}function l9(e,i){if(e&1&&(h(0,"p",1),b(1),h(2,"b"),b(3),p()()),e&2){let t=g();d(),bi(" Step ",t.config.currentStep," of ",t.config.maxSteps,": "),d(2),A(t.config.stepTitle)}}function c9(e,i){if(e&1){let t=L();h(0,"span",5),R("click",function(){let o=S(t).$implicit,r=g();return k(r.onClick(o))}),p()}if(e&2){let t=i.$implicit,n=g();f("ngClass",$t(1,a9,t>n.config.currentStep,n.config.highlightCurrentStep&&t===n.config.currentStep,!n.config.highlightCurrentStep&&t===n.config.currentStep||t<n.config.currentStep))}}function d9(e,i){if(e&1&&(h(0,"h3"),b(1),p()),e&2){let t=g();d(),A(t.content.subtitle)}}function u9(e,i){if(e&1&&(h(0,"div",2),b(1),p()),e&2){let t=g();d(),A(t.content.level)}}var p9=e=>({mobile:e}),h9=(e,i,t)=>({green:e,red:i,amber:t}),g9=e=>({green:e}),m9=(e,i)=>({correct:e,error:i}),f9=(e,i)=>({"icon icon-success":e,"icon icon-cross-small":i}
1682);function v9(e,i){if(e&1&&(h(0,"div",1),x(1,"fab-progress-indicator",3),p()),e&2){let t=g();d(),f("config",t.stepsConfig)}}function C9(e,i){if(e&1&&(h(0,"div")(1,"div")(2,"label",13),b(3),x(4,"input",14)(5,"span",15),p()()()),e&2){let t=i.$implicit,n=i.$index,o=g(3);d(3),q("",t.answerField," "),d(),f("name",oe(o.content.quizGroups[o.activeSI].quizQuestions[o.activeQI].questionNumber))("value",oe(n))("formControlName",oe(o.content.quizGroups[o.activeSI].quizQuestions[o.activeQI].questionNumber))("checked",o.activeFormControl.value==n)}}function b9(e,i){if(e&1&&(h(0,"div",8),Q(1,C9,6,8,"div",null,ne),p()),e&2){let t=g(2);d(),Z(t.content.quizGroups[t.activeSI].quizQuestions[t.activeQI].answers)}}function _9(e,i){if(e&1){let t=L();h(0,"div")(1,"div",16)(2,"input",17),R("change",function(o){let r=S(t).$index,a=g(3);return k(a.onCheckboxChange(o,r))}),p(),h(3,"label",18)(4,"p"),b(5),p()()()()}if(e&2){let t=i.$implicit,n=i.$index,o=g(3);d(2),f("name",oe(t.answerField))("id",oe(t.answerField))("value",oe(n))("checked",o.isChecked(n)),d(),f("for",oe(t.answerField)),d(2),A(t.answerField)}}function y9(e,i){if(e&1&&(h(0,"div",9),Q(1,_9,6,10,"div",null,ne),p()),e&2){let t=g(2);d(),Z(t.content.quizGroups[t.activeSI].quizQuestions[t.activeQI].answers)}}function w9(e,i){if(e&1&&(h(0,"p",10),b(1),p()),e&2){let t=g(2);d(),q(" ",t.activeFormControl.errors==null?null:t.activeFormControl.errors.checkboxerror.requiredValue," ")}}function x9(e,i){if(e&1){let t=L();h(0,"a",19),R("click",function(){S(t);let o=g(2);return k(o.previousStep())}),b(1,"Go back"),p()}}function S9(e,i){if(e&1&&(h(0,"div",2)(1,"h4")(2,"strong"),b(3),p()(),h(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"p"),b(9),p(),h(10,"p")(11,"strong"),b(12),p()(),y(13,b9,3,0,"div",8)(14,y9,3,0,"div",9),y(15,w9,2,1,"p",10),p()()()(),h(16,"div",11)(17,"div"),y(18,x9,2,0,"a"),p(),x(19,"fab-button",12),p()()),e&2){let t=g();d(3),q(" Section: ",t.content.quizGroups[t.activeSI].groupTitle," "),d(2),f("formGroup",t.form),d(),f("formGroupName",oe(t.content.quizGroups[t.activeSI].groupTitle)),d(3),q(" ",t.content.quizGroups[t.activeSI].quizQuestions[t.activeQI].questionText," "),d(3),A(t.content.quizGroups[t.activeSI].quizQuestions[t.activeQI].questionInstructions),d(),w(t.countCorrectAnswers(t.content.quizGroups[t.activeSI].quizQuestions[t.activeQI].answers,"yes")<2?13:14),d(2),w(t.activeFormControl.errors&&t.showError?15:-1),d(3),w(t.activeQI>0||t.activeSI>0?18:-1),d(),f("button",t.nextButton)}}function k9(e,i){if(e&1&&(h(0,"li",43),b(1),x(2,"i",44),p()),e&2){let t=i.$implicit;f("ngClass",He(3,m9,t.answerIsCorrect=="yes",t.answerIsCorrect=="no")),d(),q(" ",t.answerField," "),d(),f("ngClass",He(6,f9,t.answerIsCorrect=="yes",t.answerIsCorrect=="no"))}}function E9(e,i){if(e&1&&(h(0,"div")(1,"p")(2,"strong"),b(3,"Your answers:"),p()(),h(4,"ul"),Q(5,k9,3,9,"li",43,ne),p()()),e&2){let t=g().$implicit,n=g().$implicit;d(5),Z(n.value.questions[t.questionNumber].answers)}}function T9(e,i){if(e&1&&(h(0,"div"),b(1),p()),e&2){let t=g().$implicit;d(),q(" ",t.answerField," ")}}function I9(e,i){if(e&1&&(h(0,"li"),y(1,T9,2,1,"div"),p()),e&2){let t=i.$implicit;d(),w(t.answerIsCorrect==="yes"?1:-1)}}function M9(e,i){if(e&1&&(h(0,"div",38)(1,"div",39)(2,"p",40)(3,"strong"),b(4),p(),b(5),p(),h(6,"div",41),b(7),p()(),h(8,"div",42),y(9,E9,7,0,"div"),h(10,"div")(11,"p")(12,"strong"),b(13,"Correct answers:"),p()(),h(14,"ul"),Q(15,I9,2,1,"li",null,ne),Y(17,"isCorrect"),p()()()()),e&2){let t=i.$implicit,n=g().$implicit;d(4),q("Question ",t.questionNumber,": "),d(),q("",t.questionText," "),d(),f("ngClass",j(7,g9,n.value.questions[t.questionNumber].isCorrect)),d(),q(" ",n.value.questions[t.questionNumber].isCorrect?"correct":"incorrect"," "),d(2),w(n.value.questions[t.questionNumber].isCorrect?-1:9),d(6),Z(me(17,5,t.answers))}}function D9(e,i){if(e&1){let t=L();h(0,"div",21)(1,"fab-accordion",32),R("onToggle",function(o){let r=S(t),a=r.$implicit,s=r.$index,l=g(2);return k(l.onToogleAccordion(o,s,a.key))}),h(2,"div",33)(3,"div",34),x(4,"span",35),p(),h(5,"div",36)(6,"h4"),b(7),p()()(),h(8,"div",37),Q(9,M9,18,9,"div",38,ne),p()()()}if(e&2){let t=i.$implicit,n=i.$index,o=g(2);d(),f("iconArrowLeft",o.iconArrowLeft)("isOpen",o.accordionsOpen[n]),d(),f("ngClass",j(5,p9,!o.iconArrowLeft)),d(2),f("ngClass",$t(7,h9,t.value.colour==="Green",t.value.colour==="Red",t.value.colour==="Amber")),d(3),A(t.key),d(2),Z(o.content.quizGroups[t.value.index].quizQuestions)}}function P9(e,i){if(e&1&&x(0,"p",20),e&2){let t=g(2);f("innerHTML",t.results.overallResult.quizResultText,te)}}function R9(e,i){if(e&1&&x(0,"fab-hubspot-form",26),e&2){let t=g(2);f("portalId",t.content.hubspotForm.portalId)("formId",t.content.hubspotForm.guid)("formMapping",t.hubspotMapping)}}function F9(e,i){if(e&1){let t=L();h(0,"div",2)(1,"h2"),b(2,"Results overview"),p(),x(3,"div",20),Q(4,D9,11,11,"div",21,ne),Y(6,"keyvalue"),x(7,"br")(8,"br"),h(9,"h2"),b(10,"Recommended qualifications"),p(),h(11,"p"),b(12,"Based on your answers, we\u2019re able to re
1682commend the following as ideal starting qualification(s) for you:"),p(),h(13,"ul")(14,"fab-product-card-container",22),R("onSubmit",function(){S(t);let o=g();return k(o.hubspotFormSubmit())}),p()(),x(15,"br"),y(16,P9,1,1,"p",20),x(17,"br"),h(18,"div",23)(19,"div",24),x(20,"fab-button",12),p(),h(21,"div",25),x(22,"fab-button",12),p()(),y(23,R9,1,3,"fab-hubspot-form",26),x(24,"input",27)(25,"input",28)(26,"input",29)(27,"input",30)(28,"input",31),p()}if(e&2){let t=g();d(3),f("innerHTML",t.content.resultsIntroduction,te),d(),Z(Mt(6,11,t.results.sections,t.resultSectionOrder)),d(10),f("productNodeIds",t.results.overallResult.recommendedQuals),d(2),w(t.results.overallResult.quizResultText?16:-1),d(4),f("button",t.printButton),d(2),f("button",t.restartButton),d(),w(t.content.hubspotForm?23:-1),d(),f("value",t.results.sections["Double entry bookkeeping"].colour),d(),f("value",t.results.sections["Bookkeeping controls"].colour),d(),f("value",t.results.sections.Costing.colour),d(),f("value",t.results.sections["Business environment"].colour),d(),f("value",t.results.overallResult.recommendedQuals[0]+"-"+t.results.overallResult.recommendedQuals[1])}}var A9=(e,i)=>({"icon-arrow-down":e,"icon-arrow-up":i}),O9=(e,i)=>({label:e,id:i}),L9=(e,i,t)=>({id:e,value:i,label:t});function N9(e,i){if(e&1){let t=L();h(0,"div",4),R("click",function(){S(t);let o=g();return k(o.closeOverlay())}),x(1,"i",5),p()}}function V9(e,i){if(e&1&&(h(0,"div",8),x(1,"i",10),p()),e&2){let t=g().$implicit;d(),f("tooltip",t.tooltip)("positionInput",t.tooltipPosition)}}function z9(e,i){e&1&&x(0,"div")}function B9(e,i){if(e&1){let t=L();h(0,"div",11)(1,"div",12)(2,"fab-input-checkbox",13),R("onChange",function(o){let r=S(t).$index,a=g(2).$index,s=g();return k(s.applyFilter(o,a,r))}),p()()()}if(e&2){let t=i.$implicit,n=i.$index,o=g(2),r=o.$implicit,a=o.$index,s=g();f("ngClass",j(3,fy,r.accordionClosed)),d(2),f("content",He(5,O9,s.generateLabel(a,n),t.id))("isChecked",t.prechecked)}}function H9(e,i){if(e&1&&(h(0,"div"),Q(1,B9,3,8,"div",11,ne),p()),e&2){let t=g().$implicit;d(),Z(t.options)}}function G9(e,i){if(e&1){let t=L();h(0,"div",11)(1,"div",14)(2,"fab-radio",15),R("selectEvent",function(o){let r=S(t).$index,a=g(2).$index,s=g();return k(s.applyFilter(o,a,r))}),p()()()}if(e&2){let t=i.$implicit,n=i.$index,o=g(2),r=o.$implicit,a=o.$index,s=g();f("ngClass",j(3,fy,r.accordionClosed)),d(2),f("content",$t(5,L9,t.id,t.filterString,s.generateLabel(a,n)))("checkedVal",t.prechecked)}}function U9(e,i){if(e&1&&(h(0,"div"),Q(1,G9,3,9,"div",11,ne),p()),e&2){let t=g().$implicit;d(),Z(t.options)}}function j9(e,i){if(e&1){let t=L();h(0,"div"),x(1,"hr"),h(2,"div",6),R("click",function(){let o=S(t).$index,r=g();return k(r.accordionInteraction(o))}),h(3,"div",7)(4,"p")(5,"strong"),b(6),p()()(),y(7,V9,2,2,"div",8)(8,z9,1,0,"div"),x(9,"i",9),p(),h(10,"div"),y(11,H9,3,0,"div"),y(12,U9,3,0,"div"),p()()}if(e&2){let t=i.$implicit;d(6),q(" ",t.accordionTitle," "),d(),w(t.tooltip?7:8),d(2),f("ngClass",He(6,A9,t.accordionClosed,!t.accordionClosed)),d(),f("@closeOpenAccordion",!!t.accordionClosed),d(),w(!t.config||t.config==="checkbox"?11:-1),d(),w(t.config==="radio"?12:-1)}}function W9(e,i){if(e&1&&(h(0,"div",3),x(1,"fab-button",16),p()),e&2){let t=g();d(),f("button",t.mobileFilterButton)}}var $9=["socialFacebook"];function q9(e,i){if(e&1&&(h(0,"div",0),x(1,"iframe",1),p()),e&2){let t=g();d(),f("src",t.iframeSrc(),wu)}}var Y9=e=>({"standard-push--reverse-order":e});function K9(e,i){if(e&1&&(h(0,"div",3),x(1,"i",6),p()),e&2){let t=g();d(),f("tooltip",t.content.imageToolTip)("positionInput",t.content.imagePosition==="left"?"right":"left")}}var Q9=e=>({"steps-tool__info-box__perm--active":e}),ou=e=>({"steps-tool__link--selected":e});function Z9(e,i){if(e&1){let t=L();h(0,"a",16),R("mouseenter",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))})("click",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))}),h(1,"h4")(2,"strong"),b(3),p(),x(4,"i",17),p(),x(5,"p",3),p()}if(e&2){let t=g(),n=t.$implicit,o=t.$index,r=g();f("href",oe(n.link),ee)("target",oe(n.openInNewTab?"_blank":"_self"))("ngClass",j(8,ou,n==r.selected)),d(3),bi("",o+r.stepSplit," ",n.title),d(2),f("innerHTML",n.content,te)}}function J9(e,i){if(e&1){let t=L();h(0,"a",18),R("mouseenter",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))})("click",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))}),h(1,"h4")(2,"strong"),b(3),p(),x(4,"i",17),p(),x(5,"p",3),p()}if(e&2){let t=g(),n=t.$implicit,o=t.$index,r=g();f("ngClass",j(4,ou,n==r.selected)),d(3),bi("",o+r.stepSplit," ",n.title),d(2),f("innerHTML",n.content,te)}}function X9(e,i){if(e&1&&(h(0,"div",4),y(1,Z9,6,10,"a",14),y(2,J9,6,6,"a",15),p()),e&2){let t=i.$implicit;d(),w(t.link?1:-1),d(),w(t.link?-1:2)}}function eH(e,i){if(e&1&&(h(0,"div",6),x(1,"i",19),p()),e&2){let t=g();d(),f("tooltip",t.content.imageToolTip)("positionInput","left")}}function tH(e,i){if(e&1){let t=L();h(0,"a",16),R("mouseenter",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))})("click",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))}),h(1,"h4")(2,"strong"),b(3),p(),x(4,"i",17),p(),x(5,"p",3),p()}if(e&2){let t=g(),n=t.$implicit,o=t.$index,r=g();f("href",oe(n.link),ee)("target",oe(n.openInNewTab?"_blank":"_self"))("ngClass",j(8,ou,n==r.selected)),d(3),bi("",o+1+r.stepSplit," ",n.title),d(2),f("innerHTML",n.content,te)}}function iH(e,i){if(e&1){let t=L();h(0,"a",18),R("mouseenter",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))})("click",function(){S(t);let o=g().$implicit,r=g();return k(r.isMobile?null:r.selectListItem(o))}),h(1,"h4")(2,"strong"),b(3),p(),x(4,"i",17),p(),x(5,"p",3),p()}if(e&2){let t=g(),n=t.$implicit,o=t.$index,r=g();f("ngClass",j(4,ou,n==r.selected)),d(3),bi("",o+1+r.stepSplit," ",n.title),d(2),f("innerHTML",n.content,te)}}function nH(e,i){if(e&1&&(h(0,"div",20),y(1,tH,6,10,"a",14),y(2,iH,6,6,"a",15),p()),e&2){let t=i.$implicit,n=g();ot("width",n.containerWidth,"px"),d(),w(t.link?1:-1),d(),w(t.link?-1:2)}}function oH(e,i){if(e&1){let t=L();h(0,"li")(1,"a",1),R("click",function(){let o=S(t).$implicit,r=g();return k(r.scroll(o.link))}),b(2),p()()}if(e&2){let t=i.$implicit;d(),ie(Wt("table-of-contents__item table-of-contents__item-",t.type)),d(),q(" ",t.label," ")}}var rH=(e,i)=>({"width.px":e,margin:i});function aH(e,i){if(e&1&&(h(0,"caption",2),b(1),p()),e&2){let t=g();d(),q(" ",t.caption," ")}}function sH(e,i){if(e&1&&(h(0,"th",3),b(1),p()),e&2){let t=i.$implicit;d(),A(t.headerName)}}function lH(e,i){if(e&1&&x(0,"td",5),e&2){let t=i.$implicit,n=g().$implicit;f("innerHtml",n[t],te)}
1682}function cH(e,i){if(e&1&&(h(0,"tr",4),Q(1,lH,1,1,"td",5,ne),p()),e&2){let t=g();d(),Z(t.keys)}}var dH=["tabs"],uH=e=>({"tabs-block--reverse-order":e}),Cy=e=>({"tabs-block__tabs--arrow-hidden":e}),pH=e=>({"tab-selected":e});function hH(e,i){if(e&1){let t=L();h(0,"div",4)(1,"i",6),R("click",function(){S(t);let o=g(2);return k(o.scrollTabs("left"))})("keydown.Enter",function(){S(t);let o=g(2);return k(o.scrollTabs("left"))}),p()()}if(e&2){let t=g(2);f("ngClass",j(1,Cy,t.hideLeftArrow))}}function gH(e,i){if(e&1){let t=L();h(0,"div",7),R("click",function(){let o=S(t).$index,r=g(2);return k(r.tabClick(o))})("keydown.Enter",function(){let o=S(t).$index,r=g(2);return k(r.tabClick(o))}),p()}if(e&2){let t=i.$implicit,n=i.$index,o=g(2);f("innerHTML",t.name,te)("ngClass",j(2,pH,o.index===n))}}function mH(e,i){if(e&1){let t=L();h(0,"div",4)(1,"i",8),R("click",function(){S(t);let o=g(2);return k(o.scrollTabs("right"))})("keydown.Enter",function(){S(t);let o=g(2);return k(o.scrollTabs("right"))}),p()()}if(e&2){let t=g(2);f("ngClass",j(1,Cy,t.hideRightArrow))}}function fH(e,i){if(e&1&&(h(0,"div",14),x(1,"i",15),p()),e&2){let t=g(2).$implicit;d(),f("tooltip",t.toolTip)("positionInput","left")}}function vH(e,i){if(e&1&&(h(0,"div",9)(1,"div",10)(2,"h4"),x(3,"strong",11),p(),x(4,"div",11),p(),h(5,"div",12),x(6,"div",13),y(7,fH,2,2,"div",14),p()()),e&2){let t=g().$implicit;d(3),f("innerHTML",t.heading,te),d(),f("innerHTML",t.content,te),d(2),ot("background-image","url("+t.background+")"),d(),w(t.toolTip?7:-1)}}function CH(e,i){if(e&1&&(h(0,"div"),y(1,vH,8,5,"div",9),p()),e&2){let t,n=i.$index,o=g(3);d(),w((t=o.index)===n?1:-1)}}function bH(e,i){if(e&1&&(h(0,"div"),Q(1,CH,2,1,"div",null,ne),p()),e&2){let t=g(2);d(),Z(t.content.tabData)}}function _H(e,i){if(e&1){let t=L();h(0,"div",1),x(1,"div",2),h(2,"div",3,0),R("scroll",function(){S(t);let o=g();return k(o.onScroll())}),y(4,hH,2,3,"div",4),Q(5,gH,1,4,"div",5,ne),y(7,mH,2,3,"div",4),p(),y(8,bH,3,0,"div"),p()}if(e&2){let t=g();f("ngClass",j(7,uH,t.content.imagePosition==="right")),d(),f("innerHTML",t.content.title,te),d(),f("id",Wt("tabs-",t.id)),d(2),w(t.isScrollable?4:-1),d(),Z(t.content.tabData),d(2),w(t.isScrollable?7:-1),d(),w(t.content.hideContent?-1:8)}}function yH(e,i){if(e&1&&x(0,"div",2),e&2){let t=g();f("innerHTML",t.content.title1,te)}}function wH(e,i){if(e&1&&x(0,"div",2),e&2){let t=g();f("innerHTML",t.content.text1,te)}}function xH(e,i){if(e&1&&x(0,"div",2),e&2){let t=g();f("innerHTML",t.content.title2,te)}}function SH(e,i){if(e&1&&x(0,"div",2),e&2){let t=g();f("innerHTML",t.content.contact,te)}}function kH(e,i){if(e&1&&x(0,"div",2),e&2){let t=g();f("innerHTML",t.content.text2,te)}}function EH(e,i){if(e&1&&x(0,"fab-button",10),e&2){let t=g();f("button",t.secondaryButtonInterface)}}function TH(e,i){if(e&1&&x(0,"fab-button",10),e&2){let t=g();f("button",t.primaryButtonInterface)}}var IH=(e,i,t,n,o,r)=>({"user-logged-in":e,"nav-opened":i,"nav-collapsed":t,"no-left-nav":n,"show-left-nav":o,"right-pane-opened":r});function MH(e,i){if(e&1){let t=L();h(0,"fab-logged-in-nav",8),R("navIsOpened",function(o){S(t);let r=g();return k(r.onNavIsOpened(o))}),p()}if(e&2){let t=g();f("content",t.khLeftNavData)}}function DH(e,i){if(e&1&&x(0,"fab-header",2),e&2){let t=g();f("fab-gtm",t.layoutSetup.layoutProperties.GTM_ID)}}function PH(e,i){if(e&1&&x(0,"fab-notification",7),e&2){let t=i.$implicit;f("isNotificationOpen",!0)("notification",t)}}function RH(e,i){if(e&1&&x(0,"fab-footer",1),e&2){let t=g();f("content",t.footerContent)}}var ba=(()=>{let i=class i{constructor(n,o){this.platformId=n,this.ssrCookieService=o,this._cache=new Map,this.isBrowser=Ee(this.platformId),this.loadCacheFromLocalStorage()}loadCacheFromLocalStorage(){if(!this.isBrowser)return;let n=localStorage.getItem("cache");if(n)try{let o=JSON.parse(n);Object.keys(o).forEach(r=>{let a=o[r];this._cache.set(r,a)})}catch(o){console.error("Error parsing cache from localStorage",o)}}saveCacheToLocalStorage(){if(!this.isBrowser)return;let n={};this._cache.forEach((o,r)=>{n[r]=o});try{localStorage.setItem("cache",JSON.stringify(n))}catch(o){console.error("Error saving cache to localStorage",o)}}get(n){let o=this._cache.get(n);if(o){if(o.expiry&&Date.now()>
1682o.expiry){this._cache.delete(n),this.saveCacheToLocalStorage();return}return o.value}}set(n,o,r=300,a=!0){if(r>0){let s=Date.now()+r*1e3;this._cache.set(n,{expiry:s,value:o,clearOnLogout:a})}else this._cache.set(n,{value:o,clearOnLogout:a});return this.saveCacheToLocalStorage(),o}cacheObservable(n,o,r,a){let s=this.get(n);return s?W(s):o.pipe(xt(l=>{this.set(n,l,r,a)}))}clear(n=!1){n?this._cache.clear():this._cache.forEach((o,r)=>{o.clearOnLogout&&this._cache.delete(r)}),this.saveCacheToLocalStorage()}invalidate(n){typeof n=="string"?this._cache.delete(n):typeof n=="function"&&this._cache.forEach((o,r)=>{n(r,o)&&this._cache.delete(r)}),this.saveCacheToLocalStorage()}getCookieFromCache(n){return this.ssrCookieService.get(n)}isCookieInCache(n){return this.ssrCookieService.check(n)}setCookieInCache(n,o){this.isBrowser&&(this.isCookieInCache(n)&&(console.log(`${n} cookie in cache - deleting`),this.ssrCookieService.delete(n)),window.location.hostname==="localhost"?this.ssrCookieService.set(n,o,{expires:0,path:"/",domain:"localhost",secure:!1,sameSite:"Lax"}):this.ssrCookieService.set(n,o,{expires:0,path:"/"}))}};i.\u0275fac=function(o){return new(o||i)(U(De),U(ir))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Eo=(()=>{let i=class i{constructor(n,o,r,a){this.authConfig=n,this.document=o,this.cacheService=a,this.isPasswordReset=!1,this.userResetPassRequired=!1,this.authenticationChanged=new Fe(!1),this.authenticationChanged$=this.authenticationChanged.asObservable(),this.authenticationErrored=new _t,this.authenticationErrored$=this.authenticationErrored.asObservable(),this.userLoggedOut=new Un,this.userLoggedOut$=this.userLoggedOut.asObservable(),this.otherDashboardGroupsAnnounced=new Un,this.otherDashboardGroupsAnnounced$=this.otherDashboardGroupsAnnounced.asObservable(),this.newDashboardGroupSet=new Un,this.newDashboardGroupSet$=this.newDashboardGroupSet.asObservable(),this.logoutObs=new _t,this.logoutInitiated$=this.logoutObs.asObservable(),this.http=F(kt),this.jwtHelper=F(Ur),this.ssrCookieService=F(ir),this.isRefreshing=new Fe(!1),this.requiresMfaSetup=()=>{let s=this.jwtHelper.decodeToken(this.ssrCookieService.get("id_token"));return!!(s?.["cognito:groups"]?.some(l=>this.authConfig.mfaGroups&&this.authConfig.mfaGroups.includes(l))&&!s.PreferredMfaSetting)},this.loggedIn()}login(n,o,r,a=!0){let s={username:n,password:o,clientId:this.authConfig.clientIdKey};return r&&r!=""&&(r.split(":")[0]==="user"?s.verification_code=r.split(":")[1]:s.email_confirmation_code=r.split(":")[1]),this.http.post(this.authConfig.apiBaseUrl+"/auth/authenticate",JSON.stringify(s)).pipe(G(l=>l.ChallengeName?l:(this.storeResponse(l,a),this.authenticationChanged.next(!0),this.jwtHelper.decodeToken(l.IdToken))),ye(l=>(this.authenticationChanged.next(!1),this.authenticationErrored.next(l),this.handleError(l))))}refresh(){return this.http.post(this.authConfig.apiBaseUrl+"/auth/refresh",JSON.stringify({token:this.ssrCookieService.get("refresh_token")??"",clientId:this.authConfig.clientIdKey})).pipe(G(n=>(this.storeResponse(n,!1),this.authenticationChanged.next(!0),!0)),ye(n=>(this.deleteAuthTokens(),this.authenticationChanged.next(!1),this.authenticationErrored.next(n),this.handleError(n))))}forgotPasswordSendEmail(n){return this.userEmail=n,this.http.post(this.authConfig.apiBaseUrl+"/auth/forgot-password",{clientId:this.authConfig.clientIdKey,username:n})}verifyCodeSendEmail(n,o){return this.http.post(this.authConfig.apiBaseUrl+"/auth/send-verification-code",{clientId:this.authConfig.clientIdKey,username:n,password:o})}confirmationCodeSendEmail(n){return this.http.post(this.authConfig.apiBaseUrl+"/auth/send-confirmation-code",{clientId:this.authConfig.clientIdKey,username:n})}setDashboardGroup(n){this.newDashboardGroupSet.next(n),localStorage.setItem("dashboard-scope",n),this.announceNewAlternativeDashboardGroups(n)}clearDashboardGroup(){localStorage.setItem("dashboard-scope","")}getDashboardGroup(){return localStorage.getItem("dashboard-scope")}announceNewAlternativeDashboardGroups(n){let o=this.availableDashboardGroups.filter(r=>r!==n);this.otherDashboardGroupsAnnounced.next(o)}resetPassword(n,o,r){return this.http.post(this.authConfig.apiBaseUrl+"/auth/reset-password",{clientId:this.authConfig.clientIdKey,username:r,code:n,password:o})}changePassword(n,o,r){return this.http.post(this.authConfig.apiBaseUrl+"/auth/change-password",{clientId:this.authConfig.clientIdKey,username:o,password:n,old_password:r}).pipe(G(a=>
1682(this.storeResponse(a),this.authenticationChanged.next(!0),a)),ye(a=>(this.authenticationChanged.next(!1),this.authenticationErrored.next(a),this.handleError(a))))}changePasswordLoggedIn(n,o){return this.http.post(this.authConfig.apiBaseUrl+"/auth/user-change-password",{accessToken:this.ssrCookieService.get("access_token"),previousPassword:n,proposedPassword:o}).pipe(G(r=>r),ye(r=>W(r)))}storeResponse(n,o=!0){let r=n,a=new Date;a.setMinutes(a.getMinutes()+59);let s=new Date;s.setDate(s.getDate()+29),this.ssrCookieService.set("access_token",r.AccessToken,{expires:a,path:"/",domain:this.configureDomain()}),this.ssrCookieService.set("id_token",r.IdToken,{expires:a,path:"/",domain:this.configureDomain()}),o&&r.RefreshToken&&this.ssrCookieService.set("refresh_token",r.RefreshToken,{expires:s,path:"/",domain:this.configureDomain()})}handleError(n){return this.authenticationChanged.next(!1),yt(n)}logout(){return this.getCurrentUser().pipe(Ot(1),it(n=>this.http.post(this.authConfig.apiBaseUrl+"/auth/logout",{access_token:this.ssrCookieService.get("access_token"),clientId:this.authConfig.clientIdKey,username:n["cognito:username"]}).pipe(Lo(()=>{sessionStorage.clear(),this.deleteAuthTokens(),this.cacheService.clear(),this.authenticationChanged.next(!1),this.userLoggedOut.next(!0)}))))}deleteAuthTokens(){["access_token","id_token","refresh_token"].forEach(o=>{this.ssrCookieService.delete(o,"/"),this.ssrCookieService.delete(o,"/",this.configureDomain())})}broadcastLogoutInitiated(n){this.logoutObs.next(n)}isLoggedIn(){return this.authenticationChanged.getValue()}loggedIn(){let n=this.ssrCookieService.get("access_token");!n||n==="undefined"||n==="null"?this.authenticationChanged.next(!1):this.jwtHelper.isTokenExpired(n)?this.authenticationChanged.next(!1):this.authenticationChanged.next(!0)}getCurrentUser(){return this.getToken("id_token").pipe(G(n=>{let o=this.jwtHelper.decodeToken(n);if(!o)throw new Error("Invalid ID token");return o}))}getUserAccessToken(){return this.getToken("access_token")}getToken(n){let o=this.ssrCookieService.get(n);return o?W(o):this.isRefreshing.getValue()===!0?this.isRefreshing.asObservable().pipe(xm(r=>r===!0),Ot(1),G(()=>this.ssrCookieService.get(n))):this.ssrCookieService.get("refresh_token")?(this.isRefreshing.next(!0),this.refresh().pipe(G(()=>(this.isRefreshing.next(!1),this.ssrCookieService.get(n))),ye(()=>(this.isRefreshing.next(!1),yt(()=>new Error("No token")))))):yt(()=>new Error("No token"))}isAllowed(n,o){return this.getCurrentUser().pipe(G(r=>{let a=r[o];return!!(a?.length&&this.doesUserAttributeExist(a,n))}))}doesUserAttributeExist(n,o){return o.some(r=>n.indexOf(r)>-1)}configureDomain(){return this.document.location.hostname.includes("aat.org.uk")?this.authConfig.cookieDomain:""}verifySignUp(n,o){let r={contactId:n,verificationCode:o,clientId:this.authConfig.clientIdKey};return this.http.post(this.authConfig.apiBaseUrl+"/auth/verify",JSON.stringify(r))}associateSoftwareToken(){return this.http.post(this.authConfig.apiBaseUrl+"/auth/associate-software-token",JSON.stringify({accessToken:this.ssrCookieService.get("access_token")}))}verifySoftwareToken(n){let o={code:n,accessToken:this.ssrCookieService.get("access_token")};return this.http.post(this.authConfig.apiBaseUrl+"/auth/verify-software-token",JSON.stringify(o)).pipe(G(r=>r),ye(r=>{let a=r;return a.error.message="invalid code",this.authenticationErrored.next(a),this.handleError(r)}))}respondToAuthChallenge(n,o){let r={code:n,clientId:this.authConfig.clientIdKey,contactId:o.ChallengeParameters.USER_ID_FOR_SRP,challengeName:o.ChallengeName,session:o.Session};return this.http.post(this.authConfig.apiBaseUrl+"/auth/respond-auth-challenge",JSON.stringify(r)).pipe(G(a=>(this.storeResponse(a),this.authenticationChanged.next(!0),a)),ye(a=>(this.authenticationChanged.next(!1),this.authenticationErrored.next(a),this.handleError(a))))}};i.\u0275fac=function(o){return new(o||i)(U("AuthConfig"),U(Ze),U(De),U(ba))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Cae=(()=>{let i=class i{static forRoot(n,o){return{ngModule:i,providers:[{provide:"AuthConfig",useValue:n},{provide:"AuthGuardConfig",useValue:o},Eo]}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[Au(Ou())]});let e=i;return e})(),bae=(()=>{let i=class i{constructor(n,o){this.authService=n,this._config=o,this.isRefreshing=new Fe(!1),this._authPaths=["auth/refresh","/auth/authenticate"],this._captchaPaths=["/licensed-member/email","/training-provider/lead-enquiry-email","/document-generation/pdf/centre-compare"],this.isRefreshing.next(!1)}intercept(n,o){return!this._config.interceptorPaths.some(r=>n.url.includes(r))||this._authPaths.some(r=>n.url.includes(r))||this._captchaPaths.some(r=>n.url.includes(r))?o.handle(n):this.authService.getUserAccessToken().pipe(it(r=>(n=n.clone({headers:n.headers.set("Authorization",r)}
1682),o.handle(n))),ye(r=>o.handle(n)))}};i.\u0275fac=function(o){return new(o||i)(U(Eo),U("AuthConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac});let e=i;return e})(),mi=(function(e){return e.WHITE="#ffffff",e.GREY="#dce6f0",e.GREEN="#00ab4e",e.BLACK="#000000",e})(mi||{}),el=(function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.XLARGE="xlarge",e.xxLARGE="xxlarge",e})(el||{});var $g=class{};var FH=[{id:"GBR",name:"United Kingdom"},{id:"GBR",name:"United Kingdom (UK)"},{id:"ABW",name:"Aruba"},{id:"AFG",name:"Afghanistan"},{id:"AGO",name:"Angola"},{id:"AIA",name:"Anguilla"},{id:"ALA",name:"Aland Islands"},{id:"ALB",name:"Albania"},{id:"AND",name:"Andorra"},{id:"ANT",name:"Netherlands Antilles"},{id:"ARE",name:"United Arab Emirates"},{id:"ARG",name:"Argentina"},{id:"ARM",name:"Armenia"},{id:"ASM",name:"American Samoa"},{id:"ATA",name:"Antarctica"},{id:"ATF",name:"French Southern Territories"},{id:"ATG",name:"Antigua and Barbuda"},{id:"AUS",name:"Australia"},{id:"AUT",name:"Austria"},{id:"AZE",name:"Azerbaijan"},{id:"BDI",name:"Burundi"},{id:"BEL",name:"Belgium"},{id:"BEN",name:"Benin"},{id:"BFA",name:"Burkina Faso"},{id:"BGD",name:"Bangladesh"},{id:"BGR",name:"Bulgaria"},{id:"BHR",name:"Bahrain"},{id:"BHS",name:"Bahamas"},{id:"BIH",name:"Bosnia and Herzegovina"},{id:"BLM",name:"Saint-Barth\xE9lemy"},{id:"BLR",name:"Belarus"},{id:"BLZ",name:"Belize"},{id:"BMU",name:"Bermuda"},{id:"BOL",name:"Bolivia"},{id:"BRA",name:"Brazil"},{id:"BRB",name:"Barbados"},{id:"BRN",name:"Brunei Darussalam"},{id:"BTN",name:"Bhutan"},{id:"BVT",name:"Bouvet Island"},{id:"BWA",name:"Botswana"},{id:"CAF",name:"Central African Republic"},{id:"CAN",name:"Canada"},{id:"CCK",name:"Cocos (Keeling) Islands"},{id:"CHE",name:"Switzerland"},{id:"CHL",name:"Chile"},{id:"CHN",name:"China"},{id:"CIV",name:"C\xF4te d'Ivoire"},{id:"CMR",name:"Cameroon"},{id:"COD",name:"Congo, (Kinshasa)"},{id:"COG",name:"Congo (Brazzaville)"},{id:"COK",name:"Cook Islands"},{id:"COL",name:"Colombia"},{id:"COM",name:"Comoros"},{id:"CPV",name:"Cape Verde"},{id:"CRI",name:"Costa Rica"},{id:"CUB",name:"Cuba"},{id:"CXR",name:"Christmas Island"},{id:"CYM",name:"Cayman Islands"},{id:"CYP",name:"Cyprus"},{id:"CZE",name:"Czech Republic"},{id:"DEU",name:"Germany"},{id:"DJI",name:"Djibouti"},{id:"DMA",name:"Dominica"},{id:"DNK",name:"Denmark"},{id:"DOM",name:"Dominican Republic"},{id:"DZA",name:"Algeria"},{id:"ECU",name:"Ecuador"},{id:"EGY",name:"Egypt"},{id:"ERI",name:"Eritrea"},{id:"ESH",name:"Western Sahara"},{id:"ESP",name:"Spain"},{id:"EST",name:"Estonia"},{id:"ETH",name:"Ethiopia"},{id:"FIN",name:"Finland"},{id:"FJI",name:"Fiji"},{id:"FLK",name:"Falkland Islands (Malvinas)"},{id:"FRA",name:"France"},{id:"FRO",name:"Faroe Islands"},{id:"FSM",name:"Micronesia, Federated States of"},{id:"GAB",name:"Gabon"},{id:"GEO",name:"Georgia"},{id:"GGY",name:"Guernsey"},{id:"GHA",name:"Ghana"},{id:"GIB",name:"Gibraltar"},{id:"GIN",name:"Guinea"},{id:"GLP",name:"Guadeloupe"},{id:"GMB",name:"Gambia"},{id:"GNB",name:"Guinea-Bissau"},{id:"GNQ",name:"Equatorial Guinea"},{id:"GRC",name:"Greece"},{id:"GRD",name:"Grenada"},{id:"GRL",name:"Greenland"},{id:"GTM",name:"Guatemala"},{id:"GUF",name:"French Guiana"},{id:"GUM",name:"Guam"},{id:"GUY",name:"Guyana"},{id:"HKG",name:"Hong Kong, SAR China"},{id:"HMD",name:"Heard and Mcdonald Islands"},{id:"HND",name:"Honduras"},{id:"HRV",name:"Croatia"},{id:"HTI",name:"Haiti"},{id:"HUN",name:"Hungary"},{id:"IDN",name:"Indonesia"},{id:"IMN",name:"Isle of Man"},{id:"IND",name:"India"},{id:"IOT",name:"British Indian Ocean Territory"},{id:"IRL",name:"Ireland"},{id:"IRN",name:"Iran, Islamic Republic of"},{id:"IRQ",name:"Iraq"},{id:"ISL",name:"Iceland"},{id:"ISR",name:"Israel"},{id:"ITA",name:"Italy"},{id:"JAM",name:"Jamaica"},{id:"JEY",name:"Jersey"},{id:"JOR",name:"Jordan"},{id:"JPN",name:"Japan"},{id:"KAZ",name:"Kazakhstan"},{id:"KEN",name:"Kenya"},{id:"KGZ",name:"Kyrgyzstan"},{id:"KHM",name:"Cambodia"},{id:"KIR",name:"Kiribati"},{id:"KNA",name:"Saint Kitts and Nevis"},{id:"KOR",name:"Korea (South)"},{id:"KWT",name:"Kuwait"},{id:"LAO",name:"Lao PDR"}
1682,{id:"LBN",name:"Lebanon"},{id:"LBR",name:"Liberia"},{id:"LBY",name:"Libya"},{id:"LCA",name:"Saint Lucia"},{id:"LIE",name:"Liechtenstein"},{id:"LKA",name:"Sri Lanka"},{id:"LSO",name:"Lesotho"},{id:"LTU",name:"Lithuania"},{id:"LUX",name:"Luxembourg"},{id:"LVA",name:"Latvia"},{id:"MAC",name:"Macao, SAR China"},{id:"MAF",name:"Saint-Martin (French part)"},{id:"MAR",name:"Morocco"},{id:"MCO",name:"Monaco"},{id:"MDA",name:"Moldova"},{id:"MDG",name:"Madagascar"},{id:"MDV",name:"Maldives"},{id:"MEX",name:"Mexico"},{id:"MHL",name:"Marshall Islands"},{id:"MKD",name:"Macedonia, Republic of"},{id:"MLI",name:"Mali"},{id:"MLT",name:"Malta"},{id:"MMR",name:"Myanmar"},{id:"MNE",name:"Montenegro"},{id:"MNG",name:"Mongolia"},{id:"MNP",name:"Northern Mariana Islands"},{id:"MOZ",name:"Mozambique"},{id:"MRT",name:"Mauritania"},{id:"MSR",name:"Montserrat"},{id:"MTQ",name:"Martinique"},{id:"MUS",name:"Mauritius"},{id:"MWI",name:"Malawi"},{id:"MYS",name:"Malaysia"},{id:"MYT",name:"Mayotte"},{id:"NAM",name:"Namibia"},{id:"NCL",name:"New Caledonia"},{id:"NER",name:"Niger"},{id:"NFK",name:"Norfolk Island"},{id:"NGA",name:"Nigeria"},{id:"NIC",name:"Nicaragua"},{id:"NIU",name:"Niue"},{id:"NLD",name:"Netherlands"},{id:"NOR",name:"Norway"},{id:"NPL",name:"Nepal"},{id:"NRU",name:"Nauru"},{id:"NZL",name:"New Zealand"},{id:"OMN",name:"Oman"},{id:"PAK",name:"Pakistan"},{id:"PAN",name:"Panama"},{id:"PCN",name:"Pitcairn"},{id:"PER",name:"Peru"},{id:"PHL",name:"Philippines"},{id:"PLW",name:"Palau"},{id:"PNG",name:"Papua New Guinea"},{id:"POL",name:"Poland"},{id:"PRI",name:"Puerto Rico"},{id:"PRK",name:"Korea (North)"},{id:"PRT",name:"Portugal"},{id:"PRY",name:"Paraguay"},{id:"PSE",name:"Palestinian Territory"},{id:"PYF",name:"French Polynesia"},{id:"QAT",name:"Qatar"},{id:"REU",name:"R\xE9union"},{id:"ROU",name:"Romania"},{id:"RUS",name:"Russian Federation"},{id:"RWA",name:"Rwanda"},{id:"SAU",name:"Saudi Arabia"},{id:"SDN",name:"Sudan"},{id:"SEN",name:"Senegal"},{id:"SGP",name:"Singapore"},{id:"SGS",name:"South Georgia and the South Sandwich Islands"},{id:"SHN",name:"Saint Helena"},{id:"SJM",name:"Svalbard and Jan Mayen Islands"},{id:"SLB",name:"Solomon Islands"},{id:"SLE",name:"Sierra Leone"},{id:"SLV",name:"El Salvador"},{id:"SMR",name:"San Marino"},{id:"SOM",name:"Somalia"},{id:"SPM",name:"Saint Pierre and Miquelon"},{id:"SRB",name:"Serbia"},{id:"SSD",name:"South Sudan"},{id:"STP",name:"Sao Tome and Principe"},{id:"SUR",name:"Suriname"},{id:"SVK",name:"Slovakia"},{id:"SVN",name:"Slovenia"},{id:"SWE",name:"Sweden"},{id:"SWZ",name:"Swaziland"},{id:"SYC",name:"Seychelles"},{id:"SYR",name:"Syrian Arab Republic (Syria)"},{id:"TCA",name:"Turks and Caicos Islands"},{id:"TCD",name:"Chad"},{id:"TGO",name:"Togo"},{id:"THA",name:"Thailand"},{id:"TJK",name:"Tajikistan"},{id:"TKL",name:"Tokelau"},{id:"TKM",name:"Turkmenistan"},{id:"TLS",name:"Timor-Leste"},{id:"TON",name:"Tonga"},{id:"TTO",name:"Trinidad and Tobago"},{id:"TUN",name:"Tunisia"},{id:"TUR",name:"Turkey"},{id:"TUV",name:"Tuvalu"},{id:"TWN",name:"Taiwan, Republic of China"},{id:"TZA",name:"Tanzania, United Republic of"},{id:"UGA",name:"Uganda"},{id:"UKR",name:"Ukraine"},{id:"UMI",name:"US Minor Outlying Islands"},{id:"URY",name:"Uruguay"},{id:"USA",name:"United States of America"},{id:"UZB",name:"Uzbekistan"},{id:"VAT",name:"Holy See (Vatican City State)"},{id:"VCT",name:"Saint Vincent and Grenadines"},{id:"VEN",name:"Venezuela (Bolivarian Republic)"}
1682,{id:"VGB",name:"British Virgin Islands"},{id:"VIR",name:"Virgin Islands, US"},{id:"VNM",name:"Viet Nam"},{id:"VUT",name:"Vanuatu"},{id:"WLF",name:"Wallis and Futuna Islands"},{id:"WSM",name:"Samoa"},{id:"YEM",name:"Yemen"},{id:"ZAF",name:"South Africa"},{id:"ZMB",name:"Zambia"},{id:"ZWE",name:"Zimbabwe"},{id:"GBR",name:"United Kingdom (Britain)"},{id:"GBR",name:"United Kingdom (England)"},{id:"GBR",name:"United Kingdom (Great Britain)"},{id:"GBR",name:"United Kingdom (Scotland)"},{id:"GBR",name:"United Kingdom (Wales)"},{id:"GBR",name:"United Kingdom (Northern Ireland)"},{id:"USA",name:"United States of America (USA)"},{id:"NLD",name:"Netherlands (Holland)"}];var AH="/assets/icons/aat-icons",Fi=(function(e){return e.achievement="achievement.svg",e.arrow="arrow.svg",e.audio="audio.svg",e.basket="basket.svg",e.building="building.svg",e.calendar="calendar.svg",e.cart="cart.svg",e.circle="circle.svg",e.clock="clock.svg",e.compare="compare.svg",e.computer="computer.svg",e.cross="cross.svg",e.delivery="delivery.svg",e.document="document.svg",e.email="email.svg",e.finance="finance.svg",e.flag="flag.svg",e.global="global.svg",e.globe_arrows="globe-arrows.svg",e.growth="growth.svg",e.heart="heart.svg",e.info="info.svg",e.laptop_tick="laptop-tick.svg",e.location="location.svg",e.padlock="padlock.svg",e.person="person.svg",e.phone="phone.svg",e.play="play.svg",e.plus="plus.svg",e.restricted="restricted.svg",e.search="search.svg",e.small_business="small-business.svg",e.star="star.svg",e.tick="tick.svg",e.trash="trash.svg",e.wifi="wifi.svg",e})(Fi||{}),ko=(function(e){return e.TIKTOK="tiktok",e.ENVELOPE_OPEN_TEXT_SOLID="envelope-open-text-solid",e.AAT_COMMENT="aat-comment",e.AAT_DISCUSSION_FORUMS="aat-discussion-forums",e.ARROW_ACTION="arrow-action",e.ARROW_DOUBLE_LEFT="arrow-double-left",e.ARROW_DOUBLE_RIGHT="arrow-double-right",e.CALL="call",e.COPY_URL="copy-url",e.DOWNLOAD="download",e.FACEBOOK="facebook",e.FILTERS="filters",e.GOOGLE_PLUS="google-plus",e.HOME="home",e.INSTAGRAM="instagram",e.KNOWLEDGE_HUB="knowledge-hub",e.LINK="link",e.LINKEDIN="linkedin",e.LIST="list",e.MEDIUM="medium",e.MENU_HAMBURGER="menu-hamburger",e.MENU_SECONDARY="menu-secondary",e.MESSENGER="messenger",e.MINUS_LARGE="minus-large",e.MY_CAREER="my-career",e.MY_MEMBERSHIP="my-membership",e.NEWS_EVENTS="news-events",e.PINTREST="pintrest",e.PRINT="print",e.PROFESSIONAL_ZONE="professional-zone",e.STATUS="status",e.SUPPORT_RESOURCES="support-resources",e.THUMBS_DOWN="thumbs-down",e.THUMBS_UP="thumbs-up",e.TILE="tile",e.TRAINING_ASSESSMENT="training-assessment",e.TUMBLR="tumblr",e.TWITTER="twitter",e.VISIBILITY_HIDE="visibility-hide",e.VISIBILITY_SHOW="visibility-show",e.VK="vk",e.WARNING="warning",e.WEIBO="weibo",e.WHATSAPP="whatsapp",e.YOUTUBE="youtube",e.LOOP2="loop2",e.COMPUTER="computer",e.ACHIEVEMENT="achievement",e.AUDIO="audio",e.BUILDING="building",e.CIRCLE="circle",e.COMPARE="compare",e.LAPTOP_TICK="laptop-tick",e.DOCUMENT="document",e.FINANCE="finance",e.GLOBAL="global",e.WEBSITE="website",e.GROWTH="growth",e.HEART="heart",e.FLAG="flag",e.PADLOCK="padlock",e.PERSON="person",e.PHONE="phone",e.GLOBE_ARROWS="globe-arrows",e.TRASH="trash",e.WIFI="wifi",e.SEARCH="search",e.PLAY_LARGE="play-large",e.FAVOURITE="favourite",e.STAR="star",e.INFO="info",e.CHECKMARK="checkmark",e.SUCCESS="success",e.CROSS="cross",e.CROSS_SMALL="cross-small",e.ARROW_UP="arrow-up",e.ARROW_DOWN="arrow-down",e.ARROW_LEFT="arrow-left",e.ARROW_RIGHT="arrow-right",e.PLUS="plus",e.PLUS_LARGE="plus-large",e.ERROR="error",e.RESTRICTED="restricted",e.MINUS="minus",e.CLOCK="clock",e.CALENDAR="calendar",e.EMAIL="email",e.CART="cart",e.BASKET="basket",e.LOCATION="location",e})(ko||{});var OH="/assets/images/shared/",tl=(function(e){return e.aatLogo="aat_logo.svg",e.aatLogoInverted="aat_logo_inverted.svg",e.aatLogoMono="aat_logo_mono_rbg.svg",e.aatLogoFull="aat_logo_full.svg",e.aatLogoFullMono="aat_logo_rev_rgb.svg",e})(tl||{});var LH={Small:{width:640,height:427},Large:{width:1920,height:1281},SocialMediaIGFBSquare:{width:1080,height:1080},SocialMediaIGStory:{width:1080,height:1920},KnowledgeHub43Ratio:{width:2e3,height:1500},AATCommentMainBanner:{width:830,height:463},AATCommentDigitalDownload:{width:300,height:130},MappImageHeaderText:{width:664,height:160},MappMainBanner:{width:664,height:250},MappLeftRightImageText:{width:330,height:198},MappDoubleBlock:{width:330,height:196},MappTripleBlock:{width:204,height:130},MappLeftRightImageTextSquare:{width:330,height:330},MappTwoImageTexts:{width:140,height:140},MappImageTwoTexts:{width:320,height:270},MappAdvertisementBlock:{width:624,height:370},MappImageTwoTextsLong:{width:320,height:400},MappIntroBlockWithCustomColourBG:{width:664,height:400},MappVideoBlock:{width:664,height:374},MappIntroBlockCTAOverlay:{width:664,height:330},WebsiteTabsBlockStandardPush:{width:2e3,height:1e3},WebsiteHero3to1ImageFocusOnRight:{width:3e3,height:1e3},WebsiteBasicPushPrimaryPush43:{width:2e3,height:1500},WebsiteHero3to1:{width:3e3,height:1e3},AATCommentHeroImage1950x550:{width:1950,height:550}},il=(()=>{let i=class i{constructor(n,o){this.config=n,this._doc=o,this.baseUrl=this._doc.location.protocol+"//"+this._doc.location.host}getUrl(n){return this.baseUrl+this.getPathByEnumType(n)}getPathByEnumType(n){if(this.checkIfObjIsInEnum(n,tl))return OH+n.objName;if(this.checkIfObjIsInEnum(n,Fi)){let o=mi.GREEN;return n.color&&(o=n.color),`${AH}/${n.objName}`}return"/"}checkIfObjIsInEnum(n,o){return Object.values(o).includes(n.objName)}};i.\u0275fac=function(o){return new(o||i)(U("fabricServicesConfig"),U(Ze))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Ln=(()=>{let i=class i{constructor(n){this.s3GetterService=n,this.size=el.MEDIUM}ngOnInit(){this._colour=this.content.colour,this._icon=this.content?.iconName?.includes(".svg")?this.content.iconName:Fi[this.content.iconName],this.setIconUrl()}setColour(n){this._colour=n,this.setIconUrl()}setIconUrl(){this.iconUrl=this.s3GetterService.getUrl({objName:this._icon,color:this._colour}),this._path=`url("${this.iconUrl}")`,this._backgroundColour=this._colour}};i.\u0275fac=function(o){return new(o||i)(I(il))},i.\u0275cmp=N({type:i,selectors:[["fab-aat-icon"]],hostVars:4,hostBindings:function(o,r){o&2&&ot("-webkit-mask-image",r._path)("background-color",r._backgroundColour)},inputs:{content:"content",size:"size"},standalone:!1,decls:0,vars:0,template:function(o,r){},styles:["[_nghost-%COMP%]{display:inline-block;height:100%;width:100%;-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat}"]});let e=i;return e})(),_a=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),NH=typeof window<"u",Ft=(()=>{let i=class i{constructor(){}push(n){NH&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push&&window.dataLayer.push(n))}trigger(n,o){this.push(M({event:n},o))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Jg=(()=>{let i=class i{constructor(n,o){this._gtmService=o,this.show=!1,this.state="default",this.isOpen=!1,this.hostTitle=null,this.onToggle=new se,this.openAccordionLeft=!1,Ee(n)&&(this.show=!0)}toggle(){this.isOpen=!this.isOpen,this.rotateChevron(),this.onToggle.emit(this.isOpen),this._gtmService.trigger("accordion_clicked",{accordionText:this.title||this.minorTitle,accordionCollapse:!this.isOpen})}rotateChevron(){this.state=this.state==="default"?"rotated":"default"}};i.\u0275fac=function(o){return new(o||i)(I(De),I(Ft))},i.\u0275cmp=N({type:i,selectors:[["fab-accordion"]],hostVars:1,hostBindings:function(o,r){o&2&&ve("title",r.hostTitle)},inputs:{title:"title",minorTitle:"minorTitle",iconArrowLeft:"iconArrowLeft",isOpen:"isOpen"},outputs:{onToggle:"onToggle"},standalone:!1,ngContentSelectors:Y6,decls:9,vars:6,consts:[[1,"accordion"],["tabindex","0",1,"accordion__header",3,"click","keydown.Enter"],[1,"accordion__show-less-more"],[1,"accordion__title"],[1,"icon","accordion__icon",3,"ngClass"],[1,"accordion__content"],[1,"accordion__show-less-more--text"],[1,"icon","accordion__icon","left",3,"ngClass"]],template:function(o,r){o&1&&(jt(q6),h(0,"section",0)(1,"header",1),R("click",function(){return r.toggle(
1682)})("keydown.Enter",function(){return r.toggle()}),y(2,Z6,4,5,"div",2),Tt(3,0,[1,""]),y(4,J6,2,1,"h4",3),y(5,X6,3,1,"span",3),y(6,eL,1,4,"span",4),p(),h(7,"div",5),Tt(8,1),p()()),o&2&&(Be("open",r.isOpen),d(2),w(r.iconArrowLeft?2:-1),d(2),w(r.title?4:-1),d(),w(r.minorTitle?5:-1),d(),w(r.iconArrowLeft?-1:6))},dependencies:[Ie],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.accordion__header__right{justify-content:space-between}.accordion{margin-bottom:-1px;border:1px solid #c3c3c3;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.accordion header{display:flex;cursor:pointer;padding:1em 2em 1em 1em;position:relative;align-items:center}.accordion__title{display:inline-block;max-width:90%;font-weight:500;font-family:acumin-pro-wide,Arial;color:#00ab4e;transition:ease-in-out .2s}.accordion__title:hover,.accordion__title:focus{color:#0a5c50;transition:ease-in-out .2s}.accordion__show-less-more{font-size:14px;color:#00ab4e;margin-right:10px;display:flex}.accordion__show-less-more--text{display:block;min-width:35px;margin-right:5px}.accordion__icon{font-size:22px;color:#00ab4e;position:absolute;right:.7em;padding:0}.accordion__icon.left{padding:0}.accordion__header-injection{margin-left:10px}.accordion__content p{line-height:1.5em}.accordion__content{color:#000;height:0;overflow:hidden;padding:0 1em;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.accordion.open .accordion__content{height:auto;padding:0 1em 1em;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out} 1683`],encapsulation:2,data:{animation:[xn("rotatedState",[Ki("default",ht({transform:"rotate(0)"})),Ki("rotated",ht({transform:"rotate(-180deg)"})),ti("rotated => default",ei("200ms ease-out")),ti("default => rotated",ei("200ms ease-in"))])]}});let e=i;return e})(),Xg=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),em=(()=>{let i=class i{constructor(n,o){this.http=n,this.config=o}createHeaders(){return{headers:new St({"Content-Type":"application/json"})}}get(){let o=`${this.config.environment.API_URL}/content/taxonomy?vid=product_selector&from=0&size=100`;return this.http.get(o,this.createHeaders()).pipe(G(r=>(r&&r.hits&&r.hits.length&&r.hits.sort((a,s)=>a.weight-s.weight),r)))}getProducts(n){let o=n.hits,r={},a={};for(let l of o)if(typeof l.fullParent=="object"&&l.fullParent[0].tid&&(typeof a[l.fullParent[0].tid]>"u"&&(a[l.fullParent[0].tid]=[]),a[l.fullParent[0].tid].push({name:l.name,target:l.productSelectTargetUrl})),l.fullProduct&&l.fullProduct[0]&&l.fullProduct[0].productType&&l.fullProduct[0].productType!=="Membership"){let c={memberFeeUk:0,memberAdmissionFee:0,aatFeesUk:0,total:0},u="";if(l.fullProduct[0].productDetails&&l.fullProduct[0].productDetails[0]){let v=l.fullProduct[0].productDetails[0];c.memberFeeUk=v.memberFeeUk!==""?parseInt(v.memberFeeUk,10):0,c.memberAdmissionFee=v.memberAdmissionFee!==""?parseInt(v.memberAdmissionFee,10):0,c.aatFeesUk=v.aatFeesUk!==""?parseInt(v.aatFeesUk,10):0,c.total=c.memberFeeUk+c.memberAdmissionFee+c.aatFeesUk,u=v.scottishQualLevel||""}let m={name:l.name,targetUrl:l.productSelectTargetUrl,price:c.aatFeesUk?c.aatFeesUk:c.memberFeeUk,durationCopy:"",points:[],productId:l.productUuid?l.productUuid.toLowerCase():"",alreadyRegistered:!1,hidePrices:!1,programmeComponentId:l.programmeComponentId?l.programmeComponentId.toLowerCase():"",topLevelComponentId:l.topLevelComponentId?l.topLevelComponentId.toLowerCase():"",scottishQualificationLevel:u};l.fullProduct[0].productSelectorDetails&&l.fullProduct[0].productSelectorDetails[0]&&l.fullProduct[0].productSelectorDetails[0].basketText&&(m.durationCopy=l.fullProduct[0].productSelectorDetails[0].productPageAccess,m.basketText=l.fullProduct[0].productSelectorDetails[0].basketText),r[l.tid]=m}let s=Object.keys(a);for(let l of s)r[l]&&(r[l].points=a[l]);return r}};i.\u0275fac=function(o){return new(o||i)(U(kt),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),ru=(()=>{let i=class i{getHash(n){return Kp(n)}parsePrices(n){return n.map(o=>ae(M({},o),{price:parseFloat(`${o.price}`.replace("\xA3",""))}))}removeBasketFromLocalStorage(n){localStorage.removeItem("basket"+this.getHash(n))}constructor(n,o){this.productListService=n,this._platformId=o,this.basketCount=new Fe(null),this.basketCountChanged$=this.basketCount.asObservable(),this.totalPrice=new Fe(null),this.totalPriceChanged$=this.totalPrice.asObservable(),this.basket=[],this.loadBasket()}addToBasket(n){for(let o=0;o<this.basket.length;o++)if(this.basket[o].programmeComponentId===n.programmeComponentId)return;this.basket.push(n),this.saveBasket(),this.basketCount.next(this.basket.length)}removeFromBasket(n){for(let o=0;o<this.basket.length;o++)if(this.basket[o].programmeComponentId===n.programmeComponentId){this.basket.splice(o,1);break}this.saveBasket(),this.basketCount.next(this.basket.length)}loadBasket(){if(Ee(this._platformId)){let n=JSON.parse(sessionStorage.getItem("basket")||"null");n&&(this.basket=this.parsePrices(n),this.basketCount.next(this.basket.length))}}saveBasket(){sessionStorage.setItem("basket",JSON.stringify(this.basket))}saveToLocalStorage(n){localStorage.setItem("basket"+this.getHash(n),JSON.stringify(this.basket))}loadFromLocalStorage(n,o,r){let a=JSON.parse(localStorage.getItem("basket"+this.getHash(n))||"null");return a&&(this.basket=this.parsePrices(a)),o&&this.saveBasket(),r&&this.removeBasketFromLocalStorage(n),this.basket}getBasket(){return this.basket}getBasketCount(){return this.basket.length}getBasketTotalPrice(){let n=0;return this.basket.forEach(o=>{n+=parseFloat(o.price)}),n}deleteBasket(){this.basket=[],sessionStorage.removeItem("basket"),this.saveBasket(),this.basketCount.next(this.basket.length)}setTotalPrice(n){this.totalPrice.next(n)}restoreBasketFromApi(n,o){if(!n){o&&o();return}this.productListService.get().subscribe(r=>{let a=this.productListService.getProducts(r);
1683n.forEach(s=>{let l,c=Object.keys(a);for(let u=0;u<c.length;u++)if(a[c[u]].topLevelComponentId===s){l=a[c[u]],this.addToBasket(l);break}}),o&&o()},r=>{o&&o()})}};i.\u0275fac=function(o){return new(o||i)(U(em),U(De))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),Xd={get:"/api/bookmark/get",post:"/api/bookmark/create",delete:"/api/bookmark/delete"},ry="bookmark",ay=!1,VH=(()=>{let i=class i{constructor(n){this.http=n,this.destroy$=new _t}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}isContentBookmarked(n){return new Promise((o,r)=>{this.getAll().then(a=>{for(let s in a){let l=a[s];if(l.link&&n===l.link)return o(l.id)}o("")})})}getAll(){return new Promise((n,o)=>{ay?this.getFromCache()?n(this.getFromCache()):this.updateCacheFromApi().then(r=>{n(r)}):this.getFromApi().then(r=>{n(r)})})}create(n,o){return new Promise((r,a)=>{let s=new FormData;s.append("link",n),s.append("term_id",""),s.append("title",o),this.http.post(Xd.post,s).pipe(Wn(this.destroy$)).subscribe(l=>{ay&&this.updateCacheFromApi(),r(l)})})}delete(n){return new Promise((o,r)=>{this.http.delete(Xd.delete+"/"+n).pipe(Wn(this.destroy$)).subscribe(a=>{this.updateCache(a),o(a)})})}getFromCache(){return JSON.parse(localStorage.getItem(ry))}updateCacheFromApi(){return new Promise((n,o)=>{this.http.get(Xd.get).pipe(Wn(this.destroy$)).subscribe(r=>{this.updateCache(r),n(r)},r=>{console.log(r),n({})})})}getFromApi(){return new Promise((n,o)=>{this.http.get(Xd.get).pipe(Wn(this.destroy$)).subscribe(r=>{n(r)},r=>{console.error("Failed to get bookmarks",r),n({})})})}updateCache(n){localStorage.setItem(ry,JSON.stringify(n))}};i.\u0275fac=function(o){return new(o||i)(U(kt))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),qg=class{constructor(i){this.accountNumber=i.accountNumber,this.name=i.name,this.organisationId=i.organisationId,this.financialStop=i.financialStop,this.currentL3SanctionsOrAbove=i.currentL3SanctionsOrAbove,this.isTP=!!(i.qualifications||i.courses),this.approvals=i.approvals||null,this.isEav=i.isEav||!1,this.postalAddress=i.postalAddress||null,this.tpContact=i.tpContact||null,this.role=i.role,this.trainingprovidercode=i.trainingprovidercode||null}},Yg=class{constructor(i){this.label=i.name,this.id=i.organisationId,this.data=i}},zH=(()=>{let i=class i{constructor(n,o,r,a){this.http=n,this.jwt=o,this.config=r,this.ssrCookieService=a,this.centreSource=new Un,this.centre$=this.centreSource.asObservable(),this.selectedItem=new Fe({id:null,label:"",data:null}),this.currentSelectedItem$=this.selectedItem.asObservable(),this.options={headers:{"Content-Type":"application/json",Authorization:this.ssrCookieService.get("access_token")}}}getContact(){return this.jwt.decodeToken(this.ssrCookieService.get("id_token"))}getCentreList(){let n=this.getContact();return n["cognito:groups"].includes("admin")||n["cognito:groups"].includes("staff")?this.http.get(this.config.environment.API_URL+"/training-provider",this.options):this.http.get(this.config.environment.API_URL+"/contact-relationship/"+n["custom:contact_id"],this.options).pipe(wt(o=>{if(typeof o=="object"&&o.hasOwnProperty("connections")){let r=o.connections.filter(a=>a.connectionType==="organisation").reduce((a,s)=>a.indexOf(s.connectionReferenceId)>-1?a:a.concat(s.connectionReferenceId),[]);return this.options.params={organisationIds:r.join(","),size:r.length,nonPublished:!0,isFinancialStop:!0,isCurrentL3SanctionsOrAbove:!0},this.http.get(this.config.environment.API_URL+"/training-provider",this.options).pipe(G(a=>{let s=[],l={};o.connections.forEach(c=>{!l[c.connectionReferenceId]&&c.role?l[c.connectionReferenceId]=c.role:c.role&&(l[c.connectionReferenceId]+=", "+c.role)}),o.connections.forEach(c=>{c.role=l[c.connectionReferenceId]});for(let c=0;c<a.data.length;c++)o.connections.find(u=>{if(u.connectionReferenceId===a.data[c].organisationId)return s.push(Object.assign(u,a.data[c]))});return s.map(c=>new qg(c))}))}return W(null)}),ye(this.handleError))}centreChange(n){this.centreSource.next(n)}isAutocomplete(){let n=["staff","admin"],o=this.getContact();for(let r of n)if(o["cognito:groups"].indexOf(r)!==-1)return!0;return!1}getIsStaff(){return this.getContact()["cognito:groups"].indexOf("staff")!==-1}search(n){return this.options.params={searchText:n,output:"summary"},this.http.get(this.config.environment.API_URL+"/training-provider",this.options).pipe(G(o=>o.data.map(r=>new Yg(r))),ye(this.handleError))}getCentre(n){return this.http.get(this.config.environment.API_URL+"/training-provider/"+n,this.options).pipe(G(o=>o),ye(this.handleError))}onSubmit(n){this.selectedItem.next(n)}handleError(n){let o;return o=n.message?n.message:n.toString(),yt(o)}};i.\u0275fac=function(o){return new(o||i)(U(kt),U(Ur),U("fabricServicesConfig"),U(ir))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),fi=(()=>{let i=class i{constructor(n){this.config=n,this.isBrowser=Ee(F(De)),this.http=F(kt),this._DomSanitizer=F(wn),this._gtmService=F(Ft),this._cacheService=F(ba),this._headers={headers:new St({"Content-Type":"application/json"})},this.disciplinaryOutcomeSocialMediaImageUri=this.config.environment.DISCIPLINARY_OUTCOME_SOCIAL_MEDIA_IMAGE_URI}cmsGet(n){let r=`${this.config.environment.API_URL}/content/node?pathAlias=${n}&status=1&loadRef=1`;return this.http.get(r,this._headers)}cmsGetMultipleContent(n){let o=this.config.environment.API_URL,r=[];for(let a=0;a<n.length;a++){let s=`${o}/content/node?pathAlias=${n[a]}&status=1&loadRef=1`,l=this.http.get(s,this._headers).pipe(ye(c=>W(c)));r.push(l)}return Ta(r)}cmsGetMultiple(n,o,r,a,s){let c=`${this.config.environment.API_URL}
1683/content/node?contentType=${n}&size=${o}&sortOrder=${r}&sortField=${a}${s?`&taxonomyTerm=${s}`:""}`;return this.http.get(c,this._headers)}handleImageLocation(n,o){let a=["original","large","medium","small","thumbnail"].includes(o)?o:"medium";n&&n.length&&n.substring(0,9)==="public://"&&(n=n.substring(9));let s=n&&n.length?n.split("/"):[],l=this.config.environment.STAGE==="local"?this.config.environment.BASE_URL:"";return o==="original"?l+=`/cms-assets-public/${s[s.length-2]}/${s[s.length-1]}`:l+=`/cms-resized-assets-public/${a}/cms-assets-public/${s[s.length-2]}/${s[s.length-1]}`,encodeURI(l).replaceAll("'","%27").replaceAll("(","%28").replaceAll(")","%29")}cmsGetView(n,o,r,a,s="created",l="desc"){return st(this,null,function*(){return yield this.cmsGetViewSync(n,o,r,a,s,l).toPromise()})}cmsGetViewSync(n,o,r,a,s="created",l="desc"){n==="news_content_type"&&(s="date");let c=this.config.environment.API_URL,u=a?`/content/related-by-taxonomy?query=${a}&taxonomyTerm=${a}&`:"/content/node?",m=`contentType=${n}&from=${o}&size=${r}&loadRef=1&sortField=${s}&sortOrder=${l}`,v=`${c}${u}${m}`;return this.http.get(v,this._headers)}cmsGetContentFeed(n){let r=`${this.config.environment.API_URL}/content/node/content-feed`;return this.http.post(r,n,this._headers)}cmsGetMenu(n){let o=this.config.environment.API_URL;return this._cacheService.cacheObservable(`cms-menu-${n}`,this.http.get(`${o}/content/menu/${n}`,this._headers))}buildJourneyCardPush(n){let a=n,{type:o}=a,r=Cr(a,["type"]);return{type:o,configuration:r}}buildContentFeed(n){let a=n,{type:o}=a,r=Cr(a,["type"]);return r.pageLinks=r.pageLinks.map(s=>({label:s.text,link:s.realUrl||s.url})),{type:o,configuration:r}}buildContentFilter(n){return{type:"content_filter",intro:n.intro,options:n.options}}buildBasicPush(n){let o={};if(typeof n.basicPushContent<"u"&&n.basicPushContent.length===2){let r=n.basicPushContent[0];typeof r.image=="string"&&(r.image=this.handleImageLocation(r.image,"small"));let a=n.basicPushContent[1];typeof a.image=="string"&&(a.image=this.handleImageLocation(a.image,"small")),o={type:"basic-push",configuration:[r,a]}}return o}buildCtaPush(n){let o=n.data;return o.firstLink.callback=()=>{this.pushGA("cta",o.firstLink.link,o.firstLink.text)},{type:"cta-push",configuration:o}}buildStandardHero(n){let o=n[0].content,r={background:this.handleImageLocation(n[0].content.background,"original"),title:o.title,content:o.content,colourWay:o.colourWay,expanded:!1,align:n[0].content.align,gdprIdentifier:n[0].content.gdprIdentifier};return o.button&&(r.button=ae(M({disabled:!1,type:"regular",size:"medium",fullWidth:!1},o.button),{link:o.button.realUrl||o.button.link})),r}buildStandardPush(n){let o=n.standardPushContent;return o.image=this.handleImageLocation(o.image,"small"),{type:"standard-push",configuration:o}}buildVideoBlock(n){if(!n.content)return null;let o=n.content,r={titleBlock:o.titleBlock,videoId:o.videoId,primaryText:o.primaryContent,secondaryText:o.secondaryContent,primaryButton:void 0,secondaryButton:void 0};if(o.primaryContentButtonText!==""){let s={text:o.primaryContentButtonText,disabled:!1,type:"regular",size:"medium",glyph:"",theme:"light",fullWidth:!1,link:o.primaryContentLink,openInNewTab:o.openInNewTab};r.primaryButton=s,r.primaryButton.callback=()=>{this.pushGA("cta",a.primaryButton.link,a.primaryButton.text)}}let a=r;return{type:"video-block",configuration:a}}buildTable(n){return{type:"fab-table-block",configuration:{tableConfig:{width:null,alignCenter:null},columnDefs:n.content.columnDefs,defaultColDef:{},rowData:n.content.rowData}}}tabsBlock(n){if(typeof n.tabsContent<"u"&&typeof(n.tabsContent.tabData!=="undefined"))for(let r in n.tabsContent.tabData){let a=this.handleImageLocation(n.tabsContent.tabData[r].background,"medium");n.tabsContent.tabData[r].background=a}return{type:"fab-tabs-block",configuration:n.tabsContent}}text(n){return n.fabTextContent=n.fabTextContent||"",{type:"fab-text",configuration:this._DomSanitizer.bypassSecurityTrustHtml(n.fabTextContent.replace(/data-list-style="([-a-z]+)"/g,'class="list-style-$1"'))}}cookiePolicy(){return{type:"one-trust-policy",configuration:this._DomSanitizer.bypassSecurityTrustHtml(`<section class="auto-cookies"> 1684 <!-- OneTrust Cookies List start --> 1685 <div id="ot-sdk-cookie-policy"></div> 1686 <!-- OneTrust Cookies List end --> 1687 <!-- OneTrust Cookies Settings button start --> 1688 <button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button> 1689 <!-- OneTrust Cookies Settings button end --> 1690 </section>`)}}buildPrimaryPush(n){let o=n.primaryPushContent;return o.image=this.handleImageLocation(o.image,"medium"),o.button.link=o.button.realUrl||o.button.link,o.button.callback=()=>{this.pushGA("cta",o.button.link,o.button.text)},{type:"fab-primary-push",configuration:o}}
1690button(n){return typeof n.link=="string"&&n.link.substring(0,9)==="internal:"&&(n.link=n.link.substring(9)),{type:"button",configuration:{text:n.title,action:{type:"link",link:n.link,useRouterLink:!1,openInNewTab:!!n.openInNewTab},gtmData:{event:"customClick",clickType:"cta",clickPath:n.link,clickText:n.title.replace(/(<([^>]+)>)/gi,"").toLowerCase().trim()},type:"primary",aria:n.title}}}bullets(n){let o=[];n.items.forEach(s=>{s.content=s.content.replace(/(<p[^>]+?>|<p>|<\/p>)/gim,""),o.push({content:s})});let r=null;return(n.items.length===3||n.items.length===6)&&(r=3),{type:"bullets",configuration:{border:!1,alignment:n.alignment,title:n.title,items:n.items,columns:r||null}}}image(n){if(!n.imageContent)return;let o=this.handleImageLocation(n.imageContent.uri,"large");return{type:"image",configuration:{src:this._DomSanitizer.bypassSecurityTrustUrl(o),alt:typeof n.imageContent.alt<"u"?n.imageContent.alt:"",copyright:"",targetUrl:typeof n.imageContent.targetUrl<"u"?n.imageContent.targetUrl:"",openInNewTab:typeof n.imageContent.openInNewTab<"u"?n.imageContent.openInNewTab:!1,toolTip:typeof n.imageContent.toolTip<"u"?n.imageContent.toolTip:"",overrideWidth:typeof n.imageContent.overrideWidth<"u"?n.imageContent.overrideWidth:""}}}buildQuoteBlock(n){let o=n.quoteContent;return o.background=this.handleImageLocation(n.quoteContent.background,"original"),{type:"fab-quote-block",configuration:o}}buildComparisonStats(n){return{type:"fab-comparison-stats",configuration:n.content}}buildHeroWithJourney(n){let o={title:n.title,subtitle:n.subtitle,link:n.link,body:n.body},r={type:"fab-journey-card",configuration:o};return o}video(n){let o={videoId:""};return typeof n.videoId<"u"&&(o.videoId=n.videoId),{type:"fab-video",configuration:o}}soundcloud(n){return{type:"fab-soundcloud",configuration:{link:n.link}}}buildHubspotForm(n){return n?{type:"hubspot-form",configuration:JSON.parse(n)}:{}}pushGA(n,o,r){this._gtmService.push({event:"customClick",clickType:n,clickPath:o||"",clickText:r.replace(/(<([^>]+)>)/gi,"").toLowerCase().trim()})}buildView(n){return{type:"view",configuration:n.viewData,preloaded:n.preloaded}}generateProductPage(n,o){let r=Array.from(n.productPageBody),a=n.productDetails[0];a&&(a=a.level);let s=n.durationFePlainText?null:o([r.shift()]),{productDetails:l}=n;return[{type:"fab-qualification-hero",data:{title:n.title,subtitle:l.length?l[0].scottishQualLevel:null,summary:n.summary,level:a,displayType:n.productType,groupName:l.length?l[0].qualGroupName:null}},{type:"fab-product-hero",data:n,child:s}].concat(r)}generatePolicyPage(n){let o=this.isBrowser?this.generateTableOfContents(n.policyBody||[],n.showH3TitlesInToc||!1):[];return n?.onThisPageSection&&Number(n.onThisPageSection)===1||(n.tableOfContents=o,n.policyBody.unshift({type:"fab-table-of-contents",tableOfContents:o})),n.policyBody}generateTableOfContents(n,o){let r=[];for(let a=0;a<n.length;a++){let s=n[a];if(s.type==="fab-text"){let c=new DOMParser().parseFromString('<div id="working-toc-wrapper">'+s.fabTextContent+"</div>","text/html"),u=o?"h2, h3":"h2",m=c.querySelectorAll(u);for(let v=0;v<m.length;v++){let C="heading_toc_link_"+(r.length+101);m[v].className=C,r.push({label:m[v].dataset.altHeading||m[v].innerText,link:C,type:m[v].tagName})}s.fabTextContent=c.querySelector("#working-toc-wrapper").innerHTML}}return r}generateDisciplinaryOutcomePage(n){let o={disciplinaryOutcomeType:n.disciplinaryOutcomeType?n.disciplinaryOutcomeType[0].name:void 0,title:n.personTitle?n.personTitle[0].name:void 0,firstName:n.memberFirstName,lastName:n.memberLastName,designatoryLetters:n.memberDesignatoryLetters?n.memberDesignatoryLetters[0].name:void 0,membershipNumber:n.membershipNumber,disciplinaryDate:n.disciplinaryDate,disciplinaryMisconduct:n.disciplinaryMisconduct,disciplinaryFinding:n.disciplinaryFinding,disciplinaryOrder:n.disciplinaryOrder,disciplinaryConsent:n.disciplinaryConsent};return n.seoTitle=`Disciplinary outcome: ${o.firstName} ${o.lastName}`,n.summary="This is an order of AAT outlining one or more breaches of the Code of Professional Ethics and the sanction imposed.",n.socialMediaImage={uri:this.disciplinaryOutcomeSocialMediaImageUri,type:"image",alt:"A pile of paper-filled folders on a desk"},[{type:"disciplinary-outcome",configuration:o}]}generateConsultationResponsePage(n){return[{type:"consultation-response",configuration:M({},n)}]}_buildComparisonCalculator(n){return{type:"comparison-calculator",data:n}}setupSocialShareButtons(n){let o={twitter:!1,facebook:!1,linkedin:!1}
1690,r={title:"",url:""};return(n.contentType==="news_content_type"||n.contentType==="consultation_response")&&(o.twitter=!0,o.facebook=!0,o.linkedin=!0,r.title=n.contentType==="news_content_type"?"Love this story from @YourAAT!":n.title,r.url=this.config.environment.BASE_URL),{smo:o,smb:r}}constructSpotlights(n){let o=[];if(typeof n<"u")for(let r of n)o.push(r);return o}constructContactBlock(n){if(typeof n[0]!==void 0){let o=n[0],r=o.footerContact.replace(/(<p[^>]+?>|<p>|<\/p>)/,"");r=r.replace(/\r?\n|\r/,"");let a=o.footerText2.replace(/(<p[^>]+?>|<p>|<\/p>)/,"");return a=a.replace(/\r?\n|\r/,""),{title1:`<h2><strong>${o.title}</strong><br>${o.footerText1}</h2>`,title2:`<h4>${o.footerTitle2}</h4>`,contact:`<h4>${r}</h4>`,text2:`<p class="minor">${a}</p>`}}}getNotifications(n,o){let r=`${this.config.environment.API_URL}/content/notifications/${n}`;return this._cacheService.cacheObservable(`${n}-notifications`,this.http.get(r,this._headers).pipe(Ot(1),G(a=>a.map(s=>M(M({fullWidth:!0,leftAlign:!0,isOpened:!0},o),s))),ye(a=>(a?.status!==404&&console.error(a),W(null)))))}};i.\u0275fac=function(o){return new(o||i)(U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),BH=new RegExp(/<[^>]*>?/gm),eu=class extends String{constructor(i){super(i.replace(BH,""))}};function sy(e=""){return new eu(e)}var tm=(()=>{let i=class i{constructor(n){this.config=n,this.cognitoUserInformation=Ae(null),this.contactId=Pe(()=>this.cognitoUserInformation()?.["custom:contact_id"]),this.contactId$=Qv(this.contactId),this.contactGroups=Pe(()=>this.cognitoUserInformation()?.["cognito:groups"]),this.contactMembershipTypes=Pe(()=>this.cognitoUserInformation()?.["custom:membership_type"]),this.contactConnections=Pe(()=>JSON.parse(this.cognitoUserInformation()?.["custom:connection_type"])),this.contactGivenName=Pe(()=>this.cognitoUserInformation()?.given_name),this.contactLastName=Pe(()=>this.cognitoUserInformation()?.family_name),this.contactEmail=Pe(()=>this.cognitoUserInformation()?.email),this.contactPreferredMFASetting=Pe(()=>this.cognitoUserInformation()?.PreferredMfaSetting),this.selectedItem=new Fe({id:null,label:"",data:null}),this.currentSelectedItem=this.selectedItem.asObservable(),this.http=F(kt),this._authService=F(Eo),this._cacheService=F(ba),this.checkAndUpdateHubspot=o=>{let r={headers:new St({"Content-Type":"application/json"})};return this.http.post(`${this.config.environment.API_URL}/hubspot/known-to-hubspot`,JSON.stringify(o),r).pipe(G(a=>a),ye(a=>yt(a)))},this.createHeaders=()=>({headers:new St({"Content-Type":"application/json"})}),this.primeNgContactSearch={},this._authService.authenticationChanged$.pipe(it(o=>o?this._authService.getCurrentUser():W(o))).subscribe({next:o=>{this.cognitoUserInformation.set(o)},error:()=>{this.cognitoUserInformation.set(null)}})}search(n){return n===""||n.length<3?W([[]]):this.http.get(this.config.environment.API_URL+"/contact/search/"+n,this.createHeaders()).pipe(G(o=>{let r=[];if(o instanceof Array)for(let a of o){let s={id:a.contactId,label:a.name.givenName+" "+a.name.familyName,data:a};r.push(s)}else{let a={id:o.contactId,label:o.name.givenName+" "+o.name.familyName,data:o};r.push(a)}return r}))}onSubmit(n){this.selectedItem.next(n)}getContactByMemberId(n){return this.http.get(this.config.environment.API_URL+"/contact/member/"+n,this.createHeaders()).pipe(G(o=>o))}getContact(n){return n===this.contactId()||!this.contactId()?this._cacheService.cacheObservable("contact",this.http.get(this.config.environment.API_URL+"/contact/"+n)):this.http.get(this.config.environment.API_URL+"/contact/"+n)}update(n){let o=Object.assign({},n);return o.address=Object.assign({},this.formatAddress(o.address)),this._cacheService.clear(),this.http.patch(this.config.environment.API_URL+"/contact/"+n.contactId,JSON.stringify(o),this.createHeaders()).pipe(G(r=>r),ye(r=>(console.log(r),W(r))))}patchContact(n,o,r=null){return this._cacheService.clear(),this.http.patch(this.config.environment.API_URL+"/contact/"+n,JSON.stringify(o),this.createHeaders())}createAccount(n,o=null,r=null){let a=Object.assign({},n.contact),s=this.config.environment.CLIENT_ID_KEY;a.address=Object.assign({},this.formatAddress(a.address));let l={contact:a,credentials:n.credentials,clientId:s},c={headers:new St({"Content-Type":"application/json"})};return o&&(c={headers:new St({"Content-Type":"application/json",Authorization:o})}),this.http.post(this.config.environment.API_URL+"/contact/create-account",JSON.stringify(l),this.createHeaders()).pipe(G(u=>u),ye(u=>yt(u)))}toTitleCase(n){return n.toLowerCase().split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}checkAvailability(n,o=null){let r={email:n},a={headers:new St({"Content-Type":"application/json"})};return this.http.post(this.config.environment.API_URL+"/contact/check-availability",JSON.stringify(r),a).pipe(G(s=>s),ye(s=>yt(s)))}formatAddress(n,o=!1){let r={addressRegion:"",streetAddressLine1:"",streetAddressLine2:"",streetAddressLine3:"",addressLocality:"",postalCode:"",addressCountry:""};for(let a in n)n[a]!==null&&n[a]!=""&&(a==="address1"?r.streetAddressLine1=n[a]&&this.toTitleCase(n[a]):a==="address2"?r.streetAddressLine2=n[a]&&this.toTitleCase(n[a]):a==="town"?r.addressLocality=n[a]&&this.toTitleCase(n[a]):a==="county"?r.addressRegion=n[a]&&this.toTitleCase(n[a]):a==="state"?r.addressRegion=typeof n[a]=="string"?n[a]:n[a][o?"id":"label"]:a==="country"||a==="countryItem"||a==="addressCountry"?r.addressCountry=typeof n[a]=="string"?n[a]:n[a].id||n[a]:a==="postcode"||a==="postalCode"?r.postalCode=n[a]&&n[a].toUpperCase():r[a]=n[a]&&this.toTitleCase(n[a]));return r}getContactRelationship(n){return n===this.contactId()||!this.contactId()?this._cacheService.cacheObservable("contactRelationship",this.http.get(this.config.environment.API_URL+"/contact-relationship/"+n)).pipe(G(o=>o),ye(o=>o.status===404?W({}):o)):this.http.get(this.config.environment.API_URL+"/contact-relationship/"+n).pipe(G(o=>o),ye(o=>o.status===404?W({}):o))}};i.\u0275fac=function(o){return new(o||i)(U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var im=(()=>{let i=class i{constructor(n,o){this.cmsContentService=n,this.s3GetterService=o,this.footerContent={logo:this.s3GetterService.getUrl({objName:tl.aatLogoFullMono}),address:"The Association of Accounting Technicians.<br>30 Churchill Place, London E14 5RE</br>Registered charity no.1050724.<br>A company limited by guarantee (No. 1518983).",copyright:"",social:[],communityCategories:[],linkCategories:[],push:{title:"",desc:"",button:{useRouterLink:!1,text:"",link:"",disabled:!1,type:"regular",size:"small",glyph:"",fullWidth:!0,theme:"light"}},bottomLinks:[]}}getFooterContent(){return this.retrieved||this.generateFooterContent(),this.footerContent}generateFooterContent(){this.cmsContentService.cmsGetMenu("footer-v2").subscribe(n=>{this.retrieved=!0;let o=n.hits[0];if(o.links.filter(a=>a.description==="social")){let a=o.links.filter(s=>s.description==="social")[0];a&&a.links&&a.links.forEach(s=>{this.footerContent.social.push({icon:s.title,link:s.path,openInNewTab:!!s.openInNewTab})})}if(o.links.filter(a=>a.description==="about-aat")){let a=o.links.filter(s=>s.description==="about-aat")[0];if(a){let s={title:a.title,links:this.generateSimpleLinks(a.links)};this.footerContent.linkCategories.push(s)}}if(o.links.filter(a=>a.title==="Communities")){let a=o.links.filter(s=>s.title==="Communities")[0];if(a){let s={title:a.title,links:this.generateSimpleLinks(a.links)};this.footerContent.communityCategories.push(s)}}if(o.links.filter(a=>a.description==="hygiene")){let a=o.links.filter(s=>s.description==="hygiene")[0];this.footerContent.bottomLinks=this.generateSimpleLinks(a.links)}if(o.links.filter(a=>a.title==="Find an accountant")){let a=o.links.filter(s=>s.title==="Find an accountant")[0];a&&(this.footerContent.push.title=a.title,this.footerContent.push.desc=a.description,this.footerContent.push.button.link=a.links[0].path,this.footerContent.push.button.text=a.links[0].title)}let r=new Date().getFullYear();this.footerContent.copyright=`Copyright \xA9 ${r}. All rights reserved.`})}generateSimpleLinks(n){let o=[];return n.sort((r,a)=>
1690r.weight-a.weight),n&&n.forEach(r=>{o.push({linkText:r.title,link:r.path,icon:r.description?r.description:void 0,openInNewTab:!!r.openInNewTab})}),o}};i.\u0275fac=function(o){return new(o||i)(U(fi),U(il))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var he={message:{mandatory:{text:"Enter information",option:"Select an option",select:"Select an option",atleastone:"Select at least one option"},global:{required_select:"Select an option",invalid_alpha:"Enter letters only",required_alpha:"Enter text",required_custom_alpha:"Enter your %label",invalid_custom_alpha:"Enter letters only",invalid_alphanumeric:"Invalid character used",required_alphanumeric:"Enter text",invalid_alphatext:"Invalid character used",required_custom_alphaText:"Enter your %label",invalid_email:"Please enter a valid email address",required_email:"Enter your email address",invalid_number:"Enter a valid number",required_number:"Enter a number",invalid_small_number:"Enter a valid number",required_small_number:"Enter a number",invalid_postcode:"Enter a valid UK postcode",required_postcode:"Enter a full postcode",invalid_telephone:"Enter a valid phone number",required_telephone:"Enter your phone number",invalid_website:"Enter a valid URL",required_website:"Enter URL",invalid_url_stub:"Enter a valid URL",required_url_stub:"Enter URL",invalid_scn:"Enter at least 9 characters",required_scn:"Enter a SCN",invalid_uln:"Enter at least 10 chracters",required_uln:"Enter a valid number",invalid_text:"Enter text only",required_text:"Enter text",invalid_date:"Enter a valid date (dd/mm/yyyy)",required_date:"Enter a date",required_training_provider_name:"Enter training provider name",invalid_training_provider_name:"Enter text",required_company_name:"Enter company name",invalid_company_name:"Enter letters only",required_contact_name:"Enter contact name",invalid_contact_name:"Enter letters only",required_first_name:"Enter your first name",invalid_first_name:"Enter letters only",required_full_name:"Enter full name",invalid_full_name:"Enter letters only",required_job_title:"Enter job title",invalid_job_title:"Enter text",required_last_name:"Enter your last name",invalid_last_name:"Enter letters only",invalid_birthdate_format:"Enter your date of birth in this format DD/MM/YYYY",invalid_birthdate:"Enter a valid date of birth",required_birthdate:"Enter your date of birth",invalid_future_date:"Enter a date in the future",invalid_county:"Enter valid county",required_county:"Enter a county",invalid_maxlength:"[requiredLength] characters max",invalid_minlength:"This should be atleast 3 characters long.",invalid_daterange:"Enter a date within the range",required_daterange:"Enter a daterange",invalid_futureDate:"Enter a date in the future",required_futureDate:"",invalid_payment_code:"This payment code is invalid, check the code and try again.",required_payment_code:"Enter a payment code",invalid_earliest_time:"Select earliest time",invalid_latest_early:"Sorry, You can't put the latest time before the earliest time",invalid_latest_time:"Select latest time",invalid_weekday:"Select day",invalid_year:"Please select a year",required_AATPassword:"Enter password",required_password:"Enter password",required_create_password:"Create a password",invalid_video:"Enter a valid URL",required_video:"Enter URL",invalid_sortcode:"Enter a valid sort code",required_sortcode:"Enter your sort code",invalid_account_number:"Enter a valid account number",required_account_number:"Enter your account number",invalid_paymentcode:"This payment code could not be found. Please ensure you've entered it in the correct format.",required_paymentcode:"Enter your payment code"},payment:{payment_code_unavailable:"Payment code is invalid, expired or has already been used. Contact your training provider or pay via credit/debit card.",payment_code_does_not_exist:"This payment code @payment_code does not exist for your training provider."},email:{email_mismatch:"Email address does not match",email_not_valid:"Enter a valid email address",email_crm_mismatch:"The details you have entered do n
1690ot match our records. Please contact us to set up your account on +44 (0)20 3735 2468 ",email_exists:"This email address is already registered on our system. !link, or supply a new email address. The email address you supply should not be a shared inbox.",email_pending:"This email address registration is pending and will be processed shortly",email_exists_db:"This email address already exists in our database",email_pri_sec_match:"The primary and secondary email addresses should not be the same"},password:{password_not_valid:"Your password doesn't meet the password requirements",password_mismatch:"Passwords do not match"},membership:{blank_membership_id:"Enter AAT membership number",invalid_membership_id:"Enter a valid number"},terms:{terms_and_conditions:"You must read the terms and conditions and tick the confirmation box before you can continue",tick_to_confirm:"Tick to confirm"}},pattern:{Alpha:/^[a-zA-ZA-Zà áâäãåÄ
ÄÄÄèéêëÄįìÃîïÅÅòóôöõøùúûüųūÿýżźñçÄšžÃÃÃÃÃÃ
ÄÄÄÄÄÃÃÃÃÃÃÃÃÄ®ÅÅÃÃÃÃÃÃÃÃÃÃŲŪŸÃŻŹÃÃÃÅÃÄŠŽâð '\s-&]+$/,AlphaNumeric:`^[a-zA-Z0-9\xA3$%&*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+$`,AATPhoneNumber:"^\\+?\\(?([0-9]{1,3})\\)?[\\-. ]?(\\d{2,4})[\\-. ]?(\\d{2,4})[\\-. ]?(\\d{2,4})$",NonAlphaNumeric:"\\W|_",AATGBPostcode:"^[Gg][Ii][Rr] 0[Aa]{2}|^((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9]?[A-Za-z])))) {0,1}[0-9][A-Za-z]{2})$",AlphaText:`^[a-zA-Z0-9\xA3$%&*!\\"'()\\[\\]_=+:;@#,\u2013\u2019\u2018\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US\\&\\r\\n\\/' -]+$`,AATPassword:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\^$*.[\]{}()?\-"!@#%&/\\,><':;|_~`])[A-Za-z\d\^$*.[\]{}()?\-"!@#%&/\\,><':;|_~`]{8,}$/,hasNumber:"[0-9]",hasCapitalCase:"[A-Z]",hasSmallCase:"[a-z]",hasSpecialCharacters:/.*[@~!\-&*;?.#].*/,numberOnly:"^[0-9]+$",decimalNumber:"^[0-9.]+$",ULN:"^[1-9]{1}\\d{9}$",SCN:"^\\d{9}$",email:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,small_number:"\\b([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b",website:"(http|https)\\:\\/\\/(?!www\\.)?[A-Za-z0-9-]+\\.([A-Za-z0-9-]{2,})+(\\.[A-Za-z0-9-]{2,10})?(?![A-Za-z0-9-]{2,10})\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)",url_stub:"^[a-zA-Z0-9-_]+",training_provider_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,company_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,contact_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,first_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,full_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,job_title:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,last_name:`[a-zA-Z\xA3$%&\\*!\\"'()_=+:;@#/,\\.\\?\u20AC\xA5\u20B9\xE7\xE6\u0153\xE1\xE9\xED\xF3\xFA\xE0\xE8\xEC\xF2\xF9\xE4\xEB\xEF\xF6\xFC\xFF\xE2\xEA\xEE\xF4\xFB\xE5ei\xF8u\xDF\xC7\xC6\u0152\xC1\xC9\xCD\xD3\xDA\xC0\xC8\xCC\xD2\xD9\xC4\xCB\xCF\xD6\xDC\u0178\xC2\xCA\xCE\xD4\xDB\xC5EI\xD8US -]+`,date_ddmmyyyy:/^\d{1,2}\/\d{1,2}\/\d{4}$/,sort_code:/^(?!(?:0{6}|00-00-00))(?:\d{6}|\d\d-\d\d-\d\d)$/,account_number:/^[0-9]{8}$/,payment_code:/^(AAT-)?([A-Z0-9]{3}-){2}[A-Z0-9]{3}$/,date_valid:/^(((0[1-9]|[12][0-9]|3[01])([/])(0[13578]|10|12)([/])(19(\d{2})|20(\d{2})))|(([0][1-9]|[12][0-9]|30)([/])(0[469]|11)([/])(19(\d{2})|20(\d{2})))|((0[1-9]|1[0-9]|2[0-8])([/])(02)([/])(19(\d{2})|20(\d{2})))|((29)(\.|-|\/)(02)([/])([02468][048]00))|((29)([/])(02)([/])([13579][26]00))|((29)([/])(02)([/])([0-9][0-9][0][48]))|((29)([/])(02)([/])([0-9][0-9][2468][048]))|((29)([/])(02)([/])([0-9][0-9][13579][26])))$/,video:"^(?:https?:\\/\\/)?(?:www\\.)?(?:youtu\\.be\\/|y
1690outube\\.com\\/(?:embed\\/|v\\/|watch\\?v=|watch\\?.+&v=))((?:\\w|-){11})(?:&list=(\\S+))?$|https:\\/\\/(player.vimeo\\.com\\/video\\/([\\d]+)(\\&\\S+)?.*?|vimeo\\.com\\/([\\d]+)(\\&\\S+)?)"},profanity:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiYWR3b3JkcyI6eyJsaXN0IjpbImFidXNlIiwiYWJ1c2luZyIsImFuYWwiLCJhbnVzIiwiYW5hbGJlYWRzIiwiYXJzZSIsImFyc2Vob2xlIiwiYXNzIiwiYXNzZnVjayIsImFzc2hvbGUiLCJiYXN0YXJkIiwiYmRzbSIsImJpdGNoIiwiYmlzZXh1YWwiLCJiaiIsImJsb3dqb2IiLCJidXR0cGx1ZyIsImNhbm5hYmlzIiwiY2FuYWJpcyIsImNob2tlIiwiY2hva2luZyIsImNsaXQiLCJjbGl0b3JpcyIsImNvY2FpbmUiLCJjb2NrIiwiY3VjIiwiY3VtIiwiY3VudCIsImRpY2siLCJkaWNraGVhZCIsImRpY2ttdW5jaGVyIiwiZGlja3N1Y2tlciIsImRpbGRvIiwiZmFnZ290IiwiZmFubnkiLCJmYW5ueW1vbnN0ZXIiLCJmYW5ueW11bmNoZXIiLCJmaW5nZXJpbmciLCJmZWxjaCIsImZlbHRjaCIsImZlbGxhdGlvIiwiZmlzdCIsImZpc3RpbmciLCJmdWNrIiwiZnVja2VkIiwiZnVja2luZyIsImZ1Y2t0b24iLCJmdWNrdG9ubmUiLCJmw7xocmVyIiwiZnVocmVyIiwiZ2F5IiwiZ29ic2hpdGUiLCJoZXRlcm9zZXh1YWwiLCJobyIsImhvZSIsImhvbW8iLCJob21vc2V4dWFsIiwiaGl0bGVyIiwiaG9sb2NhdXN0Iiwia2lkZHkiLCJraWRkeWZpZGRsZXIiLCJraWxsIiwia2lsbGluZyIsIm1hcmlqdWFuYSIsIm1hc29jaGlzbSIsIm1hc29jaGlzdCIsIm11cmRlciIsIm11cmRlcmluZyIsIm5hemkiLCJuZW9uYXppIiwibmlnZ2EiLCJuaWdnZXIiLCJub2IiLCJub2JoZWFkIiwibm9ic3Vja2VyIiwicGVkbyIsInBhZWRvIiwicGVkb3BoaWxlIiwicGFlZG9waGlsZSIsInBlbmlzIiwicG9ybiIsInB1c3N5IiwicHVzc3ltb25zdGVyIiwicHVzc3ltdW5jaGVyIiwicHJpY2siLCJyYXBlIiwicmFwaW5nIiwicmFwaXN0IiwicnVnbXVuY2hlciIsInNhZGlzbSIsInNhZGlzdCIsInNhZG9tYXNvY2hpc20iLCJzZXgiLCJzZXh0Iiwic2V4dGluZyIsInNoaXQiLCJzaGl0ZSIsInNoaXRob3VzZSIsInNoaXR0aW5nIiwic2x1dCIsInN0YWIiLCJzdGFiYmluZyIsInN1Y2siLCJzd2FzdGljYSIsInN3YXN0aWNhcyIsInN3YXN0aWthIiwidGl0cyIsInRpdHN1Y2tlciIsInRpdHR5IiwidGl0dHlmaWRsZXIiLCJ0d2F0IiwidHdhdG11bmNoZXIiLCJ2YWdpbmEiLCJ3YW5rIiwid2Fua2VyIiwid2VlZCIsIndob3JlIiwid3Jpc3QiLCI0Y2tpbmciXX19.w-2qPHyYCtgvQXgzbU7KRfixc2p8Ts4hh5u52hLq0qc"};var Kg=(()=>{let i=class i{validateAlphaType(n,o,r){let a=new RegExp(he.pattern.Alpha),s=he.message.global.invalid_custom_alpha,l;return r?l=r:l=he.message.global.required_custom_alpha.replace("%label",o),{valid:a.test(n),validationMessage:s,blankMessage:l}}validateAlphaTextType(n,o){let r=new RegExp(he.pattern.AlphaText),a=he.message.global.invalid_alphatext,s=he.message.global.required_custom_alphaText.replace("%label",o);return{valid:r.test(n),validationMessage:a,blankMessage:s}}validateAlphaNumericType(n){let o=new RegExp(he.pattern.AlphaNumeric),r=he.message.global.invalid_alphanumeric,a=he.message.global.required_alphanumeric;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateNumberType(n,o){let r=new RegExp(o?he.pattern.decimalNumber:he.pattern.numberOnly),a=he.message.global.invalid_number,s=he.message.global.required_number;return{valid:r.test(n),validationMessage:a,blankMessage:s}}validatePhoneNumber(n){let o=new RegExp(he.pattern.AATPhoneNumber),r=he.message.global.invalid_telephone,a=he.message.global.required_telephone;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateEmail(n){let o=new RegExp(he.pattern.email),r=he.message.global.invalid_email,a=he.message.global.required_email;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateWebsite(n){let o=new RegExp(he.pattern.website),r=he.message.global.invalid_website,a=he.message.global.required_website;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateEmailsMatch(n,o){let r=he.message.email.email_mismatch;return{valid:n===o,validationMessage:r}}validatePostcode(n){let o=new RegExp(he.pattern.AATGBPostcode),r=he.message.global.invalid_postcode,a=he.message.global.required_postcode;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validatePasswordChoice(n){let o=new RegExp(he.pattern.hasSmallCase),r=new RegExp(he.pattern.hasNumber),a=new RegExp(he.pattern.hasCapitalCase),s=new RegExp(he.pattern.hasSpecialCharacters),c={minlength:n.length>=8,hasSmallCase:o.test(n),hasCapitalCase:a.test(n),hasNumber:r.test(n),hasSpecialCharacters:s.test(n)},u=he.message.password.password_not_valid,m=he.message.global.required_create_password;return{valid:c.minlength&&o.test(n)&&r.test(n)&&a.test(n)&&s.test(n),validationMessage:u,blankMessage:m,passwordErrors:c}}validatePassword(n){let o=new RegExp(he.pattern.AATPassword),r=he.message.password.password_not_valid,a=he.message.global.required_password;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validatePasswordsMatch(n,o){let r=he.message.password.password_mismatch;return{valid:n===o,validationMessage:r}}validateDateBirth(n){let o=new RegExp(he.pattern.date_ddmmyyyy),r=he.message.global.required_birthdate,a=he.message.global.invalid_birthdate_format,s=new RegExp(he.pattern.date_valid);return o.test(n)&&!s.test(n)&&(a=he.message.global.invalid_birthdate),{valid:o.test(n)&&s.test(n),validationMessage:a,blankMessage:r}}validateFutureDate(n){let o=this.validateDateBirth(n),r=he.message.global.required_birthdate,a=he.message.global.invalid_future_date;return o.valid?{valid:(l=>{let c=l.split("/").reverse();return new Date(c[0],parseInt(c[1])-1,c[2])>=new Date})(n),validationMessage:a}
1690:{valid:o.valid,validationMessage:a,blankMessage:r}}validateSortCode(n){let o=new RegExp(he.pattern.sort_code),r=he.message.global.invalid_sortcode,a=he.message.global.required_sortcode;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validateAccountNumber(n){let o=new RegExp(he.pattern.account_number),r=he.message.global.invalid_account_number,a=he.message.global.required_account_number;return{valid:o.test(n),validationMessage:r,blankMessage:a}}validatePaymentCode(n){let o=new RegExp(he.pattern.payment_code),r=he.message.global.invalid_paymentcode,a=he.message.global.required_paymentcode;return{valid:o.test(n),validationMessage:r,blankMessage:a}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),au=(()=>{let i=class i{constructor(n){this.defaultLayoutConfig=n,this.layoutProperties=this.defaultLayoutConfig}setLayoutConfig(n){this.layoutProperties=M(M({},this.layoutProperties),n)}};i.\u0275fac=function(o){return new(o||i)(U("FullLayoutConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),nm=(()=>{let i=class i{constructor(n,o){this.cmsContentService=n,this.s3GetterService=o,this.khLeftNavData={homeLogo:this.s3GetterService.getUrl({objName:tl.aatLogo}),homeLink:"/myaat/dashboards",externalIcon:"link",externalLabel:"aat.org.uk",externalLink:"https://www.aat.org.uk",items:[]}}getLoggedInNavContent(){return this.cmsContentService.cmsGetMenu("logged-in-nav").pipe(G(n=>{if(n.totalHits>0){let o=n.hits[0];o&&this.khLeftNavData.items.length===0&&(o.links.sort(this.compareElementsWeight),this.khLeftNavData.items=o.links.map(r=>({section:r.title,icon:r.iconName,label:r.title,link:r.path,openInNewTab:r.openInNewTab,items:r.hasChildren?this.generateSubLinks(r.links):[]})))}return this.khLeftNavData}))}compareElementsWeight(n,o){return parseInt(n.weight)<parseInt(o.weight)?-1:parseInt(n.weight)>parseInt(o.weight)?1:0}generateSubLinks(n){return n.map(o=>({section:o.title,icon:o.description,label:o.title,link:o.path,openInNewTab:o.openInNewTab??!1,items:o.hasChildren?this.generateSubLinks(o.links):[]}))}};i.\u0275fac=function(o){return new(o||i)(U(fi),U(il))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),by=(()=>{let i=class i{constructor(){this.notificationClosed=new Un(null),this.notificationClosed$=this.notificationClosed.asObservable()}closeNotification(n){this.notificationClosed.next(n)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),_y={name:"Aberdeen",countries:["Scotland"]},yy={name:"St Albans",countries:["England"]},wy={name:"Birmingham",countries:["England"]},xy={name:"Bath",countries:["England"]},Sy={name:"Blackburn",countries:["England"]},ky={name:"Bradford",countries:["England"]},Ey={name:"Bournemouth",countries:["England"]},Ty={name:"Bolton",countries:["England"]},Iy={name:"Brighton",countries:["England"]},My={name:"Bromley",countries:["England"]},Dy={name:"Bristol",countries:["England"]},Py={name:"Belfast",countries:["Northern Ireland"]},Ry={name:"Carlisle",countries:["England"]},Fy={name:"Cambridge",countries:["England"]},Ay={name:"Cardiff",countries:["Wales"]},Oy={name:"Chester",countries:["England","Wales"]},Ly={name:"Chelmsford",countries:["England"]},Ny={name:"Colchester",countries:["England"]},Vy={name:"Croydon",countries:["England"]},zy={name:"Canterbury",countries:["England"]},By={name:"Coventry",countries:["England"]},Hy={name:"Crewe",countries:["England"]},Gy={name:"Dartford",countries:["England"]},Uy={name:"Dundee",countries:["Scotland"]},jy={name:"Derby",countries:["England"]},Wy={name:"Dumfries",countries:["Scotland"]},$y={name:"Durham",countries:["England"]},qy={name:"Darlington",countries:["England"]},Yy={name:"Doncaster",countries:["England"]},Ky={name:"Dorchester",countries:["England"]},Qy={name:"Dudley",countries:["England"]},Zy={name:"East London",countries:["England"]},Jy={name:"East Central London",countries:["England"]},Xy={name:"Edinburgh",countries:["Scotland"]},ew={name:"Enfield",countries:["England"]},tw={name:"Exeter",countries:["England"]},iw={name:"Falkirk",countries:["Scotland"]},nw={name:"Blackpool",countries:["England"]},ow={name:"Glasgow",countries:["Scotland"]},rw={name:"Gloucester",countries:["England"]},aw={name:"Guildford",countries:["England"]},sw={name:"Harrow",countries:["England"]},lw={name:"Huddersfield",countries:["England"]},cw={name:"Harrogate",countries:["England"]},dw={name:"Hemel Hempstead",countries:["England"]},uw={name:"Hereford",countries:["England","Wales"]},pw={name:"Hebrides",countries:["Scotland"]},hw={name:"Hull",countries:["England"]},gw={name:"Halifax",countries:["England"]},mw={name:"Ilford",countries:["England"]},fw={name:"Ipswich",countries:["England"]},vw={name:"Inverness",countries:["Scotland"]},Cw={name:"Kilmarnock",countries:["Scotland"]},bw={name:"Kingston upon Thames",countries:["England"]},_w={name:"Kirkwall",countries:["Scotland"]},yw={name:"Kirkcaldy",countries:["Scotland"]},ww={name:"Liverpool",countries:["England"]},xw={name:"Lancaster",countries:["England"]},Sw={name:"Llandrindod Wells",countries:["Wales","England"]},kw={name:"Leicester",countries:["England"]},Ew={name:"Llandudno",countries:["Wales"]},Tw={name:"Lincoln",countries:["England"]},Iw={name:"Leeds",countries:["England"]},Mw={name:"Luton",countries:["England"]},Dw={name:"Manchester",countries:["England"]},Pw={name:"Medway",countries:["England"]},Rw={name:"Milton Keynes",countries:["England"]},Fw={name:"Motherwell",countries:["Scotland"]},Aw={name:"North London",countries:["England"]},Ow={name:"Newcastle upon Tyne",countries:["England"]},Lw={name:"Nottingham",countries:["England"]},Nw={name:"Northampton",countries:["England"]},Vw={name:"Newport",countries:["Wales","England"]},zw={name:"Norwich",countries:["England"]},Bw={name:"North West London",countries:["England"]},Hw={name:"Oldham",countries:["England"]},Gw={name:"Oxford",countries:["England"]},Uw={name:"Paisley",countries:["Scotland"]},jw={name:"Peterborough",countries:["England"]},Ww={name:"Perth",countries:["Scotland"]},$w={name:"Plymouth",countries:["England"]}
1690,qw={name:"Portsmouth",countries:["England"]},Yw={name:"Preston",countries:["England"]},Kw={name:"Reading",countries:["England"]},Qw={name:"Redhill",countries:["England"]},Zw={name:"Romford",countries:["England"]},Jw={name:"Sheffield",countries:["England"]},Xw={name:"Swansea",countries:["Wales"]},ex={name:"South East London",countries:["England"]},tx={name:"Stevenage",countries:["England"]},ix={name:"Stockport",countries:["England"]},nx={name:"Slough",countries:["England"]},ox={name:"Sutton",countries:["England"]},rx={name:"Swindon",countries:["England"]},ax={name:"Southampton",countries:["England"]},sx={name:"Salisbury",countries:["England"]},lx={name:"Sunderland",countries:["England"]},cx={name:"Southend-on-Sea",countries:["England"]},dx={name:"Stoke-on-Trent",countries:["England"]},ux={name:"South West London",countries:["England"]},px={name:"Shrewsbury",countries:["England","Wales"]},hx={name:"Taunton",countries:["England"]},gx={name:"Galashiels",countries:["Scotland"]},mx={name:"Telford",countries:["England"]},fx={name:"Tunbridge Wells",countries:["England"]},vx={name:"Torquay",countries:["England"]},Cx={name:"Truro",countries:["England"]},bx={name:"Teesside",countries:["England"]},_x={name:"Twickenham",countries:["England"]},yx={name:"Southall",countries:["England"]},wx={name:"West London",countries:["England"]},xx={name:"Warrington",countries:["England"]},Sx={name:"West Central London",countries:["England"]},kx={name:"Watford",countries:["England"]},Ex={name:"Wakefield",countries:["England"]},Tx={name:"Wigan",countries:["England"]},Ix={name:"Worcester",countries:["England"]},Mx={name:"Walsall",countries:["England"]},Dx={name:"Wolverhampton",countries:["England"]},Px={name:"York",countries:["England"]},Rx={name:"Lerwick",countries:["Scotland"]},HH={AB:_y,AL:yy,B:wy,BA:xy,BB:Sy,BD:ky,BH:Ey,BL:Ty,BN:Iy,BR:My,BS:Dy,BT:Py,CA:Ry,CB:Fy,CF:Ay,CH:Oy,CM:Ly,CO:Ny,CR:Vy,CT:zy,CV:By,CW:Hy,DA:Gy,DD:Uy,DE:jy,DG:Wy,DH:$y,DL:qy,DN:Yy,DT:Ky,DY:Qy,E:Zy,EC:Jy,EH:Xy,EN:ew,EX:tw,FK:iw,FY:nw,G:ow,GL:rw,GU:aw,HA:sw,HD:lw,HG:cw,HP:dw,HR:uw,HS:pw,HU:hw,HX:gw,IG:mw,IP:fw,IV:vw,KA:Cw,KT:bw,KW:_w,KY:yw,L:ww,LA:xw,LD:Sw,LE:kw,LL:Ew,LN:Tw,LS:Iw,LU:Mw,M:Dw,ME:Pw,MK:Rw,ML:Fw,N:Aw,NE:Ow,NG:Lw,NN:Nw,NP:Vw,NR:zw,NW:Bw,OL:Hw,OX:Gw,PA:Uw,PE:jw,PH:Ww,PL:$w,PO:qw,PR:Yw,RG:Kw,RH:Qw,RM:Zw,S:Jw,SA:Xw,SE:ex,SG:tx,SK:ix,SL:nx,SM:ox,SN:rx,SO:ax,SP:sx,SR:lx,SS:cx,ST:dx,SW:ux,SY:px,TA:hx,TD:gx,TF:mx,TN:fx,TQ:vx,TR:Cx,TS:bx,TW:_x,UB:yx,W:wx,WA:xx,WC:Sx,WD:kx,WF:Ex,WN:Tx,WR:Ix,WS:Mx,WV:Dx,YO:Px,ZE:Rx},GH=Object.freeze({__proto__:null,AB:_y,AL:yy,B:wy,BA:xy,BB:Sy,BD:ky,BH:Ey,BL:Ty,BN:Iy,BR:My,BS:Dy,BT:Py,CA:Ry,CB:Fy,CF:Ay,CH:Oy,CM:Ly,CO:Ny,CR:Vy,CT:zy,CV:By,CW:Hy,DA:Gy,DD:Uy,DE:jy,DG:Wy,DH:$y,DL:qy,DN:Yy,DT:Ky,DY:Qy,E:Zy,EC:Jy,EH:Xy,EN:ew,EX:tw,FK:iw,FY:nw,G:ow,GL:rw,GU:aw,HA:sw,HD:lw,HG:cw,HP:dw,HR:uw,HS:pw,HU:hw,HX:gw,IG:mw,IP:fw,IV:vw,KA:Cw,KT:bw,KW:_w,KY:yw,L:ww,LA:xw,LD:Sw,LE:kw,LL:Ew,LN:Tw,LS:Iw,LU:Mw,M:Dw,ME:Pw,MK:Rw,ML:Fw,N:Aw,NE:Ow,NG:Lw,NN:Nw,NP:Vw,NR:zw,NW:Bw,OL:Hw,OX:Gw,PA:Uw,PE:jw,PH:Ww,PL:$w,PO:qw,PR:Yw,RG:Kw,RH:Qw,RM:Zw,S:Jw,SA:Xw,SE:ex,SG:tx,SK:ix,SL:nx,SM:ox,SN:rx,SO:ax,SP:sx,SR:lx,SS:cx,ST:dx,SW:ux,SY:px,TA:hx,TD:gx,TF:mx,TN:fx,TQ:vx,TR:Cx,TS:bx,TW:_x,UB:yx,W:wx,WA:xx,WC:Sx,WD:kx,WF:Ex,WN:Tx,WR:Ix,WS:Mx,WV:Dx,YO:Px,ZE:Rx,default:HH}),UH=(()=>{let i=class i{constructor(n,o){this.http=n,this.config=o}search(n){return this.http.get(this.config.environment.API_URL+"/location/pca-find/"+n,this.createHeaders()).pipe(ye(this.handleError))}getPostcode(n){let o=encodeURI(this.config.environment.API_URL+"/location/pca-retrieve/"+n);return this.http.get(o,this.createHeaders()).pipe(ye(this.handleError))}createHeaders(){return{headers:new St({"Content-Type":"application/json"})}}handleError(n){let o=n.message?n.message:n.toString();return yt(o)}isPostcodeCountry(n,o){if(!n)return!1;let r=n.toUpperCase().substring(0,2).replace(/[^a-zA-Z]/g,""),a=GH[r];return a?a.countries.includes(o):!1}};i.\u0275fac=function(o){return new(o||i)(U(kt),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),jH=(()=>{let i=class i{constructor(n,o,r,a){this.httpClient=n,this.contactService=o,this.basketService=r,this.config=a,this.registrationData={registrationId:null,contactId:null,basket:null,contact:null,employerOrganisationId:null,employerName:null,hasEmployer:null,shareWithEmployer:null,programmeRegistration:null,paymentCode:null,paymentMethod:null},this.redirectPath={destinationPath:this.config.environment.BASE_URL+"/registration/confirmation",failedPaymentPath:this.config.environment.BASE_URL+"/registration/student/payment",errorPath:this.config.environment.BASE_URL+"/registration/student/error",paymentAddress:null}}setRegistrationIds(n,o=null){this.registrationData.contactId=n,this.registrationData.registrationId=o}updateRegistration(n){let o=this.registrationData.programmeRegistration?.map(r=>r.qualificationId).indexOf(n.qualificationId)??-1;if(o>-1){let r=M({},this.registrationData.programmeRegistration[o]);this.registrationData.programmeRegistration[o]=M(M({},r),n)}else this.registrationData.programmeRegistration?.push(n);this.putRegistration()?.subscribe(()=>{})}setRegistrationData(n,o=!0){o&&n.basket!=null&&(this.registrationData.basket=n.basket),n.contact!=null&&(this.registrationData.contact=n.contact),n.programmeRegistration!=null&&(this.registrationData.programmeRegistration=n.programmeRegistration),n.shareWithEmployer!=null&&(this.registrationData.shareWithEmployer=n.shareWithEmployer),n.employer!=null&&(this.registrationData.employerOrganisationId=n.employer),n.employerOrganisationId!=null&&(this.registrationData.employerOrganisationId=n.employerOrganisationId),n.employerName!=null&&(this.registrationData.employerName=n.employerName),n.hasEmployer!=null&&(this.registrationData.hasEmployer=n.hasEmployer),n.paymentCode!=null&&(this.registrationData.paymentCode=n.paymentCode),n.paymentMethod!=null&&(this.registrationData.paymentMethod=n.paymentMethod)}setBasketData(n){this.registrationData.basket=n.map(o=>o.topLevelComponentId)}setPaymentData(n){localStorage.setItem("paymentMethod",n.paymentType),n.paymentType==="card"&&(this.registrationData.paymentCode=null,this.registrationData.paymentMethod=n.paymentType,this.redirectPath.paymentAddress=n.paymentAddress),n.paymentType==="code"&&(this.registrationData.paymentCode=n.paymentCode,this.registrationData.paymentMethod=n.paymentType)}setContactData(n){this.registrationData.contact=Object.assign(this.registrationData.contact||{},n)}setProgrammeRegistration(n,o){this.registrationData.programmeRegistration=o.map((r,a)=>{let s=n["basketItem"+a];return{trainingProviderOrganisationId:s.radio1==="Yes"?s.radio1YesInput1.id:s.radio1,qualificationId:r.topLevelComponentId,startingLevel:s.startingLevel&&s.startingLevel.value||(r.topLevelComponentId==="2a174f81-a055-e511-80c2-00155d220a0c"?"2c174f81-a055-e511-80c2-00155d220a0c":r.programmeComponentId),epaRegisteredOn:s.epaRegisteredOn}})}setEmployerId(n){this.registrationData.shareWithEmployer=n}setEmployer(n,o,r){this.registrationData.employerOrganisationId=n,this.registrationData.employerName=o,this.registrationData.hasEmployer=r}getRegistrationData(){return this.registrationData}dropUnwantedPropertiesAndReturnData(){let n=Object.assign({},this.registrationData);return n.contact&&n.contact.uln==null&&delete n.contact.uln,n.contact&&n.contact.scn==null&&delete n.contact.scn,n&&n.contact&&!Object.keys(n.contact).length&&delete n.contact,n}getRegIdFromContact(n){return this.httpClient.get(this.config.environment.API_URL+"/registration/contact/"+n)}getRegId(){if(!this.getRegId$){let n=this.contactService.contactId()??null,o=r=>a=>{this.regId=a,this.setRegistrationIds(n,a),sessionStorage.setItem("registrationId",a),r.next(a),r.complete()};this.getRegId$=new Ea(r=>{let a=o(r);if(sessionStorage.getItem("registrationId")&&sessionStorage.getItem("registrationId")!=="null")return a(sessionStorage.getItem("registrationId"));if(this.regId)return a(this.regId);let s=this.getRegistrationData();if(s&&s.registrationId)return a(s.registrationId);if(n)this.getRegIdFromContact(n).subscribe(l=>a(l.registrationId),l=>{this.setRegistrationIds(n),this.setBasketData(this.basketService.getBasket()),this.register().subscribe(c=>
1690(sessionStorage.setItem("registrationId",c.registrationId),this.setRegistrationIds(n,c.registrationId),a(c.registrationId)),c=>r.error(c))});else return a(null)}).pipe(ym())}return this.getRegId$}register(){return this.httpClient.post(this.config.environment.API_URL+"/registration/",this.dropUnwantedPropertiesAndReturnData())}getRegistration(n=null){return n||this.registrationData.registrationId?this.httpClient.get(`${this.config.environment.API_URL}/registration/${n||this.registrationData.registrationId}`):W(void 0)}putRegistration(){if(this.registrationData.registrationId)return this.httpClient.put(this.config.environment.API_URL+"/registration/"+this.registrationData.registrationId,this.dropUnwantedPropertiesAndReturnData())}postRegistration(){return this.httpClient.post(this.config.environment.API_URL+"/registration/"+this.registrationData.registrationId+"/transaction",this.redirectPath)}delRegistration(n){return this.httpClient.delete(this.config.environment.API_URL+"/registration/"+n)}verifyPaymentCode(n,o){return this.httpClient.post(this.config.environment.API_URL+"/payment-code/verify",{paymentCode:n,organisationId:o})}};i.\u0275fac=function(o){return new(o||i)(U(kt),U(tm),U(ru),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),WH=(()=>{let i=class i{constructor(){this.selectedItem=new Fe({id:null,label:"",data:null}),this.currentSelectedItem=this.selectedItem.asObservable()}search(n){return W(this._search(n))}_search(n){if(n==="err")throw new Error("testing error handler");n=n.toLowerCase();let o=FH.filter(a=>a.name.toLowerCase().indexOf(n)!==-1),r=[];return o.forEach((a,s)=>{let l={id:a.id,label:a.name,data:a.id};r.push(l)}),r}onSubmit(n){this.selectedItem.next(n)}getSelectedItem(){return this.selectedItem}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),$H=(()=>{let i=class i{constructor(n,o){this.http=n,this.config=o,this.isStaff=!1,this.isAdmin=!1}getRequestOptions(){return{headers:new St({"Content-Type":"application/json"})}}getTrainingProvider(n){if(!n){let o=JSON.parse(sessionStorage.getItem("centre"));if(!o)return yt("A centre has not been chosen");n=o.organisationId}return this.trainingProvider&&this.trainingProvider.organisationId===n?W(this.trainingProvider):this.http.get(this.config.environment.API_URL+"/training-provider/"+n,this.getRequestOptions()).pipe(G(o=>{let r=o;if(r.draftVersion){let a=["amenities","eavContact","media","metaDescription","intPartnerships","qualifications","metaKeywords","tpDescription","logo","courses","assessments","openDays","heading1","heading2","tpContact","awards","heading2","pathAlias"];for(let s of a)r.draftVersion[s]&&(r[s]=r.draftVersion[s])}return r}),ye(this.handleObservableError))}getTrainingProviders(n){let o=this.getRequestOptions();return n&&(o.params=n),this.http.get(this.config.environment.API_URL+"/training-provider",o).pipe(ye(this.handleObservableError))}getTrainingProviderNames(n){let o=this.getRequestOptions();return this.http.post(`${this.config.environment.API_URL}/organisation/filter`,{organisationIds:n},o).pipe(G(r=>r?.map(a=>({name:a.name,organisationId:a.organisationId}))),ye(this.handleObservableError))}isPremium(n,o){return o==="eav"?!1:this.getSubscriptionByType(n,"Training Provider").level==="Premium"}isAdvantage(n,o){let r;return o==="eav"&&(r="External Assessment Venue"),o==="tp"&&(r="Training Provider"),this.getSubscriptionByType(n,r).level==="Advantage"}getSubscriptionByType(n,o){return n.subscriptions.filter(a=>a.type===o)[0]}save(n){return this.http.patch(this.config.environment.API_URL+"/training-provider/"+n.organisationId,JSON.stringify(n),this.getRequestOptions())}getCentreByPath(n){return this.http.get(`${this.config.environment.API_URL}/training-provider/path/${n}`).pipe(G(o=>o),ye(o=>W(o)))}handleObservableError(n){let o=n;return typeof n=="string"?Promise.reject(o):Promise.reject('The service is currently unavailable. Please try again later. If the problem persists contact us at <a href="mailto:[email protected]">[email protected]</a> or call <strong>
1690+44 (0)20 3735 2443</strong>.')}createAnalyticsEvent(n,o){return this.http.post(`${this.config.environment.API_URL}/training-provider/reporting/create-event`,JSON.stringify({organisationId:n,eventType:o}),this.getRequestOptions())}centreReportingSearch(n,o,r,a=!1){return this.http.post(`${this.config.environment.API_URL}/training-provider/reporting/centre-search/${n}`,JSON.stringify({dateFrom:o,dateTo:r,includePreviousPeriod:a}),this.getRequestOptions())}};i.\u0275fac=function(o){return new(o||i)(U(kt),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),qH=(()=>{let i=class i{constructor(n,o,r){this.http=n,this.config=o,this.ssrCookieService=r}createHeaders(n=!1){let o={Authorization:this.ssrCookieService.get("access_token")};return n&&(o["Content-Type"]="application/json"),{headers:new St(o)}}upload(n){return this.http.post(this.config.environment.API_URL+"/attachment",n,this.createHeaders()).pipe(G(o=>o))}uploadToSharePoint(n){return this.http.post(this.config.environment.API_URL+"/attachment/upload",n,this.createHeaders()).pipe(G(o=>o))}deleteFromSharePoint(n){return this.http.delete(this.config.environment.API_URL+"/attachment/deleteupload/"+n,this.createHeaders(!0)).pipe(G(o=>o),ye(o=>this.handleError(o)))}delete(n){return this.http.delete(this.config.environment.API_URL+"/attachment/"+n,this.createHeaders(!0)).pipe(G(o=>o))}handleError(n){return yt(()=>n.status?`${n.status} - ${n.statusText}`:"Server Error")}};i.\u0275fac=function(o){return new(o||i)(U(kt),U("fabricServicesConfig"),U(ir))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),YH=(()=>{let i=class i{constructor(n){this.ssrCookieService=n}createHeaders(n=null){let o={headers:new St({"Content-Type":"application/json"})};return n&&o.headers.set("Authorization",n),o.headers}handleError(n){return yt(()=>n.status?`${n.status} - ${n.statusText}`:"Server Error")}};i.\u0275fac=function(o){return new(o||i)(U(ir))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),KH=(()=>{let i=class i{constructor(n){this.fb=n,this._form=new en({}),this.reset()}get form(){return this._form}addToForm(n,o){this.form.addControl(n,o)}reset(){this._form=this.fb.group({})}};i.\u0275fac=function(o){return new(o||i)(U(cs))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),om=(()=>{let i=class i{constructor(n,o,r,a){this.http=n,this.cacheService=o,this._platformId=r,this.config=a,this._headers={headers:new St({"Content-Type":"application/json"})},this._isBrowser=Ee(this._platformId)}getConfiguration(){return this.cacheService.cacheObservable("configuration",this.http.get(this.config.environment.API_URL+"/configuration/latest/frontend",this._headers),1800,!1)}enableOrDisableCrmServices(n){return this.http.post(`${this.config.environment.API_URL}/configuration/downtime-management`,JSON.stringify({disableServices:n}))}getFeature(n){return this._isBrowser?this.getConfiguration().pipe(G(o=>o[n])):W(void 0)}isFeatureEnabled(n){return this._isBrowser?this.getConfiguration().pipe(G(o=>o[n]?.enabled)):W(void 0)}};i.\u0275fac=function(o){return new(o||i)(U(kt),U(ba),U(De),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),QH=(()=>{let i=class i{get httpOptions(){return{headers:new St({"Content-Type":"application/json"})}}constructor(n){this.config=n,this.qualsTreeUrl="qualification/tree/by",this.http=F(kt)}getQualsTreeData(n){return this.http.post(`${this.config.environment.API_URL}/${this.qualsTreeUrl}/level`,n,this.httpOptions).pipe(wm(1),ye(o=>o.status===404?(console.log("Not found: No data"),yt(o)):W([])))}getResits(n,o){return this.http.get(`${this.config.environment.API_URL}/qualification/resit/${n}/${o}`,this.httpOptions).pipe(G(r=>{for(let a of r)if(a.scheduledassessmentdate){let s=a.scheduledassessmentdate.split("/");a.scheduledassessmentdate=new Date(+s[2],s[1]-1,+s[0])}return r}),ye(this.errorHandler))}getQualsTreeDataBy(n,o){return this.http.post(`${this.config.environment.API_URL}/${this.qualsTreeUrl}/${n}`,o,this.httpOptions).pipe(ye(this.errorHandler))}getProgrammesByOrganizationId(n,o){return this.http.get(this.config.environment.API_URL+`/qualification/tp-qualifications/${n}/${o||""}`,this.httpOptions)}getProgrammesByIndex(n,o){return this.http.get(this.config.environment.API_URL+"/qualification/by/"+n+"/"+o,this.httpOptions).pipe(G(r=>r))}readMultipleById(n){return this.http.post(this.config.environment.API_URL+"/qualification/readMultipleById/",JSON.stringify(n),this.httpOptions).pipe(G(o=>o))}readMultipleQualsById(n){return this.http.post(`${this.config.environment.API_URL}/qualification/readMultipleById`,n,this.httpOptions).pipe(G(o=>o))}errorHandler(n){let o="";return n.error instanceof ErrorEvent?o=`An Error occurred: ${n.error.message}`:o=`Server returned code: ${n.status}, error message: ${n.message}`,console.error(o),yt(o)}};i.\u0275fac=function(o){return new(o||i)(U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),ZH=(()=>{let i=class i{constructor(n){this.config=n,this.apiPrefix="application",this.http=F(kt),this.createHeaders=()=>({headers:new St({"Content-Type":"application/json"})})}getMembershipApplications(n){return this.http.get(`${this.config.environment.API_URL}/${this.apiPrefix}/?customerId=${n}`,this.createHeaders()).pipe(G(o=>o))}};i.\u0275fac=function(o){return new(o||i)(U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),_ae=(()=>{let i=class i{static forRoot(n){return{ngModule:i,providers:[{provide:"fabricServicesConfig",useValue:n},ru,VH,zH,im,Kg,Ft,au,nm,by,UH,jH,WH,em,QH,$H,tm,qH,il,YH,KH,om,ba,ZH]}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[Au(Ou())]});let e=i;return e})(),JH="C0002";function XH(e){let i=e.split("?")[0].split("#")[0],t=[[/^\/myaat\/login\/p
1690assword-reset\/.+/,"/myaat/login/password-reset"],[/^\/myaat\/login\/password-change\/.+/,"/myaat/login/password-change"],[/^\/myaat\/login\/[^/]+$/,"/myaat/login"],[/^\/search\/.+/,"/search"],[/^\/training-providers\/[^/]+(\/[^/]+)?$/,"/training-providers/detail"],[/^\/assessment-venues\/[^/]+(\/[^/]+)?$/,"/assessment-venues/detail"],[/^\/knowledge-hub\/content\/[^/]+\/[^/]+/,"/knowledge-hub/content"],[/^\/knowledge-hub\/categories\/.+/,"/knowledge-hub/categories"],[/^\/knowledge-hub\/resources\/.+/,"/knowledge-hub/resources"],[/^\/knowledge-hub\/author\/.+/,"/knowledge-hub/author"],[/^\/my-qualifications\/statement-of-achievement\/soa-details(\/.*)?$/,"/my-qualifications/statement-of-achievement/soa-details"]];for(let[n,o]of t)if(n.test(i))return o;return i}var ly=(()=>{let i=class i{constructor(n){this.config=n,this.rum=null}init(n,o){if(window.location.hostname==="localhost"){console.log("[RUM] Running on localhost, RUM will NOT be initialised");return}if(this.rum||!n.appMonitorId)return;let r={sessionSampleRate:.1,identityPoolId:n.identityPoolId,endpoint:"https://dataplane.rum.eu-west-1.amazonaws.com",telemetries:["performance","errors",["http",{addXRayTraceIdHeader:!0}]],allowCookies:o,enableXRay:!0,debug:this.config.environment.STAGE!=="production",sessionEventLimit:500};try{this.rum=new Qh(n.appMonitorId,"1.0.0","eu-west-1",r),console.warn("[RUM] Initialised with cookies",o)}catch(a){console.warn("[RUM] Failed to initialise:",a)}}recordPageView(n){this.rum?.recordPageView({pageId:n})}updateCookieConsent(n){this.rum?.allowCookies(n),console.warn("[RUM] Updated cookie consent:",n)}static hasAnalyticsConsent(n){return n.split(",").map(o=>o.trim()).includes(JH)}};i.\u0275fac=function(o){return new(o||i)(U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),eG=(()=>{let i=class i{constructor(n){this.document=n}updateHeaderTagLinks(n){this.updateCanonicalLink(n),this.updateOGUrl(n)}updateCanonicalLink(n){let o=this.document.head.querySelector("link[rel='canonical']")||this.document.head.appendChild(this.document.createElement("link"));o.rel="canonical",o.href=n}updateOGUrl(n){let o=this.document.head.querySelector("meta[name='og:url']")||this.document.head.appendChild(this.document.createElement("meta"));o.content=n,o.name="og:url"}};i.\u0275fac=function(o){return new(o||i)(U(Ze))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),tG=(()=>{let i=class i{constructor(n,o){this.http=n,this.config=o}loadSuggestions(n){return this.http.get(this.config.environment.API_URL+"/location/google-place/"+n,{headers:new St({"Content-Type":"application/json"})})}getPostcodeByLocation(n){return this.http.get(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${n}&key=${this.config.environment.GOOGLE_MAPS_KEY}`).toPromise().then(o=>o).catch(o=>console.warn(o))}currentFormattedLocation(n){return new RegExp(/[a-zA-Z]/).test(n)?n:"your current location"}};i.\u0275fac=function(o){return new(o||i)(U(kt),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),yae=(()=>{let i=class i{constructor(n,o,r,a,s,l,c){this.router=n,this.route=o,this.title=r,this.meta=a,this.cmsContentService=s,this.headerTagService=l,this.config=c,this.router.events.pipe(Ci(u=>u instanceof Yt),G(()=>{let u=this.route.snapshot;for(;u.firstChild;)u=u.firstChild;return u})).subscribe(u=>{this.routeSnapshot=u;let m=this._getCmsContentFromSnapshot(),v=this.getCanonicalUrl(),C=this.getSeoTitleFromContent(),_=m?.pageType,E=this.formatSeoTitle(C,_);if(this.setPageTitle(E),v!==null&&this.headerTagService.updateHeaderTagLinks(v),m){let D=!!m.excludeFromGoogleIndex,P=sy(m.summary),T=this._buildImageData(m),O={canonicalUrl:v,seoTitle:E,summary:P,imageData:T,excludeFromIndex:D},K=this.generateMetaData(O);this.addMetaTags(K)}})}generateMetaData({canonicalUrl:n,seoTitle:o,summary:r,imageData:a,excludeFromIndex:s=!1}){let l;r instanceof eu?l=r:(console.warn(` 1691 Drupal tags have not been removed from cms content "summary" field. 1692 Make sure CMS content is sanitized before rendering calling MetaDataService.generateMetaData or other rending of CMS content. 1693 `),l=sy(r));let c=`${l}`;n=n||this.getCanonicalUrl();let u=[{name:"format-detection",content:"telephone=no"},{property:"og:site_name",content:"AAT"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@YourAAT"},{name:"twitter:creator",content:"@YourAAT"},{name:"twitter:title",content:o},{name:"twitter:description",content:c},{name:"og:title",content:o},{name:"og:type",content:"article"},{name:"title",property:"og:title",content:o},{name:"description",property:"og:description",content:c},{name:"og.description",content:c},{name:"whatsapp:title",content:o},{name:"whatsapp:description",content:c}];if(n&&u.push({name:"og:url",content:n}),s&&u.push({name:"robots",content:"noindex, nofollow"}),a){let m=this.cmsContentService.handleImageLocation(a.uri,"medium"),v=this.cmsContentService.handleImageLocation(a.uri,"small"),C=this.cmsContentService.handleImageLocation(a.uri,"thumbnail"),_=a.alt,E=a.type,D=[{name:"name",property:"og:image",content:m},{name:"image",property:"og:image",content:C},{name:"image",property:"og:image:type",content:E},{name:"image",property:"og:image:alt",content:_},{name:"image",property:"og:image:secure_url",itemprop:"image",content:m}
1693,{name:"image",property:"og:image:width",content:"1200"},{name:"image",property:"og:image:height",content:"630"},{name:"image",property:"og:image:secure_url",itemprop:"image",content:C},{name:"image",property:"og:image:width",content:"150"},{name:"image",property:"og:image:height",content:"80"},{name:"image",property:"og:image:secure_url",itemprop:"image",content:v},{name:"twitter:image",content:m},{name:"image",property:"og:image:width",content:"600"},{name:"image",property:"og:image:height",content:"300"},{name:"image",property:"og:image:secure_url",itemprop:"image",content:C},{name:"image",property:"og:image:width",content:"300"},{name:"image",property:"og:image:height",content:"200"},{name:"image",property:"og:locale",content:"en_GB"},{name:"whatsapp:image",content:C},{name:"thumbnail",content:C}];u=u.concat(D)}return u}addMetaTags(n){this.meta.addTags(n)}setPageTitle(n){this.title.setTitle(n)}_buildImageData(n){return n.pageType==="news_content_type"&&n.mainImage?{uri:n.mainImage.uri,alt:n.mainImage.alt,type:"image"}:n.socialMediaImage?{type:n.socialMediaImage.type,uri:n.socialMediaImage.imageContent.uri,alt:n.socialMediaImage.imageContent.alt}:null}getSeoTitleFromContent(){let n=this._getCmsContentFromSnapshot();return n?.seoTitle||n?.metaTags?.title||""}formatSeoTitle(n,o){let r="| AAT",a="news";return n?n==="AAT"?n:o&&o==="news_content_type"?`${n} ${r} ${a}`:`${n} ${r}`:"AAT"}_getCanonicalUrlFromRouteData(){let o=this._getCmsContentFromSnapshot()?.metaTags?.canonicalUrl;return typeof o=="string"?o:null}_buildCanonicalUrlFromPath(n,o){let r=n.map(a=>a.url.map(s=>s.toString()).join("/")).filter(a=>a).join("/");return`${o}/${r}`}_getCmsContentFromSnapshot(){return this.routeSnapshot?.data?.cmsContent?.hits?.[0]}getCanonicalUrl(){let n=this._getCanonicalUrlFromRouteData();return n||this._buildCanonicalUrlFromPath(this.routeSnapshot.pathFromRoot,this.config.environment.BASE_URL)}};i.\u0275fac=function(o){return new(o||i)(U(rt),U(Lt),U(Tl),U(Qm),U(fi),U(eG),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var iG=(()=>{let i=class i{constructor(n,o,r,a){this.httpClient=n,this.authService=o,this.cacheService=r,this.config=a,this.sessionKey="closed_notifications",this._headers={headers:new St({"Content-Type":"application/json"})},this.sessionClosedNotifications=this.cacheService.get(this.sessionKey)||[]}closeNotification(n,o){return this._convertToHash(o).pipe(it(r=>{switch(n){case"persistent":return this.authService.getCurrentUser().pipe(Ot(1),it(a=>this.httpClient.post(this.config.environment.API_URL+"/banner-notifications-preferences/",{contactId:a["custom:contact_id"],data:r},this._headers)),G(a=>{this.cacheService.invalidate(s=>s.endsWith("-notifications")),console.log("Notification preference stored",a)}));case"session":this.sessionClosedNotifications.push(r),this.cacheService.set(this.sessionKey,this.sessionClosedNotifications,0);break}}))}checkIfClosed(n){try{return this.sessionClosedNotifications?.length?this._convertToHash(n).pipe(G(o=>this.sessionClosedNotifications.includes(o))):W(!1)}catch(o){return console.error(o),W(!1)}}_convertToHash(n){let r=new TextEncoder().encode(n.message);return At(crypto.subtle.digest("SHA-256",r)).pipe(G(a=>Array.from(new Uint8Array(a)).map(c=>c.toString(16).padStart(2,"0")).join("")))}};i.\u0275fac=function(o){return new(o||i)(U(kt),U(Eo),U(ba),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var Fx=(()=>{let i=class i{createHeaders(){return{headers:new St({"Content-Type":"application/json"})}}constructor(n,o,r){this.httpClient=n,this.cmsContentService=o,this.config=r,this.environment=this.config.environment}getCmsData(n){return this.httpClient.get(`${this.config.environment.API_URL}/content/node/?ids=`+n.join(","),this.createHeaders()).pipe(G(o=>!o||o.totalHits<1?[]:o.hits))}getProductCardMediumData(n){return this.getCmsData(n).pipe(G(o=>o.filter(a=>a.productDetails).sort((a,s)=>n.indexOf(a.nid)-n.indexOf(s.nid)).map(a=>({url:a.pathAlias,level:a.productDetails[0].level,duration:a.durationFePlainText,title:a.title,summary:a.summary,assessmentFees:a.productDetails[0].assessmentFees,scottishQualName:a.productDetails[0].scottishQualLevel,programmeComponentId:a.productPageProduct?a.productPageProduct[0].programmeComponentId:null,imageUrl:a.socialMediaImage?this.cmsContentService.handleImageLocation(a.socialMediaImage.imageContent.uri,"small"):null}))))}getEligibility(n,o){return this.httpClient.post(`${this.config.environment.API_URL}/eligibility/`,{type:"student",contactId:n,registeringOn:o},this.createHeaders())}};i.\u0275fac=function(o){return new(o||i)(U(kt),U(fi),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var nG=(()=>{let i=class i{constructor(n){this.elRef=n}onClick(){this.elRef.nativeElement.blur()}};i.\u0275fac=function(o){return new(o||i)(I(ft))},i.\u0275dir=ce({type:i,selectors:[["","fab-blur",""]],hostBindings:function(o,r){o&1&&R("click",function(){return r.onClick()})}});let e=i;return e})(),Ve=(()=>{let i=class i{constructor(){this.enabled=!0,this._gtmService=F(Ft)}ngOnInit(){if(this.button||console.error("Please ensure you provide button configuration"),this.button.text&&this.button.glyph&&!this.button.glyph.glyphPosition&&(this.button.glyph.glyphPosition="left"),!this.button.gtmData){let n={event:"button_click",buttonLabel:this.button.text};this.button.action.type==="link"&&(n.buttonDestination=this.button.action.link),this.button.gtmData=n}}buttonClick(){!this.enabled||this.button.disabled||(this.button.gtmData&&this._captureGTMData(),this.button.action.type==="callback"&&this.button.action.callback())}_captureGTMData(){this._gtmService.push(this.button.gtmData)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-button"]],inputs:{button:"button",enabled:"enabled"},decls:5,vars:1,consts:[["commonButtonContent",""],["fab-blur","",3,"class","ngClass"],["fab-blur","",3,"class","ngClass","routerLink","target"],["fab-blur","",3,"class","ngClass","target"],["fab-blur","",3,"click","ngClass"],[4,"ngTemplateOutlet"],["fab-blur","",3,"click","ngClass","routerLink","target"],["fab-blur","",3,"click","ngClass","target"],[3,"class"],[1,"fab-button__copy__text"]],template:function(o,r){o&1&&(y(0,oL,2,9,"button",1)(1,aL,2,12,"a",2)(2,lL,2,12,"a",3),H(3,uL,3,7,"ng-template",null,0,Xt)),o&2&&w(r.button.action.type==="callback"?0:r.button.action.useRouterLink?1:2)},dependencies:[Ct,Vt,J,Ie,wr,nG],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-button[_ngcontent-%COMP%]{display:inline-block;transition:all .2s ease-in-out;font-weight:600;padding:0}.fab-button--primary[_ngcontent-%COMP%]{text-decoration:none;text-align:center;color:#000;cursor:pointer;border-radius:4px;border:2px solid transparent;background-color:#008048;color:#fff}.fab-button--primary[_ngcontent-%COMP%]:hover{background-color:#0a5c50;color:#fff;text-decoration:none}.fab-button--primary[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--primary[_ngcontent-%COMP%]:focus{background-color:#0a5c50;color:#fff;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--primary[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--primary--disabled[_ngcontent-%COMP%]{background-color:#bfbfbf;color:#fff;cursor:default;pointer-events:none}.fab-button--primary[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.fab-button--secondary[_ngcontent-%COMP%]{text-decoration:none;text-align:center;color:#000;cursor:pointer;border-radius:4px;border:2px solid #bfbfbf;background-color:#fff}.fab-button--secondary[_ngcontent-%COMP%]:hover{border-color:#000;color:#000;text-decoration:none}.fab-button--secondary[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--secondary[_ngcontent-%COMP%]:focus{border-color:#000;color:#000;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--secondary[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--secondary--disabled[_ngcontent-%COMP%]{border-color:#bfbfbf;color:#bfbfbf;cursor:default;pointer-events:none}.fab-button--secondary--full[_ngcontent-%COMP%]{width:100%;justify-content:center}.fab-button--secondary[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.fab-button--text[_ngcontent-%COMP%]{background:none;border:none;font-weight:600;color:#008048;text-decoration:none}.fab-button--text[_ngcontent-%COMP%]:hover{color:#0a5c50;text-decoration:underline;text-decoration:none}.fab-button--text[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--text[_ngcontent-%COMP%]:focus{color:#0a5c50;text-decoration:underline;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--text[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--text--disabled[_ngcontent-%COMP%]{color:#bfbfbf;cursor:default;pointer-events:none}.fab-button--text[_ngcontent-%COMP%] .fab-button__copy[_ngcontent-%COMP%]{position:inherit}.fab-button--text[_ngcontent-%COMP%] .fab-button__copy__type-text[_ngcontent-%COMP%]{padding:0}.fab-button--text[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.fab-button--icon-square[_ngcontent-%COMP%]{border-radius:4px;text-decoration:none;text-align:center;align-items:center;justify-content:center;color:#fff;cursor:pointer;font-size:24px;border:2px solid transparent;background-color:#008048}.fab-button--icon-square[_ngcontent-%COMP%]:hover{background-color:#0a5c50;color:#fff;text-decoration:none}.fab-button--icon-square[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--icon-square[_ngcontent-%COMP%]:focus{background-color:#0a5c50;color:#fff;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--icon-square[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--icon-square--disabled[_ngcontent-%COMP%]{background-color:#bfbfbf;color:#fff;cursor:default;pointer-events:none}
1693.fab-button--icon-circle[_ngcontent-%COMP%]{border-radius:50%;text-decoration:none;text-align:center;align-items:center;justify-content:center;color:#fff;cursor:pointer;font-size:24px;border:2px solid transparent;background-color:#008048}.fab-button--icon-circle[_ngcontent-%COMP%]:hover{background-color:#0a5c50;color:#fff;text-decoration:none}.fab-button--icon-circle[_ngcontent-%COMP%]:hover .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline;filter:none}.fab-button--icon-circle[_ngcontent-%COMP%]:focus{background-color:#0a5c50;color:#fff;outline:medium solid #145fc8;outline-offset:4px;text-decoration:none}.fab-button--icon-circle[_ngcontent-%COMP%]:focus .fab-button__copy__text[_ngcontent-%COMP%]{text-decoration:underline}.fab-button--icon-circle--disabled[_ngcontent-%COMP%]{background-color:#bfbfbf;color:#fff;cursor:default;pointer-events:none}.fab-button__copy[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-evenly;align-items:center;padding:10px 14px;min-height:24px}.fab-button__copy__type-icon-square[_ngcontent-%COMP%], .fab-button__copy__type-icon-circle[_ngcontent-%COMP%]{width:22px;height:22px;padding:12px}.fab-button__copy__type-text[_ngcontent-%COMP%]{height:auto}.fab-button__copy--left[_ngcontent-%COMP%]{flex-direction:row}.fab-button__copy--right[_ngcontent-%COMP%]{flex-direction:row-reverse}.fab-button__copy__icon__position-[_ngcontent-%COMP%], .fab-button__copy__icon__position-left[_ngcontent-%COMP%]{margin-right:12px}.fab-button__copy__icon__position-right[_ngcontent-%COMP%]{margin-left:12px}.fab-button[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{top:5%;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-ms-transform-origin:50% 50%;-webkit-animation:spin 1.5s linear infinite;-moz-animation:spin 1.5s linear infinite;-o-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}"]});let e=i;return e})(),oG=(()=>{let i=class i{constructor(){}ngOnInit(){this.isMultipleItems(this.content)?this.content.items.forEach(n=>{n.buttonLinkData=this._createButtonObject(n.linkData)}):this.content.buttonLinkData=this._createButtonObject(this.content.linkData)}isMultipleItems(n){return n&&"items"in n}_createButtonObject(n){return{text:n.linkCta,action:{type:"link",link:n.link,useRouterLink:!1,openInNewTab:n.openInNewTab??!1},type:"text",aria:n.linkCta}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-basic-push"]],inputs:{content:"content"},standalone:!1,decls:2,vars:1,consts:[[1,"basic-push"],[1,"basic-push-wrapper","basic-push"],[1,"basic-push__image"],[3,"href","target"],[3,"src","alt"],[1,"basic-push__body"],[3,"button"]],template:function(o,r){o&1&&y(0,pL,8,10,"div",0)(1,gL,3,0,"div",1),o&2&&w(r.isMultipleItems(r.content)?1:0)},dependencies:[Ve],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.basic-push[_ngcontent-%COMP%]{margin:0 0 15px;font-size:16px}.basic-push[_ngcontent-%COMP%]:last-child{margin-right:0}@media (min-width: 1200px){.basic-push[_ngcontent-%COMP%]{font-size:18px}}@media (min-width: 992px){.basic-push[_ngcontent-%COMP%]{display:flex;margin-right:15px}}.basic-push__image[_ngcontent-%COMP%]{width:calc(50% - 15px);max-width:102px;display:inline-block;margin-right:15px}@media (min-width: 1200px){.basic-push__image[_ngcontent-%COMP%]{max-width:202px}}.basic-push__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;display:block}.basic-push__body[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;width:calc(100% - 120px)}.basic-push__body[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{word-break:break-word}@media (min-width: 1200px){.basic-push__body[_ngcontent-%COMP%]{width:calc(100% - 220px)}}"]});let e=i;return e})(),su=(()=>{let i=class i{transform(n){return new DOMParser().parseFromString(n,"text/html").body.textContent||""}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"htmlStripper",type:i,pure:!0,standalone:!1});let e=i;return e})(),rG=(()=>{let i=class i{constructor(){this.sectionContent={tag:"",image:{url:"",alt:""},type:"",footerTextTop:"",footerTextBottom:""},this.showAuthorImage=!0}ngOnInit(){this.setFooterContent()}setFooterContent(){let n=this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name.toLowerCase().replace(/ /g,"-"):"article";this.content.course&&this.content.course.level.length>0?this.sectionContent={tag:"Level "+this.content.course.level,image:{url:this.content.image?this.content.image.url:null,alt:this.content.image?this.content.image.alt:null},type:n,footerTextTop:this.content.course.duration,footerTextBottom:this.content.course.cost}:this.sectionContent={tag:this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name:"Article",image:{url:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.url:null,alt:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.alt:""},type:n,footerTextTop:this.content.author&&this.content.author[0]?this.content.author[0].title:"Author Unknown",footerTextBottom:this.content.date?this.content.date:null}}setDefaultPic(n){if(n.type==="error"){this.authorInitials="";let o=this.sectionContent.footerTextTop.split(" ");o.length>0&&(o.length==1?this.authorInitials=o[0].charAt(0):this.authorInitials=o[0].charAt(0)+o[1].charAt(0)),this.showAuthorImage=!1}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-results-card"]],inputs:{content:"content"},standalone:!1,decls:2,vars:2,consts:[[1,"card","results-card",3,"href"],[3,"routerLink","class"],[3,"ngClass"],[1,"col-xs-8","col-sm-7"],[1,"results-card__container"],[1,"results-card__content"],[1,"results-card__content--summary",3,"innerHTML"],[1,"card__footer","results-card__footer","results-card__footer"],[1,"card__footer__c
1693ontent","results-card__footer__content",3,"ngClass"],[1,"results-card__author-link",3,"href"],[1,"small"],[1,"col-xs-4","col-sm-5"],[1,"card__tag","horizontal-card__tag"],[1,"card__tag","card__tag--sponsor"],[3,"src","alt"],[1,"results-card__footer--avatar"],[3,"error","src","alt"],[1,"results-card__image",3,"backgroundImage"],[1,"results-card__image"],[3,"routerLink"],[1,"results-card__author-link",3,"routerLink"]],template:function(o,r){o&1&&(y(0,SL,17,20,"a",0),y(1,DL,25,33,"a",1)),o&2&&(w(r.content.useRouterLink?-1:0),d(),w(r.content.useRouterLink?1:-1))},dependencies:[Ie,Vt,Bo,Bd,su],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.results-card[_ngcontent-%COMP%]{width:100%;margin:6px auto;transition:all .3s ease-in-out}.results-card__info-row[_ngcontent-%COMP%]{border:1px solid #dce6f0;border-radius:5px;padding:5px 10px}.results-card__info-row[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}.results-card__container[_ngcontent-%COMP%]{position:relative;margin-right:10px;display:flex;flex-direction:column;height:100%}.results-card__image[_ngcontent-%COMP%]{padding-bottom:68.25%;background-repeat:no-repeat;background-position:center;background-size:cover}@media (min-width: 992px){.results-card__image[_ngcontent-%COMP%]{padding-bottom:56.25%}}.results-card__content[_ngcontent-%COMP%]{padding:10px 0}.results-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .results-card__content[_ngcontent-%COMP%] .results-card__footer--avatar[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;transition:all .3s ease-in-out}.results-card__content--summary[_ngcontent-%COMP%]{font-weight:400;color:#000;min-height:50px}.results-card__footer[_ngcontent-%COMP%]{margin-top:auto}.results-card__footer__content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;overflow:hidden;margin-right:10px;max-width:300px}.results-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.results-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}.results-card__footer--avatar[_ngcontent-%COMP%]{display:block;border-radius:50%;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:39px;height:39px;line-height:40px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center;position:absolute}@media (min-width: 992px){.results-card__footer--avatar[_ngcontent-%COMP%]{font-size:20px}}.results-card[_ngcontent-%COMP%]:focus, .results-card[_ngcontent-%COMP%]:hover{text-decoration:none}@media (min-width: 992px){.results-card[_ngcontent-%COMP%]{max-width:758px}.results-card__container[_ngcontent-%COMP%]{margin:0 auto;padding-top:0}.results-card__content[_ngcontent-%COMP%]{padding:10px 10px 10px 0}}@media (min-width: 1200px){.results-card[_ngcontent-%COMP%]{margin:10px auto;max-width:900px;border-radius:3px}.results-card__container[_ngcontent-%COMP%]{margin-top:0}}']});let e=i;return e})(),aG=(()=>{let i=class i{constructor(n){this.cmsContentService=n,this.sectionContent={tag:"",image:{url:"",alt:""},type:"",footerTextTop:"",footerTextBottom:""},this.showAuthorImage=!0}ngOnInit(){this.updateImages(),this.setFooterContent()}updateImages(){this.content.image?.uri&&(this.content.image.url=this.cmsContentService.handleImageLocation(this.content.image.uri,"small")),this.content.mainImage?.uri&&(this.content.mainImage.url=this.cmsContentService.handleImageLocation(this.content.mainImage.uri,"small")),this.content.author?.[0]?.image&&(this.content.author[0].image.url=this.cmsContentService.handleImageLocation(this.content.author[0].image.uri,"small"))}setFooterContent(){let n=this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name.toLowerCase().replace(/ /g,"-"):"article";this.content.course&&this.content.course.level.length>0?this.sectionContent={tag:"Level "+this.content.course.level,image:{url:this.content.image?.url??null,alt:this.content.image?.alt??null},type:n,footerTextTop:this.content.course.duration,footerTextBottom:this.content.course.cost}:this.sectionContent={tag:this.content.technicalResourceType&&this.content.technicalResourceType.length&&this.content.technicalResourceType[0].name&&this.content.technicalResourceType[0].name!==""?this.content.technicalResourceType[0].name:"Article",image:{url:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.url:null,alt:this.content.author&&this.content.author[0]&&this.content.author[0].image?this.content.author[0].image.alt:""},type:n,footerTextTop:this.content.author&&this.content.author[0]?this.content.author[0].title:"Author Unknown",footerTextBottom:this.content.date?this.content.date:null}}setDefaultPic(n){if(n.type==="error"){this.authorInitials="";let o=this.sectionContent.footerTextTop.split(" ");o.length>0&&(o.length==1?this.authorInitials=o[0].charAt(0):this.authorInitials=o[0].charAt(0)+o[1].charAt(0)),this.showAuthorImage=!1}}};i.\u0275fac=function(o){return new(o||i)(I(fi))},i.\u0275cmp=N({type:i,selectors:[["fab-secondary-card"]],inputs:{content:"content"},standalone:!1,decls:2,vars:2,consts:[[3,"href","class"],[3,"routerLink","class"],[3,"href"],[1,"secondary-card__image",3,"backgroundImage"],[1,"secondary-card__content"],[1,"secondary-card__content--summary",3,"innerHTML"],[1,"card__footer","secondary-card__footer","secondary-card__footer","fixed-bottom"],[1,"card__footer__c
1693ontent","secondary-card__footer__content",3,"ngClass"],[1,"secondary-card__author-link",3,"href"],[3,"src","alt"],[1,"secondary-card__footer--avatar"],[1,"small"],[1,"secondary-card__image"],[1,"card__tag","horizontal-card__tag"],[1,"card__tag","card__tag--sponsor"],[3,"error","src","alt"],[3,"routerLink"],[1,"secondary-card__author-link",3,"routerLink"]],template:function(o,r){o&1&&(y(0,OL,18,26,"a",0),y(1,BL,18,28,"a",1)),o&2&&(w(r.content.useRouterLink?-1:0),d(),w(r.content.useRouterLink?1:-1))},dependencies:[Ie,Vt,Bo,Bd,su],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.secondary-card[_ngcontent-%COMP%]{border-bottom:2px solid rgb(229.5,229.5,229.5);margin:6px;transition:all .3s ease-in-out;height:100%;display:flex;flex-direction:column}.secondary-card__image[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-end;height:188px;background-repeat:no-repeat;background-position:center;background-size:cover}.secondary-card__image[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:6px 4px;margin-bottom:4px;margin-left:4px;margin-right:0}.secondary-card__tag[_ngcontent-%COMP%]{margin:0 4px 0 0}@media (min-width: 992px){.secondary-card__tag[_ngcontent-%COMP%]{margin:0 4px}}.secondary-card__content[_ngcontent-%COMP%]{padding:4px 0}.secondary-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none;margin:10px 0 5px}.secondary-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .secondary-card__content[_ngcontent-%COMP%] .secondary-card__footer--avatar[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial}.secondary-card__content--summary[_ngcontent-%COMP%]{font-weight:400;color:#000}.secondary-card__footer[_ngcontent-%COMP%]{padding-bottom:10px;padding-top:10px;margin-top:auto}.secondary-card__footer__content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;overflow:hidden;margin-right:10px}.secondary-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.secondary-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}.secondary-card__footer--avatar[_ngcontent-%COMP%]{display:block;border-radius:50%;top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:39px;height:39px;line-height:40px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center;position:absolute}@media (min-width: 992px){.secondary-card__footer--avatar[_ngcontent-%COMP%]{font-size:20px}}.secondary-card[_ngcontent-%COMP%]:focus, .secondary-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}@media (min-width: 992px){.secondary-card[_ngcontent-%COMP%]{border:1px solid rgb(229.5,229.5,229.5);min-width:145px;max-width:280px;margin:0 5px;min-height:300px}.secondary-card__content[_ngcontent-%COMP%], .secondary-card__footer[_ngcontent-%COMP%]{padding:10px}}@media (min-width: 1200px){.secondary-card[_ngcontent-%COMP%]{margin:10px;border-radius:3px 3px 0 0;min-width:230px;max-width:350px;min-height:330px}.secondary-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:block}.secondary-card__footer[_ngcontent-%COMP%]{margin-top:auto}.secondary-card__footer__content--image[_ngcontent-%COMP%]{padding-left:50px}.secondary-card__footer__content--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block}}']});let e=i;return e})(),sG=(()=>{let i=class i{constructor(){}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-branch-card"]],inputs:{content:"content"},standalone:!1,decls:23,vars:10,consts:[[1,"card","branch-card"],[1,"row"],[1,"col-xs-12","col-sm-12"],[1,"branch-card__container"],[1,"branch-card__content"],[3,"href"],["target","_blank",3,"href"],[1,"card__social"],["aria-label","The branch's account on LinkedIn",1,"icon-linkedin"],["aria-label","The branch's account on Facebook",1,"icon-facebook"],["aria-label","The branch's account on X (formerly Twitter)",1,"icon-x"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3"),b(6),p(),h(7,"p")(8,"strong"),b(9,"Chairperson: "),p(),b(10),p(),h(11,"p")(12,"strong"),b(13,"Email: "),p(),h(14,"a",5),b(15),p()(),h(16,"p")(17,"a",6),b(18,"See all upcoming branch events"),p()()(),h(19,"div",7),y(20,HL,2,2,"a",6),y(21,GL,2,2,"a",6),y(22,UL,2,2,"a",6),p()()()()()),o&2&&(d(6),A(r.content.title),d(4),q(" ",r.content.chair),d(4),f("href",Wt("mailto:",r.content.email),ee),d(),A(r.content.email),d(2),f("href",Wt("/events/search/results?search=",r.content.title),ee),d(3),w(r.content.linkedin?20:-1),d(),w(r.content.facebook?21:-1),d(),w(r.content.twitter?22:-1))},styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.branch-card[_ngcontent-%COMP%]{width:100%;margin:6px auto;transition:all .3s ease-in-out}.branch-card__container[_ngcontent-%COMP%]{position:relative;margin-right:10px;display:flex;flex-direction:column;height:100%;border:1px solid rgb(229.5,229.5,229.5);justify-content:space-between;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;transition:all .3s ease-in-out;padding:0 10px}.branch-card__content[_ngcontent-%COMP%]{padding:10px 0}
1693.branch-card__content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;transition:all .3s ease-in-out}.branch-card[_ngcontent-%COMP%]:focus, .branch-card[_ngcontent-%COMP%]:hover{text-decoration:none}.branch-card[_ngcontent-%COMP%] .card__social[_ngcontent-%COMP%]{padding-top:12px}.branch-card[_ngcontent-%COMP%] .card__social[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding:5px;font-size:x-large}.branch-card[_ngcontent-%COMP%] .card__social[_ngcontent-%COMP%] i.icon-linkedin[_ngcontent-%COMP%]{color:#0077b5}.branch-card[_ngcontent-%COMP%] .card__social[_ngcontent-%COMP%] i.icon-facebook[_ngcontent-%COMP%]{color:#3b5998}.branch-card[_ngcontent-%COMP%] .card__social[_ngcontent-%COMP%] i.icon-x[_ngcontent-%COMP%]{color:#000}@media (min-width: 768px){.branch-card[_ngcontent-%COMP%] .card__social[_ngcontent-%COMP%]{width:120px}}@media (min-width: 992px){.branch-card[_ngcontent-%COMP%]{max-width:758px}.branch-card__container[_ngcontent-%COMP%]{margin:0 auto;padding-top:0;flex-direction:row}.branch-card__content[_ngcontent-%COMP%]{padding:10px 10px 10px 0}}@media (min-width: 1200px){.branch-card[_ngcontent-%COMP%]{margin:10px auto;max-width:900px;border-radius:3px}.branch-card__container[_ngcontent-%COMP%]{margin-top:0}}"]});let e=i;return e})(),lG=(()=>{let i=class i{constructor(){}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-magazine-card"]],inputs:{content:"content"},standalone:!1,decls:13,vars:9,consts:[[1,"card","magazine-card"],[3,"href"],[1,"row"],[1,"col-xs-8","col-sm-7"],[1,"magazine-card__container"],[1,"magazine-card__content"],[3,"innerHTML"],[1,"col-xs-4","col-sm-5"],[1,"magazine-card__image"],[3,"src"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"a",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),y(6,jL,2,1,"h3"),y(7,WL,2,2,"h3"),x(8,"p",6),Y(9,"htmlStripper"),p()()(),h(10,"div",7)(11,"div",8),x(12,"img",9),p()()()()()),o&2&&(d(),f("href",oe(r.content.pageLink),ee),d(5),w(r.content.listViewTitle?6:-1),d(),w(r.content.listViewTitle?-1:7),d(),f("innerHTML",me(9,7,r.content.summary),te),d(4),f("src",oe(r.content.frontCoverImage==null?null:r.content.frontCoverImage.url),ee))},dependencies:[su],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.magazine-card[_ngcontent-%COMP%]{width:100%;margin:6px auto;transition:all .3s ease-in-out}.magazine-card[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{border:1px solid #dce6f0;border-radius:5px;margin:-10px -5px;padding:5px 10px}.magazine-card[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}.magazine-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .magazine-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.magazine-card__container[_ngcontent-%COMP%]{position:relative;margin-right:10px;display:flex;flex-direction:column;height:100%;transition:all .3s ease-in-out;padding:0 10px}.magazine-card__content[_ngcontent-%COMP%]{padding:10px 0}.magazine-card__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-family:acumin-pro-wide,Arial;transition:all .3s ease-in-out}.magazine-card__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:245px;position:relative;float:right}.magazine-card[_ngcontent-%COMP%]:focus, .magazine-card[_ngcontent-%COMP%]:hover{text-decoration:none}@media (min-width: 992px){.magazine-card[_ngcontent-%COMP%]{max-width:758px}.magazine-card__container[_ngcontent-%COMP%]{margin:0 auto;padding-top:0}.magazine-card__content[_ngcontent-%COMP%]{padding:10px 10px 10px 0}}@media (min-width: 1200px){.magazine-card[_ngcontent-%COMP%]{margin:10px auto;max-width:900px;border-radius:3px}.magazine-card__container[_ngcontent-%COMP%]{margin-top:0}.magazine-card[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin:-20px -5px}}@media (min-width: 768px){.magazine-card[_ngcontent-%COMP%] .card__social[_ngcontent-%COMP%]{display:inline-block;position:absolute;right:0;top:10px;width:140px}}"]});let e=i;return e})(),cG=(()=>{let i=class i{constructor(){}ngOnInit(){}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-vacancy-card"]],inputs:{content:"content"},standalone:!1,decls:3,vars:2,consts:[[1,"container"],[3,"title"],["body","",3,"innerHTML"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"fab-accordion",1),x(2,"div",2),p()()),o&2&&(d(),f("title",r.content.title),d(),f("innerHTML",r.content.body,te))},dependencies:[Jg],encapsulation:2});let e=i;return e})(),Xs=class{constructor(){this.change=new se,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}defaultId(){return this.DEFAULT_ID}register(i){i.id||(i.id=this.DEFAULT_ID),this.instances[i.id]?this.updateInstance(i)&&this.change.emit(i.id):(this.instances[i.id]=i,this.change.emit(i.id))}updateInstance(i){let t=!1;for(let n in this.instances[i.id])i[n]!==this.instances[i.id][n]&&(this.instances[i.id][n]=i[n],t=!0);return t}getCurrentPage(i){if(this.instances[i])return this.instances[i].currentPage}setCurrentPage(i,t){if(this.instances[i]){let n=this.instances[i],o=Math.ceil(n.totalItems/n.itemsPerPage);t<=o&&1<=t&&(this.instances[i].currentPage=t,this.change.emit(i))}}setTotalItems(i,t){this.instances[i]&&0<=t&&(this.instances[i].totalItems=t,this.change.emit(i))}setItemsPerPage(i,t){this.instances[i]&&(this.instances[i].itemsPerPage=t,this.change.emit(i))}getInstance(i=this.DEFAULT_ID){return this.instances[i]?this.clone(this.instances[i]):{}}clone(i){let t={};for(let n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t}},dG=(()=>{let i=class i{constructor(n,o){this.service=n,this.changeDetectorRef=o,this.maxSize=7,this.pageChange=new se,this.pages=[],this.changeSub=this.service.change.subscribe(r=>{this.id===r&&(this.updatePageLinks(),this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges())})}ngOnInit(){this.id===void 0&&(this.id=this.service.defaultId()),this.updatePageLinks()}ngOnChanges(n){this.updatePageLinks()}ngOnDestroy(){this.changeSub.unsubscribe()}previous(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)}next(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)}isFirstPage(){return this.getCurrent()===1}isLastPage(){return this.getLastPage()===this.getCurrent()}setCurrent(n){this.pageChange.emit(n)}
1693getCurrent(){return this.service.getCurrentPage(this.id)}getLastPage(){let n=this.service.getInstance(this.id);return n.totalItems<1?1:Math.ceil(n.totalItems/n.itemsPerPage)}checkValidId(){this.service.getInstance(this.id).id||console.warn(`PaginationControlsDirective: the specified id "${this.id}" does not match any registered PaginationInstance`)}updatePageLinks(){let n=this.service.getInstance(this.id),o=this.outOfBoundCorrection(n);o!==n.currentPage?setTimeout(()=>{this.setCurrent(o),this.pages=this.createPageArray(n.currentPage,n.itemsPerPage,n.totalItems,this.maxSize)}):this.pages=this.createPageArray(n.currentPage,n.itemsPerPage,n.totalItems,this.maxSize)}outOfBoundCorrection(n){let o=Math.ceil(n.totalItems/n.itemsPerPage);return o<n.currentPage&&0<o?o:n.currentPage<1?1:n.currentPage}createPageArray(n,o,r,a){a=+a;let s=[],l=Math.ceil(r/o),c=Math.ceil(a/2),u=n<=c,m=l-c<n,v=!u&&!m,C=a<l,_=1;for(;_<=l&&_<=a;){let E,D=this.calculatePageNumber(_,n,a,l),P=_===2&&(v||m),T=_===a-1&&(v||u);C&&(P||T)?E="...":E=D,s.push({label:E,value:D}),_++}return s}calculatePageNumber(n,o,r,a){let s=Math.ceil(r/2);return n===r?a:n===1?n:r<a?a-s<o?a-r+n:s<o?o-s+n:n:n}};i.\u0275fac=function(o){return new(o||i)(I(Xs),I(_i))},i.\u0275dir=ce({type:i,selectors:[["pagination-template"],["","pagination-template",""]],inputs:{id:"id",maxSize:"maxSize"},outputs:{pageChange:"pageChange"},exportAs:["paginationApi"],standalone:!1,features:[qe]});let e=i;return e})(),uG=(()=>{let i=class i{constructor(n,o,r){this.router=n,this.route=o,this.locationStrategy=r,this.maxSize=7,this.previousLabel="",this.nextLabel="",this.screenReaderPaginationLabel="Pagination",this.screenReaderPageLabel="page",this.screenReaderCurrentLabel="You're on page",this.pageChange=new se,this._directionLinks=!0,this._autoHide=!1,this.suppressScroll=!1}ngAfterViewInit(){this.goToQueryPage(),this.locationStrategy.onPopState(n=>{this.goToQueryPage()})}get directionLinks(){return this._directionLinks}set directionLinks(n){this._directionLinks=!!n&&n!=="false"}get autoHide(){return this._autoHide}set autoHide(n){this._autoHide=!!n&&n!=="false"}onPageChange(n){this.pageChange.emit({pageNumber:n,scroll:!this.suppressScroll})}getUrl(n){return this.router.url.split("?")[0]+"?page="+n}navigate(n,o){n.preventDefault(),this.locationStrategy.pushState(null,"",this.getUrl(o),"")}goToQueryPage(){this.paginationApi&&Number.isInteger(+this.route.snapshot.queryParams.page)&&(this.suppressScroll=!0,this.paginationApi.setCurrent(+this.route.snapshot.queryParams.page),this.suppressScroll=!1)}};i.\u0275fac=function(o){return new(o||i)(I(rt),I(Lt),I(zo))},i.\u0275cmp=N({type:i,selectors:[["fab-pagination-controls"]],viewQuery:function(o,r){if(o&1&&It($L,5),o&2){let a;Se(a=ke())&&(r.paginationApi=a.first)}},inputs:{id:"id",maxSize:"maxSize",directionLinks:"directionLinks",autoHide:"autoHide",previousLabel:"previousLabel",nextLabel:"nextLabel",screenReaderPaginationLabel:"screenReaderPaginationLabel",screenReaderPageLabel:"screenReaderPageLabel",screenReaderCurrentLabel:"screenReaderCurrentLabel"},outputs:{pageChange:"pageChange"},standalone:!1,decls:3,vars:3,consts:[["p","paginationApi"],[3,"pageChange","id","maxSize"],["role","navigation",1,"ngx-pagination"],[1,"pagination-previous",3,"disabled"],[3,"current"],[1,"pagination-next",3,"disabled"],[1,"pagination-previous"],["tabindex","0",3,"href"],["tabindex","0",3,"keyup.enter","click","href"],[1,"icon-arrow-left"],[1,"show-for-sr"],[1,"pagination-next"],[1,"icon-arrow-right"]],template:function(o,r){if(o&1){let a=L();h(0,"pagination-template",1,0),R("pageChange",function(l){return S(a),k(r.onPageChange(l))}),y(2,iN,5,3,"ul",2),p()}if(o&2){let a=Je(1);f("id",r.id)("maxSize",r.maxSize),d(2),w(r.autoHide&&a.pages.length<=1?-1:2)}},dependencies:[dG],styles:[`@charset "UTF-8";:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.ngx-pagination{margin-left:0;font-size:16px;margin-bottom:1rem}@media (min-width: 1200px){.ngx-pagination{font-size:18px}}.ngx-pagination:before,.ngx-pagination:after{content:" ";display:table}.ngx-pagination:after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination li{display:inline-block;vertical-align:bottom}.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a{border-bottom:2px solid transparent;padding:10px 4px 11px 0;margin:0 18px 0 4px;outline:none}.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a:hover,.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a:focus{color:#0a5c50;text-decoration:none;border-bottom:2px solid #0a5c50}@media (min-width: 992px){.ngx-pagination li:not(.pagination-previous):not(.pagination-next) a{padding:8px 4px 8px 0}}.ngx-pagination .pagination-previous{margin-right:20px}
1693.ngx-pagination .pagination-previous a,.ngx-pagination .pagination-next a{padding:6px 6px 3px;min-height:31px;min-width:28px;margin:0;line-height:24px;outline:none}@media (min-width: 992px){.ngx-pagination .pagination-previous a,.ngx-pagination .pagination-next a{border:1px solid #c8c8c8;padding:3px 0 0 6px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}}@media (min-width: 1200px){.ngx-pagination .pagination-previous a,.ngx-pagination .pagination-next a{padding:6px 6px 3px}}.ngx-pagination .pagination-previous a:hover,.ngx-pagination .pagination-previous a:focus,.ngx-pagination .pagination-next a:hover,.ngx-pagination .pagination-next a:focus{text-decoration:none}.ngx-pagination .pagination-previous a:hover i,.ngx-pagination .pagination-previous a:focus i,.ngx-pagination .pagination-next a:hover i,.ngx-pagination .pagination-next a:focus i{color:#0a5c50}.ngx-pagination .pagination-previous i,.ngx-pagination .pagination-next i{font-size:21px;vertical-align:middle}@media (min-width: 1200px){.ngx-pagination .pagination-previous i,.ngx-pagination .pagination-next i{font-size:28px}}.ngx-pagination a,.ngx-pagination button{color:#0a0a0a;display:block;border-radius:0}.ngx-pagination .current{color:#00ab4e;font-weight:600;cursor:default;margin-right:9px}.ngx-pagination .current span{font-weight:600;border-bottom:2px solid #00ab4e;padding:8px 3px 8px 0;margin:0 10px 0 3px;display:block}.ngx-pagination span{font-weight:300}.ngx-pagination .disabled{opacity:.25;cursor:default}.ngx-pagination .disabled span{padding:6px 6px 3px;min-height:31px;min-width:28px;margin:0;font-weight:600;line-height:24px;display:block}@media (min-width: 992px){.ngx-pagination .disabled span{border:1px solid #c8c8c8;padding:3px 0 0 6px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}}@media (min-width: 1200px){.ngx-pagination .disabled span{padding:6px 6px 3px}}.ngx-pagination .disabled span i:hover{color:#00ab4e}.ngx-pagination .disabled:hover{background:transparent}.ngx-pagination .ellipsis:after{content:"\\2026";padding:.1875rem .625rem;color:#0a0a0a}.ngx-pagination a,.ngx-pagination button{cursor:pointer}.icon-arrow-right,.icon-arrow-left{color:#00ab4e}.icon-arrow-left:hover,.icon-arrow-left:focus{color:#0a5c50}.ngx-pagination .pagination-previous a:before,.ngx-pagination .pagination-previous.disabled:before{color:#00ab4e;display:inline-block;margin-right:.5rem}.ngx-pagination .pagination-next a:after,.ngx-pagination .pagination-next.disabled:after{color:#00ab4e;display:inline-block;margin-top:.5rem}.ngx-pagination .pagination-next a:hover i,.ngx-pagination .pagination-next a:focus i{color:#0a5c50}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)} 1694`],encapsulation:2,changeDetection:0});let e=i;return e})(),Ax=(()=>{let i=class i{constructor(){this.hoverIndex=-1,this.value=null,this.touched=!1,this.dirty=!1,this.focus=!1,this.optionSelected=!1,this.outputReturnSelectedOptions=new se,this.onChange=n=>{},this.onTouched=()=>{}}ngOnInit(){this.placeholder=this.content.placeholder,this.group=this.content.group,this.formControl||(this.selectedString=this.fixedContent?this.fixedContent:this.content.placeholder),this.options=this.setSelectedOptions(this.content.options),this.optionsLength=this.content.options.length,(this.selectContent||this.formControl?.value)&&(this.makeSelection(this.selectContent||this.formControl.value),this.toggleOptionsShown())}closeDropdown(n,o){if(!o.relatedTarget||!o.relatedTarget.classList.contains(n)){this.focus=!1,this.optionsShown=!1;return}}keyPicker(n){if(typeof n.key>"u")return null;if(n.target.classList.contains("dropdown__input"))switch(n.key){case"Tab":this.optionsShown=!1;break;case"ArrowDown":case"Down":n.preventDefault(),n.stopPropagation(),this.traverse("down");break;case"ArrowUp":case"Up":this.traverse("up"),n.preventDefault();break;case"Enter":case" ":case"Spacebar":n.preventDefault(),this.makeSelection(this.options[this.hoverIndex]);break}}reset(){this.makeSelection(null),this.selectedString=this.fixedContent?this.fixedContent:this.content.placeholder,this.toggleOptionsShown()}traverse(n){this.optionsShown=!0,n==="down"&&(this.optionsLength===this.hoverIndex?this.hoverIndex=0:this.hoverIndex++),n==="up"&&(this.hoverIndex<=0?this.hoverIndex=this.optionsLength:this.hoverIndex--);for(let o of this.options)o.value!==this.hoverIndex&&(o.selected=!1);for(let o of this.options)o.selected=!1;this.options[this.hoverIndex].selected=!0}toggleOptionsShown(){this.focus=!0,this.touched=!0,this.optionsShown=!this.optionsShown,this.formControl&&this.formControl.markAsTouched({onlySelf:!0})}setSelectedOptions(n){for(let o of n)o.selected=!1;return typeof this.placeholder<"u"&&(n=[{value:0,label:this.placeholder,selected:!1}].concat(n)),n}ngOnChanges(n){this.options=this.setSelectedOptions(this.content.options),this.optionsLength=this.content.options.length}makeSelection(n){for(let o of this.options)o.selected=!1;if(!n||n.value===0){this.toggleOptionsShown(),this.fixedContent||(this.selectedString=this.content.placeholder),this.writeValue(""),this.outputReturnSelectedOptions.emit([]),this.optionSelected=!1;return}n.selected=!0,this.hoverIndex=this.options.indexOf(n),this.dirty=!0,this.optionSelected=!0,this.writeValue(n),this.fixedContent||(this.selectedString=n.label),this.toggleOptionsShown(),this.returnSelectedOptions()}writeValue(n){let o=this.content.options.find(r=>r===n||r.label===n);o&&!this.fixedContent&&(o.selected=!0,this.selectedString=o.label),this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}returnSelectedOptions(){let n=[];return this.options.forEach((o,r)=>
1694{o.selected&&n.push(this.options[r])}),this.outputReturnSelectedOptions.emit(n),n}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-dropdown-simple"]],inputs:{content:"content",formControl:"formControl",selectContent:"selectContent",fixedContent:"fixedContent",showError:"showError"},outputs:{outputReturnSelectedOptions:"outputReturnSelectedOptions"},standalone:!1,features:[Te([{provide:ni,useExisting:lt(()=>i),multi:!0}]),qe],decls:16,vars:17,consts:[[1,"dropdown-simple"],[1,"row"],[1,"col-xs-12"],[3,"ngClass"],[1,"form-fieldcontainer","row"],[1,"dropdown","col-11","pl-0",3,"keydown.escape","ngClass"],["tabindex","0",3,"click","keydown","blur","ngClass"],[1,"icon","icon-arrow-down"],[1,"dropdown__options"],[1,"col-md-4","col-xs-2"],[1,"row","form__feedbackcontainer"],[1,"form_error"],[1,"form__labelcontainer",3,"innerHTML"],[1,"dropdown__options",3,"blur"],["tabindex","0",3,"ngClass","class","value"],["tabindex","0",3,"keydown.enter","click","ngClass","value"],[1,"form__icon"],[1,"col-md-8","col-sm-10","col-xs-10"],[1,"form__tooltip"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1),y(2,aN,3,1,"div",2),p(),h(3,"div",1)(4,"div",3)(5,"div",4)(6,"div",5),R("keydown.escape",function(){return r.optionsShown=!1}),h(7,"div",6),R("click",function(){return r.toggleOptionsShown()})("keydown",function(s){return r.keyPicker(s)})("blur",function(s){return r.closeDropdown(r.group,s)}),y(8,sN,2,1,"p")(9,lN,2,1,"p"),x(10,"i",7),p(),y(11,dN,4,0,"div",8),p()()(),y(12,uN,3,4,"div",9),h(13,"div",10),y(14,pN,3,1,"div",11),p()(),y(15,hN,5,1,"div"),p()),o&2&&(d(2),w(r.content.label?2:-1),d(2),f("ngClass",r.content.disableIcons?"disabled-icons":"col-md-8 col-sm-10 col-xs-10"),d(2),f("ngClass",j(12,nN,r.formControl==null?null:r.formControl.disabled)),d(),ie(Wt("dropdown__input ",r.group)),f("ngClass",He(14,uy,r.formControl&&r.formControl.valid&&(r.dirty||r.formControl.touched)&&r.optionSelected||!r.formControl&&r.optionSelected,r.showError&&r.formControl&&r.formControl.invalid&&(r.dirty||r.formControl.touched)&&!r.focus)),d(),w(r.formControl?8:9),d(3),w(r.optionsShown?11:-1),d(),w(r.content.disableIcons?-1:12),d(2),w(r.content.validationMessage&&r.formControl&&r.formControl.invalid&&(r.dirty||r.formControl.touched)&&!r.focus?14:-1),d(),w(r.content.toolTip?15:-1))},dependencies:[Ie],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.dropdown-simple .dropdown{width:100%;
1694min-width:200px;position:relative;padding:0}.dropdown-simple .dropdown li{font-weight:300}.dropdown-simple .dropdown__options{max-height:350px;overflow:auto}.dropdown-simple .dropdown__input,.dropdown-simple .dropdown__options{border:2px solid rgb(229.5,229.5,229.5);min-height:20px;background-color:#fff}.dropdown-simple .dropdown__input{cursor:pointer;position:relative;padding:7px 10px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px}.dropdown-simple .dropdown__input p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:0 20px 0 0}.dropdown-simple .dropdown__input i{position:absolute;top:50%;right:10px;transform:translateY(-50%);font-size:14px}.dropdown-simple .dropdown__input:focus,.dropdown-simple .dropdown__input:active{outline:none;border-radius:3px;border:4px solid #fac05c}.dropdown-simple .dropdown__options{border:1px solid rgb(238.425,238.425,238.425);border-bottom-width:2px;padding:15px 0;position:absolute;z-index:9;background:#fff;width:100%;box-sizing:border-box}.dropdown-simple .dropdown__options--title{display:block;padding:0 30px 15px}.dropdown-simple .dropdown__options li{cursor:pointer;padding:15px 30px;transition:all .5s ease;color:#000;margin:0}.dropdown-simple .dropdown__options li:hover,.dropdown-simple .dropdown__options li.selected{background:#eee}.dropdown-simple .dropdown.disabled{cursor:not-allowed}.dropdown-simple .dropdown.disabled .dropdown__input{background-color:#f9f9f9;pointer-events:none;opacity:.6}.dropdown-simple .icon-success{color:#008048}.dropdown-simple .icon-error{color:#e22b25}.dropdown-simple p.form__tooltip{margin-top:0;font-size:.9em}.dropdown-simple .form__labelcontainer{display:block;width:100%;padding-bottom:.2em}.dropdown-simple .form__labelcontainer span{font-size:14px}@media (min-width: 992px){.dropdown-simple .form__labelcontainer span{font-size:11px}}.dropdown-simple .form__field-valid{border-radius:3px;background-color:#fff;border:solid 4px #008048}.dropdown-simple .form__field-valid:focus{outline:none;border-radius:3px;border:solid #fac05c;background-color:#fff;-moz-box-shadow:inset 0 0 0 4px #008048;-webkit-box-shadow:inset 0 0 0 4px #008048;box-shadow:inset 0 0 0 4px #008048}.dropdown-simple .form__field-invalid{border-radius:3px;background-color:#fff;border:solid #e22b25}.dropdown-simple .form__field-invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.dropdown-simple .form__icon{padding-top:5px;padding-left:15px}.dropdown-simple .form__icon .icon-success{color:#008048}.dropdown-simple .form__icon .icon-error{color:#e22b25}@media (min-width: 1200px){.dropdown-simple .form__icon{padding-top:10px}}.dropdown-simple .form_error{color:#e22b25}.dropdown-simple .hidden,.dropdown-simple.hidden{display:none}.dropdown-simple .disabled-icons{width:100%} 1695`],encapsulation:2});let e=i;return e})(),pG=Number.MAX_SAFE_INTEGER,hG=(()=>{let i=class i{constructor(n){this.service=n,this.state={}}transform(n,o){if(o instanceof Array&&(o=o[0]),!(n instanceof Array)){let m=o.id||this.service.defaultId;return this.state[m]?this.state[m].slice:n}let r=o.totalItems&&o.totalItems!==n.length,a=this.createInstance(n,o),s=a.id,l,c,u=a.itemsPerPage;if(this.service.register(a),!r&&n instanceof Array){if(u=+u||pG,l=(a.currentPage-1)*u,c=l+u,this.stateIsIdentical(s,n,l,c))return this.state[s].slice;{let v=n.slice(l,c);return this.saveState(s,n,v,l,c),this.service.change.emit(s),v}}return this.saveState(s,n,n,l,c),n}createInstance(n,o){let r=o;return this.checkConfig(r),{id:r.id||this.service.defaultId(),itemsPerPage:+r.itemsPerPage||0,currentPage:+r.currentPage||1,totalItems:+r.totalItems||n.length}}checkConfig(n){let r=["itemsPerPage","currentPage"].filter(a=>!(a in n));if(0<r.length)throw new Error(`PaginatePipe: Argument is missing the following required properties: ${r.join(", ")}`)}saveState(n,o,r,a,s){this.state[n]={collection:o,size:o.length,slice:r,start:a,end:s}}stateIsIdentical(n,o,r,a){let s=this.state[n];return!s||!(s.size===o.length&&s.start===r&&s.end===a)?!1:s.slice.every((c,u)=>c===o[r+u])}};i.\u0275fac=function(o){return new(o||i)(I(Xs,16))},i.\u0275pipe=Zt({name:"paginate",type:i,pure:!1,standalone:!1});let e=i;return e})(),wae=(()=>{let i=class i{constructor(){this.perPage=5,this.p=1,this.cardType="ResultsCards",this.displayTitle=!0,this.i=7,this.deduper=[],this.isLoaded=!1,this.regionDropdownValues={placeholder:void 0,options:[],label:"Filter to show all the branches in your region.",group:"Region"},this.resetQueryButton={text:"Clear region filter",action:{type:"callback",callback:()=>{this._dropdown&&(this._dropdown.makeSelection({value:0}),this._dropdown.toggleOptionsShown()),this._navigate({})}},aria:"Clear region filter",type:"text"},this.cmsContentService=F(fi),this._activatedRoute=F(Lt),this._router=F(rt)}ngOnInit(){this.items=[],this.config&&(this.config.viewCardType&&(this.cardType=this.config.viewCardType),this.perPage=Number(this.config.viewItemsPerPage)?Number(this.config.viewItemsPerPage):this.perPage),this.preloaded?(this.cardType="SecondaryCards",this.dedupeResults(this.preloaded),this.isLoaded=!0):this.config&&this.cardType!=="BranchCards"&&this._getData(),this.cardType==="BranchCards"&&(this._extractRegionDropdownValues(),this._activatedRoute.queryParams.subscribe({next:n=>{this._queryParams=n,this.p=1,this._getData()}}))}pageChanged(n){return st(this,null,function*(){n.scroll&&window.scrollTo({top:this.wrapper.nativeElement.offsetTop-64,behavior:"smooth"}),this.p=n.pageNumber,n.pageNumber--;let o=n.pageNumber*this.perPage,r=this.config.filters||{},a=[r.job_type?r.job_type.join(","):null,r.subject_matter?r.subject_matter.join(","):null].filter(
1695Boolean).join(","),s=this.config.sortField||"created",l=s==="title"||s==="title.keyword"?"asc":"desc",c=yield this.cmsContentService.cmsGetView(this.config.viewContentType,o,this.perPage,a,s,l);this.items=[];for(let u of c.hits)this.generateCards(u)})}generateCards(n){switch(this.cardType){case"ResultsCards":this.items.push(this.generateResultsCards(n));break;case"VacancyCards":this.items.push(this.generateVacancyCards(n));break;case"BasicPush":this.items.push(this.generateBasicPush(n));break;case"SecondaryCards":this.items.push(this.generateSecondaryCards(n));break;case"BranchCards":this.items.push(this.generateBranchCards(n));break;case"MagazineCards":this.items.push(this.generateMagazineCards(n));break;default:this.items.push(this.generateResultsCards(n))}}dedupeResults(n){this.config&&this.config.viewParentUuid&&this.deduper.push(this.config.viewParentUuid);for(let o of n)!this.deduper.includes(o.uuid)&&this.items.length<this.perPage&&(this.generateCards(o),this.deduper.push(o.uuid));this.displayTitle=!!this.items.length}generateResultsCards(n){let o={news_content_type:"date",consultation_response:"consultResponsePubDate",default:"created"},r={title:n.title,body:n.summary,summary:n.summary,link:"/"+n.pathAlias,date:n[o[n.contentType]]??n[o.default],hideType:!0,hideImage:n.contentType==="consultation_response"};return n.mainImage&&(r.mainImage={alt:n.mainImage.alt,height:n.mainImage.height,targetId:n.mainImage.targetId,uri:n.mainImage.uri,url:this.cmsContentService.handleImageLocation(n.mainImage.uri,"small")}),r}generateVacancyCards(n){let o=function(u,m){return m?`<p><strong>${u}:</strong> ${m}</p>`:""},r=new Bo("en-GB"),a=n.jobClosingDate?r.transform(n.jobClosingDate,"d MMMM y"):"ongoing",s=n.employerJobType?n.employerJobType.map(u=>u.name).join(", "):"",l=n.jobAdvertLink?n.jobAdvertLink.uri:null;return{title:`${n.title} (${n.jobLocationForDisplay}, closing date: ${a})`,body:o("Job type",s)+o("Salary",n.jobVacancySalary)+o("Job reference",n.employerJobReference)+o("Employer",n.jobEmployerName)+o("Location",n.jobLocationForDisplay)+o("Closing date",a)+o("Job details",n.employerJobDetails)+(l?`<p><a href="${l}" target="_blank">See full details and apply</a></p>`:"")+o("Application instructions",n.applicationInstructions),summary:n.summary,link:l,date:n.jobClosingDate,hideType:!0}}generateSecondaryCards(n){let o={title:n.title,body:n.summary,summary:n.summary,link:"/"+n.pathAlias,date:n.contentType==="news_content_type"?n.date:n.created,hideType:!0};return n.mainImage&&(o.mainImage={alt:n.mainImage.alt,height:n.mainImage.height,targetId:n.mainImage.targetId,uri:n.mainImage.uri,url:this.cmsContentService.handleImageLocation(n.mainImage.uri,"small")}),o}generateBasicPush(n){let o={link:n.pathAlias,linkCta:n.title};return{text:n.summary,image:this.cmsContentService.handleImageLocation(n.mainImage.uri,"small"),linkData:o}}generateBranchCards(n){return{title:n.title,email:n.branchEmailContact,chair:n.branchChairperson,linkedin:n.linkedin,facebook:n.facebook,twitter:n.twitter}}generateMagazineCards(n){return{listViewTitle:n.listViewTitle??null,accountingTechmagMonths:n.accountingTechmagMonths,magazineIssueYear:n.magazineIssueYear,frontCoverImage:n.frontCoverImage,summary:n.summary,pageLink:"/"+n.pathAlias}}captureRegionSelection(n){if(n?.length>0){let o={region:n.map(r=>r.selected===!0?r.value:null).filter(r=>r).join(",")};this._navigate(o)}}_navigate(n){let o=this._router.parseUrl(this._router.url);o.queryParams=n,this._router.navigateByUrl(o)}_getData(){this.deduper=[],this.isLoaded=!1,this.showPaginator=!this.config.viewTotalNumber||+this.config.viewTotalNumber>+this.config.viewItemsPerPage,this.items=[];let n=this.config.filters||{},o=[n.job_type?n.job_type.join(","):null,n.subject_matter?n.subject_matter.join(","):null,this._queryParams?.region??null].filter(Boolean).join(","),r=this.config.sortField||"created",a=r==="title"||r==="title.keyword"?"asc":"desc";this.cmsContentService.cmsGetViewSync(this.config.viewContentType,0,this.perPage,o,r,a).subscribe(s=>{this.total=this.config.viewTotalNumber?Math.min(s.totalHits,this.config.viewTotalNumber):s.totalHits,this.dedupeResults(s.hits),this.showPaginator=this.showPaginator&&s.totalHits>=+this.config.viewItemsPerPage,this.isLoaded=!0})}_extractRegionDropdownValues(){let n=[];this.cmsContentService.cmsGetViewSync(this.config.viewContentType,0,99,null,"created","asc").subscribe(o=>{if(o?.hits?.forEach(r=>{r.branchRegion?.[0]?.id&&!n.some(a=>a.value===r.branchRegion[0].id)&&n.push({label:r.branchRegion[0].name,value:r.branchRegion[0].id})}),this.regionDropdownValues.options=n.sort((r,a)=>r.label.localeCompare(a.label)),this._queryParams?.region){let r=this.regionDropdownValues.options.find(a=>a.value===this._queryParams.region);this.regionOnLoad=r}})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-aggregator"]],viewQuery:function(o,r){if(o&1&&(It(gN,5),It(py,5)),o&2){let a;Se(a=ke())&&(r.wrapper=a.first),Se(a=ke())&&(r._dropdown=a.first)}},inputs:{config:"config",preloaded:"preloaded"},standalone:!1,decls:5,vars:3,consts:[["wrapper",""],["dropdown",""],[1,"aggregator-component"],[1,"row","aggregator__content"],[1,"row","aggregator__navigation"],[1,"aggregator-component__region-filter"],[1,"aggregator-component--display"],[1,"row","aggregator-component--pagination-container"],[3,"outputReturnSelectedOptions","content","selectContent"],[3,"button"],[1,"fab-results-card"],[1,"fab-branch-card"],[1,"fab-magazine-card"],[3,"content"],[1,"col-sm-4","col-xs-12","margin-top-bottom"],[1,"aggregator-component--pagination"],[3,"pageChange"],[1,"aggregator-component__articles-grid","row"],[1,"aggregator-component__articles-grid--margins","col-sm-6","col-xs-12","margin-top-bottom"]],template:function(o,r){o&1&&(h(0,"div",2,0),y(2,mN,2,1,"h2"),y(3,EN,7,9,"div",3),y(4,IN,5,7,"div",4),p()),o&2&&(d(2),w(r.config&&r.config.viewTitle&&r.displayTitle?2:-1),d(),w(r.cardType!="SecondaryCards"?3:-1),d(),w(r.cardType=="SecondaryCards"?4:-1))},dependencies:[oG,rG,aG,sG,lG,cG,uG,Ax,Ve,hG],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.aggregator__content{padding-top:30px}@media (min-width: 992px){.aggregator__content{max-width:758px}}@media (min-width: 1200px){.aggregator__content{max-width:900px}}.aggregator__content{margin:0 auto;display:block}.aggregator__content .secondary-card{max-width:100%;min-height:337px}.aggregator__navigation{padding-top:30px;width:100%;margin:0 auto;display:block}.aggregator__navigation .secondary-card{max-width:100%;min-height:337px}.aggregator-component--pagination{margin:0 auto}.aggregator-component--pagination pagination-controls .current{background:#00ab4e}.aggregator-component--pagination-container{width:100%;margin-top:1em}.aggregator-component__articles-grid{margin-bottom:50px}.aggregator-component__articles-grid--margins{margin-bottom:20px}.aggregator-component--display{width:100%;margin:1em 0}.aggregator-component--display:first-of-type{margin-top:0}.aggregator-component__region-filter{display:flex;flex-direction:column;gap:1rem;max-width:400px}.aggregator-component__region-filter ul li{list-style:none} 1696`],encapsulation:2});let e=i;return e})(),gG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ve]});let e=i;return e})(),Ox=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})();var mG=(()=>{let i=class i{transform(n,o,r="strong"){if(!o||!n)return n;let a=30;if(n.length>a+a+o.length){let l=n.toLowerCase().indexOf(o),c=l-a<0?"":"...",u=l+o.length+a<n.length?"...":"";n=c+n.substring(l-a,l+o.length+a)+u}let s=new RegExp("("+o+")","gi");return n.replace(s,"<"+r+">"+o+"</"+r+">")}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"textHighlight",type:i,pure:!0,standalone:!1});let e=i;return e}
1696)(),fG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({});let e=i;return e})(),rm=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({});let e=i;return e})(),vG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({});let e=i;return e})(),CG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({});let e=i;return e})(),Lx=(()=>{let i=class i{transform(n,o){return n==="trainingprovider"?"training provider":n}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"groupName",type:i,pure:!0,standalone:!1});let e=i;return e})(),bG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[Lx]});let e=i;return e})();var _G=(()=>{let i=class i{transform(n,o){if(n)return n.replace(/(^\w+:|^)\/\//,"")}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"prettyUrl",type:i,pure:!0,standalone:!1});let e=i;return e})(),yG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[_G]});let e=i;return e})(),wG=(()=>{let i=class i{transform(n){return n<11?TG(n):n.toString()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"numToWords",type:i,pure:!0,standalone:!1});let e=i;return e})(),am=["","one ","two ","three ","four ","five ","six ","seven ","eight ","nine ","ten ","eleven ","twelve ","thirteen ","fourteen ","fifteen ","sixteen ","seventeen ","eighteen ","nineteen "],xG=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],SG=e=>am[e],kG=e=>{let i=Math.floor(e/10),t=e%10;return xG[i]+(t>0?" "+am[t]:"")},EG=e=>{if(e===0)return"";let i="",t=Math.floor(e/100),n=e%100;return t>0&&(i+=am[t]+"hundred "),n>0&&(t>0&&(i+="and "),n>=20?i+=kG(n):i+=SG(n)),i.trim()};function TG(e){let i=Number(e);if(isNaN(i))return"";if(i===0)return"zero";let t=["","thousand","million","billion","trillion"],n=i.toString(),o=[];for(let a=n.length;a>0;a-=3){let s=Math.max(0,a-3);o.unshift(Number(n.substring(s,a)))}let r="";for(let a=0;a<o.length;a++){if(o[a]===0)continue;let s=o.length-1-a,l=EG(o[a]);l&&(r+=l+" ",s>0&&(r+=t[s]+" "))}return r.trim()}var Nx=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({});let e=i;return e})(),xae=(()=>{var i;return i=class{transform(n,o,r){return o==="weight"&&n&&n.length&&n.findIndex(s=>s.weight>0)>-1&&(r=!0),setTimeout(()=>{n&&o&&(r?n.sort((a,s)=>a[o].toLocaleLowerCase()<s[o].toLocaleLowerCase()?-1:a[o].toLocaleLowerCase()>s[o].toLocaleLowerCase()?1:0):n.sort((a,s)=>a[o].toLocaleLowerCase()<s[o].toLocaleLowerCase()?1:a[o].toLocaleLowerCase()>s[o].toLocaleLowerCase()?-1:0))},100),n}},i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"orderBy",type:i,pure:!0,standalone:!1}),i})();var IG=(()=>{let i=class i{get regex(){return new RegExp(`[${this.charsToRemove??""}]`,"g")}constructor(){this.el=F(ft),this.renderer=F(ct)}onInput(){if(!this.charsToRemove)return;let n=this.el.nativeElement,o=n.value,r=o.replace(this.regex,"");o!==r&&(this.renderer.setProperty(n,"value",r),this.emitInputEvent(n))}onPaste(n){if(!this.charsToRemove)return;n.preventDefault();let a=(n.clipboardData?.getData("text/plain")??"").replace(this.regex,""),s=this.el.nativeElement,l=s.selectionStart,c=s.selectionEnd;if(l!==null&&c!==null){let u=s.value,m=[u.slice(0,l),a,u.slice(c)].join("").slice(0,s.maxLength);this.renderer.setProperty(s,"value",m),this.setSelectionRange(s,l,a.length),this.emitInputEvent(s)}}setSelectionRange(n,o,r){let a=o+r;this.renderer.selectRootElement(n).setSelectionRange(a,a)}emitInputEvent(n){let o=new Event("input",{bubbles:!0});n.dispatchEvent(o)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=ce({type:i,selectors:[["","removeCharacters",""]],hostBindings:function(o,r){o&1&&R("input",function(s){return r.onInput(s)})("paste",function(s){return r.onPaste(s)})},inputs:{charsToRemove:[0,"removeCharacters","charsToRemove"]}});let e=i;return e})(),MG=(()=>{let i=class i{constructor(n){this.inputTextValidatorService=n,this.inputType="text",this.requiredInput=!1,this.value="",this.focus=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.requiredInput=this.content.required,this.content.codeType==="Email"&&(this.inputType="email"),(this.content.codeType==="Password"||this.content.codeType==="PasswordChoice"||this.content.validationMessage==="Enter your password")&&(this.inputType="password"),this.content.codeType==="Number"&&(this.inputType="number"),this.updatedValidators()}onModelChange(n){this.updatedValidators()}updatedValidators(){switch(this.content.codeType){case"Alpha":this.requiredInput?this.formControl.addValidators([this.AlphaValidator(),et.required]):this.formControl.addValidators([this.AlphaValidator()]);break;case"AlphaNumeric":this.requiredInput?this.formControl.addValidators([this.AlphaNumericValidator(),et.required]):this.formControl.addValidators([this.AlphaNumericValidator()]);break;case"AlphaText":this.requiredInput?this.formControl.addValidators([this.AlphaTextValidator(),et.required]):this.formControl.addValidators([this.AlphaTextValidator()]);break;case"Email":this.requiredInput?this.formControl.addValidators([this.EmailValidator(),et.required]):this.formControl.addValidators([this.EmailValidator()]);break;case"Website":this.requiredInput?this.formControl.addValidators([this.WebsiteValidator(),et.required]):this.formControl.addValidators([this.WebsiteValidator()]);break;case"Telephone":this.requiredInput?this.formControl.addValidators([this.PhoneNumberValidator(),et.required]):this.formControl.addValidators([this.PhoneNumberValidator()]);break;case"Number":case"Numeric":this.requiredInput?this.formControl.addValidators([this.NumberValidator(),et.required]):this.formControl.addValidators([this.NumberValidator()]);break;case"Decimal":this.requiredInput?this.formControl.addValidators([this.NumberValidator(!0),et.required]):this.formControl.addValidators([this.NumberValidator(!0)]);break;case"Postcode":this.requiredInput?this.formControl.addValidators([this.PostCodeValidator(),et.required]):this.formControl.addValidators([this.PostCodeValidator()]);break;case"Password":this.requiredInput?this.formControl.addValidators([this.PassWordValidator(),et.required]):this.formControl.addValidators([this.PassWordValidator()]);break;case"PasswordChoice":this.requiredInput?this.formControl.addValidators([this.PasswordChoiceValidator(),et.required]):this.formControl.addValidators([this.PasswordChoiceValidator()]);break;case"DateBirthText":this.requiredInput?this.formControl.addValidators([this.DateBirthTextValidator(),et.required]):this.formControl.addValidators([this.DateBirthTextValidator()]);break;case"FutureDateText":this.requiredInput?this.formControl.addValidators([this.FutureDateTextValidator(),et.required]):this.formControl.addValidators([this.FutureDateTextValidator()]);break;case"SortCode":this.requiredInput?this.formControl.addValidators([this.SortCodeTextValidator(),et.required]):this.formControl.addValidators([this.SortCodeTextValidator()]);break;case"AccountNumber":this.requiredInput?this.formControl.addValidators([this.AccountNumberTextValidator(),et.required]):this.formControl.addValidators([this.AccountNumberTextValidator()]);break;case"PaymentCode":this.requiredInput?this.formControl.addValidators([this.PaymentCodeTextValidator(),et.required]):this.formControl.addValidators([this.PaymentCodeTextValidator()]);break;case"NoValidation":this.validationResult={valid:!0,blankMessage:this.content.validationMessage},this.requiredInput&&this.formControl.addValidators([et.required]);break}}writeValue(n){this.value=n}pushChanges(n){this.onChange(n.value)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}showPassword(){this.inputType="text"}hidePassword(){this.inputType="password"}inputFocus(n,o){this.focus=!0}inputBlur(n,o){this.formControl.markAsTouched({onlySelf:!0}),this.focus=!1,this.checkSortCode()}checkSortCode(){this.formControl.valid&&typeof this.formControl.value=="string"&&!this.formControl.value.includes("-")&&this.content.codeType==="SortCode"&&(this.value=this.formControl.value.substring(0,2)+"-"+this.formControl.value.substring(2,4)+"-"+this.formControl.value.substring(4,6))}onPaste(n){this.content.confirmationField&&n.preventDefault()}AlphaValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAlphaType(n.value,this.content.label.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"")),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage||this.validationResult.validationMessage}})}NumberValidator(n=!1){return o=>(this.validationResult=this.inputTextValidatorService.validateNumberType(o.value,n),o.value!==void 0&&o.value!==null&&o.value!==""&&((this.content.min!==void 0&&Number(o.value)<this.content.min||this.content.max!==void 0&&Number(o.value)>this.content.max)&&(this.validationResult.validationMessage=this.content.validationMessage,this.validationResult.valid=!1),this.content.minLen!==void 0&&this.content.maxLen!==void 0&&((o.value.length<this.content.minLen||o.value.length>this.content.maxLen)&&(this.validationResult.validationMessage=this.content.validationMessage,this.validationResult.valid=!1),this.content.maxLen&&
1696(this.value=this.value&&this.value.slice?this.value.slice(0,this.content.maxLen):""))),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,o.value===void 0||o.value===null||o.value===""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage||this.validationResult.validationMessage}})}AlphaNumericValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAlphaNumericType(n.value),this.content.validationBlankMessage?this.validationResult.blankMessage=this.content.validationBlankMessage:this.validationResult.blankMessage=this.content.id==="company"?"Enter the name of your company":this.validationResult.blankMessage,n.value===""&&(this.validationResult.valid=!1),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}AlphaTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAlphaTextType(n.value,this.content.label.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"")),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage||this.validationResult.validationMessage}})}EmailValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateEmail(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.content.validationMessage??this.validationResult.validationMessage,requiredValue:this.content.validationBlankMessage??this.validationResult.blankMessage}})}WebsiteValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateWebsite(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage,requiredValue:this.validationResult.blankMessage}})}PhoneNumberValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePhoneNumber(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}PostCodeValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePostcode(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}PasswordChoiceValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePasswordChoice(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage,passwordErrors:this.validationResult.passwordErrors}})}PassWordValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePassword(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}DateBirthTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateDateBirth(n.value),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}FutureDateTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateFutureDate(n.value),this.validationResult.blankMessage=this.content.validationBlankMessage?this.content.validationBlankMessage:this.validationResult.blankMessage,!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}SortCodeTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateSortCode(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}AccountNumberTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validateAccountNumber(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}PaymentCodeTextValidator(){return n=>(this.validationResult=this.inputTextValidatorService.validatePaymentCode(n.value),!n.value||n.value==""||this.validationResult.valid?null:{formControlValidationErrors:{value:this.validationResult.validationMessage}})}};i.\u0275fac=function(o){return new(o||i)(I(Kg))},i.\u0275cmp=N({type:i,selectors:[["fab-input-text-2"]],inputs:{content:"content",formControl:"formControl",showError:"showError",disableIcons:"disableIcons"},standalone:!1,features:[Te([{provide:ni,useExisting:lt(()=>i),multi:!0},Kg])],decls:12,vars:27,consts:[["input","ngModel"],[1,"form-input-text-2"],[1,"row"],[1,"col-xs-12"],[3,"for"],[1,"row","form-fieldcontainer"],[3,"ngClass"],[1,"form-control",3,"ngModelChange","input","focus","blur","paste","autocomplete","ngClass","name","id","type","placeholder","ngModel","maxlength","disabled","min","max","removeCharacters"],[1,"col-md-4","col-sm-2","col-xs-2"],[1,"row","form__feedbackcontainer"],[1,"row","pass-choice-validators"],[1,"form__labelcontainer",3,"innerHTML"],[1,"form__icon"],[1,"col-md-8","col-sm-10","col-xs-10","form__feedbackcontainer--show-password",3,"ngClass"],[3,"click"],[1,"col-xs-12",3,"ngClass"],[1,"icon",3,"ngClass"],[1,"pass-choice-validators__tooltip"],[1,"col-md-8","col-sm-10","col-xs-10"],[1,"form__tooltip"]],template:function(o,r){if(o&1){let a=L();h(0,"div",1)(1,"div",2)(2,"div",3),y(3,PN,2,2,"label",4),p()(),h(4,"div",5)(5,"div",6)(6,"input",7,0),Ra("ngModelChange",function(l){return S(a),Pa(r.value,l)||(r.value=l),k(l)}),R("ngModelChange",function(l){return S(a),k(r.onModelChange(l))})("input",function(l){return S(a),k(r.pushChanges(l.target))})("focus",function(l){return S(a),k(r.inputFocus(l,r.content.id))})("blur",function(l){return S(a),k(r.inputBlur(l,r.content.id))})("paste",function(l){return S(a),k(r.onPaste(l))}),p()(),y(8,RN,3,5,"div",8),p(),y(9,zN,4,3,"div",9),y(10,BN,25,30,"div",10),y(11,HN,5,1,"div"),p()}o&2&&(d(3),w(r.content.label?3:-1),d(2),f("ngClass",Mu(19,MN,!r.content.hideValidation&&!r.disableIcons,!r.content.hideValidation&&!r.disableIcons,!r.content.hideValidation&&!r.disableIcons,r.content.hideValidation||r.disableIcons)),d(),f("autocomplete",oe(r.content.autocomplete))("ngClass",He(24,uy,!r.content.hideValidation&&r.value&&r.formControl.valid,!r.content.hideValidation&&(r.showError||r.value&&r.formControl.invalid&&!r.formControl.pending&&r.formControl.dirty&&(r.content.showErrorInFocus||!r.focus)||r.formControl.invalid&&!r.formControl.pending&&r.formControl.touched&&r.requiredInput&&(r.content.showErrorInFocus||!r.focus))))("name",r.content.id)("id",r.content.id)("type",r.inputType)("placeholder",r.content.placeholder??""),Da("ngModel",r.value),f("maxlength",r.content.maxLen??"")("disabled",r.formControl.disabled)("min",r.content.min??"")("max",r.content.max??"")("removeCharacters",r.content.disallowedCharacters),d(2),w(!r.content.hideValidation&&!r.disableIcons?8:-1),d(),w(r.content.hideValidation?-1:9),d(),w(!r.content.hideValidation&&r.content.codeType==="PasswordChoice"?10:-1),d(),w(r.content.toolTip?11:-1))},dependencies:[Ie,no,Ko,Mp,mc,IG],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.form-input-text-2 .hidden{display:none}
1696.form-input-text-2 input:focus{outline:none}.form-input-text-2 input:disabled{cursor:not-allowed;opacity:.6}.form-input-text-2 input.form-control{box-sizing:border-box;display:inline-block;width:100%;font-size:16px;padding:6px;border:2px solid rgb(229.5,229.5,229.5);border-radius:3px;margin:2px}.form-input-text-2 input.form-control:focus{outline:none;border-radius:3px;border:solid #fac05c;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;margin:1px}.form-input-text-2 input.form-control.form__field-valid{border-radius:3px;background-color:#fff;border:solid 4px #008048;margin:0}.form-input-text-2 input.form-control.form__field-valid:focus{outline:none;border-radius:3px;border:solid #fac05c;background-color:#fff;-moz-box-shadow:inset 0 0 0 4px #008048;-webkit-box-shadow:inset 0 0 0 4px #008048;box-shadow:inset 0 0 0 4px #008048}.form-input-text-2 input.form-control.form__field-invalid{border-radius:3px;background-color:#fff;border:solid #e22b25;margin:1px}.form-input-text-2 input.form-control.form__field-invalid:focus{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.form-input-text-2 .form__feedbackcontainer div{margin-bottom:0;margin-top:0;font-weight:600;font-size:11px;color:#e22b25}@media (min-width: 992px){.form-input-text-2 .form__feedbackcontainer div{font-size:14px}}.form-input-text-2 .form__feedbackcontainer--show-password{display:flex;flex-flow:row;justify-content:flex-end}.form-input-text-2 .form__feedbackcontainer--show-password.space-between{justify-content:space-between}.form-input-text-2 .form__feedbackcontainer--show-password a{color:#008048;font-size:1.25em}.form-input-text-2 .form__feedbackcontainer--show-password a:hover{color:#0a5c50}.form-input-text-2 p.form__tooltip{margin:0;font-size:.9em}.form-input-text-2 .form__labelcontainer{display:block;width:100%;padding-bottom:.2em}.form-input-text-2 .form__labelcontainer span{font-size:11px}@media (min-width: 992px){.form-input-text-2 .form__labelcontainer span{font-size:14px}}.form-input-text-2 .pass-choice-validators{margin-bottom:15px}.form-input-text-2 .pass-choice-validators div{display:flex}.form-input-text-2 .pass-choice-validators i{font-size:14px;display:block;padding-top:5px}.form-input-text-2 .pass-choice-validators__tooltip{margin-top:0;margin-left:5px;margin-bottom:5px}.form-input-text-2 .form__icon{padding-left:15px;padding-top:8px}.form-input-text-2 .form__icon i{display:inline-block;width:20px;font-size:20px;padding:0}.form-input-text-2 .form__icon i.icon-success{color:#008048}.form-input-text-2 .form__icon i.icon-error{color:#e22b25}.form-input-text-2 .form__icon i.icon-error.default{color:#c3c3c3}.form-input-text-2 .form__icon i.icon-loop2{font-size:18px}.form-input-text-2 .form__icon i.spin{-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-ms-transform-origin:50% 50%;-webkit-animation:spin 1.5s linear infinite;-moz-animation:spin 1.5s linear infinite;-o-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}.form-input-text-2 label{margin-bottom:0} 1697`],encapsulation:2});let e=i;return e})(),Vx=(()=>{let i=class i{constructor(){this.isCheckedChange=new se,this.onChange=new se,this._onChange=n=>{},this.onTouched=()=>{}}registerOnChange(n){this._onChange=n}registerOnTouched(n){this.onTouched=n}writeValue(n){this._onChange(n)}ngOnInit(){}toggleCheckbox(){this.isChecked=!this.isChecked,this.onChange.emit(this.isChecked),this.isCheckedChange.emit(this.isChecked)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-input-checkbox"]],inputs:{content:"content",isChecked:"isChecked"},outputs:{isCheckedChange:"isCheckedChange",onChange:"onChange"},standalone:!1,features:[Te([{provide:ni,useExisting:lt(()=>i),multi:!0}])],decls:3,vars:14,consts:[[1,"checkbox",3,"ngClass"],["type","checkbox","value","true",1,"checkbox__input",3,"change","name","id","ngClass","checked","disabled"],[3,"for","innerHTML"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"input",1),R("change",function(){return r.toggleCheckbox()}),p(),x(2,"label",2),p()),o&2&&(f("ngClass",$t(8,GN,r.content.checkboxPosition==="right",r.content.style==="gray",r.content.invali
1697d)),d(),f("name",r.content.id)("id",r.content.id)("ngClass",j(12,UN,r.content.disabled))("checked",r.isChecked)("disabled",r.content.disabled),d(),f("for",r.content.id)("innerHTML",r.content.label,te))},dependencies:[Ie],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.checkbox__input{position:absolute;opacity:0;z-index:999;zoom:.01}.checkbox__input+label{position:relative;cursor:pointer;font-weight:500;display:inline-block;padding:0 0 0 30px}.checkbox__input+label:before{content:"";position:absolute;display:inline-block;width:20px;height:20px;border:2px solid rgb(229.5,229.5,229.5);background:#fff;cursor:pointer;left:0;top:calc(50% - 12px);border-radius:4px;box-sizing:content-box}.checkbox__input:focus+label:before{box-shadow:0 0 #0000001f;border-color:#fac05c}.checkbox__input:checked+label:before{background:#00ab4e;border:2px solid #00ab4e}.checkbox__input:disabled+label{color:#dfdfdf;cursor:default}.checkbox__input:disabled+label:before{cursor:default;background:#dfdfdf;border:2px solid #dfdfdf}.checkbox__input:checked+label:after{content:"";position:absolute;left:8px;top:calc(50% - 13px);width:8px;height:15px;box-shadow:3px 3px #fff;transform:rotate(45deg)}.checkbox.reversed .checkbox__input+label{padding-left:0;padding-right:30px}.checkbox.reversed .checkbox__input+label:before{right:0;left:auto}.checkbox.reversed .checkbox__input:checked+label:after{right:8px;left:auto}.checkbox.gray .checkbox__input:checked+label:before{background:#777;border:2px solid #777}.checkbox.invalid .checkbox__input+label{color:#e22b25}.checkbox.invalid .checkbox__input+label:before{border-color:#e22b25} 1698`],encapsulation:2});let e=i;return e})();var zx=(()=>{let i=class i{constructor(n){this.controlContainer=n,this.selectEvent=new se,this.last=!1,this.checked=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.details=this.content,this.lastInput&&(this.last=this.lastInput),this.checked=this.checkedVal}ngOnChanges(){this.last=this.lastInput,this.checked=this.checkedVal}select(n){this.value=n.value,this.writeValue(this.value),this.selectEvent.emit(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}writeValue(n){this.onChange(n)}};i.\u0275fac=function(o){return new(o||i)(I(zt,13))},i.\u0275cmp=N({type:i,selectors:[["fab-radio"]],inputs:{content:"content",lastInput:"lastInput",checkedVal:"checkedVal",formControl:"formControl"},outputs:{selectEvent:"selectEvent"},standalone:!1,features:[Te([{provide:ni,useExisting:lt(()=>i),multi:!0}]),qe],decls:6,vars:6,consts:[[1,"fab-radio",3,"ngClass"],[1,"radio-label"],[1,"radio-group"],["type","radio",1,"radio",3,"click","value","checked","name","id"],[1,"selected"],[1,"titled",3,"innerHTML"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"label",1)(2,"div",2)(3,"input",3),R("click",function(){return r.select(r.details)}),p(),x(4,"span",4)(5,"span",5),p()()()),o&2&&(f("ngClass",r.last?"input__end":"input"),d(3),f("value",r.details.label)("checked",r.checked)("name",r.details.id)("id",r.details.id),d(2),f("innerHTML",r.details.label,te))},dependencies:[Ie],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-radio.input[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;margin:5% 0 15px;padding:5px}@media (min-width: 768px){.fab-radio.input[_ngcontent-%COMP%]{margin:2% 0;padding:0}}.fab-radio.input__end[_ngcontent-%COMP%]{margin:0;position:relative}.fab-radio[_ngcontent-%COMP%] .titled[_ngcontent-%COMP%]{position:relative;cursor:pointer;line-height:28px;margin-left:.5rem}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]{position:relative;opacity:0;width:0;cursor:pointer;margin-bottom:10px}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:focus + .selected[_ngcontent-%COMP%]:before{-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:checked ~ .selected[_ngcontent-%COMP%]{background-color:#00ab4e;border:2px solid #00ab4e}.fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:checked ~ .selected[_ngcontent-%COMP%]:after, .fab-radio[_ngcontent-%COMP%] .radio[_ngcontent-%COMP%]:checked ~ .selected[_ngcontent-%COMP%]:before{display:block}.fab-radio[_ngcontent-%COMP%] .radio-label[_ngcontent-%COMP%]{display:flex;flex-direction:row}.fab-radio[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-right:15px}.fab-radio[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{position:relative;display:flex;flex-shrink:0;height:24px;width:24px;border:solid #e6e5e5 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;cursor:pointer}.fab-radio[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none;left:2px;top:2px;width:16px;height:16px;border:solid #fff 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}']});let e=i;return e})();var DG=(()=>{let i=class i{set featureFlag([n,o=!0]){n&&(this._featureFlag=n,this._isEnabled=o,this.updateView())}constructor(n,o,r){this.templateRef=n,this.viewContainer=o,this.featureFlagService=r,this.isHidden=!0}ngOnInit(){this.updateView()}ngOnDestroy(){this.featureFlagSubscription&&this.featureFlagSubscription.unsubscribe()}updateView(){if(!this._featureFlag)return this.viewContainer.clear();this.featureFlagSubscription&&this.featureFlagSubscription.unsubscribe(),this.featureFlagSubscription=this.featureFlagService.isFeatureEnabled(this._featureFlag).subscribe(n=>{this._isEnabled===n?this.isHidden&&(this.viewContainer.createEmbeddedView(this.templateRef),this.isHidden=!1):(this.viewContainer.clear(),this.isHidden=!0)})}};i.\u0275fac=function(o){return new(o||i)(I(Ia),I(Vo),I(om))},i.\u0275dir=ce({type:i,selectors:[["","featureFlag",""]],inputs:{featureFlag:"featureFlag"}});let e=i;return e})(),To=(()=>{let i=class i{constructor(n){this.routerLink=n,this.target=null,this.rel=null}set openInNewTab(n){this.target=n?"_blank":null,this.rel=n?"noopener noreferrer":null,this.routerLink&&(this.routerLink.target=n?"_blank":void 0)}};i.\u0275fac=function(o){return new(o||i)(I(Vt,8))},i.\u0275dir=ce({type:i,selectors:[["","openInNewTab",""]],hostVars:2,hostBindings:function(o,r){o&2&&ve("target",r.target)("rel",r.rel)},inputs:{openInNewTab:"openInNewTab"}});let e=i;return e})(),lu=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Fs,rm,Ct,oo,Zo]});let e=i;return e})(),PG=(()=>{let i=class i{constructor(n){this.renderer=n,this.isModalOpenedChange=new se,this.modalClose=new se}openModal(){this.isModalOpened=!0,this.pullFocus(),this.setBackgroun
1698dUnscrollable()}ngOnChanges(n){n.isModalOpened.firstChange||(n.isModalOpened&&n.isModalOpened.currentValue?this.openModal():this.closeModal())}pullFocus(){setTimeout(()=>{this.previousFocusedElement=document.activeElement,this.closeBtn.nativeElement.focus()},0)}setBackgroundUnscrollable(){document?.body&&this.renderer.setStyle(document.body,"overflow-y","hidden")}setBackgroundScrollable(){document?.body&&this.renderer.setStyle(document.body,"overflow-y","auto")}closeModal(){this.isModalOpened=!1,this.isModalOpenedChange.emit(this.isModalOpened),this.modalClose.emit(!0),this.previousFocusedElement.focus(),this.setBackgroundScrollable()}};i.\u0275fac=function(o){return new(o||i)(I(ct))},i.\u0275cmp=N({type:i,selectors:[["fab-modal"]],viewQuery:function(o,r){if(o&1&&It(jN,5),o&2){let a;Se(a=ke())&&(r.closeBtn=a.first)}},inputs:{isModalOpened:"isModalOpened"},outputs:{isModalOpenedChange:"isModalOpenedChange",modalClose:"modalClose"},standalone:!1,features:[qe],ngContentSelectors:$N,decls:4,vars:1,consts:[["closeBtn",""],[1,"fab-modal"],[1,"fab-modal__link",3,"click"],[1,"fab-modal__container"],["tabindex","0",1,"fab-modal__container--close-icon",3,"click","keydown.Enter"],[1,"fab-modal__overlay",3,"click"]],template:function(o,r){o&1&&(jt(WN),h(0,"span",1)(1,"a",2),R("click",function(){return r.openModal()}),Tt(2),p(),y(3,qN,6,4,"div"),p()),o&2&&(d(3),w(r.isModalOpened?3:-1))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-modal__overlay{z-index:2000;position:fixed;top:0;left:0;content:"";background:#0000004d;width:100%;height:100%}.fab-modal__overlay.active{display:block}.fab-modal__container{display:none;background:#fff;position:fixed;top:calc(50% + 31px);left:50%;transform:translate(-50%) translateY(-50%);z-index:2001;width:98%}@media (min-width: 992px){.fab-modal__container{width:auto;min-width:780px}}.fab-modal__container.active{display:block}.fab-modal__container--close-icon{height:60px;cursor:pointer;display:block;position:absolute;top:0;right:0;width:60px}.fab-modal__container--close-icon:before{transform:translate(50%,-50%) rotate(45deg);-ms-transform:translate(50%,-50%) rotate(45deg);-webkit-transform:translate(50%,-50%) rotate(45deg)}.fab-modal__container--close-icon:after{transform:translate(50%,-50%) rotate(315deg);-ms-transform:translate(50%,-50%) rotate(315deg);-webkit-transform:translate(50%,-50%) rotate(315deg)}.fab-modal__container--close-icon:before,.fab-modal__container--close-icon:after{background-color:#999;display:block;width:20px;height:2px;content:"";position:absolute;top:50%;right:50%} 1699`],encapsulation:2});let e=i;return e})(),Bx=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,oo,Ct]});let e=i;return e})(),RG=(()=>{let i=class i{constructor(n){this.sanitizer=n}transform(n){return this.sanitizer.bypassSecurityTrustHtml(n)}};i.\u0275fac=function(o){return new(o||i)(I(wn,16))},i.\u0275pipe=Zt({name:"notificationMessagePipe",type:i,pure:!0,standalone:!1});let e=i;return e})(),sm=(()=>{let i=class i{constructor(n,o){this.notificationService=n,this.notificationPreferencesService=o,this.isMessageOpen=!1,this.disabled=!1}ngOnInit(){this.notification&&typeof this.notification.closeNotification!="boolean"&&this.checkIfClosed()}checkIfClosed(){this.disabled=!0,this.notificationPreferencesService.checkIfClosed(this.notification).subscribe(n=>this.disabled=n)}closeNotification(){this.notification.closeNotification&&typeof this.notification.closeNotification!="boolean"&&this.notificationPreferencesService.closeNotification(this.notification.closeNotification,this.notification).subscribe(),this.isNotificationOpen=!1,this.notification.isOpened=!1,this.notificationService.closeNotification(this.notification)}toggleNotification(){this.isMessageOpen=!this.isMessageOpen}};i.\u0275fac=function(o){return new(o||i)(I(by),I(iG))},i.\u0275cmp=N({type:i,selectors:[["fab-notification"]],inputs:{notification:"notification",isNotificationOpen:"isNotificationOpen"},standalone:!1,decls:1,vars:1,consts:[[3,"class","active","open","ngClass"],[3,"ngClass"],[1,"n
1699otification__close"],[1,"notification__toggle"],[1,"notification__content"],[1,"notification__message"],[3,"class"],[3,"innerHTML"],[1,"notification__details"],[3,"click"],[1,"icon-cross"]],template:function(o,r){o&1&&y(0,JN,12,20,"div",0),o&2&&w(r.isNotificationOpen&&!r.disabled?0:-1)},dependencies:[Ie,RG],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.notification{padding:13px 20px 12px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;color:#000;font-weight:400;font-size:14px;line-height:1.5;display:inline-block;width:100%;max-width:757px;position:relative;text-align:left}.notification a,.notification a:hover{color:inherit;text-decoration:underline}.notification--status,.notification--status-warning{background:#a0ebd7}.notification--success,.notification--success-warning{background:#008048}.notification--error,.notification--error-warning{background:#e22b25}.notification--success,.notification--success-warning,.notification--error,.notification--error-warning,.notification--success h1,.notification--success h2,.n
1699otification--success h3,.notification--success h4,.notification--success h5,.notification--success h6,.notification--success .h1,.notification--success .h2,.notification--success .h3,.notification--success .h4,.notification--success .h5,.notification--success .h6,.notification--success p,.notification--success div,.notification--success span,.notification--success-warning h1,.notification--success-warning h2,.notification--success-warning h3,.notification--success-warning h4,.notification--success-warning h5,.notification--success-warning h6,.notification--success-warning .h1,.notification--success-warning .h2,.notification--success-warning .h3,.notification--success-warning .h4,.notification--success-warning .h5,.notification--success-warning .h6,.notification--success-warning p,.notification--success-warning div,.notification--success-warning span,.notification--error h1,.notification--error h2,.notification--error h3,.notification--error h4,.notification--error h5,.notification--error h6,.notification--error .h1,.notification--error .h2,.notification--error .h3,.notification--error .h4,.notification--error .h5,.notification--error .h6,.notification--error p,.notification--error div,.notification--error span,.notification--error-warning h1,.notification--error-warning h2,.notification--error-warning h3,.notification--error-warning h4,.notification--error-warning h5,.notification--error-warning h6,.notification--error-warning .h1,.notification--error-warning .h2,.notification--error-warning .h3,.notification--error-warning .h4,.notification--error-warning .h5,.notification--error-warning .h6,.notification--error-warning p,.notification--error-warning div,.notification--error-warning span{color:#fff}.notification--warning{background:#fac05c}.notification--ghost{background:#f8f8f8;border:2px solid #e6e8eb}.notification__content{padding-right:20px}.notification__content i{padding-right:10px}.notification__message{display:table}.notification__message>span{display:table-cell}.notification__message>span p{color:inherit}.notification__message>span p:first-of-type{margin-top:0}.notification__message>span p:last-of-type{margin-bottom:0}.notification__close{position:absolute;right:17px;top:10px}.notification__close a{color:inherit;text-decoration:none}.notification__close a:hover,.notification__close a:focus{text-decoration:none}.notification__toggle{position:absolute;right:17px;top:10px}.notification__toggle a{color:inherit;text-decoration:none}.notification__toggle a:hover,.notification__toggle a:focus{text-decoration:none}.notification__details{height:0;overflow:hidden;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.notification.open .notification__details{height:auto;padding:7px 0;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.notification--full-width{width:100%;max-width:100%;display:block;text-align:center;padding:13px 20px 9px}.notification--full-width .notification__content{display:inline-block;text-align:left}.notification--left-align{display:flex;justify-content:flex-start;padding-left:20px}@media (min-width: 1200px){.notification--left-align{padding-left:56px}}.notification--status .notification__content,.notification--success .notification__content,.notification--error .notification__content{max-width:960px} 1700`],encapsulation:2});let e=i;return e})(),cu=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),On=(function(e){return e.ABOVE="above",e.BELOW="below",e.LEFT="left",e.RIGHT="right",e.FOLLOW="follow",e.DEFAULT="right",e})(On||{}),FG=(()=>{let i=class i{constructor(){this.position=On.DEFAULT,this.tooltip="",this.left=0,this.top=0,this.visible=!1}ngOnInit(){}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-tooltip"]],standalone:!1,decls:2,vars:12,consts:[[1,"tooltip",3,"ngClass"],[1,"tooltip__inner",3,"innerHTML"]],template:function(o,r){o&1&&(h(0,"div",0),x(1,"div",1),p()),o&2&&(
1700ot("left",r.left+"px")("top",r.top+"px")("background-color",r.backgroundColor),Be("tooltip--visible",r.visible),f("ngClass",j(10,tt,"tooltip--"+r.position)),d(),f("innerHTML",r.tooltip,te))},dependencies:[Ie],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.tooltip{display:flex;flex-direction:column;position:fixed;background-color:#f9f9f9;border-radius:4px;color:#000;padding:3px 6px;font-size:13px;opacity:0;min-height:30px;max-width:270px;z-index:999;justify-content:center;border:1px solid #dfe1e5;box-shadow:10px 8px 16px #1a1a1a14}.tooltip:before{content:"";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--below{transform:translate(-50%);margin-top:15px}.tooltip--below:before{content:"";width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #dfe1e5;position:absolute;left:calc(50% - 10px);top:-10px}.tooltip--above{transform:translate(-50%,calc(-105% - 12px))}.tooltip--above:before{content:"";width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #dfe1e5;position:absolute;left:calc(50% - 10px);bottom:-10px}.tooltip--left{transform:translate(calc(-105% - 5px),-50%)}.tooltip--left:before{content:"";width:0;height:0;border-left:10px solid #dfe1e5;border-bottom:10px solid transparent;border-top:10px solid transparent;position:absolute;right:-10px;top:calc(50% - 10px)}.tooltip--right{transform:translateY(-50%);margin-left:15px}.tooltip--right:before{content:"";width:0;height:0;border-right:10px solid #dfe1e5;border-bottom:10px solid transparent;border-top:10px solid transparent;position:absolute;left:-10px;top:calc(50% - 10px)}.tooltip--follow{margin-left:20px}.tooltip--follow:before{display:none}.tooltip__inner{width:max-content;max-width:250px} 1701`],encapsulation:2});let e=i;return e})(),Nn=(()=>{let i=class i{constructor(n,o,r){this.elementRef=n,this.appRef=o,this.viewContainerRef=r,this.showDelay=0,this.hideDelay=0,this.visible=!0,this.disableAutomaticallyCreatingTooltip=!1,this.backgroundColor="f9f9f9",this.componentRef=null}onMouseEnter(){this.visible&&this.initializeTooltip()}onMouseLeave(){this.setHideTooltipTimeout()}onMouseMove(n){this.componentRef!==null&&this.position===On.FOLLOW&&(this.componentRef.instance.left=n.clientX,this.componentRef.instance.top=n.clientY,this.componentRef.instance.tooltip=this.tooltip)}onTouchStart(n){this.visible&&(window.clearTimeout(this.touchTimeout),this.touchTimeout=window.setTimeout(this.initializeTooltip.bind(this),10))}onTouchEnd(){window.clearTimeout(this.touchTimeout),this.setHideTooltipTimeout()}ngOnInit(){this.positionInput!==void 0?this.position=this.positionInput:this.position=On.DEFAULT}initializeTooltip(){this.componentRef===null&&(window.clearInterval(this.hideDelay),this.componentRef=this.viewContainerRef.createComponent(FG),this.setTooltipComponentProperties(),this.showTimeout=window.setTimeout(this.showTooltip.bind(this),this.showDelay))}setTooltipComponentProperties(){if(this.componentRef!==null){this.componentRef.instance.tooltip=this.tooltip,this.componentRef.instance.position=this.position,this.componentRef.instance.backgroundColor=this.backgroundColor;let{left:n,right:o,top:r,bottom:a}=this.elementRef.nativeElement.getBoundingClientRect();switch(this.position){case On.BELOW:{this.componentRef.instance.left=Math.round((o-n)/2+n),this.componentRef.instance.top=Math.round(a);break}case On.ABOVE:{this.componentRef.instance.left=Math.round((o-n)/2+n),this.componentRef.instance.top=Math.round(r);break}case On.RIGHT:{this.componentRef.instance.left=Math.round(o),this.componentRef.instance.top=Math.round(r+(a-r)/2);break}case On.LEFT:{this.componentRef.instance.left=Math.round(n),this.componentRef.instance.top=Math.round(r+(a-r)/2);break}case On.FOLLOW:{this.startPosition?.x&&this.startPosition.y&&(this.componentRef.instance.left=this.startPosition?.x,this.componentRef.instance.top=this.startPosition?.y);break}default:break}}}showTooltip(){this.componentRef!==null&&(this.componentRef.instance.visible=!0)}setHideTooltipTimeout(){this.hideTimeout=window.setTimeout(this.destroy.bind(this),this.hideDelay)}ngOnChanges(n){n.visible&&(this.visible=n.visible.currentValue,n.visible.currentValue===!0?this.initializeTooltip():this.setHideTooltipTimeout()),this.positionInput!==void 0&&(this.position=this.positionInput)}ngOnDestroy(){this.destroy()}destroy(){this.componentRef!==null&&(window.clearInterval(this.showTimeout),window.clearInterval(this.hideDelay),this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef=null)}};i.\u0275fac=function(o){return new(o||i)(I(ft),I(_r),I(Vo))},i.\u0275dir=ce({type:i,selectors:[["","tooltip",""]],hostBindings:function(o,r){o&1&&R("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()})("mousemove",function(s){return r.onMouseMove(s)})("touchstart",function(s){return r.onTouchStart(s)})("touchend",function(){return r.onTouchEnd()})},inputs:{tooltip:"tooltip",positionInput:"positionInput",showDelay:"showDelay",hideDelay:"hideDelay",visible:"visible",startPosition:"startPosition",disableAutomaticallyCreatingTooltip:"disableAutomaticallyCreatingTooltip",backgroundColor:"backgroundColor"},standalone:!1,features:[qe]});let e=i;return e})(),un=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),Hx=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-journey-card"]],inputs:{content:"content"}
1701,standalone:!1,decls:6,vars:3,consts:[[1,"journey-card"],[1,"journey-card__content"],[3,"innerHtml"],[1,"icon","icon-arrow-action","journey-card__icon"]],template:function(o,r){o&1&&(h(0,"a",0)(1,"div",1),x(2,"h4",2),h(3,"p"),b(4),p()(),x(5,"i",3),p()),o&2&&(ve("href",r.content.link?r.content.link:null,ee),d(2),f("innerHtml",r.content.title,te),d(2),A(r.content.body))},styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.journey-card[_ngcontent-%COMP%]{background-color:#fff;border:1px solid rgb(229.5,229.5,229.5);-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;transition:all .3s ease-in-out;height:100%;display:flex;flex-direction:column;padding:13px 10px;box-sizing:border-box;position:relative;margin-bottom:10px;font-size:14px}@media (min-width: 992px){.journey-card[_ngcontent-%COMP%]{font-size:16px;padding:13px 20px 10px;max-width:350px;margin-right:14px}}@media (min-width: 1200px){.journey-card[_ngcontent-%COMP%]{font-size:18px}}.journey-card__content[_ngcontent-%COMP%]{width:90%}.journey-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:11px}@media (min-width: 1200px){.journey-card__content[_ngcontent-%COMP%]{width:100%}.journey-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}}.journey-card__icon[_ngcontent-%COMP%]{position:absolute;right:10px;font-size:20px;top:calc(50% - 8px)}@media (min-width: 1200px){.journey-card__icon[_ngcontent-%COMP%]{bottom:10px;height:auto;top:auto;right:20px;font-size:24px;display:none}}.journey-card[_ngcontent-%COMP%]:focus, .journey-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}@media (min-width: 1200px){.journey-card[_ngcontent-%COMP%]:focus .icon[_ngcontent-%COMP%], .journey-card[_ngcontent-%COMP%]:hover .icon[_ngcontent-%COMP%]{display:block}}"]});let e=i;return e})();var lm=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Fs,rm,Ct,vG,CG,Bx,lu,cu,Xg,un,yG,Ve]});let e=i;return e})(),AG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[Xs],imports:[J]});let e=i;return e})(),Sae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,gG,y1,lm,AG,Ox,Ve]});let e=i;return e})();var Qg=(function(e){return e.SMALL="5px",e.MEDIUM="30px",e.LARGE="80px",e})(Qg||{}),OG=(()=>{let i=class i{constructor(){this.LoaderSize=Qg,this.size=Qg.LARGE}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-loader"]],inputs:{size:"size"},standalone:!1,decls:2,vars:5,consts:[[1,"loading"],[3,"ngClass"]],template:function(o,r){o&1&&(h(0,"div",0),x(1,"div",1),p()),o&2&&(d(),f("ngClass",$t(1,XN,r.size===r.LoaderSize.SMALL,r.size===r.LoaderSize.MEDIUM,r.size===r.LoaderSize.LARGE)))}
1701,dependencies:[Ie],styles:[".loader--large[_ngcontent-%COMP%], .loader--medium[_ngcontent-%COMP%]{border:16px solid #f3f3f3;border-top:16px solid #00ab4e;border-radius:50%;width:80px;height:80px;margin:30px auto;animation:_ngcontent-%COMP%_spin 2s linear infinite}.loader--small[_ngcontent-%COMP%]{border:16px solid #f3f3f3;border-top:16px solid #00ab4e;border-radius:50%;width:0px;height:0px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});let e=i;return e})();var LG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})();var NG=(()=>{let i=class i{constructor(){this.termLength=3,this.placeHolderText="",this.results=[],this.search={context:null,term:null,data:null,id:null},this.currentIndex=-1,this.onChange=n=>{},this.onTouched=()=>{}}ngOnInit(){this.testService(),typeof this.searchFromUrl=="string"&&this.searchFromUrl.length&&(this.search.term=this.searchFromUrl),this.searchContext&&(this.search.context=this.searchContext[0])}ngOnChanges(n){}termChange(n){if(this.charCount=n.target.value.length,n.target.value.length<this.termLength){this.results=null;return}switch(n.key){case"ArrowUp":this.currentIndex===0&&(this.search.term=this.tempTerm,this.currentIndex--),this.currentIndex>0&&this.results.length>0&&(this.currentIndex--,this.search.term=this.results[this.currentIndex].label);return;case"ArrowDown":this.currentIndex<this.results.length-1&&this.results.length>0&&(this.currentIndex++,this.search.term=this.results[this.currentIndex].label);return;case"Enter":this.currentIndex&&this.currentIndex>0?this.selectSuggestion(this.currentIndex,!1):this.writeValue(this.search.term),this.results=[],this.service.onSubmit(this.search);return;case"Escape":this.removeSuggestions();return;default:this.doSearch(n.target.value),this.currentIndex=-1;return}}removeSuggestions(n=null){this.onTouched(),(!this.results||this.results.length===0)&&this.errorStatus&&this.showError&&this.currentIndex===-1&&(this.errorStatus=!1,this.search.term=""),this.results=[]}selectSuggestion(n,o=!1){n>=0&&this.results&&this.results[n]&&(this.writeValue(this.results[n]),this.search.term=this.results[n].label,this.search.id=this.results[n].id,this.search.data=this.results[n].data),this.results=[],o||this.service.onSubmit(this.search)}doSearch(n){this.search.term=n,this.tempTerm=n,this.service.search(n).subscribe(o=>{o===void 0||o.length===0?(this.showSuggestions=!1,this.results=[],this.showError=this.showError,this.errorStatus=!0):(this.results=o,this.showSuggestions=!0)})}serviceSubmit(n){n.preventDefault(),this.service.onSubmit(this.search)}testService(){typeof this.service.search!="function"&&console.error("MISSING FUNCTION: Custom Autocomplete service is missing 'search()' method."),typeof this.service.onSubmit!="function"&&console.error("MISSING FUNCTION: Custom Autocomplete service is missing 'onSubmit()' method.")}writeValue(n){this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-autocomplete"]],inputs:{service:"service",searchFromUrl:"searchFromUrl",termLength:"termLength",showSuggestions:"showSuggestions",placeHolderText:"placeHolderText",label:"label",showError:"showError",errorMessage:"errorMessage",searchContext:"searchContext"},outputs:{results:"results",search:"search"},standalone:!1,features:[Te([{provide:ni,useExisting:lt(()=>i),multi:!0}]),qe],ngContentSelectors:tu,decls:9,vars:7,consts:[[1,"fab-autocomplete"],[1,"fab-autocomplete__form"],[1,"fab-autocomplete__label"],[1,"fab-autocomplete__inner"],["name","context",1,"fab-autocomplete__context",3,"ngModel"],["type","text","autocomplete","off","name","fab-autocomplete",1,"fab-autocomplete__field",3,"keyup","paste","blur","ngModelChange","value","placeholder","ngModel"],["type","button",1,"fab-autocomplete__submit","icon-search",3,"click"],[1,"suggestion",3,"ngClass"],[1,"suggestion","suggestion--error"],["name","context",1,"fab-autocomplete__context",3,"ngModelChange","ngModel"],[3,"selected","ngValue"],[1,"suggestion__header"],[1,"suggestion__message",3,"innerHtml"]],template:function(o,r){o&1&&(jt(),h(0,"div",0)(1,"form",1),y(2,t7,3,1,"div",2),h(3,"div",3),y(4,n7,3,1,"select",4),h(5,"input",5),R("keyup",function(s){return r.termChange(s)})("paste",function(s){return r.termChange(s)})("blur",function(){return r.removeSuggestions("blur")}),Ra("ngModelChange",function(s){return Pa(r.search.term,s)||(r.search.term=s),s}),p(),h(6,"button",6),R("click",function(s){return r.serviceSubmit(s)}),p()()(),y(7,o7,2,3,"section",7),y(8,r7,4,1,"section",8),p()),o&2&&(d(2),w(r.label?2:-1),d(2),w(r.searchContext?4:-1),d(),f("value",r.searchFromUrl??r.search.term)("placeholder",r.placeHolderText),Da("ngModel",r.search.term),d(2),w(r.results!=null&&r.results.length?7:-1),d(),w(r.charCount>=3&&!(r.results!=null&&r.results.length)&&r.showError&&r.errorStatus?8:-1))},dependencies:[Ie,kp,k0,T0,no,_c,Ko,ss,mc,Sp],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-autocomplete{font-size:14px;position:relative}.fab-autocomplete__inner{font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;line-height:1.5;text-align:left;border-radius:3px;border:solid 2px rgb(229.5,229.5,229.5);display:flex;width:100%;box-sizing:border-box;background:#fff}.fab-autocomplete__label{display:flex;width:100%;margin-bottom:5px}.fab-autocomplete__input-container{overflow:hidden}.fab-autocomplete__form{position:relative}.fab-autocomplete__context{float:left;border:0;border-right:solid 2px rgb(229.5,229.5,229.5);border-radius:none}.fab-autocomplete__context:focus{z-index:1}.fab-autocomplete__field{padding:10px;box-sizing:border-box;height:48px;display:inline-block;width:100%;border:0}.fab-autocomplete__field:focus{outline:none;border:solid #fac05c}.fab-autocomplete__submit{display:inline-block;right:0;top:0;background:none;border:0;font-size:22;padding:0 15px}.fab-autocomplete .suggestion{left:0;position:absolute;padding:5px;margin:5px 0;z-index:2}.fab-autocomplete .suggestion__message{padding:10px 0 10px 5px;color:#e22b25;font-size:11px}@media (min-width: 1200px){.fab-autocomplete .suggestion__message{font-size:14px}}.fab-autocomplete .suggestion{top:52px;background:#fff;width:100%;box-sizing:border-box;border-radius:3px;box-shadow:0 6px 16px #0000000d;border:solid 2px rgb(229.5,229.5,229.5);clear:both}.fab-autocomplete .suggestion--label{top:77px}.fab-autocomplete .suggestion__header{color:#8d8d8d;font-size:12;line-height:1.5;padding:10px 0 10px 5px}
1701.fab-autocomplete .suggestion__option{display:block;cursor:pointer;text-align:left}.fab-autocomplete .suggestion__option span,.fab-autocomplete .suggestion__option a{border-radius:3px;display:block;padding:5px}.fab-autocomplete .suggestion__option .selected{background-color:#e6e6e6!important;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;font-weight:600;line-height:1.5}.fab-autocomplete .suggestion__option:hover span,.fab-autocomplete .suggestion__option:hover a{background-color:#f2f2f2} 1702`],encapsulation:2});let e=i;return e})(),VG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,oo]});let e=i;return e})();var zG=(()=>{let i=class i{constructor(){this.cartIcon={colour:mi.GREEN,iconName:Fi.cart}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-basket-icon"]],inputs:{count:"count"},standalone:!1,decls:4,vars:2,consts:[["href","/registration/basket",1,"fab-basket-container"],[3,"content"],[1,"fab-basket-container--count"]],template:function(o,r){o&1&&(h(0,"a",0),x(1,"fab-aat-icon",1),h(2,"span",2),b(3),p()()),o&2&&(d(),f("content",r.cartIcon),d(2),A(r.count))},dependencies:[Ln],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-basket-container[_ngcontent-%COMP%]{width:30px;height:30px;cursor:pointer;display:block}@media (min-width: 992px){.fab-basket-container[_ngcontent-%COMP%]{width:40px;height:30px}}.fab-basket-container--count[_ngcontent-%COMP%]{bottom:40px;left:20px;width:15px;height:15px;font-size:10px;display:inline-block;position:relative;border-radius:50%;text-align:center;color:#00ab4e;border:thin solid #00ab4e;background:#fff}@media (min-width: 992px){.fab-basket-container--count[_ngcontent-%COMP%]{bottom:50px;left:30px;width:20px;height:20px;font-size:12px;vertical-align:super}}"]});let e=i;return e})(),BG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[_a,J]});let e=i;return e})(),kae=(()=>{let i=class i{constructor(n,o){this.activatedRoute=n,this.elementRef=o,this.hiddenRoutes=[],this.divider="",this.showCurrentPage=!1,this.collapsedCrumbs=null,this.pathSegments=[],this.showCollapsedBreadcrumbs=!1}ngOnInit(){let n=this._getFullRoute(this.activatedRoute.snapshot);this.currentPage=n.shift(),this.pathSegments=this._buildSegments(n)}tooltipToggleShow(){this.showCollapsedBreadcrumbs=!this.showCollapsedBreadcrumbs,this.showCollapsedBreadcrumbs&&this.collapsedCrumbs?.first.nativeElement&&requestAnimationFrame(()=>{this.collapsedCrumbs?.first.nativeElement.focus()})}onEsc(){this.showCollapsedBreadcrumbs=!1}onFocusOut(n){if(!this.showCollapsedBreadcrumbs)return;let o=n.relatedTarget||n.target;o&&o!==this.elementRef.nativeElement&&(this.elementRef.nativeElement.contains(o)||(this.showCollapsedBreadcrumbs=!1))}_getFullRoute(n,o=[]){return n?(n.url.length&&o.push(...n.url.reverse()),this._getFullRoute(n.parent,o)):o}_buildSegments(n){let o=[];return n?.length&&n.reverse().forEach((a,s)=>{let l=o[s-1]?`${o[s-1].url}/`:"";a.url=l+a.path,a.visible=!this.hiddenRoutes.includes(a.path),o.push(a)}),o}};i.\u0275fac=function(o){return new(o||i)(I(Lt),I(ft))},i.\u0275cmp=N({type:i,selectors:[["fab-breadcrumb"]],viewQuery:function(o,r){if(o&1&&It(a7,5),o&2){let a;Se(a=ke())&&(r.collapsedCrumbs=a)}},hostAttrs:["ngSkipHydration","true"],hostBindings:function(o,r){o&1&&R("focusout",function(s){return r.onFocusOut(s)})("click",function(s){return r.onFocusOut(s)},vl)("keydown.esc",function(){return r.onEsc()})},inputs:{hiddenRoutes:"hiddenRoutes",prefix:"prefix",prefixUrl:"prefixUrl",divider:"divider",showCurrentPage:"showCurrentPage",useRouterLink:"useRouterLink",hydratedBread:"hydratedBread"},standalone:!1,decls:4,vars:4,consts:[["collapsedCrumb",""],["aria-label","Breadcrumb",1,"fab-breadcrumb"],[3,"innerHTML"],[3,"routerLink"],[3,"href"],["aria-current","page",1,"current"],[1,"ellipsis"],["aria-label","Show more breadcrumbs","aria-controls","collapsed-breadcrumbs",1,"ellipsis-btn",3,"click","aria-expanded"],["aria-hidden","true",3,"innerHTML"],["
1702id","collapsed-breadcrumbs"],[1,"collapsed-breadcrumbs",3,"hidden","aria-hidden"],[1,"crumb-row",3,"href","autofocus"]],template:function(o,r){if(o&1&&(h(0,"nav",1),y(1,h7,3,6),y(2,y7,3,1),Y(3,"async"),p()),o&2){let a;d(),w(r.prefix?1:-1),d(),w((a=me(3,2,r.hydratedBread))?2:-1,a)}},dependencies:[Vt,Qn,Aa],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.fab-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;font-weight:600;font-size:12px}.fab-breadcrumb a{font-weight:600;text-decoration:none}.fab-breadcrumb i{padding-top:1px;color:#8d8d8d;font-style:normal;font-size:18px}.fab-breadcrumb__divider{margin:0 5px}.current{pointer-events:none;cursor:default;color:#000}.ellipsis{position:relative;display:flex}.ellipsis-btn{appearance:none;border-radius:0;text-align:inherit;background:none;box-shadow:none;padding:0;cursor:pointer;border:none;color:inherit;font:inherit;padding-left:.5ch;padding-right:.5ch;color:#008048;font-weight:600;text-decoration:none;-moz-transition:color 2s ease;-o-transition:color 2s ease;-webkit-transition:color 2s ease;transition:color 2s ease}.collapsed-breadcrumbs{position:absolute;top:1.5lh;left:0;width:max-content;background-color:#fff;border:#c3c3c3 2px solid;padding:1ex;box-shadow:4px 4px 4px #c3c3c3}.crumb-row{display:flex}.crumb-row i{padding-top:1px} 1703`],encapsulation:2});let e=i;return e})(),Eae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,oo,Ct]});let e=i;return e})(),Tae=(()=>{let i=class i{constructor(){this.icon={colour:mi.GREEN,iconName:Fi.tick}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-bullets"]],inputs:{content:"content"},standalone:!1,decls:9,vars:5,consts:[[1,"wa-bullets"],[1,"wa-bullets__contain"],[1,"wa-bullets__header--left"],[3,"ngClass"],[1,"row","wa-bullets__list"],[1,"col-xs-12",3,"ngClass"],[1,"wa-bullets__list--item"],[1,"wa-bullets__list--item__icon"],[3,"content"],[1,"wa-bullets__list--item__content"],[3,"innerHTML"]],template:function(o,r){o&1&&(h(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2"),b(4),p()(),h(5,"div",3)(6,"div",4),Q(7,k7,7,7,"div",5,ne),p()()()()),o&2&&(d(4),A(r.content.title),d(),f("ngClass",He(2,w7,!r.content.border,r.content.border)),d(2),Z(r.content.items))},dependencies:[Ie,Ln],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.wa-bullets{max-width:1280px;margin-left:auto;margin-right:auto}.wa-bullets__header{padding:30px 0}.wa-bullets__header--left{padding-left:20px;text-align:left}.wa-bullets__header--center{text-align:center}.wa-bullets__header h2{margin:0;line-height:1.2}.wa-bullets__content{background:#fff;padding:30px 0}.wa-bullets__content--border{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.3)!important;box-shadow:0 1px 1px #0000004d!important}.wa-bullets__list li{margin:0 0 20px}@media (min-width: 992px){.wa-bullets__list{-moz-column-count:2;-webkit-column-count:2;column-count:2}}.wa-bullets__list p{padding-left:3em;margin:0;font-weight:400;line-height:1.5}.wa-bullets__list--item{display:flex;align-items:center;margin-bottom:25px}.wa-bullets__list--item__icon{height:40px;width:30px}@media (min-width: 992px){.wa-bullets__list--item__icon{height:60px;width:40px}}.wa-bullets__list--item__content{margin-left:.5em;max-width:85%}.wa-bullets__list--item__content p{padding-left:0}@media (min-width: 992px){.wa-bullets__list li{padding:5px 0;border:none}} 1704`],encapsulation:2});let e=i;return e})(),Iae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,_a]});let e=i;return e})();var cm=(()=>{let i=class i{constructor(n){this.sanitizer=n,this.sanitizer=n}checkVideoIdValid(){let n=this.getVideoId();return n&&n.length>0}getVideoId(){return this.config.videoId}iframeSrc(){let n=this.getVideoId(),o=RegExp(/[0-9a-zA-Z-_]{11}/,"g"),r=RegExp(/[0-9]{9,12}/,"g"),a=RegExp(/(http|www)+/,"g"),s;return a.test(n)?s=n:r.test(n)?s=`https://player.vimeo.com/video/${n}?portrait=0`:o.test(n)&&(s=`https://www.youtube.com/embed/${n}
1704?rel=0&showinfo=0`),this.config.autoplay&&(s+="&autoplay=1"),this.sanitizer.bypassSecurityTrustResourceUrl(s)}};i.\u0275fac=function(o){return new(o||i)(I(wn))},i.\u0275cmp=N({type:i,selectors:[["fab-video"]],inputs:{config:"config"},standalone:!1,decls:1,vars:1,consts:[[1,"video","dont-print"],["frameborder","0","allow","autoplay; encrypted-media","allowfullscreen","","referrerpolicy","strict-origin-when-cross-origin",3,"src"]],template:function(o,r){o&1&&y(0,E7,2,1,"div",0),o&2&&w(r.checkVideoIdValid()?0:-1)},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.video{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.video iframe,.video object,.video embed{position:absolute;top:0;left:0;width:100%;height:100%} 1705`],encapsulation:2,changeDetection:0});let e=i;return e})(),Gx=(()=>{let i=class i{constructor(n){this.platformId=n}ngOnInit(){this.landscape=this.imageConfig.aspectRatio.imageWidthInPixels>this.imageConfig.aspectRatio.imageHeightInPixels,Ee(this.platformId)?(this.maxImageWidth=window.innerWidth,this.maxImageHeight=window.innerHeight):this.maxImageWidth=this.imageConfig.aspectRatio.imageWidthInPixels,this.calculateRatio()}calculateRatio(){let n=this.imageConfig.aspectRatio.imageWidthInPixels/this.imageConfig.aspectRatio.imageHeightInPixels;this.landscape?(this.calculatedImageWidth=this.imageConfig.aspectRatio.imageWidthInPixels>this.maxImageWidth?this.maxImageWidth:this.imageConfig.aspectRatio.imageWidthInPixels,this.calculatedImageHeight=this.calculatedImageWidth/n):(this.calculatedImageHeight=this.imageConfig.aspectRatio.imageHeightInPixels>this.maxImageHeight?this.maxImageHeight:this.imageConfig.aspectRatio.imageHeightInPixels,this.calculatedImageWidth=this.calculatedImageHeight*n)}};i.\u0275fac=function(o){return new(o||i)(I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-optimised-image"]],inputs:{imageConfig:"imageConfig"},standalone:!1,decls:1,vars:7,consts:[[3,"ngSrc","width","height","alt"]],template:function(o,r){o&1&&x(0,"img",0),o&2&&f("width",oe(r.calculatedImageWidth))("height",oe(r.calculatedImageHeight))("alt",oe(r.imageConfig.alternateImageText?r.imageConfig.alternateImageText:""))("ngSrc",r.imageConfig.imageURL)},dependencies:[Ym],encapsulation:2});let e=i;return e})(),Mae=(()=>{let i=class i{constructor(n,o,r,a){this.cmsContentService=n,this.gtmService=o,this.platformId=r,this.document=a,this.showVideo=!1,this.isSingular=!1,this.preventClick=!1,this.current=1,this.timer=5e3,this.firstRun=!0,this.isScrolled=!1,this.button={text:"",type:"primary",aria:"",action:null},this.hoverToolTip=!1,this.clickToolTip=!1,this.iconLinks={vertical:!1,items:[{label:"Print",icon:"print",action:"print"}]},this._document=this.document,this.visibilityChange=this.visibilityChange.bind(this),this.handleObservation=this.handleObservation.bind(this)}ngOnInit(){if(this.panels=this.panels.map((o,r)=>ae(M({},o),{index:r+1})),this.displayPanels=JSON.parse(JSON.stringify(this.panels)),this.displayPanels=this.displayPanels.map(o=>{o.heroTabImage.image=this.cmsContentService.handleImageLocation(o.heroTabImage.image,"large"),o.arrowColour=o.textColour==="dark"?"black":"white";let r={imageURL:o.heroTabImage.image,aspectRatio:{imageWidthInPixels:1920,imageHeightInPixels:640}};o.imageConfiguration=r;let a=o.heroTabCta1.realUrl,s=this._getVideoRegexMatches(a);if(o.heroTabCta1=ae(M({},this.button),{text:o.heroTabCta1.text,type:"secondary",aria:o.heroTabCta1.text,action:s?{type:"callback",callback:()=>{this.openVideo(s[0][6])}}:{type:"link",link:a},gtmData:{event:"click carousel hero",element_type:"cta",element_path:o.heroTabCta1.realUrl,element_text:o.heroTabCta1.text},glyph:s?{icon:ko.PLAY_LARGE}:null}),o.heroTabCta2){let l=this._getVideoRegexMatches(o.heroTabCta1.realUrl);o.heroTabCta2=ae(M({},this.button),{text:o.heroTabCta2.text,aria:o.heroTabCta2.text,action:l?{type:"callback",callback:()=>{this.openVideo(s[0][6])}}:{type:"link",link:o.heroTabCta2.realUrl},gtmData:{event:"click carousel hero",element_type:"cta",element_path:o.heroTabCta2.realUrl,element_text:o.heroTabCta2.text},glyph:l?{icon:ko.PLAY_LARGE}:null})}return o}
1705),this.panels.length<=1)this.isSingular=!0;else{let o=JSON.parse(JSON.stringify(this.displayPanels[0]));this.displayPanels.push(o),this.displayPanels[this.displayPanels.length-1].index=this.displayPanels.length}this.containerWidth=`calc(100% * ${this.displayPanels.length})`,this.itemWidth=100/this.displayPanels.length,this.startScrolling(),this.animateCircle(),this._document.addEventListener("visibilitychange",this.visibilityChange);let n={rootMargin:"0px",threshold:1};Ee(this.platformId)&&(this.observer=new IntersectionObserver(this.handleObservation,n),this.observer.observe(this._document.getElementById("carousel-hero")))}ngOnDestroy(){this._document.removeEventListener("visibilitychange",this.visibilityChange),this.stopScrolling(),this.circleInterval=clearInterval(this.circleInterval)}handleObservation(n){n[0].isIntersecting?(this.isScrolled=!1,this.startScrolling()):(this.isScrolled=!0,this.stopScrolling())}switchTab(n=null,o=!0){n?this.current=n:o?this.current=this.current+1<=this.displayPanels.length?this.current+1:1:this.current===1?this.current=this.displayPanels.length:this.current=this.current-1<=this.displayPanels.length?this.current-1:1,this.scrollToItem(this.current,!1),this.setPosition(this.autoSwitch?126:0),this.gtmService.push({event:"click carousel hero",element_type:`panel ${n?"select":"next"}`,element_text:this.panels[this.current-1].heroTabText})}visibilityChange(n){this._document.hidden?this.stopScrolling():this.startScrolling()}startScrolling(){this.isScrolled||this.animateCircle()}stopScrolling(){this.animateCircle(!0)}animateCircle(n=!1){if(!this.isSingular)if(!this.autoSwitch)this.setPosition(0);else{let o=this._document.getElementById("svgPath");if(this.circleInterval=clearInterval(this.circleInterval),!o)return;n||(this.circleInterval=setInterval(()=>{let r=parseInt(o.style.getPropertyValue("--offset")),a=r-1>=0?r-1:126;a===126&&(this.firstRun?this.firstRun=!1:(this.current=this.current+1<=this.panels.length?this.current+1:1,this.scrollToItem(this.current))),Ee(this.platformId)&&o.style.setProperty("--offset",`${a}`)},this.timer/126))}}setPosition(n){let o=this._document.getElementById("svgPath");o&&Ee(this.platformId)&&o.style.setProperty("--offset",`${n}`)}scrollToItem(n,o=!0){n===1&&o&&(n=this.displayPanels.length),n===2&&o&&(this._document.getElementById("carousel-hero").scrollLeft=0),this._document.getElementById(`scrollToItem-${n}`).scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}),n===this.displayPanels.length&&(this.preventClick=!0,this.current=1,setTimeout(()=>{this._document.getElementById(`scrollToItem-${this.current}`).scrollIntoView({behavior:"auto",block:"end",inline:"nearest"}),this.preventClick=!1},700))}toggleVideo(n=!this.showVideo){this.showVideo=n}openVideo(n){this.videoId=n,this.toggleVideo(!0)}hoverInfoIcon(n){this.hoverToolTip=!this.hoverToolTip}clickInfoIcon(n){this.clickToolTip=!this.clickToolTip}_getVideoRegexMatches(n){let o=new RegExp(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/,"g");return o.test(n)?(o.lastIndex=0,Array.from(n.matchAll(o))):null}};i.\u0275fac=function(o){return new(o||i)(I(fi),I(Ft),I(De),I(Ze))},i.\u0275cmp=N({type:i,selectors:[["fab-carousel-hero"]],inputs:{autoSwitch:"autoSwitch",panels:"panels"},standalone:!1,decls:7,vars:5,consts:[[1,"carousel-hero-container",3,"mouseleave","mouseenter"],["id","carousel-hero",1,"carousel-hero"],[1,"carousel-hero-panel__container",3,"ngStyle"],[1,"carousel-hero-panel",3,"ngStyle","id"],[1,"carousel-hero-buttons"],[1,"carousel-hero__video"],[1,"carousel-hero-image-container",3,"ngStyle"],[3,"imageConfig"],[1,"carousel-hero-contents"],[3,"ngClass"],[1,"button-container"],[3,"button"],[1,"nextLink","nextLink__right"],[1,"carousel-hero--tool-tip"],[1,"nextLink","nextLink__right",3,"click"],["viewBox","0 0 50 50",1,"spinner"],["id","svgPath","cx","25","cy","25","r","20","fill","none","stroke-width","2","stroke-dashoffset","",1,"path",3,"ngStyle"],[1,"icon","icon-arrow-action",3,"ngStyle"],[1,"icon","icon-info",3,"tooltip","positionInput"],[1,"carousel-hero-button"],[3,"click","ngClass"],[1,"carousel-hero__video",3,"click"],[1,"icon","fab-icon-close",3,"click"],[3,"config"]],template:function(o,r){o&1&&(h(0,"div",0),R("mouseleave",function(){return r.startScrolling()})("mouseenter",function(){return r.stopScrolling()}),h(1,"div",1)(2,"div",2),Q(3,A7,16,18,"div",3,ne),p()(),y(5,L7,3,0,"div",4),y(6,N7,4,3,"div",5),p()),o&2&&(d(2),f("ngStyle",j(3,gy,r.containerWidth)),d(),Z(r.displayPanels),d(2),w(r.isSingular?-1:5),d(),w(r.showVideo?6:-1))},dependencies:[Ie,Kn,Ve,cm,Gx,Nn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.carousel-hero{overflow:hidden;margin:0 -15px}@media (min-width: 992px){.carousel-hero{margin:0}}.carousel-hero-image-container{min-height:400px;background-size:cover;background-position:center}.carousel-hero-image-container img{opacity:0}
1705.carousel-hero .page__container{display:flex;flex-direction:column;justify-content:center;height:100%}.carousel-hero .page__container h2{padding-bottom:10px}.carousel-hero .page__container.color-light{color:#fff}.carousel-hero .page__container.color-light>div>*{color:inherit}.carousel-hero .page__container.color-dark{color:inherit}.carousel-hero .page__container.color-dark>div>*{color:inherit}.carousel-hero .page__container.align-left{align-items:flex-start}.carousel-hero .page__container.align-centre{align-items:center;text-align:center}.carousel-hero .page__container.align-right{align-items:flex-end;text-align:right}.carousel-hero-container{position:relative;margin-bottom:100px}.carousel-hero .button-container{padding-top:20px;display:flex}.carousel-hero .button-container fab-button{margin-right:1rem}.carousel-hero-buttons{display:flex;margin:20px auto 0;justify-content:center}.carousel-hero-button>button{background:none;border:none;margin:0 15px;padding:5px 5px 10px;font-size:smaller;font-weight:600;border-bottom:2px solid transparent}.carousel-hero-button>button.active{border-color:#000}.carousel-hero-panel{display:inline-block;position:relative}.carousel-hero-panel__container{display:flex}.carousel-hero-panel img{width:100%}.carousel-hero-contents{position:absolute;inset:0;padding:15px;margin:0 auto}@media (min-width: 992px){.carousel-hero-contents{padding:0}}@media (min-width: 768px){.carousel-hero-contents{width:75vw}}.carousel-hero__video{position:fixed;inset:0;padding:10px;margin:0 auto;overflow:hidden;display:flex;background:#000000b3;justify-content:center;z-index:100}.carousel-hero__video .fab-icon-close{top:80px;right:20px;transform:scale(.6);border:3px solid;height:60px;width:60px;border-radius:50%;text-align:center;display:flex;justify-content:center;align-items:center;background:#0003}.carousel-hero__video>div{margin-top:auto;margin-bottom:auto;width:60%;max-width:1920px}.carousel-hero__video-link{margin-top:30px}.carousel-hero__video-link>a{color:#fff;display:flex;align-items:center}.carousel-hero__video-link>a:hover,.carousel-hero__video-link>a:focus,.carousel-hero__video-link>a:active{text-decoration:none}.carousel-hero__video-link>a:hover span,.carousel-hero__video-link>a:focus span,.carousel-hero__video-link>a:active span{text-decoration:underline}.carousel-hero__video-link i{margin-left:20px;font-size:3em}.carousel-hero--tool-tip{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;right:2%;top:4%;opacity:.9;justify-content:flex-end;position:absolute;width:100%}.carousel-hero--tool-tip .bubble{position:relative;background-color:#000;border-radius:4px;right:8%;top:3%;left:auto;width:auto;height:auto;max-width:80vw;overflow-wrap:break-word;color:#fff}.carousel-hero--tool-tip .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.carousel-hero--tool-tip .bubble{left:auto;right:2%}}@media (min-width: 768px){.carousel-hero--tool-tip .bubble{max-width:50vw}}.carousel-hero--tool-tip .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:9px;-webkit-transform:rotate(360deg);transform:rotate(360deg)}@media (min-width: 992px){.carousel-hero--tool-tip .bubble:after{left:auto}}.carousel-hero--tool-tip .icon-info{position:relative;font-size:20px;left:auto;right:5%;top:3%;border:1px solid #fff;background-color:#fff;border-radius:50%;height:20px}@media (min-width: 992px){.carousel-hero--tool-tip .icon-info{height:30px;font-size:30px;right:1%}}@media (min-width: 992px){.carousel-hero--tool-tip{right:1%}}.nextLink{display:none;background:none;padding:0;z-index:10}@media (min-width: 992px){.nextLink{display:block}}.nextLink{width:70px;height:70px;border:1px solid rgba(255,255,255,.4);position:absolute;top:50%;transform:translateY(-80%);border-radius:50%}.nextLink i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1.3)}.nextLink__left{left:40px}.nextLink__right{right:40px}.nextLink svg{margin:-9px}.nextLink svg .path{--offset: 126;stroke-dasharray:126;stroke-linecap:butt;transform:rotate(-90deg);transform-origin:center}.nextLink-inner{width:50px;height:50px;border-radius:50%;position:inherit;top:-1.5px;left:-1.5px;border-width:3px;border-style:solid;border-image:conic-gradient(red 25%,#00f 45%,green 45%,orange,pink,purple 75%,#ff0 25%)} 1706`],encapsulation:2});let e=i;return e})(),dm=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),Ux=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),Dae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ve,dm,Ux,un]});let e=i;return e})();var Js=(function(e){return e[e.START=0]="START",e[e.END=1]="END",e})(Js||{}),HG=(()=>{let i=class i{constructor(n,o){this._renderer=n,this._document=o,this.isBrowser=Ee(F(De)),this.disableOpenModalButton=!1,this.step=Js.START,this.steps=Js,this.fullControl={label:"<b>Full-control:</b> Advisors have full control of your browser session within the AAT website, including synchronized navigation and the ability to highlight and co-fill a form on the web page.",id:"c
1706obrowsing-control-mode",value:"full-control"},this.partialControl={label:"<b>Partial-control:</b> Advisors can highlight and control the browser navigation within the AAT website, but do not have the permission to fill any forms on the co-browsed page.",id:"cobrowsing-control-mode",value:"partial-control"},this.noControl={label:"<b>No-control:</b> This is a view-only mode. Advisors can observe your navigation, highlight, and offer guidance within the AAT website.",id:"cobrowsing-control-mode",value:"no-control"},this.journeyHelpCard={title:"Get help",body:"I need some support and want to contact AAT.",link:"/about/help-and-support"},this.goBack={text:"Go back",type:"primary",action:{type:"callback",callback:()=>this.step=Js.START},aria:"Go back"},this.next={text:"Next",type:"primary",action:{type:"callback",callback:()=>this.generateCode()},aria:"Next"},this.journeyGetAgentCode={title:"Generate co-browsing code",body:"I\u2019m speaking with a customer support advisor and I need to generate a co-browsing code to share my screen.",link:null},this.cardCheckBox={id:"declaration-checkbox",label:"Please tick the box to generate and share the code with the advisor for co-browsing to initiate."},this.declarationAgreement=!1}ngOnInit(){this.isBrowser&&sessionStorage.getItem("cobrowsing")&&(this.browsingMode=sessionStorage.getItem("cobrowsing"),this.generateCode())}nextStep(){this.step=Js.END}setControl(n){this.browsingMode=n.value}openModal(){this.helpModal.openModal()}generateCode(){console.log("adding script");let n=this._renderer.createElement("script");n.onload=()=>this.openPopup(),n.src="https://cb.8x8.com/license631869b0d2a73e004df634b6/dist/primary-bundle.js",this._renderer.setAttribute(n,"data-8x8-co-browsing","631869b0d2a73e004df634b6"),this._renderer.setAttribute(n,"data-8x8-co-browsing-mode",this.browsingMode),this._renderer.appendChild(this._document.head,n),this.helpModal?.closeModal(),sessionStorage.setItem("cobrowsing",this.browsingMode),this.scriptExists=n}openPopup(){window.coBrowsingInstance.showPopup(),window.scrollTo(0,0)}};i.\u0275fac=function(o){return new(o||i)(I(ct),I(Ze))},i.\u0275cmp=N({type:i,selectors:[["fab-cobrowsing"]],viewQuery:function(o,r){if(o&1&&(It(V7,5),It(z7,5)),o&2){let a;Se(a=ke())&&(r.helpModal=a.first),Se(a=ke())&&(r.coBrowser=a.first)}},inputs:{disableOpenModalButton:"disableOpenModalButton"},standalone:!1,decls:9,vars:4,consts:[["coBrowser",""],["modal",""],[1,"co-browser"],[1,"lms-get-help-modal"],[1,"modal__cta"],[1,"modal__content"],[1,"modal__content--text"],[1,"modal__content--cards"],[1,"modal__content--cards--card",3,"click","content"],[1,"modal__content--cards--card",3,"content"],[1,"modal__content--end"],[1,"radio",3,"selectEvent","content"],[1,"checkbox-card__checkbox",3,"isCheckedChange","isChecked","content"],[1,"action-buttons"],[3,"button"],[3,"button","enabled"],[1,"modal__content--exists"]],template:function(o,r){o&1&&(h(0,"div",2),x(1,"div",null,0),p(),h(3,"fab-modal",3,1),y(5,B7,3,0,"div",4),y(6,H7,18,2,"div",5),y(7,G7,15,8,"div",5),y(8,U7,3,0,"div",5),p()),o&2&&(d(5),w(r.disableOpenModalButton===!1?5:-1),d(),w(r.step===r.steps.START?6:-1),d(),w(r.step===r.steps.END&&!r.scriptExists?7:-1),d(),w(r.scriptExists?8:-1))},dependencies:[PG,Hx,Vx,zx,Ve],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.lms-get-help-modal[_ngcontent-%COMP%]{position:absolute;top:0;z-index:1001}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content[_ngcontent-%COMP%]{flex-direction:column;padding-bottom:2rem;padding-top:2rem;display:flex}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--text[_ngcontent-%COMP%]{padding-left:2rem;padding-right:2rem}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--cards[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--cards--card[_ngcontent-%COMP%]{width:40%}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--end[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:2rem;margin-right:2rem}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--end[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{margin-top:20px;
1706display:flex;flex-direction:row;justify-content:space-between}.lms-get-help-modal[_ngcontent-%COMP%] .modal__content--exists[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.lms-get-help-modal[_ngcontent-%COMP%] .modal__cta[_ngcontent-%COMP%]{position:fixed;bottom:0;right:0;color:#000;width:185px;text-align:center;background-color:#dce6f0;border-radius:2px 2px 0 0}.lms-get-help-modal[_ngcontent-%COMP%] .modal__cta[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:9px}.generate-code[_ngcontent-%COMP%]{display:flex;align-items:center}"]});let e=i;return e})(),GG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Bx,lm,lu,Ve]});let e=i;return e})(),UG=(()=>{let i=class i{constructor(){this._easeTime=Cm(20)}ngOnChanges(){this.calculatePercentage()}calculatePercentage(){this.percentages$=[],this.content.comparisonValues.forEach(n=>{let o=0;n.value<0?n.value=this.content.notAvailableMessage:(o=typeof n.value=="string"?Number(n.value.replace(/\D/g,"")):n.value,o=o<=this.content.comparisonMaximum?o:this.content.comparisonMaximum),this.percentages$.push(this._easeTime.pipe(Ot(o/this.content.comparisonMaximum*100),G(r=>r+1)))})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-comparison-graph"]],inputs:{content:"content",largeComparison:"largeComparison"},standalone:!1,features:[qe],decls:10,vars:3,consts:[["notAvailable",""],[1,"comparison-graph"],[1,"comparison-graph--content"],[4,"ngFor","ngForOf"],["class","comparison-graph--content__info",4,"ngIf"],[1,"comparison-graph--content__info"],[4,"ngIf","ngIfElse"],[1,"comparison-graph--content__bar"],["class","comparison-graph--content__bar-top",3,"width",4,"ngIf"],["class","comparison-graph--content__label--large",4,"ngIf"],["class","comparison-graph--content__label",4,"ngIf"],[1,"comparison-graph--content__label--large"],[1,"comparison-graph--content__label"],[1,"comparison-graph--content__bar-top"],["class","comparison-graph--content__bar-bottom",3,"width",4,"ngIf"],[1,"comparison-graph--content__bar-bottom"]],template:function(o,r){o&1&&(h(0,"section",1)(1,"div",2)(2,"div")(3,"p"),b(4),p()(),h(5,"div")(6,"p")(7,"strong"),b(8),p()()(),H(9,a8,3,2,"div",3),p()()),o&2&&(d(4),A(r.content.heading),d(4),A(r.content.comparisonValues[0].label),d(),f("ngForOf",r.content.comparisonValues))},dependencies:[kl,yr,Qn,Pu],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.comparison-graph[_ngcontent-%COMP%]{border:thin solid rgb(229.5,229.5,229.5);border-radius:3px;background-color:#fff}.comparison-graph--content[_ngcontent-%COMP%]{margin:15px;min-height:fit-content}.comparison-graph--content__info[_ngcontent-%COMP%]{display:grid}.comparison-graph--content__label[_ngcontent-%COMP%]{margin:0;font-size:12px;justify-self:flex-end}.comparison-graph--content__label--large[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.comparison-graph--content__bar[_ngcontent-%COMP%]{height:8px;border-radius:3px;margin-bottom:5px;background-color:#e6e6e6}.comparison-graph--content__bar-top[_ngcontent-%COMP%]{height:8px;border-radius:3px;background-color:#00ab4e}.comparison-graph--content__bar-bottom[_ngcontent-%COMP%]{height:8px;border-radius:3px;background-color:#000}"]});let e=i;return e})(),Pae=(()=>{let i=class i{constructor(n){this._fb=n,this.form=this._fb.group({}),this.button={text:"Calculate",type:"primary",action:{type:"callback",callback:()=>this._submitForm()},aria:"Calculate"},this.numberInput={codeType:"Number",id:"numberInput",required:!0}}ngOnInit(){this.content.options.forEach(n=>{this.form.addControl(this.transformToCamel(n.heading),new En("",et.required)),n.inputType==="dropdown"&&(n.dropdownSimpleObject=this._mapDropdownOptions(n),n.comparisonData=this._mapComparisonGraphs(n))})}transformToCamel(n){let a=n.split(" ").map(l=>{let c=l.toLowerCase();return c.charAt(0).toUpperCase()+c.substring(1)}).join("");return a.charAt(0).toLowerCase()+a.substring(1)}_submitForm(){this.content.options.forEach(n=>
1706{n.inputType==="dropdown"&&(n.comparisonData=this._mapComparisonGraphs(n))})}_mapDropdownOptions(n){return{placeholder:"Select",required:!0,label:n.heading||"",validationMessage:"Please select an option",group:n.heading.replace(/\s+/g,"-"),disableIcons:!0,options:n.dropdownOptions.map(r=>({id:r.inputName,label:r.inputName,value:r.comparisonValues||null}))}}_mapComparisonGraphs(n){return{heading:n.comparisonText&&this._referenceKey?.inputName?n.comparisonText.replace("#",this._referenceKey.inputName):"",comparisonMaximum:this.content.upperComparisonBoundary,comparisonValues:this._mapComparisonResults(n.dropdownOptions,n.heading),notAvailableMessage:n.notAvailableMessage||null}}_mapComparisonResults(n,o){let r=this.content.options.find(l=>l?.inputType==="numeric"),a;for(let l of n){for(let c in this.form.controls)if(c===this.transformToCamel(o)&&this.form.controls[c].value.id===l.inputName){a=l,a.key&&(this._referenceKey=a);break}if(a)break}let s=[{value:this.form.get(this.transformToCamel(r.heading))?.value,label:a?.inputName,comparisonBarLabel:"You:",comparisonBarLabelPosition:"top",units:this.content.comparisonUnits==="dollars"?"$":"\xA3"}];return s.push({value:a?.comparisonValues?a?.comparisonValues[this._referenceKey.key]:0,comparisonBarLabel:a?.comparisonBarLabel||n[0].comparisonBarLabel,comparisonBarLabelPosition:a?.comparisonBarLabelPosition||n[0].comparisonBarLabelPosition,units:this.content.comparisonUnits==="dollars"?"$":"\xA3"}),s}};i.\u0275fac=function(o){return new(o||i)(I(cs))},i.\u0275cmp=N({type:i,selectors:[["fab-comparison-calculator"]],inputs:{content:"content"},standalone:!1,decls:23,vars:10,consts:[[1,"comparison-calculator"],[1,"comparison-calculator__container"],[1,"comparison-calculator__form",3,"formGroup"],[1,"comparison-calculator__form--heading"],[1,"comparison-calculator__form--input"],[3,"button","enabled"],[1,"comparison-calculator__results"],[1,"comparison-calculator__results--container"],[1,"comparison-calculator__results--heading-container"],[1,"comparison-calculator__results--heading"],[1,"comparison-calculator__results--graph"],[3,"content","formControl"],[1,"comparison-calculator__form--input__label"],[3,"disableIcons","content","formControl"],[3,"content"]],template:function(o,r){o&1&&(h(0,"section",0)(1,"div",1)(2,"div",2)(3,"h3",3)(4,"strong"),b(5),p()(),Q(6,c8,3,2,"div",4,ne),h(8,"div"),x(9,"fab-button",5),p()(),h(10,"div",6)(11,"div",7)(12,"div",8)(13,"h4",9)(14,"strong"),b(15,"Your results"),p()(),h(16,"h5")(17,"strong"),b(18),Y(19,"currency"),p()()(),h(20,"div"),Q(21,u8,2,1,"div",10,ne),p()()()()()),o&2&&(d(2),f("formGroup",r.form),d(3),A(r.content.heading),d(),Z(r.content.options),d(3),f("button",r.button)("enabled",r.form.valid),d(9),q("Up to ",zm(19,5,r.content.upperComparisonBoundary,r.content.comparisonUnits==="dollars"?"USD":"GBP","symbol","0.0-0")),d(3),Z(r.content.options))},dependencies:[Ax,MG,Ko,ss,vc,Vr,Ve,UG,El],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.comparison-calculator[_ngcontent-%COMP%]{width:80%;max-width:1500px;margin:auto}@media (min-width: 768px){.comparison-calculator__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%}}@media (min-width: 768px){.comparison-calculator__form[_ngcontent-%COMP%]{width:70%;margin-top:20px}}.comparison-calculator__form--input[_ngcontent-%COMP%]{margin:20px 0}.comparison-calculator__form--input__label[_ngcontent-%COMP%]{margin-bottom:5px}.comparison-calculator__results[_ngcontent-%COMP%]{background-color:#eee;height:fit-content}@media (min-width: 768px){.comparison-calculator__results--container[_ngcontent-%COMP%]{width:80%;margin:20px auto 0}}.comparison-calculator__results--heading-container[_ngcontent-%COMP%]{display:flex;justify-content:space-around;align-items:baseline;padding-top:10px}@media (min-width: 768px){.comparison-calculator__results--heading-container[_ngcontent-%COMP%]{justify-content:space-between;padding-top:0}}.comparison-calculator__results--graph[_ngcontent-%COMP%]{padding:10px 20px}@media (min-width: 768px){.comparison-calculator__results--graph[_ngcontent-%COMP%]{margin:20px 0;padding:0}}"]});let e=i;return e})(),jG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),Rae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[El],imports:[J,Ox,lu,Zo,Ve,jG]});let e=i;return e})(),Fae=(()=>{let i=class i{constructor(){}ngOnInit(){}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-comparison-stats"]],inputs:{content:"content"},standalone:!1,decls:29,vars:5,consts:[[1,"comparison-stats"],[1,"comparison-stats__intro"],[1,"small"],[1,"comparison-stats__chat"],[1,"comparison-stats__background"],[1,"comparison-stats__item-wrap"],[1,"comparison-stats__item","comparison-stats__item--starter"],[1,"comparison-stats__list"],[1,"comparison-stats__label"],[1,"comparison-stats__item","comparison-stats__item--mid"],[1,"comparison-stats__item-wrap","comparison-stats__item-wrap--last"],[1,"comparison-stats__item","comparison-stats__item--senior"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1)(2,"h2"),b(3),p(),h(4,"p",2),b(5),p()(),h(6,"div",3),x(7,"div",4),h(8,"div",5)(9,"div",6),Q(10,p8,5,2,"div",7,ne),p(),h(12,"div",8)(13,"strong"),b(14),p()()(),h(15,"div",5)(16,"div",9),Q(17,h8,5,2,"div",7,ne),p(),h(19,"div",8)(20,"strong"),b(21),p()()(),h(22,"div",10)(23,"div",11),Q(24,g8,5,2,"div",7,ne),p(),h(26,"div",8)(27,"strong"),b(28),p()()()()()),o&2&&(d(3),A(r.content.title),d(2),A(r.content.text),d(5),Z(r.content.starter),d(4),A(r.content.columnLabel==null?null:r.content.columnLabel[0]),d(3),Z(r.content.mid),d(4),A(r.content.columnLabel==null?null:r.content.columnLabel[1]),d(3),Z(r.content.senior),d(4),A(r.content.columnLabel==null?null:r.content.columnLabel[2]))},styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.comparison-stats[_ngcontent-%COMP%]{background:#f8f8f8;font-size:14px;padding-bottom:20px}@media (min-width: 992px){.comparison-stats[_ngcontent-%COMP%]{background:#fff;padding-bottom:0}}.comparison-stats__chat[_ngcontent-%COMP%]{position:relative}@media (min-width: 992px){.comparison-stats__chat[_ngcontent-%COMP%]{display:flex}}.comparison-stats__intro[_ngcontent-%COMP%]{text-align:center;padding-bottom:16px;padding-top:17px}@media (min-width: 1200px){.comparison-stats__intro[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px}}.comparison-stats__background[_ngcontent-%COMP%]{position:absolute;width:100%;height:242px;background:#f8f8f8;top:0}@media (min-width: 992px){.comparison-stats__background[_ngcontent-%COMP%]{top:41px}}.comparison-stats__item-wrap[_ngcontent-%COMP%]{position:relative;padding:21px 15px 0}@media (min-width: 992px){.comparison-stats__item-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-evenly;flex-grow:1;padding:0 0 20px;align-items:center;margin-right:13px}}@media (min-width: 992px){.comparison-stats__item-wrap--last[_ngcontent-%COMP%]{margin-right:0}}.comparison-stats__list[_ngcontent-%COMP%]{padding:20px;margin-bottom:16px;font-size:14px;display:flex;justify-content:space-between;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.3);-moz-box-shadow:0 2px 10px rgba(0,0,0,.3);box-shadow:0 2px 10px #0000004d}@media (min-width: 992px){.comparison-stats__list[_ngcontent-%COMP%]{font-size:16px;display:block}}@media (min-width: 1200px){.comparison-stats__list[_ngcontent-%COMP%]{font-size:18px}}.comparison-stats__list[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;padding-bottom:4px;width:70%}@media (min-width: 992px){.comparison-stats__list[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{width:100%}}
1706.comparison-stats__list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{width:30%}@media (min-width: 992px){.comparison-stats__list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{width:100%}}.comparison-stats__label[_ngcontent-%COMP%]{position:absolute;top:0;width:100%}@media (min-width: 992px){.comparison-stats__label[_ngcontent-%COMP%]{top:auto;bottom:0;text-align:center}}.comparison-stats__item[_ngcontent-%COMP%]{display:block}.comparison-stats__item.comparison-stats__item--starter[_ngcontent-%COMP%] .comparison-stats__list[_ngcontent-%COMP%]{background:#0a5c50;color:#fff}.comparison-stats__item.comparison-stats__item--starter[_ngcontent-%COMP%] .comparison-stats__list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:inherit}.comparison-stats__item.comparison-stats__item--mid[_ngcontent-%COMP%] .comparison-stats__list[_ngcontent-%COMP%]{background:#a0ebd7;color:#000}.comparison-stats__item.comparison-stats__item--mid[_ngcontent-%COMP%] .comparison-stats__list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:inherit}.comparison-stats__item.comparison-stats__item--senior[_ngcontent-%COMP%]{margin-right:0}.comparison-stats__item.comparison-stats__item--senior[_ngcontent-%COMP%] .comparison-stats__list[_ngcontent-%COMP%]{background:#fac05c;color:#000}"]});let e=i;return e})(),Aae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),Oae=(()=>{let i=class i{constructor(n,o){this.cmsContentService=n,this.gtmService=o,this.cardLists=[],this.relatedItems=[],this.responseButton={text:"Read our response (PDF)",type:"primary",action:{type:"link",openInNewTab:!0,link:null},aria:"Read our response (PDF)"}}ngOnInit(){if(this.content.consultationResponsePdf&&(this.responseButton.action.link=this.cmsContentService.handleImageLocation(this.content.consultationResponsePdf.uri,"original"),this.responseButton.gtmData={event:"downloads consultation response PDF",element_type:"cta",element_path:this.responseButton.action.link,element_text:this.responseButton.text}),this.content.subjectMatter&&this.content.subjectMatter.length){let n=[];for(let o of this.content.subjectMatter)n.push(this.cmsContentService.cmsGetMultiple("consultation_response",3,"desc","consultResponsePubDate",o.id).pipe(G(r=>(r&&r.totalHits&&(r.hits=r.hits.filter(a=>a.pathAlias!==this.content.pathAlias),r.totalHits=r.hits.length),r)),ye(r=>W({totalHits:0,hits:[]}))));Ta(n).subscribe(o=>{for(let a in o)o[a]&&o[a].totalHits&&this.cardLists.push({name:this.content.subjectMatter[a].name,cards:o[a].hits});this.relatedItems=[].concat.apply([],o.map(function(a){return a.hits})),this.relatedItems=Array.from(this.relatedItems.reduce((a,s)=>a.set(s.id,s),new Map).values()).slice(0,4);let r=this.content.subjectMatter.map(a=>a.name);for(let a in this.relatedItems){this.relatedItems[a].tags=[];for(let s in this.relatedItems[a].subjectMatter){let l=this.relatedItems[a].subjectMatter[s].name;r.includes(l)&&this.relatedItems[a].tags.push(l)}}})}}listToString(n,o,r){return n.map(a=>a[o]).join(r)}onCRClick(n,o,r){this.gtmService.push({event:r,element_type:"cta",element_path:`/${n}`,element_text:o})}};i.\u0275fac=function(o){return new(o||i)(I(fi),I(Ft))},i.\u0275cmp=N({type:i,selectors:[["fab-consultation-response"]],inputs:{content:"content"},standalone:!1,decls:14,vars:9,consts:[[1,"consultation-response"],[1,"consultation-response__row","consultation-response__info-bar"],[1,"consultation-response__col"],[1,"mt-10"],[3,"button"],["target","_blank",3,"click","href"],[3,"innerHtml"],[1,"row"],[1,"card","consultation-response__card",3,"ngClass","href"],[1,"card","consultation-response__card",3,"click","ngClass","href"],[1,"consultation-response__card-tags"],[1,"card__tag","horizontal-card__tag",3,"innerHtml"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1),y(2,C8,5,3,"div",2),h(3,"div",2)(4,"h3"),b(5,"Our response published"),p(),h(6,"p"),b(7),Y(8,"date"),p()(),h(9,"div",2),y(10,b8,3,1,"p",3),p()(),y(11,_8,4,1,"div"),y(12,y8,1,1,"fab-button",4),y(13,S8,6,0,"div"),p()),o&2&&(d(2),w(r.content.consultationOrganisation&&r.content.consultationOrganisation.length?2:-1),d(5),A(Mt(8,6,r.content.consultResponsePubDate,"d MMMM yyyy")),d(3),w(r.content.originalConsultationLink&&r.content.originalConsultationLink.uri?10:-1),d(),w(r.content.executiveSummary?11:-1),d(),w(r.responseButton?12:-1),d(),w(r.relatedItems.length?13:-1))},dependencies:[Ie,Ve,Bo],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.consultation-response__row{display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 768px){.consultation-response__row{flex-direction:row}}.consultation-response__info-bar{background-color:#f8f8f8;padding:10px}.consultation-response__info-bar h3{font-size:1em;font-weight:600}@media (min-width: 768px){.consultation-response__col{padding:0 10px}.consultation-response__col:first-of-type{margin-left:-10px}.consultation-response__col:last-of-type{margin-right:-10px}}.consultation-response .mt-10{margin-top:10px}.consultation-response__card{display:inline-block;width:calc(50% - 20px);border:1px solid #ddd;border-radius:5px;box-sizing:border-box;margin:10px;font-weight:inherit;color:inherit}.consultation-response__card>h4,.consultation-response__card>div{padding:10px}.consultation-response__card>h4>p:first-of-type,.consultation-response__card>div>p:first-of-type{margin-top:0}.consultation-response__card>h4>p:last-of-type,.consultation-response__card>div>p:last-of-type{margin-bottom:0}.consultation-response__card>h4{padding-bottom:0}.consultation-response__card:nth-of-type(odd){margin-left:0}.consultation-response__card:nth-child(2n),.consultation-response__card:last-of-type{margin-right:0}.consultation-response__card:hover,.consultation-response__card:focus,.consultation-response__card:active{text-decoration:none} 1707`],encapsulation:2});let e=i;return e})(),Lae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ve]});let e=i;return e})(),WG=(()=>{let i=class i{constructor(){this.gtmService=F(Ft)}itemClicked(n,o){this.callback?this.callback(n,o):this.gtmService.push({event:"click_button",element_type:"cta",element_text:o.label.toLowerCase()})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-on-page-nav"]],inputs:{content:"content",callback:"callback",useRouterLink:"useRouterLink"},standalone:!1,decls:1,vars:1,consts:[[1,"on-page-nav"],[1,"row"],[1,"col-xs-12","col-sm-6","col-md-4","row","middle-xs"],[1,"col-xs-12","col-sm-6","col-md-4","row","middle-xs",3,"click"],[1,"on-page-nav__item",3,"href"],[1,"on-page-nav__item",3,"routerLink"],[1,"row","middle-xs"]],template:function(o,r){o&1&&y(0,I8,4,0,"div",0),o&2&&w(r.content&&(r.content!=null&&r.content.length)?0:-1)},dependencies:[Vt],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.on-page-nav[_ngcontent-%COMP%]{max-width:600px;margin:10px auto}.on-page-nav__item[_ngcontent-%COMP%]{display:block;position:relative;min-height:60px;padding:10px 40px 10px 10px;border:1px solid rgb(229.5,229.5,229.5);border-radius:3px;background-color:#fff;text-decoration:none;margin:10px;transition:all .3s ease-in-out;height:calc(100% - 40px);width:100%;text-align:left;color:#000;font-family:Open Sans,Arial,Helvetica,"sans-serif"}.on-page-nav__item[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%]{height:100%}.on-page-nav__item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-weight:600;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:12px;color:#00ab4e}.on-page-nav__item[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%]{margin-bottom:.5rem;margin-top:1rem}.on-page-nav__item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;right:15px;transform:translate(10px,-50%) rotate(45deg);transform-origin:center center;width:7px;height:7px;background-color:transparent;border:2px solid;border-left:none;border-bottom:none;opacity:0;transition:all .3s ease-in-out;color:#00ab4e}.on-page-nav__item[_ngcontent-%COMP%]:focus, .on-page-nav__item[_ngcontent-%COMP%]:hover{box-shadow:0 5px 10px #0000001a;text-decoration:none}.on-page-nav__item[_ngcontent-%COMP%]:focus:after, .on-page-nav__item[_ngcontent-%COMP%]:hover:after{opacity:1;transform:translateY(-50%) rotate(45deg)}@media (min-width: 992px){.on-page-nav[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}}@media (min-width: 1200px){.on-page-nav[_ngcontent-%COMP%]{max-width:1040px}.on-page-nav[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:18px}}']});let e=i;return e})(),Nae=(()=>{let i=class i{constructor(n,o,r){this.cmsContentService=n,this.gtmService=o,this.platformId=r,this.feedContent=[]}ngOnInit(){this.cmsContentService.cmsGetContentFeed(this.content).subscribe(n=>{for(let o of n){let r;switch(o.contentType){case"campaign_page":case"product_page":r={imageUrl:o.socialMediaImage?this.cmsContentService.handleImageLocation(o.socialMediaImage.imageContent.uri,"small"):null,imageCaption:o.socialMediaImage?o.socialMediaImage.imageContent.alt:null};break;case"aat_basic_page":case"consultation_response":r={imageUrl:o.socialMediaImage?this.cmsContentService.handleImageLocation(o.socialMediaImage.imageContent.uri,"small"):null,imageCaption:o.socialMediaImage?o.socialMediaImage.imageContent.alt:null};break;case"landing_page":r={imageUrl:o.socialMediaImage?this.cmsContentService.handleImageLocation(o.socialMediaImage.imageContent.uri,"small"):null,imageCaption:o.socialMediaImage?o.socialMediaImage.imageContent.alt:null};break;case"event":case"news_content_type":case"technical_resource":r={
1707imageUrl:o.mainImage?this.cmsContentService.handleImageLocation(o.mainImage.uri,"small"):null,imageCaption:o.mainImage?o.mainImage.alt:null};break;case"disciplinary_outcome":r={imageUrl:this.cmsContentService.handleImageLocation(this.cmsContentService.disciplinaryOutcomeSocialMediaImageUri,"small"),imageCaption:"A pile of paper-filled folders on a desk"};break}this.feedContent.push({title:["event","news_content_type"].includes(o.contentType)?o.seoTitle:o.title,summary:o.summary,imageUrl:r?r.imageUrl:void 0,imageCaption:r?r.imageCaption:void 0,nodeUrl:`/${o.pathAlias}`,label:o.friendlyType})}setTimeout(()=>{this.setImageHeight()},0)})}onResize(){this.setImageHeight()}setImageHeight(){Ee(this.platformId)&&(this.cardElem||(this.cardElem=this.feedElem.nativeElement.getElementsByTagName("a")[0]),this.imageHeight=this.cardElem?this.cardElem.scrollWidth*.52375:null)}onNavigate(n,o){this.gtmService.push({event:"click content feed",element_type:"content navigate",element_path:o.nodeUrl,element_text:o.title})}gtmPush(n,o){this.gtmService.push({event:"click content feed",element_type:"link navigate",element_path:o.link,element_text:o.label})}};i.\u0275fac=function(o){return new(o||i)(I(fi),I(Ft),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-content-feed"]],viewQuery:function(o,r){if(o&1&&It(M8,5),o&2){let a;Se(a=ke())&&(r.feedElem=a.first)}},hostBindings:function(o,r){o&1&&R("resize",function(){return r.onResize()},bn)},inputs:{content:"content"},standalone:!1,decls:15,vars:8,consts:[["feed",""],[1,"content-feed"],[1,"page__container"],[1,"content-feed__feed"],[1,"content-feed__feed-card",3,"href"],[1,"content-feed-links"],[3,"content","callback"],[1,"content-feed__feed-card",3,"click","href"],[1,"content-feed__feed-card-image"],[3,"src","alt"],[1,"content-feed__feed-card-content"],[3,"innerHtml"]],template:function(o,r){o&1&&(h(0,"div",1)(1,"div",2)(2,"header")(3,"h3")(4,"strong"),b(5),p()(),h(6,"p"),b(7),p()(),h(8,"div",3,0),Q(10,P8,10,7,"a",4,ne),Y(12,"slice"),p(),h(13,"div",5),x(14,"fab-on-page-nav",6),p()()()),o&2&&(d(5),A(r.content.contentFeedHeading),d(2),A(r.content.contentFeedIntro),d(3),Z(_n(12,4,r.feedContent,0,r.content.numberOfItems)),d(4),f("content",r.content.pageLinks)("callback",r.gtmPush.bind(r)))},dependencies:[WG,Aa],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.content-feed{background:#f8f8f8;padding:80px 0}.content-feed header{text-align:center;margin:0 0 40px}.content-feed__feed{display:flex;flex-direction:column;flex-wrap:wrap;margin:0 -10px}@media (min-width: 992px){.content-feed__feed{flex-direction:row}}.content-feed__feed-card{border:1px solid #ddd;border-radius:5px;overflow:hidden;min-width:30%;margin:10px;color:#31373e;font-weight:400;box-sizing:border-box;width:calc(100% - 20px)}@media (min-width: 992px){.content-feed__feed-card{max-width:calc(33.333% - 20px)}}.content-feed__feed-card-image{position:relative;overflow:hidden}.content-feed__feed-card-image img{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.content-feed__feed-card-image span{color:#fff;position:absolute;left:10px;bottom:10px;background-color:#0a5c50;border-radius:3px;padding:0 5px;font-size:13px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.content-feed__feed-card-image{position:relative;overflow:hidden}.content-feed__feed-card-image img{position:absolute;top:50%;transform:translateY(-50%);left:0;display:block;width:100%;height:auto}}.content-feed__feed-card-content{padding:10px}.content-feed__feed-card-content>h4,.content-feed__feed-card-content>div{margin-bottom:18px}.content-feed__feed-card:hover{text-decoration:none;color:#31373e}.content-feed-links{margin:0 -10px}.content-feed-links .on-page-nav{max-width:100%} 1708`],encapsulation:2});let e=i;return e})(),$G=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct]});let e=i;return e})(),Vae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,$G]});let e=i;return e})(),zae=(()=>{let i=class i{get activePanel(){return`${this._activePanel}`}set activePanel(n){this._activePanel=parseInt(n,10)}constructor(n,o,r){this.cmsContentService=n,this.gtmService=o,this.platformId=r,this.panels={},this.titles={},this.titleArr=[],this._activePanel=1,this.showPanel=!1,this.loaded=!1,this.imageHeight=0}clickEvent(n){if(this.showPanel){var o=this.dropdownElem.nativeElement.getBoundingClientRect();(n.clientX<o.left||n.clientX>=o.right||n.clientY<o.top||n.clientY>=o.bottom)&&(this.showPanel=!1)}}ngOnInit(){this.options.forEach((n,o)=>{n.optionCards.map(r=>{r.contentType==="disciplinary_outcome"&&(r.imageUrl=this.cmsContentService.disciplinaryOutcomeSocialMediaImageUri,r.imageCaption="A pile of paper-filled folders on a desk");let a=LH.Small;return r.imageConfig={imageURL:this.getImageUrl(r.imageUrl),aspectRatio:{imageWidthInPixels:a.width,imageHeightInPixels:a.height}},r}),this.panels[`${o+1}`]=n.optionCards,this.titles[`${o+1}`]=n.optionText,this.titleArr.push(`${o+1}`)}),Ee(this.platformId)&&setTimeout(()=>{this.setImageHeight()},0),this.loaded=!0}setActive(n){return this.activePanel=n,this.togglePanel(!1),Ee(this.platformId)&&setTimeout(()=>{this.setImageHeight()},0),this.gtmService.push({event:"click content filter",element_type:"dropdown select",element_text:this.titles[this.activePanel]}),!1}togglePanel(n=!this.showPanel){this.showPanel=n}getImageUrl(n){return this.cmsContentService.handleImageLocation(n,"small")}onNavigate(n,o){this.gtmService.push({event:"click content filter",element_type:"navigate",element_path:o.node
1708Url,element_text:o.title})}onResize(){this.setImageHeight()}setImageHeight(){if(Ee(this.platformId)){let n=document.querySelector(".content-filter__options-image");this.imageHeight=n.scrollWidth*.52375}}};i.\u0275fac=function(o){return new(o||i)(I(fi),I(Ft),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-content-filter"]],viewQuery:function(o,r){if(o&1&&It(py,5),o&2){let a;Se(a=ke())&&(r.dropdownElem=a.first)}},hostBindings:function(o,r){o&1&&R("click",function(s){return r.clickEvent(s)},vl)("resize",function(){return r.onResize()},bn)},inputs:{intro:"intro",options:"options"},standalone:!1,decls:1,vars:1,consts:[["dropdown",""],[1,"content-filter__title"],[1,"content-filter__title-hover__container"],[3,"click"],[1,"icon","icon-arrow-down"],[1,"icon","icon-arrow-up"],[1,"content-filter__title-hover__dropdown"],[1,"content-filter__options"],[1,"content-filter__options-single",3,"href","target"],[1,"content-filter__options-single",3,"click","href","target"],[1,"content-filter__options-image",3,"height"],[1,"content-filter__options-single-content"],[3,"innerHtml"],[1,"content-filter__options-image"],[3,"imageConfig"]],template:function(o,r){o&1&&y(0,V8,15,5,"div"),o&2&&w(r.loaded?0:-1)},dependencies:[Gx],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.content-filter__title a,.content-filter__title a:hover{text-decoration:none}.content-filter__title-hover__container{position:relative;display:inline-block}.content-filter__title-hover__dropdown{position:absolute;font-size:1rem;border:1px solid #ddd;border-radius:4px;background:#fff;min-width:calc(100% + 30px);right:-15px;top:100%}.content-filter__title-hover__dropdown ul,.content-filter__title-hover__dropdown ul li{padding:0;margin:0;list-style:none}.content-filter__title-hover__dropdown ul a,.content-filter__title-hover__dropdown ul li a{padding:10px 15px;font-weight:400;display:block;color:inherit;white-space:nowrap}.content-filter__title-hover__dropdown ul a:hover,.content-filter__title-hover__dropdown ul li a:hover{background:#0000000d}.content-filter__options{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 992px){.content-filter__options{flex-direction:row}}.content-filter__options-image{overflow:hidden;height:174px}.content-filter__options-single{border:1px solid #ddd;border-radius:5px;overflow:hidden;min-width:calc(33.333% - 15px);margin:10px 0;color:#31373e;font-weight:400;transition:all .3s ease-in-out}.content-filter__options-single:first-child{margin-left:0}.content-filter__options-single:last-child{margin-right:0}.content-filter__options-single img{display:block;width:100%;height:100%;object-fit:cover}.content-filter__options-single-content{padding:10px}.content-filter__options-single-content>h4,.content-filter__options-single-content>div{margin-bottom:18px}.content-filter__options-single:focus,.content-filter__options-single:hover{transform:translateY(-4px);box-shadow:0 5px 10px #0003;text-decoration:none}@media (min-width: 1200px){.content-filter__options-single:focus .icon,.content-filter__options-single:hover .icon{display:block}}@media (min-width: 992px){.content-filter__options-single{margin:10px}} 1709`],encapsulation:2});let e=i;return e})(),Bae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ux]});let e=i;return e})(),Hae=(()=>{let i=class i{ngOnInit(){this._buildButtonObjects()}_buildButtonObjects(){this.content.firstLink&&(this.ctaOne={type:"primary",text:this.content.firstLink.text,aria:`${this.content.firstLink.text}`,action:{type:"link",link:this.content.firstLink.link,openInNewTab:this.content.firstLink.openInNewTab}}),this.content.secondLink&&(this.ctaTwo={type:"secondary",text:this.content.secondLink.text,aria:`${this.content.secondLink.text}`,action:{type:"link",link:this.content.secondLink.link,openInNewTab:this.content.secondLink.openInNewTab}})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-cta-push"]],inputs:{content:"content"},decls:9,vars:4,consts:[[1,"cta-push"],[1,"cta-push__inner"],[3,"innerHTML"],[1,"cta-push__links"],[3,"button"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1)(2,"h2")(3,"strong"),b(4),p()(),x(5,"p",2),h(6,"div",3),y(7,z8,1,1,"fab-button",4),y(8,B8,1,1,"fab-button",4),p()()()),o&2&&(d(4),A(r.content.title),d(),f("innerHTML",r.content.text,te),d(2),w(r.content.firstLink?7:-1),d(),w(r.content.secondLink?8:-1))},dependencies:[Ve],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.cta-push[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;justify-content:center;align-items:center;font-size:16px}.cta-push__inner[_ngcontent-%COMP%]{text-align:center}@media (min-width: 992px){.cta-push__inner[_ngcontent-%COMP%]{max-width:578px}}@media (min-width: 1200px){.cta-push__inner[_ngcontent-%COMP%]{max-width:646px}}.cta-push__links[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;gap:1rem;flex-direction:column}@media (min-width: 992px){.cta-push__links[_ngcontent-%COMP%]{flex-direction:row;justify-content:center}}"]});let e=i;return e})(),qG=(()=>{let i=class i{createHeaders(){return{headers:new St({"Content-Type":"application/json"})}}constructor(n,o){this.httpClient=n,this.config=o,this.environment=this.config.environment}getCmsData(n){return n||(n="qualsNav"),this.httpClient.get(`${this.config.environment.API_URL}/content/taxonomy?vid=${n}&size=99`,this.createHeaders()).pipe(G(o=>o.totalHits===0?[]:o.hits.reduce((r,a)=>(r[a.id]=a,r),{})))}};i.\u0275fac=function(o){return new(o||i)(U(kt),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),YG=(()=>{let i=class i{constructor(){this.button={text:"Find a training provider",useRouterLink:!1,link:"/training-providers/search",disabled:!1,type:"regular",size:"medium",fullWidth:!0}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-product-card-medium"]],inputs:{content:"content"},standalone:!1,decls:11,vars:8,consts:[[1,"product-medium__card-container"],["target","_blank",1,"product-medium__card",3,"href"],[1,"product-medium__card-image",3,"backgroundImage"],[1,"product-medium__card-content"],[1,"product-medium__card-content--title"],[1,"product-medium__card-content--scottish-title"],[1,"product-medium__card-content--summary",3,"innerHTML"],[1,"product-medium__card-cost"],[1,"product-medium__card-image"],[1,"product-medium__card-tag"],[1,"product-medium__card-tag","product-medium__card-tag--yellow"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"a",1),y(2,U8,3,4,"div",2),h(3,"div",3)(4,"div",4)(5,"h4"),b(6),p()(),y(7,j8,3,1,"div",5),x(8,"div",6),Y(9,"htmlStripper"),p(),y(10,W8,4,1,"div",7),p()()),o&2&&(d(),f("href",r.content.url,ee),d(),w(r.content.imageUrl?2:-1),d(4),A(r.content.title),d(),w(r.content.scottishQualName.length>0?7:-1),d(),f("innerHTML",me(9,6,r.content.summary),te),d(2),w(r.content.assessmentFees?10:-1))},dependencies:[su],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.product-medium__card-container{display:inline-block;position:relative}.product-medium__card{background:#fff;border:1px solid rgb(229.5,229.5,229.5);display:flex;flex-direction:column;font-size:18px;font-weight:inherit;position:relative;transition:all .3s ease-in-out}.product-medium__card:hover,.product-medium__card:focus{box-shadow:0 5px 10px #0003;transform:translateY(-4px)}.product-medium__card,.product-medium__card:hover,.product-medium__card:active,.product-medium__card:focus{color:inherit;text-decoration:none}.product-medium__card-image{position:relative;display:flex;align-items:flex-end;height:188px;background-repeat:no-repeat;background-position:center;background-size:cover}.product-medium__card-image span{padding:6px 4px;margin-bottom:4px;margin-left:4px;margin-right:0}.product-medium__card-tag{font-size:11px;font-weight:600;line-height:1em;padding:4px;border-radius:3px;background-color:#a0aef0;margin-right:4px;color:#000}.product-medium__card-tag--yellow{background-color:#fac05c}.product-medium__card-content{padding:10px}.product-medium__card-content--title,.product-medium__card-content--scottish-title{background-color:#00ab4e;margin:-10px -10px 10px;padding:10px}.product-medium__card-content--title h4,.product-medium__card-content--title h5,.product-medium__card-content--scottish-title h4,.product-medium__card-content--scottish-title h5{color:#fff}.product-medium__card-content--scottish-title{margin-top:-20px}.product-medium__card-cost{padding:5px 10px 20px;margin-top:auto} 1710`],encapsulation:2});let e=i;return e})(),jx=(()=>{let i=class i{constructor(n,o,r){this.productCardsService=n,this.gtmService=o,this.config=r,this.onLoaded=new se,this.productCards=void 0}ngOnInit(){this.getData()}ngOnChanges(n){n&&n.productNodeIds&&!n.productNodeIds.firstChange&&(this.productCards=void 0,this.getData())}getData(){this.productCardsService.getProductCardMediumData(this.productNodeIds).subscribe(n=>{this.productCards=n,this.onLoaded.next(n)})}addToGa(n){let o={event:"customClick",element_type:"cta",element_path:`/${n.url}`,element_url:this.config.environment.BASE_URL+`/${n.url}`};this.gtmService.push(o)}};i.\u0275fac=function(o){return new(o||i)(I(Fx),I(Ft),I("fabricServicesConfig"))},i.\u0275cmp=N({type:i,selectors:[["fab-product-card-container"]],inputs:{productNodeIds:"productNodeIds"},outputs:{onLoaded:"onLoaded"},standalone:!1,features:[qe],decls:1,vars:1,consts:[[1,"product-card-container"],[1,"product-card-container--wrapper"],[3,"click","content"]],template:function(o,r){o&1&&y(0,q8,3,0,"div",0),o&2&&w(r.productCards?0:-1)},dependencies:[YG],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.product-card-container{display:flex;flex-wrap:wrap;justify-content:center}.product-card-container--wrapper{flex-basis:100%;height:100%}.product-card-container--wrapper fab-product-card-medium{display:flex;height:calc(100% - 20px);margin:10px 0}.product-card-container--wrapper fab-product-card-medium .product-medium__card-container>a{height:100%}@media (min-width: 576px){.product-card-container--wrapper{flex-basis:33.333%;height:auto}.product-card-container--wrapper fab-product-card-medium{margin:10px 5px}}@media (min-width: 768px){.product-card-container--wrapper fab-product-card-medium{margin:10px}} 1711`],encapsulation:2});let e=i;return e})(),Wx=(()=>{let i=class i{constructor(n,o){this.gtmService=n,this.platformId=o,this.onSubmit=new se,this.onChange=new se}ngAfterViewInit(){if(typeof hbspt>"u"||!Ee(this.platformId))return;Ee(this.platformId)&&(this.pageUrl=window.location.href,window.jQuery=window.jQuery||
1711(()=>({change:()=>{},trigger:()=>{}})));let{portalId:n,formId:o,formMapping:r}=this;r=ae(M({},r),{current_form_url:"hs_current_form_url"});let a=()=>{if(setTimeout(s,100),this.onChange){let l=document.querySelectorAll("form.hs-form input, form.hs-form textarea, form.hs-form select"),c=Array.from(l).reduce((u,m)=>(u[m.name]=m.value,u),{});this.onChange.emit(c)}},s=()=>{let l=document.querySelectorAll("form.hs-form h1"),c=document.querySelectorAll(` 1712 form.hs-form .hs-form-field label:not(.altered-element), 1713 form.hs-form .hs-form-checkbox > label:not(.altered-element), 1714 form.hs-form .hs-form-booleancheckbox-display:not(.altered-element) 1715 `),u=document.querySelectorAll(` 1716 form.hs-form input:not(.altered-element), 1717 form.hs-form textarea:not(.altered-element) 1718 `),m=document.querySelectorAll("form.hs-form ul[role=checkbox]"),v=document.querySelectorAll("form.hs-form input[type=checkbox]:not(.altered-element)"),C=document.querySelectorAll("form.hs-form .hs-form-field label .hs-form-required:not(.altered-element)"),_=document.querySelectorAll("form.hs-form .hs-fieldtype-select .input:not(.altered-element)"),E=document.querySelectorAll("form.hs-form .hs-richtext + .hs-form-field:not(.altered-element)");Array.from(l).forEach(T=>{T.outerHTML=`<h2>${T.innerHTML}</h2>`}),Array.from(c).filter(T=>!T.nextElementSibling||T.nextElementSibling.nextElementSibling&&!T.nextElementSibling.nextElementSibling.querySelectorAll(".multi-container").length).filter(T=>!Array.from(T.querySelectorAll(".hs-form-required")).length).forEach(T=>{T.querySelector("span")&&(T.querySelector("span").innerHTML=`${T.querySelector("span").innerHTML} (optional)`,T.classList.add("altered-element"))}),Array.from(C).forEach(T=>{T.innerHTML="",T.classList.add("altered-element")}),Array.from(_).forEach(T=>{T.classList.add("altered-element"),T.addEventListener("change",a)}),Array.from(u).forEach(T=>{T.classList.add("form-control"),T.classList.add("altered-element"),T.addEventListener("change",a)});let D=T=>{let O=T.checked,K=T.parentElement;K&&(O?K.classList.add("hs-checkbox-checked"):K.classList.remove("hs-checkbox-checked"))},P=T=>{T.forEach(O=>{let K=O.checked,we=O.parentElement;we&&(K?we.classList.add("hs-checkbox-checked"):we.classList.remove("hs-checkbox-checked"))})};Array.from(v).forEach(T=>{D(T),T.addEventListener("change",O=>{D(O.currentTarget),a()}),T.classList.add("altered-element")}),Array.from(m).forEach(T=>{let O=T.querySelectorAll("input[type=radio]");P(O)}),Array.from(E).forEach(T=>{let O=T.previousSibling;T.parentElement.appendChild(O),T.classList.add("altered-element")}),r&&Object.keys(r).length&&setTimeout(()=>{Object.entries(r).map(([T,O])=>[document.querySelector(`input[name="${T}"]`),document.getElementById(O)]).filter(([T,O])=>T&&O).forEach(([T,O])=>{let K=we=>({target:Ke})=>{we.setAttribute("value",Ke.value)};T.setAttribute("value",O.getAttribute("value")||O.value),O.addEventListener("change",K(T))})},100)};hbspt.forms.create({region:"eu1",portalId:Number(n),formId:o,target:"#hubspotForm",cssClass:"hubspot-form",errorClass:"form-control form__field-invalid",submitButtonClass:"button-primary",onFormReady:s,onFormSubmitted:(l,c)=>{this.onSubmit&&(this.onSubmit.emit(),this.gtmService.push({event:"hubspotFormSubmit",formId:o,user:{email:c.submissionValues?.email,phone:c.submissionValues?.phone,firstName:c.submissionValues?.firstname,lastName:c.submissionValues?.lastname}}))}})}};i.\u0275fac=function(o){return new(o||i)(I(Ft),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-hubspot-form"]],inputs:{formId:"formId",portalId:"portalId",formMapping:"formMapping"},outputs:{onSubmit:"onSubmit",onChange:"onChange"},standalone:!1,decls:2,vars:2,consts:[["id","hubspotForm"],["type","hidden","id","hs_current_form_url","name","hs_current_form_url",3,"value"]],template:function(o,r){o&1&&x(0,"div",0)(1,"input",1),o&2&&(d(),f("value",oe(r.pageUrl)))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.hs-form .form__field-invalid{border-radius:3px;background-color:#fff;border:solid #e22b25}.hs-form .hs-form-field{margin-top:1.4em}.hs-form .hs-input{box-sizing:border-box;display:inline-block;font-size:16px;padding:6px;border:2px solid #dfe1e5;outline:0;border-radius:3px}.hs-form .hs-input:focus{border-color:#ffd432}.hs-form .hs-input:not([type=submit]){width:100%}.hs-form .hs-form-field label{display:block;padding-bottom:3px;margin:0}.hs-form .hs-form-field label span{color:#31373e;cursor:default;display:inline;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:inherit;font-weight:400}.hs-form .hs-error-msgs li{margin:0}.hs-form .hs-error-msgs li label{font-weight:600;font-size:11px;color:#e22b25}@media screen and (min-width: 992px){.hs-form .hs-error-msgs li label{font-size:14px}}.hs-form .hs-form-booleancheckbox input,.hs-form .hs-form-checkbox input{display:none}.hs-form .hs-form-booleancheckbox label,.hs-form .hs-form-checkbox label{position:relative}.hs-form .hs-form-booleancheckbox label span,.hs-form .hs-form-checkbox label span{margin-left:0}.hs-form .hs-form-booleancheckbox label:before,.hs-form .hs-form-checkbox label:before{content:"";margin-right:10px;display:inline-block;vertical-align:text-top;width:20px;height:20px;background:#fff;border:2px solid #e6e6e6;margin-left:0;margin-top:1px}.hs-form .hs-form-booleancheckbox label:not(.hs-checkbox-checked):hover:before,.hs-form .hs-form-checkbox label:not(.hs-checkbox-checked):hover:before{border-color:#ffd432}.hs-form .hs-form-booleancheckbox .hs-checkbox-checked:before,.hs-form .hs-form-checkbox .hs-checkbox-checked:before{background:#00ab4e;border:2px solid #00ab4e}.hs-form .hs-form-booleancheckbox .hs-checkbox-checked:after,.hs-form .hs-form-checkbox .hs-checkbox-checked:after{content:"";position:absolute;
1718left:5px;top:11px;background:#fff;width:2px;height:2px;box-shadow:2px 0 #fff,4px 0 #fff,4px -2px #fff,4px -4px #fff,4px -6px #fff,4px -8px #fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.hs-form .button-primary{text-decoration:none;text-align:center;color:#000;cursor:pointer;border-radius:4px;border:2px solid transparent;background-color:#008048;color:#fff;display:inline-block;transition:all .2s ease-in-out;font-weight:600;padding:10px 14px;margin-top:1.4em}.hs-form .button-primary:hover{text-decoration:underline;background:#0a5c50}.hs-form .button-primary:focus{outline:medium solid #145fc8;outline-offset:4px;text-decoration:underline;background:#0a5c50}.hs-form .hs-fieldtype-select .input{position:relative}.hs-form .hs-fieldtype-select .input select{background:#fff;cursor:pointer;position:relative;padding:7px 10px;border:2px solid #e6e6e6;white-space:nowrap;text-overflow:ellipsis;-webkit-appearance:none;width:100%;outline:0;border-radius:3px}.hs-form .hs-fieldtype-select .input select:focus{border-color:#ffd432}.hs-form .hs-fieldtype-select .input:after{content:"\\e906";font-family:icomoon;position:absolute;top:12px;right:12px;pointer-events:none}.hs-form .hs-form-field+.hs-richtext{padding:10px 0 0}.hs-form .legal-consent-container ul,.hs-form .legal-consent-container li{list-style:none;list-style-type:none;padding:0} 1719`],encapsulation:2});let e=i;return e})(),Gae=(()=>{let i=class i{addQuestion(n){let o={id:n.id,label:n.questionText,answers:n.answers.map((r,a)=>({id:`${n.id}-${a}`,index:a,label:r.answerText,value:r.nextQuestion?{type:"nextQuestion",value:r.nextQuestion}:r.productsForAnswer&&r.outputTextForAnswer?{type:"products-and-text",value:{products:r.productsForAnswer,text:r.outputTextForAnswer}}:r.productsForAnswer?{type:"products",value:{products:r.productsForAnswer}}:r.outputTextForAnswer?{type:"text",value:{text:r.outputTextForAnswer}}:void 0})),isOpen:!0};this.formTemplate.push(o),this.form.addControl(n.id,new En("",et.required))}scroll(n){setTimeout(()=>{let o=document.getElementById(n);if(!o)return;let r=o.getBoundingClientRect().top+window.pageYOffset-window.innerHeight/2;window.scrollTo({top:r,behavior:"smooth"})},0)}print(){let n={event:"customClick",element_type:"cta",element_text:"print results"};this.gtmService.push(n),window.print()}clear(){let n={event:"customClick",element_type:"cta",element_text:"restart assessment"};this.gtmService.push(n),this.form=new en({}),this.formTemplate=[],this.resultsToDisplay=null,this.showResultsSection=!1,this.initForm(),this.scroll(this.content.initialQuestionId)}constructor(n,o){this.decisionTreeService=n,this.gtmService=o,this.showResultsSection=!1,this.haveProductCardsLoaded=!0,this.hubspotMapping={environment:"hs_environment",product_recommendation___quals_nav:"hs_product_recommendation___quals_nav"},this.hubspotData={environment:"",product_recommendation:void 0},this.printButton={text:"Print results",type:"primary",action:{type:"callback",callback:this.print.bind(this)},glyph:{icon:ko.PRINT},aria:"Print results"},this.restartButton={text:"Restart assessment",action:{type:"callback",callback:()=>this.clear()},type:"secondary",aria:"Restart assessment"},this.hubspotData.environment=this.decisionTreeService.environment.production?"production":"uat"}ngOnInit(){this.form=new en({}),this.formTemplate=[],this.decisionTreeService.getCmsData(this.content.initialQuestionVocab).subscribe(n=>{this.questionData=n,this.initForm()})}initForm(){this.restartButton.text=this.content.restartButtonText;let n=this.questionData[this.content.initialQuestionId];n?this.addQuestion(n):console.error("Error - no question exists with ID",this.content.initialQuestionId)}onAnswerSelect(n,o,r,a){var s=n.target;if(s.checked)if(r+1<this.formTemplate.length&&(this.resultsToDisplay=null,this.showResultsSection=!1,this.formTemplate.splice(r+1).forEach(c=>{this.form.removeControl(c.id)})),o===void 0)console.error("Error - no value for selected answer. Cannot continue.");else{let l={funnel_name:Object.values(this.questionData)[r].vid,event:"funnel_step",question:this.formTemplate[r].label,answer:a};switch(this.resultsToDisplay=null,this.resultsText=null,o.type){case"nextQuestion":this.showResultsSection=!1;let c=this.questionData[o.value];this.gtmService.push(l),c?(this.addQuestion(c),this.scroll(c.id)):console.error("Error - no question exists with ID",o);break;case"text":this.gtmService.push(l),this.resultsText=o.value.text,this.showResultsSection=!0,this.scroll("decision-tree-results");break;case"products":this.haveProductCardsLoaded=!1,this.resultsText=null,this.answerProductCards(o),this.scroll("decision-tree-results");break;case"products-and-text":this.answerProductCards(o),this.gtmService.push(l),this.resultsText=o.value.text,this.scroll("decision-tree-results");break}}}answerProductCards(n){this.haveProductCardsLoaded=!1;let o=Array.isArray(n.value.products)?n.value.products:[n.value.products];this.resultsToDisplay=o.map(r=>r.nid).slice(),this.showResultsSection=!0}
1719onProductCardsLoad(n){this.haveProductCardsLoaded=!0,this.hubspotData.product_recommendation=n.map(o=>o.programmeComponentId||o.url.split("/").pop()).join(";")}};i.\u0275fac=function(o){return new(o||i)(I(qG),I(Ft))},i.\u0275cmp=N({type:i,selectors:[["fab-decision-tree"]],inputs:{content:"content"},standalone:!1,decls:5,vars:2,consts:[[1,"decision-tree"],["autocomplete","off",3,"formGroup"],[1,"decision-tree__question"],["id","decision-tree-results",1,"decision-tree__results"],[3,"title","isOpen","id"],["body","",1,"decision-tree__answer"],["type","radio",3,"change","formControlName","id","value"],[3,"for"],[3,"innerHTML"],[3,"productNodeIds"],[3,"onLoaded","productNodeIds"],[1,"decision-tree__results--intro",3,"innerHTML"],[1,"decision-tree__results--buttons"],[1,"decision-tree__results--button"],[3,"button"],[3,"portalId","formId","formMapping"],["type","hidden","id","hs_environment","name","hs_environment",3,"value"],["type","hidden","id","hs_product_recommendation___quals_nav","name","hs_product_recommendation___quals_nav",3,"value"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"form",1),Q(2,K8,4,3,"div",2,ne),p(),y(4,oV,5,4,"div",3),p()),o&2&&(d(),f("formGroup",r.form),d(),Z(r.formTemplate),d(2),w(r.showResultsSection?4:-1))},dependencies:[Jg,kp,no,fc,Ko,ss,Vr,bc,jx,OG,Wx,Ve],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.decision-tree__question{margin-bottom:45px}.decision-tree__answer{margin-bottom:10px}.decision-tree__answer input{margin-right:10px}.decision-tree__results--buttons{display:flex;justify-content:space-between;align-items:center;margin-bottom:45px}.decision-tree__results--intro,.decision-tree__results fab-product-card-container{display:block;margin-bottom:45px}.decision-tree__results h2{margin-bottom:20px}.decision-tree__results h1{font-size:1.953em}@media (min-width: 992px){.decision-tree__results h1{font-size:2.369em}}.decision-tree input[type=radio]{display:none!important}.decision-tree input[type=radio]~label{padding-left:34px;position:relative;text-transform:none;font-size:17px;line-height:24px;cursor:pointer;display:inline-block;height:24px}.decision-tree input[type=radio]~label:before{content:"";box-sizing:border-box;border-radius:50%;display:inline-block;width:24px;height:24px;border:2px solid #000000;position:absolute;left:0;top:0}.decision-tree input[type=radio]~label:after{opacity:0;transition:opacity .15s ease;content:"";display:inline-flex;justify-content:center;align-items:center;width:12px;height:12px;margin:6px;background-color:#00ab4e;position:absolute;left:0;top:0;border-radius:50%}.decision-tree input[type=radio]:checked~label:before{border-color:#00ab4e;border-width:4px}.decision-tree input[type=radio]:checked~label:after{opacity:1} 1720`],encapsulation:2});let e=i;return e})(),$x=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),KG=(()=>{let i=class i{set content(n){this._content=n}get content(){return this._content}constructor(n){this.basketService=n,this.isInBasket=!1,this.hasFees=!0,this.button={text:"Add to basket",action:{type:"callback",callback:()=>{this.basketService.addToBasket(this.basketItem),this.checkIsInBasket(this.basketItem)}},type:"primary",glyph:{icon:ko.CART},aria:"Add to basket"},this.notification={type:"ghost",message:"This is your one-off registration fee, which is part of the standard qualification fee. You'll pay for your assessments separately: see the Fees section on this page.",fullWidth:!0}}ngOnInit(){this._checkFees(),this.checkIsInBasket(this.basketItem),(!this.content.canAddToBasket||!this.content.basketable)&&(this.button.disabled=!0),this.content.isUnder16?(this.button.action={type:"link",link:"https://aat.jotform.com/231433561840047",openInNewTab:!0},this.button.glyph.icon=ko.LINK,this.button.text="Complete the registration form",this.button.aria=this.button.text):this.content.isMember&&(this.button.action={type:"callback",callback:()=>{window.open(this.content.qualificationStandardName==="2022"?"https://www.aat.org.uk/prod/s3fs-public/assets/AAT-registration-form-under-16-year-olds.pdf":"https://www.aat.org.uk/prod/s3fs-public/assets/AAT-registration-form-under-16-year-olds-and-existing-members.pdf","_blank")}},this.button.glyph.icon=ko.DOWNLOAD,this.button.text="Download and complete the PDF registration form.",this.button.aria=this.button.text),this.content.studentMembership&&(this.notification={type:"ghost",message:'Qualification included as part of <a href="/qualifications-and-courses/accounting/student-membership">student membership</a>',fullWidth:!0})}checkIsInBasket(n){let o=!1;
1720this.basketService.getBasket().forEach(r=>{(r.programmeComponentId===n.programmeComponentId||r.topLevelComponentId===n.topLevelComponentId)&&(o=!0)}),o?(this.button.text="Added",this.button.disabled=!0):(this.button.text="Add to basket",this.button.disabled=!1),this.isInBasket=o}parsePrice(n){return`\xA3${`${n}`.replace(/£/g,"")}`}_checkFees(){(!this.content?.fees?.aatFeesUk||Number.isNaN(this.content.fees.aatFeesUk))&&(!this.content?.fees?.memberFeeUk||Number.isNaN(this.content.fees.memberFeeUk))&&(this.hasFees=!1)}};i.\u0275fac=function(o){return new(o||i)(I(ru))},i.\u0275cmp=N({type:i,selectors:[["fab-product-card-small"]],inputs:{content:"content",basketItem:"basketItem"},standalone:!1,decls:11,vars:9,consts:[[1,"product-small__card-container"],[1,"product-small__card"],[1,"product-small__card--price"],[1,"product-small__card--fees"],[1,"small--right"],[1,"notification","notification-above"],[3,"enabled","button"],[1,"product-small__card-view-basket-button"],[3,"notification"],["href","/registration/basket"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1),y(2,rV,2,1,"div",2),h(3,"div",3),y(4,lV,7,1),y(5,cV,5,0,"small",4),p(),y(6,dV,2,0,"div",5),y(7,uV,2,0,"div",5),x(8,"fab-button",6),y(9,pV,3,0,"div",7),x(10,"fab-notification",8),p()()),o&2&&(d(2),w(r.hasFees?2:-1),d(2),w(r.content.pricePart&&r.hasFees?4:-1),d(),w(r.content.basketable?-1:5),d(),w(r.content.isUnder16?6:-1),d(),w(r.content.isMember?7:-1),d(),f("enabled",!r.button.disabled)("button",r.button),d(),w(r.isInBasket?9:-1),d(),f("notification",r.notification))},dependencies:[Ve,sm],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.product-small__card-container{position:relative;max-width:350px}.product-small__card{position:relative;background:#fff;text-align:center;padding:20px 15px;margin-bottom:-150px;min-width:250px;border-radius:5px;box-shadow:0 1px 2px 2px #0000000d}.product-small__card small{float:none}.product-small__card--price{font-size:2rem;font-weight:600;margin:10px 0 15px}.product-small__card--fees{margin:0 0 30px}.product-small__card-view-basket-button{margin-bottom:20px} 1721`],encapsulation:2});let e=i;return e})(),qx=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct,Ve,cu,rm]});let e=i;return e})(),Yx=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,qx]});let e=i;return e})(),Uae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Xg,Zo,Yx,LG,Nx,$x,Ve]});let e=i;return e})();var jae=(()=>{let i=class i{constructor(){}ngOnInit(){}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-disciplinary-outcome"]],inputs:{content:"content"},standalone:!1,decls:29,vars:14,consts:[[1,"disciplinary-outcome"],[3,"innerHtml"],[1,"disciplinary-outcome__link"],["href","/membership/standards-requirements/disciplinary-processes-tribunals/outcomes"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"h2"),b(2),p(),h(3,"h3"),b(4,"In the matter of"),p(),h(5,"p"),b(6),p(),h(7,"h3"),b(8,"Membership number"),p(),h(9,"p"),b(10),p(),h(11,"h3"),b(12,"Date"),p(),h(13,"p"),b(14),Y(15,"date"),p(),h(16,"h3"),b(17,"Misconduct"),p(),x(18,"div",1),h(19,"h3"),b(20,"Finding"),p(),x(21,"div",1),h(22,"h3"),b(23,"Order"),p(),x(24,"div",1),y(25,hV,4,1,"div"),h(26,"div",2)(27,"a",3),b(28,"See all AAT disciplinary outcomes and licence terminations"),p()()()),o&2&&(d(2),A(r.content.disciplinaryOutcomeType),d(4),Nm(" ",r.content.title," ",r.content.firstName," ",r.content.lastName," ",r.content.designatoryLetters," "),d(4),A(r.content.membershipNumber),d(4),A(Mt(15,11,r.content.disciplinaryDate,"d MMMM yyyy")),d(4),f("innerHtml",r.content.disciplinaryMisconduct,te),d(3),f("innerHtml",r.content.disciplinaryFinding,te),d(3),f("innerHtml",r.content.disciplinaryOrder,te),d(),w(r.content.disciplinaryConsent?25:-1))},dependencies:[Bo],styles:[`.disciplinary-outcome h3{margin-top:15px}.disciplinary-outcome h3+p,.disciplinary-outcome h3+div>p:first-child{margin-top:5px}.disciplinary-outcome__link{margin-top:40px} 1722`],encapsulation:2});let e=i;return e})(),Wae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})();var QG=(()=>{let i=class i{constructor(n){Ee(n)&&(this.isBrowser=!0)}ngOnInit(){}run(n){return this[n]()}print(){this.isBrowser&&window.print()}getIconSource(){return`/assets/fonts/icons/aat-icons/${this.item.icon}.svg`}};i.\u0275fac=function(o){return new(o||i)(I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-icon-links-item"]],inputs:{item:"item"},standalone:!1,decls:5,vars:4,consts:[[1,"icon-links__link",3,"click"],[1,"icon",3,"ngClass"],[1,"icon",3,"src"]],template:function(o,r){o&1&&(h(0,"a",0),R("click",function(){return r.run(r.item.action)}),y(1,gV,1,1,"i",1),y(2,mV,1,1,"img",2),h(3,"span"),b(4),p()()),o&2&&(ve("href",r.item.link?r.item.link:null,ee),d(),w(r.item.useAatIcon?-1:1),d(),w(r.item.useAatIcon?2:-1),d(2),A(r.item.label))},dependencies:[Ie],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2} .icon-links{display:flex;flex-direction:row} .icon-links a.icon-links__link{background-color:#fff;border:2px solid #000000;box-sizing:border-box;border-radius:50%;position:relative;height:40px;width:40px;margin:5px;
1722display:inline-block;text-decoration:none;transition:all .3s ease-in-out} .icon-links a.icon-links__link i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:20px;color:#000} .icon-links a.icon-links__link span{text-align:left;font-family:Open Sans,Arial,Helvetica,"sans-serif";position:absolute;top:-7px;left:50%;background-color:#2f2f2f;padding:5px;transform:translate(-50%,-100%);display:none;font-size:14px;color:#fff;width:max-content;max-width:150px} .icon-links a.icon-links__link span:after{content:"";width:5px;height:5px;position:absolute;bottom:-3px;left:50%;background-color:#2f2f2f;transform-origin:center center;transform:rotate(45deg) translate(-33%)} .icon-links a.icon-links__link:hover{box-shadow:0 5px 5px #00000040} .icon-links a.icon-links__link:hover span{display:block} .icon-links--vertical{flex-direction:column;text-align:right} .icon-links--vertical a.icon-links__link span{top:50%;left:-7px;transform:translate(-100%,-50%)} .icon-links--vertical a.icon-links__link span:after{inset:50% -1px auto auto;transform:rotate(45deg) translate(0) translateY(-33%)}']});let e=i;return e})(),ZG=(()=>{let i=class i{constructor(){}ngOnInit(){}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-icon-links"]],inputs:{content:"content"},standalone:!1,decls:3,vars:1,consts:[[1,"icon-links","dont-print",3,"ngClass"],[3,"item"]],template:function(o,r){o&1&&(h(0,"div",0),Q(1,fV,1,1,"fab-icon-links-item",1,ne),p()),o&2&&(f("ngClass",r.content.vertical?"icon-links--vertical":"icon-links--horizontal"),d(),Z(r.content.items))},dependencies:[Ie,QG],styles:[vV]});let e=i;return e})(),$ae=(()=>{let i=class i{constructor(n,o){this.sanitizer=n,this.colOffset=2,this.hoverToolTip=!1,this.clickToolTip=!1,this.iconLinks={vertical:!1,items:[{label:"Print",icon:"print",action:"print"}]},Ee(o)&&(this.isBrowser=!0)}set content(n){this._content=n}get content(){return this._content}getSanitizer(n){return this.sanitizer.bypassSecurityTrustStyle(`url(${this._content.background})`)}hoverInfoIcon(n){this.hoverToolTip=!this.hoverToolTip}clickInfoIcon(n){this.clickToolTip=!this.clickToolTip}ngOnInit(){this.content.button&&(this.content.cta={text:this.content.button.text??this.content.button.linkCta,aria:this.content.button.text??this.content.button.linkCta,action:{type:"link",link:this.content.button.link,useRouterLink:!1,openInNewTab:this.content.button.openInNewTab},type:"primary"})}};i.\u0275fac=function(o){return new(o||i)(I(wn),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-standard-hero"]],inputs:{colOffset:"colOffset",content:"content"},standalone:!1,ngContentSelectors:tu,decls:15,vars:33,consts:[[3,"ngStyle","ngClass"],[1,"standard-hero--tool-tip"],[3,"ngClass"],[1,"standard-hero__topline","dont-print",3,"href"],[1,"standard-hero__topline","dont-print",3,"routerLink"],[3,"innerHTML"],[1,"standard-hero__content--subtitle",3,"innerHTML","ngClass"],[1,"standard-hero__author-container"],[1,"standard-hero__button-container"],[1,"standard-hero__sponsor-container"],[1,"button-primary-container",3,"ngClass"],[1,"standard-hero--cta-button",3,"button"],[1,"standard-hero__attribution","standard-hero__copy--light"],[1,"icon","icon-info",3,"tooltip","positionInput"],[1,"standard-hero__author-link",3,"href"],[1,"standard-hero__author-link",3,"routerLink"],[1,"standard-hero__author-name"],[3,"content"],["target","_blank",3,"href"],["alt","",1,"standard-hero__sponsor-container--image",3,"src"]],template:function(o,r){o&1&&(jt(),h(0,"div",0),y(1,xV,2,2,"div",1),h(2,"div",2),y(3,SV,2,3,"a",3),y(4,kV,2,4,"a",4),y(5,EV,1,1,"h1",5),y(6,TV,1,4,"div",6),y(7,IV,1,1,"p",5),y(8,PV,5,2,"div",7),y(9,FV,2,1,"div",8),y(10,AV,5,4,"div",9),Tt(11),h(12,"div",10),y(13,OV,1,1,"fab-button",11),p()(),y(14,LV,3,1,"div",12),p()),o&2&&(ie(Wt("standard-hero row standard-hero--theme-",r.content.theme)),ot("background-image",r.content.background?r.getSanitizer(r.content.background):"none"),f("ngStyle",Sl(23,CV))("ngClass",$t(24,bV,r.content.expanded,r.content.isContentDetail,r.content.attribution)),d(),w(r.content.gdprIdentifier?1:-1),d(),ie(Wt("standard-hero__content standard-hero__content--",r.content.align," col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2 col-xs-10 col-xs-offset-1")),f("ngClass",He(28,_V,r.content.colourWay==="light",r.content.attribution)),d(),w(r.content.useRouterLink?-1:3),d(),w(r.content.useRouterLink?4:-1),d(),w(r.content.title?5:-1),d(),w(r.content.subTitle?6:-1),d(),w(r.content.content?7:-1),d(),w(r.content.authorline?8:-1),d(),w(r.content.isContentDetail?9:-1),d(),w(r.content.sponsorshipDetails!=null&&r.content.sponsorshipDetails.image?10:-1),d(2),f("ngClass",j(31,yV,!r.content.content)),d(),w(r.content.cta?13:-1),d(),w(r.content.attribution?14:-1))},dependencies:[Ie,Kn,ZG,Vt,Ve,Nn,Bd],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.standard-hero{position:relative;margin-bottom:20px;background-color:#f9f9f9}
1722.standard-hero--details{background-color:#fff}.standard-hero--tool-tip{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;position:relative;top:0;right:0;opacity:.9;justify-content:flex-end;position:absolute;width:100%}.standard-hero .bubble{position:relative;background-color:#000;border-radius:4px;top:10px;right:25px;left:auto;width:auto;max-width:calc(100% - 90px);padding:5px 10px;color:#fff;font-size:14px}.standard-hero .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.standard-hero .bubble{top:10px;left:auto;right:26px}}.standard-hero .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:9px;-webkit-transform:rotate(360deg);transform:rotate(360deg)}@media (min-width: 992px){.standard-hero .bubble:after{left:auto;top:12px}}.standard-hero .icon-info{position:relative;font-size:20px;left:auto;right:10px;top:12px;border:1px solid #fff;background-color:#fff;border-radius:50%;height:100%}@media (min-width: 992px){.standard-hero .icon-info{top:10px;font-size:30px}}.standard-hero__gdpr-info{width:100%;text-align:right;padding-right:5px}.standard-hero__topline{font-size:14px;text-decoration:none}@media (min-width: 992px){.standard-hero__topline{font-size:16px}}.standard-hero__sponsor-container{display:flex;justify-content:center;align-items:center}.standard-hero__sponsor-container--image{height:50px}.standard-hero__author-container{display:flex;justify-content:center}.standard-hero__button-container fab-icon-links{position:absolute;right:0;transform:translateY(-2px)}.standard-hero__author-link{text-decoration:none;overflow:hidden;margin-left:5px;font-weight:400}.standard-hero__author-name{color:#00ab4e}.standard-hero.row{max-width:100vw}.standard-hero h1{font-family:acumin-pro-wide,Arial;color:#000}.standard-hero--theme-green{background:#00ab4e}.standard-hero--theme-green h1,.standard-hero--theme-green p,.standard-hero--theme-green b,.standard-hero--theme-green .standard-hero__content--subtitle{color:#fff}.standard-hero--theme-white{background:#fff}.standard-hero--theme-white h1,.standard-hero--theme-white p,.standard-hero--theme-white b,.standard-hero--theme-white .standard-hero__content--subtitle{color:#000}.standard-hero--expanded{padding-bottom:100px;margin-bottom:-100px}.standard-hero__content{text-align:center;margin-top:80px;margin-bottom:100px}.standard-hero__content p{font-weight:400}@media only screen and (max-width: 576px){.standard-hero__content p{font-size:14px}}@media only screen and (min-width: 768px) and (max-width: 992px){.standard-hero__content p{font-size:16px}}@media only screen and (min-width: 992px){.standard-hero__content p{font-size:18px;font-weight:600}}.standard-hero__content--left{text-align:left}.standard-hero__content--right{text-align:right}.standard-hero__content--subtitle.light{color:#fff}.standard-hero__content--subtitle div{font-size:34.174px;margin-bottom:20px;font-weight:100}@media (min-width: 992px){.standard-hero__content--subtitle div{font-size:39.056x}}@media (min-width: 1200px){.standard-hero__content--subtitle div{font-size:56.826px}}.standard-hero__content.standard-hero--v2{text-align:center;margin-top:80px;margin-bottom:0}@media (min-width: 992px){.standard-hero__content.standard-hero--v2{margin-top:110px}}.standard-hero .standard-hero__copy--light h1,.standard-hero .standard-hero__copy--light p{color:#fff}.standard-hero .standard-hero__attribution{text-align:center;width:100%;padding-right:0}.standard-hero .standard-hero__attribution p{margin-top:0}@media (min-width: 992px){.standard-hero .standard-hero__attribution{text-align:right;width:100%;padding-right:1em}.standard-hero .standard-hero__attribution p{font-size:12px;font-weight:600}} 1723`],encapsulation:2});let e=i;return e})(),JG=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),qae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,JG,Fs,Ct,Ve,un]});let e=i;return e})();var XG=(()=>{let i=class i{set content(n){this._content=n}get content(){return this._content}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-footer"]],inputs:{content:"content"},standalone:!1,decls:29,vars:14,consts:[["cobrowsingModal",""],[3,"disableOpenModalButton"],[1,"footer","dont-print"],[1,"footer__c
1723ontainer"],[1,"row"],[1,"footer__info","col-xs-12","col-sm-6","col-md-offset-1","col-md-4"],["href","/","alt","homepage"],["alt","homepage",3,"routerLink"],[1,"footer__address",3,"innerHtml"],[1,"footer__links","col-xs-12","col-sm-3","col-md-2","row"],[1,"footer__links__category","col-xs-12","col-sm-10"],[1,"footer__links","footer__links--community","col-xs-12","col-sm-3","col-md-2","row"],[1,"footer__links__category","col-xs-12","col-sm-12"],[1,"footer__push","col-xs-12","col-sm-offset-6","col-md-offset-0","col-sm-6","col-md-3"],[3,"button"],[1,"be-ix-link-block"],[1,"footer__bottom","col-xs-12","col-md-offset-1","col-md-11","row"],[1,"footer__bottom__links","col-xs-12","col-sm-6","col-md-8","row"],[1,"footer__bottom__links","col-xs-12","col-sm-6","col-md-4"],["alt","",3,"src"],[3,"href","class"],[3,"click",4,"featureFlag"],[3,"href"],[3,"click"],[3,"routerLink","class"],[3,"routerLink"],["target","_blank",3,"href"]],template:function(o,r){o&1&&(x(0,"fab-cobrowsing",1,0),h(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),y(6,zV,2,2,"a",6),y(7,BV,2,4,"a",7),x(8,"p",8),p(),h(9,"div",9),Q(10,$V,6,3,"div",10,ne),Y(12,"slice"),p(),h(13,"div",11),Q(14,ZV,6,3,"div",12,ne),p(),h(16,"div",13)(17,"h6")(18,"strong"),b(19),p()(),h(20,"p"),b(21),p(),y(22,JV,2,3,"fab-button",14),p(),x(23,"div",15),h(24,"div",16),y(25,ez,3,0,"div",17),y(26,iz,3,0,"div",17),h(27,"p",18),b(28),p()()()()()),o&2&&(f("disableOpenModalButton",!0),d(6),w(r.content.logo&&!r.content.useRouterLink?6:-1),d(),w(r.content.logo&&r.content.useRouterLink?7:-1),d(),f("innerHtml",r.content.address,te),d(2),Z(_n(12,10,r.content.linkCategories,0,2)),d(4),Z(r.content.communityCategories),d(5),A(r.content.push.title),d(2),A(r.content.push.desc),d(),w(r.content.push.button!=null&&r.content.push.button.text?22:-1),d(3),w(r.content.useRouterLink?-1:25),d(),w(r.content.useRouterLink?26:-1),d(2),A(r.content.copyright))},dependencies:()=>[Ve,Vt,HG,DG,Aa,eU],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.footer{text-align:center;background-color:#31373e;padding:30px 15px;margin-top:30px}.footer h6,.footer p,.footer a{color:#fff;font-size:14px}.footer p{opacity:.7;font-size:12px}.footer a{font-size:14px;text-decoration:none;margin-bottom:3px}.footer a:hover,.footer a:focus{text-decoration:underline;color:#fff;-moz-transition:initial;-o-transition:initial;-webkit-transition:initial;transition:initial}.footer i{font-size:24px;margin-right:5px}.footer img{margin-left:auto;margin-right:auto;width:220px}.footer__container{margin-left:auto;margin-right:auto;max-width:1280px;text-align:left}.footer__info{text-align:center}.footer__address{margin:14px 10px 14px 0}@media (max-width: 607px){.footer__address{margin:20px 0 0}}.footer__links{margin-top:30px}@media (max-width: 607px){.footer__links__category .row{justify-content:space-around}.footer__links__category .row a{display:none}.footer__links__category .row a:nth-child(-n+2){display:block}.footer__links__category .row a:last-child{display:block}}@media (max-width: 607px){.footer__links--community .row a{display:block;flex-grow:1;flex-basis:auto;flex-shrink:0;padding-right:0rem;padding-left:0rem;box-sizing:border-box;max-width:100%;font-size:12px}}.footer__links--community a{display:table;float:left;width:100%}@media (max-width: 607px){.footer__links--community a{width:50%}}.footer__links--community a:first-child{margin-top:0}.footer__links--community a:hover,.footer__links--community a:focus{text-decoration:none}.footer__links--community a:hover span,.footer__links--community a:focus span{text-decoration:underline}.footer__links--community i{display:table-cell;padding:0 10px 0 0;width:10%;font-size:22px}.footer__links--community span{display:table-cell;vertical-align:middle;font-weight:300;width:90%;padding-right:10px}@media (max-width: 607px){.footer__links h6,.footer__links p{display:none}}.footer__links a,.footer__bottom a{padding:5px;font-weight:100}.footer__push{text-align:center;margin-top:14px}@media (min-width: 1200px){.footer__push{margin-top:0}}.footer__push p{font-size:14px}.footer__push a{margin:10px 0 30px}.footer__bottom{border-top:1px solid rgba(255,255,255,.7);padding-top:15px}.footer__bottom a,.footer__bottom p{font-size:12px;color:#f9f9f9;opacity:.7;text-align:center}
1723.footer__bottom a{display:inline-block}.footer__bottom__links{justify-content:space-around}@media (min-width: 668px){.footer{text-align:left;padding:40px 36px}.footer h6,.footer p{font-size:14px}.footer h6{margin-bottom:10px}.footer__info{text-align:left}.footer__social{justify-content:space-between;max-width:260px}.footer__social a{padding-right:15px}.footer img{margin-left:-12px}.footer__links{margin-bottom:30px}.footer__links__category{justify-content:left;padding-right:16px}.footer__links__category .row a,.footer__links h6,.footer__links p,.footer__links a{display:block}.footer__links a{padding:0 15px 3px 0;width:100%;line-height:1.5em}.footer__push{text-align:left;margin-top:30px}.footer__push h6,.footer__push p{display:block}.footer__bottom a,.footer__bottom p{font-size:12px;margin:0}.footer__bottom a{text-align:left}.footer__bottom p{text-align:right}.footer__bottom a{padding:0 15px 5px 0}.footer__bottom__links{justify-content:left}}@media (min-width: 1200px){.footer{padding:40px 36px}.footer a{font-size:14px}.footer__social{max-width:300px}.footer__social a{margin-right:30px}.footer__social a i{font-size:20px}.footer__links{margin-bottom:40px}.footer__bottom a,.footer__bottom p{font-size:14px;margin:0}} 1724`],encapsulation:2});let e=i;return e})(),eU=(()=>{let i=class i{transform(n){return{text:n.push.button.text,aria:n.push.button.text,action:{type:"link",link:n.push.button.link,useRouterLink:!1},type:"primary"}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"formatContentToButton",type:i,pure:!0,standalone:!1});let e=i;return e})(),tU=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ve,Ct,GG]});let e=i;return e})();var ya=(()=>{let i=class i{constructor(n){this.cmsContentService=n,this.headerContent$=new Fe(void 0),this.currentImageSrc$=new Fe(void 0),this.currentImageDescription$=new Fe(void 0),this.currentImageTitle$=new Fe(void 0),this.activeHeader$=new Fe(void 0),this.activeSubHeader$=new Fe(void 0),this.activeSubSubHeader$=new Fe(void 0),this.activeTitle$=new Fe(void 0),this.menuOpen$=new Fe(!1),this.rightPaneOpened$=new Fe(!1)}setImage(n,o,r){this.currentImageSrc$.next(n?this.cmsContentService.handleImageLocation(n,"small"):void 0),this.currentImageDescription$.next(r),this.currentImageTitle$.next(o)}setHeaderActive(n,o){o&&this.menuOpen$.next(!!n),this.setSubHeaderActive(void 0),this.setTitle(n?.title),this.activeHeader$.next(n)}setSubHeaderActive(n){let o=this.getHeaderMetadataOrOverride(n);this.setImage(o?.image,o?.title,o?.summary),this.setSubSubHeaderActive(void 0,!1),this.activeSubHeader$.next(n)}setSubSubHeaderActive(n,o=!0){if(o){let r=this.getHeaderMetadataOrOverride(n);this.setImage(r?.image,r?.title,r?.summary)}this.activeSubSubHeader$.next(n)}setTitle(n){this.activeTitle$.next(n)}setMenuOpen(n){this.menuOpen$.next(n)}setRightPaneOpened(n){this.rightPaneOpened$.next(n)}getHeaderMetadataOrOverride(n){if(!n)return null;let o=n.manualImage?n.manualImage:n.image,r=n.title,a=n.manualSummary?n.manualSummary:n.summary;return{image:o,title:r,summary:a}}};i.\u0275fac=function(o){return new(o||i)(U(fi))},i.\u0275prov=B({token:i,factory:i.\u0275fac});let e=i;return e})(),iU=(()=>{let i=class i{constructor(){this.router=F(rt),this.route=Zv(this.router.events.pipe(Ci(n=>n instanceof Yt),gl(null),G(()=>this.getDeepestSnapshot(this.router.routerState.snapshot.root))),{initialValue:this.getDeepestSnapshot(this.router.routerState.snapshot.root)})}getDeepestSnapshot(n){for(;n.firstChild;)n=n.firstChild;return n}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),nU=(()=>{let i=class i{set content(n){this._content=n}get content(){return this._content}get dropdown(){return this.dropdownIsActive}set dropdown(n){this.dropdownIsActive=n}get pane(){return this.paneIsActive}set pane(n){this.paneIsActive=n,this.rightPaneChange.emit(this.paneIsActive)}constructor(n,o,r){this.authService=n,this.renderer=o,this.router=r,this.isUserAuth=!1,this.initials="",this.dropdownIsActive=!1,this.paneIsActive=!1,this.rightPaneChange=new se,this.groupMenuItems=[],n.authenticationChanged$.subscribe(a=>{this.isUserAuth=a,this.isUserAuth?n.getCurrentUser().pipe(Ot(1)).subscribe(s=>
1724{this.cognitoDetails=s,this.isCognitoUser(this.cognitoDetails)?this.initials=this.cognitoDetails.given_name.charAt(0)+this.cognitoDetails.family_name.charAt(0):(this.cognitoDetails=new $g,this.initials="")}):this.pane=!1}),n.otherDashboardGroupsAnnounced$.subscribe(a=>{this.groupMenuItems=[];for(let s of a)this.groupMenuItems.push(s)})}changeGroup(n){this.authService.setDashboardGroup(n)}isCognitoUser(n){return"family_name"in n}ngOnInit(){this.authService.loggedIn()}logout(){["/my-account/edit-details","/centre-services/payment-code/view","/centre-services/payment-code/create","/employers/payment-code/view","/employers/payment-code/create"].includes(this.router.url)?this.authService.broadcastLogoutInitiated(!0):this.authService.logout().subscribe()}togglePane(){this.pane?this.closePane():this.openPane()}openPane(){this.pane=!0}closePane(){this.pane=!1}toggleDropdown(){this.dropdown=!this.dropdown}closeDropdown(){this.dropdown=!1}};i.\u0275fac=function(o){return new(o||i)(I(Eo),I(ct),I(rt))},i.\u0275cmp=N({type:i,selectors:[["fab-logged-in-user"]],inputs:{content:"content"},outputs:{rightPaneChange:"rightPaneChange"},standalone:!1,decls:1,vars:1,consts:[[1,"logged-in"],[1,"logged-in__avatar-mobile",3,"click"],[1,"logged-in__overlay",3,"click"],[1,"logged-in__pane",3,"click"],[1,"logged-in__avatar"],[1,"logged-in__user-details"],[1,"logged-in__name-details"],["title","Member ID",1,"logged-in__membership"],[1,"icon-menu-secondary"],[1,"logged-in__menu"],[3,"click"],[3,"href","openInNewTab"],[3,"routerLink","openInNewTab"]],template:function(o,r){o&1&&y(0,sz,21,11,"div",0),o&2&&w(r.isUserAuth&&r.cognitoDetails?0:-1)},dependencies:[Vt,To,Lx],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.logged-in__overlay{content:"";display:none;position:fixed;top:0;right:260px;height:100%;width:100%;z-index:2000;background:#0000004d}@media (min-width: 992px){.logged-in__overlay{background:transparent;right:0}}.logged-in{color:#000;cursor:pointer;position:relative;z-index:1;display:flex;justify-content:flex-end}.logged-in i{display:none}@media (min-width: 992px){.logged-in i{display:block;position:absolute;width:30px;height:20px;right:0;top:16px;font-size:20px}}@media (min-width: 1200px){.logged-in i{display:block;position:absolute;width:30px;height:20px;right:0;top:21px;font-size:20px}}.logged-in hr{display:block;height:1px;border:0;border-top:1px solid rgb(229.5,229.5,229.5);margin:14px 0;padding:0}.logged-in__menu{z-index:2001;text-align:left;font-size:16px}.logged-in__menu a{color:#000;padding:12px 16px;text-decoration:none;display:block}.logged-in__menu a:hover{background-color:#f1f1f1}@media (min-width: 992px){.logged-in__menu{display:none;background:#fff;border:solid 2px rgb(229.5,229.5,229.5);border-radius:2%;width:264px;position:absolute;right:0}}.logged-in__pane{display:none;position:fixed;top:0;right:0;width:260px;height:30px;padding-top:30px}@media (min-width: 992px){.logged-in__pane{top:5px;background:transparent;position:relative;display:block;width:auto}}@media (min-width: 1200px){.logged-in__pane{top:0}}.logged-in__avatar{margin:40px auto 8px;border-radius:50%;width:90px;height:90px;line-height:90px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center}@media (min-width: 992px){.logged-in__avatar{width:40px;height:40px;line-height:40px;position:absolute;top:2px;left:5px;margin:0}}@media (min-width: 1200px){.logged-in__avatar{width:48px;height:48px;line-height:48px;position:absolute;top:7px;left:5px;margin:0}}.logged-in__avatar-mobile{margin:5px 10px;border-radius:50%;width:30px;height:30px;line-height:30px;font-size:10.5px;background-color:#f9f9f9;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-weight:600;text-align:center}@media (min-width: 992px){.logged-in__avatar-mobile{display:none}}.logged-in__user-details{margin:16px 10px}@media (min-width: 992px){.logged-in__user-details{margin:0;padding:8px 32px 0 58px}}@media (min-width: 1200px){.logged-in__user-details{margin:0;padding:15px 32px 0 58px}}.logged-in__name-details{height:20px;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:16px;font-weight:600;line-height:1.12;text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (min-width: 992px){.logged-in__name-details{text-align:left;margin-top:-30px}}.logged-in__membership{height:18px;font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:12px;text-align:center}@media (min-width: 992px){.logged-in__membership{text-align:left}}.logged-in__show{display:block} 1725`],encapsulation:2});let e=i;return e})(),oU=(()=>{let i=class i{constructor(n,o,r){this.http=n,this.router=o,this.config=r,this.baseUrl="/content/global-search?keyword=",this.perPage=20,this.onSubmitSearch=new Fe(null)}search(n){return this.http.get(this.config.environment.API_URL+this.baseUrl+n+"&size=5&from=0&loadRef=0",this.createHeaders()).pipe(G(o=>o.results.map(r=>({label:r.title,id:r.link,data:r}))),ye(this.handleError))}onSubmit(n){n?.term===null&&(n.term=""),this.onSubmitSearch.next(n),n.term=n.term.replace(/[()]/g,o=>
1725"%"+o.charCodeAt(0).toString(16)),window.location.href=encodeURI(`${this.config.environment.BASE_URL}/search/${n.term}`)}onSubmitKeyWordSearch(n,o,r){this.onSubmitSearch.next(r),this.perPage=n;let a=0;a=(o-1)*this.perPage,r&&(this.termSearched=r);let s=encodeURI(this.config.environment.API_URL+this.baseUrl+this.termSearched+"&size="+this.perPage+"&from="+a+"&loadRef=0");return this.http.get(s,this.createHeaders())}createHeaders(){return{headers:new St({"Content-Type":"application/json"})}}handleError(n){let o=n.message?n.message:n.toString();return yt(o)}};i.\u0275fac=function(o){return new(o||i)(U(kt),U(rt),U("fabricServicesConfig"))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),rU=(()=>{let i=class i{constructor(n,o,r,a){this.headerSearchService=n,this.location=o,this.renderer=a,this.isOpen=!0,this.searchIcon={colour:mi.BLACK,iconName:Fi.search},this.iconSize=el.MEDIUM,this.isOpenChange=new se,this.isBrowser=Ee(r)}showSearch(){this.isOpenChange.emit(!0),this.renderer.removeClass(document.body,"search-closed"),this.renderer.addClass(document.body,"search-open"),this.isOpen=!0,document.querySelectorAll(".site-search input")[0].focus()}close(){this.isOpenChange.emit(!1),this.isOpen=!1,setTimeout(()=>{this.isOpen===!1&&this.renderer.addClass(document.body,"search-closed")},300)}};i.\u0275fac=function(o){return new(o||i)(I(oU),I(Yn),I(De),I(ct))},i.\u0275cmp=N({type:i,selectors:[["fab-site-search"]],inputs:{isOpen:"isOpen",content:"content"},outputs:{isOpenChange:"isOpenChange"},standalone:!1,decls:1,vars:1,consts:[["FabAC",""],[1,"site-search"],[1,"search__container"],["placeHolderText","Find qualifications, news, study materials...",3,"service"],[1,"suggestion__header"],[1,"suggestion__option"],[1,"search__container--btns"],[3,"click"],[1,"search-icon","icon",3,"content","size"],[1,"suggestion__option",3,"mousedown"],[3,"innerHTML"]],template:function(o,r){o&1&&y(0,cz,12,7,"div",1),o&2&&w(r.location.path().includes("/search")?-1:0)},dependencies:[Ln,NG,mG],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}body.search-open .header__navbar-navigation li:nth-child(1){-webkit-animation:fadeOut .1s ease-out forwards;animation:fadeOut .1s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(2){-webkit-animation:fadeOut .15s ease-out forwards;animation:fadeOut .15s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(3){-webkit-animation:fadeOut .2s ease-out forwards;animation:fadeOut .2s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(4){-webkit-animation:fadeOut .25s ease-out forwards;animation:fadeOut .25s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(5){-webkit-animation:fadeOut .3s ease-out forwards;animation:fadeOut .3s ease-out forwards}body.search-open .header__navbar-navigation li:nth-child(6){-webkit-animation:fadeOut .35s ease-out forwards;animation:fadeOut .35s ease-out forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(6){-webkit-animation:fadeIn .1s ease-in forwards;animation:fadeIn .1s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(5){-webkit-animation:fadeIn .2s ease-in forwards;animation:fadeIn .2s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(4){-webkit-animation:fadeIn .3s ease-in forwards;animation:fadeIn .3s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(3){-webkit-animation:fadeIn .4s ease-in forwards;animation:fadeIn .4s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(2){-webkit-animation:fadeIn .5s ease-in forwards;animation:fadeIn .5s ease-in forwards}body.search-open.search-closed .header__navbar-navigation li:nth-child(1){-webkit-animation:fadeIn .6s ease-in forwards;animation:fadeIn .6s ease-in forwards}.site-search{display:flex;justify-content:flex-end}.search__container{opacity:0;width:10px;-moz-transform:scale(1);-o-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}@media (min-width: 992px){.search__container{right:0;top:0;line-height:48px}.search__container a{top:11px}}.search__container{transition:all 1.3s ease}@media (min-width: 992px){.search__container{margin-top:0}}.search__container--btns{width:32px;transition-delay:1.3s;transition-property:opacity;transition-property:visibility;opacity:1}.search__container--btns.hide{visibility:hidden;transition:all .5s ease;width:0;opacity:0}
1725.search__container.open{visibility:visible;opacity:1;width:100%;-moz-transform:scale(1);-o-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}@media (min-width: 992px){.search__container.open{width:290px}}@media (min-width: 1200px){.search__container.open{width:645px}} 1726`],encapsulation:2});let e=i;return e})(),aU=(()=>{let i=class i{constructor(n){this.config=n,this.baseUrl="",this.links=[{type:"href",url:"https://store.aat.org.uk/",label:"AAT Store",openInNewTab:!0},{type:"href",url:"https://jobs.aat.org.uk/",label:"Careers Hub",openInNewTab:!0},{type:"href",url:`${this.baseUrl}/training-providers/search`,label:"Find a training provider"},{type:"href",url:`${this.baseUrl}/assessment-venues/search`,label:"Find an assessment venue"},{type:"href",url:`${this.baseUrl}/find-an-accountant-or-bookkeeper`,label:"Find an accountant or bookkeeper"},{type:"href",url:`${this.baseUrl}/qualifications-and-courses/fees-funding`,label:"Fees and funding"}],this.baseUrl=n.environment.BASE_URL}};i.\u0275fac=function(o){return new(o||i)(I("fabricServicesConfig"))},i.\u0275cmp=N({type:i,selectors:[["fab-quick-links-bar"]],decls:11,vars:0,consts:[["aria-label","Quick links",1,"quick-links"],[1,"quick-links__list"],[1,"quick-links__list-item-wrapper"],[1,"quick-links__title","quick-links__item"],[1,"quick-links__hint"],["src","/assets/icons/misc/arrow-left-short.svg","alt","Swipe left",1,"quick-links__hint__icon"],[1,"quick-links__item",3,"href","openInNewTab"],[1,"quick-links__item",3,"routerLink"]],template:function(o,r){o&1&&(h(0,"nav",0)(1,"ul",1)(2,"li",2)(3,"h5",3),b(4,"Quick Links"),p()(),Q(5,hz,3,2,"li",2,dz),p(),h(7,"div",4),x(8,"img",5),h(9,"span"),b(10," swipe for more "),p()()()),o&2&&(d(5),Z(r.links))},dependencies:[Vt,To],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}@font-face{font-family:icomoon;src:url(/assets/icons/icomoon/icomoon.eot) format("embedded-opentype"),url(/assets/icons/icomoon/icomoon.ttf) format("truetype"),url(/assets/icons/icomoon/icomoon.woff) format("woff"),url(/assets/icons/icomoon/icomoon.svg) format("svg");font-weight:400;font-style:normal;font-display:block}[class^=icon-][_ngcontent-%COMP%], [class*=" icon-"][_ngcontent-%COMP%]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-tiktok[_ngcontent-%COMP%]:before{content:"\\e943"}.icon-envelope-open-text-solid[_ngcontent-%COMP%]:before{content:"\\e93f"}.icon-aat-comment[_ngcontent-%COMP%]:before{content:"\\e901"}.icon-aat-discussion-forums[_ngcontent-%COMP%]:before{content:"\\e902"}.icon-arrow-action[_ngcontent-%COMP%]:before{content:"\\e903"}.icon-arrow-double-left[_ngcontent-%COMP%]:before{content:"\\e904"}.icon-arrow-double-right[_ngcontent-%COMP%]:before{content:"\\e905"}.icon-call[_ngcontent-%COMP%]:before{content:"\\e90b"}.icon-copy-url[_ngcontent-%COMP%]:before{content:"\\e90c"}.icon-download[_ngcontent-%COMP%]:before{content:"\\e90f"}.icon-facebook[_ngcontent-%COMP%]:before{content:"\\e912"}.icon-filters[_ngcontent-%COMP%]:before{content:"\\e914"}.icon-google-plus[_ngcontent-%COMP%]:before{content:"\\e915"}.icon-home[_ngcontent-%COMP%]:before{content:"\\e916"}.icon-instagram[_ngcontent-%COMP%]:before{content:"\\e918"}.icon-knowledge-hub[_ngcontent-%COMP%]:before{content:"\\e919"}.icon-link[_ngcontent-%COMP%]:before{content:"\\e91a"}.icon-linkedin[_ngcontent-%COMP%]:before{content:"\\e91b"}.icon-list[_ngcontent-%COMP%]:before{content:"\\e91c"}
1726.icon-medium[_ngcontent-%COMP%]:before{content:"\\e91e"}.icon-menu-hamburger[_ngcontent-%COMP%]:before{content:"\\e91f"}.icon-menu-secondary[_ngcontent-%COMP%]:before{content:"\\e920"}.icon-messenger[_ngcontent-%COMP%]:before{content:"\\e921"}.icon-minus-large[_ngcontent-%COMP%]:before{content:"\\e922"}.icon-my-career[_ngcontent-%COMP%]:before{content:"\\e924"}.icon-my-membership[_ngcontent-%COMP%]:before{content:"\\e925"}.icon-news-events[_ngcontent-%COMP%]:before{content:"\\e926"}.icon-pintrest[_ngcontent-%COMP%]:before{content:"\\e927"}.icon-print[_ngcontent-%COMP%]:before{content:"\\e92b"}.icon-professional-zone[_ngcontent-%COMP%]:before{content:"\\e92c"}.icon-status[_ngcontent-%COMP%]:before{content:"\\e92e"}.icon-support-resources[_ngcontent-%COMP%]:before{content:"\\e930"}.icon-thumbs-down[_ngcontent-%COMP%]:before{content:"\\e931"}.icon-thumbs-up[_ngcontent-%COMP%]:before{content:"\\e932"}.icon-tile[_ngcontent-%COMP%]:before{content:"\\e933"}.icon-training-assessment[_ngcontent-%COMP%]:before{content:"\\e934"}.icon-tumblr[_ngcontent-%COMP%]:before{content:"\\e935"}.icon-twitter[_ngcontent-%COMP%]:before{content:"\\e936"}.icon-visibility-hide[_ngcontent-%COMP%]:before{content:"\\e937"}.icon-visibility-show[_ngcontent-%COMP%]:before{content:"\\e938"}.icon-vk[_ngcontent-%COMP%]:before{content:"\\e939"}.icon-warning[_ngcontent-%COMP%]:before{content:"\\e93a"}.icon-weibo[_ngcontent-%COMP%]:before{content:"\\e93c"}.icon-whatsapp[_ngcontent-%COMP%]:before{content:"\\e93d"}.icon-youtube[_ngcontent-%COMP%]:before{content:"\\e93e"}.icon-x[_ngcontent-%COMP%]:before{content:"\\e952"}.icon-loop2[_ngcontent-%COMP%]:before{content:"\\ea2e"}.icon-computer[_ngcontent-%COMP%]:before{content:"\\e900"}.icon-achievement[_ngcontent-%COMP%]:before{content:"\\e951"}.icon-audio[_ngcontent-%COMP%]:before{content:"\\e950"}.icon-building[_ngcontent-%COMP%]:before{content:"\\e94f"}.icon-circle[_ngcontent-%COMP%]:before{content:"\\e92a"}.icon-compare[_ngcontent-%COMP%]:before{content:"\\e923"}.icon-laptop-tick[_ngcontent-%COMP%]:before{content:"\\e92f"}.icon-document[_ngcontent-%COMP%]:before{content:"\\e93b"}.icon-finance[_ngcontent-%COMP%]:before{content:"\\e94d"}.icon-global[_ngcontent-%COMP%]:before{content:"\\e941"}.icon-website[_ngcontent-%COMP%]:before{content:"\\e941"}.icon-growth[_ngcontent-%COMP%]:before{content:"\\e942"}.icon-heart[_ngcontent-%COMP%]:before{content:"\\e944"}.icon-flag[_ngcontent-%COMP%]:before{content:"\\e945"}.icon-padlock[_ngcontent-%COMP%]:before{content:"\\e946"}.icon-person[_ngcontent-%COMP%]:before{content:"\\e947"}.icon-phone[_ngcontent-%COMP%]:before{content:"\\e948"}.icon-globe-arrows[_ngcontent-%COMP%]:before{content:"\\e949"}.icon-trash[_ngcontent-%COMP%]:before{content:"\\e94a"}.icon-wifi[_ngcontent-%COMP%]:before{content:"\\e94b"}.icon-search[_ngcontent-%COMP%]:before{content:"\\e92d"}.icon-play-large[_ngcontent-%COMP%]:before{content:"\\e928"}.icon-favourite[_ngcontent-%COMP%]:before{content:"\\e913"}.icon-star[_ngcontent-%COMP%]:before{content:"\\e913"}.icon-info[_ngcontent-%COMP%]:before{content:"\\e917"}.icon-checkmark[_ngcontent-%COMP%]:before{content:"\\ea10"}.icon-success[_ngcontent-%COMP%]:before{content:"\\ea10"}.icon-cross[_ngcontent-%COMP%]:before{content:"\\e90e"}.icon-cross-small[_ngcontent-%COMP%]:before{content:"\\e90d"}.icon-arrow-up[_ngcontent-%COMP%]:before{content:"\\e909"}.icon-arrow-down[_ngcontent-%COMP%]:before{content:"\\e906"}.icon-arrow-left[_ngcontent-%COMP%]:before{content:"\\e907"}.icon-arrow-right[_ngcontent-%COMP%]:before{content:"\\e908"}.icon-plus[_ngcontent-%COMP%]:before{content:"\\e929"}.icon-plus-large[_ngcontent-%COMP%]:before{content:"\\e929"}.icon-error[_ngcontent-%COMP%]:before{content:"\\e911"}.icon-restricted[_ngcontent-%COMP%]:before{content:"\\e911"}.icon-minus[_ngcontent-%COMP%]:before{content:"\\e911"}.icon-clock[_ngcontent-%COMP%]:before{content:"\\e94e"}.icon-calendar[_ngcontent-%COMP%]:before{content:"\\e90a"}.icon-email[_ngcontent-%COMP%]:before{content:"\\e910"}.icon-cart[_ngcontent-%COMP%]:before{content:"\\e940"}.icon-basket[_ngcontent-%COMP%]:before{content:"\\e94c"}.icon-location[_ngcontent-%COMP%]:before{content:"\\e91d"}.quick-links[_ngcontent-%COMP%]{position:relative;font-family:Inter,"system-ui",-apple-system,"sans-serif";--padding: 7px 5px 11px;background-color:#0a5c50;padding:var(--padding)}.quick-links__list[_ngcontent-%COMP%]{overflow-x:auto;display:flex;flex-direction:row;-webkit-overflow-scrolling:touch;scrollbar-width:none;column-gap:24px}.quick-links__list-item-wrapper[_ngcontent-%COMP%]{margin:0;flex:0 1 max-content}.quick-links__list-item-wrapper[_ngcontent-%COMP%]:has(.quick-links__title){display:none}.quick-links__item[_ngcontent-%COMP%]{display:inline-block;padding:var(--padding);border-radius:6px;color:#fff;text-decoration:none;font-weight:400;font-size:14px;line-height:14px;white-space:nowrap;transition:none}.quick-links__item[_ngcontent-%COMP%]:not(.quick-links__title):hover{text-decoration:underline}.quick-links__title[_ngcontent-%COMP%]{font-family:Open Sans,Arial,Helvetica,"sans-serif";font-size:14px;font-weight:600;text-transform:uppercase;white-space:nowrap}.quick-links__title[_ngcontent-%COMP%]:hover{background-color:none}.quick-links[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.quick-links__hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px;position:absolute;right:10.5px;bottom:5px;font-size:11px;
1726font-family:acumin-pro-wide,Arial;font-weight:lighter;color:#94ec94}.quick-links__hint__icon[_ngcontent-%COMP%]{padding-top:3px;width:11px;height:11px}@media (min-width: 992px){.quick-links[_ngcontent-%COMP%]{--padding: 7px 5px}.quick-links__list[_ngcontent-%COMP%]{column-gap:0;justify-content:space-between}.quick-links__hint[_ngcontent-%COMP%]{display:none}}@media (min-width: 1200px){.quick-links__list[_ngcontent-%COMP%]{column-gap:16px;justify-content:flex-start}.quick-links__list-item-wrapper[_ngcontent-%COMP%]:has(.quick-links__title){display:inline-block}}']});let e=i;return e})(),Kx=(()=>{let i=class i{constructor(n){this.cmsContentService=n}getHeaderContent(){return this.cmsContentService.cmsGetMenu("prospects-meganav").pipe(G(n=>n.hits[0].links))}};i.\u0275fac=function(o){return new(o||i)(U(fi))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),sU=(()=>{let i=class i{constructor(n){this.headerService=n,this.subHeader$=this.headerService.activeSubHeader$,this.subHeaderLinks$=this.headerService.activeSubHeader$.pipe(G(o=>o?.links)),this.activeSubSubHeader$=this.headerService.activeSubSubHeader$,this.chevron={colour:mi.GREEN,iconName:Fi.arrow},this.iconSize=el.SMALL}setLastSubHoveredHeader(n){this.unsetLastHoveredHeader(),this.activeSubHeaderSubscription$=new Fe(n).pipe(hl(300)).subscribe(o=>{this.headerService.setSubHeaderActive(o)})}setSubSubHeader(n){this.headerService.setSubSubHeaderActive(n)}unsetLastHoveredHeader(){this.activeSubHeaderSubscription$?.unsubscribe()}};i.\u0275fac=function(o){return new(o||i)(I(ya))},i.\u0275cmp=N({type:i,selectors:[["app-header-desktop-dropdown"]],inputs:{headerData:"headerData"},standalone:!1,decls:9,vars:7,consts:[[1,"header-desktop-dropdown"],[1,"header-desktop-dropdown__entries","border-right",3,"mouseleave"],[1,"header-desktop-dropdown__links",3,"href","openInNewTab","ngClass"],[1,"header-desktop-dropdown__entries",3,"ngClass"],[1,"header-desktop-dropdown__links",3,"mouseenter","href","openInNewTab","ngClass"],[1,"header-desktop-dropdown__links__icon"],[3,"content","size"]],template:function(o,r){if(o&1&&(h(0,"div",0)(1,"div",1),R("mouseleave",function(){return r.unsetLastHoveredHeader()}),Q(2,fz,5,9,"a",2,ne),p(),h(4,"div",3),Y(5,"async"),Q(6,vz,3,8,"a",2,ne),Y(8,"async"),p()()),o&2){let a;d(2),Z(r.headerData),d(2),f("ngClass",j(5,gz,((a=me(5,1,r.subHeader$))==null||a.links==null?null:a.links.length)>0)),d(2),Z(me(8,3,r.subHeaderLinks$))}},dependencies:[Ie,Ln,To,Qn],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header-desktop-dropdown[_ngcontent-%COMP%]{transition:all .3s ease-in-out;white-space:normal;display:flex;flex-direction:row;height:100%}.header-desktop-dropdown__entries[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:20vw;overflow-y:auto}.header-desktop-dropdown__links[_ngcontent-%COMP%]{margin:5px 0}.header-desktop-dropdown__links__icon[_ngcontent-%COMP%]{height:20px;width:20px}.header-desktop-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;font-weight:100;padding:5px 10px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.header-desktop-dropdown[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background:#f8f8f8;padding-left:13px;padding-right:5px;border-left:3px solid #01ab4e;transition:all .1s ease-in-out}.header-desktop-dropdown[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.border-right[_ngcontent-%COMP%]{border-right:2px solid lightgrey}"]});let e=i;return e})(),Qx=(()=>{let i=class i{transform(n,o,r){return n&&o&&(r?n.sort((a,s)=>a[o]<s[o]?-1:a[o]>s[o]?1:0):n.sort((a,s)=>a[o]<s[o]?1:a[o]>s[o]?-1:0)),n}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"orderBy",type:i,pure:!0,standalone:!1});let e=i;return e})(),lU=(()=>{let i=class i{constructor(n,o){this.headerService=n,this.headerContentService=o,this.getHeaderContent$=this.headerContentService.getHeaderContent(),this.imgSrc$=this.headerService.currentImageSrc$,this.imgTitle$=this.headerService.currentImageTitle$,this.imgDescription$=this.headerService.currentImageDescription$,this.menuOpen$=this.headerService.menuOpen$,this.activeHeader$=this.headerService.activeHeader$,this.activeTitle$=this.headerService.activeTitle$}setLastHoveredHeader(n){this.activeHeaderSubscription$=new Fe(n).pipe(hl(300)).subscribe(o=>{this.setHeader(o)})}setHeader(n){n?.title&&this.headerService.setTitle(n?.title),this.headerService.setHeaderActive(n,!0)}unsetLastHoveredHeader(){this.activeHeaderSubscription$?.unsubscribe()}};i.\u0275fac=function(o){return new(o||i)(I(ya),I(Kx))},i.\u0275cmp=N({type:i,selectors:[["app-header-desktop"]],standalone:!1,decls:8,vars:9,consts:[[1,"header-desktop"],[1,"header-desktop__container"],[1,"header-desktop__options"],[1,"header-desktop__dropdown"],[1,"header-desktop__options",3,"mouseenter","mouseleave"],[1,"header-desktop__links",3,"href","openInNewTab","ngClass"],[1,"header-desktop__dropdown2"],[1,"header-desktop__subheader"],[3,"headerData"],[1,"header-desktop__image-container"],[3,"href","openInNewTab"],[1,"header-desktop__image-container--img",3,"src"],[3,"innerHTML"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1),Q(2,Cz,4,8,"div",2,ne),Y(4,"async"),Y(5,"orderBy"),p(),y(6,yz,8,9,"div",3),Y(7,"async"),p()),o&2&&(d(2),Z(_n(5,3,me(4,1,r.getHeaderContent$),"weight",!1)),d(4),w(me(7,7,r.menuOpen$)?6:-1))},dependencies:[Ie,To,sU,Qn,Qx],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header-desktop[_ngcontent-%COMP%]{flex-direction:column}.header-desktop__container[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;white-space:nowrap}.header-desktop__dropdown[_ngcontent-%COMP%]{width:0}.header-desktop__dropdown2[_ngcontent-%COMP%]{top:0;display:flex;flex-direction:row;background-color:#fff;margin-top:25px;position:relative;float:left;height:70vh;left:0;overflow-x:hidden;transition:all 2s ease-in-out}.header-desktop__subheader[_ngcontent-%COMP%]{width:21vw;white-space:normal;margin-left:4vw;border-right:2px solid lightgrey}.header-desktop__options[_ngcontent-%COMP%]{margin:0 10px;min-height:48px}.header-desktop__options[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.header-desktop__options[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:#008048;font-weight:600;transition:all .2s ease-in-out;border-bottom:4px solid #008048;text-decoration:none}.header-desktop__image-container[_ngcontent-%COMP%]{position:fixed;margin-left:70vw;height:100%;width:20vw;white-space:normal}.header-desktop__image-container--img[_ngcontent-%COMP%]{width:20vw}.header-desktop__links[_ngcontent-%COMP%]{height:100%;display:flex;margin-top:5px;margin-bottom:5px;align-items:center}"]});let e=i;return e})(),cU=(()=>{let i=class i{rotate(n,o){this.chevronState[n][o]=this.chevronState[n][o]==="rotated"?"default":"rotated"}constructor(n,o,r){this.headerService=n,this.layoutSetupService=o,this.headerContentService=r,this.getHeaderContent$=this.headerContentService.getHeaderContent(),this.menuOpen$=this.headerService.menuOpen$,this.activeHeader$=this.headerService.activeHeader$,this.activeHeaderLinks$=this.activeHeader$.pipe(G(a=>a?.links)),this.activeSubHeader$=this.headerService.activeSubHeader$,this.activeSubHeaderLinks$=this.headerService.activeSubHeader$.pipe(G(a=>a?.links)),this.chevronState={header:{},subHeader:{}},this.chevron={colour:mi.GREEN,iconName:Fi.arrow},this.iconSize=el.SMALL}headerClicked(n){this.activeHeader$.pipe(Ot(1)).subscribe(o=>{let r=n===o?void 0:n;this.headerService.setHeaderActive(r,!1)})}subHeaderClicked(n){this.activeSubHeader$.pipe(Ot(1)).subscribe(o=>{let r=n===o?void 0:n;this.headerService.setSubHeaderActive(r)})}};i.\u0275fac=function(o){return new(o||i)(I(ya),I(au),I(Kx))},i.\u0275cmp=N({type:i,selectors:[["app-header-mobile"]],standalone:!1,decls:5,vars:6,consts:[[1,"header-mobile__container"],[1,"header-mobile__options","lightest-grey"],[1,"header-mobile__options","lightest-grey",3,"click"],[1,"header-mobile--container__link"],[1,"",3,"click","href","openInNewTab"],[1,"header-mobile--container__link__icon"],[3,"content","size"],[1,"header-mobile--container","lighter-grey"],[1,"header-mobile__options"],[1,"header-mobile__options",3,"click"],[3,"click","href","openInNewTab"],[1,"header-mobile--container","light-grey"]],template:function(o,r){o&1&&(h(0,"div",0),Q(1,Tz,8,9,"div",1,ne),Y(3,"async"),Y(4,"orderBy"),p()),o&2&&(d(),Z(_n(4,2,me(3,0,r.getHeaderContent$),"weight",!1))
1726)},dependencies:[Ln,To,Qn,Qx],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header-mobile--container[_ngcontent-%COMP%]{margin-left:15px;display:flex;flex-direction:column}.header-mobile--container__link[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-right:5vw;margin-left:5vw;padding-top:10px;padding-bottom:10px;width:95%;align-items:center;min-height:35px}.header-mobile--container__link__icon[_ngcontent-%COMP%]{height:20px;width:20px}.light-grey[_ngcontent-%COMP%]{width:70vw;margin-left:5vw;padding-right:5vw;background-color:#e6e6e6}.lighter-grey[_ngcontent-%COMP%]{width:80vw;margin-left:5vw;padding-right:5vw;background-color:#f9f9f9}.lightest-grey[_ngcontent-%COMP%]{width:90vw;background-color:#fff}"],data:{animation:[xn("rotatedState",[Ki("default",ht({transform:"rotate(0)"})),Ki("rotated",ht({transform:"rotate(90deg)"})),ti("rotated => default",ei("200ms ease-out")),ti("default => rotated",ei("200ms ease-in"))])]}});let e=i;return e})(),dU=(()=>{let i=class i{constructor(n,o){this._context={let:null},n.createEmbeddedView(o,this._context)}set let(n){this._context.let=n}};i.\u0275fac=function(o){return new(o||i)(I(Vo),I(Ia))},i.\u0275dir=ce({type:i,selectors:[["","let",""]],inputs:{let:"let"},standalone:!1});let e=i;return e})(),uU=(()=>{let i=class i{onResize(){this.showLargeHeader=window.innerWidth>=1200}clickout(n){!this.showLargeHeader&&!this.header?.nativeElement.contains(n.target)&&this.headerService.setHeaderActive(void 0,!0)}ngOnDestroy(){this.clickout=()=>{},this.onResize=()=>{}}constructor(n,o,r,a,s,l,c){this.headerService=n,this.authService=o,this.s3GetterService=r,this.basketService=a,this.routeContext=s,this._document=l,this._platformId=c,this.header=null,this.menuOpen$=this.headerService.menuOpen$,this.isUserAuth$=this.authService.authenticationChanged$,this.logoUrl=this.s3GetterService.getUrl({objName:tl.aatLogo}),this.searchContent={siteBaseUrl:""},this.enableBasket=!0,this.registerButton={text:"Register",action:{type:"link",link:"/registration/register-with-aat",useRouterLink:!1},type:"secondary",aria:"Register"},this.loginButton={text:"Login",action:{type:"link",link:"/myaat/login",useRouterLink:!1},type:"primary",aria:"Login"},this.loggedInUserData={menuItems:[{title:"Profile and account",link:"/myaat/dashboards"},{title:"Edit my details",link:"/my-account/edit-details"},{title:"Pay outstanding fees",link:"/my-account/pay-fees"},{title:"My payment history",link:"/my-account/payment-history"}]},this.showLargeHeader=!0,this.showMobileHeader=!1,this.isClient=!1,this.basketCountChanged$=this.basketService.basketCountChanged$,this.hideSearch=Pe(()=>{let{data:u}=this.routeContext.route();return!!u?.hideSearch})}ngAfterViewInit(){Ee(this._platformId)&&(this.showLargeHeader=window.innerWidth>=1200,this.isClient=!0)}toggleMobileHeader(){this.menuOpen$.pipe(Ot(1)).subscribe(n=>{this.headerService.setMenuOpen(!n)})}hideHeader(){this.headerService.setHeaderActive(void 0,!0)}rightPaneIsActive(n){this.headerService.setRightPaneOpened(n)}searchOpenChange(n){this.enableBasket=!n,this.hideHeader()}navigateHome(){this._document.location.href="/"}};i.\u0275fac=function(o){return new(o||i)(I(ya),I(Eo),I(il),I(ru),I(iU),I(Ze),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-header"]],viewQuery:function(o,r){if(o&1&&It(Iz,5),o&2){let a;Se(a=ke())&&(r.header=a.first)}},hostBindings:function(o,r){o&1&&R("resize",function(){return r.onResize()},bn)("click",function(s){return r.clickout(s)},vl)},standalone:!1,decls:2,vars:3,consts:[["header",""],["logo",""],["desktop",""],["class","header",4,"let"],[1,"header"],[1,"header__container",3,"ngClass"],[1,"header-mobile__container",3,"ngClass"],[1,"header__container",3,"mouseleave","ngClass"],["title","AAT Home",1,"logo"],[1,"header__search",3,"no-auth"],[1,"header__basket-container","basket-container",3,"no-auth"],[1,"header__auth-btns"],[1,"header__logged-in"],[1,"header__header__logged-out"],["title","AAT Home",1,"logo",3,"click"],["alt","AAT Home","title","AAT Home",1,"header__logo",3,"src"],[1,"header__search"],[3,"isOpenChange","content"],[1,"header__basket-container","basket-container"],[3,"count"],[1,"header__buttons--register",3,"button"],[1,"header__buttons--login",3,"button"],[1,"logged-in-user",3,"rightPaneChange","content"],[1,"header-mobile__header-items"],[1,"header-mobile__search_and_hamburger"],[1,"header-mobile__search",3,"content","isOpen"],[1,"basket-container"],[1,"header-mobile__logged-in-user",3,"content"],[1,"header-mobile__toggle"],[1,"header-mobile__container-open",3,"hidden"],["alt","AAT Home","title","AAT Home",1,"header-mobile__logo",3,"src"],[1,"header-mobile__search",3,"isOpenChange","content","isOpen"],[1,"header-mobile__logged-in-user",3,"rightPaneChange","content"],[1,"header-mobile__toggle",3,"click"],[1,"hamburger",3,"ngClass"],[1,"header-mobile__component"],[1,"header-mobile__buttons"],[1,"header-mobile__buttons--register",3,"button"],[1,"header-mobile__buttons--login",3,"button"]],template:function(o,r){o&1&&(H(0,qz,6,5,"nav",3),Y(1,"async")),o&2&&f("let",me(1,1,r.isUserAuth$))},dependencies:[Ie,nU,rU,zG,Ve,aU,lU,cU,dU,Qn],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.header[_ngcontent-%COMP%]{max-height:180px}.header__container[_ngcontent-%COMP%]{display:grid;align-items:start;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(1,1fr);grid-column-gap:0px;grid-row-gap:0px;background-color:#fff;padding-top:6px;padding-bottom:6px;border-bottom:2px solid #bfbfbf;visibility:hidden}.header__container__ready[_ngcontent-%COMP%]{visibility:visible}.header__buttons[_ngcontent-%COMP%]{height:50px;margin:2px 15px 2px 2px}.header__buttons--register[_ngcontent-%COMP%], .header__buttons--login[_ngcontent-%COMP%]{margin-left:10px}.header__dropdown[_ngcontent-%COMP%]{display:flex;flex-direction:column}.header__auth-btns[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:max-content;justify-self:end;margin-right:18px;grid-area:1/6/1/7}.header__header__logged-out[_ngcontent-%COMP%]{grid-area:2/1/2/7}.header__logo[_ngcontent-%COMP%]{grid-area:1/1/1/2;width:80px}.header__basket-container[_ngcontent-%COMP%]{margin-left:auto;grid-area:1/6/1/6}.header__basket-container.no-auth[_ngcontent-%COMP%]{grid-area:1/5/1/5}.header__basket-container[_ngcontent-%COMP%]{width:80px}.header__search[_ngcontent-%COMP%]{grid-area:1/4/1/6;max-height:48px}.header__search.no-auth[_ngcontent-%COMP%]{grid-area:1/4/1/5}.header__logged-in[_ngcontent-%COMP%]{grid-area:1/7/1/7;width:100%}.header__logged-in__logo[_ngcontent-%COMP%]{height:56px;width:80px}.header-mobile[_ngcontent-%COMP%]{width:100%}.header-mobile__logo[_ngcontent-%COMP%]{max-width:80px;height:56px}.header-mobile__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;background-color:#fff;max-height:100vh;min-height:46px;padding-bottom:3px;border-bottom:2px solid #bfbfbf}.header-mobile__search_and_hamburger[_ngcontent-%COMP%]{display:flex;justify-content:end;flex-grow:1}.header-mobile__search_and_hamburger[_ngcontent-%COMP%] fab-site-search[_ngcontent-%COMP%]{width:70%}.header-mobile__header-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}
1726.header-mobile__component[_ngcontent-%COMP%]{overflow:auto;max-height:75vh;display:flex}.header-mobile__buttons[_ngcontent-%COMP%]{margin:15px;row-gap:15px;column-gap:15px;background-color:#fff}@media (min-width: 576px){.header-mobile__buttons[_ngcontent-%COMP%]{flex-direction:row}}.header-mobile__buttons--register[_ngcontent-%COMP%], .header-mobile__buttons--login[_ngcontent-%COMP%]{margin:15px;width:90%}.header-mobile__toggle[_ngcontent-%COMP%]{height:56px;display:flex;flex-direction:column;float:right}.header-mobile__toggle[_ngcontent-%COMP%] fab-aat-icon[_ngcontent-%COMP%]{width:44px;height:44px}.header-mobile__menu-text[_ngcontent-%COMP%]{margin:-8px 0 0}label.hamburger[_ngcontent-%COMP%]{display:flex;cursor:pointer;margin-left:10px;font-size:2em;line-height:45px}@media (min-width: 992px){label.hamburger[_ngcontent-%COMP%]{margin-left:20px;line-height:55px}}@media (min-width: 1200px){label.hamburger[_ngcontent-%COMP%]{display:none}}.hamburger[_ngcontent-%COMP%]{order:3;margin-right:10px!important;display:flex;align-items:center;justify-content:center;padding:12px 10px 8px;flex-direction:column;z-index:99}.hamburger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:28px;height:0px;border-top:2px solid #000;margin-bottom:.25rem}.hamburger[_ngcontent-%COMP%]:after{content:"menu";text-transform:capitalize;font-size:11px;font-weight:500;line-height:12px;margin-top:4px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:all ease .3s}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{transform:rotate(45deg);top:4px;position:relative;width:22px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){display:none}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg);top:-1px;position:relative;width:22px}.basket-container[_ngcontent-%COMP%]{height:fit-content;align-self:center;width:50px}.basket-container--right[_ngcontent-%COMP%]{display:flex;align-items:center}']});let e=i;return e})(),Zx=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct,bG]});let e=i;return e})(),Jx=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,oo,Zo,Ct,_a,VG,fG]});let e=i;return e})(),pU=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[ya],imports:[J,Ct,_a,Zx,Jx,BG,Ve]});let e=i;return e})();var hU=(()=>{let i=class i{constructor(n,o){this.sanitizer=n,this.hoverToolTip=!1,this.clickToolTip=!1,Ee(o)&&(this.isBrowser=!0),this.isBrowser&&(this.screenWidth=window.innerWidth,this.isMobile=this.screenWidth<600,this.isTablet=this.screenWidth<993&&this.screenWidth>=600)}ngOnInit(){}onResize(n){this.screenWidth=n.target.innerWidth,this.isMobile=this.screenWidth<600,this.isTablet=this.screenWidth<993&&this.screenWidth>=600}getSanitizer(n){return this.sanitizer.bypassSecurityTrustStyle(`url(${this.content.background})`)}hoverInfoIcon(n){this.hoverToolTip=!this.hoverToolTip}clickInfoIcon(n){this.clickToolTip=!this.clickToolTip}};i.\u0275fac=function(o){return new(o||i)(I(wn),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-quote-block"]],hostBindings:function(o,r){o&1&&R("resize",function(s){return r.onResize(s)},bn)},inputs:{content:"content"},standalone:!1,ngContentSelectors:tu,decls:1,vars:1,consts:[[1,"quote-block-component",3,"ngClass","background-image"],[1,"quote-block-component",3,"ngClass"],[1,"quote-block-component__tool-tip"],[1,"icon","icon-info",3,"tooltip","positionInput"],[1,"quote-block-component__quote"],[1,"quote-block-component__quote-inner"],[1,"quote-block-component__quote--line"],[1,"quote-block-component__quote--content",3,"innerHTML"],[1,"quote-block-component__quote--signature",3,"innerHTML"]],template:function(o,r){o&1&&(jt(),y(0,Qz,9,8,"div",0)),o&2&&w(r.content?0:-1)},dependencies:[Ie,Nn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.quote-block-component{position:relative;overflow:hidden;width:100%;margin-left:auto;margin-right:auto;background-size:cover;background-position:center center;display:flex;justify-content:flex-end;flex-direction:row;flex-wrap:wrap;min-height:600px}@media (min-width: 992px){.quote-block-component{height:auto}}.quote-block-component-left{justify-content:flex-start}.quote-block-component__tool-tip{display:flex;opacity:.9;justify-content:flex-end;height:80px;width:100%;order:1}.quote-block-component__quote{background-color:#00ab4e;border-radius:6px;padding:20px 15px;width:100%;box-sizing:border-box;margin:auto 15px 15px;color:#fff;order:2}.quote-block-component__quote-inner{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;align-content:flex-start}.quote-block-component__quote--line{width:4px;max-width:6%;height:inherit;background-color:#fff;margin:0 20px 15px 0;order:1}.quote-block-component__quote--content{font-size:16px;
1726font-family:acumin-pro-wide,Arial;order:2;width:93%;color:#fff;max-width:93%}.quote-block-component__quote--signature{margin-top:15px;font-size:14px;font-weight:600;font-family:Open Sans,Arial,Helvetica,"sans-serif";order:3}@media (min-width: 768px){.quote-block-component__quote--content{font-size:22px}}@media (min-width: 992px){.quote-block-component__quote--content{font-size:32px}}@media (min-width: 992px){.quote-block-component__quote{width:45%;margin:0 60px 80px;padding:30px 25px}}@media (min-width: 1200px){.quote-block-component__quote{padding:60px 45px}}.bubble{position:relative;padding:0;border-radius:4px;top:10px;width:60%;right:30px;height:34px;font-size:18px;background-color:#000}.bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.bubble{top:15px}}@media (min-width: 1200px){.bubble{width:auto}}.bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:12px;-webkit-transform:rotate(360deg);transform:rotate(360deg)}@media (min-width: 992px){.bubble:after{left:auto}}.icon-info{position:relative;color:#31373e;font-size:20px;right:15px;top:15px;background-color:#fff;border:1px solid white;border-radius:50%;height:20px}@media (min-width: 992px){.icon-info{font-size:30px;height:30px}} 1727`],encapsulation:2});let e=i;return e})(),Yae=(()=>{let i=class i{constructor(n,o){this.cmsContentService=n,this.gtmService=o,this.quoteContent={},this.showVideo=!1}ngOnInit(){this.quoteContent={content:this.content.journeyCardPushBody.replace(/(<([^>]+)>)/gi,"").trim(),background:this.cmsContentService.handleImageLocation(this.content.backgroundImage.image,"large"),toolTip:this.content.backgroundImage.caption,left:!0,contained:!0}}toggleVideo(n=!this.showVideo){this.showVideo=n,n&&this.gtmService.push({event:"click journey card push",element_type:"cta video",element_text:this.content.videoLinkText})}gtmPush(n){this.gtmService.push({event:"click journey card push",element_type:"cta",element_path:n.heroCardTargetUrl,element_text:n.heroCardTitle.replace(/(<([^>]+)>)/gi,"").trim()})}};i.\u0275fac=function(o){return new(o||i)(I(fi),I(Ft))},i.\u0275cmp=N({type:i,selectors:[["fab-journey-card-push"]],inputs:{content:"content"},standalone:!1,decls:18,vars:8,consts:[[1,"journey-card-push",3,"ngClass"],[1,"page__container"],[1,"journey-card-push__background"],[1,"journey-card-push__quote"],[3,"content"],[1,"journey-card-push__video-link"],[1,"journey-card-push__video"],[1,"journey-card-push__cards","component","component__fab-journey-card"],[1,"journey-card-wrapper"],[3,"click"],[1,"icon","icon-play"],[1,"journey-card-push__video",3,"click"],[1,"icon","fab-icon-close",3,"click"],[3,"config"],[1,"journey-card-cheat",3,"content"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"header")(2,"div",1)(3,"h3")(4,"strong"),b(5),p()(),h(6,"p"),b(7),p()()(),h(8,"main")(9,"div",2)(10,"div",3)(11,"fab-quote-block",4),y(12,Jz,5,1,"div",5),y(13,Xz,4,3,"div",6),p()()()(),h(14,"div",7)(15,"div",8),Q(16,tB,2,1,"div",null,ne),p()()()),o&2&&(f("ngClass",j(6,tt,"journey-card-push_"+r.content.backgroundColour)),d(5),A(r.content.journeyCardPushTitle),d(2),q(" ",r.content.pushStrapline," "),d(4),f("content",r.quoteContent),d(),w(r.content.videoLinkText&&r.content.videoId?12:-1),d(),w(r.showVideo?13:-1),d(3),Z(r.content.journeyCards))},dependencies:[Ie,hU,cm,Hx],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.journey-card-push_midnight_blue header{background:#0a5c50}.journey-card-push_midnight_blue .journey-card-push__cards{background:#0a5c50}@media (min-width: 992px){.journey-card-push_midnight_blue .journey-card-push__cards{background:linear-gradient(#0a5c50 50%,#f9f9f9 50%)}}.journey-card-push_aat_green header{background:#00ab4e}.journey-card-push_aat_green .journey-card-push__cards{background:#00ab4e}@media (min-width: 992px){.journey-card-push_aat_green .journey-card-push__cards{background:linear-gradient(#00ab4e 50%,#f9f9f9 50%)}}.journey-card-push header{color:#fff;padding:40px 10px}.journey-card-push header>div{display:flex;flex-direction:column}@media (min-width: 992px){.journey-card-push header>div{flex-direction:row;justify-content:space-between}.journey-card-push header>div h3{max-width:30%}.journey-card-push header>div p{max-width:40%}}.journey-card-push header *{color:#fff}.journey-card-push__cards{min-height:200px;margin-top:-20px;padding-bottom:10px}.journey-card-push__cards>div{display:flex;flex-direction:column}@media (min-width: 992px){.journey-card-push__cards>div{flex-direction:row}}.journey-card-push__cards-single{background:#fff;border:1px solid #ddd;border-radius:4px;margin:5px 10px;padding:20px}@media (min-width: 992px){.journey-card-push__cards-single{width:30%;margin:70px 10px}}.journey-card-push__cards-single:hover{text-decoration:none}.journey-card-push__video{position:fixed;inset:0;padding:10px;margin:0 auto;overflow:hidden;display:flex;background:#000000b3;justify-content:center;z-index:100}.journey-card-push__video .fab-icon-close{top:80px;right:20px;transform:scale(.6);border:3px solid;height:60px;width:60px;border-radius:50%;text-align:center;display:flex;justify-content:center;align-items:center;background:#0003}.journey-card-push__video>div{margin-top:auto;margin-bottom:auto;width:60%;max-width:1920px}.journey-card-push__video-link{margin-top:30px}.journey-card-push__video-link>a{color:#fff;display:flex;align-items:center}.journey-card-push__video-link>a:hover,.journey-card-push__video-link>a:focus,.journey-card-push__video-link>a:active{text-decoration:none}.journey-card-push__video-link>a:hover span,.journey-card-push__video-link>a:focus span,.journey-card-push__video-link>a:active span{text-decoration:underline}.journey-card-push__video-link i{margin-left:20px;font-size:3em}.journey-card-push .journey-card-push__cards.component{margin-top:50px}@media (min-width: 1200px){.journey-card-push .journey-card-push__cards.component{margin-top:100px}} 1728`],encapsulation:2});let e=i;return e})(),gU=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,un]});let e=i;return e})(),Kae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,gU,dm,lm]});let e=i;return e})();var Qae=(()=>{let i=class i{set location(n){this._location=n,(n?Object.keys(n).length:null)?this.locationInputCtrl.patchValue(n.location):(this.locationInputCtrl.patchValue(null),this.locationInputCtrl.setValue(""),this.suggestions=[],this.distanceIndex=-1,this.distanceModel=null)}get location(){return this._location}constructor(n){this._searchApiClientService=n,this.geoLocationEnabled=!1,this.geoLocationError=null,this.geoLocationIsSearch=null,this.isLocation=!0,this.suggestionThreashold=3,this.suggestions=[],this.suggestionIndex=0,this.selected=!1,this.distanceModel=null,this.locationValue="",this.selectContent=null,this.distances=[{value:5,label:"Up to 5 miles"},{value:10,label:"Up to 10 miles"},{value:20,label:"Up to 20 miles"},{value:30,label:"Up to 30 miles"},{value:50,label:"Up to 50 miles"},{value:15e3,label:"More than 50 miles"}],this.distanceIndex=-1,this.showDistance=!0,this.locationChange=new se,this.maxDistanceChange=new se,this.locationInputCtrl=new En("",[et.required,et.pattern("[a-zA-Z0-9 ]*")])}ngOnInit(){}getGeoLocation(n){n.preventDefault(),this.geoLocationIsSearch=!0,navigator.geolocation.getCurrentPosition(o=>{let r=[o.coords.latitude,o.coords.longitude].join();this._searchApiClientService.getPostcodeByLocation(r).then(a=>{this.locationInputCtrl.patchValue(a.results[0].formatted_address),this.location=a.results[0].formatted_address,this.geoLocationIsSearch=null}).catch(a=>{this.locationInputCtrl.setValue(r),this.location=r,this.isLocation=!1,this.geoLocationIsSearch=null}),this.geoLocationError=null,this.selected=!0},o=>
1728{this.geoLocationError="Sorry we can't guess your current location, can you supply it in the above search box.",this.geoLocationIsSearch=null})}locationSuggestions(n){switch(n.key){case"ArrowUp":this.suggestionIndex>0&&this.suggestions.length>0&&this.suggestionIndex--;return;case"ArrowDown":this.suggestionIndex<this.suggestions.length-1&&this.suggestions.length>0&&this.suggestionIndex++;return;case"Enter":this.selectSuggestion(this.suggestions[this.suggestionIndex]);return;case"Escape":this.suggestions=[];return;default:this.getLocationSuggestion()}}getLocationSuggestion(){if(!this.locationInputCtrl?.value?.length)return;let n=this.locationInputCtrl.value??"";if(n.length<this.suggestionThreashold||this.locationInputCtrl?.errors)return!1;this.geoLocationError="",this._searchApiClientService.loadSuggestions(n).subscribe(o=>{this.suggestions=o||[],this.suggestionIndex=0,o||(this.geoLocationError="Enter a valid location")},o=>{this.geoLocationError="Enter a valid location"})}locationSearchBlur(){this.suggestions=[]}clearSearch(){this.locationInputCtrl.setValue(""),this.suggestions=[],this.distanceIndex=-1,this.distanceModel=null,this.selectSuggestion(null)}selectSuggestion(n){this.selected=!0,n?(this.location={location:n.description},this.locationInputCtrl.patchValue(n.description),this.locationChange.emit(n.description)):(this.location={location:null},this.locationInputCtrl.patchValue(null),this.locationChange.emit(null)),this.suggestions=[],this.geoLocationIsSearch=null,this.locationSearchBlur(),n&&!this.distanceModel&&(this.distanceIndex=3,this.distanceModel=this.distances[this.distanceIndex],this.maxDistanceChange.emit(this.distanceModel.value))}changeToPoscodeSearch(n){n.preventDefault(),this.isLocation=!0,this.selected=!1,this.geoLocationIsSearch=null,this.locationInputCtrl.setValue("")}toggleDistanceDd(){this.locationSearchDistance&&this.locationSearchDistance.nativeElement.classList.toggle("show"),this.locationSearchSelectContainer&&this.locationSearchSelectContainer.nativeElement.classList.toggle("show"),this.locationSearchDistance&&!this.locationSearchDistance.nativeElement.classList.contains("show")&&(this.distanceIndex=-1)}selectDistance(n){this.distanceIndex=n,this.distanceModel=this.distances[n],this.maxDistanceChange.emit(this.distances[n].value),this.toggleDistanceDd()}distanceSelectionBlur(){this.locationSearchDistance.nativeElement.classList.remove("show"),this.locationSearchSelectContainer.nativeElement.classList.remove("show"),this.distanceIndex=-1}distanceSuggestion(n){switch(n.key){case"ArrowUp":this.distanceIndex>=-1&&this.distances.length>0&&this.distanceIndex--,this.distanceIndex<0&&this.toggleDistanceDd();return;case"ArrowDown":this.distanceIndex<this.distances.length-1&&this.distances.length>0&&this.distanceIndex++,this.distanceIndex===0&&this.toggleDistanceDd();return;case"Enter":this.selectDistance(this.distanceIndex),setTimeout(()=>{this.locationSearchDistance.nativeElement.classList.remove("show"),this.locationSearchSelectContainer.nativeElement.classList.remove("show")},25);return;case"Escape":this.distanceSelectionBlur(),this.distanceModel=null;return;default:this.distanceIndex&&this.maxDistanceChange.emit(this.distanceIndex);return}}};i.\u0275fac=function(o){return new(o||i)(I(tG))},i.\u0275cmp=N({type:i,selectors:[["fab-location-search"]],viewQuery:function(o,r){if(o&1&&(It(iB,5),It(nB,5)),o&2){let a;Se(a=ke())&&(r.locationSearchDistance=a.first),Se(a=ke())&&(r.locationSearchSelectContainer=a.first)}},inputs:{showDistance:"showDistance",location:"location"},outputs:{locationChange:"locationChange",maxDistanceChange:"maxDistanceChange"},standalone:!1,decls:11,vars:9,consts:[["locationSearchTerm",""],["locationSearchSelectContainer",""],["locationSearchDistance",""],[1,"location-search-box"],["type","text","placeholder","Location","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false","required","",1,"location-search-input",3,"keyup","formControl","ngClass"],["type","submit",1,"location-search-btn"],["src","https://cdn-assets-eu.frontify.com/s3/frontify-enterprise-files-eu/eyJwYXRoIjoiYWF0XC9maWxlXC9oeTk4cXE3OXRlQm5HcVhuMWphci5zdmcifQ:aat:sA11E7GGQuQB0YKR-3feCx9O32HZmqoDZRk1P25TGyE?width=30&color=0,0,0,1",1,"icon"],["src","https://cdn-assets-eu.frontify.com/s3/frontify-enterprise-files-eu/eyJwYXRoIjoiYWF0XC9maWxlXC9qNmhSUmVoNVNteWY1RUxTdnZlZC5zdmcifQ:aat:g9nMcGT-4cPzfOLB0krPWGcAEOWb0Dc8anC0oBd6_QA?width=30&color=0,0,0,1",1,"icon"],["type","submit",1,"location-search-select-btn",3,"click","keydown"],["src","https://cdn-assets-eu.frontify.com/s3/frontify-enterprise-files-eu/eyJwYXRoIjoiYWF0XC9maWxlXC9ZbWJhVVp
1728aaDM0SDhvYTd0dzdYdS5zdmcifQ:aat:3trK0kzS8Ih6lUmXXEo2OLUqgvfiN2IJiFbOlTHGDq0?width=30&color=0,0,0,1",1,"icon","drpDownArrow"],[1,"location-search-select-container"],["src","https://cdn-assets-eu.frontify.com/s3/frontify-enterprise-files-eu/eyJwYXRoIjoiYWF0XC9maWxlXC9oeTk4cXE3OXRlQm5HcVhuMWphci5zdmcifQ:aat:sA11E7GGQuQB0YKR-3feCx9O32HZmqoDZRk1P25TGyE?width=30&color=0,0,0,1",1,"icon",3,"click"],["src","https://cdn-assets-eu.frontify.com/s3/frontify-enterprise-files-eu/eyJwYXRoIjoiYWF0XC9maWxlXC9qNmhSUmVoNVNteWY1RUxTdnZlZC5zdmcifQ:aat:g9nMcGT-4cPzfOLB0krPWGcAEOWb0Dc8anC0oBd6_QA?width=30&color=0,0,0,1",1,"icon",3,"click"],[1,"location-search-suggestion"],[1,"location-search-distance"],[1,"location-search-distance-option",3,"selected"],[3,"selected","value"],[3,"click","keydown","value"],[1,"location-search-distance-option",3,"click","keydown"]],template:function(o,r){if(o&1){let a=L();h(0,"div",3)(1,"input",4,0),R("keyup",function(l){return S(a),k(r.locationSuggestions(l))}),p(),h(3,"button",5),y(4,rB,1,0,"img",6),y(5,aB,1,0,"img",7),p(),h(6,"button",8),R("click",function(){return S(a),k(r.toggleDistanceDd())})("keydown",function(l){return S(a),k(r.distanceSuggestion(l))}),y(7,sB,2,0,"span"),y(8,lB,2,1,"span"),x(9,"img",9),p(),y(10,pB,7,1,"div",10),p()}o&2&&(d(),f("formControl",r.locationInputCtrl)("ngClass",j(7,oB,r.locationInputCtrl.hasError("required"))),d(3),w(!r.locationInputCtrl.value&&!(!(r.locationInputCtrl==null||r.locationInputCtrl.value==null)&&r.locationInputCtrl.value.length)?4:-1),d(),w(r.locationInputCtrl.value&&r.locationInputCtrl.value.length?5:-1),d(2),w(r.distanceModel?-1:7),d(),w(r.distanceModel?8:-1),d(2),w(r.locationInputCtrl.value&&r.locationInputCtrl.value.length?10:-1))},dependencies:[Ie,no,Ko,Ip,vc],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.location-search-box[_ngcontent-%COMP%]{width:100%;font-size:18px;border:1px solid rgb(238.425,238.425,238.425);border-radius:2px;box-sizing:border-box;display:flex;position:relative;margin-bottom:10px}.location-search-box[_ngcontent-%COMP%]:hover{outline:1px solid rgb(238.425,238.425,238.425)!important;box-shadow:none;border-color:transparent}.location-search-input[_ngcontent-%COMP%]{width:calc(90% - 50px);height:50px;font-size:14px;border:none;padding-left:10px;box-sizing:border-box}.location-search-input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none;border-color:transparent}.location-search-btn[_ngcontent-%COMP%], .location-search-select-btn[_ngcontent-%COMP%]{color:#000;margin:auto;padding:0;border:none;background:#fff;height:50px;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.location-search-btn[_ngcontent-%COMP%]:focus, .location-search-select-btn[_ngcontent-%COMP%]:focus{outline:.1px solid rgb(238.425,238.425,238.425)!important;box-shadow:none;border-color:transparent}.location-search-btn[_ngcontent-%COMP%]{width:40px;border-right:1px solid rgb(238.425,238.425,238.425)}.location-search-btn[_ngcontent-%COMP%] span.icon-location[_ngcontent-%COMP%]{font-size:30px}.location-search-select-btn[_ngcontent-%COMP%]{width:40%;display:flex;justify-content:space-between;align-items:center}.location-search-select-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;padding-left:3px}@media (min-width: 576px){.location-search-select-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}}.location-search-select-btn[_ngcontent-%COMP%] .drpDownArrow[_ngcontent-%COMP%]{rotate:90deg}.location-search-select-container[_ngcontent-%COMP%]{width:100%;z-index:4;position:absolute;top:55px;display:flex;justify-content:space-between}.location-search-suggestion[_ngcontent-%COMP%]{flex-basis:70%;padding:5px;margin-right:auto;border:1px solid rgb(238.425,238.425,238.425);background:#fff!important}.location-search-suggestion[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:.75em}.location-search-suggestion[_ngcontent-%COMP%] li.selected[_ngcontent-%COMP%]{background:#dedede}.location-search-suggestion[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .location-search-suggestion[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:focus{background:#dedede;cursor:pointer}.location-search-distance[_ngcontent-%COMP%]{width:30%;height:0;margin:0 0 0 auto;font-size:12px;border:1px solid rgb(238.425,238.425,238.425);background:#fff!important;visibility:hidden;opacity:0;box-sizing:border-box}.location-search-distance.show[_ngcontent-%COMP%]{visibility:visible;opacity:1;justify-items:end;height:inherit;transition:all 1s}.location-search-distance-option[_ngcontent-%COMP%]{padding:1em .5em;margin:0!important;cursor:pointer}.location-search-distance-option.selected[_ngcontent-%COMP%]{background:#d3d3d3}.location-search-select-container.show[_ngcontent-%COMP%] + .location-search-select-btn[_ngcontent-%COMP%] > span.icon[_ngcontent-%COMP%]{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg)}"]});let e=i;return e})(),Zae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,oo,Zo]});let e=i;return e})();var mU=(()=>{let i=class i{constructor(){this.arrowIcon={colour:mi.WHITE,iconName:Fi.arrow}}ngOnInit(){}ngOnChanges(){}
1728closeBranches(){this.branchOpen={}}openBranch(n){this.branchOpen=n}toggleBranches(n,o){n.preventDefault(),o===this.branchOpen?this.closeBranches():this.openBranch(o)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-logged-in-nav-sub-list"]],inputs:{branch:"branch"},standalone:!1,features:[qe],decls:4,vars:3,consts:[[1,"logged-in-nav__item__twig--link",3,"ngClass","href","openInNewTab"],[1,"logged-in-nav__item__twig--link",3,"ngClass","routerLink","openInNewTab"],[1,"logged-in-nav__item__twig"],[3,"click","content"],[1,"logged-in-nav__item__twig__item",3,"href","openInNewTab"],[1,"logged-in-nav__item__twig__item",3,"routerLink","openInNewTab"]],template:function(o,r){o&1&&(h(0,"div"),y(1,hB,4,9,"a",0),y(2,gB,4,10,"a",1),y(3,CB,3,0,"div",2),p()),o&2&&(d(),w(r.branch.useRouterLink?-1:1),d(),w(r.branch.useRouterLink?2:-1),d(),w(r.branch&&r.branch.items&&r.branch.items.length>0&&r.branchOpen==r.branch?3:-1))},dependencies:[Ie,Vt,Ln,To],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.chevron[_ngcontent-%COMP%]{width:50px;height:40px;position:fixed;z-index:2000;justify-content:center;display:flex}.nav-control[_ngcontent-%COMP%]{width:26px;height:61px;top:0;left:234px;position:fixed;z-index:2000;transition:all .3s ease-in-out;cursor:pointer}.nav-control[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);transform-origin:center center;width:8px;height:8px;border:2px solid #fff;border-top:none;border-right:none;transition:all .3s ease-in-out}.nav-control--closed[_ngcontent-%COMP%]{left:75px}.nav-control--closed[_ngcontent-%COMP%]:before{border-color:#000;transform:translate(-50%,-50%) rotate(225deg)}.nav-tooltip[_ngcontent-%COMP%]{position:fixed;top:0;transform:translateY(-50%);padding:10px;display:inline-block;background-color:#000;border-radius:1px;z-index:9999}.nav-tooltip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;color:#fff;font-size:14px;line-height:1em;padding:0;margin:0;height:14px;display:block}.nav-tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:0;transform-origin:center center;transform:translate(-3px,-50%) rotate(45deg);width:7px;height:7px;background-color:#000}.left-nav-hamburger[_ngcontent-%COMP%]{display:block;position:fixed;width:50px;height:50px;cursor:pointer;line-height:49px;color:#000;margin-left:10px;font-size:2em;z-index:1001}@media (min-width: 992px){.left-nav-hamburger[_ngcontent-%COMP%]{display:none}}.left-nav-main[_ngcontent-%COMP%]{display:none}@media (min-width: 992px){.left-nav-main[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out}}.left-nav-main--opened[_ngcontent-%COMP%]{display:block;transition:all .3s ease-in-out} .logged-in-nav{overflow:visible;position:fixed;left:0;top:0;bottom:0;z-index:1001} .logged-in-nav__outer-container{height:100vh;overflow:auto;scrollbar-base-color:#31373e;scrollbar-face-color:#31373e;scrollbar-3dlight-color:#31373e;scrollbar-highlight-color:#31373e;scrollbar-track-color:#31373e;scrollbar-arrow-color:#31373e;scrollbar-shadow-color:#31373e;scrollbar-color:#31373e #31373e;scrollbar-width:none} .logged-in-nav__outer-container::-webkit-scrollbar{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-thumb{background-color:#31373e} .logged-in-nav__outer-container::-webkit-scrollbar-track{background-color:#31373e} .logged-in-nav__container{width:260px;background-color:#31373e;display:flex;flex-direction:column;position:relative} .logged-in-nav__container--main{min-height:calc(100vh - 60px);padding-top:60px;padding-bottom:50px} .logged-in-nav__container--top, .logged-in-nav__container--bottom{position:absolute;height:60px;left:0;z-index:9999} .logged-in-nav__container--top{top:0} .logged-in-nav__container--bottom{bottom:0} .logged-in-nav__container:before{content:"";width:68px;position:absolute;top:0;bottom:0;left:0;background-color:#1a2129;z-index:0} .logged-in-nav a{color:#fff;text-decoration:none;display:block;font-weight:100;box-sizing:content-box} .logged-in-nav__item{display:flex;z-index:1;overflow:visible} .logged-in-nav__item__icon{padding-top:16px;padding-left:11px;padding-right:21px;overflow:visible;background-color:#1a2129;text-decoration:none;width:35px;position:relative} .logged-in-nav__item__icona{background-color:#1a2129} .logged-in-nav__item__icon i{color:#fffc;font-size:24px;position:relative;transition:all .2s ease-in-out} .logged-in-nav__item__icon--logo{width:65px;margin-top:-10px;margin-left:-10px;padding-right:0} .logged-in-nav__item__label{color:#fff;width:100%} .logged-in-nav__item__label--link{color:#fff;font-weight:100} .logged-in-nav__item__label fab-aat-icon{display:none;position:absolute;top:50%;right:10px;transform:translateY(-50%) rotate(90deg);height:18px;width:18px} .logged-in-nav__item__label--nest-open fab-aat-icon{transform:translateY(-50%) rotate(-90deg)} .logged-in-nav__item__label a{opacity:.8;padding:14px 10px;position:relative} .logged-in-nav__item__label a:hover{opacity:1} .logged-in-nav__item__branch, .logged-in-nav__item__twig{padding-left:10px} .logged-in-nav__item__branch a:hover, .logged-in-nav__item__twig a:hover{background-color:#ffffff1a} .logged-in-nav__item--active .logged-in-nav__item__icon i{color:#fff} .logged-in-nav__item--active .logged-in-nav__item__icon i:after{height:48px} .logged-in-nav__item--bottom{position:absolute;bottom:0;left:0;width:100%;background-color:#31373e} .logged-in-nav__item--bottom a{padding-left:21px} .logged-in-nav a.logged-in-nav__item__label--nest-open, .logged-in-nav a.logged-in-nav__item__label--nest-closed{padding-right:40px} .logged-in-nav a.logged-in-nav__item__label--nest-open fab-aat-icon, .logged-in-nav a.logged-in-nav__item__label--nest-closed fab-aat-icon{display:block} .logged-in-nav--nav-closed .logged-in-nav__container{width:68px} .logged-in-nav--nav-closed .logged-in-nav__item__label{display:none}a.logged-in-nav__item__icon[_ngcontent-%COMP%]{background-color:#1a2129}.hamburger[_ngcontent-%COMP%]{position:fixed;order:3;margin-right:10px!important;display:flex;align-items:center;justify-content:center;padding:12px 10px 8px;flex-direction:column;z-index:1231}.hamburger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:28px;height:0px;border-top:2px solid #000;margin-bottom:.25rem}.hamburger[_ngcontent-%COMP%]:after{content:"menu";text-transform:capitalize;font-size:11px;font-weight:500;line-height:12px;margin-top:4px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:all ease .3s}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{transform:rotate(45deg);top:4px;position:relative;width:22px}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){display:none}.hamburger-active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg);top:-1px;position:relative;width:22px}']});let e=i;return e})(),fU=(()=>{let i=class i{constructor(){this.outputNavClosed=new se,this.isHovered=!1,this.arrowIcon={colour:mi.WHITE,iconName:Fi.arrow},this.treeOpen={}}ngOnInit(){this.iconData={colour:mi.GREY,iconName:this.tree.icon}}ngOnChanges(n){n.navClosed&&n.navClosed.previousValue===!1&&this.closeTrees()}closeTrees(){this.treeOpen={}}
1728openTree(n){this.outputNavClosed.emit(!1),this.treeOpen=n}toggleTrees(n,o){n.preventDefault(),o===this.treeOpen?this.closeTrees():this.openTree(o)}setIconColour(){let n=this.isHovered?mi.WHITE:mi.GREY;this.icon.setColour(n)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-logged-in-nav-link"]],viewQuery:function(o,r){if(o&1&&It(Ln,5),o&2){let a;Se(a=ke())&&(r.icon=a.first)}},inputs:{tree:"tree",navClosed:"navClosed",openInNewTab:"openInNewTab"},outputs:{outputNavClosed:"outputNavClosed"},standalone:!1,features:[qe],decls:7,vars:3,consts:[[1,"logged-in-nav__container",3,"mouseenter","mouseleave"],[1,"logged-in-nav__item__icon",3,"ngClass","routerLink","openInNewTab"],[1,"logged-in-nav__item__icon",3,"ngClass","href","openInNewTab"],[1,"logged-in-nav__item__label"],[1,"logged-in-nav__item__tree"],[1,"logged-in-nav__item__branch"],[1,"logged-in-nav__item__icon",3,"click","ngClass","routerLink","openInNewTab"],[3,"content"],[1,"logged-in-nav__item__icon",3,"click","ngClass","href","openInNewTab"],[1,"logged-in-nav__item__label--link",3,"ngClass","routerLink","openInNewTab"],[1,"logged-in-nav__item__label--link",3,"ngClass","href","openInNewTab"],[3,"click","content"],[1,"logged-in-nav__item__branch--link",3,"branch"]],template:function(o,r){o&1&&(h(0,"div",0),R("mouseenter",function(){return r.isHovered=!0,r.setIconColour()})("mouseleave",function(){return r.isHovered=!1,r.setIconColour()}),y(1,bB,2,8,"a",1)(2,_B,2,6,"a",2),h(3,"div",3)(4,"div",4),y(5,xB,2,1),y(6,kB,3,0,"div",5),p()()()),o&2&&(d(),w(r.tree.useRouterLink?1:2),d(4),w(r.navClosed?-1:5),d(),w((r.tree.items==null?null:r.tree.items.length)>0&&r.treeOpen==r.tree?6:-1))},dependencies:[Ie,Vt,Ln,To,mU],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.logged-in-nav__container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:5px 0;min-height:50px}.logged-in-nav__container[_ngcontent-%COMP%]:after{content:"";position:absolute;transition:opacity .2s ease-in-out;top:0;bottom:0;width:4px;background-color:#00ab4e;opacity:0}.logged-in-nav__container[_ngcontent-%COMP%]:hover:after{opacity:1}.logged-in-nav__item__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:0;width:90px}.logged-in-nav__item__icon[_ngcontent-%COMP%] fab-aat-icon[_ngcontent-%COMP%]{width:35px;height:35px}.logged-in-nav__item__label--link[_ngcontent-%COMP%]{color:#fff;font-weight:100}']});let e=i;return e})(),vU=(()=>{let i=class i{constructor(n){this.platformId=n,this.chevron={colour:mi.GREEN,iconName:Fi.arrow},this.navIsOpened=new se,this.currentSection="home",this.hoveredSection="",this.tooltip=!1}onResize(){this.checkScreenSize(),this.setNavStatus(this.screensizeSetNav())}ngOnInit(){this.checkScreenSize(),this.setNavStatus(this.screensizeSetNav())}setNavStatus(n){this.navClosed=n,this.navIsOpened.emit(!this.navClosed)}checkScreenSize(){Ee(this.platformId)&&(this.screenWidth=window.innerWidth,this.isDevice=this.screenWidth<992)}screensizeSetNav(){return this.isDevice||this.navClosed}toggleNav(){this.setNavStatus(!this.navClosed)}outputSetHoveredSection(n,o,r){this.setTooltip(n,r),this.hoveredSection=o}outputUnsetHoveredSection(){this.setTooltip(event,!1),this.hoveredSection=""}outputNavClosed(){this.setNavStatus(!1)}setTooltip(n,o){if(this.tooltip={},o){let r=n.target;r&&(this.tooltip={title:o,left:r.offsetLeft+r.offsetWidth+10,top:r.offsetTop+r.offsetHeight/2})}}};i.\u0275fac=function(o){return new(o||i)(I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-logged-in-nav"]],hostBindings:function(o,r){o&1&&R("resize",function(){return r.onResize()},bn)},inputs:{content:"content"},outputs:{navIsOpened:"navIsOpened"},standalone:!1,decls:16,vars:16,consts:[[1,"dont-print"],[1,"dont-print",3,"ngClass"],[1,"nav-control",3,"click","ngClass"],[1,"nav-tooltip","dont-print",3,"left","top"],[1,"logged-in-nav","dont-print",3,"ngClass"],[1,"logged-in-nav__container","logged-in-nav__container--top","dont-print"],[1,"logged-in-nav__item","logged-in-nav__item--logo","dont-print"],[1,"logged-in-nav__item__icon","logged-in-nav__item__icon--logo",3,"href"],[1,"logged-in-nav__item__icon","logged-in-nav__item__icon--logo",3,"routerLink"],[1,"logged-in-nav__outer-container"],[1,"logged-in-nav__container","logged-in-nav__container--main"],[1,"logged-in-nav__item","logged-in-nav__item--link",3,"ngClass","tree","navClosed","openInNewTab"],[1,"logged-in-nav__container","logged-in-nav__container--bottom"],[1,"logged-in-nav__item","logged-in-nav__item--bottom"],[1,"dont-print",3,"click"],[1,"hamburger"],[1,"nav-tooltip","dont-print"],["alt","",3,"src"],[1,"logged-in-nav__item","logged-in-nav__item--link",3,"mouseenter","mouseleave","outputN
1728avClosed","ngClass","tree","navClosed","openInNewTab"],[1,"logged-in-nav__item__icon",3,"href"],[1,"icon","icon-link"],[1,"logged-in-nav__item__label"],[3,"href"],[1,"logged-in-nav__item__icon",3,"routerLink"],[3,"routerLink"]],template:function(o,r){o&1&&(y(0,DB,5,0,"div",0),h(1,"div",1)(2,"div",2),R("click",function(){return r.toggleNav()}),p(),y(3,PB,3,5,"div",3),h(4,"div",4)(5,"div",5)(6,"div",6),y(7,RB,2,4,"a",7),y(8,FB,2,5,"a",8),p()(),h(9,"div",9)(10,"div",10),Q(11,AB,1,6,"fab-logged-in-nav-link",11,ne),p()(),h(13,"div",12),y(14,OB,6,5,"div",13),y(15,LB,6,7,"div",13),p()()()),o&2&&(w(r.navClosed&&r.isDevice?0:-1),d(),f("ngClass",He(9,EB,r.navClosed,!r.navClosed)),d(),f("ngClass",j(12,TB,r.navClosed)),d(),w(r.tooltip.title&&r.navClosed?3:-1),d(),f("ngClass",j(14,IB,r.navClosed)),d(3),w(r.content.useRouterLink?-1:7),d(),w(r.content.useRouterLink?8:-1),d(3),Z(r.content==null?null:r.content.items),d(3),w(r.content.useRouterLink?-1:14),d(),w(r.content.useRouterLink?15:-1))},dependencies:[Ie,Vt,To,fU],styles:[NB]});let e=i;return e})(),CU=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct,_a]});let e=i;return e})();var Jae=(()=>{let i=class i{constructor(n){Ee(n)&&(this.screenWidth=window.innerWidth)}onResize(n){this.screenWidth=n.target.innerWidth}ngOnInit(){(this.content?.button?.text||this.content?.button?.linkCta)&&(this.content.cta=this._convertToLinkButton(this.content.button)),this.content?.expandablePoints&&this.content.expandablePoints.forEach(n=>{n.cta=this._convertToLinkButton(n.button)})}_convertToLinkButton(n){return{text:n.text??n.linkCta,action:{type:"link",link:n.link,useRouterLink:!1,openInNewTab:n.openInNewTab},aria:n.text??n.linkCta,type:"primary"}}};i.\u0275fac=function(o){return new(o||i)(I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-primary-push"]],hostBindings:function(o,r){o&1&&R("resize",function(s){return r.onResize(s)},bn)},inputs:{content:"content"},standalone:!1,decls:13,vars:10,consts:[[1,"primary-push","row",3,"ngClass"],[1,"col-xs-12"],[1,"mobile-padding",3,"innerHTML"],[1,"primary-push__top","row"],[1,""],[1,"primary-push__image"],[1,"icon","icon-info","primary-push__image--tool-tip",3,"tooltip","positionInput"],[1,"primary-push__statement","col-xs-11","col-xs-offset-1","col-sm-6","col-sm-offset-6"],[3,"innerHTML"],[1,"primary-push__bottom","row"],[1,"primary-push__info","col-xs-12","col-sm-7","col-sm-offset-4"],[1,"primary-push__info__content","mobile-padding"],[3,"button"],[1,"primary-push__info__content--expandable"],[1,"primary-push__info__content--expandable-item"],[1,"expand-icon"],[1,"icon","icon-minus"],[1,"icon","icon-plus"],[1,"expandable-title",3,"innerHTML"],[1,"expandable-content",3,"ngClass"],[1,"expandable-content-text",3,"innerHTML"],[1,"expandable-separate-line"],[1,"icon","icon-minus",3,"click"],[1,"icon","icon-plus",3,"click"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1),x(2,"h1",2),p(),h(3,"div",3)(4,"div",4)(5,"div",5),y(6,BB,1,2,"i",6),p(),h(7,"div",7),x(8,"h2",8),p()()(),h(9,"div",9)(10,"div",10),y(11,GB,3,2,"div",11),y(12,YB,4,0,"div",11),p()()()),o&2&&(f("ngClass",j(8,VB,r.content.imagePosition==="right")),d(2),f("innerHTML",r.content.title,te),d(3),ot("background-image","url("+r.content.image+")"),d(),w(r.content.imageToolTip&&r.screenWidth?6:-1),d(2),f("innerHTML",r.content.statement,te),d(3),w(r.content.expandable?-1:11),d(),w(r.content.expandable?12:-1))},dependencies:[Ie,Ve,Nn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.primary-push>h1{margin-bottom:20px}.primary-push__top,.primary-push__statement,.primary-push__bottom,.primary-push__info{position:relative}.primary-push__top{padding-top:135px;margin-bottom:30px}.primary-push__top.row{flex:auto}.primary-push__image{position:absolute;top:0;left:0;width:100%;height:100%;background-size:cover}.primary-push__image--tool-tip{position:relative;top:0;float:right;display:flex;opacity:.9;justify-content:flex-end}.primary-push__title{margin-bottom:5px}.primary-push__statement{background-color:#00ab4e}.primary-push__statement h2{padding:20px 15px;margin:0;color:#fff}.primary-push__info{background-color:#fff}
1728.primary-push__info h4{font-family:acumin-pro-wide,Arial}.primary-push__info__content{width:70vw}@media (min-width: 768px){.primary-push__info__content{width:65vw}}.primary-push__info__content--bullet-box{display:flex;flex-direction:row}.primary-push__info__content--bullet-box i{color:#00ab4e;margin-top:20px;margin-right:10px}.primary-push__info__content--bullet-box p{font-weight:400}.primary-push__info__content--bullet-box span{color:#00ab4e}.primary-push__info__content--expandable{padding-bottom:30px}.primary-push__info__content--expandable-item{position:relative}.primary-push__info__content--expandable-item .expand-icon{position:absolute;top:5px;right:0;font-size:18px;cursor:pointer}.primary-push__info__content--expandable-item .expandable-title{font-size:18px}@media (min-width: 1200px){.primary-push__info__content--expandable-item .expandable-title{font-size:24px}}.primary-push__info__content--expandable-item .expandable-title{color:#00ab4e}.primary-push__info__content--expandable-item .expandable-content{font-size:14px;box-sizing:border-box;transition:all .15s linear;max-height:300px;overflow:hidden}@media (min-width: 1200px){.primary-push__info__content--expandable-item .expandable-content{font-size:18px}}.primary-push__info__content--expandable-item .expandable-content-text{padding:30px 0}.primary-push__info__content--expandable-item .expandable-content-hidden{max-height:0}.primary-push__info__content--expandable-item .expandable-separate-line{width:100%;height:2px;background-color:#dce6f0;margin:15px 0}@media (min-width: 992px){.primary-push.row{width:100%;max-width:1215px}.primary-push>h1{margin-bottom:10px}.primary-push__top{padding-top:0;margin-bottom:0}.primary-push__bottom{min-width:100%}.primary-push__image{top:auto;bottom:0;width:60%;height:calc(100% - 50px)}.primary-push__image--tool-tip{left:30px;float:left;justify-content:flex-start}.primary-push__statement{background-color:#00ab4e;padding-bottom:90px}.primary-push__statement h2{padding:30px}.primary-push__info{margin-top:-65px}.primary-push__info__content{padding:30px;width:500px}}@media (min-width: 1200px){.primary-push__statement{padding-bottom:150px}.primary-push__statement h2{padding:50px}.primary-push__info{margin-top:-180px}.primary-push__info__content{padding:30px}}.primary-push .bubble{position:relative;padding:0;background-color:#000;border-radius:4px;top:10px;width:60%;right:50px;display:table}.primary-push .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.primary-push .bubble{top:15px;right:5px}}@media (min-width: 1200px){.primary-push .bubble{width:60%}}.primary-push .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:12px}@media (min-width: 992px){.primary-push .bubble:after{font-size:30px;transform:rotate(180deg);left:-10px}}.primary-push .icon-info{position:relative;color:#31373e;font-size:20px;right:15px;top:15px;border-color:#fff;background-color:#fff;border-style:solid;border-width:1px;border-radius:50%;position:absolute}@media (min-width: 992px){.primary-push .icon-info{font-size:30px;position:relative}}.primary-push--reverse-order{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}@media (min-width: 992px){.primary-push--reverse-order .primary-push__image{max-width:534px;width:50%;margin-right:0}}.primary-push--reverse-order .primary-push__image--tool-tip{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row;flex-direction:row;justify-content:flex-end}@media (min-width: 992px){.primary-push--reverse-order .primary-push__content{max-width:534px;width:calc(50% - 20px);margin-right:20px}}.primary-push--reverse-order .bubble{right:30px;left:auto}@media (min-width: 992px){.primary-push--reverse-order .bubble{top:10px;right:25px;left:auto}}.primary-push--reverse-order .bubble:after{left:auto;right:-12px;transform:rotate(360deg)}.primary-push--reverse-order .icon-info{right:10px;left:auto} 1729`],encapsulation:2});let e=i;return e}
1729)(),Xae=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ve,un]});let e=i;return e})(),ese=(()=>{let i=class i{constructor(n,o,r,a,s,l,c){this.contactService=n,this.router=o,this.ref=r,this.productCardsService=a,this.productListService=s,this.document=l,this.platformId=c,this.studentMembershipProgrammeComponentId="2a174f81-a055-e511-80c2-00155d220a0c",this.infoIconConfig={colour:mi.GREEN,iconName:Fi.info},this.guidedLearningTooltip="<h4><strong>Guided learning hours</strong></h4><p>The GLH value for a qualification is an estimate of the amount of time a student spends learning under the supervision of a teacher or tutor. The GLH value is set and recommended as appropriate by AAT, but some students may need more or less support to achieve the qualification. The GLH value is not a compulsory measure for all students.</p>",this.qualHoursTooltip="<h4><strong>Total qualification time</strong></h4><p>The TQT value is a measure of how long it takes to complete a qualification, which includes both GLH and unsupervised learning. Any independent study time or any additional work by the student that is directed by, but not under the supervision of, a tutor is included in the TQT value.</p>"}ngAfterViewInit(){if(!Ee(this.platformId)){this.productCard=null;return}this.init()}init(){this.contact=this.contactService.contactId()??null,this.getContentData()}redirectTo404(){let n=this.contactService.contactGroups();(!n||!n.some(r=>["admin","staff"].includes(r)))&&(this.document.location.href=this.productCardsService.environment.BASE_URL+"/error/403")}getCardData(n,o,r){let a=n.checks.reduce((T,O)=>(T[O.type]={passed:O.passed,message:O.message},T),{});!a.under16.passed&&(o.isUnder16=!0);let l=!a.currentSanction.passed,c=n.alreadyRegisteredOn,u=c&&c.includes(r.topLevelComponentId);l&&(this.notification={type:"warning",message:"Not currently available. Speak to one of our advisors on +44 (0)20 3735 2468 if you need more information. Lines are open Monday to Friday 09.00\u201317.00 UK time.",fullWidth:!0},o.canAddToBasket=!1),u&&(this.notification={type:"warning",message:"You\u2019re already registered. Choose an alternative qualification.",fullWidth:!0},o.canAddToBasket=!1);let m=a.previouslyRegisteredOn.message&&a.previouslyRegisteredOn.message.programmeRegistrations.includes(r.topLevelComponentId);this.previouslyRegisteredOnOnly&&!m&&this.redirectTo404();let v=!a.isMember.passed,C=r.topLevelComponentId===this.studentMembershipProgrammeComponentId;v&&C&&(o.isMember=!0);let _={"25e555b0-1556-e511-80bf-00155d220a0b":"f8580f58-203e-eb11-8114-0050569343fe","1e794367-0b56-e511-80bf-00155d220a0b":"a5ac7144-0450-eb11-810f-00155d6e7033"};_[r.topLevelComponentId]&&n.alreadyRegisteredOn&&n.alreadyRegisteredOn.includes(_[r.topLevelComponentId])&&(o.isAQ2016=!0,o.canAddToBasket=!1);let E=["2c85984f-9129-eb11-8114-00505693c1d6","f4229b9e-b834-eb11-810c-005056930a83","4efd1649-ba34-eb11-810c-005056930a83"],D=c&&c.length&&E.map(T=>c.includes(T)).filter(T=>T);D&&D.length===E.length&&C&&(o.isAQ2016=!0,o.canAddToBasket=!1),this.productCard=o}getContentData(){let n=this.content;if(!n)return;let{productPageProduct:o,previouslyRegisteredOnly:r,basketItem:a,product:s,card:l}=this.setProductDetails(n);this.previouslyRegisteredOnOnly=r,this.product=s,this.basketItem=a,o.topLevelComponentId===this.studentMembershipProgrammeComponentId&&this.productListService.get().subscribe(c=>{let u=this.productListService.getProducts(c),m=Object.values(u).find(v=>v.topLevelComponentId===this.studentMembershipProgrammeComponentId);m&&(this.basketItem=m,this.getEligibilityData(l,this.basketItem))}),this.contact?this.getEligibilityData(l,a):(r&&(this.redirectTo404(),l.canAddToBasket=!1),this.productCard=l)}getEligibilityData(n,o){this.productCardsService.getEligibility(this.contact,[this.product.eligibilityId,this.studentMembershipProgrammeComponentId,"2c174f81-a055-e511-80c2-00155d220a0c","2c85984f-9129-eb11-8114-00505693c1d6","2e174f81-a055-e511-80c2-00155d220a0c","f4229b9e-b834-eb11-810c-005056930a83","30174f81-a055-e511-80c2-00155d220a0c","4efd1649-ba34-eb11-810c-005056930a83","25e555b0-1556-e511-80bf-00155d220a0b","f8580f58-203e-eb11-8114-0050569343fe","1e794367-0b56-e511-80bf-00155d220a0b","a5ac7144-0450-eb11-810f-00155d6e7033"]).subscribe(r=>{this.getCardData(r,n,o),this.ref.markForCheck()},()=>{n.canAddToBasket=!1,this.productCard=n})}setProductDetails(n){let{productDetails:o,productPageProduct:r,productSelectorDetails:a}=n,s={aatFeesUk:null,assessmentFees:null,aatFeesInternational:null,memberReinstateFee:null,memberFeeUk:null,memberFeeRestWorld:null,memberFeeMyanmar:null,memberAdmissionFee:null};o=(o||[s]).shift(),o=Object.assign(s,o),r=(r||[s]).shift(),r=Object.assign(s,r),a=a&&a.length?a[0]:{};let l=o.previouslyRegisteredOnly==="yes",c={aatFeesUk:parseInt(n.aatFeesUk||o.aatFeesUk,10),assessmentFees:parseInt(n.assessmentFees||o.assessmentFees,10),aatFeesInternational:parseInt(n.aatFeesInternational||o.aatFeesInternational,10),memberReinstateFee:parseInt(n.memberReinstateFee||o.memberReinstateFee,10),memberFeeUk:
1729parseInt(n.memberFeeUk||o.memberFeeUk,10),memberFeeRestWorld:parseInt(n.memberFeeRestWorld||o.memberFeeRestWorld,10),memberFeeMyanmar:parseInt(n.memberFeeMyanmar||o.memberFeeMyanmar,10),memberAdmissionFee:parseInt(n.memberAdmissionFee||o.memberAdmissionFee,10)},u=n.subjectMatter&&n.subjectMatter.length&&!!n.subjectMatter.filter(P=>P.name==="Accounting qualifications").length,m={studentMembership:o.studentMembershipStatus==="yes",isAccounting:u,fees:c,isUnder16:!1,canAddToBasket:!0,basketable:o.basketable!=="no",qualificationStandardName:o.qualStandardName,previouslyRegisteredOnly:l,pricePart:a.pricePart&&[].concat(a.pricePart)},v=Array.isArray(o.equivalentLevels)?o.equivalentLevels:[o.equivalentLevels];v=v.filter(P=>P);let C={levels:v,guidedLearningHours:o.guidedLearningHours,numberOfAssessments:o.numberOfAssessments,totalCredits:o.totalCredits,totalQualificationTime:o.totalQualificationTime,duration:n.durationFePlainText,displayType:n.productType,studentMembership:o.studentMembershipStatus==="yes",isAccounting:u,eligibilityId:r.topLevelComponentId,previouslyRegisteredOnOnly:l,fees:c},E=(a.productPageAccess?a.productPageAccess:"").replace(/(<p[^>]+?>|<p>|<\/p>)/gim,""),D={name:n.title,price:c.aatFeesUk,subName:E,points:typeof n.elements<"u"&&Array.isArray(n.elements)?n.elements:[],productId:n.id,alreadyRegistered:!1,hidePrices:!1,durationCopy:a.productPageAccess,basketText:a.basketText,programmeComponentId:r.programmeComponentId,topLevelComponentId:r.topLevelComponentId,scottishQualificationLevel:o.scottishQualLevel};return{productDetails:o,productPageProduct:r,productSelectorDetails:a,previouslyRegisteredOnly:l,basketItem:D,product:C,levels:v,card:m}}};i.\u0275fac=function(o){return new(o||i)(I(tm),I(rt),I(_i),I(Fx),I(em),I(Ze),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-product-hero"]],inputs:{content:"content"},standalone:!1,ngContentSelectors:tu,decls:3,vars:2,consts:[[1,"product"],[3,"notification"],[1,"product-hero"],[1,"product-hero_container"],[1,"product-hero__content"],[3,"content","basketItem"],[1,"product-hero__description"],[1,"product-texts"],[1,"product-texts__heading"],[1,"icon-container",3,"tooltip"],[3,"content"],[1,"small--right"],["href","/qualifications-and-courses/assessments","target","_blank"]],template:function(o,r){o&1&&(jt(),h(0,"div",0),y(1,KB,1,1,"fab-notification",1),y(2,r9,6,3,"div",2),p()),o&2&&(d(),w(r.notification?1:-1),d(),w(r.productCard?2:-1))},dependencies:[KG,sm,Nn,Ln,Pu],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.product-hero{border-width:1px 0;padding:50px;background-color:#f9f9f9;margin:0 -15px 100px;font-size:.8rem;min-width:60%}@media only screen and (min-width: 768px){.product-hero{margin:0 0 100px}}.product-hero_container{max-width:90%;margin:0 auto;max-width:1040px;display:flex}@media only screen and (max-width: 992px){.product-hero_container{flex-direction:column}}.product-hero__content{display:flex;min-width:60%;padding-right:50px}@media only screen and (max-width: 768px){.product-hero__content{flex-direction:column;padding-right:0}.product-hero__content>div{padding-right:0}}.product-hero__content>div{padding-right:30px;min-height:10px;min-width:50%;padding-bottom:30px}@media only screen and (min-width: 992px){.product-hero__content>div:first-child{width:50%}.product-hero__content>div{padding-bottom:0}}.product-hero__content ul{padding-left:1em}.product-hero__content ul li{margin:.5em 0}.product-hero__content .product-texts{margin-bottom:15px}.product-hero__content .product-texts small{float:none;padding:none}.product-hero__content .product-texts__heading{display:flex}.product-hero .component{margin-top:0}.icon-container{display:inline-block;max-width:30px;max-height:30px;width:max-content;height:max-content;margin-top:-4px}.product>fab-notification .notification{border-radius:0} 1730`],encapsulation:2});let e=i;return e})(),tse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct,qx,cu,un,_a]});let e=i;return e})(),bU=(()=>{let i=class i{constructor(n){this.router=n,this.onStepClick=new se}ngOnInit(){this.updateStepsCount()}onClick(n){this.onStepClick.emit(n)}ngOnChanges(n){this.updateStepsCount()}getCustomTitle(){return this.config.customTitle.replace("{{currentStep}}",this.config.currentStep.toString()).replace("{{maxSteps}}",this.config.maxSteps.toString())}updateStepsCount(){this.stepsCount=Array(this.config.maxSteps).fill(0).map((n,o)=>o+1)}};i.\u0275fac=function(o){return new(o||i)(I(rt))},i.\u0275cmp=N({type:i,selectors:[["fab-progress-indicator"]],inputs:{config:"config"},outputs:{onStepClick:"onStepClick"},standalone:!1,features:[qe],decls:7,vars:2,consts:[[1,"progress-indicator"],[1,"small",2,"margin-bottom","-6px"],[1,"progress-indicator__wrapper"],[1,"progress-indicator__container"],[3,"ngClass"],[3,"click","ngClass"]],template:function(o,r){o&1&&(h(0,"div",0),y(1,s9,2,1,"p",1),y(2,l9,4,3,"p",1),h(3,"div",2)(4,"div",3),Q(5,c9,1,5,"span",4,ne),p()()()),o&2&&(d(),w(r.config.customTitle?1:-1),d(),w(r.config.customTitle?-1:2),d(3),Z(r.stepsCount))},dependencies:[Ie],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.progress-indicator__wrapper[_ngcontent-%COMP%]{display:block}.progress-indicator__container[_ngcontent-%COMP%]{text-align:left;padding-bottom:2px;max-width:100%;display:flex;flex-wrap:wrap}.progress-indicator__container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:3px;padding-left:35px;margin-right:5px;background-color:#dce6f0;min-height:4px;margin-top:16px}.progress-indicator__selected[_ngcontent-%COMP%]{background-color:#4a4a4a!important}.progress-indicator__done[_ngcontent-%COMP%]{background-color:#00ab4e!important;cursor:pointer}"]});let e=i;return e})();var _U=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),ise=(()=>{let i=class i{constructor(n,o){this.sanitizer=n,this.router=o}set content(n){this._content=n}get content(){return this._content}ngOnInit(){let n=this.router.url.split("/");
1730if(n.pop(),this.content&&this.content.groupName)this.qualificationType=this.content.groupName;else{let o=n[n.length-1];this.qualificationType=`${o[0].toUpperCase()}${o.slice(1).replace("-"," ")} qualification`}this.qualificationUrl=n.join("/")}};i.\u0275fac=function(o){return new(o||i)(I(wn),I(rt))},i.\u0275cmp=N({type:i,selectors:[["fab-qualification-hero"]],inputs:{content:"content"},standalone:!1,decls:9,vars:6,consts:[[1,"product-header"],[3,"href"],[1,"level"],[1,"product-header__description",3,"innerHTML"]],template:function(o,r){o&1&&(h(0,"header",0)(1,"a",1),b(2),p(),h(3,"h1")(4,"strong"),b(5),p()(),y(6,d9,2,1,"h3"),y(7,u9,2,1,"div",2),x(8,"div",3),p()),o&2&&(d(),f("href",r.qualificationUrl,ee),d(),A(r.qualificationType),d(3),A(r.content.title),d(),w(r.content.subtitle?6:-1),d(),w(r.content.level?7:-1),d(),f("innerHTML",r.content.summary,te))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.product-header{text-align:center;padding:50px}.product-header h1{font-weight:500;font-family:inherit;margin:0 auto;padding:20px 0}@media only screen and (min-width: 768px){.product-header h1{max-width:70%}}.product-header .level{font-size:12px;font-weight:600;background:#0a5c50;padding:5px 10px;margin:10px 0;border-radius:2px;color:#fff;display:inline-block}.product-header__description p{padding:0;margin:10px 0 0} 1731`],encapsulation:2});let e=i;return e})(),nse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct]});let e=i;return e})();function yU(e=1){return function(t){let n=new wG;return Array.isArray(t.value)&&t.value.length!=e?{checkboxerror:{value:"requireCheckboxesToBeChecked",requiredValue:`Please select ${n.transform(e)} answers`}}:!t.value&&e==1?{checkboxerror:{value:"requireRadioToBeSelected",requiredValue:"Please select one answer"}}:null}}var wU=(()=>{let i=class i{constructor(n){this.formBuilder=n,this.changeCentre=new Fe(null),this.changeCentre$=this.changeCentre.asObservable(),this.Next=new _t,this.countCorrectAnswers=(o,r)=>o.reduce((a,s)=>s.answerIsCorrect===r?a+1:a,0),this.generateResults=(o,r)=>{let a={},s={},l=0;for(let[m,v]of r.quizGroups.entries()){let C=0,_=0;s[v.groupTitle]={questions:{}};for(let[D,P]of v.quizQuestions.entries())o.value[v.groupTitle][P.questionNumber]&&(C=C+parseInt(P.answerWeight),s[v.groupTitle].questions[P.questionNumber]={isCorrect:this.isCorrect(P.answers,o.value[v.groupTitle][P.questionNumber]),answers:Array.isArray(o.value[v.groupTitle][P.questionNumber])&&o.value[v.groupTitle][P.questionNumber].length>0?o.value[v.groupTitle][P.questionNumber].map(T=>P.answers[T]):[P.answers[o.value[v.groupTitle][P.questionNumber]]]},s[v.groupTitle].questions[P.questionNumber].isCorrect&&(_=_+parseInt(P.answerWeight)));let E=_/C*100;l=l+E,s[v.groupTitle]={questions:s[v.groupTitle].questions,result:E,colour:v.groupResults.sort((D,P)=>parseInt(P.groupResultFrom)-parseInt(D.groupResultFrom)).find(D=>E>=parseInt(D.groupResultFrom)).groupResultName,index:m}}let c=l/r.quizGroups.length,u=r.quizOverallResults.sort((m,v)=>parseInt(v.resultFrom)-parseInt(m.resultFrom)).find(m=>c>=parseInt(m.resultFrom));return a={sections:s,overallResult:{percentage:c,recommendedQuals:u?.quizResultProducts?.map(m=>m.nid)??[],quizResultText:u?.quizResultText?.[0]?.fabTextContent}},a},this.isCorrect=(o,r)=>Array.isArray(r)&&r.length>0?!r.some(a=>o[a].answerIsCorrect==="no"):o[parseInt(r)].answerIsCorrect==="yes"}setCentre(n,o=null){this.changeCentre.next(n)}formatDate(n){let o=n.split("/");return`${o[2]}-${o[1]}-${o[0]}`}buildForm(n){let o=this.formBuilder.group({});for(let r of n){o.addControl(r.groupTitle,this.formBuilder.group({}));let a=o.get(r.groupTitle);for(let s of r.quizQuestions){let l=this.countCorrectAnswers(s.answers,"yes");a.addControl(s.questionNumber,this.formBuilder.control(l>1?[]:null,[et.required,yU(l)]))}}return o}};i.\u0275fac=function(o){return new(o||i)(U(cs))},i.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})(),xU=(()=>{let i=class i{transform(n){return n.filter(o=>o.answerIsCorrect==="yes")}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Zt({name:"isCorrect",type:i,pure:!1,standalone:!1}),i.\u0275prov=B({token:i,factory:i.\u0275fac});let e=i;return e})(),ose=(()=>{let i=class i{constructor(n,o,r,a,s,l){this.formBuilder=n,this.quizService=o,this.router=r,this.route=a,this.gtmService=s,this.platformId=l,this.hubspotMapping={question_topic__double_entry_bookkeeping_rating:"hs_question_topic__double_entry_bookkeeping_rating",question_topic__bookkeeping_controls_rating:"hs_question_topic__bookkeeping_controls_rating",question_topic__costing_rating:"hs_question_topic__costing_rating",question_topic__business_environment_rating:"hs_question_topic__business_environment_rating",product_recommendation:"hs_product_recommendation"},this.activeSI=0,this.activeQI=0,this.nextButton={text:"Next question",type:"primary",action:{type:"callback",callback:this.nextStep.bind(this)},aria:"Next question"},this.printButton={text:"Print results",type:"primary",action:{type:"callback",callback:this.printResults.bind(this)},glyph:{icon:ko.PRINT},aria:"Print results"},this.restartButton={text:"Restart assessment",action:{type:"callback",callback:()=>this.restartQuiz()},type:"secondary",aria:"Restart assessment"},this.showError=!1,this.mobile=!1,this.iconArrowLeft=!1,this.countCorrectAnswers=(c,u)=>c.reduce((m,v)=>v.answerIsCorrect===u?m+1:m,0),this.isChecked=c=>this.activeFormControl.value.some(u=>u===c),this.resultSectionOrder=(c,u)=>c.value.index<u.value.index?-1:u.value.index<c.value.index?1:0}ngOnInit(){this.stepsConfig={currentStep:this.activeSI+1,maxSteps:this.content.quizGroups.length,stepTitle:this.content.quizGroups[this.activeSI].groupTitle},this.form=this.quizService.buildForm(this.content.quizGroups),this.activeFormControl=this.form.get(this.content.quizGroups[this.activeSI].groupTitle).get(this.content.quizGroups[this.activeSI].quizQuestions[this.activeQI].questionNumber)}nextStep(){if(this.activeFormControl.errors&&this.activeFormControl.errors.checkboxerror){this.showError=!0;return}else this.showError=!1;if(this.activeQI<this.content.quizGroups[this.activeSI].quizQuestions.length-1)this.activeQI++,this.stepsConfig.currentStep=this.activeSI+1,this.activeSI==this.content.quizGroups.length-1&&this.activeQI==this.content.quizGroups[this.activeSI].quizQuestions.length-1&&(this.nextButton.text="Get your results",this.nextButton.action.callback=this.endQuiz.bind(this));else{this.activeQI=0;let n={event:"funnel_step",funnel_name:this.content.quizTitle.toLowerCase(),funnel_step_
1731name:`section ${this.activeSI+1}`};this.gtmService.push(n),this.activeSI++,this.stepsConfig.currentStep=this.activeSI+1,this.stepsConfig.stepTitle=this.content.quizGroups[this.activeSI].groupTitle}this.activeFormControl=this.form.get(this.content.quizGroups[this.activeSI].groupTitle).get(this.content.quizGroups[this.activeSI].quizQuestions[this.activeQI].questionNumber)}previousStep(){this.activeSI==this.content.quizGroups.length-1&&this.activeQI==this.content.quizGroups[this.activeSI].quizQuestions.length-1&&(this.nextButton.text="Next question",this.nextButton.action.callback=this.nextStep.bind(this)),this.activeQI>0?(this.activeQI--,this.stepsConfig.currentStep=this.activeSI+1):this.activeSI>0&&(this.activeQI=this.content.quizGroups[this.activeSI-1].quizQuestions.length-1,this.activeSI--,this.stepsConfig.currentStep=this.activeSI+1,this.stepsConfig.stepTitle=this.content.quizGroups[this.activeSI].groupTitle),this.activeFormControl=this.form.get(this.content.quizGroups[this.activeSI].groupTitle).get(this.content.quizGroups[this.activeSI].quizQuestions[this.activeQI].questionNumber)}endQuiz(){if(this.activeFormControl.errors&&this.activeFormControl.errors.checkboxerror){this.showError=!0;return}else this.showError=!1;let n={event:"funnel_step",funnel_name:this.content.quizTitle.toLowerCase(),funnel_step_name:`section ${this.activeSI+1}`};this.gtmService.push(n),this.results=this.quizService.generateResults(this.form,this.content),this.accordionsOpen=Object.keys(this.results.sections).map(o=>!1)}restartQuiz(){let n={event:"customClick",element_type:"cta",element_text:this.restartButton.text.toLowerCase()};this.gtmService.push(n),window.location.reload()}printResults(){let n={event:"customClick",element_type:"cta",element_text:this.printButton.text.toLowerCase()};this.gtmService.push(n),Ee(this.platformId)&&(this.accordionsOpen=this.accordionsOpen.map(o=>!0),setTimeout(()=>{document.title="AAT-Skillcheck-results.pdf",window.print()},200))}onToogleAccordion(n,o,r){if(n){let a={event:"click accordion",element_type:"accordian open",element_text:r.toLowerCase()};this.gtmService.push(a)}this.accordionsOpen[o]=n}onCheckboxChange(n,o){if(n.target.checked){let r=Array.from(this.activeFormControl.value);r.push(parseInt(n.target.value)),this.activeFormControl.patchValue(r)}else this.activeFormControl.patchValue(Array.from(this.activeFormControl.value).filter(r=>r!==o))}onClick(n){}hubspotFormSubmit(){}};i.\u0275fac=function(o){return new(o||i)(I(cs),I(wU),I(rt),I(Lt),I(Ft),I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-quiz"]],inputs:{content:"content"},standalone:!1,decls:4,vars:3,consts:[[1,"quiz"],[1,"quiz__section-indicator"],[1,"quiz__inner"],[3,"config"],[1,"quiz__questions"],[3,"formGroup"],[3,"formGroupName"],[1,"quiz__questions--box"],[1,"quiz__single-choice"],[1,"quiz__multiple-choice"],[1,"error"],[1,"quiz__controls"],[3,"button"],[1,"quiz__single-choice--container"],["type","radio",1,"quiz__single-choice--radio",3,"name","value","checked","formControlName"],[1,"quiz__single-choice--selected"],[1,"quiz__multiple-choice--container"],["type","checkbox",1,"quiz__multiple-choice--checkbox",3,"change","name","id","value","checked"],[1,"quiz__multiple-choice--label",3,"for"],[3,"click"],[3,"innerHTML"],[1,"quiz__accordion"],[3,"onSubmit","productNodeIds"],[1,"quiz__buttons"],[1,"quiz__print-button"],[1,"quiz__restart-button"],[3,"portalId","formId","formMapping"],["type","hidden","id","hs_question_topic__double_entry_bookkeeping_rating","name","hs_question_topic__double_entry_bookkeeping_rating",3,"value"],["type","hidden","id","hs_question_topic__bookkeeping_controls_rating","name","hs_question_topic__bookkeeping_controls_rating",3,"value"],["type","hidden","id","hs_question_topic__costing_rating","name","hs_question_topic__costing_rating",3,"value"],["type","hidden","id","hs_question_topic__business_environment_rating","name","hs_question_topic__business_environment_rating",3,"value"],["type","hidden","id","hs_product_recommendation","name","hs_product_recommendation",3,"value"],[3,"onToggle","iconArrowLeft","isOpen"],["header","",1,"quiz__accordion-header",3,"ngClass"],[1,""],[1,"quiz__accordion-header--dot",3,"ngClass"],[1,"quiz__accordion-header--heading"],["body","",1,"quiz__accordion-body"],[1,"quiz__accordion-body--block"],[1,"quiz__accordion-body--questions"],[1,"quiz__accordion-body--question-text"],[1,"quiz__accordion-body--tag",3,"ngClass"],[1,"quiz__accordion-body--answers"],[1,"quiz__accordion-body--user-answer",3,"ngClass"],[3,"ngClass"]],template:function(o,r){o&1&&(h(0,"div",0),y(1,v9,2,1,"div",1),y(2,S9,20,10,"div",2),y(3,F9,29,14,"div",2),p()),o&2&&(d(),w(r.results?-1:1),d(),w(r.results?-1:2),d(),w(r.results?3:-1))},dependencies:[Ie,bU,no,fc,Ko,ss,Vr,bc,Cc,Jg,jx,Wx,Ve,qm,xU],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.quiz{margin:auto;-webkit-print-color-adjust:exact}.quiz__questions--box{border-style:solid;border-width:thin;border-color:#e6e6e6;border-radius:5px;padding:10px;margin:15px 0 40px}.quiz__section-indicator,.quiz__inner{margin-top:40px}.quiz__controls{display:flex;justify-content:space-between}.quiz__single-choice{width:90%;margin-top:20px}.quiz__single-choice label{font-weight:400}.quiz__single-choice--container{display:block;position:relative;padding-left:35px;margin-bottom:13px;
1731cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.quiz__single-choice--radio{position:absolute;opacity:0;cursor:pointer}.quiz__single-choice--radio:focus+.quiz__single-choice--selected:before{-webkit-box-shadow:0 0 0 4px #ffd432;-moz-box-shadow:0 0 0 4px #ffd432;box-shadow:0 0 0 4px #ffd432}.quiz__single-choice--radio:checked~.quiz__single-choice--selected{background-color:#00ab4e;border:2px solid #00ab4e}.quiz__single-choice--radio:checked~.quiz__single-choice--selected:after,.quiz__single-choice--radio:checked~.quiz__single-choice--selected:before{display:block}.quiz__single-choice--selected{box-sizing:content-box;position:absolute;top:0;left:0;height:20px;width:20px;border:solid rgb(229.5,229.5,229.5) 2px;background-color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%}@media (min-width: 1200px){.quiz__single-choice--selected{top:4px}}.quiz__single-choice--selected:after{content:"";position:absolute;display:none;left:2px;top:2px;width:12px;height:12px;border:solid white 2px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;box-sizing:unset}.quiz__single-choice--selected:before{content:"";position:absolute;display:none;top:0;left:0;width:20px;height:20px;border-radius:50%;background:transparent;outline:3px solid transparent;outline-offset:3px;box-sizing:unset}.quiz__multiple-choice{margin-top:20px}.quiz__multiple-choice--container{display:block;position:relative;margin-bottom:13px;cursor:pointer;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.quiz__multiple-choice--checkbox{position:absolute;opacity:0;z-index:999;zoom:1.75}.quiz__multiple-choice--checkbox+label{position:relative;cursor:pointer;padding:0;font-weight:500}.quiz__multiple-choice--checkbox+label:before{content:"";margin-right:10px;display:inline-block;vertical-align:text-top;width:20px;height:20px;background:#fff;border:2px solid rgb(229.5,229.5,229.5);margin-left:0;margin-top:0}.quiz__multiple-choice--checkbox:focus+label:before{box-shadow:0 0 #0000001f}.quiz__multiple-choice--checkbox:checked+label:before{background:#00ab4e;border:2px solid #00ab4e;margin-left:0;margin-top:-2px}.quiz__multiple-choice--checkbox:focus:checked+label:before{border:2px solid #ffd432}.quiz__multiple-choice--checkbox:disabled+label:before{box-shadow:none;background:#dfdfdf}.quiz__multiple-choice--checkbox:checked+label:after{content:"";position:absolute;left:5px;top:9px;background:#fff;width:2px;height:2px;box-shadow:2px 0 #fff,4px 0 #fff,4px -2px #fff,4px -4px #fff,4px -6px #fff,4px -8px #fff;transform:rotate(45deg)}.quiz__multiple-choice--label{display:flex}.quiz__multiple-choice--label p{margin:0;max-width:90%}.quiz__accordion{margin:20px 0}.quiz__accordion-header{display:flex}.quiz__accordion-header--heading{margin-left:10px}.quiz__accordion-header--dot{height:25px;width:25px;background-color:#bbb;border-radius:50%;display:inline-block}.quiz__accordion-header--dot.green{background-color:#00ab4e}.quiz__accordion-header--dot.red{background-color:#e22b25}.quiz__accordion-header--dot.amber{background-color:#fac05c}.quiz__accordion-body--block:not(:last-child){margin:10 px 0;border-bottom:1px;border-bottom-style:solid;border-color:#d3d3d3}.quiz__accordion-body--questions{margin:20px;display:flex;flex-direction:column-reverse}@media print{.quiz__accordion-body--questions{flex-direction:row;justify-content:space-between}}@media (min-width: 992px){.quiz__accordion-body--questions{flex-direction:row;justify-content:space-between}}.quiz__accordion-body--answers{margin:20px}.quiz__accordion-body--user-answer.correct{color:#008048}.quiz__accordion-body--user-answer.error{color:#e22b25}.quiz__accordion-body--user-answer.error i{background-color:#e22b25;color:#fff;border-radius:50%}.quiz__accordion-body--user-answer i{font-size:14px}.quiz__accordion-body--tag{flex-basis:0;flex-grow:1;color:#fff;padding:5px 10px 10px;text-align:center;height:15px;border-radius:3px;background-color:#e22b25;width:fit-content}@media (min-width: 992px){.quiz__accordion-body--tag{width:10%;margin:20px 10px 0 15px;height:20px}}.quiz__accordion-body--tag.green{background-color:#00ab4e}.quiz__accordion-body--question-text{flex-basis:0;flex-grow:6;margin-right:20px}.quiz__buttons{display:flex;justify-content:space-between}@media print{.quiz__buttons{display:none}} 1732`],encapsulation:2});let e=i;return e})(),rse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,_U,oo,Zo,Xg,Nx,Yx,$x,Ve]});let e=i;return e})();var ase=(()=>{let i=class i{constructor(){this.selection=new se,this.overlayClosed=new se,this.mobileFilterButton={text:"Show results",type:"primary",action:{type:"callback",callback:()=>this.closeOverlay()},aria:"Show results"}}
1732ngOnInit(){this.closedByDefault&&this.content.categories.forEach(n=>{n.accordionClosed=!0}),this.content.categories.forEach(n=>{n.accordionClosed===void 0&&(n.accordionClosed=!1)})}accordionInteraction(n){this.content.categories[n].accordionClosed=!this.content.categories[n].accordionClosed}generateLabel(n,o){return`${this.content.categories[n].options[o].label}${this.content.categories[n].options[o].total?` (${this.content.categories[n].options[o].total})`:""}`}applyFilter(n,o,r){let a;typeof n!="boolean"?a=!!n.value:a=n;let s={id:this.content.categories[o].options[r].id,selected:a,category:this.content.categories[o].accordionTitle,label:this.content.categories[o].options[r].label,filter:this.content.categories[o].options[r].filterString||this.content.categories[o].options[r].filterNumber};this.selection.emit(s)}closeOverlay(){this.overlayClosed.emit(!1)}removeSpaces(n){return n.replace(/\s*/g,"")}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-side-filter"]],inputs:{content:"content",closedByDefault:"closedByDefault",isMobile:"isMobile",openOverlay:"openOverlay"},outputs:{selection:"selection",overlayClosed:"overlayClosed"},standalone:!1,decls:9,vars:9,consts:[[1,"filter-body"],[1,"filter-body__title"],[1,"filter-body__overlay--show_close"],[1,"filter-body__confirm"],[1,"filter-body__overlay--show_close",3,"click"],[1,"icon","icon-cross"],[1,"filter-body__header",3,"click"],[1,"filter-body__header--title"],[1,"filter-body__header--tooltip"],[1,"icon","filter-body__header--icon",3,"ngClass"],[1,"icon","icon-info",3,"tooltip","positionInput"],[3,"ngClass"],[1,"filter-body__checkbox"],[3,"onChange","content","isChecked"],[1,"filter-body__radio"],[3,"selectEvent","content","checkedVal"],[3,"button"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1)(2,"h5")(3,"strong"),b(4),p()(),y(5,N9,2,0,"div",2),p(),Q(6,j9,13,9,"div",null,ne),y(8,W9,2,1,"div",3),p()),o&2&&(Be("filter-body__overlay",r.isMobile)("filter-body__overlay--show",r.isMobile&&r.openOverlay),d(),Be("filter-body__title--overlay",r.isMobile),d(3),q(" ",r.content.heading," "),d(),w(r.isMobile?5:-1),d(),Z(r.content.categories),d(2),w(r.isMobile?8:-1))},dependencies:[Ie,Nn,Vx,zx,Ve],styles:['[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.filter-body[_ngcontent-%COMP%]{width:auto;padding:15px 15px 0 0;overflow-y:auto;max-height:80vh}.filter-body__overlay[_ngcontent-%COMP%]{content:"";display:none;position:fixed;padding:10px;top:10%;right:2%;height:90vh;width:90vw;z-index:2000;background:#fff;border:2px solid #dfe1e5;box-shadow:0 20px 20px 20px #1a1a1a33}.filter-body__overlay--show[_ngcontent-%COMP%]{display:block}.filter-body__overlay--show_close[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;z-index:0}@media (min-width: 992px){.filter-body[_ngcontent-%COMP%]{width:100%;max-width:280px;visibility:visible;position:relative}}.filter-body__header[_ngcontent-%COMP%]{display:flex;align-items:center}.filter-body__header--title[_ngcontent-%COMP%]{padding-right:5px}@media (min-width: 992px){.filter-body__header--title[_ngcontent-%COMP%]{flex-grow:1}}.filter-body__header--title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.75em}.filter-body__header--tooltip[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;color:#00ab4e;margin:0 15px;flex-grow:1;justify-content:start}@media (min-width: 992px){.filter-body__header--tooltip[_ngcontent-%COMP%]{justify-content:center;flex-grow:inherit}}.filter-body__header--icon[_ngcontent-%COMP%]{justify-self:flex-end;align-self:center}.filter-body__title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.filter-body__title--overlay[_ngcontent-%COMP%]{position:sticky;top:-20px;z-index:2001;background:#fff;padding:20px 0}.filter-body__confirm[_ngcontent-%COMP%]{padding:15px}.filter-body__checkbox[_ngcontent-%COMP%]{min-height:15px;padding-bottom:10px;font-size:.75em}.filter-body__radio[_ngcontent-%COMP%]{padding-bottom:3px;font-size:.75em}.filter-body[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top:1px rgb(229.5,229.5,229.5) solid}.hidden[_ngcontent-%COMP%]{display:none}'],data:{animation:[xn("closeOpenAccordion",[Ki("true",ht({height:"0px"})),Ki("false",ht({height:"*"})),ti("false <=> true",ei(50))])]}});let e=i;return e})(),sse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,un,lu,Ve]});let e=i;return e})();var lse=(()=>{let i=class i{constructor(n,o,r){this._renderer=n,this.document=o,this.gtmService=r}ngOnInit(){let n=this._renderer.createElement("script");n.async=!0,n.src="https://platform.twitter.com/widgets.js",n.charset="utf-8",this._renderer.listen(n,"load",()=>{window.twttr.events.bind("click",o=>
1732{this.onGAClick(this.content.url,this.content.title,"click twitter share")})}),this._renderer.appendChild(this.document.body,n)}onGAClick(n,o,r){this.gtmService.push({event:r,element_type:"cta",element_path:`/${n}`,element_text:o})}};i.\u0275fac=function(o){return new(o||i)(I(ct),I(Ze),I(Ft))},i.\u0275cmp=N({type:i,selectors:[["fab-social-twitter"]],hostAttrs:["ngSkipHydration","true"],inputs:{content:"content"},standalone:!1,decls:3,vars:1,consts:[[1,"social-twitter"],["href","https://twitter.com/share?ref_src=twsrc%5Etfw","data-show-count","false",1,"twitter-share-button"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"a",1),b(2,"Tweet"),p()()),o&2&&(d(),ve("data-text",r.content.title))},styles:[`.social-twitter{padding:8px 4px;display:inline-block;line-height:100%;vertical-align:top} 1733`],encapsulation:2});let e=i;return e})(),cse=(()=>{let i=class i{constructor(n,o,r){this._renderer=n,this.platformId=o,this.gtmService=r,this.loaded=!1}ngOnInit(){}ngAfterViewInit(){let n=this._renderer.createElement("script");n.async=!0,n.defer=!0,n.crossOrigin="anonymous",n.src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v14.0",n.nonce="3FdbDBDd",Ee(this.platformId)&&this._renderer.appendChild(this.facebookContainer.nativeElement,n)}onGAClick(n,o,r){this.gtmService.push({event:r,element_type:"cta",element_path:`/${n}`,element_text:o})}};i.\u0275fac=function(o){return new(o||i)(I(ct),I(De),I(Ft))},i.\u0275cmp=N({type:i,selectors:[["fab-social-facebook"]],viewQuery:function(o,r){if(o&1&&It($9,5),o&2){let a;Se(a=ke())&&(r.facebookContainer=a.first)}},inputs:{content:"content"},standalone:!1,decls:6,vars:2,consts:[["socialFacebook",""],[1,"social-facebook",3,"click"],["id","fb-root"],["data-layout","button_count",1,"fb-share-button"],["target","_blank","href","https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&src=sdkpreparse",1,"fb-xfbml-parse-ignore"]],template:function(o,r){if(o&1){let a=L();h(0,"div",1,0),R("click",function(){return S(a),k(r.onGAClick(r.content.url,r.content.title,"click facebook share"))}),x(2,"div",2),h(3,"div",3)(4,"a",4),b(5,"Share"),p()()()}o&2&&(d(3),ve("data-href",r.content.url)("data-text",r.content.title))},styles:[`.social-facebook{padding:8px 4px;display:inline-block;line-height:100%;vertical-align:top} 1734`],encapsulation:2});let e=i;return e})(),dse=(()=>{let i=class i{constructor(n,o,r){this._renderer=n,this._document=o,this.gtmService=r,this.isBrowser=Ee(F(De))}ngOnInit(){let n=this._renderer.createElement("script");n.type="text/javascript",n.src="https://platform.linkedin.com/in.js",n.text="lang: en_US",this._renderer.appendChild(this._document.querySelector(".social-linkedin"),n)}ngAfterViewInit(){if(this.isBrowser){let n=window.location.href,o=this._document.querySelector(".social-linkedin");o&&(o.innerHTML=`<script type="IN/Share" data-url="${n}"><\/script>`,window?.IN.parse())}}onGAClick(n,o,r){this.gtmService.push({event:r,element_type:"cta",element_path:`/${n}`,element_text:o})}};i.\u0275fac=function(o){return new(o||i)(I(ct),I(Ze),I(Ft))},i.\u0275cmp=N({type:i,selectors:[["fab-social-linkedin"]],inputs:{content:"content"},standalone:!1,decls:1,vars:0,consts:[[1,"social-linkedin",3,"click"]],template:function(o,r){o&1&&(h(0,"div",0),R("click",function(){return r.onGAClick(r.content.url,r.content.title,"click linkedin share")}),p())},styles:[`.social-linkedin{padding:8px 4px;display:inline-block;line-height:100%;vertical-align:top} 1735`],encapsulation:2});let e=i;return e})(),use=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct]});let e=i;return e})(),pse=(()=>{let i=class i{constructor(n){this.sanitizer=n,this.sanitizer=n}checkAudioLinkExists(){return this.config.link||console.error("Could not find link for audio "+this.config.link),this.config.link}iframeSrc(){return this.sanitizer.bypassSecurityTrustResourceUrl(`https://w.soundcloud.com/player/?url=${this.config.link}&color=%2361cc99&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false`)}
1735};i.\u0275fac=function(o){return new(o||i)(I(wn))},i.\u0275cmp=N({type:i,selectors:[["fab-soundcloud"]],inputs:{config:"config"},standalone:!1,decls:1,vars:1,consts:[[1,"soundcloud","dont-print"],["width","100%","height","166","scrolling","no","frameborder","no","allow","autoplay",3,"src"]],template:function(o,r){o&1&&y(0,q9,2,1,"div",0),o&2&&w(r.checkAudioLinkExists()?0:-1)},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2} 1736`],encapsulation:2,changeDetection:0});let e=i;return e})(),hse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),gse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-standard-push"]],inputs:{content:"content"},standalone:!1,decls:7,vars:10,consts:[[1,"standard-push",3,"ngClass"],[1,"standard-push__image"],[3,"src","alt"],[1,"standard-push__image--tool-tip"],[1,"standard-push__content"],[3,"innerHTML"],[1,"icon","icon-info",3,"tooltip","positionInput"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1),x(2,"img",2),y(3,K9,2,2,"div",3),p(),h(4,"div",4),x(5,"h2",5)(6,"div",5),p()()),o&2&&(f("ngClass",j(8,Y9,r.content.imagePosition==="right")),d(2),f("src",oe(r.content.image),ee)("alt",oe(r.content.title)),d(),w(r.content.imageToolTip?3:-1),d(2),f("innerHTML",r.content.title,te),d(),f("innerHTML",r.content.content,te))},dependencies:[Ie,Nn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}@media (min-width: 992px){.standard-push{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;justify-content:center}}.standard-push__image{position:relative}@media (min-width: 992px){.standard-push__image{margin-right:20px;width:calc(50% - 20px);max-width:534px}}.standard-push__image img{width:100%}.standard-push__image--tool-tip{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;position:relative;top:0;right:0;opacity:.9;justify-content:flex-end;-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;position:absolute;width:100%}@media (min-width: 992px){.standard-push__content{width:50%;max-width:534px}.standard-push__content p{font-size:1.15em}}@media (min-width: 1200px){.standard-push__content p{font-size:1.286em}}.standard-push__content h1 strong{display:block}.standard-push .bubble{position:relative;padding:0;background-color:#000;border-radius:4px;top:10px;right:auto;left:30px;width:auto;max-width:calc(100% - 90px);display:table}.standard-push .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.standard-push .bubble{top:10px;left:25px;right:auto}}.standard-push .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;left:-12px;top:9px;transform:rotate(180deg)}@media (min-width: 992px){.standard-push .bubble:after{top:12px;font-size:30px;right:-10px}}.standard-push .icon-info{position:relative;font-size:20px;left:10px;right:auto;top:12px;border:1px solid #fff;background-color:#fff;border-radius:50%}@media (min-width: 992px){.standard-push .icon-info{top:10px;font-size:30px}}.standard-push--reverse-order{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}@media (min-width: 992px){.standard-push--reverse-order .standard-push__image{max-width:534px;width:50%;margin-right:0}}.standard-push--reverse-order .standard-push__image--tool-tip{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row;flex-direction:row;justify-content:flex-end}@media (min-width: 992px){.standard-push--reverse-order .standard-push__content{max-width:534px;width:calc(50% - 20px);margin-right:20px}}.standard-push--reverse-order .bubble{right:30px;left:auto}@media (min-width: 992px){.standard-push--reverse-order .bubble{top:10px;right:25px;left:auto}}.standard-push--reverse-order .bubble:after{left:auto;right:-12px;transform:rotate(360deg)}.standard-push--reverse-order .icon-info{right:10px;left:auto} 1737`],encapsulation:2});let e=i;return e})(),mse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,un]});let e=i;return e})(),fse=(()=>{let i=class i{constructor(n){this.platformId=n,this.stepSplit=0}onResize(n){this.screenWidth=n.target.innerWidth,this.isMobile=this.screenWidth<992,this.isTablet=this.screenWidth<993&&this.screenWidth<=600,this.stepSplit=this.isMobile?0:1,this.sizeStepListMobile(this.listLen,this.screenWidth)}ngOnInit(){Ee(this.platformId)&&(this.isBrowser=!0),this.isBrowser&&(this.screenWidth=window.innerWidth,this.isMobile=this.screenWidth<992,this.isTablet=this.screenWidth<993&&this.screenWidth>=600,this.stepSplit=this.isMobile?0:1,this.scrollBarPos=0,this.scrollBarWidth=25,this.fadeOut=!1,this.animationType=""),this.selected=this.content.list[0],this.selectedDisplay=this.selected,this.listLen=Object.keys(this.content.list).length,this.scrollBarWidth=Math.round(100/this.listLen),this.sizeStepListMobile(this.listLen,this.screenWidth)}sizeStepListMobile(n,o){this.containerWidth=this.isMobile?n*o*.8+n*40+30:null}stepsAdvance(n){if(this.isMobile){let o=n.target.scrollLeft/(this.containerWidth-this.screenWidth),r=Math.floor(o*this.listLen+.3);this.scrollBarPos=Math.round(o*(100-this.scrollBarWidth));let a=this.content.list[r<this.listLen?r:this.listLen-1];
1737a!==this.selected&&this.selectListItem(a)}}displaySelected(n){this.fadeOut?(this.selectedDisplay=this.selected,this.permShrink=!1,this.fadeOut=!1):(this.tempGrow=!1,this.fadeIn=!0)}selectListItem(n){this.selected=n,this.fadeOut=!0,this.fadeIn=!1,this.tempGrow=!0,setTimeout(function(){this.permShrink=!0},200)}};i.\u0275fac=function(o){return new(o||i)(I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-steps-tool"]],hostBindings:function(o,r){o&1&&R("resize",function(s){return r.onResize(s)},bn)},inputs:{content:"content"},standalone:!1,decls:19,vars:21,consts:[[1,"steps-tool"],[1,"steps-tool__top","row"],[1,"steps-tool__header","mobile-padding","col-xs-12","col-sm-7","col-md-6"],[3,"innerHTML"],[1,"row"],[1,"steps-tool__image"],[1,"steps-tool__image--tool-tip"],[1,"steps-tool__bottom","row"],[1,"steps-tool__list","col-xs-12","col-md-6",3,"scroll"],[1,"steps-tool__list__container","mobile-padding","row",3,"width"],[1,"steps-tool__scroll-bar"],[1,"steps-tool__scroll-bar__bar"],[1,"steps-tool__info-box","col-xs-12","first-xs","last-sm","col-sm-5","col-sm-offset-0","col-md-5"],[1,"steps-tool__info-box__perm",3,"ngClass"],[1,"steps-tool__link",3,"href","target","ngClass"],[1,"steps-tool__link",3,"ngClass"],[1,"steps-tool__link",3,"mouseenter","click","href","target","ngClass"],[1,"icon","icon-arrow-right"],[1,"steps-tool__link",3,"mouseenter","click","ngClass"],[1,"icon","icon-info",3,"tooltip","positionInput"],[1,"steps-tool__list__container","mobile-padding","row"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1)(2,"div",2),x(3,"h3",3),Q(4,X9,3,2,"div",4,ne),Y(6,"slice"),p(),h(7,"div",5),y(8,eH,2,2,"div",6),p(),h(9,"div",7)(10,"div",8),R("scroll",function(s){return r.stepsAdvance(s)}),Q(11,nH,3,4,"div",9,ne),Y(13,"slice"),p(),h(14,"div",10),x(15,"div",11),p(),h(16,"div",12)(17,"div",13)(18,"h2",3),R("@fadeOutAnimation.done",function(s){return r.displaySelected(s)}),p()()()()()()),o&2&&(d(3),f("innerHTML",r.content.title,te),d(),Z(_n(6,12,r.content.list,0,r.stepSplit)),d(3),ot("background-image","url("+r.content.image+")"),d(),w(r.content.imageToolTip?8:-1),d(3),Z(Mt(13,16,r.content.list,r.stepSplit)),d(4),ot("width",r.scrollBarWidth,"%")("left",r.scrollBarPos,"%"),d(2),f("ngClass",j(19,Q9,r.permShrink)),d(),f("innerHTML",r.selectedDisplay.signOff,te)("@fadeInAnimation",r.fadeIn)("@fadeOutAnimation",r.fadeOut))},dependencies:[Ie,Nn,Aa],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.steps-tool{padding:5px}.steps-tool.row{width:100vw}.steps-tool__link{position:relative;text-decoration:none;transition:all .3s ease-in-out;width:80vw;border:1px solid rgb(229.5,229.5,229.5);margin-left:11px;padding:15px 10px;opacity:.7;cursor:pointer}.steps-tool__link:focus,.steps-tool__link:hover{text-decoration:none}.steps-tool__link h4{position:relative}.steps-tool__link i{opacity:0;position:absolute;font-size:20px;right:10px;top:50%;transform:translateY(-50%);color:#00ab4e;transition:all .3s ease-in-out}.steps-tool__link--selected{opacity:1}.steps-tool__link p{color:#000;font-weight:400}.steps-tool__bottom,.steps-tool__top{position:relative}.steps-tool__bottom{padding-top:80px;max-width:95vw}.steps-tool__header{z-index:3;margin-bottom:20px;background-color:#fff}.steps-tool__image{position:relative;display:block;height:240px}@media only screen and (min-width: 576px) and (max-width: 992px){.steps-tool__image{width:100%;height:350px}}.steps-tool__image{width:100%;background-size:cover}.steps-tool__image--tool-tip{position:relative;top:0;float:right;display:flex;opacity:.9;justify-content:flex-end}.steps-tool__list{overflow-x:scroll;overflow-y:visible;position:relative;padding:20px 0}.steps-tool__list::-webkit-scrollbar{width:0}.steps-tool__list__container{padding-left:0;overflow-x:visible}@media only screen and (max-width: 992px){.steps-tool__list{display:inline-flex}}.steps-tool__scroll-bar{position:absolute;bottom:0;left:15px;width:calc(100% - 30px);height:3px}.steps-tool__scroll-bar__bar{position:absolute;bottom:0;left:0;width:25%;height:3px;background-color:#00ab4e}.steps-tool__scroll-bar:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:#e6e6e6}.steps-tool__info-box{position:absolute;bottom:calc(100% - 70px);transition:all .2s ease-in-out;transform:scaleY(1);transform-origin:bottom left;background-color:#00ab4e;width:92%;right:0}.steps-tool__info-box h2{transition:all .2s ease-in-out;transform:scaleY(1);transform-origin:bottom left;padding:20px;color:#fff;z-index:1;position:relative}.steps-tool__info-box__perm,.steps-tool__info-box__temp{position:absolute;bottom:0;left:0;width:100%;background-color:#00ab4e;color:#fff;z-index:0;transform:scaleY(1);transform-origin:bottom left;transition:all .2s ease-in-out}.steps-tool__info-box__perm{z-index:1;bottom:0}.steps-tool__info-box__perm--active,.steps-tool__info-box__temp{transform:scaleY(.75)}.steps-tool__info-box__temp--active{transform:scaleY(1)}
1737.steps-tool__info-box__temp h1{display:block;color:#fff}@media (min-width: 992px){.steps-tool{max-width:calc(100% - 72px)}.steps-tool__bottom{padding-top:0}.steps-tool__list{padding-top:0;padding-bottom:0;overflow:hidden}.steps-tool__scroll-bar{display:none}.steps-tool__link{padding:20px 20px 20px 0;background-color:#fff;border:none;display:block;max-width:calc(100% - 20px);z-index:1;opacity:1;margin-left:0}.steps-tool__link p{margin:10px 0}.steps-tool__link:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#e6e6e6;transition:all .3s ease-in-out}.steps-tool__link--selected{z-index:2}.steps-tool__link--selected i{opacity:1;right:0}.steps-tool__link--selected:after{height:3px;background-color:#00ab4e}.steps-tool__header{margin-bottom:0}.steps-tool__header a:after{transform:translateY(100%)}.steps-tool__image{position:absolute;height:calc(100% + 70px);width:calc(50% + 70px);top:0;right:-45px;z-index:5}.steps-tool__info-box{margin-top:0;position:relative;padding-top:0;transform-origin:top left;z-index:8}.steps-tool__info-box__temp,.steps-tool__info-box__perm{transform-origin:top left;top:0;bottom:auto}.steps-tool__info-box h2{transform-origin:top left;color:#fff}}@media (min-width: 1200px){.steps-tool{padding-left:15px;padding-right:15px}.steps-tool__link p{margin:10px 0}.steps-tool__link--selected:after{height:4px}.steps-tool__image{top:0}.steps-tool__info-box h2{padding:40px}}.steps-tool .bubble{position:relative;padding:0;color:#000;background:#000;border-radius:4px;top:10px;width:60%;right:30px;display:table}.steps-tool .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.steps-tool .bubble{top:15px}}@media (min-width: 1200px){.steps-tool .bubble{width:auto}}.steps-tool .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:12px}.steps-tool .icon-info{position:relative;color:#31373e;font-size:20px;right:15px;top:15px;border-color:#fff;background-color:#fff;border-style:solid;border-width:1px;border-radius:50%}@media (min-width: 992px){.steps-tool .icon-info{font-size:30px}}.steps-tool .icon-info{cursor:help} 1738`],encapsulation:2,data:{animation:[xn("fadeInAnimation",[ti("* => true",[Oa(":self",[ht({opacity:0}
1738),ei("10ms 10ms ease-in-out",ht({opacity:1}))])])]),xn("fadeOutAnimation",[ti("* => true",[Oa(":self",[ht({opacity:1}),ei("10ms ease-in-out",Il([ht({opacity:0,offset:1})]))])]),ti("* => false",[Oa(":self",[ht({opacity:0}),ei("10ms ease-in-out",Il([ht({opacity:0,offset:1})])),ht({opacity:0})])])])]}});let e=i;return e})(),vse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct,un]});let e=i;return e})();var Cse=(()=>{let i=class i{constructor(){}ngOnInit(){}scroll(n){window.scrollTo({behavior:"smooth",top:document.querySelector("."+n).getBoundingClientRect().top-document.body.getBoundingClientRect().top-80})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-table-of-contents"]],inputs:{content:"content",useRouterLink:"useRouterLink"},standalone:!1,decls:6,vars:0,consts:[[1,"table-of-contents"],[3,"click"]],template:function(o,r){o&1&&(h(0,"nav",0)(1,"h3"),b(2,"On this page"),p(),h(3,"ul"),Q(4,oH,3,4,"li",null,ne),p()()),o&2&&(d(4),Z(r.content))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.table-of-contents{margin:0 14px 14px}.table-of-contents h3{font-size:140%;padding:14px 0;position:relative}.table-of-contents h3:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background-color:#e6e6e6;transition:all .3s ease-in-out}@media (min-width: 992px){.table-of-contents h3:before{background-color:#00ab4e}}.table-of-contents ul{padding:0}.table-of-contents ul li{padding:5px 0;list-style:none}.table-of-contents ul li a{font-weight:600;text-decoration:none}.table-of-contents ul li a.table-of-contents__item-H3{font-size:smaller;padding-left:2em;display:flex}.table-of-contents ul li a:hover{text-decoration:underline}@media (min-width: 992px){.table-of-contents{margin:20px 15px}.table-of-contents ul li{padding:14px 0}}@media (min-width: 1200px){.table-of-contents{margin:35px 15px}.table-of-contents ul li{padding:14px 0}} 1739`],encapsulation:2});let e=i;return e})(),bse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Ct]});let e=i;return e})(),_se=(()=>{let i=class i{constructor(){}ngOnInit(){}ngOnChanges(){this.keys=Object.keys(this.records[0])}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-table-simple"]],inputs:{headers:"headers",records:"records",caption:"caption",tableConfig:"tableConfig"},standalone:!1,features:[qe],decls:10,vars:5,consts:[[1,"table-simple"],[1,"table-simple__inner",3,"ngStyle"],[1,"table-simple__caption"],[1,"table-simple__header"],[1,"table-simple__row"],[1,"table-simple__data",3,"innerHtml"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"table",1),y(2,aH,2,1,"caption",2),h(3,"thead")(4,"tr"),Q(5,sH,2,1,"th",3,ne),p()(),h(7,"tbody"),Q(8,cH,3,0,"tr",4,ne),p()()()),o&2&&(d(),f("ngStyle",He(2,rH,r.tableConfig.width?r.tableConfig.width:"auto",r.tableConfig.center?"auto":"")),d(),w(r.caption?2:-1),d(3),Z(r.headers),d(3),Z(r.records))},dependencies:[Kn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.table-simple{width:100%;overflow:auto;max-height:100vh}@media (min-width: 1200px){.table-simple{max-height:100%}}.table-simple__inner{width:100%;border-collapse:collapse}.table-simple__caption{padding:10px 0;text-align:left}.table-simple__header{background:#fff;color:#000;border-top:1px solid #c3c3c3;font-weight:600;padding:11px 10px;text-align:left;position:relative;font-size:14px;position:sticky;top:0;left:0}@media (min-width: 1200px){.table-simple__header{position:static;top:inherit;left:inherit}}.table-simple__row:hover{background-color:#f8f8f8}.table-simple__data{border-top:1px solid #dce6f0;padding:11px 10px;text-align:left;background:#fff;font-size:14px} 1740`],encapsulation:2});let e=i;return e})(),yse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,oy]});let e=i;return e})();var wse=(()=>{let i=class i{constructor(n){this._platformId=n,this.index=0,this.indexChange=new se,this.changeActiveTab=new se,this.hoverToolTip=!1,this.clickToolTip=!1,Ee(this._platformId)&&this.responsive(window.innerWidth),this.getRandomId()}ngOnInit(){setTimeout(()=>{this.tabsElem&&(this.isScrollable=this.tabsElem.nativeElement.scrollWidth>this.tabsElem.nativeElement.clientWidth,this.centreOnSelected())},0)}ngOnChanges(n){!n?.index?.firstChange&&n?.index?.currentValue&&this.tabClick(n.index.currentValue,!1)}onResize(n){this.responsive(n.target.innerWidth),this.isScrollable=this.tabsElem.nativeElement.scrollWidth>this.tabsElem.nativeElement.clientWidth}scrollTabs(n){n==="left"?this.scrollTo(this.tabsElem.nativeElement.scrollLeft-this.tabsElem.nativeElement.clientWidth):this.scrollTo(this.tabsElem.nativeElement.scrollLeft+this.tabsElem.nativeElement.clientWidth)}onScroll(){this.updateArrows()}hoverInfoIcon(n){this.hoverToolTip=!this.hoverToolTip}clickInfoIcon(n){this.clickToolTip=!this.clickToolTip}tabClick(n,o=!0){this.index=n,this.indexChange.emit(n),o&&this.changeActiveTab.emit(this.content.tabData[n].path),this.centreOnSelected()}responsive(n){this.isMobile=n<600,this.isTablet=n<993&&n>=600}getRandomId(){this.id=Math.floor(Math.random()*1e4+1)}updateArrows(){this.hideLeftArrow=!1,this.hideRightArrow=!1;let n=100*this.tabsElem.nativeElement.scrollLeft/(this.tabsElem.nativeElement.scrollWidth-this.tabsElem.nativeElement.clientWidth);n===0?this.hideLeftArrow=!0:n===100&&(this.hideRightArrow=!0)}scrollTo(n){if(this.tabsElem.nativeElement.scrollLeft>n)for(let o=this.tabsElem.nativeElement.scrollLeft||0;o>=n;o-=1)setTimeout(()=>{this.tabsElem.nativeElement.scrollLeft=o},100);else for(let o=this.tabsElem.nativeElement.scrollLeft||0;o<=n;o+=1)setTimeout(()=>{this.tabsElem.nativeElement.scrollLeft=o},100)}centreOnSelected(){setTimeout(()=>{let n=this.tabsElem.nativeElement.querySelector(".tab-selected");this.scrollTo(n.offsetLeft+(n.clientWidth-this.tabsElem.nativeElement.clientWidth)/2)},0)}};i.\u0275fac=function(o){return new(o||i)(I(De))},i.\u0275cmp=N({type:i,selectors:[["fab-tabs-block"]],viewQuery:function(o,r){if(o&1&&It(dH,5),o&2){let a;Se(a=ke())&&(r.tabsElem=a.first)}},hostBindings:function(o,r){o&1&&R("resize",function(s){return r.onResize(s)},bn)},inputs:{content:"content",index:"index"},outputs:{indexChange:"indexChange",changeActiveTab:"changeActiveTab"},standalone:!1,features:[qe],decls:1,vars:1,consts:[["tabs",""],[1,"tabs-block",3,"ngClass"],[1,"tabs-block__title",3,"innerHTML"],[1,"tabs-block__tabs",3,"scroll","id"],[1,"tabs-block__tabs--arrow",3,"ngClass"],["tabindex","0",1,"tabs-block__tabs--tab",3,"innerHTML","ngClass"],["tabindex","0",1,"icon","icon-arrow-left",3,"click","keydown.Enter"],["tabindex","0",1,"tabs-block__tabs--tab",3,"click","keydown.Enter","innerHTML","ngClass"],["tabindex","0",1,"icon","icon-arrow-right",3,"click","keydown.Enter"],[1,"tabs-block__tabs-content"],[1,"tabs-block__tabs-content--tab-text"],[3,"innerHTML"],[1,"tabs-block__tabs-content--tab-image--container"],[1,"tabs-block__tabs-content--tab-image"],[1,"image-tool-tip"],[1,"icon","icon-info",3,"tooltip","positionInput"]],template:function(o,r){o&1&&y(0,_H,9,9,"div",1),o&2&&w(r.content&&r.content.tabData?0:-1)},dependencies:[Ie,Nn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.tabs-block{margin:15px 0}@media (min-width: 992px){.tabs-block{margin:30px 0}}.tabs-block .tab-selected{font-weight:600;color:#00ab4e;border-bottom:4px solid #00ab4e}.tabs-block__title{font-size:22px;margin-bottom:20px;white-space:pre-wrap;
1740font-family:acumin-pro-wide,Arial}@media (min-width: 992px){.tabs-block__title{font-size:25px;margin-bottom:30px}}@media (min-width: 1200px){.tabs-block__title{font-size:32px}}.tabs-block__tabs{border-bottom:1px solid #dce6f0;display:flex;flex-direction:row;z-index:100;position:relative;font-size:11px;-ms-overflow-style:none;overflow:auto}@media (min-width: 992px){.tabs-block__tabs{justify-content:flex-start;font-size:11px}}@media (min-width: 1200px){.tabs-block__tabs{border-top:1px solid #dce6f0;justify-content:flex-start;font-size:14px}}.tabs-block__tabs--tab{padding:10px 15px;text-align:center;cursor:pointer;white-space:nowrap}@media (min-width: 1200px){.tabs-block__tabs--tab{padding:20px 15px}}.tabs-block__tabs--arrow{color:#00ab4e;font-size:28px;position:sticky;top:0;z-index:120;width:30px;line-height:100%;display:flex;justify-content:center;align-items:center}.tabs-block__tabs--arrow-hidden{visibility:hidden}.tabs-block__tabs--arrow i{z-index:1;cursor:pointer}.tabs-block__tabs--arrow:after{content:"";position:absolute;inset:0;pointer-events:none}.tabs-block__tabs--arrow:first-of-type{left:0}.tabs-block__tabs--arrow:first-of-type:after{right:-20px;background:linear-gradient(90deg,#fff 0% 40%,#fff0)}.tabs-block__tabs--arrow:last-of-type{right:0}.tabs-block__tabs--arrow:last-of-type:after{left:-20px;background:linear-gradient(90deg,#fff0,#fff 60% 100%)}.tabs-block__tabs-content{display:flex;flex-direction:column-reverse;flex-wrap:wrap;font-size:14px}@media (min-width: 992px){.tabs-block__tabs-content{flex-direction:row;margin:30px 15px;font-size:16px}}@media (min-width: 1200px){.tabs-block__tabs-content{flex-direction:row;margin:40px 15px;font-size:18px}}.tabs-block__tabs-content--tab-text{width:100%}.tabs-block__tabs-content--tab-text .tab-content{font-size:11px;padding-top:15px}@media (min-width: 992px){.tabs-block__tabs-content--tab-text{width:calc(50% - 15px);padding-right:15px}.tabs-block__tabs-content--tab-text .tab-content{font-size:11px;padding-right:15px}}@media (min-width: 1200px){.tabs-block__tabs-content--tab-text{width:calc(50% - 15px);padding-right:15px}.tabs-block__tabs-content--tab-text .tab-content{font-size:14px;padding-right:15px}}.tabs-block__tabs-content--tab-image{box-sizing:border-box;order:2;background-size:contain;background-repeat:no-repeat;width:100%;height:0;margin-top:10px;margin-bottom:10px;padding-top:50%}@media (min-width: 992px){.tabs-block__tabs-content--tab-image{margin-top:0;margin-bottom:0;padding-top:25%;height:100%}}@media (min-width: 1200px){.tabs-block__tabs-content--tab-image{margin-top:0;margin-bottom:0;padding-top:25%;height:100%}}.tabs-block__tabs-content--tab-image--container{width:100%;position:relative;height:280px}@media (min-width: 992px){.tabs-block__tabs-content--tab-image--container{width:50%}}.tabs-block__tabs-content--tab-image--container .image-tool-tip{position:absolute;top:10px;right:10px}@media (min-width: 992px){.tabs-block__tabs-content--tab-image--container .image-tool-tip{top:0;right:0}}.tabs-block .bubble{position:relative;padding:0;background-color:#000;border-radius:4px;top:10px;width:auto;max-width:calc(100% - 90px);right:30px;min-height:34px;font-size:14px;display:table}.tabs-block .bubble p{margin:5px 10px;color:#fff}@media (min-width: 992px){.tabs-block .bubble{top:15px;font-size:18px}}.tabs-block .bubble:after{content:"";position:absolute;border-style:solid;border-width:5px 0 5px 12px;border-color:transparent #000000;display:block;width:0;z-index:1;right:-12px;top:12px}.tabs-block .icon-info{position:relative;color:#31373e;font-size:20px;right:15px;top:15px;background-color:#fff;border:1px solid #fff;border-radius:50%;height:20px}@media (min-width: 992px){.tabs-block .icon-info{font-size:30px;height:30px}}.tabs-block--reverse-order{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}@media (min-width: 992px){.tabs-block--reverse-order .tabs-block__image{max-width:534px;width:50%;margin-right:0}}.tabs-block--reverse-order .tabs-block__image--tool-tip{-moz-box-orient:horizontal;-webkit-box-orient:horizontal;-ms-box-orient:horizontal;-webkit-flex-direction:row;flex-direction:row;justify-content:flex-end}@media (min-width: 992px){.tabs-block--reverse-order .tabs-block__content{max-width:534px;width:calc(50% - 20px);margin-right:20px}}.tabs-block--reverse-order .bubble{right:30px;left:auto}@media (min-width: 992px){.tabs-block--reverse-order .bubble{top:10px;right:25px;left:auto}}.tabs-block--reverse-order .bubble:after{left:auto;right:-12px;transform:rotate(360deg)}.tabs-block--reverse-order .icon-info{right:10px;left:auto} 1741`],encapsulation:2});let e=i;return e})(),xse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,un]});let e=i;return e})();var SU=(()=>{let i=class i{constructor(n,o){this.gtmService=n,this.isBrowser=Ee(o)}ngAfterViewInit(){this.gtmId&&this.isBrowser&&(this.loadScript("https://www.googletagmanager.com/gtm.js?id="+this.gtmId+"&l=dataLayer"),this.triggerGtmStart())}loadScript(n,o=()=>{}){if(this.isBrowser){let r=document.getElementsByTagName("script")[0],a=document.createElement("script");a.type="text/javascript",a.src=n,a.onload=o,a.defer=!0,r.parentNode.insertBefore(a,r)}}triggerGtmStart(){this.gtmService.push({"gtm.start":new Date().getTime(),event:"gtm.js"})}};i.\u0275fac=function(o){return new(o||i)(I(Ft),I(De))},i.\u0275dir=ce({type:i,selectors:[["","fab-gtm",""]],inputs:{gtmId:[0,"fab-gtm","gtmId"]},standalone:!1,features:[Te([])]});let e=i;return e})(),kU=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({providers:[Ft],imports:[J]});let e=i;return e})(),Sse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["app-two-blocks"]],inputs:{content:"content"},standalone:!1,decls:8,vars:5,consts:[[1,"two-blocks-component"],[1,"two-blocks-component__block","block-one"],[3,"innerHTML"],[1,"two-blocks-component__block","block-two"]
1741],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1),y(2,yH,1,1,"div",2),y(3,wH,1,1,"div",2),p(),h(4,"div",3),y(5,xH,1,1,"div",2),y(6,SH,1,1,"div",2),y(7,kH,1,1,"div",2),p()()),o&2&&(d(2),w(r.content.title1?2:-1),d(),w(r.content.text1?3:-1),d(2),w(r.content.title2?5:-1),d(),w(r.content.contact?6:-1),d(),w(r.content.text2?7:-1))},styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.two-blocks-component{overflow:hidden;width:100%;margin-left:auto;margin-right:auto}.two-blocks-component__block{box-sizing:border-box;padding:1em 2em;float:none;width:100%}.two-blocks-component__block p{font-size:1.5em;line-height:1.2em}.two-blocks-component__block p.bold{font-weight:600}.two-blocks-component__block p.minor{font-size:1em}.two-blocks-component__block h4{font-size:18px;color:#fff;line-height:1.5}.two-blocks-component__block.block-one{color:#000;background-color:#f8f8f8;width:95%;font-size:1.2em;padding-bottom:4em}.two-blocks-component__block.block-one h1{line-height:1.2;font-size:34px}.two-blocks-component__block.block-one h2{line-height:1.2;font-size:30px}.two-blocks-component__block.block-two{color:#fff;background-color:#00ab4e;padding-bottom:45px;padding-top:30px;min-height:250px}.two-blocks-component__block.block-two h4 a,.two-blocks-component__block.block-two h4 a:hover{color:#fff}.two-blocks-component__block.block-two p{color:#fff;line-height:1.5}@media (min-width: 992px){.two-blocks-component{display:flex}.two-blocks-component__block{align-self:flex-end;float:left}.two-blocks-component__block p{line-height:1.5em}.two-blocks-component__block h4{font-size:20px}.two-blocks-component__block.block-one{min-height:340px;width:60%;margin-right:-10%;padding:50px 11%}.two-blocks-component__block.block-one h1{font-size:39px}.two-blocks-component__block.block-one h2{font-size:34px}.two-blocks-component__block.block-two{min-height:270px;width:50%;margin-top:3%;padding-bottom:20px;padding-top:30px}}@media (min-width: 1200px){.two-blocks-component__block h4{font-size:24px}.two-blocks-component__block.block-one{padding-left:13%}.two-blocks-component__block.block-one h1{font-size:57px}.two-blocks-component__block.block-one h2{font-size:39px}.two-blocks-component__block.block-two{padding-bottom:60px;padding-top:30px}} 1742`],encapsulation:2});let e=i;return e})(),kse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J]});let e=i;return e})(),Ese=(()=>{let i=class i{set content(n){this._content=n}get content(){return this._content}ngOnInit(){this.content.primaryButton&&(this.secondaryButtonInterface={text:this.content.primaryButton.text,type:"secondary",action:{type:"link",link:this.content.primaryButton.link,openInNewTab:this.content.primaryButton.openInNewTab,useRouterLink:!1},aria:`${this.content.primaryButton.link}`}),this.content.secondaryButton&&(this.primaryButtonInterface={text:this.content.secondaryButton.text,type:"primary",action:{type:"link",link:this.content.secondaryButton.link,openInNewTab:this.content.secondaryButton.openInNewTab,useRouterLink:!1},aria:`${this.content.secondaryButton.link}`}),this.youtubeInterface={videoId:this.content.videoId}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=N({type:i,selectors:[["fab-video-blocks"]],inputs:{content:"content"},standalone:!1,decls:19,vars:6,consts:[[1,"video-blocks"],[1,"row"],[1,"col-xs-12","col-md-5"],[1,"video-blocks__title"],[3,"innerHTML"],[1,"col-xs-12","col-md-7","iframe-col"],[1,"video-blocks__video"],[3,"config"],[1,"col-sm-6","col-xs-12"],[1,"video-blocks__primary-content"],[3,"button"],[1,"video-blocks__secondary-content"]],template:function(o,r){o&1&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),x(4,"h2",4),p()(),h(5,"div",5)(6,"div",6),x(7,"fab-video",7),p()()(),h(8,"div",1)(9,"div",8)(10,"div",9)(11,"h2"),b(12),p(),y(13,EH,1,1,"fab-button",10),p()(),h(14,"div",8)(15,"div",11)(16,"p"),b(17),p(),y(18,TH,1,1,"fab-button",10),p()()()()),o&2&&(d(4),f("innerHTML",r.content.titleBlock,te),d(3),f("config",r.youtubeInterface),d(5),A(r.content.primaryText),d(),w(r.content.primaryButton?13:-1),d(4),A(r.content.secondaryText),d(),w(r.content.secondaryButton?18:-1))},dependencies:[Ve,cm],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.video-blocks__title{padding:3em 1em .1em}.video-blocks__title h2{margin-bottom:10px}.video-blocks__video{width:100%}.video-blocks__primary-content{background-color:#00ab4e;padding:1em 1em 2.75em}.video-blocks__primary-content h2{margin-top:0;margin-bottom:25px;color:#000}.video-blocks__secondary-content{padding:1.5em 1.5em 1.5em 1em;margin-top:-20px;bottom:3em;margin-left:1em;background-color:#fff}.video-blocks__secondary-content p{font-weight:400;margin-top:10px;white-space:pre-wrap}@media (min-width: 768px){.video-blocks__title{padding:3em 0 .1em 36px}.video-blocks__video{width:calc(100% - 36px);padding-left:36px}.video-blocks__primary-content{margin-top:-50px;padding:80px 35px 1em}.video-blocks__secondary-content{margin-top:0}}@media (min-width: 992px){.video-blocks__title{padding:0 1em 2em;width:100%}.video-blocks__title h2{width:100%;min-height:120px}.video-blocks__video{position:absolute;top:0;right:0;width:95%}.video-blocks__primary-content{padding:2em 7em 1em 3em;margin-top:0}.video-blocks__primary-content h2{margin-bottom:20px}.video-blocks__secondary-content{margin-top:0;padding:5em 1em 0;position:inherit}.video-blocks__secondary-content p{padding-top:17%;margin-top:2em}}@media (min-width: 1200px){.video-blocks__primary-content{padding:2em 3em 1em}}.iframe-col{position:relative} 1743`],encapsulation:2});let e=i;return e})(),Tse=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[J,Fs,Ve,dm]});let e=i;return e})();var Ise=(e,i)=>{let t=F(Ze),n=e.data.featureFlag,o=F(Eo);return F(om).getFeature(n).pipe(it(r=>!r||r.enabled?W(!0):o.getCurrentUser().pipe(Ot(1),it(a=>{let s=["admin","staff","third-party-partner"];return a["cognito:groups"].some(c=>s.includes(c))?(alert("This service is currently disabled for all non AAT staff or trusted third-party users"),W(!0)):(r.redirectTo&&i.url!==r.redirectTo&&(t.location.href=r.redirectTo??"/myaat/dashboards"),W(!1))}),ye(()=>(t.location.href=r.redirectTo??"/myaat/dashboards",W(!1))))),ye(r=>(console.error("Error reading configuration:",r),W(!0))))};var Mse=(()=>{let i=class i{constructor(n,o,r,a,s,l,c,u,m,v){this.document=n,this.footerContentService=o,this.authService=r,this.cdRef=a,this.headerService=s,this.cmsContentService=l,this.router=c,this.route=u,this.platformId=m,this.config=v,this.layoutSetup=F(au),this.loggedInNavContentService=F(nm),this.rumService=F(ly),this.isUserAuth=!1,this.khLeftN
1743avData=this.loggedInNavContentService.khLeftNavData,this.navOpened=!1,this.rightPaneOpened$=this.headerService.rightPaneOpened$,this.header={showLeftNav:this.layoutSetup.layoutProperties.showLeftNav,showBreadcrumbs:!1,userLinks:{loginLink:{label:"Log in",link:"/myaat/login"},registerLink:{label:"Register",link:"/registration/register-with-aat"}}},this.loggedInUserData={menuItems:[{title:"Profile and account",link:"/myaat/aabddhorss"},{title:"Edit my details",link:"/my-account/edit-details"},{title:"Pay outstanding fees",link:"/my-account/pay-fees"},{title:"My payment history",link:"/my-account/payment-history"}]},this.router.events.pipe(Ci(C=>C instanceof Yt),G(()=>this.route.snapshot),G(C=>{for(;C.firstChild;)C=C.firstChild;return C})).subscribe(C=>{this.rumService.recordPageView(XH(this.router.url)),this.notifications=void 0,C.data.notificationLocation&&this.cmsContentService.getNotifications(C.data.notificationLocation).subscribe({next:_=>{this.notifications=_},error:_=>{_.status!==404&&console.error(_)}})})}ngOnInit(){this.setupHeader(),this.authService.authenticationChanged$.subscribe(n=>{this.isUserAuth=n,this.layoutSetup.layoutProperties.showLeftNav&&this.isUserAuth?this.loggedInNavContentService.getLoggedInNavContent().subscribe({next:o=>{this._configureTags(),this.khLeftNavData=o},error:o=>{this._configureTags(),console.log(o)}}):this._configureTags()}),this.authService.userLoggedOut$.subscribe(n=>{n&&(this.document.location.href=this.layoutSetup.layoutProperties.logoutRedirect)}),this.footerContent=this.footerContentService.getFooterContent(),this.searchContent={siteBaseUrl:this.layoutSetup.layoutProperties.siteBaseUrl}}onNavIsOpened(n){this.navOpened=n&&this.isUserAuth}setupHeader(){this.layoutSetup.layoutProperties.headerLinks=this.layoutSetup.layoutProperties.headerLinks?this.layoutSetup.layoutProperties.headerLinks:this.setUpLinks()}setUpLinks(){return[{link:"/career-in-finance",label:"Career in finance",active:!1,isRouterLink:!1},{link:"/qualifications-and-courses",label:"Qualifications and courses",active:!1,isRouterLink:!1},{link:"/apprenticeships",label:"Apprenticeships",active:!1,isRouterLink:!1},{link:"/membership",label:"Membership",active:!1,isRouterLink:!1},{link:"/businesses-employers",label:"Businesses and employers",active:!1,isRouterLink:!1},{link:"/about",label:"About AAT",active:!1,isRouterLink:!1}]}ngAfterViewChecked(){this.cdRef.detectChanges()}_configureTags(){if(Ee(this.platformId)){let n=this.document.createElement("script");n.type="text/javascript",n.src=this.layoutSetup.layoutProperties.abTasty,n.async=!0,this.document.head.insertBefore(n,this.document.head.firstChild);let o=this.document.createElement("script");o.src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",o.type="text/javascript",o.charset="UTF-8",o.setAttribute("data-domain-script",this.layoutSetup.layoutProperties.oneTrust),window.__onRumConsent=s=>{let l=ly.hasAnalyticsConsent(s);this.rumService.rum?this.rumService.updateCookieConsent(l):this.rumService.init(this.layoutSetup.layoutProperties.rum,l)};let r=this.document.createElement("script");r.type="text/javascript",r.text='function OptanonWrapper() { if (window.__onRumConsent) { window.__onRumConsent(window.OnetrustActiveGroups || ""); } }',this.document.head.appendChild(o),this.document.head.appendChild(r);let a=this.document.createElement("script");a.src=`//js-eu1.hs-scripts.com/${this.layoutSetup.layoutProperties.hsId}.js`,a.type="text/javascript",a.defer=!0,a.async=!0,a.id="hs-script-loader",this.document.head.appendChild(a)}}};i.\u0275fac=function(o){return new(o||i)(I(Ze),I(im),I(Eo),I(_i),I(ya),I(fi),I(rt),I(Lt),I(De),I("fabricServicesConfig"))},i.\u0275cmp=N({type:i,selectors:[["app-full-layout"]],standalone:!1,decls:12,vars:13,consts:[[1,"layout-wrapper",3,"ngClass"],[3,"content"],[1,"header2",3,"fab-gtm"],[1,"main-panel"],[1,"main-content"],[1,"content-wrapper"],[1,"container-fluid"],[3,"isNotificationOpen","notification"],[3,"navIsOpened","content"]],template:function(o,r){o&1&&(h(0,"div",0),Y(1,"async"),y(2,MH,1,1,"fab-logged-in-nav",1),y(3,DH,1,1,"fab-header",2),h(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),Q(8,PH,1,2,"fab-notification",7,ne),x(10,"router-outlet"),p()(),y(11,RH,1,1,"fab-footer",1),p()()()),o&2&&(f("ngClass",Vm(6,IH,r.isUserAuth,r.navOpened,!r.navOpened,!r.layoutSetup.layoutProperties.showLeftNav,r.layoutSetup.layoutProperties.showLeftNav,me(1,4,r.rightPaneOpened$))),d(2),w(r.layoutSetup.layoutProperties.showLeftNav&&r.isUserAuth?2:-1),d(),w(r.layoutSetup.layoutProperties.showHeader?3:-1),d(5),Z(r.notifications),d(3),w(r.layoutSetup.layoutProperties.showFooter?11:-1))},dependencies:[uU,XG,vU,Ka,Ie,SU,sm,Qn],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.layout-wrapper{display:flex;flex-direction:column;max-width:100%}.layout-wrapper .cookie-banner-margin{background-color:#31373e;padding-bottom:164px}@media (min-width: 992px){.layout-wrapper .cookie-banner-margin{padding-bottom:153px}}@media (min-width: 1200px){.layout-wrapper .cookie-banner-margin{padding-bottom:135px}}.layout-wrapper.right-pane-opened{margin-left:-260px;margin-right:260px}@media (min-width: 992px){.layout-wrapper.right-pane-opened{margin-left:0;margin-right:0}}.layout-wrapper.nav-opened.show-left-nav.user-logged-in .main-panel .main-content{padding-left:0}@media (min-width: 992px){.layout-wrapper.nav-opened.show-left-nav.user-logged-in .main-panel .main-content{padding-left:260px}}.layout-wrapper.nav-collapsed.show-left-nav.user-logged-in .main-panel .main-content{padding-left:0}@media (min-width: 992px){.layout-wrapper.nav-collapsed.show-left-nav.user-logged-in .main-panel .main-content{padding-left:68px}}.main-panel div .footer{border-top:1px solid #e7e7e7}.container-fluid{padding-left:0;padding-right:0}.header2,.header2 *{box-sizing:content-box}.header2{width:100%;z-index:1000;background-color:#fff;position:sticky;max-height:180px;max-width:100vw;top:0} 1744`],encapsulation:2});let e=i;return e})(),Dse=(()=>{let i=class i{static forRoot(n){return{ngModule:i,providers:[im,nm,au,{provide:"FullLayoutConfig",useValue:n}]}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=z({type:i}),i.\u0275inj=V({imports:[pU,Jx,tU,CU,Zx,Ct,J,kU,cu]});let e=i;return e})();export{Lt as a,Ka as b,rt as c,IS as d,MS as e,DS as f,Ct as g,uK as h,no as i,et as j,Ko as k,en as l,En as m,mc as n,vc as o,Ip as p,oo as q,Zo as r,iW as s,PW as t,qv as u,JY as v,Cae as w,bae as x,ko as y,Ft as z,Jg as A,Xg as B,fi as C,_ae as D,eG as E,yae as F,Ve as G,oG as H,su as I,wae as J,gG as K,rm as L,xae as M,lu as N,sm as O,cu as P,Nn as Q,un as R,Hx as S,lm as T,Sae as U,OG as V,LG as W,kae as X,Eae as Y,Tae as Z,Iae as _,cm as $,Mae as aa,dm as ba,Dae as ca,Pae as da,Rae as ea,Fae as fa,Aae as ga,Oae as ha,Lae as ia,Nae as ja,Vae as ka,zae as la,Bae as ma,Hae as na,Wx as oa,Gae as pa,$x as qa,Uae as ra,jae as sa,Wae as ta,$ae as ua,qae as va,hU as wa,Yae as xa,gU as ya,Kae as za,Qae as Aa,Zae as Ba,Jae as Ca,Xae as Da,ese as Ea,tse as Fa,ise as Ga,nse as Ha,ose as Ia,rse as Ja,ase as Ka,sse as La,lse as Ma,cse as Na,dse as Oa,use as Pa,pse as Qa,hse as Ra,gse as Sa,mse as Ta,fse as Ua,vse as Va,Cse as Wa,bse as Xa,_se as Ya,yse as Za,wse as _a,xse as $a,Sse as ab,kse as bb,Ese as cb,Tse as db,Ise as eb,Mse as fb,Dse as gb};
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.