@letscooee/web-sdk 9.3.9 → 9.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var ih=Object.create,wc=Object.defineProperty,oh=Object.defineProperties,sh=Object.getOwnPropertyDescriptor,ah=Object.getOwnPropertyDescriptors,ch=Object.getOwnPropertyNames,Qu=Object.getOwnPropertySymbols,lh=Object.getPrototypeOf,ep=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable,Zu=(t,e,r)=>e in t?wc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||={})ep.call(e,r)&&Zu(t,r,e[r]);if(Qu)for(var r of Qu(e))uh.call(e,r)&&Zu(t,r,e[r]);return t},Z=(t,e)=>oh(t,ah(e)),Gi=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),Vi=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ph=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ch(e))!ep.call(t,i)&&i!==r&&wc(t,i,{get:()=>e[i],enumerable:!(n=sh(e,i))||n.enumerable});return t},Jt=(t,e,r)=>(r=t!=null?ih(lh(t)):{},ph(e||!t||!t.__esModule?wc(r,"default",{value:t,enumerable:!0}):r,t)),tn=Vi((t,e)=>{"use strict";(function(r){"use strict";var n={};n.VERSION="1.6.1";var i,s={},o=function(h,v){return function(){return v.apply(h,arguments)}},c=function(){var h=arguments,v=h[0],_,m;for(m=1;m<h.length;m++)for(_ in h[m])!(_ in v)&&h[m].hasOwnProperty(_)&&(v[_]=h[m][_]);return v},u=function(h,v){return{value:h,name:v}};n.TRACE=u(1,"TRACE"),n.DEBUG=u(2,"DEBUG"),n.INFO=u(3,"INFO"),n.TIME=u(4,"TIME"),n.WARN=u(5,"WARN"),n.ERROR=u(8,"ERROR"),n.OFF=u(99,"OFF");var f=function(h){this.context=h,this.setLevel(h.filterLevel),this.log=this.info};f.prototype={setLevel:function(h){h&&"value"in h&&(this.context.filterLevel=h)},getLevel:function(){return this.context.filterLevel},enabledFor:function(h){var v=this.context.filterLevel;return h.value>=v.value},trace:function(){this.invoke(n.TRACE,arguments)},debug:function(){this.invoke(n.DEBUG,arguments)},info:function(){this.invoke(n.INFO,arguments)},warn:function(){this.invoke(n.WARN,arguments)},error:function(){this.invoke(n.ERROR,arguments)},time:function(h){typeof h=="string"&&h.length>0&&this.invoke(n.TIME,[h,"start"])},timeEnd:function(h){typeof h=="string"&&h.length>0&&this.invoke(n.TIME,[h,"end"])},invoke:function(h,v){i&&this.enabledFor(h)&&i(v,c({level:h},this.context))}};var g=new f({filterLevel:n.OFF});(function(){var h=n;h.enabledFor=o(g,g.enabledFor),h.trace=o(g,g.trace),h.debug=o(g,g.debug),h.time=o(g,g.time),h.timeEnd=o(g,g.timeEnd),h.info=o(g,g.info),h.warn=o(g,g.warn),h.error=o(g,g.error),h.log=h.info})(),n.setHandler=function(h){i=h},n.setLevel=function(h){g.setLevel(h);for(var v in s)s.hasOwnProperty(v)&&s[v].setLevel(h)},n.getLevel=function(){return g.getLevel()},n.get=function(h){return s[h]||(s[h]=new f(c({name:h},g.context)))},n.createDefaultHandler=function(h){h=h||{},h.formatter=h.formatter||function(m,y){y.name&&m.unshift("["+y.name+"]")};var v={},_=function(m,y){Function.prototype.apply.call(m,console,y)};return typeof console>"u"?function(){}:function(m,y){m=Array.prototype.slice.call(m);var T=console.log,O;y.level===n.TIME?(O=(y.name?"["+y.name+"] ":"")+m[0],m[1]==="start"?console.time?console.time(O):v[O]=new Date().getTime():console.timeEnd?console.timeEnd(O):_(T,[O+": "+(new Date().getTime()-v[O])+"ms"])):(y.level===n.WARN&&console.warn?T=console.warn:y.level===n.ERROR&&console.error?T=console.error:y.level===n.INFO&&console.info?T=console.info:y.level===n.DEBUG&&console.debug?T=console.debug:y.level===n.TRACE&&console.trace&&(T=console.trace),h.formatter(m,y),_(T,m))}},n.useDefaults=function(h){n.setLevel(h&&h.defaultLevel||n.DEBUG),n.setHandler(n.createDefaultHandler(h))},n.setDefaults=n.useDefaults,typeof define=="function"&&define.amd?define(n):typeof e<"u"&&e.exports?e.exports=n:(n._prevLogger=r.Logger,n.noConflict=function(){return r.Logger=n._prevLogger,n},r.Logger=n)})(t)}),Bp=Vi((t,e)=>{"use strict";(function(r,n){"use strict";var i="1.0.40",s="",o="?",c="function",u="undefined",f="object",g="string",h="major",v="model",_="name",m="type",y="vendor",T="version",O="architecture",H="console",R="mobile",k="tablet",V="smarttv",Ut="wearable",de="embedded",j=500,ot="Amazon",J="Apple",st="ASUS",Xt="BlackBerry",me="Browser",pe="Chrome",Ce="Edge",be="Firefox",Bt="Google",Te="Huawei",pt="LG",Q="Microsoft",we="Motorola",cr="Opera",jr="Samsung",ke="Sharp",en="Sony",Hn="Xiaomi",kn="Zebra",Hi="Facebook",Wi="Chromium OS",ji="Mac OS",Mn=" Browser",Pe=function(z,ft){var Y={};for(var ie in z)ft[ie]&&ft[ie].length%2===0?Y[ie]=ft[ie].concat(z[ie]):Y[ie]=z[ie];return Y},Wr=function(z){for(var ft={},Y=0;Y<z.length;Y++)ft[z[Y].toUpperCase()]=z[Y];return ft},rs=function(z,ft){return typeof z===g?a(ft).indexOf(a(z))!==-1:!1},a=function(z){return z.toLowerCase()},l=function(z){return typeof z===g?z.replace(/[^\d\.]/g,s).split(".")[0]:n},p=function(z,ft){if(typeof z===g)return z=z.replace(/^\s\s*/,s),typeof ft===u?z:z.substring(0,j)},I=function(z,ft){for(var Y=0,ie,$e,Me,re,X,He;Y<ft.length&&!X;){var As=ft[Y],Yo=ft[Y+1];for(ie=$e=0;ie<As.length&&!X&&As[ie];)if(X=As[ie++].exec(z),X)for(Me=0;Me<Yo.length;Me++)He=X[++$e],re=Yo[Me],typeof re===f&&re.length>0?re.length===2?typeof re[1]==c?this[re[0]]=re[1].call(this,He):this[re[0]]=re[1]:re.length===3?typeof re[1]===c&&!(re[1].exec&&re[1].test)?this[re[0]]=He?re[1].call(this,He,re[2]):n:this[re[0]]=He?He.replace(re[1],re[2]):n:re.length===4&&(this[re[0]]=He?re[3].call(this,He.replace(re[1],re[2])):n):this[re]=He||n;Y+=2}},N=function(z,ft){for(var Y in ft)if(typeof ft[Y]===f&&ft[Y].length>0){for(var ie=0;ie<ft[Y].length;ie++)if(rs(ft[Y][ie],z))return Y===o?n:Y}else if(rs(ft[Y],z))return Y===o?n:Y;return ft.hasOwnProperty("*")?ft["*"]:z},L={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},W={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"},te={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[T,[_,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[T,[_,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[_,T],[/opios[\/ ]+([\w\.]+)/i],[T,[_,cr+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[T,[_,cr+" GX"]],[/\bopr\/([\w\.]+)/i],[T,[_,cr]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[T,[_,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[T,[_,"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],[_,T],[/quark(?:pc)?\/([-\w\.]+)/i],[T,[_,"Quark"]],[/\bddg\/([\w\.]+)/i],[T,[_,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[T,[_,"UC"+me]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[T,[_,"WeChat"]],[/konqueror\/([\w\.]+)/i],[T,[_,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[T,[_,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[T,[_,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[T,[_,"Smart Lenovo "+me]],[/(avast|avg)\/([\w\.]+)/i],[[_,/(.+)/,"$1 Secure "+me],T],[/\bfocus\/([\w\.]+)/i],[T,[_,be+" Focus"]],[/\bopt\/([\w\.]+)/i],[T,[_,cr+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[T,[_,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[T,[_,"Dolphin"]],[/coast\/([\w\.]+)/i],[T,[_,cr+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[T,[_,"MIUI"+Mn]],[/fxios\/([\w\.-]+)/i],[T,[_,be]],[/\bqihoobrowser\/?([\w\.]*)/i],[T,[_,"360"]],[/\b(qq)\/([\w\.]+)/i],[[_,/(.+)/,"$1Browser"],T],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[_,/(.+)/,"$1"+Mn],T],[/samsungbrowser\/([\w\.]+)/i],[T,[_,jr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[T,[_,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[_,"Sogou Mobile"],T],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[_,T],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[_],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[T,_],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[_,Hi],T],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\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],[_,T],[/\bgsa\/([\w\.]+) .*safari\//i],[T,[_,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[T,[_,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[T,[_,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[_,pe+" WebView"],T],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[T,[_,"Android "+me]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[_,T],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[T,[_,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[T,_],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[_,[T,N,L]],[/(webkit|khtml)\/([\w\.]+)/i],[_,T],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[_,"Netscape"],T],[/(wolvic|librewolf)\/([\w\.]+)/i],[_,T],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[T,[_,be+" 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,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[_,[T,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[_,[T,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,a]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[O,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[O,"armhf"]],[/windows (ce|mobile); ppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[O,/ower/,s,a]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[O,a]]],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],[v,[y,jr],[m,k]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[y,jr],[m,R]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[y,J],[m,R]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[y,J],[m,k]],[/(macintosh);/i],[v,[y,J]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[y,ke],[m,R]],[/(?:honor)([-\w ]+)[;\)]/i],[v,[y,"Honor"],[m,R]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[y,Te],[m,k]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[y,Te],[m,R]],[/\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],[[v,/_/g," "],[y,Hn],[m,R]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[y,Hn],[m,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[y,"OPPO"],[m,R]],[/\b(opd2\d{3}a?) bui/i],[v,[y,"OPPO"],[m,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[y,"Vivo"],[m,R]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[y,"Realme"],[m,R]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[y,we],[m,R]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[y,we],[m,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[y,pt],[m,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[y,pt],[m,R]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[y,"Lenovo"],[m,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[y,"Nokia"],[m,R]],[/(pixel c)\b/i],[v,[y,Bt],[m,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[y,Bt],[m,R]],[/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],[v,[y,en],[m,R]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[y,en],[m,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[y,"OnePlus"],[m,R]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[y,ot],[m,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[y,ot],[m,R]],[/(playbook);[-\w\),; ]+(rim)/i],[v,y,[m,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[y,Xt],[m,R]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[y,st],[m,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[y,st],[m,R]],[/(nexus 9)/i],[v,[y,"HTC"],[m,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[y,[v,/_/g," "],[m,R]],[/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],[v,[y,"TCL"],[m,k]],[/(itel) ((\w+))/i],[[y,a],v,[m,N,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[y,"Acer"],[m,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[y,"Meizu"],[m,R]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[y,"Ulefone"],[m,R]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[v,[y,"Energizer"],[m,R]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[v,[y,"Cat"],[m,R]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[v,[y,"Smartfren"],[m,R]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[y,"Nothing"],[m,R]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[y,v,[m,R]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/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],[y,v,[m,k]],[/(surface duo)/i],[v,[y,Q],[m,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[y,"Fairphone"],[m,R]],[/(u304aa)/i],[v,[y,"AT&T"],[m,R]],[/\bsie-(\w*)/i],[v,[y,"Siemens"],[m,R]],[/\b(rct\w+) b/i],[v,[y,"RCA"],[m,k]],[/\b(venue[\d ]{2,7}) b/i],[v,[y,"Dell"],[m,k]],[/\b(q(?:mv|ta)\w+) b/i],[v,[y,"Verizon"],[m,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[y,"Barnes & Noble"],[m,k]],[/\b(tm\d{3}\w+) b/i],[v,[y,"NuVision"],[m,k]],[/\b(k88) b/i],[v,[y,"ZTE"],[m,k]],[/\b(nx\d{3}j) b/i],[v,[y,"ZTE"],[m,R]],[/\b(gen\d{3}) b.+49h/i],[v,[y,"Swiss"],[m,R]],[/\b(zur\d{3}) b/i],[v,[y,"Swiss"],[m,k]],[/\b((zeki)?tb.*\b) b/i],[v,[y,"Zeki"],[m,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[y,"Dragon Touch"],v,[m,k]],[/\b(ns-?\w{0,9}) b/i],[v,[y,"Insignia"],[m,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[y,"NextBook"],[m,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],v,[m,R]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],v,[m,R]],[/\b(ph-1) /i],[v,[y,"Essential"],[m,R]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[y,"Envizen"],[m,k]],[/\b(trio[-\w\. ]+) b/i],[v,[y,"MachSpeed"],[m,k]],[/\btu_(1491) b/i],[v,[y,"Rotor"],[m,k]],[/(shield[\w ]+) b/i],[v,[y,"Nvidia"],[m,k]],[/(sprint) (\w+)/i],[y,v,[m,R]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[y,Q],[m,R]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[y,kn],[m,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[y,kn],[m,R]],[/smart-tv.+(samsung)/i],[y,[m,V]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[y,jr],[m,V]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,pt],[m,V]],[/(apple) ?tv/i],[y,[v,J+" TV"],[m,V]],[/crkey/i],[[v,pe+"cast"],[y,Bt],[m,V]],[/droid.+aft(\w+)( bui|\))/i],[v,[y,ot],[m,V]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[y,ke],[m,V]],[/(bravia[\w ]+)( bui|\))/i],[v,[y,en],[m,V]],[/(mitv-\w{5}) bui/i],[v,[y,Hn],[m,V]],[/Hbbtv.*(technisat) (.*);/i],[y,v,[m,V]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[y,p],[v,p],[m,V]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,V]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,v,[m,H]],[/droid.+; (shield) bui/i],[v,[y,"Nvidia"],[m,H]],[/(playstation [345portablevi]+)/i],[v,[y,en],[m,H]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[y,Q],[m,H]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[y,jr],[m,Ut]],[/((pebble))app/i],[y,v,[m,Ut]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[y,J],[m,Ut]],[/droid.+; (glass) \d/i],[v,[y,Bt],[m,Ut]],[/droid.+; (wt63?0{2,3})\)/i],[v,[y,kn],[m,Ut]],[/droid.+; (glass) \d/i],[v,[y,Bt],[m,Ut]],[/(pico) (4|neo3(?: link|pro)?)/i],[y,v,[m,Ut]],[/; (quest( \d| pro)?)/i],[v,[y,Hi],[m,Ut]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[m,de]],[/(aeobc)\b/i],[v,[y,ot],[m,de]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[m,R]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[m,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,R]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[T,[_,Ce+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[_,T],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[T,[_,"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],[_,T],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[T,_]],os:[[/microsoft (windows) (vista|xp)/i],[_,T],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[_,[T,N,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[T,N,W],[_,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[T,/_/g,"."],[_,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[_,ji],[T,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[T,_],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[_,T],[/\(bb(10);/i],[T,[_,Xt]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[T,[_,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[T,[_,be+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[T,[_,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[T,[_,"watchOS"]],[/crkey\/([\d\.]+)/i],[T,[_,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[_,Wi],T],[/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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[_,T],[/(sunos) ?([\w\.\d]*)/i],[[_,"Solaris"],T],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[_,T]]},bt=function(z,ft){if(typeof z===f&&(ft=z,z=n),!(this instanceof bt))return new bt(z,ft).getResult();var Y=typeof r!==u&&r.navigator?r.navigator:n,ie=z||(Y&&Y.userAgent?Y.userAgent:s),$e=Y&&Y.userAgentData?Y.userAgentData:n,Me=ft?Pe(te,ft):te,re=Y&&Y.userAgent==ie;return this.getBrowser=function(){var X={};return X[_]=n,X[T]=n,I.call(X,ie,Me.browser),X[h]=l(X[T]),re&&Y&&Y.brave&&typeof Y.brave.isBrave==c&&(X[_]="Brave"),X},this.getCPU=function(){var X={};return X[O]=n,I.call(X,ie,Me.cpu),X},this.getDevice=function(){var X={};return X[y]=n,X[v]=n,X[m]=n,I.call(X,ie,Me.device),re&&!X[m]&&$e&&$e.mobile&&(X[m]=R),re&&X[v]=="Macintosh"&&Y&&typeof Y.standalone!==u&&Y.maxTouchPoints&&Y.maxTouchPoints>2&&(X[v]="iPad",X[m]=k),X},this.getEngine=function(){var X={};return X[_]=n,X[T]=n,I.call(X,ie,Me.engine),X},this.getOS=function(){var X={};return X[_]=n,X[T]=n,I.call(X,ie,Me.os),re&&!X[_]&&$e&&$e.platform&&$e.platform!="Unknown"&&(X[_]=$e.platform.replace(/chrome os/i,Wi).replace(/macos/i,ji)),X},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 ie},this.setUA=function(X){return ie=typeof X===g&&X.length>j?p(X,j):X,this},this.setUA(ie),this};bt.VERSION=i,bt.BROWSER=Wr([_,T,h]),bt.CPU=Wr([O]),bt.DEVICE=Wr([v,y,m,H,R,V,k,Ut,de]),bt.ENGINE=bt.OS=Wr([_,T]),typeof t!==u?(typeof e!==u&&e.exports&&(t=e.exports=bt),t.UAParser=bt):typeof define===c&&define.amd?define(function(){return bt}):typeof r!==u&&(r.UAParser=bt);var Ct=typeof r!==u&&(r.jQuery||r.Zepto);if(Ct&&!Ct.ua){var le=new bt;Ct.ua=le.getResult(),Ct.ua.get=function(){return le.getUA()},Ct.ua.set=function(z){le.setUA(z);var ft=le.getResult();for(var Y in ft)Ct.ua[Y]=ft[Y]}}})(typeof window=="object"?window:t)}),kp=Vi((t,e)=>{"use strict";(function(r){if(typeof t=="object"&&typeof e<"u")e.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.localforage=r()}})(function(){var r,n,i;return function s(o,c,u){function f(v,_){if(!c[v]){if(!o[v]){var m=typeof Gi=="function"&&Gi;if(!_&&m)return m(v,!0);if(g)return g(v,!0);var y=new Error("Cannot find module '"+v+"'");throw y.code="MODULE_NOT_FOUND",y}var T=c[v]={exports:{}};o[v][0].call(T.exports,function(O){var H=o[v][1][O];return f(H||O)},T,T.exports,s,o,c,u)}return c[v].exports}for(var g=typeof Gi=="function"&&Gi,h=0;h<u.length;h++)f(u[h]);return f}({1:[function(s,o,c){(function(u){"use strict";var f=u.MutationObserver||u.WebKitMutationObserver,g;if(f){var h=0,v=new f(O),_=u.document.createTextNode("");v.observe(_,{characterData:!0}),g=function(){_.data=h=++h%2}}else if(!u.setImmediate&&typeof u.MessageChannel<"u"){var m=new u.MessageChannel;m.port1.onmessage=O,g=function(){m.port2.postMessage(0)}}else"document"in u&&"onreadystatechange"in u.document.createElement("script")?g=function(){var R=u.document.createElement("script");R.onreadystatechange=function(){O(),R.onreadystatechange=null,R.parentNode.removeChild(R),R=null},u.document.documentElement.appendChild(R)}:g=function(){setTimeout(O,0)};var y,T=[];function O(){y=!0;for(var R,k,V=T.length;V;){for(k=T,T=[],R=-1;++R<V;)k[R]();V=T.length}y=!1}o.exports=H;function H(R){T.push(R)===1&&!y&&g()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(s,o,c){"use strict";var u=s(1);function f(){}var g={},h=["REJECTED"],v=["FULFILLED"],_=["PENDING"];o.exports=m;function m(j){if(typeof j!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,j!==f&&H(this,j)}m.prototype.catch=function(j){return this.then(null,j)},m.prototype.then=function(j,ot){if(typeof j!="function"&&this.state===v||typeof ot!="function"&&this.state===h)return this;var J=new this.constructor(f);if(this.state!==_){var st=this.state===v?j:ot;T(J,st,this.outcome)}else this.queue.push(new y(J,j,ot));return J};function y(j,ot,J){this.promise=j,typeof ot=="function"&&(this.onFulfilled=ot,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}y.prototype.callFulfilled=function(j){g.resolve(this.promise,j)},y.prototype.otherCallFulfilled=function(j){T(this.promise,this.onFulfilled,j)},y.prototype.callRejected=function(j){g.reject(this.promise,j)},y.prototype.otherCallRejected=function(j){T(this.promise,this.onRejected,j)};function T(j,ot,J){u(function(){var st;try{st=ot(J)}catch(Xt){return g.reject(j,Xt)}st===j?g.reject(j,new TypeError("Cannot resolve promise with itself")):g.resolve(j,st)})}g.resolve=function(j,ot){var J=R(O,ot);if(J.status==="error")return g.reject(j,J.value);var st=J.value;if(st)H(j,st);else{j.state=v,j.outcome=ot;for(var Xt=-1,me=j.queue.length;++Xt<me;)j.queue[Xt].callFulfilled(ot)}return j},g.reject=function(j,ot){j.state=h,j.outcome=ot;for(var J=-1,st=j.queue.length;++J<st;)j.queue[J].callRejected(ot);return j};function O(j){var ot=j&&j.then;if(j&&(typeof j=="object"||typeof j=="function")&&typeof ot=="function")return function(){ot.apply(j,arguments)}}function H(j,ot){var J=!1;function st(Ce){J||(J=!0,g.reject(j,Ce))}function Xt(Ce){J||(J=!0,g.resolve(j,Ce))}function me(){ot(Xt,st)}var pe=R(me);pe.status==="error"&&st(pe.value)}function R(j,ot){var J={};try{J.value=j(ot),J.status="success"}catch(st){J.status="error",J.value=st}return J}m.resolve=k;function k(j){return j instanceof this?j:g.resolve(new this(f),j)}m.reject=V;function V(j){var ot=new this(f);return g.reject(ot,j)}m.all=Ut;function Ut(j){var ot=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=j.length,st=!1;if(!J)return this.resolve([]);for(var Xt=new Array(J),me=0,pe=-1,Ce=new this(f);++pe<J;)be(j[pe],pe);return Ce;function be(Bt,Te){ot.resolve(Bt).then(pt,function(Q){st||(st=!0,g.reject(Ce,Q))});function pt(Q){Xt[Te]=Q,++me===J&&!st&&(st=!0,g.resolve(Ce,Xt))}}}m.race=de;function de(j){var ot=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=j.length,st=!1;if(!J)return this.resolve([]);for(var Xt=-1,me=new this(f);++Xt<J;)pe(j[Xt]);return me;function pe(Ce){ot.resolve(Ce).then(function(be){st||(st=!0,g.resolve(me,be))},function(be){st||(st=!0,g.reject(me,be))})}}},{1:1}],3:[function(s,o,c){(function(u){"use strict";typeof u.Promise!="function"&&(u.Promise=s(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(s,o,c){"use strict";var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d};function f(d,E){if(!(d instanceof E))throw new TypeError("Cannot call a class as a function")}function g(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var h=g();function v(){try{if(!h||!h.open)return!1;var d=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),E=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!d||E)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function _(d,E){d=d||[],E=E||{};try{return new Blob(d,E)}catch(D){if(D.name!=="TypeError")throw D;for(var S=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,C=new S,x=0;x<d.length;x+=1)C.append(d[x]);return C.getBlob(E.type)}}typeof Promise>"u"&&s(3);var m=Promise;function y(d,E){E&&d.then(function(S){E(null,S)},function(S){E(S)})}function T(d,E,S){typeof E=="function"&&d.then(E),typeof S=="function"&&d.catch(S)}function O(d){return typeof d!="string"&&(console.warn(d+" used as a key, but it is not a string."),d=String(d)),d}function H(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var R="local-forage-detect-blob-support",k=void 0,V={},Ut=Object.prototype.toString,de="readonly",j="readwrite";function ot(d){for(var E=d.length,S=new ArrayBuffer(E),C=new Uint8Array(S),x=0;x<E;x++)C[x]=d.charCodeAt(x);return S}function J(d){return new m(function(E){var S=d.transaction(R,j),C=_([""]);S.objectStore(R).put(C,"key"),S.onabort=function(x){x.preventDefault(),x.stopPropagation(),E(!1)},S.oncomplete=function(){var x=navigator.userAgent.match(/Chrome\/(\d+)/),D=navigator.userAgent.match(/Edge\//);E(D||!x||parseInt(x[1],10)>=43)}}).catch(function(){return!1})}function st(d){return typeof k=="boolean"?m.resolve(k):J(d).then(function(E){return k=E,k})}function Xt(d){var E=V[d.name],S={};S.promise=new m(function(C,x){S.resolve=C,S.reject=x}),E.deferredOperations.push(S),E.dbReady?E.dbReady=E.dbReady.then(function(){return S.promise}):E.dbReady=S.promise}function me(d){var E=V[d.name],S=E.deferredOperations.pop();if(S)return S.resolve(),S.promise}function pe(d,E){var S=V[d.name],C=S.deferredOperations.pop();if(C)return C.reject(E),C.promise}function Ce(d,E){return new m(function(S,C){if(V[d.name]=V[d.name]||en(),d.db)if(E)Xt(d),d.db.close();else return S(d.db);var x=[d.name];E&&x.push(d.version);var D=h.open.apply(h,x);E&&(D.onupgradeneeded=function(P){var U=D.result;try{U.createObjectStore(d.storeName),P.oldVersion<=1&&U.createObjectStore(R)}catch(F){if(F.name==="ConstraintError")console.warn('The database "'+d.name+'" has been upgraded from version '+P.oldVersion+" to version "+P.newVersion+', but the storage "'+d.storeName+'" already exists.');else throw F}}),D.onerror=function(P){P.preventDefault(),C(D.error)},D.onsuccess=function(){var P=D.result;P.onversionchange=function(U){U.target.close()},S(P),me(d)}})}function be(d){return Ce(d,!1)}function Bt(d){return Ce(d,!0)}function Te(d,E){if(!d.db)return!0;var S=!d.db.objectStoreNames.contains(d.storeName),C=d.version<d.db.version,x=d.version>d.db.version;if(C&&(d.version!==E&&console.warn('The database "'+d.name+`" can't be downgraded from version `+d.db.version+" to version "+d.version+"."),d.version=d.db.version),x||S){if(S){var D=d.db.version+1;D>d.version&&(d.version=D)}return!0}return!1}function pt(d){return new m(function(E,S){var C=new FileReader;C.onerror=S,C.onloadend=function(x){var D=btoa(x.target.result||"");E({__local_forage_encoded_blob:!0,data:D,type:d.type})},C.readAsBinaryString(d)})}function Q(d){var E=ot(atob(d.data));return _([E],{type:d.type})}function we(d){return d&&d.__local_forage_encoded_blob}function cr(d){var E=this,S=E._initReady().then(function(){var C=V[E._dbInfo.name];if(C&&C.dbReady)return C.dbReady});return T(S,d,d),S}function jr(d){Xt(d);for(var E=V[d.name],S=E.forages,C=0;C<S.length;C++){var x=S[C];x._dbInfo.db&&(x._dbInfo.db.close(),x._dbInfo.db=null)}return d.db=null,be(d).then(function(D){return d.db=D,Te(d)?Bt(d):D}).then(function(D){d.db=E.db=D;for(var P=0;P<S.length;P++)S[P]._dbInfo.db=D}).catch(function(D){throw pe(d,D),D})}function ke(d,E,S,C){C===void 0&&(C=1);try{var x=d.db.transaction(d.storeName,E);S(null,x)}catch(D){if(C>0&&(!d.db||D.name==="InvalidStateError"||D.name==="NotFoundError"))return m.resolve().then(function(){if(!d.db||D.name==="NotFoundError"&&!d.db.objectStoreNames.contains(d.storeName)&&d.version<=d.db.version)return d.db&&(d.version=d.db.version+1),Bt(d)}).then(function(){return jr(d).then(function(){ke(d,E,S,C-1)})}).catch(S);S(D)}}function en(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Hn(d){var E=this,S={db:null};if(d)for(var C in d)S[C]=d[C];var x=V[S.name];x||(x=en(),V[S.name]=x),x.forages.push(E),E._initReady||(E._initReady=E.ready,E.ready=cr);var D=[];function P(){return m.resolve()}for(var U=0;U<x.forages.length;U++){var F=x.forages[U];F!==E&&D.push(F._initReady().catch(P))}var $=x.forages.slice(0);return m.all(D).then(function(){return S.db=x.db,be(S)}).then(function(B){return S.db=B,Te(S,E._defaultConfig.version)?Bt(S):B}).then(function(B){S.db=x.db=B,E._dbInfo=S;for(var G=0;G<$.length;G++){var mt=$[G];mt!==E&&(mt._dbInfo.db=S.db,mt._dbInfo.version=S.version)}})}function kn(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){ke(S._dbInfo,de,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=F.get(d);$.onsuccess=function(){var B=$.result;B===void 0&&(B=null),we(B)&&(B=Q(B)),x(B)},$.onerror=function(){D($.error)}}catch(B){D(B)}})}).catch(D)});return y(C,E),C}function Hi(d,E){var S=this,C=new m(function(x,D){S.ready().then(function(){ke(S._dbInfo,de,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=F.openCursor(),B=1;$.onsuccess=function(){var G=$.result;if(G){var mt=G.value;we(mt)&&(mt=Q(mt));var he=d(mt,G.key,B++);he!==void 0?x(he):G.continue()}else x()},$.onerror=function(){D($.error)}}catch(G){D(G)}})}).catch(D)});return y(C,E),C}function Wi(d,E,S){var C=this;d=O(d);var x=new m(function(D,P){var U;C.ready().then(function(){return U=C._dbInfo,Ut.call(E)==="[object Blob]"?st(U.db).then(function(F){return F?E:pt(E)}):E}).then(function(F){ke(C._dbInfo,j,function($,B){if($)return P($);try{var G=B.objectStore(C._dbInfo.storeName);F===null&&(F=void 0);var mt=G.put(F,d);B.oncomplete=function(){F===void 0&&(F=null),D(F)},B.onabort=B.onerror=function(){var he=mt.error?mt.error:mt.transaction.error;P(he)}}catch(he){P(he)}})}).catch(P)});return y(x,S),x}function ji(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){ke(S._dbInfo,j,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=F.delete(d);U.oncomplete=function(){x()},U.onerror=function(){D($.error)},U.onabort=function(){var B=$.error?$.error:$.transaction.error;D(B)}}catch(B){D(B)}})}).catch(D)});return y(C,E),C}function Mn(d){var E=this,S=new m(function(C,x){E.ready().then(function(){ke(E._dbInfo,j,function(D,P){if(D)return x(D);try{var U=P.objectStore(E._dbInfo.storeName),F=U.clear();P.oncomplete=function(){C()},P.onabort=P.onerror=function(){var $=F.error?F.error:F.transaction.error;x($)}}catch($){x($)}})}).catch(x)});return y(S,d),S}function Pe(d){var E=this,S=new m(function(C,x){E.ready().then(function(){ke(E._dbInfo,de,function(D,P){if(D)return x(D);try{var U=P.objectStore(E._dbInfo.storeName),F=U.count();F.onsuccess=function(){C(F.result)},F.onerror=function(){x(F.error)}}catch($){x($)}})}).catch(x)});return y(S,d),S}function Wr(d,E){var S=this,C=new m(function(x,D){if(d<0){x(null);return}S.ready().then(function(){ke(S._dbInfo,de,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=!1,B=F.openKeyCursor();B.onsuccess=function(){var G=B.result;if(!G){x(null);return}d===0||$?x(G.key):($=!0,G.advance(d))},B.onerror=function(){D(B.error)}}catch(G){D(G)}})}).catch(D)});return y(C,E),C}function rs(d){var E=this,S=new m(function(C,x){E.ready().then(function(){ke(E._dbInfo,de,function(D,P){if(D)return x(D);try{var U=P.objectStore(E._dbInfo.storeName),F=U.openKeyCursor(),$=[];F.onsuccess=function(){var B=F.result;if(!B){C($);return}$.push(B.key),B.continue()},F.onerror=function(){x(F.error)}}catch(B){x(B)}})}).catch(x)});return y(S,d),S}function a(d,E){E=H.apply(this,arguments);var S=this.config();d=typeof d!="function"&&d||{},d.name||(d.name=d.name||S.name,d.storeName=d.storeName||S.storeName);var C=this,x;if(!d.name)x=m.reject("Invalid arguments");else{var D=d.name===S.name&&C._dbInfo.db,P=D?m.resolve(C._dbInfo.db):be(d).then(function(U){var F=V[d.name],$=F.forages;F.db=U;for(var B=0;B<$.length;B++)$[B]._dbInfo.db=U;return U});d.storeName?x=P.then(function(U){if(U.objectStoreNames.contains(d.storeName)){var F=U.version+1;Xt(d);var $=V[d.name],B=$.forages;U.close();for(var G=0;G<B.length;G++){var mt=B[G];mt._dbInfo.db=null,mt._dbInfo.version=F}var he=new m(function(oe,Ie){var ye=h.open(d.name,F);ye.onerror=function(Ve){var Wu=ye.result;Wu.close(),Ie(Ve)},ye.onupgradeneeded=function(){var Ve=ye.result;Ve.deleteObjectStore(d.storeName)},ye.onsuccess=function(){var Ve=ye.result;Ve.close(),oe(Ve)}});return he.then(function(oe){$.db=oe;for(var Ie=0;Ie<B.length;Ie++){var ye=B[Ie];ye._dbInfo.db=oe,me(ye._dbInfo)}}).catch(function(oe){throw(pe(d,oe)||m.resolve()).catch(function(){}),oe})}}):x=P.then(function(U){Xt(d);var F=V[d.name],$=F.forages;U.close();for(var B=0;B<$.length;B++){var G=$[B];G._dbInfo.db=null}var mt=new m(function(he,oe){var Ie=h.deleteDatabase(d.name);Ie.onerror=function(){var ye=Ie.result;ye&&ye.close(),oe(Ie.error)},Ie.onblocked=function(){console.warn('dropInstance blocked for database "'+d.name+'" until all open connections are closed')},Ie.onsuccess=function(){var ye=Ie.result;ye&&ye.close(),he(ye)}});return mt.then(function(he){F.db=he;for(var oe=0;oe<$.length;oe++){var Ie=$[oe];me(Ie._dbInfo)}}).catch(function(he){throw(pe(d,he)||m.resolve()).catch(function(){}),he})})}return y(x,E),x}var l={_driver:"asyncStorage",_initStorage:Hn,_support:v(),iterate:Hi,getItem:kn,setItem:Wi,removeItem:ji,clear:Mn,length:Pe,key:Wr,keys:rs,dropInstance:a};function p(){return typeof openDatabase=="function"}var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="~~local_forage_type~",L=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",te=W.length,bt="arbf",Ct="blob",le="si08",z="ui08",ft="uic8",Y="si16",ie="si32",$e="ur16",Me="ui32",re="fl32",X="fl64",He=te+bt.length,As=Object.prototype.toString;function Yo(d){var E=d.length*.75,S=d.length,C,x=0,D,P,U,F;d[d.length-1]==="="&&(E--,d[d.length-2]==="="&&E--);var $=new ArrayBuffer(E),B=new Uint8Array($);for(C=0;C<S;C+=4)D=I.indexOf(d[C]),P=I.indexOf(d[C+1]),U=I.indexOf(d[C+2]),F=I.indexOf(d[C+3]),B[x++]=D<<2|P>>4,B[x++]=(P&15)<<4|U>>2,B[x++]=(U&3)<<6|F&63;return $}function Ec(d){var E=new Uint8Array(d),S="",C;for(C=0;C<E.length;C+=3)S+=I[E[C]>>2],S+=I[(E[C]&3)<<4|E[C+1]>>4],S+=I[(E[C+1]&15)<<2|E[C+2]>>6],S+=I[E[C+2]&63];return E.length%3===2?S=S.substring(0,S.length-1)+"=":E.length%3===1&&(S=S.substring(0,S.length-2)+"=="),S}function $d(d,E){var S="";if(d&&(S=As.call(d)),d&&(S==="[object ArrayBuffer]"||d.buffer&&As.call(d.buffer)==="[object ArrayBuffer]")){var C,x=W;d instanceof ArrayBuffer?(C=d,x+=bt):(C=d.buffer,S==="[object Int8Array]"?x+=le:S==="[object Uint8Array]"?x+=z:S==="[object Uint8ClampedArray]"?x+=ft:S==="[object Int16Array]"?x+=Y:S==="[object Uint16Array]"?x+=$e:S==="[object Int32Array]"?x+=ie:S==="[object Uint32Array]"?x+=Me:S==="[object Float32Array]"?x+=re:S==="[object Float64Array]"?x+=X:E(new Error("Failed to get type for BinaryArray"))),E(x+Ec(C))}else if(S==="[object Blob]"){var D=new FileReader;D.onload=function(){var P=N+d.type+"~"+Ec(this.result);E(W+Ct+P)},D.readAsArrayBuffer(d)}else try{E(JSON.stringify(d))}catch(P){console.error("Couldn't convert value into a JSON string: ",d),E(null,P)}}function Fd(d){if(d.substring(0,te)!==W)return JSON.parse(d);var E=d.substring(He),S=d.substring(te,He),C;if(S===Ct&&L.test(E)){var x=E.match(L);C=x[1],E=E.substring(x[0].length)}var D=Yo(E);switch(S){case bt:return D;case Ct:return _([D],{type:C});case le:return new Int8Array(D);case z:return new Uint8Array(D);case ft:return new Uint8ClampedArray(D);case Y:return new Int16Array(D);case $e:return new Uint16Array(D);case ie:return new Int32Array(D);case Me:return new Uint32Array(D);case re:return new Float32Array(D);case X:return new Float64Array(D);default:throw new Error("Unkown type: "+S)}}var Sc={serialize:$d,deserialize:Fd,stringToBuffer:Yo,bufferToString:Ec};function th(d,E,S,C){d.executeSql("CREATE TABLE IF NOT EXISTS "+E.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],S,C)}function Hd(d){var E=this,S={db:null};if(d)for(var C in d)S[C]=typeof d[C]!="string"?d[C].toString():d[C];var x=new m(function(D,P){try{S.db=openDatabase(S.name,String(S.version),S.description,S.size)}catch(U){return P(U)}S.db.transaction(function(U){th(U,S,function(){E._dbInfo=S,D()},function(F,$){P($)})},P)});return S.serializer=Sc,x}function Fn(d,E,S,C,x,D){d.executeSql(S,C,x,function(P,U){U.code===U.SYNTAX_ERR?P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[E.storeName],function(F,$){$.rows.length?D(F,U):th(F,E,function(){F.executeSql(S,C,x,D)},D)},D):D(P,U)},D)}function Vd(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"SELECT * FROM "+P.storeName+" WHERE key = ? LIMIT 1",[d],function(F,$){var B=$.rows.length?$.rows.item(0).value:null;B&&(B=P.serializer.deserialize(B)),x(B)},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function qd(d,E){var S=this,C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"SELECT * FROM "+P.storeName,[],function(F,$){for(var B=$.rows,G=B.length,mt=0;mt<G;mt++){var he=B.item(mt),oe=he.value;if(oe&&(oe=P.serializer.deserialize(oe)),oe=d(oe,he.key,mt+1),oe!==void 0){x(oe);return}}x()},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function eh(d,E,S,C){var x=this;d=O(d);var D=new m(function(P,U){x.ready().then(function(){E===void 0&&(E=null);var F=E,$=x._dbInfo;$.serializer.serialize(E,function(B,G){G?U(G):$.db.transaction(function(mt){Fn(mt,$,"INSERT OR REPLACE INTO "+$.storeName+" (key, value) VALUES (?, ?)",[d,B],function(){P(F)},function(he,oe){U(oe)})},function(mt){if(mt.code===mt.QUOTA_ERR){if(C>0){P(eh.apply(x,[d,F,S,C-1]));return}U(mt)}})})}).catch(U)});return y(D,S),D}function Wd(d,E,S){return eh.apply(this,[d,E,S,1])}function zd(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"DELETE FROM "+P.storeName+" WHERE key = ?",[d],function(){x()},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function Kd(d){var E=this,S=new m(function(C,x){E.ready().then(function(){var D=E._dbInfo;D.db.transaction(function(P){Fn(P,D,"DELETE FROM "+D.storeName,[],function(){C()},function(U,F){x(F)})})}).catch(x)});return y(S,d),S}function Gd(d){var E=this,S=new m(function(C,x){E.ready().then(function(){var D=E._dbInfo;D.db.transaction(function(P){Fn(P,D,"SELECT COUNT(key) as c FROM "+D.storeName,[],function(U,F){var $=F.rows.item(0).c;C($)},function(U,F){x(F)})})}).catch(x)});return y(S,d),S}function Jd(d,E){var S=this,C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"SELECT key FROM "+P.storeName+" WHERE id = ? LIMIT 1",[d+1],function(F,$){var B=$.rows.length?$.rows.item(0).key:null;x(B)},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function Yd(d){var E=this,S=new m(function(C,x){E.ready().then(function(){var D=E._dbInfo;D.db.transaction(function(P){Fn(P,D,"SELECT key FROM "+D.storeName,[],function(U,F){for(var $=[],B=0;B<F.rows.length;B++)$.push(F.rows.item(B).key);C($)},function(U,F){x(F)})})}).catch(x)});return y(S,d),S}function Zd(d){return new m(function(E,S){d.transaction(function(C){C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(x,D){for(var P=[],U=0;U<D.rows.length;U++)P.push(D.rows.item(U).name);E({db:d,storeNames:P})},function(x,D){S(D)})},function(C){S(C)})})}function Xd(d,E){E=H.apply(this,arguments);var S=this.config();d=typeof d!="function"&&d||{},d.name||(d.name=d.name||S.name,d.storeName=d.storeName||S.storeName);var C=this,x;return d.name?x=new m(function(D){var P;d.name===S.name?P=C._dbInfo.db:P=openDatabase(d.name,"","",0),d.storeName?D({db:P,storeNames:[d.storeName]}):D(Zd(P))}).then(function(D){return new m(function(P,U){D.db.transaction(function(F){function $(he){return new m(function(oe,Ie){F.executeSql("DROP TABLE IF EXISTS "+he,[],function(){oe()},function(ye,Ve){Ie(Ve)})})}for(var B=[],G=0,mt=D.storeNames.length;G<mt;G++)B.push($(D.storeNames[G]));m.all(B).then(function(){P()}).catch(function(he){U(he)})},function(F){U(F)})})}):x=m.reject("Invalid arguments"),y(x,E),x}var Qd={_driver:"webSQLStorage",_initStorage:Hd,_support:p(),iterate:qd,getItem:Vd,setItem:Wd,removeItem:zd,clear:Kd,length:Gd,key:Jd,keys:Yd,dropInstance:Xd};function kg(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function rh(d,E){var S=d.name+"/";return d.storeName!==E.storeName&&(S+=d.storeName+"/"),S}function Om(){var d="_localforage_support_test";try{return localStorage.setItem(d,!0),localStorage.removeItem(d),!1}catch{return!0}}function Vm(){return!Om()||localStorage.length>0}function zm(d){var E=this,S={};if(d)for(var C in d)S[C]=d[C];return S.keyPrefix=rh(d,E._defaultConfig),Vm()?(E._dbInfo=S,S.serializer=Sc,m.resolve()):m.reject()}function Gm(d){var E=this,S=E.ready().then(function(){for(var C=E._dbInfo.keyPrefix,x=localStorage.length-1;x>=0;x--){var D=localStorage.key(x);D.indexOf(C)===0&&localStorage.removeItem(D)}});return y(S,d),S}function kv(d,E){var S=this;d=O(d);var C=S.ready().then(function(){var x=S._dbInfo,D=localStorage.getItem(x.keyPrefix+d);return D&&(D=x.serializer.deserialize(D)),D});return y(C,E),C}function Pv(d,E){var S=this,C=S.ready().then(function(){for(var x=S._dbInfo,D=x.keyPrefix,P=D.length,U=localStorage.length,F=1,$=0;$<U;$++){var B=localStorage.key($);if(B.indexOf(D)===0){var G=localStorage.getItem(B);if(G&&(G=x.serializer.deserialize(G)),G=d(G,B.substring(P),F++),G!==void 0)return G}}});return y(C,E),C}function Lv(d,E){var S=this,C=S.ready().then(function(){var x=S._dbInfo,D;try{D=localStorage.key(d)}catch{D=null}return D&&(D=D.substring(x.keyPrefix.length)),D});return y(C,E),C}function Mv(d){var E=this,S=E.ready().then(function(){for(var C=E._dbInfo,x=localStorage.length,D=[],P=0;P<x;P++){var U=localStorage.key(P);U.indexOf(C.keyPrefix)===0&&D.push(U.substring(C.keyPrefix.length))}return D});return y(S,d),S}function Uv(d){var E=this,S=E.keys().then(function(C){return C.length});return y(S,d),S}function jv(d,E){var S=this;d=O(d);var C=S.ready().then(function(){var x=S._dbInfo;localStorage.removeItem(x.keyPrefix+d)});return y(C,E),C}function Bv(d,E,S){var C=this;d=O(d);var x=C.ready().then(function(){E===void 0&&(E=null);var D=E;return new m(function(P,U){var F=C._dbInfo;F.serializer.serialize(E,function($,B){if(B)U(B);else try{localStorage.setItem(F.keyPrefix+d,$),P(D)}catch(G){(G.name==="QuotaExceededError"||G.name==="NS_ERROR_DOM_QUOTA_REACHED")&&U(G),U(G)}})})});return y(x,S),x}function $v(d,E){if(E=H.apply(this,arguments),d=typeof d!="function"&&d||{},!d.name){var S=this.config();d.name=d.name||S.name,d.storeName=d.storeName||S.storeName}var C=this,x;return d.name?x=new m(function(D){d.storeName?D(rh(d,C._defaultConfig)):D(d.name+"/")}).then(function(D){for(var P=localStorage.length-1;P>=0;P--){var U=localStorage.key(P);U.indexOf(D)===0&&localStorage.removeItem(U)}}):x=m.reject("Invalid arguments"),y(x,E),x}var Fv={_driver:"localStorageWrapper",_initStorage:zm,_support:kg(),iterate:Pv,getItem:kv,setItem:Bv,removeItem:jv,clear:Gm,length:Uv,key:Lv,keys:Mv,dropInstance:$v},Hv=function(d,E){return d===E||typeof d=="number"&&typeof E=="number"&&isNaN(d)&&isNaN(E)},Wv=function(d,E){for(var S=d.length,C=0;C<S;){if(Hv(d[C],E))return!0;C++}return!1},nh=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"},$a={},fh={},to={INDEXEDDB:l,WEBSQL:Qd,LOCALSTORAGE:Fv},Gv=[to.INDEXEDDB._driver,to.WEBSQL._driver,to.LOCALSTORAGE._driver],bc=["dropInstance"],Yc=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(bc),Oy={description:"",driver:Gv.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Py(d,E){d[E]=function(){var S=arguments;return d.ready().then(function(){return d[E].apply(d,S)})}}function qu(){for(var d=1;d<arguments.length;d++){var E=arguments[d];if(E)for(var S in E)E.hasOwnProperty(S)&&(nh(E[S])?arguments[0][S]=E[S].slice():arguments[0][S]=E[S])}return arguments[0]}var tb=function(){function d(E){f(this,d);for(var S in to)if(to.hasOwnProperty(S)){var C=to[S],x=C._driver;this[S]=x,$a[x]||this.defineDriver(C)}this._defaultConfig=qu({},Oy),this._config=qu({},this._defaultConfig,E),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return d.prototype.config=function(E){if((typeof E>"u"?"undefined":u(E))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in E){if(S==="storeName"&&(E[S]=E[S].replace(/\W/g,"_")),S==="version"&&typeof E[S]!="number")return new Error("Database version must be a number.");this._config[S]=E[S]}return"driver"in E&&E.driver?this.setDriver(this._config.driver):!0}else return typeof E=="string"?this._config[E]:this._config},d.prototype.defineDriver=function(E,S,C){var x=new m(function(D,P){try{var U=E._driver,F=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!E._driver){P(F);return}for(var $=Yc.concat("_initStorage"),B=0,G=$.length;B<G;B++){var mt=$[B],he=!Wv(bc,mt);if((he||E[mt])&&typeof E[mt]!="function"){P(F);return}}var oe=function(){for(var ye=function(rb){return function(){var nb=new Error("Method "+rb+" is not implemented by the current driver"),Yh=m.reject(nb);return y(Yh,arguments[arguments.length-1]),Yh}},Ve=0,Wu=bc.length;Ve<Wu;Ve++){var zu=bc[Ve];E[zu]||(E[zu]=ye(zu))}};oe();var Ie=function(ye){$a[U]&&console.info("Redefining LocalForage driver: "+U),$a[U]=E,fh[U]=ye,D()};"_support"in E?E._support&&typeof E._support=="function"?E._support().then(Ie,P):Ie(!!E._support):Ie(!0)}catch(ye){P(ye)}});return T(x,S,C),x},d.prototype.driver=function(){return this._driver||null},d.prototype.getDriver=function(E,S,C){var x=$a[E]?m.resolve($a[E]):m.reject(new Error("Driver not found."));return T(x,S,C),x},d.prototype.getSerializer=function(E){var S=m.resolve(Sc);return T(S,E),S},d.prototype.ready=function(E){var S=this,C=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return T(C,E,E),C},d.prototype.setDriver=function(E,S,C){var x=this;nh(E)||(E=[E]);var D=this._getSupportedDrivers(E);function P(){x._config.driver=x.driver()}function U(B){return x._extend(B),P(),x._ready=x._initStorage(x._config),x._ready}function F(B){return function(){var G=0;function mt(){for(;G<B.length;){var he=B[G];return G++,x._dbInfo=null,x._ready=null,x.getDriver(he).then(U).catch(mt)}P();var oe=new Error("No available storage method found.");return x._driverSet=m.reject(oe),x._driverSet}return mt()}}var $=this._driverSet!==null?this._driverSet.catch(function(){return m.resolve()}):m.resolve();return this._driverSet=$.then(function(){var B=D[0];return x._dbInfo=null,x._ready=null,x.getDriver(B).then(function(G){x._driver=G._driver,P(),x._wrapLibraryMethodsWithReady(),x._initDriver=F(D)})}).catch(function(){P();var B=new Error("No available storage method found.");return x._driverSet=m.reject(B),x._driverSet}),T(this._driverSet,S,C),this._driverSet},d.prototype.supports=function(E){return!!fh[E]},d.prototype._extend=function(E){qu(this,E)},d.prototype._getSupportedDrivers=function(E){for(var S=[],C=0,x=E.length;C<x;C++){var D=E[C];this.supports(D)&&S.push(D)}return S},d.prototype._wrapLibraryMethodsWithReady=function(){for(var E=0,S=Yc.length;E<S;E++)Py(this,Yc[E])},d.prototype.createInstance=function(E){return new d(E)},d}(),eb=new tb;o.exports=eb},{3:3}]},{},[4])(4)})}),vl=Vi(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URLBuilder=void 0;var e=function(){function r(n){try{this.base=new URL(n),this.params=new URLSearchParams(this.base.search.slice(1))}catch(i){console.error("Un-parsable URL",i)}}return r.prototype.appendQueryParam=function(n,i){this.params.append(n,i?i.toString():"")},r.prototype.clearQueryParams=function(){return this.params=new URLSearchParams,this},r.prototype.deleteQueryParam=function(n){this.params.delete(n)},r.prototype.getBase=function(){return this.base},r.prototype.getPath=function(){return this.base.pathname},r.prototype.getHostname=function(){return this.base.hostname},r.prototype.getParams=function(){return this.params},r.prototype.getQueryParam=function(n){if(!this.params)return"";var i=this.params.get(n);return!i||i==="undefined"||i==="null"?void 0:i},r.prototype.getQueryString=function(){return this.params.toString()},r.prototype.setPath=function(n){return this.base.pathname=n,this},r.prototype.setQueryParam=function(n,i){return this.params.set(n,i?i.toString():""),this},r.prototype.setQueryString=function(n){if(n)return n[0]==="?"&&(n=n.slice(1)),this.params=new URLSearchParams(n),this},r.prototype.toString=function(){var n=this.params.toString();return n===""?this.base.search="":this.base.search="?"+n,this.base.toString()},r}();t.URLBuilder=e}),fd=Vi((t,e)=>{"use strict";(function(r,n){typeof t=="object"&&typeof e<"u"?e.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self,r.fetchRetry=n())})(t,function(){"use strict";var r=function(s,o){if(o=o||{},typeof s!="function")throw new i("fetch must be a function");if(typeof o!="object")throw new i("defaults must be an object");if(o.retries!==void 0&&!n(o.retries))throw new i("retries must be a positive integer");if(o.retryDelay!==void 0&&!n(o.retryDelay)&&typeof o.retryDelay!="function")throw new i("retryDelay must be a positive integer or a function returning a positive integer");if(o.retryOn!==void 0&&!Array.isArray(o.retryOn)&&typeof o.retryOn!="function")throw new i("retryOn property expects an array or function");var c={retries:3,retryDelay:1e3,retryOn:[]};return o=Object.assign(c,o),function(u,f){var g=o.retries,h=o.retryDelay,v=o.retryOn;if(f&&f.retries!==void 0)if(n(f.retries))g=f.retries;else throw new i("retries must be a positive integer");if(f&&f.retryDelay!==void 0)if(n(f.retryDelay)||typeof f.retryDelay=="function")h=f.retryDelay;else throw new i("retryDelay must be a positive integer or a function returning a positive integer");if(f&&f.retryOn)if(Array.isArray(f.retryOn)||typeof f.retryOn=="function")v=f.retryOn;else throw new i("retryOn property expects an array or function");return new Promise(function(_,m){var y=function(O){var H=typeof Request<"u"&&u instanceof Request?u.clone():u;s(H,f).then(function(R){if(Array.isArray(v)&&v.indexOf(R.status)===-1)_(R);else if(typeof v=="function")try{return Promise.resolve(v(O,null,R)).then(function(k){k?T(O,null,R):_(R)}).catch(m)}catch(k){m(k)}else O<g?T(O,null,R):_(R)}).catch(function(R){if(typeof v=="function")try{Promise.resolve(v(O,R,null)).then(function(k){k?T(O,R,null):m(R)}).catch(function(k){m(k)})}catch(k){m(k)}else O<g?T(O,R,null):m(R)})};function T(O,H,R){var k=typeof h=="function"?h(O,H,R):h;setTimeout(function(){y(++O)},k)}y(0)})}};function n(s){return Number.isInteger(s)&&s>=0}function i(s){this.name="ArgumentError",this.message=s}return r})}),tp="9.3.9",A=class Ku{static SDK_VERSION=tp;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static{let e=Ku.SDK_VERSION.split(".").map(r=>r.padStart(2,"0")).join("");Ku.SDK_VERSION_CODE=parseInt(e,10)}},Qt={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",styleURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${A.SDK_VERSION}/dist/widget-sdk.min.css`},Dt=Jt(tn()),w=class{static log(...t){Dt.default.info(...t)}static debug(...t){Dt.default.debug(...t)}static error(...t){Dt.default.error(...t)}static warn(...t){Dt.default.warn(...t)}static info(...t){Dt.default.info(...t)}static trace(...t){Dt.default.trace(...t)}static configure(t=A.LOG_PREFIX){Dt.default.useDefaults({formatter:function(r){r.unshift(`${t} (v${A.SDK_VERSION}):`)}});let e=this.getDebugParam();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Dt.default.setLevel(Dt.default[localStorage.cooeeLogLevel]):Dt.default.setLevel(Qt.debug?Dt.default.TRACE:Dt.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
1
+ "use strict";(()=>{var ih=Object.create,wc=Object.defineProperty,oh=Object.defineProperties,sh=Object.getOwnPropertyDescriptor,ah=Object.getOwnPropertyDescriptors,ch=Object.getOwnPropertyNames,Qu=Object.getOwnPropertySymbols,lh=Object.getPrototypeOf,ep=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable,Zu=(t,e,r)=>e in t?wc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||={})ep.call(e,r)&&Zu(t,r,e[r]);if(Qu)for(var r of Qu(e))uh.call(e,r)&&Zu(t,r,e[r]);return t},Z=(t,e)=>oh(t,ah(e)),Gi=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),Vi=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ph=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ch(e))!ep.call(t,i)&&i!==r&&wc(t,i,{get:()=>e[i],enumerable:!(n=sh(e,i))||n.enumerable});return t},Jt=(t,e,r)=>(r=t!=null?ih(lh(t)):{},ph(e||!t||!t.__esModule?wc(r,"default",{value:t,enumerable:!0}):r,t)),tn=Vi((t,e)=>{"use strict";(function(r){"use strict";var n={};n.VERSION="1.6.1";var i,s={},o=function(h,v){return function(){return v.apply(h,arguments)}},c=function(){var h=arguments,v=h[0],_,m;for(m=1;m<h.length;m++)for(_ in h[m])!(_ in v)&&h[m].hasOwnProperty(_)&&(v[_]=h[m][_]);return v},u=function(h,v){return{value:h,name:v}};n.TRACE=u(1,"TRACE"),n.DEBUG=u(2,"DEBUG"),n.INFO=u(3,"INFO"),n.TIME=u(4,"TIME"),n.WARN=u(5,"WARN"),n.ERROR=u(8,"ERROR"),n.OFF=u(99,"OFF");var f=function(h){this.context=h,this.setLevel(h.filterLevel),this.log=this.info};f.prototype={setLevel:function(h){h&&"value"in h&&(this.context.filterLevel=h)},getLevel:function(){return this.context.filterLevel},enabledFor:function(h){var v=this.context.filterLevel;return h.value>=v.value},trace:function(){this.invoke(n.TRACE,arguments)},debug:function(){this.invoke(n.DEBUG,arguments)},info:function(){this.invoke(n.INFO,arguments)},warn:function(){this.invoke(n.WARN,arguments)},error:function(){this.invoke(n.ERROR,arguments)},time:function(h){typeof h=="string"&&h.length>0&&this.invoke(n.TIME,[h,"start"])},timeEnd:function(h){typeof h=="string"&&h.length>0&&this.invoke(n.TIME,[h,"end"])},invoke:function(h,v){i&&this.enabledFor(h)&&i(v,c({level:h},this.context))}};var g=new f({filterLevel:n.OFF});(function(){var h=n;h.enabledFor=o(g,g.enabledFor),h.trace=o(g,g.trace),h.debug=o(g,g.debug),h.time=o(g,g.time),h.timeEnd=o(g,g.timeEnd),h.info=o(g,g.info),h.warn=o(g,g.warn),h.error=o(g,g.error),h.log=h.info})(),n.setHandler=function(h){i=h},n.setLevel=function(h){g.setLevel(h);for(var v in s)s.hasOwnProperty(v)&&s[v].setLevel(h)},n.getLevel=function(){return g.getLevel()},n.get=function(h){return s[h]||(s[h]=new f(c({name:h},g.context)))},n.createDefaultHandler=function(h){h=h||{},h.formatter=h.formatter||function(m,y){y.name&&m.unshift("["+y.name+"]")};var v={},_=function(m,y){Function.prototype.apply.call(m,console,y)};return typeof console>"u"?function(){}:function(m,y){m=Array.prototype.slice.call(m);var T=console.log,O;y.level===n.TIME?(O=(y.name?"["+y.name+"] ":"")+m[0],m[1]==="start"?console.time?console.time(O):v[O]=new Date().getTime():console.timeEnd?console.timeEnd(O):_(T,[O+": "+(new Date().getTime()-v[O])+"ms"])):(y.level===n.WARN&&console.warn?T=console.warn:y.level===n.ERROR&&console.error?T=console.error:y.level===n.INFO&&console.info?T=console.info:y.level===n.DEBUG&&console.debug?T=console.debug:y.level===n.TRACE&&console.trace&&(T=console.trace),h.formatter(m,y),_(T,m))}},n.useDefaults=function(h){n.setLevel(h&&h.defaultLevel||n.DEBUG),n.setHandler(n.createDefaultHandler(h))},n.setDefaults=n.useDefaults,typeof define=="function"&&define.amd?define(n):typeof e<"u"&&e.exports?e.exports=n:(n._prevLogger=r.Logger,n.noConflict=function(){return r.Logger=n._prevLogger,n},r.Logger=n)})(t)}),Bp=Vi((t,e)=>{"use strict";(function(r,n){"use strict";var i="1.0.40",s="",o="?",c="function",u="undefined",f="object",g="string",h="major",v="model",_="name",m="type",y="vendor",T="version",O="architecture",H="console",R="mobile",k="tablet",V="smarttv",Ut="wearable",de="embedded",j=500,ot="Amazon",J="Apple",st="ASUS",Xt="BlackBerry",me="Browser",pe="Chrome",Ce="Edge",be="Firefox",Bt="Google",Te="Huawei",pt="LG",Q="Microsoft",we="Motorola",cr="Opera",jr="Samsung",ke="Sharp",en="Sony",Hn="Xiaomi",kn="Zebra",Hi="Facebook",Wi="Chromium OS",ji="Mac OS",Mn=" Browser",Pe=function(z,ft){var Y={};for(var ie in z)ft[ie]&&ft[ie].length%2===0?Y[ie]=ft[ie].concat(z[ie]):Y[ie]=z[ie];return Y},Wr=function(z){for(var ft={},Y=0;Y<z.length;Y++)ft[z[Y].toUpperCase()]=z[Y];return ft},rs=function(z,ft){return typeof z===g?a(ft).indexOf(a(z))!==-1:!1},a=function(z){return z.toLowerCase()},l=function(z){return typeof z===g?z.replace(/[^\d\.]/g,s).split(".")[0]:n},p=function(z,ft){if(typeof z===g)return z=z.replace(/^\s\s*/,s),typeof ft===u?z:z.substring(0,j)},I=function(z,ft){for(var Y=0,ie,$e,Me,re,X,He;Y<ft.length&&!X;){var As=ft[Y],Yo=ft[Y+1];for(ie=$e=0;ie<As.length&&!X&&As[ie];)if(X=As[ie++].exec(z),X)for(Me=0;Me<Yo.length;Me++)He=X[++$e],re=Yo[Me],typeof re===f&&re.length>0?re.length===2?typeof re[1]==c?this[re[0]]=re[1].call(this,He):this[re[0]]=re[1]:re.length===3?typeof re[1]===c&&!(re[1].exec&&re[1].test)?this[re[0]]=He?re[1].call(this,He,re[2]):n:this[re[0]]=He?He.replace(re[1],re[2]):n:re.length===4&&(this[re[0]]=He?re[3].call(this,He.replace(re[1],re[2])):n):this[re]=He||n;Y+=2}},N=function(z,ft){for(var Y in ft)if(typeof ft[Y]===f&&ft[Y].length>0){for(var ie=0;ie<ft[Y].length;ie++)if(rs(ft[Y][ie],z))return Y===o?n:Y}else if(rs(ft[Y],z))return Y===o?n:Y;return ft.hasOwnProperty("*")?ft["*"]:z},L={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},W={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"},te={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[T,[_,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[T,[_,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[_,T],[/opios[\/ ]+([\w\.]+)/i],[T,[_,cr+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[T,[_,cr+" GX"]],[/\bopr\/([\w\.]+)/i],[T,[_,cr]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[T,[_,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[T,[_,"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],[_,T],[/quark(?:pc)?\/([-\w\.]+)/i],[T,[_,"Quark"]],[/\bddg\/([\w\.]+)/i],[T,[_,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[T,[_,"UC"+me]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[T,[_,"WeChat"]],[/konqueror\/([\w\.]+)/i],[T,[_,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[T,[_,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[T,[_,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[T,[_,"Smart Lenovo "+me]],[/(avast|avg)\/([\w\.]+)/i],[[_,/(.+)/,"$1 Secure "+me],T],[/\bfocus\/([\w\.]+)/i],[T,[_,be+" Focus"]],[/\bopt\/([\w\.]+)/i],[T,[_,cr+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[T,[_,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[T,[_,"Dolphin"]],[/coast\/([\w\.]+)/i],[T,[_,cr+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[T,[_,"MIUI"+Mn]],[/fxios\/([\w\.-]+)/i],[T,[_,be]],[/\bqihoobrowser\/?([\w\.]*)/i],[T,[_,"360"]],[/\b(qq)\/([\w\.]+)/i],[[_,/(.+)/,"$1Browser"],T],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[_,/(.+)/,"$1"+Mn],T],[/samsungbrowser\/([\w\.]+)/i],[T,[_,jr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[T,[_,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[_,"Sogou Mobile"],T],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[_,T],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[_],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[T,_],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[_,Hi],T],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\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],[_,T],[/\bgsa\/([\w\.]+) .*safari\//i],[T,[_,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[T,[_,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[T,[_,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[_,pe+" WebView"],T],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[T,[_,"Android "+me]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[_,T],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[T,[_,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[T,_],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[_,[T,N,L]],[/(webkit|khtml)\/([\w\.]+)/i],[_,T],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[_,"Netscape"],T],[/(wolvic|librewolf)\/([\w\.]+)/i],[_,T],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[T,[_,be+" 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,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[_,[T,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[_,[T,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,a]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[O,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[O,"armhf"]],[/windows (ce|mobile); ppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[O,/ower/,s,a]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[O,a]]],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],[v,[y,jr],[m,k]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[y,jr],[m,R]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[y,J],[m,R]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[y,J],[m,k]],[/(macintosh);/i],[v,[y,J]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[y,ke],[m,R]],[/(?:honor)([-\w ]+)[;\)]/i],[v,[y,"Honor"],[m,R]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[y,Te],[m,k]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[y,Te],[m,R]],[/\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],[[v,/_/g," "],[y,Hn],[m,R]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[y,Hn],[m,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[y,"OPPO"],[m,R]],[/\b(opd2\d{3}a?) bui/i],[v,[y,"OPPO"],[m,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[y,"Vivo"],[m,R]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[y,"Realme"],[m,R]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[y,we],[m,R]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[y,we],[m,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[y,pt],[m,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[y,pt],[m,R]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[y,"Lenovo"],[m,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[y,"Nokia"],[m,R]],[/(pixel c)\b/i],[v,[y,Bt],[m,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[y,Bt],[m,R]],[/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],[v,[y,en],[m,R]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[y,en],[m,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[y,"OnePlus"],[m,R]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[y,ot],[m,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[y,ot],[m,R]],[/(playbook);[-\w\),; ]+(rim)/i],[v,y,[m,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[y,Xt],[m,R]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[y,st],[m,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[y,st],[m,R]],[/(nexus 9)/i],[v,[y,"HTC"],[m,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[y,[v,/_/g," "],[m,R]],[/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],[v,[y,"TCL"],[m,k]],[/(itel) ((\w+))/i],[[y,a],v,[m,N,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[y,"Acer"],[m,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[y,"Meizu"],[m,R]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[y,"Ulefone"],[m,R]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[v,[y,"Energizer"],[m,R]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[v,[y,"Cat"],[m,R]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[v,[y,"Smartfren"],[m,R]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[y,"Nothing"],[m,R]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[y,v,[m,R]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/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],[y,v,[m,k]],[/(surface duo)/i],[v,[y,Q],[m,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[y,"Fairphone"],[m,R]],[/(u304aa)/i],[v,[y,"AT&T"],[m,R]],[/\bsie-(\w*)/i],[v,[y,"Siemens"],[m,R]],[/\b(rct\w+) b/i],[v,[y,"RCA"],[m,k]],[/\b(venue[\d ]{2,7}) b/i],[v,[y,"Dell"],[m,k]],[/\b(q(?:mv|ta)\w+) b/i],[v,[y,"Verizon"],[m,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[y,"Barnes & Noble"],[m,k]],[/\b(tm\d{3}\w+) b/i],[v,[y,"NuVision"],[m,k]],[/\b(k88) b/i],[v,[y,"ZTE"],[m,k]],[/\b(nx\d{3}j) b/i],[v,[y,"ZTE"],[m,R]],[/\b(gen\d{3}) b.+49h/i],[v,[y,"Swiss"],[m,R]],[/\b(zur\d{3}) b/i],[v,[y,"Swiss"],[m,k]],[/\b((zeki)?tb.*\b) b/i],[v,[y,"Zeki"],[m,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[y,"Dragon Touch"],v,[m,k]],[/\b(ns-?\w{0,9}) b/i],[v,[y,"Insignia"],[m,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[y,"NextBook"],[m,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],v,[m,R]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],v,[m,R]],[/\b(ph-1) /i],[v,[y,"Essential"],[m,R]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[y,"Envizen"],[m,k]],[/\b(trio[-\w\. ]+) b/i],[v,[y,"MachSpeed"],[m,k]],[/\btu_(1491) b/i],[v,[y,"Rotor"],[m,k]],[/(shield[\w ]+) b/i],[v,[y,"Nvidia"],[m,k]],[/(sprint) (\w+)/i],[y,v,[m,R]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[y,Q],[m,R]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[y,kn],[m,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[y,kn],[m,R]],[/smart-tv.+(samsung)/i],[y,[m,V]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[y,jr],[m,V]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,pt],[m,V]],[/(apple) ?tv/i],[y,[v,J+" TV"],[m,V]],[/crkey/i],[[v,pe+"cast"],[y,Bt],[m,V]],[/droid.+aft(\w+)( bui|\))/i],[v,[y,ot],[m,V]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[y,ke],[m,V]],[/(bravia[\w ]+)( bui|\))/i],[v,[y,en],[m,V]],[/(mitv-\w{5}) bui/i],[v,[y,Hn],[m,V]],[/Hbbtv.*(technisat) (.*);/i],[y,v,[m,V]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[y,p],[v,p],[m,V]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,V]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,v,[m,H]],[/droid.+; (shield) bui/i],[v,[y,"Nvidia"],[m,H]],[/(playstation [345portablevi]+)/i],[v,[y,en],[m,H]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[y,Q],[m,H]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[y,jr],[m,Ut]],[/((pebble))app/i],[y,v,[m,Ut]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[y,J],[m,Ut]],[/droid.+; (glass) \d/i],[v,[y,Bt],[m,Ut]],[/droid.+; (wt63?0{2,3})\)/i],[v,[y,kn],[m,Ut]],[/droid.+; (glass) \d/i],[v,[y,Bt],[m,Ut]],[/(pico) (4|neo3(?: link|pro)?)/i],[y,v,[m,Ut]],[/; (quest( \d| pro)?)/i],[v,[y,Hi],[m,Ut]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[m,de]],[/(aeobc)\b/i],[v,[y,ot],[m,de]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[m,R]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[m,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,R]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[T,[_,Ce+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[_,T],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[T,[_,"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],[_,T],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[T,_]],os:[[/microsoft (windows) (vista|xp)/i],[_,T],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[_,[T,N,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[T,N,W],[_,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[T,/_/g,"."],[_,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[_,ji],[T,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[T,_],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[_,T],[/\(bb(10);/i],[T,[_,Xt]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[T,[_,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[T,[_,be+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[T,[_,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[T,[_,"watchOS"]],[/crkey\/([\d\.]+)/i],[T,[_,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[_,Wi],T],[/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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[_,T],[/(sunos) ?([\w\.\d]*)/i],[[_,"Solaris"],T],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[_,T]]},bt=function(z,ft){if(typeof z===f&&(ft=z,z=n),!(this instanceof bt))return new bt(z,ft).getResult();var Y=typeof r!==u&&r.navigator?r.navigator:n,ie=z||(Y&&Y.userAgent?Y.userAgent:s),$e=Y&&Y.userAgentData?Y.userAgentData:n,Me=ft?Pe(te,ft):te,re=Y&&Y.userAgent==ie;return this.getBrowser=function(){var X={};return X[_]=n,X[T]=n,I.call(X,ie,Me.browser),X[h]=l(X[T]),re&&Y&&Y.brave&&typeof Y.brave.isBrave==c&&(X[_]="Brave"),X},this.getCPU=function(){var X={};return X[O]=n,I.call(X,ie,Me.cpu),X},this.getDevice=function(){var X={};return X[y]=n,X[v]=n,X[m]=n,I.call(X,ie,Me.device),re&&!X[m]&&$e&&$e.mobile&&(X[m]=R),re&&X[v]=="Macintosh"&&Y&&typeof Y.standalone!==u&&Y.maxTouchPoints&&Y.maxTouchPoints>2&&(X[v]="iPad",X[m]=k),X},this.getEngine=function(){var X={};return X[_]=n,X[T]=n,I.call(X,ie,Me.engine),X},this.getOS=function(){var X={};return X[_]=n,X[T]=n,I.call(X,ie,Me.os),re&&!X[_]&&$e&&$e.platform&&$e.platform!="Unknown"&&(X[_]=$e.platform.replace(/chrome os/i,Wi).replace(/macos/i,ji)),X},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 ie},this.setUA=function(X){return ie=typeof X===g&&X.length>j?p(X,j):X,this},this.setUA(ie),this};bt.VERSION=i,bt.BROWSER=Wr([_,T,h]),bt.CPU=Wr([O]),bt.DEVICE=Wr([v,y,m,H,R,V,k,Ut,de]),bt.ENGINE=bt.OS=Wr([_,T]),typeof t!==u?(typeof e!==u&&e.exports&&(t=e.exports=bt),t.UAParser=bt):typeof define===c&&define.amd?define(function(){return bt}):typeof r!==u&&(r.UAParser=bt);var Ct=typeof r!==u&&(r.jQuery||r.Zepto);if(Ct&&!Ct.ua){var le=new bt;Ct.ua=le.getResult(),Ct.ua.get=function(){return le.getUA()},Ct.ua.set=function(z){le.setUA(z);var ft=le.getResult();for(var Y in ft)Ct.ua[Y]=ft[Y]}}})(typeof window=="object"?window:t)}),kp=Vi((t,e)=>{"use strict";(function(r){if(typeof t=="object"&&typeof e<"u")e.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.localforage=r()}})(function(){var r,n,i;return function s(o,c,u){function f(v,_){if(!c[v]){if(!o[v]){var m=typeof Gi=="function"&&Gi;if(!_&&m)return m(v,!0);if(g)return g(v,!0);var y=new Error("Cannot find module '"+v+"'");throw y.code="MODULE_NOT_FOUND",y}var T=c[v]={exports:{}};o[v][0].call(T.exports,function(O){var H=o[v][1][O];return f(H||O)},T,T.exports,s,o,c,u)}return c[v].exports}for(var g=typeof Gi=="function"&&Gi,h=0;h<u.length;h++)f(u[h]);return f}({1:[function(s,o,c){(function(u){"use strict";var f=u.MutationObserver||u.WebKitMutationObserver,g;if(f){var h=0,v=new f(O),_=u.document.createTextNode("");v.observe(_,{characterData:!0}),g=function(){_.data=h=++h%2}}else if(!u.setImmediate&&typeof u.MessageChannel<"u"){var m=new u.MessageChannel;m.port1.onmessage=O,g=function(){m.port2.postMessage(0)}}else"document"in u&&"onreadystatechange"in u.document.createElement("script")?g=function(){var R=u.document.createElement("script");R.onreadystatechange=function(){O(),R.onreadystatechange=null,R.parentNode.removeChild(R),R=null},u.document.documentElement.appendChild(R)}:g=function(){setTimeout(O,0)};var y,T=[];function O(){y=!0;for(var R,k,V=T.length;V;){for(k=T,T=[],R=-1;++R<V;)k[R]();V=T.length}y=!1}o.exports=H;function H(R){T.push(R)===1&&!y&&g()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(s,o,c){"use strict";var u=s(1);function f(){}var g={},h=["REJECTED"],v=["FULFILLED"],_=["PENDING"];o.exports=m;function m(j){if(typeof j!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,j!==f&&H(this,j)}m.prototype.catch=function(j){return this.then(null,j)},m.prototype.then=function(j,ot){if(typeof j!="function"&&this.state===v||typeof ot!="function"&&this.state===h)return this;var J=new this.constructor(f);if(this.state!==_){var st=this.state===v?j:ot;T(J,st,this.outcome)}else this.queue.push(new y(J,j,ot));return J};function y(j,ot,J){this.promise=j,typeof ot=="function"&&(this.onFulfilled=ot,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}y.prototype.callFulfilled=function(j){g.resolve(this.promise,j)},y.prototype.otherCallFulfilled=function(j){T(this.promise,this.onFulfilled,j)},y.prototype.callRejected=function(j){g.reject(this.promise,j)},y.prototype.otherCallRejected=function(j){T(this.promise,this.onRejected,j)};function T(j,ot,J){u(function(){var st;try{st=ot(J)}catch(Xt){return g.reject(j,Xt)}st===j?g.reject(j,new TypeError("Cannot resolve promise with itself")):g.resolve(j,st)})}g.resolve=function(j,ot){var J=R(O,ot);if(J.status==="error")return g.reject(j,J.value);var st=J.value;if(st)H(j,st);else{j.state=v,j.outcome=ot;for(var Xt=-1,me=j.queue.length;++Xt<me;)j.queue[Xt].callFulfilled(ot)}return j},g.reject=function(j,ot){j.state=h,j.outcome=ot;for(var J=-1,st=j.queue.length;++J<st;)j.queue[J].callRejected(ot);return j};function O(j){var ot=j&&j.then;if(j&&(typeof j=="object"||typeof j=="function")&&typeof ot=="function")return function(){ot.apply(j,arguments)}}function H(j,ot){var J=!1;function st(Ce){J||(J=!0,g.reject(j,Ce))}function Xt(Ce){J||(J=!0,g.resolve(j,Ce))}function me(){ot(Xt,st)}var pe=R(me);pe.status==="error"&&st(pe.value)}function R(j,ot){var J={};try{J.value=j(ot),J.status="success"}catch(st){J.status="error",J.value=st}return J}m.resolve=k;function k(j){return j instanceof this?j:g.resolve(new this(f),j)}m.reject=V;function V(j){var ot=new this(f);return g.reject(ot,j)}m.all=Ut;function Ut(j){var ot=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=j.length,st=!1;if(!J)return this.resolve([]);for(var Xt=new Array(J),me=0,pe=-1,Ce=new this(f);++pe<J;)be(j[pe],pe);return Ce;function be(Bt,Te){ot.resolve(Bt).then(pt,function(Q){st||(st=!0,g.reject(Ce,Q))});function pt(Q){Xt[Te]=Q,++me===J&&!st&&(st=!0,g.resolve(Ce,Xt))}}}m.race=de;function de(j){var ot=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=j.length,st=!1;if(!J)return this.resolve([]);for(var Xt=-1,me=new this(f);++Xt<J;)pe(j[Xt]);return me;function pe(Ce){ot.resolve(Ce).then(function(be){st||(st=!0,g.resolve(me,be))},function(be){st||(st=!0,g.reject(me,be))})}}},{1:1}],3:[function(s,o,c){(function(u){"use strict";typeof u.Promise!="function"&&(u.Promise=s(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(s,o,c){"use strict";var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d};function f(d,E){if(!(d instanceof E))throw new TypeError("Cannot call a class as a function")}function g(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var h=g();function v(){try{if(!h||!h.open)return!1;var d=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),E=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!d||E)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function _(d,E){d=d||[],E=E||{};try{return new Blob(d,E)}catch(D){if(D.name!=="TypeError")throw D;for(var S=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,C=new S,x=0;x<d.length;x+=1)C.append(d[x]);return C.getBlob(E.type)}}typeof Promise>"u"&&s(3);var m=Promise;function y(d,E){E&&d.then(function(S){E(null,S)},function(S){E(S)})}function T(d,E,S){typeof E=="function"&&d.then(E),typeof S=="function"&&d.catch(S)}function O(d){return typeof d!="string"&&(console.warn(d+" used as a key, but it is not a string."),d=String(d)),d}function H(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var R="local-forage-detect-blob-support",k=void 0,V={},Ut=Object.prototype.toString,de="readonly",j="readwrite";function ot(d){for(var E=d.length,S=new ArrayBuffer(E),C=new Uint8Array(S),x=0;x<E;x++)C[x]=d.charCodeAt(x);return S}function J(d){return new m(function(E){var S=d.transaction(R,j),C=_([""]);S.objectStore(R).put(C,"key"),S.onabort=function(x){x.preventDefault(),x.stopPropagation(),E(!1)},S.oncomplete=function(){var x=navigator.userAgent.match(/Chrome\/(\d+)/),D=navigator.userAgent.match(/Edge\//);E(D||!x||parseInt(x[1],10)>=43)}}).catch(function(){return!1})}function st(d){return typeof k=="boolean"?m.resolve(k):J(d).then(function(E){return k=E,k})}function Xt(d){var E=V[d.name],S={};S.promise=new m(function(C,x){S.resolve=C,S.reject=x}),E.deferredOperations.push(S),E.dbReady?E.dbReady=E.dbReady.then(function(){return S.promise}):E.dbReady=S.promise}function me(d){var E=V[d.name],S=E.deferredOperations.pop();if(S)return S.resolve(),S.promise}function pe(d,E){var S=V[d.name],C=S.deferredOperations.pop();if(C)return C.reject(E),C.promise}function Ce(d,E){return new m(function(S,C){if(V[d.name]=V[d.name]||en(),d.db)if(E)Xt(d),d.db.close();else return S(d.db);var x=[d.name];E&&x.push(d.version);var D=h.open.apply(h,x);E&&(D.onupgradeneeded=function(P){var U=D.result;try{U.createObjectStore(d.storeName),P.oldVersion<=1&&U.createObjectStore(R)}catch(F){if(F.name==="ConstraintError")console.warn('The database "'+d.name+'" has been upgraded from version '+P.oldVersion+" to version "+P.newVersion+', but the storage "'+d.storeName+'" already exists.');else throw F}}),D.onerror=function(P){P.preventDefault(),C(D.error)},D.onsuccess=function(){var P=D.result;P.onversionchange=function(U){U.target.close()},S(P),me(d)}})}function be(d){return Ce(d,!1)}function Bt(d){return Ce(d,!0)}function Te(d,E){if(!d.db)return!0;var S=!d.db.objectStoreNames.contains(d.storeName),C=d.version<d.db.version,x=d.version>d.db.version;if(C&&(d.version!==E&&console.warn('The database "'+d.name+`" can't be downgraded from version `+d.db.version+" to version "+d.version+"."),d.version=d.db.version),x||S){if(S){var D=d.db.version+1;D>d.version&&(d.version=D)}return!0}return!1}function pt(d){return new m(function(E,S){var C=new FileReader;C.onerror=S,C.onloadend=function(x){var D=btoa(x.target.result||"");E({__local_forage_encoded_blob:!0,data:D,type:d.type})},C.readAsBinaryString(d)})}function Q(d){var E=ot(atob(d.data));return _([E],{type:d.type})}function we(d){return d&&d.__local_forage_encoded_blob}function cr(d){var E=this,S=E._initReady().then(function(){var C=V[E._dbInfo.name];if(C&&C.dbReady)return C.dbReady});return T(S,d,d),S}function jr(d){Xt(d);for(var E=V[d.name],S=E.forages,C=0;C<S.length;C++){var x=S[C];x._dbInfo.db&&(x._dbInfo.db.close(),x._dbInfo.db=null)}return d.db=null,be(d).then(function(D){return d.db=D,Te(d)?Bt(d):D}).then(function(D){d.db=E.db=D;for(var P=0;P<S.length;P++)S[P]._dbInfo.db=D}).catch(function(D){throw pe(d,D),D})}function ke(d,E,S,C){C===void 0&&(C=1);try{var x=d.db.transaction(d.storeName,E);S(null,x)}catch(D){if(C>0&&(!d.db||D.name==="InvalidStateError"||D.name==="NotFoundError"))return m.resolve().then(function(){if(!d.db||D.name==="NotFoundError"&&!d.db.objectStoreNames.contains(d.storeName)&&d.version<=d.db.version)return d.db&&(d.version=d.db.version+1),Bt(d)}).then(function(){return jr(d).then(function(){ke(d,E,S,C-1)})}).catch(S);S(D)}}function en(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Hn(d){var E=this,S={db:null};if(d)for(var C in d)S[C]=d[C];var x=V[S.name];x||(x=en(),V[S.name]=x),x.forages.push(E),E._initReady||(E._initReady=E.ready,E.ready=cr);var D=[];function P(){return m.resolve()}for(var U=0;U<x.forages.length;U++){var F=x.forages[U];F!==E&&D.push(F._initReady().catch(P))}var $=x.forages.slice(0);return m.all(D).then(function(){return S.db=x.db,be(S)}).then(function(B){return S.db=B,Te(S,E._defaultConfig.version)?Bt(S):B}).then(function(B){S.db=x.db=B,E._dbInfo=S;for(var G=0;G<$.length;G++){var mt=$[G];mt!==E&&(mt._dbInfo.db=S.db,mt._dbInfo.version=S.version)}})}function kn(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){ke(S._dbInfo,de,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=F.get(d);$.onsuccess=function(){var B=$.result;B===void 0&&(B=null),we(B)&&(B=Q(B)),x(B)},$.onerror=function(){D($.error)}}catch(B){D(B)}})}).catch(D)});return y(C,E),C}function Hi(d,E){var S=this,C=new m(function(x,D){S.ready().then(function(){ke(S._dbInfo,de,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=F.openCursor(),B=1;$.onsuccess=function(){var G=$.result;if(G){var mt=G.value;we(mt)&&(mt=Q(mt));var he=d(mt,G.key,B++);he!==void 0?x(he):G.continue()}else x()},$.onerror=function(){D($.error)}}catch(G){D(G)}})}).catch(D)});return y(C,E),C}function Wi(d,E,S){var C=this;d=O(d);var x=new m(function(D,P){var U;C.ready().then(function(){return U=C._dbInfo,Ut.call(E)==="[object Blob]"?st(U.db).then(function(F){return F?E:pt(E)}):E}).then(function(F){ke(C._dbInfo,j,function($,B){if($)return P($);try{var G=B.objectStore(C._dbInfo.storeName);F===null&&(F=void 0);var mt=G.put(F,d);B.oncomplete=function(){F===void 0&&(F=null),D(F)},B.onabort=B.onerror=function(){var he=mt.error?mt.error:mt.transaction.error;P(he)}}catch(he){P(he)}})}).catch(P)});return y(x,S),x}function ji(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){ke(S._dbInfo,j,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=F.delete(d);U.oncomplete=function(){x()},U.onerror=function(){D($.error)},U.onabort=function(){var B=$.error?$.error:$.transaction.error;D(B)}}catch(B){D(B)}})}).catch(D)});return y(C,E),C}function Mn(d){var E=this,S=new m(function(C,x){E.ready().then(function(){ke(E._dbInfo,j,function(D,P){if(D)return x(D);try{var U=P.objectStore(E._dbInfo.storeName),F=U.clear();P.oncomplete=function(){C()},P.onabort=P.onerror=function(){var $=F.error?F.error:F.transaction.error;x($)}}catch($){x($)}})}).catch(x)});return y(S,d),S}function Pe(d){var E=this,S=new m(function(C,x){E.ready().then(function(){ke(E._dbInfo,de,function(D,P){if(D)return x(D);try{var U=P.objectStore(E._dbInfo.storeName),F=U.count();F.onsuccess=function(){C(F.result)},F.onerror=function(){x(F.error)}}catch($){x($)}})}).catch(x)});return y(S,d),S}function Wr(d,E){var S=this,C=new m(function(x,D){if(d<0){x(null);return}S.ready().then(function(){ke(S._dbInfo,de,function(P,U){if(P)return D(P);try{var F=U.objectStore(S._dbInfo.storeName),$=!1,B=F.openKeyCursor();B.onsuccess=function(){var G=B.result;if(!G){x(null);return}d===0||$?x(G.key):($=!0,G.advance(d))},B.onerror=function(){D(B.error)}}catch(G){D(G)}})}).catch(D)});return y(C,E),C}function rs(d){var E=this,S=new m(function(C,x){E.ready().then(function(){ke(E._dbInfo,de,function(D,P){if(D)return x(D);try{var U=P.objectStore(E._dbInfo.storeName),F=U.openKeyCursor(),$=[];F.onsuccess=function(){var B=F.result;if(!B){C($);return}$.push(B.key),B.continue()},F.onerror=function(){x(F.error)}}catch(B){x(B)}})}).catch(x)});return y(S,d),S}function a(d,E){E=H.apply(this,arguments);var S=this.config();d=typeof d!="function"&&d||{},d.name||(d.name=d.name||S.name,d.storeName=d.storeName||S.storeName);var C=this,x;if(!d.name)x=m.reject("Invalid arguments");else{var D=d.name===S.name&&C._dbInfo.db,P=D?m.resolve(C._dbInfo.db):be(d).then(function(U){var F=V[d.name],$=F.forages;F.db=U;for(var B=0;B<$.length;B++)$[B]._dbInfo.db=U;return U});d.storeName?x=P.then(function(U){if(U.objectStoreNames.contains(d.storeName)){var F=U.version+1;Xt(d);var $=V[d.name],B=$.forages;U.close();for(var G=0;G<B.length;G++){var mt=B[G];mt._dbInfo.db=null,mt._dbInfo.version=F}var he=new m(function(oe,Ie){var ye=h.open(d.name,F);ye.onerror=function(Ve){var Wu=ye.result;Wu.close(),Ie(Ve)},ye.onupgradeneeded=function(){var Ve=ye.result;Ve.deleteObjectStore(d.storeName)},ye.onsuccess=function(){var Ve=ye.result;Ve.close(),oe(Ve)}});return he.then(function(oe){$.db=oe;for(var Ie=0;Ie<B.length;Ie++){var ye=B[Ie];ye._dbInfo.db=oe,me(ye._dbInfo)}}).catch(function(oe){throw(pe(d,oe)||m.resolve()).catch(function(){}),oe})}}):x=P.then(function(U){Xt(d);var F=V[d.name],$=F.forages;U.close();for(var B=0;B<$.length;B++){var G=$[B];G._dbInfo.db=null}var mt=new m(function(he,oe){var Ie=h.deleteDatabase(d.name);Ie.onerror=function(){var ye=Ie.result;ye&&ye.close(),oe(Ie.error)},Ie.onblocked=function(){console.warn('dropInstance blocked for database "'+d.name+'" until all open connections are closed')},Ie.onsuccess=function(){var ye=Ie.result;ye&&ye.close(),he(ye)}});return mt.then(function(he){F.db=he;for(var oe=0;oe<$.length;oe++){var Ie=$[oe];me(Ie._dbInfo)}}).catch(function(he){throw(pe(d,he)||m.resolve()).catch(function(){}),he})})}return y(x,E),x}var l={_driver:"asyncStorage",_initStorage:Hn,_support:v(),iterate:Hi,getItem:kn,setItem:Wi,removeItem:ji,clear:Mn,length:Pe,key:Wr,keys:rs,dropInstance:a};function p(){return typeof openDatabase=="function"}var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="~~local_forage_type~",L=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",te=W.length,bt="arbf",Ct="blob",le="si08",z="ui08",ft="uic8",Y="si16",ie="si32",$e="ur16",Me="ui32",re="fl32",X="fl64",He=te+bt.length,As=Object.prototype.toString;function Yo(d){var E=d.length*.75,S=d.length,C,x=0,D,P,U,F;d[d.length-1]==="="&&(E--,d[d.length-2]==="="&&E--);var $=new ArrayBuffer(E),B=new Uint8Array($);for(C=0;C<S;C+=4)D=I.indexOf(d[C]),P=I.indexOf(d[C+1]),U=I.indexOf(d[C+2]),F=I.indexOf(d[C+3]),B[x++]=D<<2|P>>4,B[x++]=(P&15)<<4|U>>2,B[x++]=(U&3)<<6|F&63;return $}function Ec(d){var E=new Uint8Array(d),S="",C;for(C=0;C<E.length;C+=3)S+=I[E[C]>>2],S+=I[(E[C]&3)<<4|E[C+1]>>4],S+=I[(E[C+1]&15)<<2|E[C+2]>>6],S+=I[E[C+2]&63];return E.length%3===2?S=S.substring(0,S.length-1)+"=":E.length%3===1&&(S=S.substring(0,S.length-2)+"=="),S}function $d(d,E){var S="";if(d&&(S=As.call(d)),d&&(S==="[object ArrayBuffer]"||d.buffer&&As.call(d.buffer)==="[object ArrayBuffer]")){var C,x=W;d instanceof ArrayBuffer?(C=d,x+=bt):(C=d.buffer,S==="[object Int8Array]"?x+=le:S==="[object Uint8Array]"?x+=z:S==="[object Uint8ClampedArray]"?x+=ft:S==="[object Int16Array]"?x+=Y:S==="[object Uint16Array]"?x+=$e:S==="[object Int32Array]"?x+=ie:S==="[object Uint32Array]"?x+=Me:S==="[object Float32Array]"?x+=re:S==="[object Float64Array]"?x+=X:E(new Error("Failed to get type for BinaryArray"))),E(x+Ec(C))}else if(S==="[object Blob]"){var D=new FileReader;D.onload=function(){var P=N+d.type+"~"+Ec(this.result);E(W+Ct+P)},D.readAsArrayBuffer(d)}else try{E(JSON.stringify(d))}catch(P){console.error("Couldn't convert value into a JSON string: ",d),E(null,P)}}function Fd(d){if(d.substring(0,te)!==W)return JSON.parse(d);var E=d.substring(He),S=d.substring(te,He),C;if(S===Ct&&L.test(E)){var x=E.match(L);C=x[1],E=E.substring(x[0].length)}var D=Yo(E);switch(S){case bt:return D;case Ct:return _([D],{type:C});case le:return new Int8Array(D);case z:return new Uint8Array(D);case ft:return new Uint8ClampedArray(D);case Y:return new Int16Array(D);case $e:return new Uint16Array(D);case ie:return new Int32Array(D);case Me:return new Uint32Array(D);case re:return new Float32Array(D);case X:return new Float64Array(D);default:throw new Error("Unkown type: "+S)}}var Sc={serialize:$d,deserialize:Fd,stringToBuffer:Yo,bufferToString:Ec};function th(d,E,S,C){d.executeSql("CREATE TABLE IF NOT EXISTS "+E.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],S,C)}function Hd(d){var E=this,S={db:null};if(d)for(var C in d)S[C]=typeof d[C]!="string"?d[C].toString():d[C];var x=new m(function(D,P){try{S.db=openDatabase(S.name,String(S.version),S.description,S.size)}catch(U){return P(U)}S.db.transaction(function(U){th(U,S,function(){E._dbInfo=S,D()},function(F,$){P($)})},P)});return S.serializer=Sc,x}function Fn(d,E,S,C,x,D){d.executeSql(S,C,x,function(P,U){U.code===U.SYNTAX_ERR?P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[E.storeName],function(F,$){$.rows.length?D(F,U):th(F,E,function(){F.executeSql(S,C,x,D)},D)},D):D(P,U)},D)}function Vd(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"SELECT * FROM "+P.storeName+" WHERE key = ? LIMIT 1",[d],function(F,$){var B=$.rows.length?$.rows.item(0).value:null;B&&(B=P.serializer.deserialize(B)),x(B)},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function qd(d,E){var S=this,C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"SELECT * FROM "+P.storeName,[],function(F,$){for(var B=$.rows,G=B.length,mt=0;mt<G;mt++){var he=B.item(mt),oe=he.value;if(oe&&(oe=P.serializer.deserialize(oe)),oe=d(oe,he.key,mt+1),oe!==void 0){x(oe);return}}x()},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function eh(d,E,S,C){var x=this;d=O(d);var D=new m(function(P,U){x.ready().then(function(){E===void 0&&(E=null);var F=E,$=x._dbInfo;$.serializer.serialize(E,function(B,G){G?U(G):$.db.transaction(function(mt){Fn(mt,$,"INSERT OR REPLACE INTO "+$.storeName+" (key, value) VALUES (?, ?)",[d,B],function(){P(F)},function(he,oe){U(oe)})},function(mt){if(mt.code===mt.QUOTA_ERR){if(C>0){P(eh.apply(x,[d,F,S,C-1]));return}U(mt)}})})}).catch(U)});return y(D,S),D}function Wd(d,E,S){return eh.apply(this,[d,E,S,1])}function zd(d,E){var S=this;d=O(d);var C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"DELETE FROM "+P.storeName+" WHERE key = ?",[d],function(){x()},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function Kd(d){var E=this,S=new m(function(C,x){E.ready().then(function(){var D=E._dbInfo;D.db.transaction(function(P){Fn(P,D,"DELETE FROM "+D.storeName,[],function(){C()},function(U,F){x(F)})})}).catch(x)});return y(S,d),S}function Gd(d){var E=this,S=new m(function(C,x){E.ready().then(function(){var D=E._dbInfo;D.db.transaction(function(P){Fn(P,D,"SELECT COUNT(key) as c FROM "+D.storeName,[],function(U,F){var $=F.rows.item(0).c;C($)},function(U,F){x(F)})})}).catch(x)});return y(S,d),S}function Jd(d,E){var S=this,C=new m(function(x,D){S.ready().then(function(){var P=S._dbInfo;P.db.transaction(function(U){Fn(U,P,"SELECT key FROM "+P.storeName+" WHERE id = ? LIMIT 1",[d+1],function(F,$){var B=$.rows.length?$.rows.item(0).key:null;x(B)},function(F,$){D($)})})}).catch(D)});return y(C,E),C}function Yd(d){var E=this,S=new m(function(C,x){E.ready().then(function(){var D=E._dbInfo;D.db.transaction(function(P){Fn(P,D,"SELECT key FROM "+D.storeName,[],function(U,F){for(var $=[],B=0;B<F.rows.length;B++)$.push(F.rows.item(B).key);C($)},function(U,F){x(F)})})}).catch(x)});return y(S,d),S}function Zd(d){return new m(function(E,S){d.transaction(function(C){C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(x,D){for(var P=[],U=0;U<D.rows.length;U++)P.push(D.rows.item(U).name);E({db:d,storeNames:P})},function(x,D){S(D)})},function(C){S(C)})})}function Xd(d,E){E=H.apply(this,arguments);var S=this.config();d=typeof d!="function"&&d||{},d.name||(d.name=d.name||S.name,d.storeName=d.storeName||S.storeName);var C=this,x;return d.name?x=new m(function(D){var P;d.name===S.name?P=C._dbInfo.db:P=openDatabase(d.name,"","",0),d.storeName?D({db:P,storeNames:[d.storeName]}):D(Zd(P))}).then(function(D){return new m(function(P,U){D.db.transaction(function(F){function $(he){return new m(function(oe,Ie){F.executeSql("DROP TABLE IF EXISTS "+he,[],function(){oe()},function(ye,Ve){Ie(Ve)})})}for(var B=[],G=0,mt=D.storeNames.length;G<mt;G++)B.push($(D.storeNames[G]));m.all(B).then(function(){P()}).catch(function(he){U(he)})},function(F){U(F)})})}):x=m.reject("Invalid arguments"),y(x,E),x}var Qd={_driver:"webSQLStorage",_initStorage:Hd,_support:p(),iterate:qd,getItem:Vd,setItem:Wd,removeItem:zd,clear:Kd,length:Gd,key:Jd,keys:Yd,dropInstance:Xd};function kg(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function rh(d,E){var S=d.name+"/";return d.storeName!==E.storeName&&(S+=d.storeName+"/"),S}function Om(){var d="_localforage_support_test";try{return localStorage.setItem(d,!0),localStorage.removeItem(d),!1}catch{return!0}}function Vm(){return!Om()||localStorage.length>0}function zm(d){var E=this,S={};if(d)for(var C in d)S[C]=d[C];return S.keyPrefix=rh(d,E._defaultConfig),Vm()?(E._dbInfo=S,S.serializer=Sc,m.resolve()):m.reject()}function Gm(d){var E=this,S=E.ready().then(function(){for(var C=E._dbInfo.keyPrefix,x=localStorage.length-1;x>=0;x--){var D=localStorage.key(x);D.indexOf(C)===0&&localStorage.removeItem(D)}});return y(S,d),S}function kv(d,E){var S=this;d=O(d);var C=S.ready().then(function(){var x=S._dbInfo,D=localStorage.getItem(x.keyPrefix+d);return D&&(D=x.serializer.deserialize(D)),D});return y(C,E),C}function Pv(d,E){var S=this,C=S.ready().then(function(){for(var x=S._dbInfo,D=x.keyPrefix,P=D.length,U=localStorage.length,F=1,$=0;$<U;$++){var B=localStorage.key($);if(B.indexOf(D)===0){var G=localStorage.getItem(B);if(G&&(G=x.serializer.deserialize(G)),G=d(G,B.substring(P),F++),G!==void 0)return G}}});return y(C,E),C}function Lv(d,E){var S=this,C=S.ready().then(function(){var x=S._dbInfo,D;try{D=localStorage.key(d)}catch{D=null}return D&&(D=D.substring(x.keyPrefix.length)),D});return y(C,E),C}function Mv(d){var E=this,S=E.ready().then(function(){for(var C=E._dbInfo,x=localStorage.length,D=[],P=0;P<x;P++){var U=localStorage.key(P);U.indexOf(C.keyPrefix)===0&&D.push(U.substring(C.keyPrefix.length))}return D});return y(S,d),S}function Uv(d){var E=this,S=E.keys().then(function(C){return C.length});return y(S,d),S}function jv(d,E){var S=this;d=O(d);var C=S.ready().then(function(){var x=S._dbInfo;localStorage.removeItem(x.keyPrefix+d)});return y(C,E),C}function Bv(d,E,S){var C=this;d=O(d);var x=C.ready().then(function(){E===void 0&&(E=null);var D=E;return new m(function(P,U){var F=C._dbInfo;F.serializer.serialize(E,function($,B){if(B)U(B);else try{localStorage.setItem(F.keyPrefix+d,$),P(D)}catch(G){(G.name==="QuotaExceededError"||G.name==="NS_ERROR_DOM_QUOTA_REACHED")&&U(G),U(G)}})})});return y(x,S),x}function $v(d,E){if(E=H.apply(this,arguments),d=typeof d!="function"&&d||{},!d.name){var S=this.config();d.name=d.name||S.name,d.storeName=d.storeName||S.storeName}var C=this,x;return d.name?x=new m(function(D){d.storeName?D(rh(d,C._defaultConfig)):D(d.name+"/")}).then(function(D){for(var P=localStorage.length-1;P>=0;P--){var U=localStorage.key(P);U.indexOf(D)===0&&localStorage.removeItem(U)}}):x=m.reject("Invalid arguments"),y(x,E),x}var Fv={_driver:"localStorageWrapper",_initStorage:zm,_support:kg(),iterate:Pv,getItem:kv,setItem:Bv,removeItem:jv,clear:Gm,length:Uv,key:Lv,keys:Mv,dropInstance:$v},Hv=function(d,E){return d===E||typeof d=="number"&&typeof E=="number"&&isNaN(d)&&isNaN(E)},Wv=function(d,E){for(var S=d.length,C=0;C<S;){if(Hv(d[C],E))return!0;C++}return!1},nh=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"},$a={},fh={},to={INDEXEDDB:l,WEBSQL:Qd,LOCALSTORAGE:Fv},Gv=[to.INDEXEDDB._driver,to.WEBSQL._driver,to.LOCALSTORAGE._driver],bc=["dropInstance"],Yc=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(bc),Oy={description:"",driver:Gv.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Py(d,E){d[E]=function(){var S=arguments;return d.ready().then(function(){return d[E].apply(d,S)})}}function qu(){for(var d=1;d<arguments.length;d++){var E=arguments[d];if(E)for(var S in E)E.hasOwnProperty(S)&&(nh(E[S])?arguments[0][S]=E[S].slice():arguments[0][S]=E[S])}return arguments[0]}var tb=function(){function d(E){f(this,d);for(var S in to)if(to.hasOwnProperty(S)){var C=to[S],x=C._driver;this[S]=x,$a[x]||this.defineDriver(C)}this._defaultConfig=qu({},Oy),this._config=qu({},this._defaultConfig,E),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return d.prototype.config=function(E){if((typeof E>"u"?"undefined":u(E))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in E){if(S==="storeName"&&(E[S]=E[S].replace(/\W/g,"_")),S==="version"&&typeof E[S]!="number")return new Error("Database version must be a number.");this._config[S]=E[S]}return"driver"in E&&E.driver?this.setDriver(this._config.driver):!0}else return typeof E=="string"?this._config[E]:this._config},d.prototype.defineDriver=function(E,S,C){var x=new m(function(D,P){try{var U=E._driver,F=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!E._driver){P(F);return}for(var $=Yc.concat("_initStorage"),B=0,G=$.length;B<G;B++){var mt=$[B],he=!Wv(bc,mt);if((he||E[mt])&&typeof E[mt]!="function"){P(F);return}}var oe=function(){for(var ye=function(rb){return function(){var nb=new Error("Method "+rb+" is not implemented by the current driver"),Yh=m.reject(nb);return y(Yh,arguments[arguments.length-1]),Yh}},Ve=0,Wu=bc.length;Ve<Wu;Ve++){var zu=bc[Ve];E[zu]||(E[zu]=ye(zu))}};oe();var Ie=function(ye){$a[U]&&console.info("Redefining LocalForage driver: "+U),$a[U]=E,fh[U]=ye,D()};"_support"in E?E._support&&typeof E._support=="function"?E._support().then(Ie,P):Ie(!!E._support):Ie(!0)}catch(ye){P(ye)}});return T(x,S,C),x},d.prototype.driver=function(){return this._driver||null},d.prototype.getDriver=function(E,S,C){var x=$a[E]?m.resolve($a[E]):m.reject(new Error("Driver not found."));return T(x,S,C),x},d.prototype.getSerializer=function(E){var S=m.resolve(Sc);return T(S,E),S},d.prototype.ready=function(E){var S=this,C=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return T(C,E,E),C},d.prototype.setDriver=function(E,S,C){var x=this;nh(E)||(E=[E]);var D=this._getSupportedDrivers(E);function P(){x._config.driver=x.driver()}function U(B){return x._extend(B),P(),x._ready=x._initStorage(x._config),x._ready}function F(B){return function(){var G=0;function mt(){for(;G<B.length;){var he=B[G];return G++,x._dbInfo=null,x._ready=null,x.getDriver(he).then(U).catch(mt)}P();var oe=new Error("No available storage method found.");return x._driverSet=m.reject(oe),x._driverSet}return mt()}}var $=this._driverSet!==null?this._driverSet.catch(function(){return m.resolve()}):m.resolve();return this._driverSet=$.then(function(){var B=D[0];return x._dbInfo=null,x._ready=null,x.getDriver(B).then(function(G){x._driver=G._driver,P(),x._wrapLibraryMethodsWithReady(),x._initDriver=F(D)})}).catch(function(){P();var B=new Error("No available storage method found.");return x._driverSet=m.reject(B),x._driverSet}),T(this._driverSet,S,C),this._driverSet},d.prototype.supports=function(E){return!!fh[E]},d.prototype._extend=function(E){qu(this,E)},d.prototype._getSupportedDrivers=function(E){for(var S=[],C=0,x=E.length;C<x;C++){var D=E[C];this.supports(D)&&S.push(D)}return S},d.prototype._wrapLibraryMethodsWithReady=function(){for(var E=0,S=Yc.length;E<S;E++)Py(this,Yc[E])},d.prototype.createInstance=function(E){return new d(E)},d}(),eb=new tb;o.exports=eb},{3:3}]},{},[4])(4)})}),vl=Vi(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URLBuilder=void 0;var e=function(){function r(n){try{this.base=new URL(n),this.params=new URLSearchParams(this.base.search.slice(1))}catch(i){console.error("Un-parsable URL",i)}}return r.prototype.appendQueryParam=function(n,i){this.params.append(n,i?i.toString():"")},r.prototype.clearQueryParams=function(){return this.params=new URLSearchParams,this},r.prototype.deleteQueryParam=function(n){this.params.delete(n)},r.prototype.getBase=function(){return this.base},r.prototype.getPath=function(){return this.base.pathname},r.prototype.getHostname=function(){return this.base.hostname},r.prototype.getParams=function(){return this.params},r.prototype.getQueryParam=function(n){if(!this.params)return"";var i=this.params.get(n);return!i||i==="undefined"||i==="null"?void 0:i},r.prototype.getQueryString=function(){return this.params.toString()},r.prototype.setPath=function(n){return this.base.pathname=n,this},r.prototype.setQueryParam=function(n,i){return this.params.set(n,i?i.toString():""),this},r.prototype.setQueryString=function(n){if(n)return n[0]==="?"&&(n=n.slice(1)),this.params=new URLSearchParams(n),this},r.prototype.toString=function(){var n=this.params.toString();return n===""?this.base.search="":this.base.search="?"+n,this.base.toString()},r}();t.URLBuilder=e}),fd=Vi((t,e)=>{"use strict";(function(r,n){typeof t=="object"&&typeof e<"u"?e.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self,r.fetchRetry=n())})(t,function(){"use strict";var r=function(s,o){if(o=o||{},typeof s!="function")throw new i("fetch must be a function");if(typeof o!="object")throw new i("defaults must be an object");if(o.retries!==void 0&&!n(o.retries))throw new i("retries must be a positive integer");if(o.retryDelay!==void 0&&!n(o.retryDelay)&&typeof o.retryDelay!="function")throw new i("retryDelay must be a positive integer or a function returning a positive integer");if(o.retryOn!==void 0&&!Array.isArray(o.retryOn)&&typeof o.retryOn!="function")throw new i("retryOn property expects an array or function");var c={retries:3,retryDelay:1e3,retryOn:[]};return o=Object.assign(c,o),function(u,f){var g=o.retries,h=o.retryDelay,v=o.retryOn;if(f&&f.retries!==void 0)if(n(f.retries))g=f.retries;else throw new i("retries must be a positive integer");if(f&&f.retryDelay!==void 0)if(n(f.retryDelay)||typeof f.retryDelay=="function")h=f.retryDelay;else throw new i("retryDelay must be a positive integer or a function returning a positive integer");if(f&&f.retryOn)if(Array.isArray(f.retryOn)||typeof f.retryOn=="function")v=f.retryOn;else throw new i("retryOn property expects an array or function");return new Promise(function(_,m){var y=function(O){var H=typeof Request<"u"&&u instanceof Request?u.clone():u;s(H,f).then(function(R){if(Array.isArray(v)&&v.indexOf(R.status)===-1)_(R);else if(typeof v=="function")try{return Promise.resolve(v(O,null,R)).then(function(k){k?T(O,null,R):_(R)}).catch(m)}catch(k){m(k)}else O<g?T(O,null,R):_(R)}).catch(function(R){if(typeof v=="function")try{Promise.resolve(v(O,R,null)).then(function(k){k?T(O,R,null):m(R)}).catch(function(k){m(k)})}catch(k){m(k)}else O<g?T(O,R,null):m(R)})};function T(O,H,R){var k=typeof h=="function"?h(O,H,R):h;setTimeout(function(){y(++O)},k)}y(0)})}};function n(s){return Number.isInteger(s)&&s>=0}function i(s){this.name="ArgumentError",this.message=s}return r})}),tp="9.3.10",A=class Ku{static SDK_VERSION=tp;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static{let e=Ku.SDK_VERSION.split(".").map(r=>r.padStart(2,"0")).join("");Ku.SDK_VERSION_CODE=parseInt(e,10)}},Qt={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",styleURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${A.SDK_VERSION}/dist/widget-sdk.min.css`},Dt=Jt(tn()),w=class{static log(...t){Dt.default.info(...t)}static debug(...t){Dt.default.debug(...t)}static error(...t){Dt.default.error(...t)}static warn(...t){Dt.default.warn(...t)}static info(...t){Dt.default.info(...t)}static trace(...t){Dt.default.trace(...t)}static configure(t=A.LOG_PREFIX){Dt.default.useDefaults({formatter:function(r){r.unshift(`${t} (v${A.SDK_VERSION}):`)}});let e=this.getDebugParam();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Dt.default.setLevel(Dt.default[localStorage.cooeeLogLevel]):Dt.default.setLevel(Qt.debug?Dt.default.TRACE:Dt.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
2
2
  display: inline-block;
3
3
  font-size: 14px;
4
4
  background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
@@ -4,7 +4,7 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
4
4
  `);return r>=0?n.slice(0,r):n}function yo(e,t){return e?t?`${e} ${t}`:e:t||""}var ef=j({__forward_ref__:j});function $s(e){return e.__forward_ref__=$s,e.toString=function(){return de(this())},e}function he(e){return tf(e)?e():e}function tf(e){return typeof e=="function"&&e.hasOwnProperty(ef)&&e.__forward_ref__===$s}function Z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ui(e){return vo(e,Gs)||vo(e,Ws)}function vo(e,t){return e.hasOwnProperty(t)?e[t]:null}function nf(e){return e&&(e[Gs]||e[Ws])||null}function wo(e){return e&&(e.hasOwnProperty(bo)||e.hasOwnProperty(rf))?e[bo]:null}var Gs=j({\u0275prov:j}),bo=j({\u0275inj:j}),Ws=j({ngInjectableDef:j}),rf=j({ngInjectorDef:j}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=Z({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qs(e){return e&&!!e.\u0275providers}var of=j({\u0275cmp:j}),sf=j({\u0275dir:j}),lf=j({\u0275pipe:j}),Eo=j({\u0275fac:j}),Dt=j({__NG_ELEMENT_ID__:j}),Io=j({__NG_ENV_ID__:j});function Mn(e){return typeof e=="string"?e:e==null?"":String(e)}function af(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Mn(e)}function uf(e,t){throw new R(-200,e)}function ci(e,t){throw new R(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),wr;function Ks(){return wr}function J(e){let t=wr;return wr=e,t}function Qs(e,t,n){let r=ui(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;ci(e,"Injector")}var cf={},At=cf,ff="__NG_DI_FLAG__",yn="ngTempTokenPath",hf="ngTokenPath",df=/\n/gm,pf="\u0275",_o="__source",ut;function gf(){return ut}function De(e){let t=ut;return ut=e,t}function mf(e,t=x.Default){if(ut===void 0)throw new R(-203,!1);return ut===null?Qs(e,void 0,t):ut.get(e,t&x.Optional?null:void 0,t)}function F(e,t=x.Default){return(Ks()||mf)(he(e),t)}function V(e,t=x.Default){return F(e,Rn(t))}function Rn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function br(e){let t=[];for(let n=0;n<e.length;n++){let r=he(e[n]);if(Array.isArray(r)){if(r.length===0)throw new R(900,!1);let i,o=x.Default;for(let s=0;s<r.length;s++){let l=r[s],a=yf(l);typeof a=="number"?a===-1?i=l.token:o|=a:i=l}t.push(F(i,o))}else t.push(F(r))}return t}function yf(e){return e[ff]}function vf(e,t,n,r){let i=e[yn];throw t[_o]&&i.unshift(t[_o]),e.message=wf(`
5
5
  `+e.message,i,n,r),e[hf]=i,e[yn]=null,e}function wf(e,t,n,r=null){e=e&&e.charAt(0)===`
6
6
  `&&e.charAt(1)==pf?e.slice(2):e;let i=de(t);if(Array.isArray(t))i=t.map(de).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let l=t[s];o.push(s+":"+(typeof l=="string"?JSON.stringify(l):de(l)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(df,`
7
- `)}`}function dt(e,t){return e.hasOwnProperty(Eo)?e[Eo]:null}function fi(e,t){e.forEach(n=>Array.isArray(n)?fi(n,t):t(n))}function bf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ys(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ef(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function If(e,t,n){let r=$t(e,t);return r>=0?e[r|1]=n:(r=~r,Ef(e,r,t,n)),r}function tr(e,t){let n=$t(e,t);if(n>=0)return e[n|1]}function $t(e,t){return _f(e,t,1)}function _f(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var pt={},$e=[],vn=new L(""),Xs=new L("",-1),Js=new L(""),el=class{get(e,t=At){if(t===At){let n=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw n.name="NullInjectorError",n}return t}};function Vn(e){return e[of]||null}function tl(e){return e[sf]||null}function nl(e){return e[lf]||null}function Sf(e){let t=Vn(e)||tl(e)||nl(e);return t!==null&&t.standalone}function Cf(e){return{\u0275providers:e}}function Tf(...e){return{\u0275providers:rl(!0,e),\u0275fromNgModule:!0}}function rl(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return fi(t,s=>{let l=s;Er(l,o,[],r)&&(i||=[],i.push(l))}),i!==void 0&&il(i,o),n}function il(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];hi(i,o=>{t(o,r)})}}function Er(e,t,n,r){if(e=he(e),!e)return!1;let i=null,o=wo(e),s=!o&&Vn(e);if(!o&&!s){let a=e.ngModule;if(o=wo(a),o)i=a;else return!1}else{if(s&&!s.standalone)return!1;i=e}let l=r.has(i);if(s){if(l)return!1;if(r.add(i),s.dependencies){let a=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of a)Er(u,t,n,r)}}else if(o){if(o.imports!=null&&!l){r.add(i);let u;try{fi(o.imports,c=>{Er(c,t,n,r)&&(u||=[],u.push(c))})}finally{}u!==void 0&&il(u,t)}if(!l){let u=dt(i)||(()=>new i);t({provide:i,useFactory:u,deps:$e},i),t({provide:Js,useValue:i,multi:!0},i),t({provide:vn,useValue:()=>F(i),multi:!0},i)}let a=o.providers;if(a!=null&&!l){let u=e;hi(a,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function hi(e,t){for(let n of e)qs(n)&&(n=n.\u0275providers),Array.isArray(n)?hi(n,t):t(n)}var xf=j({provide:String,useValue:j});function ol(e){return e!==null&&typeof e=="object"&&xf in e}function kf(e){return!!(e&&e.useExisting)}function Of(e){return!!(e&&e.useFactory)}function Ir(e){return typeof e=="function"}var di=new L(""),an={},Df={},nr;function pi(){return nr===void 0&&(nr=new el),nr}var Mt=class{},gi=class extends Mt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Sr(e,o=>this.processProvider(o)),this.records.set(Xs,ot(void 0,this)),r.has("environment")&&this.records.set(Mt,ot(void 0,this));let i=this.records.get(di);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Js,$e,x.Self))}destroy(){xt(this),this._destroyed=!0;let e=A(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(e)}}onDestroy(e){return xt(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){xt(this);let t=De(this),n=J(void 0),r;try{return e()}finally{De(t),J(n)}}get(e,t=At,n=x.Default){if(xt(this),e.hasOwnProperty(Io))return e[Io](this);n=Rn(n);let r,i=De(this),o=J(void 0);try{if(!(n&x.SkipSelf)){let l=this.records.get(e);if(l===void 0){let a=Pf(e)&&ui(e);a&&this.injectableDefInScope(a)?l=ot(_r(e),an):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=n&x.Self?pi():this.parent;return t=n&x.Optional&&t===At?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[yn]=s[yn]||[]).unshift(de(e)),i)throw s;return vf(s,e,"R3InjectorError",this.source)}else throw s}finally{J(o),De(i)}}resolveInjectorInitializers(){let e=A(null),t=De(this),n=J(void 0),r;try{let i=this.get(vn,$e,x.Self);for(let o of i)o()}finally{De(t),J(n),A(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(de(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=he(e);let t=Ir(e)?e:he(e&&e.provide),n=Af(e);if(!Ir(e)&&e.multi===!0){let r=this.records.get(t);r||(r=ot(void 0,an,!0),r.factory=()=>br(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=A(null);try{return t.value===an&&(t.value=Df,t.value=t.factory()),typeof t.value=="object"&&t.value&&Vf(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{A(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=he(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function _r(e){let t=ui(e),n=t!==null?t.factory:dt(e);if(n!==null)return n;if(e instanceof L)throw new R(204,!1);if(e instanceof Function)return Nf(e);throw new R(204,!1)}function Nf(e){if(e.length>0)throw new R(204,!1);let t=nf(e);return t!==null?()=>t.factory(e):()=>new e}function Af(e){if(ol(e))return ot(void 0,e.useValue);{let t=Mf(e);return ot(t,an)}}function Mf(e,t,n){let r;if(Ir(e)){let i=he(e);return dt(i)||_r(i)}else if(ol(e))r=()=>he(e.useValue);else if(Of(e))r=()=>e.useFactory(...br(e.deps||[]));else if(kf(e))r=()=>F(he(e.useExisting));else{let i=he(e&&(e.useClass||e.provide));if(Rf(e))r=()=>new i(...br(e.deps));else return dt(i)||_r(i)}return r}function xt(e){if(e.destroyed)throw new R(205,!1)}function ot(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Rf(e){return!!e.deps}function Vf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Pf(e){return typeof e=="function"||typeof e=="object"&&e instanceof L}function Sr(e,t){for(let n of e)Array.isArray(n)?Sr(n,t):n&&qs(n)?Sr(n.\u0275providers,t):t(n)}function sl(e,t){e instanceof gi&&xt(e);let n,r=De(e),i=J(void 0);try{return t()}finally{De(r),J(i)}}function Ff(){return Ks()!==void 0||gf()!=null}var ke=0,k=1,I=2,se=3,pe=4,ve=5,Rt=6,So=7,q=8,Vt=9,xe=10,ie=11,Pt=12,Co=13,It=14,ye=15,gt=16,st=17,mt=18,Pn=19,ll=20,Ve=21,rr=22,wn=23,te=24,ir=25,K=26,al=1,Ft=7,Lf=8,bn=9,ee=10;function Ze(e){return Array.isArray(e)&&typeof e[al]=="object"}function Je(e){return Array.isArray(e)&&e[al]===!0}function ul(e){return(e.flags&4)!==0}function Fn(e){return e.componentOffset>-1}function cl(e){return(e.flags&1)===1}function et(e){return!!e.template}function En(e){return(e[I]&512)!==0}function Gt(e){return(e[I]&256)===256}var jf=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function fl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Hf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Uf),zf}function zf(){let e=dl(this),t=e?.current;if(t){let n=e.previous;if(n===pt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Uf(e,t,n,r,i){let o=this.declaredInputs[r],s=dl(e)||Bf(e,{previous:pt,current:null}),l=s.current||(s.current={}),a=s.previous,u=a[o];l[o]=new jf(u&&u.currentValue,n,a===pt),fl(e,t,i,n)}var hl="__ngSimpleChanges__";function dl(e){return e[hl]||null}function Bf(e,t){return e[hl]=t}var Zf=null,H=function(e,t=null,n){Zf?.(e,t,n)},$f="svg",Gf="math";function Pe(e){for(;Array.isArray(e);)e=e[ke];return e}function pl(e,t){return Pe(t[e])}function tt(e,t){return Pe(t[e.index])}function mi(e,t){return e.data[t]}function gl(e,t){return e[t]}function Ge(e,t){let n=t[e];return Ze(n)?n:n[ke]}function yi(e){return(e[I]&128)===128}function yt(e,t){return t==null?null:e[t]}function ml(e){e[st]=0}function vi(e){e[I]&1024||(e[I]|=1024,yi(e)&&jn(e))}function Wf(e,t){for(;e>0;)t=t[It],e--;return t}function Ln(e){return!!(e[I]&9216||e[te]?.dirty)}function Cr(e){e[xe].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),Ln(e)&&jn(e)}function jn(e){e[xe].changeDetectionScheduler?.notify(0);let t=We(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!yi(t)));)t=We(t)}function yl(e,t){if(Gt(e))throw new R(911,!1);e[Ve]===null&&(e[Ve]=[]),e[Ve].push(t)}function qf(e,t){if(e[Ve]===null)return;let n=e[Ve].indexOf(t);n!==-1&&e[Ve].splice(n,1)}function We(e){let t=e[se];return Je(t)?t[se]:t}var O={lFrame:Tl(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Tr=!1;function Kf(){return O.lFrame.elementDepthCount}function Qf(){O.lFrame.elementDepthCount++}function Yf(){O.lFrame.elementDepthCount--}function vl(){return O.bindingsEnabled}function Xf(){return O.skipHydrationRootTNode!==null}function Jf(e){return O.skipHydrationRootTNode===e}function eh(){O.skipHydrationRootTNode=null}function z(){return O.lFrame.lView}function we(){return O.lFrame.tView}function Wt(){let e=wl();for(;e!==null&&e.type===64;)e=e.parent;return e}function wl(){return O.lFrame.currentTNode}function th(){let e=O.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _t(e,t){let n=O.lFrame;n.currentTNode=e,n.isParent=t}function bl(){return O.lFrame.isParent}function nh(){O.lFrame.isParent=!1}function El(){return Tr}function To(e){let t=Tr;return Tr=e,t}function Il(){let e=O.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function rh(e){return O.lFrame.bindingIndex=e}function Hn(){return O.lFrame.bindingIndex++}function ih(e){let t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function oh(){return O.lFrame.inI18n}function sh(e,t){let n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,xr(t)}function lh(){return O.lFrame.currentDirectiveIndex}function xr(e){O.lFrame.currentDirectiveIndex=e}function ah(e){let t=O.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _l(e){O.lFrame.currentQueryIndex=e}function uh(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[ve]:null}function Sl(e,t,n){if(n&x.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&x.Host))&&(i=uh(o),!(i===null||(o=o[It],i.type&10))););if(i===null)return!1;t=i,e=o}let r=O.lFrame=Cl();return r.currentTNode=t,r.lView=e,!0}function wi(e){let t=Cl(),n=e[k];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cl(){let e=O.lFrame,t=e===null?null:e.child;return t===null?Tl(e):t}function Tl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function xl(){let e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kl=xl;function bi(){let e=xl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ch(e){return(O.lFrame.contextLView=Wf(e,O.lFrame.contextLView))[q]}function nt(){return O.lFrame.selectedIndex}function qe(e){O.lFrame.selectedIndex=e}function fh(){let e=O.lFrame;return mi(e.tView,e.selectedIndex)}function hh(){return O.lFrame.currentNamespace}var Ol=!0;function Ei(){return Ol}function Ii(e){Ol=e}function dh(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Hf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Dl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:a,ngOnDestroy:u}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),l&&(e.viewHooks??=[]).push(-n,l),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function un(e,t,n){Nl(e,t,3,n)}function cn(e,t,n,r){(e[I]&3)===n&&Nl(e,t,n,r)}function or(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function Nl(e,t,n,r){let i=r!==void 0?e[st]&65535:0,o=r??-1,s=t.length-1,l=0;for(let a=i;a<s;a++)if(typeof t[a+1]=="number"){if(l=t[a],r!=null&&l>=r)break}else t[a]<0&&(e[st]+=65536),(l<o||o==-1)&&(ph(e,n,t,a),e[st]=(e[st]&4294901760)+a+2),a++}function xo(e,t){H(4,e,t);let n=A(null);try{t.call(e)}finally{A(n),H(5,e,t)}}function ph(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],l=e[s];i?e[I]>>14<e[st]>>16&&(e[I]&3)===t&&(e[I]+=16384,xo(l,o)):xo(l,o)}var ct=-1,_i=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function gh(e){return e instanceof _i}function mh(e){return(e.flags&8)!==0}function yh(e){return(e.flags&16)!==0}function vh(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],l=n[r++];e.setAttribute(t,s,l,o)}else{let o=i,s=n[++r];bh(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function wh(e){return e===3||e===4||e===6}function bh(e){return e.charCodeAt(0)===64}function Si(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?ko(e,n,i,null,t[++r]):ko(e,n,i,null,null))}}return e}function ko(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let l=e[o++];if(typeof l=="number"){if(l===t){s=-1;break}else if(l>t){s=o-1;break}}}for(;o<e.length;){let l=e[o];if(typeof l=="number")break;if(l===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var sr={},Eh=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Rn(n);let r=this.injector.get(e,sr,n);return r!==sr||t===sr?r:this.parentInjector.get(e,t,n)}};function Ih(e){return e!==ct}function kr(e){return e&32767}function _h(e){return e>>16}function Or(e,t){let n=_h(e),r=t;for(;n>0;)r=r[It],n--;return r}var Dr=!0;function In(e){let t=Dr;return Dr=e,t}var Sh=256,Al=Sh-1,Ml=5,Ch=0,me={};function Th(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Dt)&&(r=n[Dt]),r==null&&(r=n[Dt]=Ch++);let i=r&Al,o=1<<i;t.data[e+(i>>Ml)]|=o}function Rl(e,t){let n=Vl(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,lr(r.data,e),lr(t,null),lr(r.blueprint,null));let i=Pl(e,t),o=e.injectorIndex;if(Ih(i)){let s=kr(i),l=Or(i,t),a=l[k].data;for(let u=0;u<8;u++)t[o+u]=l[s+u]|a[s+u]}return t[o+8]=i,o}function lr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ul(i),r===null)return ct;if(n++,i=i[It],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ct}function xh(e,t,n){Th(e,t,n)}function Fl(e,t,n){if(n&x.Optional||e!==void 0)return e;ci(t,"NodeInjector")}function Ll(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),(n&(x.Self|x.Host))===0){let i=e[Vt],o=J(void 0);try{return i?i.get(t,r,n&x.Optional):Qs(t,r,n&x.Optional)}finally{J(o)}}return Fl(r,t,n)}function jl(e,t,n,r=x.Default,i){if(e!==null){if(t[I]&2048&&!(r&x.Self)){let s=Ah(e,t,n,r,me);if(s!==me)return s}let o=Hl(e,t,n,r,me);if(o!==me)return o}return Ll(t,n,r,i)}function Hl(e,t,n,r,i){let o=Dh(n);if(typeof o=="function"){if(!Sl(t,e,r))return r&x.Host?Fl(i,n,r):Ll(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&x.Optional))ci(n);else return s}finally{kl()}}else if(typeof o=="number"){let s=null,l=Vl(e,t),a=ct,u=r&x.Host?t[ye][ve]:null;for((l===-1||r&x.SkipSelf)&&(a=l===-1?Pl(e,t):t[l+8],a===ct||!Do(r,!1)?l=-1:(s=t[k],l=kr(a),t=Or(a,t)));l!==-1;){let c=t[k];if(Oo(o,l,c.data)){let f=kh(l,t,n,s,r,u);if(f!==me)return f}a=t[l+8],a!==ct&&Do(r,t[k].data[l+8]===u)&&Oo(o,l,t)?(s=c,l=kr(a),t=Or(a,t)):l=-1}}return i}function kh(e,t,n,r,i,o){let s=t[k],l=s.data[e+8],a=r==null?Fn(l)&&Dr:r!=s&&(l.type&3)!==0,u=i&x.Host&&o===l,c=Oh(l,s,n,a,u);return c!==null?Nr(t,s,c,l):me}function Oh(e,t,n,r,i){let o=e.providerIndexes,s=t.data,l=o&1048575,a=e.directiveStart,u=e.directiveEnd,c=o>>20,f=r?l:l+c,g=i?l+c:u;for(let p=f;p<g;p++){let m=s[p];if(p<a&&n===m||p>=a&&m.type===n)return p}if(i){let p=s[a];if(p&&et(p)&&p.type===n)return a}return null}function Nr(e,t,n,r){let i=e[n],o=t.data;if(gh(i)){let s=i;s.resolving&&uf(af(o[n]));let l=In(s.canSeeViewProviders);s.resolving=!0;let a,u=s.injectImpl?J(s.injectImpl):null,c=Sl(e,r,x.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&dh(n,o[n],t)}finally{u!==null&&J(u),In(l),s.resolving=!1,kl()}}return i}function Dh(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Dt)?e[Dt]:void 0;return typeof t=="number"?t>=0?t&Al:Nh:t}function Oo(e,t,n){let r=1<<e;return!!(n[t+(e>>Ml)]&r)}function Do(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var zl=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return jl(this._tNode,this._lView,e,Rn(n),t)}};function Nh(){return new zl(Wt(),z())}function Ah(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[I]&2048&&!En(s);){let l=Hl(o,s,n,r|x.Self,me);if(l!==me)return l;let a=o.parent;if(!a){let u=s[ll];if(u){let c=u.get(n,me,r);if(c!==me)return c}a=Ul(s),s=s[It]}o=a}return i}function Ul(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[ve]:null}function No(e,t=null,n=null,r){let i=Mh(e,t,n,r);return i.resolveInjectorInitializers(),i}function Mh(e,t=null,n=null,r,i=new Set){let o=[n||$e,Tf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new gi(o,t||pi(),r||null,i)}var zn=class Bl{static THROW_IF_NOT_FOUND=At;static NULL=new el;static create(t,n){if(Array.isArray(t))return No({name:""},n,t,"");{let r=t.name??"";return No({name:r},t.parent,t.providers,r)}}static \u0275prov=Z({token:Bl,providedIn:"any",factory:()=>F(Xs)});static __NG_ELEMENT_ID__=-1},Rh=new L("");Rh.__NG_ELEMENT_ID__=e=>{let t=Wt();if(t===null)throw new R(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new R(204,!1)};var Zl=!1,$l=(()=>{class e{static __NG_ELEMENT_ID__=Ph;static __NG_ENV_ID__=n=>n}return e})(),Vh=class extends $l{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return yl(this._lView,e),()=>qf(this._lView,e)}};function Ph(){return new Vh(z())}var qt=class{},Ci=new L("",{providedIn:"root",factory:()=>!1}),Gl=new L(""),Ti=new L(""),Un=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Cc(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})(),Fh=class extends Zt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ff()&&(this.destroyRef=V($l,{optional:!0})??void 0,this.pendingTasks=V(Un,{optional:!0})??void 0)}emit(e){let t=A(null);try{super.next(e)}finally{A(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),i=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof Te&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},Ae=Fh;function _n(...e){}function Wl(e){let t,n;function r(){e=_n;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ao(e){return queueMicrotask(()=>e()),()=>{e=_n}}var xi="isAngularZone",Sn=xi+"_ID",Lh=0,ne=class Ar{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ae(!1);onMicrotaskEmpty=new Ae(!1);onStable=new Ae(!1);onError=new Ae(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Zl}=t;if(typeof Zone>"u")throw new R(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,zh(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xi)===!0}static assertInAngularZone(){if(!Ar.isInAngularZone())throw new R(909,!1)}static assertNotInAngularZone(){if(Ar.isInAngularZone())throw new R(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,jh,_n,_n);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},jh={};function ki(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Hh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Wl(()=>{e.callbackScheduled=!1,Mr(e),e.isCheckStableRunning=!0,ki(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Mr(e)}function zh(e){let t=()=>{Hh(e)},n=Lh++;e._inner=e._inner.fork({name:"angular",properties:{[xi]:!0,[Sn]:n,[Sn+n]:!0},onInvokeTask:(r,i,o,s,l,a)=>{if(Uh(a))return r.invokeTask(o,s,l,a);try{return Mo(e),r.invokeTask(o,s,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ro(e)}},onInvoke:(r,i,o,s,l,a,u)=>{try{return Mo(e),r.invoke(o,s,l,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Bh(a)&&t(),Ro(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Mr(e),ki(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Mr(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Mo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ro(e){e._nesting--,ki(e)}var ql=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ae;onMicrotaskEmpty=new Ae;onStable=new Ae;onError=new Ae;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Uh(e){return Kl(e,"__ignore_ng_zone__")}function Bh(e){return Kl(e,"__scheduler_tick__")}function Kl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Kt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Zh=new L("",{providedIn:"root",factory:()=>{let e=V(ne),t=V(Kt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $h(){return Ql(Wt(),z())}function Ql(e,t){return new Yl(tt(e,t))}var Yl=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=$h}return e})();function Vo(e,t){let n=lc(e),r=n[Me];return t?.equal&&(r.equal=t.equal),n.set=i=>Es(r,i),n.update=i=>ac(r,i),n.asReadonly=Gh.bind(n),n}function Gh(){let e=this[Me];if(e.readonlyFn===void 0){let t=()=>this();t[Me]=e,e.readonlyFn=t}return e.readonlyFn}function Xl(e){return(e.flags&128)===128}var Jl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Jl||{}),ea=new Map,Wh=0;function qh(){return Wh++}function Kh(e){ea.set(e[Pn],e)}function Rr(e){ea.delete(e[Pn])}var Po="__ngContext__";function Qt(e,t){Ze(t)?(e[Po]=t[Pn],Kh(t)):e[Po]=t}function ta(e){return ra(e[Pt])}function na(e){return ra(e[pe])}function ra(e){for(;e!==null&&!Je(e);)e=e[pe];return e}var Vr;function Qh(e){Vr=e}function ia(){if(Vr!==void 0)return Vr;if(typeof document<"u")return document;throw new R(210,!1)}var oa=new L("",{providedIn:"root",factory:()=>Yh}),Yh="ng",sa=new L(""),Oi=new L("",{providedIn:"platform",factory:()=>"unknown"}),la=new L("",{providedIn:"root",factory:()=>ia().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Xh="h",Jh="b",aa=!1,ed=new L("",{providedIn:"root",factory:()=>aa}),ua=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(ua||{}),Di=new L(""),Fo=new Set;function Bn(e){Fo.has(e)||(Fo.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var td=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})(),nd=()=>null;function ca(e,t,n=!1){return nd(e,t,n)}function fa(e,t){let n=e.contentQueries;if(n!==null){let r=A(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let l=e.data[s];_l(o),l.contentQueries(2,t[s],s)}}}finally{A(r)}}}function Pr(e,t,n){_l(0);let r=A(null);try{t(e,n)}finally{A(r)}}function ha(e,t,n){if(ul(t)){let r=A(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let l=e.data[s];if(l.contentQueries){let a=n[s];l.contentQueries(1,a,s)}}}finally{A(r)}}}var Ce=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ce||{}),tn;function rd(){if(tn===void 0&&(tn=null,mn.trustedTypes))try{tn=mn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return tn}function Zn(e){return rd()?.createHTML(e)||e}var nn;function id(){if(nn===void 0&&(nn=null,mn.trustedTypes))try{nn=mn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nn}function Lo(e){return id()?.createHTML(e)||e}var rt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Zs})`}},od=class extends rt{getTypeName(){return"HTML"}},sd=class extends rt{getTypeName(){return"Style"}},ld=class extends rt{getTypeName(){return"Script"}},ad=class extends rt{getTypeName(){return"URL"}},ud=class extends rt{getTypeName(){return"ResourceURL"}};function Ne(e){return e instanceof rt?e.changingThisBreaksApplicationSecurity:e}function ze(e,t){let n=cd(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Zs})`)}return n===t}function cd(e){return e instanceof rt&&e.getTypeName()||null}function fd(e){return new od(e)}function hd(e){return new sd(e)}function dd(e){return new ld(e)}function pd(e){return new ad(e)}function gd(e){return new ud(e)}function md(e){let t=new vd(e);return wd()?new yd(t):t}var yd=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(Zn(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},vd=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=Zn(e),t}};function wd(){try{return!!new window.DOMParser().parseFromString(Zn(""),"text/html")}catch{return!1}}var bd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ni(e){return e=String(e),e.match(bd)?e:"unsafe:"+e}function Oe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Yt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var da=Oe("area,br,col,hr,img,wbr"),pa=Oe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ga=Oe("rp,rt"),Ed=Yt(ga,pa),Id=Yt(pa,Oe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),_d=Yt(ga,Oe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jo=Yt(da,Id,_d,Ed),ma=Oe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sd=Oe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Cd=Oe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Td=Yt(ma,Sd,Cd),xd=Oe("script,style,template"),kd=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=Nd(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=Dd(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Ho(e).toLowerCase();if(!jo.hasOwnProperty(t))return this.sanitizedSomething=!0,!xd.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!Td.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let l=i.value;ma[s]&&(l=Ni(l)),this.buf.push(" ",o,'="',zo(l),'"')}return this.buf.push(">"),!0}endElement(e){let t=Ho(e).toLowerCase();jo.hasOwnProperty(t)&&!da.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(zo(e))}};function Od(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Dd(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw ya(t);return t}function Nd(e){let t=e.firstChild;if(t&&Od(e,t))throw ya(t);return t}function Ho(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function ya(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Ad=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Md=/([^\#-~ |!])/g;function zo(e){return e.replace(/&/g,"&amp;").replace(Ad,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Md,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var rn;function va(e,t){let n=null;try{rn=rn||md(e);let r=t?String(t):"";n=rn.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=rn.getInertBodyElement(r)}while(r!==o);let s=new kd().sanitizeChildren(Uo(n)||n);return Zn(s)}finally{if(n){let r=Uo(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Uo(e){return"content"in e&&Rd(e)?e.content:null}function Rd(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var _e=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(_e||{});function wa(e){let t=ba();return t?Lo(t.sanitize(_e.HTML,e)||""):ze(e,"HTML")?Lo(Ne(e)):va(ia(),Mn(e))}function Vd(e){let t=ba();return t?t.sanitize(_e.URL,e)||"":ze(e,"URL")?Ne(e):Ni(Mn(e))}function ba(){let e=z();return e&&e[xe].sanitizer}function Pd(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Ea="ng-template";function Fd(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Pd(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Ai(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Ai(e){return e.type===4&&e.value!==Ea}function Ld(e,t,n){let r=e.type===4&&!n?Ea:e.value;return t===r}function jd(e,t,n){let r=4,i=e.attrs,o=i!==null?Ud(i):0,s=!1;for(let l=0;l<t.length;l++){let a=t[l];if(typeof a=="number"){if(!s&&!fe(r)&&!fe(a))return!1;if(s&&fe(a))continue;s=!1,r=a|r&1;continue}if(!s)if(r&4){if(r=2|r&1,a!==""&&!Ld(e,a,n)||a===""&&t.length===1){if(fe(r))return!1;s=!0}}else if(r&8){if(i===null||!Fd(e,i,a,n)){if(fe(r))return!1;s=!0}}else{let u=t[++l],c=Hd(a,i,Ai(e),n);if(c===-1){if(fe(r))return!1;s=!0;continue}if(u!==""){let f;if(c>o?f="":f=i[c+1].toLowerCase(),r&2&&u!==f){if(fe(r))return!1;s=!0}}}}return fe(r)||s}function fe(e){return(e&1)===0}function Hd(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let l=t[++i];for(;typeof l=="string";)l=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return Bd(t,e)}function zd(e,t,n=!1){for(let r=0;r<t.length;r++)if(jd(e,t[r],n))return!0;return!1}function Ud(e){for(let t=0;t<e.length;t++){let n=e[t];if(wh(n))return t}return e.length}function Bd(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Bo(e,t){return e?":not("+t.trim()+")":t}function Zd(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let l=e[++n];i+="["+s+(l.length>0?'="'+l+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!fe(s)&&(t+=Bo(o,i),i=""),r=s,o=o||!fe(r);n++}return i!==""&&(t+=Bo(o,i)),t}function $d(e){return e.map(Zd).join(",")}function Gd(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!fe(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var je={};function Wd(e,t){return e.createText(t)}function qd(e,t,n){e.setValue(t,n)}function Ia(e,t,n){return e.createElement(t,n)}function Fr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function _a(e,t,n){e.appendChild(t,n)}function Zo(e,t,n,r,i){r!==null?Fr(e,t,n,r,i):_a(e,t,n)}function Kd(e,t,n){e.removeChild(null,t,n)}function Qd(e,t,n){e.setAttribute(t,"style",n)}function Yd(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Sa(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&vh(e,t,r),i!==null&&Yd(e,t,i),o!==null&&Qd(e,t,o)}function Mi(e,t,n,r,i,o,s,l,a,u,c){let f=K+r,g=f+i,p=Xd(f,g),m=typeof u=="function"?u():u;return p[k]={type:e,blueprint:p,template:n,queries:null,viewQuery:l,declTNode:t,data:p.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:g,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:a,consts:m,incompleteFirstPass:!1,ssrId:c}}function Xd(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:je);return n}function Jd(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Mi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ri(e,t,n,r,i,o,s,l,a,u,c){let f=t.blueprint.slice();return f[ke]=i,f[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(f[I]|=2048),ml(f),f[se]=f[It]=e,f[q]=n,f[xe]=s||e&&e[xe],f[ie]=l||e&&e[ie],f[Vt]=a||e&&e[Vt]||null,f[ve]=o,f[Pn]=qh(),f[Rt]=c,f[ll]=u,f[ye]=t.type==2?e[ye]:f,f}function ep(e,t,n){let r=tt(t,e),i=Jd(n),o=e[xe].rendererFactory,s=xa(e,Ri(e,i,null,Ca(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ca(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ta(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function xa(e,t){return e[Pt]?e[Co][pe]=t:e[Pt]=t,e[Co]=t,t}function ft(e=1){ka(we(),z(),nt()+e,!1)}function ka(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&un(t,i,n)}else{let i=e.preOrderHooks;i!==null&&cn(t,i,0,n)}qe(n)}var $n=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}($n||{});function Lr(e,t,n,r){let i=A(null);try{let[o,s,l]=e.inputs[n],a=null;(s&$n.SignalBased)!==0&&(a=t[o][Me]),a!==null&&a.transformFn!==void 0?r=a.transformFn(r):l!==null&&(r=l.call(t,r)),e.setInput!==null?e.setInput(t,a,r,n,o):fl(t,a,o,r)}finally{A(i)}}function Oa(e,t,n,r,i){let o=nt(),s=r&2;try{qe(-1),s&&t.length>K&&ka(e,t,K,!1),H(s?2:0,i),n(r,i)}finally{qe(o),H(s?3:1,i)}}function Vi(e,t,n){lp(e,t,n),(n.flags&64)===64&&ap(e,t,n)}function Da(e,t,n=tt){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],l=s===-1?n(t,e):e[s];e[i++]=l}}}function tp(e,t,n,r){let i=r.get(ed,aa)||n===Ce.ShadowDom,o=e.selectRootElement(t,i);return np(o),o}function np(e){rp(e)}var rp=()=>null;function ip(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function op(e,t,n,r,i,o,s,l){if(!l&&Pi(t,e,n,r,i)){Fn(t)&&sp(n,t.index);return}if(t.type&3){let a=tt(t,n);r=ip(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(a,r,i)}else t.type&12}function sp(e,t){let n=Ge(t,e);n[I]&16||(n[I]|=64)}function lp(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Fn(n)&&ep(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Rl(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let l=e.data[s],a=Nr(t,e,s,n);if(Qt(a,t),o!==null&&cp(t,s-r,a,l,n,o),et(l)){let u=Ge(n.index,t);u[q]=Nr(t,e,s,n)}}}function ap(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=lh();try{qe(o);for(let l=r;l<i;l++){let a=e.data[l],u=t[l];xr(l),(a.hostBindings!==null||a.hostVars!==0||a.hostAttrs!==null)&&up(a,u)}}finally{qe(-1),xr(s)}}function up(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Na(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];zd(t,o.selectors,!1)&&(r??=[],et(o)?r.unshift(o):r.push(o))}return r}function cp(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let l=0;l<s.length;l+=2){let a=s[l],u=s[l+1];Lr(r,n,a,u)}}function fp(e,t){let n=e[Vt],r=n?n.get(Kt,null):null;r&&r.handleError(t)}function Pi(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],l=!1;if(s)for(let a=0;a<s.length;a+=2){let u=s[a],c=s[a+1],f=t.data[u];Lr(f,n[u],c,i),l=!0}if(o)for(let a of o){let u=n[a],c=t.data[a];Lr(c,u,r,i),l=!0}return l}function hp(e,t){let n=Ge(t,e),r=n[k];dp(r,n);let i=n[ke];i!==null&&n[Rt]===null&&(n[Rt]=ca(i,n[Vt])),H(18),Fi(r,n,n[q]),H(19,n[q])}function dp(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Fi(e,t,n){wi(t);try{let r=e.viewQuery;r!==null&&Pr(1,r,n);let i=e.template;i!==null&&Oa(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[mt]?.finishViewCreation(e),e.staticContentQueries&&fa(e,t),e.staticViewQueries&&Pr(2,e.viewQuery,n);let o=e.components;o!==null&&pp(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,bi()}}function pp(e,t){for(let n=0;n<t.length;n++)hp(e,t[n])}function Li(e,t,n,r){let i=A(null);try{let o=t.tView,s=e[I]&4096?4096:16,l=Ri(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),a=e[t.index];l[gt]=a;let u=e[mt];return u!==null&&(l[mt]=u.createEmbeddedView(o)),Fi(o,l,n),l}finally{A(i)}}function ji(e,t){return!t||t.firstChild===null||Xl(e)}var gp;function Hi(e,t){return gp(e,t)}var Be=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Be||{});function Aa(e){return(e.flags&32)===32}function lt(e,t,n,r,i){if(r!=null){let o,s=!1;Je(r)?o=r:Ze(r)&&(s=!0,r=r[ke]);let l=Pe(r);e===0&&n!==null?i==null?_a(t,n,l):Fr(t,n,l,i||null,!0):e===1&&n!==null?Fr(t,n,l,i||null,!0):e===2?Kd(t,l,s):e===3&&t.destroyNode(l),o!=null&&xp(t,e,o,n,i)}}function mp(e,t){Ma(e,t),t[ke]=null,t[ve]=null}function yp(e,t,n,r,i,o){r[ke]=i,r[ve]=t,Gn(e,r,n,1,i,o)}function Ma(e,t){t[xe].changeDetectionScheduler?.notify(9),Gn(e,t,t[ie],2,null,null)}function vp(e){let t=e[Pt];if(!t)return ar(e[k],e);for(;t;){let n=null;if(Ze(t))n=t[Pt];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)Ze(t)&&ar(t[k],t),t=t[se];t===null&&(t=e),Ze(t)&&ar(t[k],t),n=t&&t[pe]}t=n}}function zi(e,t){let n=e[bn],r=n.indexOf(t);n.splice(r,1)}function Ui(e,t){if(Gt(t))return;let n=t[ie];n.destroyNode&&Gn(e,t,n,3,null,null),vp(t)}function ar(e,t){if(Gt(t))return;let n=A(null);try{t[I]&=-129,t[I]|=256,t[te]&&gs(t[te]),bp(e,t),wp(e,t),t[k].type===1&&t[ie].destroy();let r=t[gt];if(r!==null&&Je(t[se])){r!==t[se]&&zi(r,t);let i=t[mt];i!==null&&i.detachView(e)}Rr(t)}finally{A(n)}}function wp(e,t){let n=e.cleanup,r=t[So];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let l=n[s+3];l>=0?r[l]():r[-l].unsubscribe(),s+=2}else{let l=r[n[s+1]];n[s].call(l)}r!==null&&(t[So]=null);let i=t[Ve];if(i!==null){t[Ve]=null;for(let s=0;s<i.length;s++){let l=i[s];l()}}let o=t[wn];if(o!==null){t[wn]=null;for(let s of o)s.destroy()}}function bp(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof _i)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let l=i[o[s]],a=o[s+1];H(4,l,a);try{a.call(l)}finally{H(5,l,a)}}else{H(4,i,o);try{o.call(i)}finally{H(5,i,o)}}}}}function Ep(e,t,n){return Ip(e,t.parent,n)}function Ip(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ke];if(Fn(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Ce.None||i===Ce.Emulated)return null}return tt(r,n)}function _p(e,t,n){return Cp(e,t,n)}function Sp(e,t,n){return e.type&40?tt(e,n):null}var Cp=Sp,$o;function Bi(e,t,n,r){let i=Ep(e,r,t),o=t[ie],s=r.parent||t[ve],l=_p(s,r,t);if(i!=null)if(Array.isArray(n))for(let a=0;a<n.length;a++)Zo(o,i,n[a],l,!1);else Zo(o,i,n,l,!1);$o!==void 0&&$o(o,r,t,n,i)}function kt(e,t){if(t!==null){let n=t.type;if(n&3)return tt(t,e);if(n&4)return jr(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return kt(e,r);{let i=e[t.index];return Je(i)?jr(-1,i):Pe(i)}}else{if(n&128)return kt(e,t.next);if(n&32)return Hi(t,e)()||Pe(e[t.index]);{let r=Ra(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=We(e[ye]);return kt(i,r)}else return kt(e,t.next)}}}return null}function Ra(e,t){if(t!==null){let n=e[ye][ve],r=t.projection;return n.projection[r]}return null}function jr(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],i=r[k].firstChild;if(i!==null)return kt(r,i)}return t[Ft]}function Zi(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let l=r[n.index],a=n.type;if(s&&t===0&&(l&&Qt(Pe(l),r),n.flags|=2),!Aa(n))if(a&8)Zi(e,t,n.child,r,i,o,!1),lt(t,e,i,l,o);else if(a&32){let u=Hi(n,r),c;for(;c=u();)lt(t,e,i,c,o);lt(t,e,i,l,o)}else a&16?Tp(e,t,r,n,i,o):lt(t,e,i,l,o);n=s?n.projectionNext:n.next}}function Gn(e,t,n,r,i,o){Zi(n,r,e.firstChild,t,i,o,!1)}function Tp(e,t,n,r,i,o){let s=n[ye],l=s[ve].projection[r.projection];if(Array.isArray(l))for(let a=0;a<l.length;a++){let u=l[a];lt(t,e,i,u,o)}else{let a=l,u=s[se];Xl(r)&&(a.flags|=128),Zi(e,t,a,u,i,o,!0)}}function xp(e,t,n,r,i){let o=n[Ft],s=Pe(n);o!==s&&lt(t,e,r,o,i);for(let l=ee;l<n.length;l++){let a=n[l];Gn(a[k],a,e,t,r,o)}}function kp(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Be.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Be.Important),e.setStyle(n,r,i,o))}}function Cn(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Pe(o)),Je(o)&&Op(o,r);let s=n.type;if(s&8)Cn(e,t,n.child,r);else if(s&32){let l=Hi(n,t),a;for(;a=l();)r.push(a)}else if(s&16){let l=Ra(t,n);if(Array.isArray(l))r.push(...l);else{let a=We(t[ye]);Cn(a[k],a,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Op(e,t){for(let n=ee;n<e.length;n++){let r=e[n],i=r[k].firstChild;i!==null&&Cn(r[k],r,i,t)}e[Ft]!==e[ke]&&t.push(e[Ft])}function Va(e){if(e[ir]!==null){for(let t of e[ir])t.impl.addSequence(t);e[ir].length=0}}var Pa=[];function Dp(e){return e[te]??Np(e)}function Np(e){let t=Pa.pop()??Object.create(Mp);return t.lView=e,t}function Ap(e){e.lView[te]!==e&&(e.lView=null,Pa.push(e))}var Mp=Et(Qe({},oi),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{jn(e.lView)},consumerOnSignalRead(){this.lView[te]=this}});function Rp(e){let t=e[te]??Object.create(Vp);return t.lView=e,t}var Vp=Et(Qe({},oi),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=We(e.lView);for(;t&&!Fa(t[k]);)t=We(t);t&&vi(t)},consumerOnSignalRead(){this.lView[te]=this}});function Fa(e){return e.type!==2}function La(e){if(e[wn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[wn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var Pp=100;function ja(e,t=!0,n=0){let r=e[xe].rendererFactory,i=!1;i||r.begin?.();try{Fp(e,n)}catch(o){throw t&&fp(e,o),o}finally{i||r.end?.()}}function Fp(e,t){let n=El();try{To(!0),Hr(e,t);let r=0;for(;Ln(e);){if(r===Pp)throw new R(103,!1);r++,Hr(e,1)}}finally{To(n)}}function Lp(e,t,n,r){if(Gt(t))return;let i=t[I],o=!1,s=!1;wi(t);let l=!0,a=null,u=null;o||(Fa(e)?(u=Dp(t),a=co(u)):Xu()===null?(l=!1,u=Rp(t),a=co(u)):t[te]&&(gs(t[te]),t[te]=null));try{ml(t),rh(e.bindingStartIndex),n!==null&&Oa(e,t,n,2,r);let c=(i&3)===3;if(!o)if(c){let p=e.preOrderCheckHooks;p!==null&&un(t,p,null)}else{let p=e.preOrderHooks;p!==null&&cn(t,p,0,null),or(t,0)}if(s||jp(t),La(t),Ha(t,0),e.contentQueries!==null&&fa(e,t),!o)if(c){let p=e.contentCheckHooks;p!==null&&un(t,p)}else{let p=e.contentHooks;p!==null&&cn(t,p,1),or(t,1)}zp(e,t);let f=e.components;f!==null&&Ua(t,f,0);let g=e.viewQuery;if(g!==null&&Pr(2,g,r),!o)if(c){let p=e.viewCheckHooks;p!==null&&un(t,p)}else{let p=e.viewHooks;p!==null&&cn(t,p,2),or(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[rr]){for(let p of t[rr])p();t[rr]=null}o||(Va(t),t[I]&=-73)}catch(c){throw o||jn(t),c}finally{u!==null&&(rc(u,a),l&&Ap(u)),bi()}}function Ha(e,t){for(let n=ta(e);n!==null;n=na(n))for(let r=ee;r<n.length;r++){let i=n[r];za(i,t)}}function jp(e){for(let t=ta(e);t!==null;t=na(t)){if(!(t[I]&2))continue;let n=t[bn];for(let r=0;r<n.length;r++){let i=n[r];vi(i)}}}function Hp(e,t,n){H(18);let r=Ge(t,e);za(r,n),H(19,r[q])}function za(e,t){yi(e)&&Hr(e,t)}function Hr(e,t){let n=e[k],r=e[I],i=e[te],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&ps(i)),o||=!1,i&&(i.dirty=!1),e[I]&=-9217,o)Lp(n,e,n.template,e[q]);else if(r&8192){La(e),Ha(e,1);let s=n.components;s!==null&&Ua(e,s,1),Va(e)}}function Ua(e,t,n){for(let r=0;r<t.length;r++)Hp(e,t[r],n)}function zp(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)qe(~i);else{let o=i,s=n[++r],l=n[++r];sh(s,o);let a=t[o];H(24,a),l(2,a),H(25,a)}}}finally{qe(-1)}}function Ba(e,t){let n=El()?64:1088;for(e[xe].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=We(e);if(En(e)&&!r)return e;e=r}return null}function Up(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Za(e,t){let n=ee+t;if(n<e.length)return e[n]}function $i(e,t,n,r=!0){let i=t[k];if(Bp(i,t,e,n),r){let s=jr(n,e),l=t[ie],a=l.parentNode(e[Ft]);a!==null&&yp(i,e[ve],l,t,a,s)}let o=t[Rt];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function $a(e,t){let n=Gi(e,t);return n!==void 0&&Ui(n[k],n),n}function Gi(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let i=r[gt];i!==null&&i!==e&&zi(i,r),t>0&&(e[n-1][pe]=r[pe]);let o=Ys(e,ee+t);mp(r[k],r);let s=o[mt];s!==null&&s.detachView(o[k]),r[se]=null,r[pe]=null,r[I]&=-129}return r}function Bp(e,t,n,r){let i=ee+r,o=n.length;r>0&&(n[i-1][pe]=t),r<o-ee?(t[pe]=n[i],bf(n,ee+r,t)):(n.push(t),t[pe]=null),t[se]=n;let s=t[gt];s!==null&&n!==s&&Ga(s,t);let l=t[mt];l!==null&&l.insertView(e),Cr(t),t[I]|=128}function Ga(e,t){let n=e[bn],r=t[se];if(Ze(r))e[I]|=2;else{let i=r[se][ye];t[ye]!==i&&(e[I]|=2)}n===null?e[bn]=[t]:n.push(t)}var Zp=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[k];return Cn(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[q]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[te]?.dirty}set context(e){this._lView[q]=e}get destroyed(){return Gt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[se];if(Je(e)){let t=e[Lf],n=t?t.indexOf(this):-1;n>-1&&(Gi(e,n),Ys(t,n))}this._attachedToViewContainer=!1}Ui(this._lView[k],this._lView)}onDestroy(e){yl(this._lView,e)}markForCheck(){Ba(this._cdRefInjectingView||this._lView,4)}markForRefresh(){vi(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){Cr(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,ja(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new R(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=En(this._lView),t=this._lView[gt];t!==null&&!e&&zi(t,this._lView),Ma(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new R(902,!1);this._appRef=e;let t=En(this._lView),n=this._lView[gt];n!==null&&!t&&Ga(n,this._lView),Cr(this._lView)}};function Wn(e,t,n,r,i){let o=e.data[t];if(o===null)o=$p(e,t,n,r,i),oh()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=th();o.injectorIndex=s===null?-1:s.injectorIndex}return _t(o,!0),o}function $p(e,t,n,r,i){let o=wl(),s=bl(),l=s?o:o&&o.parent,a=e.data[t]=Wp(e,l,n,t,r,i);return Gp(e,a,o,s),a}function Gp(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Wp(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,l=0;return Xf()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var fv=new RegExp(`^(\\d+)*(${Jh}|${Xh})*(.*)`),qp=()=>null;function Wi(e,t){return qp(e,t)}var Kp=class{},Wa=class{},Qp=class{resolveComponentFactory(e){throw Error(`No component factory found for ${de(e)}.`)}},Xt=class{static NULL=new Qp},qi=class{},Yp=(()=>{class e{static \u0275prov=Z({token:e,providedIn:"root",factory:()=>null})}return e})();function Go(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let l=t[s];if(typeof l=="number")o=l;else if(o==1)i=yo(i,l);else if(o==2){let a=l,u=t[++s];r=yo(r,a+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function qn(e,t=x.Default){let n=z();if(n===null)return F(e,t);let r=Wt();return jl(r,n,he(e),t)}function qa(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let l,a=null,u=null,c=Jp(s);c===null?l=s:[l,a,u]=c,ng(e,t,n,l,o,a,u)}o!==null&&r!==null&&Xp(n,r,o)}function Xp(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new R(-301,!1);r.push(t[i],o)}}function Jp(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let l=e[s];if(s===0&&et(l)&&(t=l),l.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,eg(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function eg(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function tg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ng(e,t,n,r,i,o,s){let l=r.length,a=!1;for(let g=0;g<l;g++){let p=r[g];!a&&et(p)&&(a=!0,tg(e,n,g)),xh(Rl(n,t),e,p.type)}ag(n,e.data.length,l);for(let g=0;g<l;g++){let p=r[g];p.providersResolver&&p.providersResolver(p)}let u=!1,c=!1,f=Ta(e,t,l,null);l>0&&(n.directiveToIndex=new Map);for(let g=0;g<l;g++){let p=r[g];if(n.mergedAttrs=Si(n.mergedAttrs,p.hostAttrs),ig(e,n,t,f,p),lg(f,p,i),s!==null&&s.has(p)){let[y,w]=s.get(p);n.directiveToIndex.set(p.type,[f,y+n.directiveStart,w+n.directiveStart])}else(o===null||!o.has(p))&&n.directiveToIndex.set(p.type,f);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let m=p.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),f++}rg(e,n,o)}function rg(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Wo(0,t,i,r),Wo(1,t,i,r),Ko(t,r,!1);else{let o=n.get(i);qo(0,t,o,r),qo(1,t,o,r),Ko(t,r,!0)}}}function Wo(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),Ka(t,o)}}function qo(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],l;e===0?l=t.hostDirectiveInputs??={}:l=t.hostDirectiveOutputs??={},l[s]??=[],l[s].push(r,o),Ka(t,s)}}function Ka(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ko(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Ai(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,l=0;for(;l<r.length;){let a=r[l];if(a===0){l+=4;continue}else if(a===5){l+=2;continue}else if(typeof a=="number")break;if(!n&&i.hasOwnProperty(a)){let u=i[a];for(let c of u)if(c===t){s??=[],s.push(a,r[l+1]);break}}else if(n&&o.hasOwnProperty(a)){let u=o[a];for(let c=0;c<u.length;c+=2)if(u[c]===t){s??=[],s.push(u[c+1],r[l+1]);break}}l+=2}e.initialInputs??=[],e.initialInputs.push(s)}function ig(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=dt(i.type,!0)),s=new _i(o,et(i),qn);e.blueprint[r]=s,n[r]=s,og(e,t,r,Ta(e,n,i.hostVars,je),i)}function og(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let l=~t.index;sg(s)!=l&&s.push(l),s.push(n,r,o)}}function sg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function lg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;et(t)&&(n[""]=e)}}function ag(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Qa(e,t,n,r,i,o,s,l){let a=t.consts,u=yt(a,s),c=Wn(t,e,2,r,u);return o&&qa(t,n,c,yt(a,l),i),c.mergedAttrs=Si(c.mergedAttrs,c.attrs),c.attrs!==null&&Go(c,c.attrs,!1),c.mergedAttrs!==null&&Go(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Ya(e,t){Dl(e,t),ul(t)&&e.queries.elementEnd(t)}var ug=class extends Xt{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Vn(e);return new gg(t,this.ngModule)}};function cg(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&$n.SignalBased)!==0};return i&&(o.transform=i),o})}function fg(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function hg(e,t,n){let r=t instanceof Mt?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Eh(n,r):n}function dg(e){let t=e.get(qi,null);if(t===null)throw new R(407,!1);let n=e.get(Yp,null),r=e.get(qt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function pg(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Ia(t,n,n==="svg"?$f:n==="math"?Gf:null)}var gg=class extends Wa{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return cg(this.componentDef.inputs)}get outputs(){return fg(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=$d(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){H(22);let i=A(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:Gd(this.componentDef.selectors[0]),l=Mi(0,null,null,1,0,null,null,null,null,[s],null),a=hg(o,r||this.ngModule,e),u=dg(a),c=u.rendererFactory.createRenderer(null,o),f=n?tp(c,n,o.encapsulation,a):pg(o,c),g=Ri(null,l,null,512|Ca(o),null,null,u,c,a,null,ca(f,a,!0));g[K]=f,wi(g);let p=null;try{let m=Qa(K,l,g,"#host",()=>[this.componentDef],!0,0);f&&(Sa(c,f,m),Qt(f,g)),Vi(l,g,m),ha(l,m,g),Ya(l,m),t!==void 0&&yg(m,this.ngContentSelectors,t),p=Ge(m.index,g),g[q]=p[q],Fi(l,g,null)}catch(m){throw p!==null&&Rr(p),Rr(g),m}finally{H(23),bi()}return new mg(this.componentType,g)}finally{A(i)}}},mg=class extends Kp{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=mi(t[k],K),this.location=Ql(this._tNode,t),this.instance=Ge(this._tNode.index,t)[q],this.hostView=this.changeDetectorRef=new Zp(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Pi(n,r[k],r,e,t);this.previousInputValues.set(e,t);let o=Ge(n.index,r);Ba(o,1)}get injector(){return new zl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function yg(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var vg=()=>!1;function wg(e,t,n){return vg(e,t,n)}var zr=class{},Xa=class extends zr{injector;componentFactoryResolver=new ug(this);instance=null;constructor(e){super();let t=new gi([...e.providers,{provide:zr,useValue:this},{provide:Xt,useValue:this.componentFactoryResolver}],e.parent||pi(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function bg(e,t,n=null){return new Xa({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Eg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=rl(!1,n.type),i=r.length>0?bg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Z({token:e,providedIn:"environment",factory:()=>new e(F(Mt))})}return e})();function Ig(e){return Jc(()=>{let t=xg(e),n=Et(Qe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Jl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(Eg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ce.Emulated,styles:e.styles||$e,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Bn("NgStandalone"),kg(n);let r=e.dependencies;return n.directiveDefs=Qo(r,!1),n.pipeDefs=Qo(r,!0),n.id=Og(n),n})}function _g(e){return Vn(e)||tl(e)}function Sg(e){return e!==null}function Cg(e,t){if(e==null)return pt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,l,a;Array.isArray(i)?(l=i[0],o=i[1],s=i[2]??o,a=i[3]||null):(o=i,s=i,l=$n.None,a=null),n[o]=[r,l,a],t[o]=s}return n}function Tg(e){if(e==null)return pt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ki(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function xg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||pt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Cg(e.inputs,t),outputs:Tg(e.outputs),debugInfo:null}}function kg(e){e.features?.forEach(t=>t(e))}function Qo(e,t){if(!e)return null;let n=t?nl:_g;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Sg)}function Og(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ja(e,t,n){return e[t]=n}function Fe(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Dg(e,t,n,r){let i=Fe(e,t,n);return Fe(e,t+1,r)||i}function Ng(e,t,n,r,i,o,s,l,a){let u=t.consts,c=Wn(t,e,4,s||null,l||null);vl()&&qa(t,n,c,yt(u,a),Na),c.mergedAttrs=Si(c.mergedAttrs,c.attrs),Dl(t,c);let f=c.tView=Mi(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,c),f.queries=t.queries.embeddedTView(c)),c}function Ur(e,t,n,r,i,o,s,l,a,u){let c=n+K,f=t.firstCreatePass?Ng(c,t,e,r,i,o,s,l,a):t.data[c];_t(f,!1);let g=Ag(t,e,f,n);Ei()&&Bi(t,e,g,f),Qt(g,e);let p=Up(g,e,g,f);return e[c]=p,xa(e,p),wg(p,f,e),cl(f)&&Vi(t,e,f),a!=null&&Da(e,f,u),f}function eu(e,t,n,r,i,o,s,l){let a=z(),u=we(),c=yt(u.consts,o);return Ur(a,u,e,t,n,r,i,c,s,l),eu}var Ag=Mg;function Mg(e,t,n,r){return Ii(!0),t[ie].createComment("")}var Rg=new L(""),Vg=(()=>{class e{static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new Pg})}return e})(),Pg=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function tu(e){return!!e&&typeof e.then=="function"}function Fg(e){return!!e&&typeof e.subscribe=="function"}var Lg=new L(""),nu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=V(Lg,{optional:!0})??[];injector=V(zn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=sl(this.injector,i);if(tu(o))n.push(o);else if(Fg(o)){let s=new Promise((l,a)=>{o.subscribe({complete:l,error:a})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jg=new L("");function Hg(){oc(()=>{throw new R(600,!1)})}function zg(e){return e.isBoundToModule}var Ug=10,vt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=V(Zh);afterRenderManager=V(td);zonelessEnabled=V(Ci);rootEffectScheduler=V(Vg);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Zt;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=V(Un).hasPendingTasks.pipe(Us(n=>!n));constructor(){V(Di,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=V(Mt);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){H(10);let i=n instanceof Wa;if(!this._injector.get(nu).done){let f=!i&&Sf(n),g=!1;throw new R(405,g)}let o;i?o=n:o=this._injector.get(Xt).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=zg(o)?void 0:this._injector.get(zr),l=r||o.selector,a=o.create(zn.NULL,[],l,s),u=a.location.nativeElement,c=a.injector.get(Rg,null);return c?.registerApplication(u),a.onDestroy(()=>{this.detachView(a.hostView),fn(this.components,a),c?.unregisterApplication(u)}),this._loadComponent(a),H(11,a),a}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(ua.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new R(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,A(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(qi,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Ug;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)Bg(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ln(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;fn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(jg,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new R(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Bg(e,t,n,r){!n&&!Ln(e)||ja(e,t,n&&!r?0:1)}function Zg(e,t,n,r){return Fe(e,Hn(),n)?t+Mn(n)+r:je}function on(e,t){return e<<17|t<<2}function Ke(e){return e>>17&32767}function $g(e){return(e&2)==2}function Gg(e,t){return e&131071|t<<17}function Br(e){return e|2}function wt(e){return(e&131068)>>2}function ur(e,t){return e&-131069|t<<2}function Wg(e){return(e&1)===1}function Zr(e){return e|1}function qg(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,l=Ke(s),a=wt(s);e[r]=n;let u=!1,c;if(Array.isArray(n)){let f=n;c=f[1],(c===null||$t(f,c)>0)&&(u=!0)}else c=n;if(i)if(a!==0){let f=Ke(e[l+1]);e[r+1]=on(f,l),f!==0&&(e[f+1]=ur(e[f+1],r)),e[l+1]=Gg(e[l+1],r)}else e[r+1]=on(l,0),l!==0&&(e[l+1]=ur(e[l+1],r)),l=r;else e[r+1]=on(a,0),l===0?l=r:e[a+1]=ur(e[a+1],r),a=r;u&&(e[r+1]=Br(e[r+1])),Yo(e,c,r,!0),Yo(e,c,r,!1),Kg(t,c,e,r,o),s=on(l,a),o?t.classBindings=s:t.styleBindings=s}function Kg(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&$t(o,t)>=0&&(n[r+1]=Zr(n[r+1]))}function Yo(e,t,n,r){let i=e[n+1],o=t===null,s=r?Ke(i):wt(i),l=!1;for(;s!==0&&(l===!1||o);){let a=e[s],u=e[s+1];Qg(a,t)&&(l=!0,e[s+1]=r?Zr(u):Br(u)),s=r?Ke(u):wt(u)}l&&(e[n+1]=r?Br(i):Zr(i))}function Qg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?$t(e,t)>=0:!1}function Tn(e,t,n){let r=z(),i=Hn();if(Fe(r,i,t)){let o=we(),s=fh();op(o,s,r,e,t,r[ie],n,!1)}return Tn}function Xo(e,t,n,r,i){Pi(t,e,n,i?"class":"style",r)}function Qi(e,t,n){return Yg(e,t,n,!1),Qi}function Yg(e,t,n,r){let i=z(),o=we(),s=ih(2);if(o.firstUpdatePass&&Jg(o,e,s,r),t!==je&&Fe(i,s,t)){let l=o.data[nt()];im(o,l,i,i[ie],e,i[s+1]=om(t,n),r,s)}}function Xg(e,t){return t>=e.expandoStartIndex}function Jg(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[nt()],s=Xg(e,n);sm(o,r)&&t===null&&!s&&(t=!1),t=em(i,o,t,r),qg(i,o,t,n,s,r)}}function em(e,t,n,r){let i=ah(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=cr(null,e,t,n,r),n=Lt(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=cr(i,e,t,n,r),o===null){let l=tm(e,t,r);l!==void 0&&Array.isArray(l)&&(l=cr(null,e,t,l[1],r),l=Lt(l,t.attrs,r),nm(e,t,r,l))}else o=rm(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function tm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(wt(r)!==0)return e[Ke(r)]}function nm(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ke(i)]=r}function rm(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Lt(r,s,n)}return Lt(r,t.attrs,n)}function cr(e,t,n,r,i){let o=null,s=n.directiveEnd,l=n.directiveStylingLast;for(l===-1?l=n.directiveStart:l++;l<s&&(o=t[l],r=Lt(r,o.hostAttrs,i),o!==e);)l++;return e!==null&&(n.directiveStylingLast=l),r}function Lt(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),If(e,s,n?!0:t[++o]))}return e===void 0?null:e}function im(e,t,n,r,i,o,s,l){if(!(t.type&3))return;let a=e.data,u=a[l+1],c=Wg(u)?Jo(a,t,n,i,wt(u),s):void 0;if(!xn(c)){xn(o)||$g(u)&&(o=Jo(a,null,n,i,l,s));let f=pl(nt(),n);kp(r,s,f,i,o)}}function Jo(e,t,n,r,i,o){let s=t===null,l;for(;i>0;){let a=e[i],u=Array.isArray(a),c=u?a[1]:a,f=c===null,g=n[i+1];g===je&&(g=f?$e:void 0);let p=f?tr(g,r):c===r?g:void 0;if(u&&!xn(p)&&(p=tr(a,r)),xn(p)&&(l=p,s))return l;let m=e[i+1];i=s?Ke(m):wt(m)}if(t!==null){let a=o?t.residualClasses:t.residualStyles;a!=null&&(l=tr(a,r))}return l}function xn(e){return e!==void 0}function om(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(Ne(e)))),e}function sm(e,t){return(e.flags&(t?8:16))!==0}var lm=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function fr(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function am(e,t,n){let r,i,o=0,s=e.length-1,l;if(Array.isArray(t)){let a=t.length-1;for(;o<=s&&o<=a;){let u=e.at(o),c=t[o],f=fr(o,u,o,c,n);if(f!==0){f<0&&e.updateValue(o,c),o++;continue}let g=e.at(s),p=t[a],m=fr(s,g,a,p,n);if(m!==0){m<0&&e.updateValue(s,p),s--,a--;continue}let y=n(o,u),w=n(s,g),S=n(o,c);if(Object.is(S,w)){let U=n(a,p);Object.is(U,y)?(e.swap(o,s),e.updateValue(s,p),a--,s--):e.move(s,o),e.updateValue(o,c),o++;continue}if(r??=new ns,i??=ts(e,o,s,n),$r(e,r,o,S))e.updateValue(o,c),o++,s++;else if(i.has(S))r.set(y,e.detach(o)),s--;else{let U=e.create(o,t[o]);e.attach(o,U),o++,s++}}for(;o<=a;)es(e,r,n,o,t[o]),o++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&o<=s;){let c=e.at(o),f=u.value,g=fr(o,c,o,f,n);if(g!==0)g<0&&e.updateValue(o,f),o++,u=a.next();else{r??=new ns,i??=ts(e,o,s,n);let p=n(o,f);if($r(e,r,o,p))e.updateValue(o,f),o++,s++,u=a.next();else if(!i.has(p))e.attach(o,e.create(o,f)),o++,s++,u=a.next();else{let m=n(o,c);r.set(m,e.detach(o)),s--}}}for(;!u.done;)es(e,r,n,e.length,u.value),u=a.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function $r(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function es(e,t,n,r,i){if($r(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function ts(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var ns=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function um(e,t){Bn("NgControlFlow");let n=z(),r=Hn(),i=n[r]!==je?n[r]:-1,o=i!==-1?kn(n,K+i):void 0,s=0;if(Fe(n,r,e)){let l=A(null);try{if(o!==void 0&&$a(o,s),e!==-1){let a=K+e,u=kn(n,a),c=Gr(n[k],a),f=Wi(u,c.tView.ssrId),g=Li(n,c,t,{dehydratedView:f});$i(u,g,s,ji(c,f))}}finally{A(l)}}else if(o!==void 0){let l=Za(o,s);l!==void 0&&(l[q]=t)}}var cm=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-ee}},fm=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function hm(e,t,n,r,i,o,s,l,a,u,c,f,g){Bn("NgControlFlow");let p=z(),m=we(),y=a!==void 0,w=z(),S=l?s.bind(w[ye][q]):s,U=new fm(y,S);w[K+e]=U,Ur(p,m,e+1,t,n,r,i,yt(m.consts,o)),y&&Ur(p,m,e+2,a,u,c,f,yt(m.consts,g))}var dm=class extends lm{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-ee}at(e){return this.getLView(e)[q].$implicit}attach(e,t){let n=t[Rt];this.needsIndexUpdate||=e!==this.length,$i(this.lContainer,t,e,ji(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,gm(this.lContainer,e)}create(e,t){let n=Wi(this.lContainer,this.templateTNode.tView.ssrId),r=Li(this.hostLView,this.templateTNode,new cm(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Ui(e[k],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[q].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[q].$index=e}getLView(e){return mm(this.lContainer,e)}};function pm(e){let t=A(null),n=nt();try{let r=z(),i=r[k],o=r[n],s=n+1,l=kn(r,s);if(o.liveCollection===void 0){let u=Gr(i,s);o.liveCollection=new dm(l,r,u)}else o.liveCollection.reset();let a=o.liveCollection;if(am(a,e,o.trackByFn),a.updateIndexes(),o.hasEmptyBlock){let u=Hn(),c=a.length===0;if(Fe(r,u,c)){let f=n+2,g=kn(r,f);if(c){let p=Gr(i,f),m=Wi(g,p.tView.ssrId),y=Li(r,p,void 0,{dehydratedView:m});$i(g,y,0,ji(p,m))}else $a(g,0)}}}finally{A(t)}}function kn(e,t){return e[t]}function gm(e,t){return Gi(e,t)}function mm(e,t){return Za(e,t)}function Gr(e,t){return mi(e,t)}function jt(e,t,n,r){let i=z(),o=we(),s=K+e,l=i[ie],a=o.firstCreatePass?Qa(s,o,i,t,Na,vl(),n,r):o.data[s],u=ym(o,i,a,l,t,e);i[s]=u;let c=cl(a);return _t(a,!0),Sa(l,u,a),!Aa(a)&&Ei()&&Bi(o,i,u,a),(Kf()===0||c)&&Qt(u,i),Qf(),c&&(Vi(o,i,a),ha(o,a,i)),r!==null&&Da(i,a),jt}function Ht(){let e=Wt();bl()?nh():(e=e.parent,_t(e,!1));let t=e;Jf(t)&&eh(),Yf();let n=we();return n.firstCreatePass&&Ya(n,t),t.classesWithoutHost!=null&&mh(t)&&Xo(n,t,z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&yh(t)&&Xo(n,t,z(),t.stylesWithoutHost,!1),Ht}function zt(e,t,n,r){return jt(e,t,n,r),Ht(),zt}var ym=(e,t,n,r,i,o)=>(Ii(!0),Ia(r,i,hh())),On="en-US",vm=On;function wm(e){typeof e=="string"&&(vm=e.toLowerCase().replace(/_/g,"-"))}function ru(e=1){return ch(e)}function iu(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function bm(e,t=""){let n=z(),r=we(),i=e+K,o=r.firstCreatePass?Wn(r,i,1,t,null):r.data[i],s=Em(r,n,o,t,e);n[i]=s,Ei()&&Bi(r,n,s,o),_t(o,!1)}var Em=(e,t,n,r,i)=>(Ii(!0),Wd(t[ie],r));function ou(e){return su("",e,""),ou}function su(e,t,n){let r=z(),i=Zg(r,e,t,n);return i!==je&&Im(r,nt(),i),su}function Im(e,t,n){let r=pl(t,e);qd(e[ie],r,n)}var _m={};function lu(e){let t=we(),n=z(),r=e+K,i=Wn(t,r,128,null,null);return _t(i,!1),iu(t,n,r,_m),lu}function au(e,t){let n=e[t];return n===je?void 0:n}function Sm(e,t,n,r,i,o){let s=t+n;return Fe(e,s,i)?Ja(e,s+1,o?r.call(o,i):r(i)):au(e,s+1)}function Cm(e,t,n,r,i,o,s){let l=t+n;return Dg(e,l,i,o)?Ja(e,l+2,s?r.call(s,i,o):r(i,o)):au(e,l+2)}function Dn(e,t){let n=we(),r,i=e+K;n.firstCreatePass?(r=Tm(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=dt(r.type,!0)),s,l=J(qn);try{let a=In(!1),u=o();return In(a),iu(n,z(),i,u),u}finally{J(l)}}function Tm(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Wr(e,t,n){let r=e+K,i=z(),o=gl(i,r);return uu(i,r)?Sm(i,Il(),t,o.transform,n,o):o.transform(n)}function xm(e,t,n,r){let i=e+K,o=z(),s=gl(o,i);return uu(o,i)?Cm(o,Il(),t,s.transform,n,r,s):s.transform(n,r)}function uu(e,t){return e[k].data[t].pure}var km=(()=>{class e{zone=V(ne);changeDetectionScheduler=V(qt);applicationRef=V(vt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Om({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ne(Et(Qe({},Dm()),{scheduleInRootZone:n})),[{provide:ne,useFactory:e},{provide:vn,multi:!0,useFactory:()=>{let r=V(km,{optional:!0});return()=>r.initialize()}},{provide:vn,multi:!0,useFactory:()=>{let r=V(Nm);return()=>{r.initialize()}}},t===!0?{provide:Gl,useValue:!0}:[],{provide:Ti,useValue:n??Zl}]}function Dm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Nm=(()=>{class e{subscription=new Te;initialized=!1;zone=V(ne);pendingTasks=V(Un);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cu=(()=>{class e{appRef=V(vt);taskService=V(Un);ngZone=V(ne);zonelessEnabled=V(Ci);tracing=V(Di,{optional:!0});disableScheduling=V(Gl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Sn):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(V(Ti,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ql||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Ao:Wl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Sn+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ao(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Am(){return Bn("NgZoneless"),Cf([{provide:qt,useExisting:cu},{provide:ne,useClass:ql},{provide:Ci,useValue:!0},{provide:Ti,useValue:!1},[]])}function Mm(){return typeof $localize<"u"&&$localize.locale||On}var fu=new L("",{providedIn:"root",factory:()=>V(fu,x.Optional|x.SkipSelf)||Mm()}),qr=new L(""),Rm=new L("");function Tt(e){return!e.moduleRef}function Vm(e){let t=Tt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ne);return n.run(()=>{Tt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Kt,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Tt(e)){let o=()=>t.destroy(),s=e.platformInjector.get(qr);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(qr);s.add(o),e.moduleRef.onDestroy(()=>{fn(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return Fm(r,n,()=>{let o=t.get(nu);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(fu,On);if(wm(s||On),!t.get(Rm,!0))return Tt(e)?t.get(vt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Tt(e)){let l=t.get(vt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Pm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Pm(e,t){let n=e.injector.get(vt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new R(-403,!1);t.push(e)}function Fm(e,t,n){try{let r=n();return tu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var hn=null;function Lm(e=[],t){return zn.create({name:t,providers:[{provide:di,useValue:"platform"},{provide:qr,useValue:new Set([()=>hn=null])},...e]})}function jm(e=[]){if(hn)return hn;let t=Lm(e);return hn=t,Hg(),Hm(t),t}function Hm(e){let t=e.get(sa,null);sl(e,()=>{t?.forEach(n=>n())})}function zm(e){H(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=jm(r),o=[Om({}),{provide:qt,useExisting:cu},...n||[]],s=new Xa({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return Vm({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{H(9)}}var hv=class{[Me];constructor(e){this[Me]=e}destroy(){this[Me].destroy()}},Um={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Bm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Zm(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var hr;function $m(e,t){if(!hr){let n=Element.prototype;hr=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?hr.call(e,t):!1}function Gm(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[Bm(r)]=[n,i]}),t}function Wm(e,t){return t.get(Xt).resolveComponentFactory(e).inputs}function qm(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let l=n[o],a=Km(l,t,i);a!==-1&&r[a].push(l)}return r}function Km(e,t,n){let r=n;return Zm(e)&&t.some((i,o)=>i!=="*"&&$m(e,i)?(r=o,!0):!1),r}var Qm=10,Ym=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Xt).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Xm(this.componentFactory,e,this.inputMap)}},Xm=class{componentFactory;injector;inputMap;eventEmitters=new Tc(1);events=this.eventEmitters.pipe(Yc(e=>Qc(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(ne),this.appRef=this.injector.get(vt),this.cdScheduler=t.get(qt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Um.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Qm))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=zn.create({providers:[],parent:this.injector}),n=qm(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new re(o=>{let s=i.subscribe(l=>o.next({name:r,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Jm=class extends HTMLElement{ngElementEventsSubscription=null};function ey(e,t){let n=Wm(e,t.injector),r=t.strategyFactory||new Ym(e,t.injector),i=Gm(n);class o extends Jm{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:a,transform:u})=>{if(!this.hasOwnProperty(a))return;let c=this[a];delete this[a],l.setInputValue(a,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(l){super(),this.injector=l}attributeChangedCallback(l,a,u,c){let[f,g]=i[l];this.ngElementStrategy.setInputValue(f,u,g)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let a=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(a)})}}return n.forEach(({propName:s,transform:l})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a,l)},configurable:!0,enumerable:!0})}),o}var hu=null;function du(){return hu}function ty(e){hu??=e}var ny=class{},Le=new L("");function ry(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var iy="browser",oy="server";function pu(e){return e===oy}var sy=class{},ly=class extends ny{supportsDOMEvents=!0},ay=class gu extends ly{static makeCurrent(){ty(new gu)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=uy();return n==null?null:cy(n)}resetBaseElement(){Ot=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ry(document.cookie,t)}},Ot=null;function uy(){return Ot=Ot||document.querySelector("base"),Ot?Ot.getAttribute("href"):null}function cy(e){return new URL(e,document.baseURI).pathname}var fy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),Kr=new L(""),mu=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new R(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(F(Kr),F(ne))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),yu=class{_doc;constructor(e){this._doc=e}manager},dn="ng-app-id";function rs(e){for(let t of e)t.remove()}function is(e,t){let n=t.createElement("style");return n.textContent=e,n}function hy(e,t,n,r){let i=e.head?.querySelectorAll(`style[${dn}="${t}"],link[${dn}="${t}"]`);if(i)for(let o of i)o.removeAttribute(dn),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Qr(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var vu=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=pu(o),hy(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,is);r?.forEach(i=>this.addUsage(i,this.external,Qr))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(rs(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])rs(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,is(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Qr(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(dn,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(F(Le),F(oa),F(la,8),F(Oi))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),dr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Yi=/%COMP%/g,wu="%COMP%",dy=`_nghost-${wu}`,py=`_ngcontent-${wu}`,gy=!0,my=new L("",{providedIn:"root",factory:()=>gy});function yy(e){return py.replace(Yi,e)}function vy(e){return dy.replace(Yi,e)}function bu(e,t){return t.map(n=>n.replace(Yi,e))}var os=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,l,a,u=null,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=l,this.ngZone=a,this.nonce=u,this.tracingService=c,this.platformIsServer=pu(l),this.defaultRenderer=new Xi(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ce.ShadowDom&&(r=Et(Qe({},r),{encapsulation:Ce.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof ls?i.applyToHost(n):i instanceof Yr&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,f=this.platformIsServer,g=this.tracingService;switch(r.encapsulation){case Ce.Emulated:o=new ls(a,u,r,this.appId,c,s,l,f,g);break;case Ce.ShadowDom:return new wy(a,u,n,r,s,l,this.nonce,f,g);default:o=new Yr(a,u,r,c,s,l,f,g);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(F(mu),F(vu),F(oa),F(my),F(Le),F(Oi),F(ne),F(la),F(Di,8))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),Xi=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(dr[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(ss(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(ss(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new R(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=dr[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=dr[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Be.DashCase|Be.Important)?e.style.setProperty(t,n,r&Be.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Be.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=du().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function ss(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var wy=class extends Xi{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,l,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=bu(r.id,u);for(let f of u){let g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=f,this.shadowRoot.appendChild(g)}let c=r.getExternalStyles?.();if(c)for(let f of c){let g=Qr(f,i);s&&g.setAttribute("nonce",s),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yr=class extends Xi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,s,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=a?bu(a,u):u,this.styleUrls=n.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ls=class extends Yr{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,l,a){let u=r+"-"+n.id;super(e,t,n,i,o,s,l,a,u),this.contentAttr=yy(u),this.hostAttr=vy(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},by=(()=>{class e extends yu{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),as=["alt","control","meta","shift"],Ey={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Iy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},_y=(()=>{class e extends yu{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),l=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>du().onAndCancel(n,s.domEventName,l,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),s="code."),as.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(n,r){let i=Ey[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),as.forEach(s=>{if(s!==i){let l=Iy[s];l(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();function Sy(e){return zm(Cy(e))}function Cy(e){return{appProviders:[...Dy,...e?.providers??[]],platformProviders:Oy}}function Ty(){ay.makeCurrent()}function xy(){return new Kt}function ky(){return Qh(document),document}var Oy=[{provide:Oi,useValue:iy},{provide:sa,useValue:Ty,multi:!0},{provide:Le,useFactory:ky,deps:[]}],Dy=[{provide:di,useValue:"root"},{provide:Kt,useFactory:xy,deps:[]},{provide:Kr,useClass:by,multi:!0,deps:[Le]},{provide:Kr,useClass:_y,multi:!0,deps:[Le]},os,vu,mu,{provide:qi,useExisting:os},{provide:sy,useClass:fy,deps:[]},[]],Eu=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=F(Ny),r},providedIn:"root"})}return e})(),Ny=(()=>{class e extends Eu{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case _e.NONE:return r;case _e.HTML:return ze(r,"HTML")?Ne(r):va(this._doc,String(r)).toString();case _e.STYLE:return ze(r,"Style")?Ne(r):r;case _e.SCRIPT:if(ze(r,"Script"))return Ne(r);throw new R(5200,!1);case _e.URL:return ze(r,"URL")?Ne(r):Ni(String(r));case _e.RESOURCE_URL:if(ze(r,"ResourceURL"))return Ne(r);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(n){return fd(n)}bypassSecurityTrustStyle(n){return hd(n)}bypassSecurityTrustScript(n){return dd(n)}bypassSecurityTrustUrl(n){return pd(n)}bypassSecurityTrustResourceUrl(n){return gd(n)}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ay={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},oe=Ku(Qu()),My="9.3.9",pr=class Xr{static SDK_VERSION=My;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static{let t=Xr.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");Xr.SDK_VERSION_CODE=parseInt(t,10)}},Se=class{static log(...e){oe.default.info(...e)}static debug(...e){oe.default.debug(...e)}static error(...e){oe.default.error(...e)}static warn(...e){oe.default.warn(...e)}static info(...e){oe.default.info(...e)}static trace(...e){oe.default.trace(...e)}static configure(e=pr.LOG_PREFIX){oe.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${pr.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?oe.default.setLevel(oe.default[localStorage.cooeeLogLevel]):oe.default.setLevel(Ay.debug?oe.default.TRACE:oe.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
7
+ `)}`}function dt(e,t){return e.hasOwnProperty(Eo)?e[Eo]:null}function fi(e,t){e.forEach(n=>Array.isArray(n)?fi(n,t):t(n))}function bf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ys(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ef(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function If(e,t,n){let r=$t(e,t);return r>=0?e[r|1]=n:(r=~r,Ef(e,r,t,n)),r}function tr(e,t){let n=$t(e,t);if(n>=0)return e[n|1]}function $t(e,t){return _f(e,t,1)}function _f(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var pt={},$e=[],vn=new L(""),Xs=new L("",-1),Js=new L(""),el=class{get(e,t=At){if(t===At){let n=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw n.name="NullInjectorError",n}return t}};function Vn(e){return e[of]||null}function tl(e){return e[sf]||null}function nl(e){return e[lf]||null}function Sf(e){let t=Vn(e)||tl(e)||nl(e);return t!==null&&t.standalone}function Cf(e){return{\u0275providers:e}}function Tf(...e){return{\u0275providers:rl(!0,e),\u0275fromNgModule:!0}}function rl(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return fi(t,s=>{let l=s;Er(l,o,[],r)&&(i||=[],i.push(l))}),i!==void 0&&il(i,o),n}function il(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];hi(i,o=>{t(o,r)})}}function Er(e,t,n,r){if(e=he(e),!e)return!1;let i=null,o=wo(e),s=!o&&Vn(e);if(!o&&!s){let a=e.ngModule;if(o=wo(a),o)i=a;else return!1}else{if(s&&!s.standalone)return!1;i=e}let l=r.has(i);if(s){if(l)return!1;if(r.add(i),s.dependencies){let a=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of a)Er(u,t,n,r)}}else if(o){if(o.imports!=null&&!l){r.add(i);let u;try{fi(o.imports,c=>{Er(c,t,n,r)&&(u||=[],u.push(c))})}finally{}u!==void 0&&il(u,t)}if(!l){let u=dt(i)||(()=>new i);t({provide:i,useFactory:u,deps:$e},i),t({provide:Js,useValue:i,multi:!0},i),t({provide:vn,useValue:()=>F(i),multi:!0},i)}let a=o.providers;if(a!=null&&!l){let u=e;hi(a,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function hi(e,t){for(let n of e)qs(n)&&(n=n.\u0275providers),Array.isArray(n)?hi(n,t):t(n)}var xf=j({provide:String,useValue:j});function ol(e){return e!==null&&typeof e=="object"&&xf in e}function kf(e){return!!(e&&e.useExisting)}function Of(e){return!!(e&&e.useFactory)}function Ir(e){return typeof e=="function"}var di=new L(""),an={},Df={},nr;function pi(){return nr===void 0&&(nr=new el),nr}var Mt=class{},gi=class extends Mt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Sr(e,o=>this.processProvider(o)),this.records.set(Xs,ot(void 0,this)),r.has("environment")&&this.records.set(Mt,ot(void 0,this));let i=this.records.get(di);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Js,$e,x.Self))}destroy(){xt(this),this._destroyed=!0;let e=A(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(e)}}onDestroy(e){return xt(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){xt(this);let t=De(this),n=J(void 0),r;try{return e()}finally{De(t),J(n)}}get(e,t=At,n=x.Default){if(xt(this),e.hasOwnProperty(Io))return e[Io](this);n=Rn(n);let r,i=De(this),o=J(void 0);try{if(!(n&x.SkipSelf)){let l=this.records.get(e);if(l===void 0){let a=Pf(e)&&ui(e);a&&this.injectableDefInScope(a)?l=ot(_r(e),an):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=n&x.Self?pi():this.parent;return t=n&x.Optional&&t===At?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[yn]=s[yn]||[]).unshift(de(e)),i)throw s;return vf(s,e,"R3InjectorError",this.source)}else throw s}finally{J(o),De(i)}}resolveInjectorInitializers(){let e=A(null),t=De(this),n=J(void 0),r;try{let i=this.get(vn,$e,x.Self);for(let o of i)o()}finally{De(t),J(n),A(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(de(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=he(e);let t=Ir(e)?e:he(e&&e.provide),n=Af(e);if(!Ir(e)&&e.multi===!0){let r=this.records.get(t);r||(r=ot(void 0,an,!0),r.factory=()=>br(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=A(null);try{return t.value===an&&(t.value=Df,t.value=t.factory()),typeof t.value=="object"&&t.value&&Vf(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{A(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=he(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function _r(e){let t=ui(e),n=t!==null?t.factory:dt(e);if(n!==null)return n;if(e instanceof L)throw new R(204,!1);if(e instanceof Function)return Nf(e);throw new R(204,!1)}function Nf(e){if(e.length>0)throw new R(204,!1);let t=nf(e);return t!==null?()=>t.factory(e):()=>new e}function Af(e){if(ol(e))return ot(void 0,e.useValue);{let t=Mf(e);return ot(t,an)}}function Mf(e,t,n){let r;if(Ir(e)){let i=he(e);return dt(i)||_r(i)}else if(ol(e))r=()=>he(e.useValue);else if(Of(e))r=()=>e.useFactory(...br(e.deps||[]));else if(kf(e))r=()=>F(he(e.useExisting));else{let i=he(e&&(e.useClass||e.provide));if(Rf(e))r=()=>new i(...br(e.deps));else return dt(i)||_r(i)}return r}function xt(e){if(e.destroyed)throw new R(205,!1)}function ot(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Rf(e){return!!e.deps}function Vf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Pf(e){return typeof e=="function"||typeof e=="object"&&e instanceof L}function Sr(e,t){for(let n of e)Array.isArray(n)?Sr(n,t):n&&qs(n)?Sr(n.\u0275providers,t):t(n)}function sl(e,t){e instanceof gi&&xt(e);let n,r=De(e),i=J(void 0);try{return t()}finally{De(r),J(i)}}function Ff(){return Ks()!==void 0||gf()!=null}var ke=0,k=1,I=2,se=3,pe=4,ve=5,Rt=6,So=7,q=8,Vt=9,xe=10,ie=11,Pt=12,Co=13,It=14,ye=15,gt=16,st=17,mt=18,Pn=19,ll=20,Ve=21,rr=22,wn=23,te=24,ir=25,K=26,al=1,Ft=7,Lf=8,bn=9,ee=10;function Ze(e){return Array.isArray(e)&&typeof e[al]=="object"}function Je(e){return Array.isArray(e)&&e[al]===!0}function ul(e){return(e.flags&4)!==0}function Fn(e){return e.componentOffset>-1}function cl(e){return(e.flags&1)===1}function et(e){return!!e.template}function En(e){return(e[I]&512)!==0}function Gt(e){return(e[I]&256)===256}var jf=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function fl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Hf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Uf),zf}function zf(){let e=dl(this),t=e?.current;if(t){let n=e.previous;if(n===pt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Uf(e,t,n,r,i){let o=this.declaredInputs[r],s=dl(e)||Bf(e,{previous:pt,current:null}),l=s.current||(s.current={}),a=s.previous,u=a[o];l[o]=new jf(u&&u.currentValue,n,a===pt),fl(e,t,i,n)}var hl="__ngSimpleChanges__";function dl(e){return e[hl]||null}function Bf(e,t){return e[hl]=t}var Zf=null,H=function(e,t=null,n){Zf?.(e,t,n)},$f="svg",Gf="math";function Pe(e){for(;Array.isArray(e);)e=e[ke];return e}function pl(e,t){return Pe(t[e])}function tt(e,t){return Pe(t[e.index])}function mi(e,t){return e.data[t]}function gl(e,t){return e[t]}function Ge(e,t){let n=t[e];return Ze(n)?n:n[ke]}function yi(e){return(e[I]&128)===128}function yt(e,t){return t==null?null:e[t]}function ml(e){e[st]=0}function vi(e){e[I]&1024||(e[I]|=1024,yi(e)&&jn(e))}function Wf(e,t){for(;e>0;)t=t[It],e--;return t}function Ln(e){return!!(e[I]&9216||e[te]?.dirty)}function Cr(e){e[xe].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),Ln(e)&&jn(e)}function jn(e){e[xe].changeDetectionScheduler?.notify(0);let t=We(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!yi(t)));)t=We(t)}function yl(e,t){if(Gt(e))throw new R(911,!1);e[Ve]===null&&(e[Ve]=[]),e[Ve].push(t)}function qf(e,t){if(e[Ve]===null)return;let n=e[Ve].indexOf(t);n!==-1&&e[Ve].splice(n,1)}function We(e){let t=e[se];return Je(t)?t[se]:t}var O={lFrame:Tl(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Tr=!1;function Kf(){return O.lFrame.elementDepthCount}function Qf(){O.lFrame.elementDepthCount++}function Yf(){O.lFrame.elementDepthCount--}function vl(){return O.bindingsEnabled}function Xf(){return O.skipHydrationRootTNode!==null}function Jf(e){return O.skipHydrationRootTNode===e}function eh(){O.skipHydrationRootTNode=null}function z(){return O.lFrame.lView}function we(){return O.lFrame.tView}function Wt(){let e=wl();for(;e!==null&&e.type===64;)e=e.parent;return e}function wl(){return O.lFrame.currentTNode}function th(){let e=O.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _t(e,t){let n=O.lFrame;n.currentTNode=e,n.isParent=t}function bl(){return O.lFrame.isParent}function nh(){O.lFrame.isParent=!1}function El(){return Tr}function To(e){let t=Tr;return Tr=e,t}function Il(){let e=O.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function rh(e){return O.lFrame.bindingIndex=e}function Hn(){return O.lFrame.bindingIndex++}function ih(e){let t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function oh(){return O.lFrame.inI18n}function sh(e,t){let n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,xr(t)}function lh(){return O.lFrame.currentDirectiveIndex}function xr(e){O.lFrame.currentDirectiveIndex=e}function ah(e){let t=O.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _l(e){O.lFrame.currentQueryIndex=e}function uh(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[ve]:null}function Sl(e,t,n){if(n&x.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&x.Host))&&(i=uh(o),!(i===null||(o=o[It],i.type&10))););if(i===null)return!1;t=i,e=o}let r=O.lFrame=Cl();return r.currentTNode=t,r.lView=e,!0}function wi(e){let t=Cl(),n=e[k];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cl(){let e=O.lFrame,t=e===null?null:e.child;return t===null?Tl(e):t}function Tl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function xl(){let e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kl=xl;function bi(){let e=xl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ch(e){return(O.lFrame.contextLView=Wf(e,O.lFrame.contextLView))[q]}function nt(){return O.lFrame.selectedIndex}function qe(e){O.lFrame.selectedIndex=e}function fh(){let e=O.lFrame;return mi(e.tView,e.selectedIndex)}function hh(){return O.lFrame.currentNamespace}var Ol=!0;function Ei(){return Ol}function Ii(e){Ol=e}function dh(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Hf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Dl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:a,ngOnDestroy:u}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),l&&(e.viewHooks??=[]).push(-n,l),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function un(e,t,n){Nl(e,t,3,n)}function cn(e,t,n,r){(e[I]&3)===n&&Nl(e,t,n,r)}function or(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function Nl(e,t,n,r){let i=r!==void 0?e[st]&65535:0,o=r??-1,s=t.length-1,l=0;for(let a=i;a<s;a++)if(typeof t[a+1]=="number"){if(l=t[a],r!=null&&l>=r)break}else t[a]<0&&(e[st]+=65536),(l<o||o==-1)&&(ph(e,n,t,a),e[st]=(e[st]&4294901760)+a+2),a++}function xo(e,t){H(4,e,t);let n=A(null);try{t.call(e)}finally{A(n),H(5,e,t)}}function ph(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],l=e[s];i?e[I]>>14<e[st]>>16&&(e[I]&3)===t&&(e[I]+=16384,xo(l,o)):xo(l,o)}var ct=-1,_i=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function gh(e){return e instanceof _i}function mh(e){return(e.flags&8)!==0}function yh(e){return(e.flags&16)!==0}function vh(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],l=n[r++];e.setAttribute(t,s,l,o)}else{let o=i,s=n[++r];bh(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function wh(e){return e===3||e===4||e===6}function bh(e){return e.charCodeAt(0)===64}function Si(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?ko(e,n,i,null,t[++r]):ko(e,n,i,null,null))}}return e}function ko(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let l=e[o++];if(typeof l=="number"){if(l===t){s=-1;break}else if(l>t){s=o-1;break}}}for(;o<e.length;){let l=e[o];if(typeof l=="number")break;if(l===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var sr={},Eh=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Rn(n);let r=this.injector.get(e,sr,n);return r!==sr||t===sr?r:this.parentInjector.get(e,t,n)}};function Ih(e){return e!==ct}function kr(e){return e&32767}function _h(e){return e>>16}function Or(e,t){let n=_h(e),r=t;for(;n>0;)r=r[It],n--;return r}var Dr=!0;function In(e){let t=Dr;return Dr=e,t}var Sh=256,Al=Sh-1,Ml=5,Ch=0,me={};function Th(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Dt)&&(r=n[Dt]),r==null&&(r=n[Dt]=Ch++);let i=r&Al,o=1<<i;t.data[e+(i>>Ml)]|=o}function Rl(e,t){let n=Vl(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,lr(r.data,e),lr(t,null),lr(r.blueprint,null));let i=Pl(e,t),o=e.injectorIndex;if(Ih(i)){let s=kr(i),l=Or(i,t),a=l[k].data;for(let u=0;u<8;u++)t[o+u]=l[s+u]|a[s+u]}return t[o+8]=i,o}function lr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ul(i),r===null)return ct;if(n++,i=i[It],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ct}function xh(e,t,n){Th(e,t,n)}function Fl(e,t,n){if(n&x.Optional||e!==void 0)return e;ci(t,"NodeInjector")}function Ll(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),(n&(x.Self|x.Host))===0){let i=e[Vt],o=J(void 0);try{return i?i.get(t,r,n&x.Optional):Qs(t,r,n&x.Optional)}finally{J(o)}}return Fl(r,t,n)}function jl(e,t,n,r=x.Default,i){if(e!==null){if(t[I]&2048&&!(r&x.Self)){let s=Ah(e,t,n,r,me);if(s!==me)return s}let o=Hl(e,t,n,r,me);if(o!==me)return o}return Ll(t,n,r,i)}function Hl(e,t,n,r,i){let o=Dh(n);if(typeof o=="function"){if(!Sl(t,e,r))return r&x.Host?Fl(i,n,r):Ll(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&x.Optional))ci(n);else return s}finally{kl()}}else if(typeof o=="number"){let s=null,l=Vl(e,t),a=ct,u=r&x.Host?t[ye][ve]:null;for((l===-1||r&x.SkipSelf)&&(a=l===-1?Pl(e,t):t[l+8],a===ct||!Do(r,!1)?l=-1:(s=t[k],l=kr(a),t=Or(a,t)));l!==-1;){let c=t[k];if(Oo(o,l,c.data)){let f=kh(l,t,n,s,r,u);if(f!==me)return f}a=t[l+8],a!==ct&&Do(r,t[k].data[l+8]===u)&&Oo(o,l,t)?(s=c,l=kr(a),t=Or(a,t)):l=-1}}return i}function kh(e,t,n,r,i,o){let s=t[k],l=s.data[e+8],a=r==null?Fn(l)&&Dr:r!=s&&(l.type&3)!==0,u=i&x.Host&&o===l,c=Oh(l,s,n,a,u);return c!==null?Nr(t,s,c,l):me}function Oh(e,t,n,r,i){let o=e.providerIndexes,s=t.data,l=o&1048575,a=e.directiveStart,u=e.directiveEnd,c=o>>20,f=r?l:l+c,g=i?l+c:u;for(let p=f;p<g;p++){let m=s[p];if(p<a&&n===m||p>=a&&m.type===n)return p}if(i){let p=s[a];if(p&&et(p)&&p.type===n)return a}return null}function Nr(e,t,n,r){let i=e[n],o=t.data;if(gh(i)){let s=i;s.resolving&&uf(af(o[n]));let l=In(s.canSeeViewProviders);s.resolving=!0;let a,u=s.injectImpl?J(s.injectImpl):null,c=Sl(e,r,x.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&dh(n,o[n],t)}finally{u!==null&&J(u),In(l),s.resolving=!1,kl()}}return i}function Dh(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Dt)?e[Dt]:void 0;return typeof t=="number"?t>=0?t&Al:Nh:t}function Oo(e,t,n){let r=1<<e;return!!(n[t+(e>>Ml)]&r)}function Do(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var zl=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return jl(this._tNode,this._lView,e,Rn(n),t)}};function Nh(){return new zl(Wt(),z())}function Ah(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[I]&2048&&!En(s);){let l=Hl(o,s,n,r|x.Self,me);if(l!==me)return l;let a=o.parent;if(!a){let u=s[ll];if(u){let c=u.get(n,me,r);if(c!==me)return c}a=Ul(s),s=s[It]}o=a}return i}function Ul(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[ve]:null}function No(e,t=null,n=null,r){let i=Mh(e,t,n,r);return i.resolveInjectorInitializers(),i}function Mh(e,t=null,n=null,r,i=new Set){let o=[n||$e,Tf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new gi(o,t||pi(),r||null,i)}var zn=class Bl{static THROW_IF_NOT_FOUND=At;static NULL=new el;static create(t,n){if(Array.isArray(t))return No({name:""},n,t,"");{let r=t.name??"";return No({name:r},t.parent,t.providers,r)}}static \u0275prov=Z({token:Bl,providedIn:"any",factory:()=>F(Xs)});static __NG_ELEMENT_ID__=-1},Rh=new L("");Rh.__NG_ELEMENT_ID__=e=>{let t=Wt();if(t===null)throw new R(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new R(204,!1)};var Zl=!1,$l=(()=>{class e{static __NG_ELEMENT_ID__=Ph;static __NG_ENV_ID__=n=>n}return e})(),Vh=class extends $l{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return yl(this._lView,e),()=>qf(this._lView,e)}};function Ph(){return new Vh(z())}var qt=class{},Ci=new L("",{providedIn:"root",factory:()=>!1}),Gl=new L(""),Ti=new L(""),Un=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Cc(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})(),Fh=class extends Zt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ff()&&(this.destroyRef=V($l,{optional:!0})??void 0,this.pendingTasks=V(Un,{optional:!0})??void 0)}emit(e){let t=A(null);try{super.next(e)}finally{A(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),i=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof Te&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},Ae=Fh;function _n(...e){}function Wl(e){let t,n;function r(){e=_n;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ao(e){return queueMicrotask(()=>e()),()=>{e=_n}}var xi="isAngularZone",Sn=xi+"_ID",Lh=0,ne=class Ar{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ae(!1);onMicrotaskEmpty=new Ae(!1);onStable=new Ae(!1);onError=new Ae(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Zl}=t;if(typeof Zone>"u")throw new R(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,zh(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xi)===!0}static assertInAngularZone(){if(!Ar.isInAngularZone())throw new R(909,!1)}static assertNotInAngularZone(){if(Ar.isInAngularZone())throw new R(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,jh,_n,_n);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},jh={};function ki(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Hh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Wl(()=>{e.callbackScheduled=!1,Mr(e),e.isCheckStableRunning=!0,ki(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Mr(e)}function zh(e){let t=()=>{Hh(e)},n=Lh++;e._inner=e._inner.fork({name:"angular",properties:{[xi]:!0,[Sn]:n,[Sn+n]:!0},onInvokeTask:(r,i,o,s,l,a)=>{if(Uh(a))return r.invokeTask(o,s,l,a);try{return Mo(e),r.invokeTask(o,s,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ro(e)}},onInvoke:(r,i,o,s,l,a,u)=>{try{return Mo(e),r.invoke(o,s,l,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Bh(a)&&t(),Ro(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Mr(e),ki(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Mr(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Mo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ro(e){e._nesting--,ki(e)}var ql=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ae;onMicrotaskEmpty=new Ae;onStable=new Ae;onError=new Ae;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Uh(e){return Kl(e,"__ignore_ng_zone__")}function Bh(e){return Kl(e,"__scheduler_tick__")}function Kl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Kt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Zh=new L("",{providedIn:"root",factory:()=>{let e=V(ne),t=V(Kt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $h(){return Ql(Wt(),z())}function Ql(e,t){return new Yl(tt(e,t))}var Yl=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=$h}return e})();function Vo(e,t){let n=lc(e),r=n[Me];return t?.equal&&(r.equal=t.equal),n.set=i=>Es(r,i),n.update=i=>ac(r,i),n.asReadonly=Gh.bind(n),n}function Gh(){let e=this[Me];if(e.readonlyFn===void 0){let t=()=>this();t[Me]=e,e.readonlyFn=t}return e.readonlyFn}function Xl(e){return(e.flags&128)===128}var Jl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Jl||{}),ea=new Map,Wh=0;function qh(){return Wh++}function Kh(e){ea.set(e[Pn],e)}function Rr(e){ea.delete(e[Pn])}var Po="__ngContext__";function Qt(e,t){Ze(t)?(e[Po]=t[Pn],Kh(t)):e[Po]=t}function ta(e){return ra(e[Pt])}function na(e){return ra(e[pe])}function ra(e){for(;e!==null&&!Je(e);)e=e[pe];return e}var Vr;function Qh(e){Vr=e}function ia(){if(Vr!==void 0)return Vr;if(typeof document<"u")return document;throw new R(210,!1)}var oa=new L("",{providedIn:"root",factory:()=>Yh}),Yh="ng",sa=new L(""),Oi=new L("",{providedIn:"platform",factory:()=>"unknown"}),la=new L("",{providedIn:"root",factory:()=>ia().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Xh="h",Jh="b",aa=!1,ed=new L("",{providedIn:"root",factory:()=>aa}),ua=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(ua||{}),Di=new L(""),Fo=new Set;function Bn(e){Fo.has(e)||(Fo.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var td=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new e})}return e})(),nd=()=>null;function ca(e,t,n=!1){return nd(e,t,n)}function fa(e,t){let n=e.contentQueries;if(n!==null){let r=A(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let l=e.data[s];_l(o),l.contentQueries(2,t[s],s)}}}finally{A(r)}}}function Pr(e,t,n){_l(0);let r=A(null);try{t(e,n)}finally{A(r)}}function ha(e,t,n){if(ul(t)){let r=A(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let l=e.data[s];if(l.contentQueries){let a=n[s];l.contentQueries(1,a,s)}}}finally{A(r)}}}var Ce=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ce||{}),tn;function rd(){if(tn===void 0&&(tn=null,mn.trustedTypes))try{tn=mn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return tn}function Zn(e){return rd()?.createHTML(e)||e}var nn;function id(){if(nn===void 0&&(nn=null,mn.trustedTypes))try{nn=mn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nn}function Lo(e){return id()?.createHTML(e)||e}var rt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Zs})`}},od=class extends rt{getTypeName(){return"HTML"}},sd=class extends rt{getTypeName(){return"Style"}},ld=class extends rt{getTypeName(){return"Script"}},ad=class extends rt{getTypeName(){return"URL"}},ud=class extends rt{getTypeName(){return"ResourceURL"}};function Ne(e){return e instanceof rt?e.changingThisBreaksApplicationSecurity:e}function ze(e,t){let n=cd(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Zs})`)}return n===t}function cd(e){return e instanceof rt&&e.getTypeName()||null}function fd(e){return new od(e)}function hd(e){return new sd(e)}function dd(e){return new ld(e)}function pd(e){return new ad(e)}function gd(e){return new ud(e)}function md(e){let t=new vd(e);return wd()?new yd(t):t}var yd=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(Zn(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},vd=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=Zn(e),t}};function wd(){try{return!!new window.DOMParser().parseFromString(Zn(""),"text/html")}catch{return!1}}var bd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ni(e){return e=String(e),e.match(bd)?e:"unsafe:"+e}function Oe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Yt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var da=Oe("area,br,col,hr,img,wbr"),pa=Oe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ga=Oe("rp,rt"),Ed=Yt(ga,pa),Id=Yt(pa,Oe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),_d=Yt(ga,Oe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jo=Yt(da,Id,_d,Ed),ma=Oe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sd=Oe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Cd=Oe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Td=Yt(ma,Sd,Cd),xd=Oe("script,style,template"),kd=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=Nd(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=Dd(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Ho(e).toLowerCase();if(!jo.hasOwnProperty(t))return this.sanitizedSomething=!0,!xd.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!Td.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let l=i.value;ma[s]&&(l=Ni(l)),this.buf.push(" ",o,'="',zo(l),'"')}return this.buf.push(">"),!0}endElement(e){let t=Ho(e).toLowerCase();jo.hasOwnProperty(t)&&!da.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(zo(e))}};function Od(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Dd(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw ya(t);return t}function Nd(e){let t=e.firstChild;if(t&&Od(e,t))throw ya(t);return t}function Ho(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function ya(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Ad=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Md=/([^\#-~ |!])/g;function zo(e){return e.replace(/&/g,"&amp;").replace(Ad,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Md,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var rn;function va(e,t){let n=null;try{rn=rn||md(e);let r=t?String(t):"";n=rn.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=rn.getInertBodyElement(r)}while(r!==o);let s=new kd().sanitizeChildren(Uo(n)||n);return Zn(s)}finally{if(n){let r=Uo(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Uo(e){return"content"in e&&Rd(e)?e.content:null}function Rd(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var _e=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(_e||{});function wa(e){let t=ba();return t?Lo(t.sanitize(_e.HTML,e)||""):ze(e,"HTML")?Lo(Ne(e)):va(ia(),Mn(e))}function Vd(e){let t=ba();return t?t.sanitize(_e.URL,e)||"":ze(e,"URL")?Ne(e):Ni(Mn(e))}function ba(){let e=z();return e&&e[xe].sanitizer}function Pd(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Ea="ng-template";function Fd(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Pd(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Ai(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Ai(e){return e.type===4&&e.value!==Ea}function Ld(e,t,n){let r=e.type===4&&!n?Ea:e.value;return t===r}function jd(e,t,n){let r=4,i=e.attrs,o=i!==null?Ud(i):0,s=!1;for(let l=0;l<t.length;l++){let a=t[l];if(typeof a=="number"){if(!s&&!fe(r)&&!fe(a))return!1;if(s&&fe(a))continue;s=!1,r=a|r&1;continue}if(!s)if(r&4){if(r=2|r&1,a!==""&&!Ld(e,a,n)||a===""&&t.length===1){if(fe(r))return!1;s=!0}}else if(r&8){if(i===null||!Fd(e,i,a,n)){if(fe(r))return!1;s=!0}}else{let u=t[++l],c=Hd(a,i,Ai(e),n);if(c===-1){if(fe(r))return!1;s=!0;continue}if(u!==""){let f;if(c>o?f="":f=i[c+1].toLowerCase(),r&2&&u!==f){if(fe(r))return!1;s=!0}}}}return fe(r)||s}function fe(e){return(e&1)===0}function Hd(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let l=t[++i];for(;typeof l=="string";)l=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return Bd(t,e)}function zd(e,t,n=!1){for(let r=0;r<t.length;r++)if(jd(e,t[r],n))return!0;return!1}function Ud(e){for(let t=0;t<e.length;t++){let n=e[t];if(wh(n))return t}return e.length}function Bd(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Bo(e,t){return e?":not("+t.trim()+")":t}function Zd(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let l=e[++n];i+="["+s+(l.length>0?'="'+l+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!fe(s)&&(t+=Bo(o,i),i=""),r=s,o=o||!fe(r);n++}return i!==""&&(t+=Bo(o,i)),t}function $d(e){return e.map(Zd).join(",")}function Gd(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!fe(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var je={};function Wd(e,t){return e.createText(t)}function qd(e,t,n){e.setValue(t,n)}function Ia(e,t,n){return e.createElement(t,n)}function Fr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function _a(e,t,n){e.appendChild(t,n)}function Zo(e,t,n,r,i){r!==null?Fr(e,t,n,r,i):_a(e,t,n)}function Kd(e,t,n){e.removeChild(null,t,n)}function Qd(e,t,n){e.setAttribute(t,"style",n)}function Yd(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Sa(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&vh(e,t,r),i!==null&&Yd(e,t,i),o!==null&&Qd(e,t,o)}function Mi(e,t,n,r,i,o,s,l,a,u,c){let f=K+r,g=f+i,p=Xd(f,g),m=typeof u=="function"?u():u;return p[k]={type:e,blueprint:p,template:n,queries:null,viewQuery:l,declTNode:t,data:p.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:g,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:a,consts:m,incompleteFirstPass:!1,ssrId:c}}function Xd(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:je);return n}function Jd(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Mi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ri(e,t,n,r,i,o,s,l,a,u,c){let f=t.blueprint.slice();return f[ke]=i,f[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(f[I]|=2048),ml(f),f[se]=f[It]=e,f[q]=n,f[xe]=s||e&&e[xe],f[ie]=l||e&&e[ie],f[Vt]=a||e&&e[Vt]||null,f[ve]=o,f[Pn]=qh(),f[Rt]=c,f[ll]=u,f[ye]=t.type==2?e[ye]:f,f}function ep(e,t,n){let r=tt(t,e),i=Jd(n),o=e[xe].rendererFactory,s=xa(e,Ri(e,i,null,Ca(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ca(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ta(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function xa(e,t){return e[Pt]?e[Co][pe]=t:e[Pt]=t,e[Co]=t,t}function ft(e=1){ka(we(),z(),nt()+e,!1)}function ka(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&un(t,i,n)}else{let i=e.preOrderHooks;i!==null&&cn(t,i,0,n)}qe(n)}var $n=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}($n||{});function Lr(e,t,n,r){let i=A(null);try{let[o,s,l]=e.inputs[n],a=null;(s&$n.SignalBased)!==0&&(a=t[o][Me]),a!==null&&a.transformFn!==void 0?r=a.transformFn(r):l!==null&&(r=l.call(t,r)),e.setInput!==null?e.setInput(t,a,r,n,o):fl(t,a,o,r)}finally{A(i)}}function Oa(e,t,n,r,i){let o=nt(),s=r&2;try{qe(-1),s&&t.length>K&&ka(e,t,K,!1),H(s?2:0,i),n(r,i)}finally{qe(o),H(s?3:1,i)}}function Vi(e,t,n){lp(e,t,n),(n.flags&64)===64&&ap(e,t,n)}function Da(e,t,n=tt){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],l=s===-1?n(t,e):e[s];e[i++]=l}}}function tp(e,t,n,r){let i=r.get(ed,aa)||n===Ce.ShadowDom,o=e.selectRootElement(t,i);return np(o),o}function np(e){rp(e)}var rp=()=>null;function ip(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function op(e,t,n,r,i,o,s,l){if(!l&&Pi(t,e,n,r,i)){Fn(t)&&sp(n,t.index);return}if(t.type&3){let a=tt(t,n);r=ip(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(a,r,i)}else t.type&12}function sp(e,t){let n=Ge(t,e);n[I]&16||(n[I]|=64)}function lp(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Fn(n)&&ep(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Rl(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let l=e.data[s],a=Nr(t,e,s,n);if(Qt(a,t),o!==null&&cp(t,s-r,a,l,n,o),et(l)){let u=Ge(n.index,t);u[q]=Nr(t,e,s,n)}}}function ap(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=lh();try{qe(o);for(let l=r;l<i;l++){let a=e.data[l],u=t[l];xr(l),(a.hostBindings!==null||a.hostVars!==0||a.hostAttrs!==null)&&up(a,u)}}finally{qe(-1),xr(s)}}function up(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Na(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];zd(t,o.selectors,!1)&&(r??=[],et(o)?r.unshift(o):r.push(o))}return r}function cp(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let l=0;l<s.length;l+=2){let a=s[l],u=s[l+1];Lr(r,n,a,u)}}function fp(e,t){let n=e[Vt],r=n?n.get(Kt,null):null;r&&r.handleError(t)}function Pi(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],l=!1;if(s)for(let a=0;a<s.length;a+=2){let u=s[a],c=s[a+1],f=t.data[u];Lr(f,n[u],c,i),l=!0}if(o)for(let a of o){let u=n[a],c=t.data[a];Lr(c,u,r,i),l=!0}return l}function hp(e,t){let n=Ge(t,e),r=n[k];dp(r,n);let i=n[ke];i!==null&&n[Rt]===null&&(n[Rt]=ca(i,n[Vt])),H(18),Fi(r,n,n[q]),H(19,n[q])}function dp(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Fi(e,t,n){wi(t);try{let r=e.viewQuery;r!==null&&Pr(1,r,n);let i=e.template;i!==null&&Oa(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[mt]?.finishViewCreation(e),e.staticContentQueries&&fa(e,t),e.staticViewQueries&&Pr(2,e.viewQuery,n);let o=e.components;o!==null&&pp(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,bi()}}function pp(e,t){for(let n=0;n<t.length;n++)hp(e,t[n])}function Li(e,t,n,r){let i=A(null);try{let o=t.tView,s=e[I]&4096?4096:16,l=Ri(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),a=e[t.index];l[gt]=a;let u=e[mt];return u!==null&&(l[mt]=u.createEmbeddedView(o)),Fi(o,l,n),l}finally{A(i)}}function ji(e,t){return!t||t.firstChild===null||Xl(e)}var gp;function Hi(e,t){return gp(e,t)}var Be=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Be||{});function Aa(e){return(e.flags&32)===32}function lt(e,t,n,r,i){if(r!=null){let o,s=!1;Je(r)?o=r:Ze(r)&&(s=!0,r=r[ke]);let l=Pe(r);e===0&&n!==null?i==null?_a(t,n,l):Fr(t,n,l,i||null,!0):e===1&&n!==null?Fr(t,n,l,i||null,!0):e===2?Kd(t,l,s):e===3&&t.destroyNode(l),o!=null&&xp(t,e,o,n,i)}}function mp(e,t){Ma(e,t),t[ke]=null,t[ve]=null}function yp(e,t,n,r,i,o){r[ke]=i,r[ve]=t,Gn(e,r,n,1,i,o)}function Ma(e,t){t[xe].changeDetectionScheduler?.notify(9),Gn(e,t,t[ie],2,null,null)}function vp(e){let t=e[Pt];if(!t)return ar(e[k],e);for(;t;){let n=null;if(Ze(t))n=t[Pt];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)Ze(t)&&ar(t[k],t),t=t[se];t===null&&(t=e),Ze(t)&&ar(t[k],t),n=t&&t[pe]}t=n}}function zi(e,t){let n=e[bn],r=n.indexOf(t);n.splice(r,1)}function Ui(e,t){if(Gt(t))return;let n=t[ie];n.destroyNode&&Gn(e,t,n,3,null,null),vp(t)}function ar(e,t){if(Gt(t))return;let n=A(null);try{t[I]&=-129,t[I]|=256,t[te]&&gs(t[te]),bp(e,t),wp(e,t),t[k].type===1&&t[ie].destroy();let r=t[gt];if(r!==null&&Je(t[se])){r!==t[se]&&zi(r,t);let i=t[mt];i!==null&&i.detachView(e)}Rr(t)}finally{A(n)}}function wp(e,t){let n=e.cleanup,r=t[So];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let l=n[s+3];l>=0?r[l]():r[-l].unsubscribe(),s+=2}else{let l=r[n[s+1]];n[s].call(l)}r!==null&&(t[So]=null);let i=t[Ve];if(i!==null){t[Ve]=null;for(let s=0;s<i.length;s++){let l=i[s];l()}}let o=t[wn];if(o!==null){t[wn]=null;for(let s of o)s.destroy()}}function bp(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof _i)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let l=i[o[s]],a=o[s+1];H(4,l,a);try{a.call(l)}finally{H(5,l,a)}}else{H(4,i,o);try{o.call(i)}finally{H(5,i,o)}}}}}function Ep(e,t,n){return Ip(e,t.parent,n)}function Ip(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ke];if(Fn(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Ce.None||i===Ce.Emulated)return null}return tt(r,n)}function _p(e,t,n){return Cp(e,t,n)}function Sp(e,t,n){return e.type&40?tt(e,n):null}var Cp=Sp,$o;function Bi(e,t,n,r){let i=Ep(e,r,t),o=t[ie],s=r.parent||t[ve],l=_p(s,r,t);if(i!=null)if(Array.isArray(n))for(let a=0;a<n.length;a++)Zo(o,i,n[a],l,!1);else Zo(o,i,n,l,!1);$o!==void 0&&$o(o,r,t,n,i)}function kt(e,t){if(t!==null){let n=t.type;if(n&3)return tt(t,e);if(n&4)return jr(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return kt(e,r);{let i=e[t.index];return Je(i)?jr(-1,i):Pe(i)}}else{if(n&128)return kt(e,t.next);if(n&32)return Hi(t,e)()||Pe(e[t.index]);{let r=Ra(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=We(e[ye]);return kt(i,r)}else return kt(e,t.next)}}}return null}function Ra(e,t){if(t!==null){let n=e[ye][ve],r=t.projection;return n.projection[r]}return null}function jr(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],i=r[k].firstChild;if(i!==null)return kt(r,i)}return t[Ft]}function Zi(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let l=r[n.index],a=n.type;if(s&&t===0&&(l&&Qt(Pe(l),r),n.flags|=2),!Aa(n))if(a&8)Zi(e,t,n.child,r,i,o,!1),lt(t,e,i,l,o);else if(a&32){let u=Hi(n,r),c;for(;c=u();)lt(t,e,i,c,o);lt(t,e,i,l,o)}else a&16?Tp(e,t,r,n,i,o):lt(t,e,i,l,o);n=s?n.projectionNext:n.next}}function Gn(e,t,n,r,i,o){Zi(n,r,e.firstChild,t,i,o,!1)}function Tp(e,t,n,r,i,o){let s=n[ye],l=s[ve].projection[r.projection];if(Array.isArray(l))for(let a=0;a<l.length;a++){let u=l[a];lt(t,e,i,u,o)}else{let a=l,u=s[se];Xl(r)&&(a.flags|=128),Zi(e,t,a,u,i,o,!0)}}function xp(e,t,n,r,i){let o=n[Ft],s=Pe(n);o!==s&&lt(t,e,r,o,i);for(let l=ee;l<n.length;l++){let a=n[l];Gn(a[k],a,e,t,r,o)}}function kp(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Be.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Be.Important),e.setStyle(n,r,i,o))}}function Cn(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Pe(o)),Je(o)&&Op(o,r);let s=n.type;if(s&8)Cn(e,t,n.child,r);else if(s&32){let l=Hi(n,t),a;for(;a=l();)r.push(a)}else if(s&16){let l=Ra(t,n);if(Array.isArray(l))r.push(...l);else{let a=We(t[ye]);Cn(a[k],a,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Op(e,t){for(let n=ee;n<e.length;n++){let r=e[n],i=r[k].firstChild;i!==null&&Cn(r[k],r,i,t)}e[Ft]!==e[ke]&&t.push(e[Ft])}function Va(e){if(e[ir]!==null){for(let t of e[ir])t.impl.addSequence(t);e[ir].length=0}}var Pa=[];function Dp(e){return e[te]??Np(e)}function Np(e){let t=Pa.pop()??Object.create(Mp);return t.lView=e,t}function Ap(e){e.lView[te]!==e&&(e.lView=null,Pa.push(e))}var Mp=Et(Qe({},oi),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{jn(e.lView)},consumerOnSignalRead(){this.lView[te]=this}});function Rp(e){let t=e[te]??Object.create(Vp);return t.lView=e,t}var Vp=Et(Qe({},oi),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=We(e.lView);for(;t&&!Fa(t[k]);)t=We(t);t&&vi(t)},consumerOnSignalRead(){this.lView[te]=this}});function Fa(e){return e.type!==2}function La(e){if(e[wn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[wn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var Pp=100;function ja(e,t=!0,n=0){let r=e[xe].rendererFactory,i=!1;i||r.begin?.();try{Fp(e,n)}catch(o){throw t&&fp(e,o),o}finally{i||r.end?.()}}function Fp(e,t){let n=El();try{To(!0),Hr(e,t);let r=0;for(;Ln(e);){if(r===Pp)throw new R(103,!1);r++,Hr(e,1)}}finally{To(n)}}function Lp(e,t,n,r){if(Gt(t))return;let i=t[I],o=!1,s=!1;wi(t);let l=!0,a=null,u=null;o||(Fa(e)?(u=Dp(t),a=co(u)):Xu()===null?(l=!1,u=Rp(t),a=co(u)):t[te]&&(gs(t[te]),t[te]=null));try{ml(t),rh(e.bindingStartIndex),n!==null&&Oa(e,t,n,2,r);let c=(i&3)===3;if(!o)if(c){let p=e.preOrderCheckHooks;p!==null&&un(t,p,null)}else{let p=e.preOrderHooks;p!==null&&cn(t,p,0,null),or(t,0)}if(s||jp(t),La(t),Ha(t,0),e.contentQueries!==null&&fa(e,t),!o)if(c){let p=e.contentCheckHooks;p!==null&&un(t,p)}else{let p=e.contentHooks;p!==null&&cn(t,p,1),or(t,1)}zp(e,t);let f=e.components;f!==null&&Ua(t,f,0);let g=e.viewQuery;if(g!==null&&Pr(2,g,r),!o)if(c){let p=e.viewCheckHooks;p!==null&&un(t,p)}else{let p=e.viewHooks;p!==null&&cn(t,p,2),or(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[rr]){for(let p of t[rr])p();t[rr]=null}o||(Va(t),t[I]&=-73)}catch(c){throw o||jn(t),c}finally{u!==null&&(rc(u,a),l&&Ap(u)),bi()}}function Ha(e,t){for(let n=ta(e);n!==null;n=na(n))for(let r=ee;r<n.length;r++){let i=n[r];za(i,t)}}function jp(e){for(let t=ta(e);t!==null;t=na(t)){if(!(t[I]&2))continue;let n=t[bn];for(let r=0;r<n.length;r++){let i=n[r];vi(i)}}}function Hp(e,t,n){H(18);let r=Ge(t,e);za(r,n),H(19,r[q])}function za(e,t){yi(e)&&Hr(e,t)}function Hr(e,t){let n=e[k],r=e[I],i=e[te],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&ps(i)),o||=!1,i&&(i.dirty=!1),e[I]&=-9217,o)Lp(n,e,n.template,e[q]);else if(r&8192){La(e),Ha(e,1);let s=n.components;s!==null&&Ua(e,s,1),Va(e)}}function Ua(e,t,n){for(let r=0;r<t.length;r++)Hp(e,t[r],n)}function zp(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)qe(~i);else{let o=i,s=n[++r],l=n[++r];sh(s,o);let a=t[o];H(24,a),l(2,a),H(25,a)}}}finally{qe(-1)}}function Ba(e,t){let n=El()?64:1088;for(e[xe].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=We(e);if(En(e)&&!r)return e;e=r}return null}function Up(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Za(e,t){let n=ee+t;if(n<e.length)return e[n]}function $i(e,t,n,r=!0){let i=t[k];if(Bp(i,t,e,n),r){let s=jr(n,e),l=t[ie],a=l.parentNode(e[Ft]);a!==null&&yp(i,e[ve],l,t,a,s)}let o=t[Rt];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function $a(e,t){let n=Gi(e,t);return n!==void 0&&Ui(n[k],n),n}function Gi(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let i=r[gt];i!==null&&i!==e&&zi(i,r),t>0&&(e[n-1][pe]=r[pe]);let o=Ys(e,ee+t);mp(r[k],r);let s=o[mt];s!==null&&s.detachView(o[k]),r[se]=null,r[pe]=null,r[I]&=-129}return r}function Bp(e,t,n,r){let i=ee+r,o=n.length;r>0&&(n[i-1][pe]=t),r<o-ee?(t[pe]=n[i],bf(n,ee+r,t)):(n.push(t),t[pe]=null),t[se]=n;let s=t[gt];s!==null&&n!==s&&Ga(s,t);let l=t[mt];l!==null&&l.insertView(e),Cr(t),t[I]|=128}function Ga(e,t){let n=e[bn],r=t[se];if(Ze(r))e[I]|=2;else{let i=r[se][ye];t[ye]!==i&&(e[I]|=2)}n===null?e[bn]=[t]:n.push(t)}var Zp=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[k];return Cn(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[q]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[te]?.dirty}set context(e){this._lView[q]=e}get destroyed(){return Gt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[se];if(Je(e)){let t=e[Lf],n=t?t.indexOf(this):-1;n>-1&&(Gi(e,n),Ys(t,n))}this._attachedToViewContainer=!1}Ui(this._lView[k],this._lView)}onDestroy(e){yl(this._lView,e)}markForCheck(){Ba(this._cdRefInjectingView||this._lView,4)}markForRefresh(){vi(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){Cr(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,ja(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new R(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=En(this._lView),t=this._lView[gt];t!==null&&!e&&zi(t,this._lView),Ma(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new R(902,!1);this._appRef=e;let t=En(this._lView),n=this._lView[gt];n!==null&&!t&&Ga(n,this._lView),Cr(this._lView)}};function Wn(e,t,n,r,i){let o=e.data[t];if(o===null)o=$p(e,t,n,r,i),oh()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=th();o.injectorIndex=s===null?-1:s.injectorIndex}return _t(o,!0),o}function $p(e,t,n,r,i){let o=wl(),s=bl(),l=s?o:o&&o.parent,a=e.data[t]=Wp(e,l,n,t,r,i);return Gp(e,a,o,s),a}function Gp(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Wp(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,l=0;return Xf()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var fv=new RegExp(`^(\\d+)*(${Jh}|${Xh})*(.*)`),qp=()=>null;function Wi(e,t){return qp(e,t)}var Kp=class{},Wa=class{},Qp=class{resolveComponentFactory(e){throw Error(`No component factory found for ${de(e)}.`)}},Xt=class{static NULL=new Qp},qi=class{},Yp=(()=>{class e{static \u0275prov=Z({token:e,providedIn:"root",factory:()=>null})}return e})();function Go(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let l=t[s];if(typeof l=="number")o=l;else if(o==1)i=yo(i,l);else if(o==2){let a=l,u=t[++s];r=yo(r,a+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function qn(e,t=x.Default){let n=z();if(n===null)return F(e,t);let r=Wt();return jl(r,n,he(e),t)}function qa(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let l,a=null,u=null,c=Jp(s);c===null?l=s:[l,a,u]=c,ng(e,t,n,l,o,a,u)}o!==null&&r!==null&&Xp(n,r,o)}function Xp(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new R(-301,!1);r.push(t[i],o)}}function Jp(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let l=e[s];if(s===0&&et(l)&&(t=l),l.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,eg(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function eg(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function tg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ng(e,t,n,r,i,o,s){let l=r.length,a=!1;for(let g=0;g<l;g++){let p=r[g];!a&&et(p)&&(a=!0,tg(e,n,g)),xh(Rl(n,t),e,p.type)}ag(n,e.data.length,l);for(let g=0;g<l;g++){let p=r[g];p.providersResolver&&p.providersResolver(p)}let u=!1,c=!1,f=Ta(e,t,l,null);l>0&&(n.directiveToIndex=new Map);for(let g=0;g<l;g++){let p=r[g];if(n.mergedAttrs=Si(n.mergedAttrs,p.hostAttrs),ig(e,n,t,f,p),lg(f,p,i),s!==null&&s.has(p)){let[y,w]=s.get(p);n.directiveToIndex.set(p.type,[f,y+n.directiveStart,w+n.directiveStart])}else(o===null||!o.has(p))&&n.directiveToIndex.set(p.type,f);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let m=p.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),f++}rg(e,n,o)}function rg(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Wo(0,t,i,r),Wo(1,t,i,r),Ko(t,r,!1);else{let o=n.get(i);qo(0,t,o,r),qo(1,t,o,r),Ko(t,r,!0)}}}function Wo(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),Ka(t,o)}}function qo(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],l;e===0?l=t.hostDirectiveInputs??={}:l=t.hostDirectiveOutputs??={},l[s]??=[],l[s].push(r,o),Ka(t,s)}}function Ka(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ko(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Ai(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,l=0;for(;l<r.length;){let a=r[l];if(a===0){l+=4;continue}else if(a===5){l+=2;continue}else if(typeof a=="number")break;if(!n&&i.hasOwnProperty(a)){let u=i[a];for(let c of u)if(c===t){s??=[],s.push(a,r[l+1]);break}}else if(n&&o.hasOwnProperty(a)){let u=o[a];for(let c=0;c<u.length;c+=2)if(u[c]===t){s??=[],s.push(u[c+1],r[l+1]);break}}l+=2}e.initialInputs??=[],e.initialInputs.push(s)}function ig(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=dt(i.type,!0)),s=new _i(o,et(i),qn);e.blueprint[r]=s,n[r]=s,og(e,t,r,Ta(e,n,i.hostVars,je),i)}function og(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let l=~t.index;sg(s)!=l&&s.push(l),s.push(n,r,o)}}function sg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function lg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;et(t)&&(n[""]=e)}}function ag(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Qa(e,t,n,r,i,o,s,l){let a=t.consts,u=yt(a,s),c=Wn(t,e,2,r,u);return o&&qa(t,n,c,yt(a,l),i),c.mergedAttrs=Si(c.mergedAttrs,c.attrs),c.attrs!==null&&Go(c,c.attrs,!1),c.mergedAttrs!==null&&Go(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Ya(e,t){Dl(e,t),ul(t)&&e.queries.elementEnd(t)}var ug=class extends Xt{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Vn(e);return new gg(t,this.ngModule)}};function cg(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&$n.SignalBased)!==0};return i&&(o.transform=i),o})}function fg(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function hg(e,t,n){let r=t instanceof Mt?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Eh(n,r):n}function dg(e){let t=e.get(qi,null);if(t===null)throw new R(407,!1);let n=e.get(Yp,null),r=e.get(qt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function pg(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Ia(t,n,n==="svg"?$f:n==="math"?Gf:null)}var gg=class extends Wa{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return cg(this.componentDef.inputs)}get outputs(){return fg(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=$d(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){H(22);let i=A(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:Gd(this.componentDef.selectors[0]),l=Mi(0,null,null,1,0,null,null,null,null,[s],null),a=hg(o,r||this.ngModule,e),u=dg(a),c=u.rendererFactory.createRenderer(null,o),f=n?tp(c,n,o.encapsulation,a):pg(o,c),g=Ri(null,l,null,512|Ca(o),null,null,u,c,a,null,ca(f,a,!0));g[K]=f,wi(g);let p=null;try{let m=Qa(K,l,g,"#host",()=>[this.componentDef],!0,0);f&&(Sa(c,f,m),Qt(f,g)),Vi(l,g,m),ha(l,m,g),Ya(l,m),t!==void 0&&yg(m,this.ngContentSelectors,t),p=Ge(m.index,g),g[q]=p[q],Fi(l,g,null)}catch(m){throw p!==null&&Rr(p),Rr(g),m}finally{H(23),bi()}return new mg(this.componentType,g)}finally{A(i)}}},mg=class extends Kp{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=mi(t[k],K),this.location=Ql(this._tNode,t),this.instance=Ge(this._tNode.index,t)[q],this.hostView=this.changeDetectorRef=new Zp(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Pi(n,r[k],r,e,t);this.previousInputValues.set(e,t);let o=Ge(n.index,r);Ba(o,1)}get injector(){return new zl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function yg(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var vg=()=>!1;function wg(e,t,n){return vg(e,t,n)}var zr=class{},Xa=class extends zr{injector;componentFactoryResolver=new ug(this);instance=null;constructor(e){super();let t=new gi([...e.providers,{provide:zr,useValue:this},{provide:Xt,useValue:this.componentFactoryResolver}],e.parent||pi(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function bg(e,t,n=null){return new Xa({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Eg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=rl(!1,n.type),i=r.length>0?bg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Z({token:e,providedIn:"environment",factory:()=>new e(F(Mt))})}return e})();function Ig(e){return Jc(()=>{let t=xg(e),n=Et(Qe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Jl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(Eg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ce.Emulated,styles:e.styles||$e,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Bn("NgStandalone"),kg(n);let r=e.dependencies;return n.directiveDefs=Qo(r,!1),n.pipeDefs=Qo(r,!0),n.id=Og(n),n})}function _g(e){return Vn(e)||tl(e)}function Sg(e){return e!==null}function Cg(e,t){if(e==null)return pt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,l,a;Array.isArray(i)?(l=i[0],o=i[1],s=i[2]??o,a=i[3]||null):(o=i,s=i,l=$n.None,a=null),n[o]=[r,l,a],t[o]=s}return n}function Tg(e){if(e==null)return pt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ki(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function xg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||pt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Cg(e.inputs,t),outputs:Tg(e.outputs),debugInfo:null}}function kg(e){e.features?.forEach(t=>t(e))}function Qo(e,t){if(!e)return null;let n=t?nl:_g;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Sg)}function Og(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ja(e,t,n){return e[t]=n}function Fe(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Dg(e,t,n,r){let i=Fe(e,t,n);return Fe(e,t+1,r)||i}function Ng(e,t,n,r,i,o,s,l,a){let u=t.consts,c=Wn(t,e,4,s||null,l||null);vl()&&qa(t,n,c,yt(u,a),Na),c.mergedAttrs=Si(c.mergedAttrs,c.attrs),Dl(t,c);let f=c.tView=Mi(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,c),f.queries=t.queries.embeddedTView(c)),c}function Ur(e,t,n,r,i,o,s,l,a,u){let c=n+K,f=t.firstCreatePass?Ng(c,t,e,r,i,o,s,l,a):t.data[c];_t(f,!1);let g=Ag(t,e,f,n);Ei()&&Bi(t,e,g,f),Qt(g,e);let p=Up(g,e,g,f);return e[c]=p,xa(e,p),wg(p,f,e),cl(f)&&Vi(t,e,f),a!=null&&Da(e,f,u),f}function eu(e,t,n,r,i,o,s,l){let a=z(),u=we(),c=yt(u.consts,o);return Ur(a,u,e,t,n,r,i,c,s,l),eu}var Ag=Mg;function Mg(e,t,n,r){return Ii(!0),t[ie].createComment("")}var Rg=new L(""),Vg=(()=>{class e{static \u0275prov=Z({token:e,providedIn:"root",factory:()=>new Pg})}return e})(),Pg=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function tu(e){return!!e&&typeof e.then=="function"}function Fg(e){return!!e&&typeof e.subscribe=="function"}var Lg=new L(""),nu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=V(Lg,{optional:!0})??[];injector=V(zn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=sl(this.injector,i);if(tu(o))n.push(o);else if(Fg(o)){let s=new Promise((l,a)=>{o.subscribe({complete:l,error:a})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jg=new L("");function Hg(){oc(()=>{throw new R(600,!1)})}function zg(e){return e.isBoundToModule}var Ug=10,vt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=V(Zh);afterRenderManager=V(td);zonelessEnabled=V(Ci);rootEffectScheduler=V(Vg);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Zt;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=V(Un).hasPendingTasks.pipe(Us(n=>!n));constructor(){V(Di,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=V(Mt);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){H(10);let i=n instanceof Wa;if(!this._injector.get(nu).done){let f=!i&&Sf(n),g=!1;throw new R(405,g)}let o;i?o=n:o=this._injector.get(Xt).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=zg(o)?void 0:this._injector.get(zr),l=r||o.selector,a=o.create(zn.NULL,[],l,s),u=a.location.nativeElement,c=a.injector.get(Rg,null);return c?.registerApplication(u),a.onDestroy(()=>{this.detachView(a.hostView),fn(this.components,a),c?.unregisterApplication(u)}),this._loadComponent(a),H(11,a),a}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(ua.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new R(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,A(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(qi,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Ug;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)Bg(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ln(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;fn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(jg,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new R(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Bg(e,t,n,r){!n&&!Ln(e)||ja(e,t,n&&!r?0:1)}function Zg(e,t,n,r){return Fe(e,Hn(),n)?t+Mn(n)+r:je}function on(e,t){return e<<17|t<<2}function Ke(e){return e>>17&32767}function $g(e){return(e&2)==2}function Gg(e,t){return e&131071|t<<17}function Br(e){return e|2}function wt(e){return(e&131068)>>2}function ur(e,t){return e&-131069|t<<2}function Wg(e){return(e&1)===1}function Zr(e){return e|1}function qg(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,l=Ke(s),a=wt(s);e[r]=n;let u=!1,c;if(Array.isArray(n)){let f=n;c=f[1],(c===null||$t(f,c)>0)&&(u=!0)}else c=n;if(i)if(a!==0){let f=Ke(e[l+1]);e[r+1]=on(f,l),f!==0&&(e[f+1]=ur(e[f+1],r)),e[l+1]=Gg(e[l+1],r)}else e[r+1]=on(l,0),l!==0&&(e[l+1]=ur(e[l+1],r)),l=r;else e[r+1]=on(a,0),l===0?l=r:e[a+1]=ur(e[a+1],r),a=r;u&&(e[r+1]=Br(e[r+1])),Yo(e,c,r,!0),Yo(e,c,r,!1),Kg(t,c,e,r,o),s=on(l,a),o?t.classBindings=s:t.styleBindings=s}function Kg(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&$t(o,t)>=0&&(n[r+1]=Zr(n[r+1]))}function Yo(e,t,n,r){let i=e[n+1],o=t===null,s=r?Ke(i):wt(i),l=!1;for(;s!==0&&(l===!1||o);){let a=e[s],u=e[s+1];Qg(a,t)&&(l=!0,e[s+1]=r?Zr(u):Br(u)),s=r?Ke(u):wt(u)}l&&(e[n+1]=r?Br(i):Zr(i))}function Qg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?$t(e,t)>=0:!1}function Tn(e,t,n){let r=z(),i=Hn();if(Fe(r,i,t)){let o=we(),s=fh();op(o,s,r,e,t,r[ie],n,!1)}return Tn}function Xo(e,t,n,r,i){Pi(t,e,n,i?"class":"style",r)}function Qi(e,t,n){return Yg(e,t,n,!1),Qi}function Yg(e,t,n,r){let i=z(),o=we(),s=ih(2);if(o.firstUpdatePass&&Jg(o,e,s,r),t!==je&&Fe(i,s,t)){let l=o.data[nt()];im(o,l,i,i[ie],e,i[s+1]=om(t,n),r,s)}}function Xg(e,t){return t>=e.expandoStartIndex}function Jg(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[nt()],s=Xg(e,n);sm(o,r)&&t===null&&!s&&(t=!1),t=em(i,o,t,r),qg(i,o,t,n,s,r)}}function em(e,t,n,r){let i=ah(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=cr(null,e,t,n,r),n=Lt(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=cr(i,e,t,n,r),o===null){let l=tm(e,t,r);l!==void 0&&Array.isArray(l)&&(l=cr(null,e,t,l[1],r),l=Lt(l,t.attrs,r),nm(e,t,r,l))}else o=rm(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function tm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(wt(r)!==0)return e[Ke(r)]}function nm(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ke(i)]=r}function rm(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Lt(r,s,n)}return Lt(r,t.attrs,n)}function cr(e,t,n,r,i){let o=null,s=n.directiveEnd,l=n.directiveStylingLast;for(l===-1?l=n.directiveStart:l++;l<s&&(o=t[l],r=Lt(r,o.hostAttrs,i),o!==e);)l++;return e!==null&&(n.directiveStylingLast=l),r}function Lt(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),If(e,s,n?!0:t[++o]))}return e===void 0?null:e}function im(e,t,n,r,i,o,s,l){if(!(t.type&3))return;let a=e.data,u=a[l+1],c=Wg(u)?Jo(a,t,n,i,wt(u),s):void 0;if(!xn(c)){xn(o)||$g(u)&&(o=Jo(a,null,n,i,l,s));let f=pl(nt(),n);kp(r,s,f,i,o)}}function Jo(e,t,n,r,i,o){let s=t===null,l;for(;i>0;){let a=e[i],u=Array.isArray(a),c=u?a[1]:a,f=c===null,g=n[i+1];g===je&&(g=f?$e:void 0);let p=f?tr(g,r):c===r?g:void 0;if(u&&!xn(p)&&(p=tr(a,r)),xn(p)&&(l=p,s))return l;let m=e[i+1];i=s?Ke(m):wt(m)}if(t!==null){let a=o?t.residualClasses:t.residualStyles;a!=null&&(l=tr(a,r))}return l}function xn(e){return e!==void 0}function om(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(Ne(e)))),e}function sm(e,t){return(e.flags&(t?8:16))!==0}var lm=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function fr(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function am(e,t,n){let r,i,o=0,s=e.length-1,l;if(Array.isArray(t)){let a=t.length-1;for(;o<=s&&o<=a;){let u=e.at(o),c=t[o],f=fr(o,u,o,c,n);if(f!==0){f<0&&e.updateValue(o,c),o++;continue}let g=e.at(s),p=t[a],m=fr(s,g,a,p,n);if(m!==0){m<0&&e.updateValue(s,p),s--,a--;continue}let y=n(o,u),w=n(s,g),S=n(o,c);if(Object.is(S,w)){let U=n(a,p);Object.is(U,y)?(e.swap(o,s),e.updateValue(s,p),a--,s--):e.move(s,o),e.updateValue(o,c),o++;continue}if(r??=new ns,i??=ts(e,o,s,n),$r(e,r,o,S))e.updateValue(o,c),o++,s++;else if(i.has(S))r.set(y,e.detach(o)),s--;else{let U=e.create(o,t[o]);e.attach(o,U),o++,s++}}for(;o<=a;)es(e,r,n,o,t[o]),o++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&o<=s;){let c=e.at(o),f=u.value,g=fr(o,c,o,f,n);if(g!==0)g<0&&e.updateValue(o,f),o++,u=a.next();else{r??=new ns,i??=ts(e,o,s,n);let p=n(o,f);if($r(e,r,o,p))e.updateValue(o,f),o++,s++,u=a.next();else if(!i.has(p))e.attach(o,e.create(o,f)),o++,s++,u=a.next();else{let m=n(o,c);r.set(m,e.detach(o)),s--}}}for(;!u.done;)es(e,r,n,e.length,u.value),u=a.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function $r(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function es(e,t,n,r,i){if($r(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function ts(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var ns=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function um(e,t){Bn("NgControlFlow");let n=z(),r=Hn(),i=n[r]!==je?n[r]:-1,o=i!==-1?kn(n,K+i):void 0,s=0;if(Fe(n,r,e)){let l=A(null);try{if(o!==void 0&&$a(o,s),e!==-1){let a=K+e,u=kn(n,a),c=Gr(n[k],a),f=Wi(u,c.tView.ssrId),g=Li(n,c,t,{dehydratedView:f});$i(u,g,s,ji(c,f))}}finally{A(l)}}else if(o!==void 0){let l=Za(o,s);l!==void 0&&(l[q]=t)}}var cm=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-ee}},fm=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function hm(e,t,n,r,i,o,s,l,a,u,c,f,g){Bn("NgControlFlow");let p=z(),m=we(),y=a!==void 0,w=z(),S=l?s.bind(w[ye][q]):s,U=new fm(y,S);w[K+e]=U,Ur(p,m,e+1,t,n,r,i,yt(m.consts,o)),y&&Ur(p,m,e+2,a,u,c,f,yt(m.consts,g))}var dm=class extends lm{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-ee}at(e){return this.getLView(e)[q].$implicit}attach(e,t){let n=t[Rt];this.needsIndexUpdate||=e!==this.length,$i(this.lContainer,t,e,ji(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,gm(this.lContainer,e)}create(e,t){let n=Wi(this.lContainer,this.templateTNode.tView.ssrId),r=Li(this.hostLView,this.templateTNode,new cm(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Ui(e[k],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[q].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[q].$index=e}getLView(e){return mm(this.lContainer,e)}};function pm(e){let t=A(null),n=nt();try{let r=z(),i=r[k],o=r[n],s=n+1,l=kn(r,s);if(o.liveCollection===void 0){let u=Gr(i,s);o.liveCollection=new dm(l,r,u)}else o.liveCollection.reset();let a=o.liveCollection;if(am(a,e,o.trackByFn),a.updateIndexes(),o.hasEmptyBlock){let u=Hn(),c=a.length===0;if(Fe(r,u,c)){let f=n+2,g=kn(r,f);if(c){let p=Gr(i,f),m=Wi(g,p.tView.ssrId),y=Li(r,p,void 0,{dehydratedView:m});$i(g,y,0,ji(p,m))}else $a(g,0)}}}finally{A(t)}}function kn(e,t){return e[t]}function gm(e,t){return Gi(e,t)}function mm(e,t){return Za(e,t)}function Gr(e,t){return mi(e,t)}function jt(e,t,n,r){let i=z(),o=we(),s=K+e,l=i[ie],a=o.firstCreatePass?Qa(s,o,i,t,Na,vl(),n,r):o.data[s],u=ym(o,i,a,l,t,e);i[s]=u;let c=cl(a);return _t(a,!0),Sa(l,u,a),!Aa(a)&&Ei()&&Bi(o,i,u,a),(Kf()===0||c)&&Qt(u,i),Qf(),c&&(Vi(o,i,a),ha(o,a,i)),r!==null&&Da(i,a),jt}function Ht(){let e=Wt();bl()?nh():(e=e.parent,_t(e,!1));let t=e;Jf(t)&&eh(),Yf();let n=we();return n.firstCreatePass&&Ya(n,t),t.classesWithoutHost!=null&&mh(t)&&Xo(n,t,z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&yh(t)&&Xo(n,t,z(),t.stylesWithoutHost,!1),Ht}function zt(e,t,n,r){return jt(e,t,n,r),Ht(),zt}var ym=(e,t,n,r,i,o)=>(Ii(!0),Ia(r,i,hh())),On="en-US",vm=On;function wm(e){typeof e=="string"&&(vm=e.toLowerCase().replace(/_/g,"-"))}function ru(e=1){return ch(e)}function iu(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function bm(e,t=""){let n=z(),r=we(),i=e+K,o=r.firstCreatePass?Wn(r,i,1,t,null):r.data[i],s=Em(r,n,o,t,e);n[i]=s,Ei()&&Bi(r,n,s,o),_t(o,!1)}var Em=(e,t,n,r,i)=>(Ii(!0),Wd(t[ie],r));function ou(e){return su("",e,""),ou}function su(e,t,n){let r=z(),i=Zg(r,e,t,n);return i!==je&&Im(r,nt(),i),su}function Im(e,t,n){let r=pl(t,e);qd(e[ie],r,n)}var _m={};function lu(e){let t=we(),n=z(),r=e+K,i=Wn(t,r,128,null,null);return _t(i,!1),iu(t,n,r,_m),lu}function au(e,t){let n=e[t];return n===je?void 0:n}function Sm(e,t,n,r,i,o){let s=t+n;return Fe(e,s,i)?Ja(e,s+1,o?r.call(o,i):r(i)):au(e,s+1)}function Cm(e,t,n,r,i,o,s){let l=t+n;return Dg(e,l,i,o)?Ja(e,l+2,s?r.call(s,i,o):r(i,o)):au(e,l+2)}function Dn(e,t){let n=we(),r,i=e+K;n.firstCreatePass?(r=Tm(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=dt(r.type,!0)),s,l=J(qn);try{let a=In(!1),u=o();return In(a),iu(n,z(),i,u),u}finally{J(l)}}function Tm(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Wr(e,t,n){let r=e+K,i=z(),o=gl(i,r);return uu(i,r)?Sm(i,Il(),t,o.transform,n,o):o.transform(n)}function xm(e,t,n,r){let i=e+K,o=z(),s=gl(o,i);return uu(o,i)?Cm(o,Il(),t,s.transform,n,r,s):s.transform(n,r)}function uu(e,t){return e[k].data[t].pure}var km=(()=>{class e{zone=V(ne);changeDetectionScheduler=V(qt);applicationRef=V(vt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Om({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ne(Et(Qe({},Dm()),{scheduleInRootZone:n})),[{provide:ne,useFactory:e},{provide:vn,multi:!0,useFactory:()=>{let r=V(km,{optional:!0});return()=>r.initialize()}},{provide:vn,multi:!0,useFactory:()=>{let r=V(Nm);return()=>{r.initialize()}}},t===!0?{provide:Gl,useValue:!0}:[],{provide:Ti,useValue:n??Zl}]}function Dm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Nm=(()=>{class e{subscription=new Te;initialized=!1;zone=V(ne);pendingTasks=V(Un);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cu=(()=>{class e{appRef=V(vt);taskService=V(Un);ngZone=V(ne);zonelessEnabled=V(Ci);tracing=V(Di,{optional:!0});disableScheduling=V(Gl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Sn):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(V(Ti,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ql||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Ao:Wl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Sn+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ao(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Am(){return Bn("NgZoneless"),Cf([{provide:qt,useExisting:cu},{provide:ne,useClass:ql},{provide:Ci,useValue:!0},{provide:Ti,useValue:!1},[]])}function Mm(){return typeof $localize<"u"&&$localize.locale||On}var fu=new L("",{providedIn:"root",factory:()=>V(fu,x.Optional|x.SkipSelf)||Mm()}),qr=new L(""),Rm=new L("");function Tt(e){return!e.moduleRef}function Vm(e){let t=Tt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ne);return n.run(()=>{Tt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Kt,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Tt(e)){let o=()=>t.destroy(),s=e.platformInjector.get(qr);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(qr);s.add(o),e.moduleRef.onDestroy(()=>{fn(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return Fm(r,n,()=>{let o=t.get(nu);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(fu,On);if(wm(s||On),!t.get(Rm,!0))return Tt(e)?t.get(vt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Tt(e)){let l=t.get(vt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Pm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Pm(e,t){let n=e.injector.get(vt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new R(-403,!1);t.push(e)}function Fm(e,t,n){try{let r=n();return tu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var hn=null;function Lm(e=[],t){return zn.create({name:t,providers:[{provide:di,useValue:"platform"},{provide:qr,useValue:new Set([()=>hn=null])},...e]})}function jm(e=[]){if(hn)return hn;let t=Lm(e);return hn=t,Hg(),Hm(t),t}function Hm(e){let t=e.get(sa,null);sl(e,()=>{t?.forEach(n=>n())})}function zm(e){H(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=jm(r),o=[Om({}),{provide:qt,useExisting:cu},...n||[]],s=new Xa({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return Vm({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{H(9)}}var hv=class{[Me];constructor(e){this[Me]=e}destroy(){this[Me].destroy()}},Um={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Bm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Zm(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var hr;function $m(e,t){if(!hr){let n=Element.prototype;hr=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?hr.call(e,t):!1}function Gm(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[Bm(r)]=[n,i]}),t}function Wm(e,t){return t.get(Xt).resolveComponentFactory(e).inputs}function qm(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let l=n[o],a=Km(l,t,i);a!==-1&&r[a].push(l)}return r}function Km(e,t,n){let r=n;return Zm(e)&&t.some((i,o)=>i!=="*"&&$m(e,i)?(r=o,!0):!1),r}var Qm=10,Ym=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Xt).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Xm(this.componentFactory,e,this.inputMap)}},Xm=class{componentFactory;injector;inputMap;eventEmitters=new Tc(1);events=this.eventEmitters.pipe(Yc(e=>Qc(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(ne),this.appRef=this.injector.get(vt),this.cdScheduler=t.get(qt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Um.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Qm))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=zn.create({providers:[],parent:this.injector}),n=qm(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new re(o=>{let s=i.subscribe(l=>o.next({name:r,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Jm=class extends HTMLElement{ngElementEventsSubscription=null};function ey(e,t){let n=Wm(e,t.injector),r=t.strategyFactory||new Ym(e,t.injector),i=Gm(n);class o extends Jm{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:a,transform:u})=>{if(!this.hasOwnProperty(a))return;let c=this[a];delete this[a],l.setInputValue(a,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(l){super(),this.injector=l}attributeChangedCallback(l,a,u,c){let[f,g]=i[l];this.ngElementStrategy.setInputValue(f,u,g)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let a=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(a)})}}return n.forEach(({propName:s,transform:l})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a,l)},configurable:!0,enumerable:!0})}),o}var hu=null;function du(){return hu}function ty(e){hu??=e}var ny=class{},Le=new L("");function ry(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var iy="browser",oy="server";function pu(e){return e===oy}var sy=class{},ly=class extends ny{supportsDOMEvents=!0},ay=class gu extends ly{static makeCurrent(){ty(new gu)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=uy();return n==null?null:cy(n)}resetBaseElement(){Ot=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ry(document.cookie,t)}},Ot=null;function uy(){return Ot=Ot||document.querySelector("base"),Ot?Ot.getAttribute("href"):null}function cy(e){return new URL(e,document.baseURI).pathname}var fy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),Kr=new L(""),mu=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new R(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(F(Kr),F(ne))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),yu=class{_doc;constructor(e){this._doc=e}manager},dn="ng-app-id";function rs(e){for(let t of e)t.remove()}function is(e,t){let n=t.createElement("style");return n.textContent=e,n}function hy(e,t,n,r){let i=e.head?.querySelectorAll(`style[${dn}="${t}"],link[${dn}="${t}"]`);if(i)for(let o of i)o.removeAttribute(dn),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Qr(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var vu=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=pu(o),hy(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,is);r?.forEach(i=>this.addUsage(i,this.external,Qr))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(rs(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])rs(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,is(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Qr(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(dn,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(F(Le),F(oa),F(la,8),F(Oi))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),dr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Yi=/%COMP%/g,wu="%COMP%",dy=`_nghost-${wu}`,py=`_ngcontent-${wu}`,gy=!0,my=new L("",{providedIn:"root",factory:()=>gy});function yy(e){return py.replace(Yi,e)}function vy(e){return dy.replace(Yi,e)}function bu(e,t){return t.map(n=>n.replace(Yi,e))}var os=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,l,a,u=null,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=l,this.ngZone=a,this.nonce=u,this.tracingService=c,this.platformIsServer=pu(l),this.defaultRenderer=new Xi(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ce.ShadowDom&&(r=Et(Qe({},r),{encapsulation:Ce.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof ls?i.applyToHost(n):i instanceof Yr&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,f=this.platformIsServer,g=this.tracingService;switch(r.encapsulation){case Ce.Emulated:o=new ls(a,u,r,this.appId,c,s,l,f,g);break;case Ce.ShadowDom:return new wy(a,u,n,r,s,l,this.nonce,f,g);default:o=new Yr(a,u,r,c,s,l,f,g);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(F(mu),F(vu),F(oa),F(my),F(Le),F(Oi),F(ne),F(la),F(Di,8))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),Xi=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(dr[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(ss(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(ss(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new R(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=dr[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=dr[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Be.DashCase|Be.Important)?e.style.setProperty(t,n,r&Be.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Be.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=du().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function ss(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var wy=class extends Xi{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,l,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=bu(r.id,u);for(let f of u){let g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=f,this.shadowRoot.appendChild(g)}let c=r.getExternalStyles?.();if(c)for(let f of c){let g=Qr(f,i);s&&g.setAttribute("nonce",s),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yr=class extends Xi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,s,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=a?bu(a,u):u,this.styleUrls=n.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ls=class extends Yr{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,l,a){let u=r+"-"+n.id;super(e,t,n,i,o,s,l,a,u),this.contentAttr=yy(u),this.hostAttr=vy(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},by=(()=>{class e extends yu{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})(),as=["alt","control","meta","shift"],Ey={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Iy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},_y=(()=>{class e extends yu{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),l=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>du().onAndCancel(n,s.domEventName,l,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),s="code."),as.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(n,r){let i=Ey[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),as.forEach(s=>{if(s!==i){let l=Iy[s];l(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac})}return e})();function Sy(e){return zm(Cy(e))}function Cy(e){return{appProviders:[...Dy,...e?.providers??[]],platformProviders:Oy}}function Ty(){ay.makeCurrent()}function xy(){return new Kt}function ky(){return Qh(document),document}var Oy=[{provide:Oi,useValue:iy},{provide:sa,useValue:Ty,multi:!0},{provide:Le,useFactory:ky,deps:[]}],Dy=[{provide:di,useValue:"root"},{provide:Kt,useFactory:xy,deps:[]},{provide:Kr,useClass:by,multi:!0,deps:[Le]},{provide:Kr,useClass:_y,multi:!0,deps:[Le]},os,vu,mu,{provide:qi,useExisting:os},{provide:sy,useClass:fy,deps:[]},[]],Eu=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=Z({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=F(Ny),r},providedIn:"root"})}return e})(),Ny=(()=>{class e extends Eu{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case _e.NONE:return r;case _e.HTML:return ze(r,"HTML")?Ne(r):va(this._doc,String(r)).toString();case _e.STYLE:return ze(r,"Style")?Ne(r):r;case _e.SCRIPT:if(ze(r,"Script"))return Ne(r);throw new R(5200,!1);case _e.URL:return ze(r,"URL")?Ne(r):Ni(String(r));case _e.RESOURCE_URL:if(ze(r,"ResourceURL"))return Ne(r);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(n){return fd(n)}bypassSecurityTrustStyle(n){return hd(n)}bypassSecurityTrustScript(n){return dd(n)}bypassSecurityTrustUrl(n){return pd(n)}bypassSecurityTrustResourceUrl(n){return gd(n)}static \u0275fac=function(n){return new(n||e)(F(Le))};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ay={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},oe=Ku(Qu()),My="9.3.10",pr=class Xr{static SDK_VERSION=My;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static SHADOW_SPLITTER=":shadow";static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static{let t=Xr.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");Xr.SDK_VERSION_CODE=parseInt(t,10)}},Se=class{static log(...e){oe.default.info(...e)}static debug(...e){oe.default.debug(...e)}static error(...e){oe.default.error(...e)}static warn(...e){oe.default.warn(...e)}static info(...e){oe.default.info(...e)}static trace(...e){oe.default.trace(...e)}static configure(e=pr.LOG_PREFIX){oe.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${pr.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?oe.default.setLevel(oe.default[localStorage.cooeeLogLevel]):oe.default.setLevel(Ay.debug?oe.default.TRACE:oe.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
8
8
  display: inline-block;
9
9
  font-size: 14px;
10
10
  background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
@@ -23,4 +23,4 @@ Cooee SDK: v${pr.SDK_VERSION}`,console.group("%c Elevate your ecommerce experien
23
23
  `&&(c(),a="",u=0,n=!1);if(!y.scan(f))break;if(s=!0,S=y.scan(Jy)||"name",y.scan(Qy),S==="="?(U=y.scanUntil(cs),y.scan(cs),y.scanUntil(g)):S==="{"?(U=y.scanUntil(p),y.scan(Xy),y.scanUntil(g),S="&"):U=y.scanUntil(g),!y.scan(g))throw new Error("Unclosed tag at "+y.pos);if(S==">"?it=[S,U,w,y.pos,a,u,n]:it=[S,U,w,y.pos],u++,i.push(it),S==="#"||S==="^")r.push(it);else if(S==="/"){if(Ee=r.pop(),!Ee)throw new Error('Unopened section "'+U+'" at '+w);if(Ee[1]!==U)throw new Error('Unclosed section "'+Ee[1]+'" at '+w)}else S==="name"||S==="{"||S==="&"?l=!0:S==="="&&m(U)}if(c(),Ee=r.pop(),Ee)throw new Error('Unclosed section "'+Ee[1]+'" at '+y.pos);return nv(tv(i))}function tv(e){for(var t=[],n,r,i=0,o=e.length;i<o;++i)n=e[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function nv(e){for(var t=[],n=t,r=[],i,o,s=0,l=e.length;s<l;++s)switch(i=e[s],i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":o=r.pop(),o[5]=i[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function Jt(e){this.string=e,this.tail=e,this.pos=0}Jt.prototype.eos=function(){return this.tail===""};Jt.prototype.scan=function(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};Jt.prototype.scanUntil=function(e){var t=this.tail.search(e),n;switch(t){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=n.length,n};function bt(e,t){this.view=e,this.cache={".":this.view},this.parent=t}bt.prototype.push=function(e){return new bt(e,this)};bt.prototype.lookup=function(e){var t=this.cache,n;if(t.hasOwnProperty(e))n=t[e];else{for(var r=this,i,o,s,l=!1;r;){if(e.indexOf(".")>0)for(i=r.view,o=e.split("."),s=0;i!=null&&s<o.length;)s===o.length-1&&(l=us(i,o[s])||By(i,o[s])),i=i[o[s++]];else i=r.view[e],l=us(r.view,e);if(l){n=i;break}r=r.parent}t[e]=n}return Ji(n)&&(n=n.call(this.view)),n};function Y(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Y.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Y.prototype.parse=function(e,t){var n=this.templateCache,r=e+":"+(t||le.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=ev(e,t),i&&n.set(r,o)),o};Y.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),o=this.parse(e,i),s=t instanceof bt?t:new bt(t,void 0);return this.renderTokens(o,s,n,e,r)};Y.prototype.renderTokens=function(e,t,n,r,i){for(var o="",s,l,a,u=0,c=e.length;u<c;++u)a=void 0,s=e[u],l=s[0],l==="#"?a=this.renderSection(s,t,n,r,i):l==="^"?a=this.renderInverted(s,t,n,r,i):l===">"?a=this.renderPartial(s,t,n,i):l==="&"?a=this.unescapedValue(s,t):l==="name"?a=this.escapedValue(s,t,i):l==="text"&&(a=this.rawValue(s)),a!==void 0&&(o+=a);return o};Y.prototype.renderSection=function(e,t,n,r,i){var o=this,s="",l=t.lookup(e[1]);function a(f){return o.render(f,t,n,i)}if(l){if(St(l))for(var u=0,c=l.length;u<c;++u)s+=this.renderTokens(e[4],t.push(l[u]),n,r,i);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")s+=this.renderTokens(e[4],t.push(l),n,r,i);else if(Ji(l)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(t.view,r.slice(e[3],e[5]),a),l!=null&&(s+=l)}else s+=this.renderTokens(e[4],t,n,r,i);return s}};Y.prototype.renderInverted=function(e,t,n,r,i){var o=t.lookup(e[1]);if(!o||St(o)&&o.length===0)return this.renderTokens(e[4],t,n,r,i)};Y.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split(`
24
24
  `),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join(`
25
25
  `)};Y.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Ji(n)?n(e[1]):n[e[1]];if(o!=null){var s=e[6],l=e[5],a=e[4],u=o;l==0&&a&&(u=this.indentPartial(o,a,s));var c=this.parse(u,i);return this.renderTokens(c,t,n,u,r)}}};Y.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(n!=null)return n};Y.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||le.escape,i=t.lookup(e[1]);if(i!=null)return typeof i=="number"&&r===le.escape?String(i):r(i)};Y.prototype.rawValue=function(e){return e[1]};Y.prototype.getConfigTags=function(e){return St(e)?e:e&&typeof e=="object"?e.tags:void 0};Y.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!St(e))return e.escape};var le={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Ut.templateCache=e},get templateCache(){return Ut.templateCache}},Ut=new Y;le.clearCache=function(){return Ut.clearCache()};le.parse=function(e,t){return Ut.parse(e,t)};le.render=function(e,t,n,r){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Uy(e)+'" was given as the first argument for mustache#render(template, view, partials)');return Ut.render(e,t,n,r)};le.escape=Ky;le.Scanner=Jt;le.Context=bt;le.Writer=Y;var _u=le;_u.escape=Hy.escapeHtml;var rv=class ei{transform(t,n){return t?_u.render(t,Qe({},n)):null}static \u0275fac=function(t){return new(t||ei)};static \u0275pipe=Ki({name:"cooeeDynamicVariables",type:ei,pure:!0})},eo={};(function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=function(){if(!t.OffscreenCanvas)return!1;var d=new OffscreenCanvas(1,1),h=d.getContext("2d");h.fillRect(0,0,1,1);var v=d.transferToImageBitmap();try{h.createPattern(v,"no-repeat")}catch{return!1}return!0}();function a(){}function u(d){var h=n.exports.Promise,v=h!==void 0?h:t.Promise;return typeof v=="function"?new v(d):(d(a,a),null)}var c=function(d,h){return{transform:function(v){if(d)return v;if(h.has(v))return h.get(v);var b=new OffscreenCanvas(v.width,v.height),C=b.getContext("2d");return C.drawImage(v,0,0),h.set(v,b),b},clear:function(){h.clear()}}}(l,new Map),f=function(){var d=Math.floor(16.666666666666668),h,v,b={},C=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(h=function(T){var _=Math.random();return b[_]=requestAnimationFrame(function E(D){C===D||C+d-1<D?(C=D,delete b[_],T()):b[_]=requestAnimationFrame(E)}),_},v=function(T){b[T]&&cancelAnimationFrame(b[T])}):(h=function(T){return setTimeout(T,d)},v=function(T){return clearTimeout(T)}),{frame:h,cancel:v}}(),g=function(){var d,h,v={};function b(C){function T(_,E){C.postMessage({options:_||{},callback:E})}C.init=function(_){var E=_.transferControlToOffscreen();C.postMessage({canvas:E},[E])},C.fire=function(_,E,D){if(h)return T(_,null),h;var M=Math.random().toString(36).slice(2);return h=u(function(W){function P(B){B.data.callback===M&&(delete v[M],C.removeEventListener("message",P),h=null,c.clear(),D(),W())}C.addEventListener("message",P),T(_,M),v[M]=P.bind(null,{data:{callback:M}})}),h},C.reset=function(){C.postMessage({reset:!0});for(var _ in v)v[_](),delete v[_]}}return function(){if(d)return d;if(!r&&o){var C=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
26
- `);try{d=new Worker(URL.createObjectURL(new Blob([C])))}catch(T){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",T),null}b(d)}return d}}(),p={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function m(d,h){return h?h(d):d}function y(d){return d!=null}function w(d,h,v){return m(d&&y(d[h])?d[h]:p[h],v)}function S(d){return d<0?0:Math.floor(d)}function U(d,h){return Math.floor(Math.random()*(h-d))+d}function be(d){return parseInt(d,16)}function it(d){return d.map(Ee)}function Ee(d){var h=String(d).replace(/[^0-9a-f]/gi,"");return h.length<6&&(h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2]),{r:be(h.substring(0,2)),g:be(h.substring(2,4)),b:be(h.substring(4,6))}}function Ct(d){var h=w(d,"origin",Object);return h.x=w(h,"x",Number),h.y=w(h,"y",Number),h}function Kn(d){d.width=document.documentElement.clientWidth,d.height=document.documentElement.clientHeight}function ae(d){var h=d.getBoundingClientRect();d.width=h.width,d.height=h.height}function Su(d){var h=document.createElement("canvas");return h.style.position="fixed",h.style.top="0px",h.style.left="0px",h.style.pointerEvents="none",h.style.zIndex=d,h}function Cu(d,h,v,b,C,T,_,E,D){d.save(),d.translate(h,v),d.rotate(T),d.scale(b,C),d.arc(0,0,1,_,E,D),d.restore()}function Tu(d){var h=d.angle*(Math.PI/180),v=d.spread*(Math.PI/180);return{x:d.x,y:d.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:d.startVelocity*.5+Math.random()*d.startVelocity,angle2D:-h+(.5*v-Math.random()*v),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:d.color,shape:d.shape,tick:0,totalTicks:d.ticks,decay:d.decay,drift:d.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d.gravity*3,ovalScalar:.6,scalar:d.scalar,flat:d.flat}}function xu(d,h){h.x+=Math.cos(h.angle2D)*h.velocity+h.drift,h.y+=Math.sin(h.angle2D)*h.velocity+h.gravity,h.velocity*=h.decay,h.flat?(h.wobble=0,h.wobbleX=h.x+10*h.scalar,h.wobbleY=h.y+10*h.scalar,h.tiltSin=0,h.tiltCos=0,h.random=1):(h.wobble+=h.wobbleSpeed,h.wobbleX=h.x+10*h.scalar*Math.cos(h.wobble),h.wobbleY=h.y+10*h.scalar*Math.sin(h.wobble),h.tiltAngle+=.1,h.tiltSin=Math.sin(h.tiltAngle),h.tiltCos=Math.cos(h.tiltAngle),h.random=Math.random()+2);var v=h.tick++/h.totalTicks,b=h.x+h.random*h.tiltCos,C=h.y+h.random*h.tiltSin,T=h.wobbleX+h.random*h.tiltCos,_=h.wobbleY+h.random*h.tiltSin;if(d.fillStyle="rgba("+h.color.r+", "+h.color.g+", "+h.color.b+", "+(1-v)+")",d.beginPath(),s&&h.shape.type==="path"&&typeof h.shape.path=="string"&&Array.isArray(h.shape.matrix))d.fill(Ou(h.shape.path,h.shape.matrix,h.x,h.y,Math.abs(T-b)*.1,Math.abs(_-C)*.1,Math.PI/10*h.wobble));else if(h.shape.type==="bitmap"){var E=Math.PI/10*h.wobble,D=Math.abs(T-b)*.1,M=Math.abs(_-C)*.1,W=h.shape.bitmap.width*h.scalar,P=h.shape.bitmap.height*h.scalar,B=new DOMMatrix([Math.cos(E)*D,Math.sin(E)*D,-Math.sin(E)*M,Math.cos(E)*M,h.x,h.y]);B.multiplySelf(new DOMMatrix(h.shape.matrix));var Q=d.createPattern(c.transform(h.shape.bitmap),"no-repeat");Q.setTransform(B),d.globalAlpha=1-v,d.fillStyle=Q,d.fillRect(h.x-W/2,h.y-P/2,W,P),d.globalAlpha=1}else if(h.shape==="circle")d.ellipse?d.ellipse(h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(_-C)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI):Cu(d,h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(_-C)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI);else if(h.shape==="star")for(var N=Math.PI/2*3,X=4*h.scalar,ue=8*h.scalar,ce=h.x,Ie=h.y,He=5,ge=Math.PI/He;He--;)ce=h.x+Math.cos(N)*ue,Ie=h.y+Math.sin(N)*ue,d.lineTo(ce,Ie),N+=ge,ce=h.x+Math.cos(N)*X,Ie=h.y+Math.sin(N)*X,d.lineTo(ce,Ie),N+=ge;else d.moveTo(Math.floor(h.x),Math.floor(h.y)),d.lineTo(Math.floor(h.wobbleX),Math.floor(C)),d.lineTo(Math.floor(T),Math.floor(_)),d.lineTo(Math.floor(b),Math.floor(h.wobbleY));return d.closePath(),d.fill(),h.tick<h.totalTicks}function ku(d,h,v,b,C){var T=h.slice(),_=d.getContext("2d"),E,D,M=u(function(W){function P(){E=D=null,_.clearRect(0,0,b.width,b.height),c.clear(),C(),W()}function B(){r&&!(b.width===i.width&&b.height===i.height)&&(b.width=d.width=i.width,b.height=d.height=i.height),!b.width&&!b.height&&(v(d),b.width=d.width,b.height=d.height),_.clearRect(0,0,b.width,b.height),T=T.filter(function(Q){return xu(_,Q)}),T.length?E=f.frame(B):P()}E=f.frame(B),D=P});return{addFettis:function(W){return T=T.concat(W),M},canvas:d,promise:M,reset:function(){E&&f.cancel(E),D&&D()}}}function to(d,h){var v=!d,b=!!w(h||{},"resize"),C=!1,T=w(h,"disableForReducedMotion",Boolean),_=o&&!!w(h||{},"useWorker"),E=_?g():null,D=v?Kn:ae,M=d&&E?!!d.__confetti_initialized:!1,W=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,P;function B(N,X,ue){for(var ce=w(N,"particleCount",S),Ie=w(N,"angle",Number),He=w(N,"spread",Number),ge=w(N,"startVelocity",Number),Au=w(N,"decay",Number),Mu=w(N,"gravity",Number),Ru=w(N,"drift",Number),ro=w(N,"colors",it),Vu=w(N,"ticks",Number),io=w(N,"shapes"),Pu=w(N,"scalar"),Fu=!!w(N,"flat"),oo=Ct(N),so=ce,Yn=[],Lu=d.width*oo.x,ju=d.height*oo.y;so--;)Yn.push(Tu({x:Lu,y:ju,angle:Ie,spread:He,startVelocity:ge,color:ro[so%ro.length],shape:io[U(0,io.length)],ticks:Vu,decay:Au,gravity:Mu,drift:Ru,scalar:Pu,flat:Fu}));return P?P.addFettis(Yn):(P=ku(d,Yn,D,X,ue),P.promise)}function Q(N){var X=T||w(N,"disableForReducedMotion",Boolean),ue=w(N,"zIndex",Number);if(X&&W)return u(function(ge){ge()});v&&P?d=P.canvas:v&&!d&&(d=Su(ue),document.body.appendChild(d)),b&&!M&&D(d);var ce={width:d.width,height:d.height};E&&!M&&E.init(d),M=!0,E&&(d.__confetti_initialized=!0);function Ie(){if(E){var ge={getBoundingClientRect:function(){if(!v)return d.getBoundingClientRect()}};D(ge),E.postMessage({resize:{width:ge.width,height:ge.height}});return}ce.width=ce.height=null}function He(){P=null,b&&(C=!1,t.removeEventListener("resize",Ie)),v&&d&&(document.body.contains(d)&&document.body.removeChild(d),d=null,M=!1)}return b&&!C&&(C=!0,t.addEventListener("resize",Ie,!1)),E?E.fire(N,ce,He):B(N,ce,He)}return Q.reset=function(){E&&E.reset(),P&&P.reset()},Q}var Qn;function no(){return Qn||(Qn=to(null,{useWorker:!0,resize:!0})),Qn}function Ou(d,h,v,b,C,T,_){var E=new Path2D(d),D=new Path2D;D.addPath(E,new DOMMatrix(h));var M=new Path2D;return M.addPath(D,new DOMMatrix([Math.cos(_)*C,Math.sin(_)*C,-Math.sin(_)*T,Math.cos(_)*T,v,b])),M}function Du(d){if(!s)throw new Error("path confetti are not supported in this browser");var h,v;typeof d=="string"?h=d:(h=d.path,v=d.matrix);var b=new Path2D(h),C=document.createElement("canvas"),T=C.getContext("2d");if(!v){for(var _=1e3,E=_,D=_,M=0,W=0,P,B,Q=0;Q<_;Q+=2)for(var N=0;N<_;N+=2)T.isPointInPath(b,Q,N,"nonzero")&&(E=Math.min(E,Q),D=Math.min(D,N),M=Math.max(M,Q),W=Math.max(W,N));P=M-E,B=W-D;var X=10,ue=Math.min(X/P,X/B);v=[ue,0,0,ue,-Math.round(P/2+E)*ue,-Math.round(B/2+D)*ue]}return{type:"path",path:h,matrix:v}}function Nu(d){var h,v=1,b="#000000",C='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof d=="string"?h=d:(h=d.text,v="scalar"in d?d.scalar:v,C="fontFamily"in d?d.fontFamily:C,b="color"in d?d.color:b);var T=10*v,_=""+T+"px "+C,E=new OffscreenCanvas(T,T),D=E.getContext("2d");D.font=_;var M=D.measureText(h),W=Math.ceil(M.actualBoundingBoxRight+M.actualBoundingBoxLeft),P=Math.ceil(M.actualBoundingBoxAscent+M.actualBoundingBoxDescent),B=2,Q=M.actualBoundingBoxLeft+B,N=M.actualBoundingBoxAscent+B;W+=B+B,P+=B+B,E=new OffscreenCanvas(W,P),D=E.getContext("2d"),D.font=_,D.fillStyle=b,D.fillText(h,Q,N);var X=1/v;return{type:"bitmap",bitmap:E.transferToImageBitmap(),matrix:[X,0,0,X,-W*X/2,-P*X/2]}}n.exports=function(){return no().apply(this,arguments)},n.exports.reset=function(){no().reset()},n.exports.create=to,n.exports.shapeFromPath=Du,n.exports.shapeFromText=Nu})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),eo,!1);var iv=eo.exports,dv=eo.exports.create,ov=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(e=100){let t=[],n=Date.now()+2e3,r=()=>{t.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&e>0&&(requestAnimationFrame(r),e--)};r(),await Promise.all(t)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(e){Object.assign(e,this.DEFAULTS,e),e.particleCount=e.particleCount??this.DEFAULTS.colors.length,await iv(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},sv=class ti{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(t){return new(t||ti)(qn(Eu,16))};static \u0275pipe=Ki({name:"safeHtml",type:ti,pure:!0})},lv=(e,t)=>t.minValue;function av(e,t){if(e&1&&(jt(0,"li",6)(1,"div",7),zt(2,"div",8),Dn(3,"cooeeCurrency"),Dn(4,"safeHtml"),zt(5,"img",9),jt(6,"div",10),bm(7),Ht()()()),e&2){let n=t.$implicit,r=ru(2);Qi("left",n.calculatedAlignment+"%"),ft(2),Tn("innerHTML",Wr(4,7,Wr(3,5,n.minValue)),wa),ft(3),Tn("src",r.getIconURL(n),Vd),ft(2),ou(n.label)}}function uv(e,t){if(e&1&&(lu(0)(1),zt(2,"div",0),Dn(3,"cooeeDynamicVariables"),Dn(4,"safeHtml"),jt(5,"div",1)(6,"ul",2)(7,"div",3),zt(8,"div",4),Ht(),hm(9,av,8,9,"li",5,lv),Ht()()),e&2){let n=ru(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;ft(2),Tn("innerHTML",Wr(4,6,xm(3,3,i,n.localDynamicVariables)),wa),ft(6),Qi("width",r.cartValuePercentage+"%"),ft(),pm(r.milestones)}}var cv=class ni{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables={};calculatedState=Vo({});_engagementTrigger=Vo(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){Se.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){Se.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===pn.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===pn.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===pn.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Se.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){Se.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,i=r.milestones.at(-1),o=i.minValue+Math.floor(i.minValue*5/100),s=n.originalAmount,l=Math.min(s,o),a=100-Math.abs((l-o)*100/o);Se.debug("Cart value:",s,`, percentage: ${a}%`);for(let f of r.milestones)f.calculatedAlignment=100-Math.abs((f.minValue-o)*100/o);this.celebrate(t,s);let u={milestonesReady:!0,cartValuePercentage:a,milestones:r.milestones},c=r.milestones.find(f=>f.minValue>s);if(c){this.localDynamicVariables.amount_left=Iu.formatCurrency(c.minValue-s),u.nextMilestone=c,this.calculatedState.set(u);return}u.lastMilestone=i,this.calculatedState.set(u)}celebrate(t,n){let r=[...t.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${t.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),ov.realistic())}static \u0275fac=function(t){return new(t||ni)(qn(Yl))};static \u0275cmp=Ig({type:ni,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[[1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],[1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],[1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],[1,"lc:bg-green-700","lc:h-full","lc:block!"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],[1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],[1,"lc="]],template:function(t,n){t&1&&eu(0,uv,11,8),t&2&&um(n.calculatedState().milestonesReady?0:-1)},dependencies:[rv,sv,jy],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};Se.configure("CooeeWidgetSDK");(async()=>{let e=await Sy(Ry),t=ey(cv,{injector:e.injector});customElements.define("cooee-progressbar",t)})();})();
26
+ `);try{d=new Worker(URL.createObjectURL(new Blob([C])))}catch(T){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",T),null}b(d)}return d}}(),p={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function m(d,h){return h?h(d):d}function y(d){return d!=null}function w(d,h,v){return m(d&&y(d[h])?d[h]:p[h],v)}function S(d){return d<0?0:Math.floor(d)}function U(d,h){return Math.floor(Math.random()*(h-d))+d}function be(d){return parseInt(d,16)}function it(d){return d.map(Ee)}function Ee(d){var h=String(d).replace(/[^0-9a-f]/gi,"");return h.length<6&&(h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2]),{r:be(h.substring(0,2)),g:be(h.substring(2,4)),b:be(h.substring(4,6))}}function Ct(d){var h=w(d,"origin",Object);return h.x=w(h,"x",Number),h.y=w(h,"y",Number),h}function Kn(d){d.width=document.documentElement.clientWidth,d.height=document.documentElement.clientHeight}function ae(d){var h=d.getBoundingClientRect();d.width=h.width,d.height=h.height}function Su(d){var h=document.createElement("canvas");return h.style.position="fixed",h.style.top="0px",h.style.left="0px",h.style.pointerEvents="none",h.style.zIndex=d,h}function Cu(d,h,v,b,C,T,_,E,D){d.save(),d.translate(h,v),d.rotate(T),d.scale(b,C),d.arc(0,0,1,_,E,D),d.restore()}function Tu(d){var h=d.angle*(Math.PI/180),v=d.spread*(Math.PI/180);return{x:d.x,y:d.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:d.startVelocity*.5+Math.random()*d.startVelocity,angle2D:-h+(.5*v-Math.random()*v),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:d.color,shape:d.shape,tick:0,totalTicks:d.ticks,decay:d.decay,drift:d.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d.gravity*3,ovalScalar:.6,scalar:d.scalar,flat:d.flat}}function xu(d,h){h.x+=Math.cos(h.angle2D)*h.velocity+h.drift,h.y+=Math.sin(h.angle2D)*h.velocity+h.gravity,h.velocity*=h.decay,h.flat?(h.wobble=0,h.wobbleX=h.x+10*h.scalar,h.wobbleY=h.y+10*h.scalar,h.tiltSin=0,h.tiltCos=0,h.random=1):(h.wobble+=h.wobbleSpeed,h.wobbleX=h.x+10*h.scalar*Math.cos(h.wobble),h.wobbleY=h.y+10*h.scalar*Math.sin(h.wobble),h.tiltAngle+=.1,h.tiltSin=Math.sin(h.tiltAngle),h.tiltCos=Math.cos(h.tiltAngle),h.random=Math.random()+2);var v=h.tick++/h.totalTicks,b=h.x+h.random*h.tiltCos,C=h.y+h.random*h.tiltSin,T=h.wobbleX+h.random*h.tiltCos,_=h.wobbleY+h.random*h.tiltSin;if(d.fillStyle="rgba("+h.color.r+", "+h.color.g+", "+h.color.b+", "+(1-v)+")",d.beginPath(),s&&h.shape.type==="path"&&typeof h.shape.path=="string"&&Array.isArray(h.shape.matrix))d.fill(Ou(h.shape.path,h.shape.matrix,h.x,h.y,Math.abs(T-b)*.1,Math.abs(_-C)*.1,Math.PI/10*h.wobble));else if(h.shape.type==="bitmap"){var E=Math.PI/10*h.wobble,D=Math.abs(T-b)*.1,M=Math.abs(_-C)*.1,W=h.shape.bitmap.width*h.scalar,P=h.shape.bitmap.height*h.scalar,B=new DOMMatrix([Math.cos(E)*D,Math.sin(E)*D,-Math.sin(E)*M,Math.cos(E)*M,h.x,h.y]);B.multiplySelf(new DOMMatrix(h.shape.matrix));var Q=d.createPattern(c.transform(h.shape.bitmap),"no-repeat");Q.setTransform(B),d.globalAlpha=1-v,d.fillStyle=Q,d.fillRect(h.x-W/2,h.y-P/2,W,P),d.globalAlpha=1}else if(h.shape==="circle")d.ellipse?d.ellipse(h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(_-C)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI):Cu(d,h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(_-C)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI);else if(h.shape==="star")for(var N=Math.PI/2*3,X=4*h.scalar,ue=8*h.scalar,ce=h.x,Ie=h.y,He=5,ge=Math.PI/He;He--;)ce=h.x+Math.cos(N)*ue,Ie=h.y+Math.sin(N)*ue,d.lineTo(ce,Ie),N+=ge,ce=h.x+Math.cos(N)*X,Ie=h.y+Math.sin(N)*X,d.lineTo(ce,Ie),N+=ge;else d.moveTo(Math.floor(h.x),Math.floor(h.y)),d.lineTo(Math.floor(h.wobbleX),Math.floor(C)),d.lineTo(Math.floor(T),Math.floor(_)),d.lineTo(Math.floor(b),Math.floor(h.wobbleY));return d.closePath(),d.fill(),h.tick<h.totalTicks}function ku(d,h,v,b,C){var T=h.slice(),_=d.getContext("2d"),E,D,M=u(function(W){function P(){E=D=null,_.clearRect(0,0,b.width,b.height),c.clear(),C(),W()}function B(){r&&!(b.width===i.width&&b.height===i.height)&&(b.width=d.width=i.width,b.height=d.height=i.height),!b.width&&!b.height&&(v(d),b.width=d.width,b.height=d.height),_.clearRect(0,0,b.width,b.height),T=T.filter(function(Q){return xu(_,Q)}),T.length?E=f.frame(B):P()}E=f.frame(B),D=P});return{addFettis:function(W){return T=T.concat(W),M},canvas:d,promise:M,reset:function(){E&&f.cancel(E),D&&D()}}}function to(d,h){var v=!d,b=!!w(h||{},"resize"),C=!1,T=w(h,"disableForReducedMotion",Boolean),_=o&&!!w(h||{},"useWorker"),E=_?g():null,D=v?Kn:ae,M=d&&E?!!d.__confetti_initialized:!1,W=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,P;function B(N,X,ue){for(var ce=w(N,"particleCount",S),Ie=w(N,"angle",Number),He=w(N,"spread",Number),ge=w(N,"startVelocity",Number),Au=w(N,"decay",Number),Mu=w(N,"gravity",Number),Ru=w(N,"drift",Number),ro=w(N,"colors",it),Vu=w(N,"ticks",Number),io=w(N,"shapes"),Pu=w(N,"scalar"),Fu=!!w(N,"flat"),oo=Ct(N),so=ce,Yn=[],Lu=d.width*oo.x,ju=d.height*oo.y;so--;)Yn.push(Tu({x:Lu,y:ju,angle:Ie,spread:He,startVelocity:ge,color:ro[so%ro.length],shape:io[U(0,io.length)],ticks:Vu,decay:Au,gravity:Mu,drift:Ru,scalar:Pu,flat:Fu}));return P?P.addFettis(Yn):(P=ku(d,Yn,D,X,ue),P.promise)}function Q(N){var X=T||w(N,"disableForReducedMotion",Boolean),ue=w(N,"zIndex",Number);if(X&&W)return u(function(ge){ge()});v&&P?d=P.canvas:v&&!d&&(d=Su(ue),document.body.appendChild(d)),b&&!M&&D(d);var ce={width:d.width,height:d.height};E&&!M&&E.init(d),M=!0,E&&(d.__confetti_initialized=!0);function Ie(){if(E){var ge={getBoundingClientRect:function(){if(!v)return d.getBoundingClientRect()}};D(ge),E.postMessage({resize:{width:ge.width,height:ge.height}});return}ce.width=ce.height=null}function He(){P=null,b&&(C=!1,t.removeEventListener("resize",Ie)),v&&d&&(document.body.contains(d)&&document.body.removeChild(d),d=null,M=!1)}return b&&!C&&(C=!0,t.addEventListener("resize",Ie,!1)),E?E.fire(N,ce,He):B(N,ce,He)}return Q.reset=function(){E&&E.reset(),P&&P.reset()},Q}var Qn;function no(){return Qn||(Qn=to(null,{useWorker:!0,resize:!0})),Qn}function Ou(d,h,v,b,C,T,_){var E=new Path2D(d),D=new Path2D;D.addPath(E,new DOMMatrix(h));var M=new Path2D;return M.addPath(D,new DOMMatrix([Math.cos(_)*C,Math.sin(_)*C,-Math.sin(_)*T,Math.cos(_)*T,v,b])),M}function Du(d){if(!s)throw new Error("path confetti are not supported in this browser");var h,v;typeof d=="string"?h=d:(h=d.path,v=d.matrix);var b=new Path2D(h),C=document.createElement("canvas"),T=C.getContext("2d");if(!v){for(var _=1e3,E=_,D=_,M=0,W=0,P,B,Q=0;Q<_;Q+=2)for(var N=0;N<_;N+=2)T.isPointInPath(b,Q,N,"nonzero")&&(E=Math.min(E,Q),D=Math.min(D,N),M=Math.max(M,Q),W=Math.max(W,N));P=M-E,B=W-D;var X=10,ue=Math.min(X/P,X/B);v=[ue,0,0,ue,-Math.round(P/2+E)*ue,-Math.round(B/2+D)*ue]}return{type:"path",path:h,matrix:v}}function Nu(d){var h,v=1,b="#000000",C='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof d=="string"?h=d:(h=d.text,v="scalar"in d?d.scalar:v,C="fontFamily"in d?d.fontFamily:C,b="color"in d?d.color:b);var T=10*v,_=""+T+"px "+C,E=new OffscreenCanvas(T,T),D=E.getContext("2d");D.font=_;var M=D.measureText(h),W=Math.ceil(M.actualBoundingBoxRight+M.actualBoundingBoxLeft),P=Math.ceil(M.actualBoundingBoxAscent+M.actualBoundingBoxDescent),B=2,Q=M.actualBoundingBoxLeft+B,N=M.actualBoundingBoxAscent+B;W+=B+B,P+=B+B,E=new OffscreenCanvas(W,P),D=E.getContext("2d"),D.font=_,D.fillStyle=b,D.fillText(h,Q,N);var X=1/v;return{type:"bitmap",bitmap:E.transferToImageBitmap(),matrix:[X,0,0,X,-W*X/2,-P*X/2]}}n.exports=function(){return no().apply(this,arguments)},n.exports.reset=function(){no().reset()},n.exports.create=to,n.exports.shapeFromPath=Du,n.exports.shapeFromText=Nu})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),eo,!1);var iv=eo.exports,dv=eo.exports.create,ov=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(e=100){let t=[],n=Date.now()+2e3,r=()=>{t.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&e>0&&(requestAnimationFrame(r),e--)};r(),await Promise.all(t)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(e){Object.assign(e,this.DEFAULTS,e),e.particleCount=e.particleCount??this.DEFAULTS.colors.length,await iv(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},sv=class ti{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(t){return new(t||ti)(qn(Eu,16))};static \u0275pipe=Ki({name:"safeHtml",type:ti,pure:!0})},lv=(e,t)=>t.minValue;function av(e,t){if(e&1&&(jt(0,"li",6)(1,"div",7),zt(2,"div",8),Dn(3,"cooeeCurrency"),Dn(4,"safeHtml"),zt(5,"img",9),jt(6,"div",10),bm(7),Ht()()()),e&2){let n=t.$implicit,r=ru(2);Qi("left",n.calculatedAlignment+"%"),ft(2),Tn("innerHTML",Wr(4,7,Wr(3,5,n.minValue)),wa),ft(3),Tn("src",r.getIconURL(n),Vd),ft(2),ou(n.label)}}function uv(e,t){if(e&1&&(lu(0)(1),zt(2,"div",0),Dn(3,"cooeeDynamicVariables"),Dn(4,"safeHtml"),jt(5,"div",1)(6,"ul",2)(7,"div",3),zt(8,"div",4),Ht(),hm(9,av,8,9,"li",5,lv),Ht()()),e&2){let n=ru(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;ft(2),Tn("innerHTML",Wr(4,6,xm(3,3,i,n.localDynamicVariables)),wa),ft(6),Qi("width",r.cartValuePercentage+"%"),ft(),pm(r.milestones)}}var cv=class ni{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables={};calculatedState=Vo({});_engagementTrigger=Vo(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){Se.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){Se.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===pn.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===pn.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===pn.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Se.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){Se.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,i=r.milestones.at(-1),o=i.minValue+Math.floor(i.minValue*5/100),s=n.originalAmount,l=Math.min(s,o),a=100-Math.abs((l-o)*100/o);Se.debug("Cart value:",s,`, percentage: ${a}%`);for(let f of r.milestones)f.calculatedAlignment=100-Math.abs((f.minValue-o)*100/o);this.celebrate(t,s);let u={milestonesReady:!0,cartValuePercentage:a,milestones:r.milestones},c=r.milestones.find(f=>f.minValue>s);if(c){this.localDynamicVariables.amount_left=Iu.formatCurrency(c.minValue-s),u.nextMilestone=c,this.calculatedState.set(u);return}u.lastMilestone=i,this.calculatedState.set(u)}celebrate(t,n){let r=[...t.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${t.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),ov.realistic())}static \u0275fac=function(t){return new(t||ni)(qn(Yl))};static \u0275cmp=Ig({type:ni,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[["id","lc-heading",1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],["id","lc-milestone-list",1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],["id","lc-untracked-path",1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],["id","lc-tracked-path",1,"lc:bg-green-700","lc:h-full","lc:block!"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],["id","lc-milestone-value",1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","id","lc-milestone-icon","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],["id","lc-milestone-label",1,"lc="]],template:function(t,n){t&1&&eu(0,uv,11,8),t&2&&um(n.calculatedState().milestonesReady?0:-1)},dependencies:[rv,sv,jy],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};Se.configure("CooeeWidgetSDK");(async()=>{let e=await Sy(Ry),t=ey(cv,{injector:e.injector});customElements.define("cooee-progressbar",t)})();})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@letscooee/web-sdk",
3
3
  "description": "Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent",
4
- "version": "9.3.9",
4
+ "version": "9.3.10",
5
5
  "scripts": {
6
6
  "lint": "ng lint",
7
7
  "integrity": "./scripts/validate-integrity.sh",