@letscooee/web-sdk 9.3.33 → 9.3.34
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 ig=Object.create,Ac=Object.defineProperty,og=Object.defineProperties,sg=Object.getOwnPropertyDescriptor,ag=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertyNames,ap=Object.getOwnPropertySymbols,lg=Object.getPrototypeOf,lp=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable,cp=(e,t,r)=>t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||={})lp.call(t,r)&&cp(e,r,t[r]);if(ap)for(var r of ap(t))ug.call(t,r)&&cp(e,r,t[r]);return e},ee=(e,t)=>og(e,ag(t)),zi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ur=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cg(t))!lp.call(e,i)&&i!==r&&Ac(e,i,{get:()=>t[i],enumerable:!(n=sg(t,i))||n.enumerable});return e},Ce=(e,t,r)=>(r=e!=null?ig(lg(e)):{},pg(t||!e||!e.__esModule?Ac(r,"default",{value:e,enumerable:!0}):r,e)),nn=ur((e,t)=>{"use strict";(function(r){"use strict";var n={};n.VERSION="1.6.1";var i,s={},o=function(h,y){return function(){return y.apply(h,arguments)}},c=function(){var h=arguments,y=h[0],E,v;for(v=1;v<h.length;v++)for(E in h[v])!(E in y)&&h[v].hasOwnProperty(E)&&(y[E]=h[v][E]);return y},u=function(h,y){return{value:h,name:y}};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 p=function(h){this.context=h,this.setLevel(h.filterLevel),this.log=this.info};p.prototype={setLevel:function(h){h&&"value"in h&&(this.context.filterLevel=h)},getLevel:function(){return this.context.filterLevel},enabledFor:function(h){var y=this.context.filterLevel;return h.value>=y.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,y){i&&this.enabledFor(h)&&i(y,c({level:h},this.context))}};var m=new p({filterLevel:n.OFF});(function(){var h=n;h.enabledFor=o(m,m.enabledFor),h.trace=o(m,m.trace),h.debug=o(m,m.debug),h.time=o(m,m.time),h.timeEnd=o(m,m.timeEnd),h.info=o(m,m.info),h.warn=o(m,m.warn),h.error=o(m,m.error),h.log=h.info})(),n.setHandler=function(h){i=h},n.setLevel=function(h){m.setLevel(h);for(var y in s)s.hasOwnProperty(y)&&s[y].setLevel(h)},n.getLevel=function(){return m.getLevel()},n.get=function(h){return s[h]||(s[h]=new p(c({name:h},m.context)))},n.createDefaultHandler=function(h){h=h||{},h.formatter=h.formatter||function(v,_){_.name&&v.unshift("["+_.name+"]")};var y={},E=function(v,_){Function.prototype.apply.call(v,console,_)};return typeof console>"u"?function(){}:function(v,_){v=Array.prototype.slice.call(v);var x=console.log,P;_.level===n.TIME?(P=(_.name?"["+_.name+"] ":"")+v[0],v[1]==="start"?console.time?console.time(P):y[P]=new Date().getTime():console.timeEnd?console.timeEnd(P):E(x,[P+": "+(new Date().getTime()-y[P])+"ms"])):(_.level===n.WARN&&console.warn?x=console.warn:_.level===n.ERROR&&console.error?x=console.error:_.level===n.INFO&&console.info?x=console.info:_.level===n.DEBUG&&console.debug?x=console.debug:_.level===n.TRACE&&console.trace&&(x=console.trace),h.formatter(v,_),E(x,v))}},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 t<"u"&&t.exports?t.exports=n:(n._prevLogger=r.Logger,n.noConflict=function(){return r.Logger=n._prevLogger,n},r.Logger=n)})(e)}),Nc=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MustacheUtils=void 0;var t=class Ih{static escapeHtml(n){return String(n).replace(/"/g,i=>Ih.entityMap[i])}};e.MustacheUtils=t,t.entityMap={'"':"""}}),Vr=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MilestoneRewardType=e.ProgressBarLayout=e.EngagementContentSource=e.EngagementObjective=e.OnsiteDeliveryType=e.ClickActionType=e.FrequencyGapUnit=e.FrequencyType=e.RedirectBehaviour=e.EngagementPlacementPosition=e.EngagementCollectionSource=e.PromotionType=e.CartFilterEnum=e.CartCurrencyOperator=e.CartCriteria=e.URLCriteria=e.UTMCriteria=e.CartItemSource=e.EngagementItemSource=e.PurchasedVisitor=e.LoggedInVisitor=e.VisitorType=e.SessionType=e.EngagementContentType=e.TriggerType=e.EngagementType=e.EngagementStatus=e.TimePreference=e.ScheduleFrequency=e.CriteriaFrequency=void 0;var t=function(d){return d[d.ONCE_PER_USER=1]="ONCE_PER_USER",d[d.ONCE_PER_SESSION=2]="ONCE_PER_SESSION",d[d.EVERY_TIME=3]="EVERY_TIME",d}(t||(e.CriteriaFrequency=t={})),r=function(d){return d[d.ONE_TIME=1]="ONE_TIME",d[d.MULTIPLE=2]="MULTIPLE",d[d.RECURRING=3]="RECURRING",d}(r||(e.ScheduleFrequency=r={})),n=function(d){return d[d.NOW=1]="NOW",d[d.LATER=2]="LATER",d[d.NEVER=3]="NEVER",d}(n||(e.TimePreference=n={})),i=function(d){return d[d.PUBLISHED=1]="PUBLISHED",d[d.DRAFT=2]="DRAFT",d[d.PAUSED=3]="PAUSED",d[d.FAILED=4]="FAILED",d[d.STOPPED=5]="STOPPED",d[d.COMPLETED=6]="COMPLETED",d[d.ARCHIVED=7]="ARCHIVED",d[d.UNINSTALLED=8]="UNINSTALLED",d}(i||(e.EngagementStatus=i={})),s=function(d){return d[d.POPUP=1]="POPUP",d[d.LEAD_GENERATION=2]="LEAD_GENERATION",d[d.PRODUCT_WIDGET=3]="PRODUCT_WIDGET",d[d.PRODUCT_BUNDLE=4]="PRODUCT_BUNDLE",d[d.ANNOUNCEMENT_BAR=5]="ANNOUNCEMENT_BAR",d[d.CART_REMINDER=6]="CART_REMINDER",d[d.CRO_COPILOT=10]="CRO_COPILOT",d[d.OTHER=11]="OTHER",d}(s||(e.EngagementType=s={})),o=function(d){return d[d.NONE=0]="NONE",d[d.RULE_BASED=1]="RULE_BASED",d[d.INTENT_BASED=2]="INTENT_BASED",d}(o||(e.TriggerType=o={})),c=function(d){return d[d.SINGLE=1]="SINGLE",d[d.EXCLUSION=2]="EXCLUSION",d[d.ABTESTING=3]="ABTESTING",d}(c||(e.EngagementContentType=c={})),u=function(d){return d[d.ALL=0]="ALL",d[d.NEW_ONLY=1]="NEW_ONLY",d[d.RETURNING_ONLY=2]="RETURNING_ONLY",d}(u||(e.SessionType=u={})),p=function(d){return d[d.ALL=0]="ALL",d[d.LOGGED_IN_ONLY=3]="LOGGED_IN_ONLY",d[d.NON_LOGGED_IN_ONLY=4]="NON_LOGGED_IN_ONLY",d[d.PURCHASED=5]="PURCHASED",d[d.NON_PURCHASED=6]="NON_PURCHASED",d[d.ABANDON_CART=7]="ABANDON_CART",d[d.RETURNING_AND_NON_PURCHASED=8]="RETURNING_AND_NON_PURCHASED",d}(p||(e.VisitorType=p={})),m=function(d){return d.ALL="ALL",d.LOGGED_IN="LOGGED_IN",d.NON_LOGGED_IN="NON_LOGGED_IN",d}(m||(e.LoggedInVisitor=m={})),h=function(d){return d.ALL="ALL",d.PURCHASED="PURCHASED",d.NON_PURCHASED="NON_PURCHASED",d}(h||(e.PurchasedVisitor=h={})),y=function(d){return d[d.NONE=0]="NONE",d[d.ITEM_RECOMMENDATION=1]="ITEM_RECOMMENDATION",d[d.MULTIPLE_ITEMS=2]="MULTIPLE_ITEMS",d[d.SINGLE_ITEM=3]="SINGLE_ITEM",d[d.TOP_SELLING=4]="TOP_SELLING",d[d.STOCK_CLEARANCE=5]="STOCK_CLEARANCE",d[d.NEW_ARRIVALS=6]="NEW_ARRIVALS",d[d.RECENTLY_VIEWED=7]="RECENTLY_VIEWED",d[d.EVENT_ITEM=8]="EVENT_ITEM",d[d.CART_ITEM=9]="CART_ITEM",d[d.BUNDLE=10]="BUNDLE",d[d.CURRENT_ITEM=11]="CURRENT_ITEM",d[d.PURCHASED_PREVIOUSLY=12]="PURCHASED_PREVIOUSLY",d[d.COLLECTION_ITEMS=13]="COLLECTION_ITEMS",d[d.TRENDING_ITEMS=14]="TRENDING_ITEMS",d}(y||(e.EngagementItemSource=y={})),E=function(d){return d[d.LAST_ADDED=1]="LAST_ADDED",d[d.FIRST_ADDED=2]="FIRST_ADDED",d[d.HIGHEST_PRICE=3]="HIGHEST_PRICE",d[d.LOWEST_PRICE=4]="LOWEST_PRICE",d[d.FIRST_MATCHING_TAG=5]="FIRST_MATCHING_TAG",d[d.ALL=6]="ALL",d}(E||(e.CartItemSource=E={})),v=function(d){return d[d.ALL=0]="ALL",d[d.ONLY_ORGANIC=1]="ONLY_ORGANIC",d[d.ONLY_NON_ORGANIC=2]="ONLY_NON_ORGANIC",d[d.INCLUDES=3]="INCLUDES",d[d.EXCLUDES=4]="EXCLUDES",d}(v||(e.UTMCriteria=v={})),_=function(d){return d[d.NONE=0]="NONE",d[d.LIKE=1]="LIKE",d[d.NOT_LIKE=2]="NOT_LIKE",d[d.EQUALS=3]="EQUALS",d[d.NOT_EQUALS=4]="NOT_EQUALS",d}(_||(e.URLCriteria=_={})),x=function(d){return d[d.NONE=0]="NONE",d[d.LESS_THAN=1]="LESS_THAN",d[d.GREATER_THAN=2]="GREATER_THAN",d[d.BETWEEN=3]="BETWEEN",d[d.EQUALS=4]="EQUALS",d}(x||(e.CartCriteria=x={})),P=function(d){return d[d.ALL=0]="ALL",d[d.INCLUDES=1]="INCLUDES",d[d.EXCLUDES=2]="EXCLUDES",d}(P||(e.CartCurrencyOperator=P={})),B=function(d){return d[d.NONE=0]="NONE",d[d.AMOUNT=1]="AMOUNT",d[d.TOTAL_PRODUCT=2]="TOTAL_PRODUCT",d[d.UNIQUE_PRODUCT=3]="UNIQUE_PRODUCT",d}(B||(e.CartFilterEnum=B={})),U=function(d){return d[d.NONE=0]="NONE",d[d.ITEM=1]="ITEM",d[d.COLLECTION=2]="COLLECTION",d}(U||(e.PromotionType=U={})),R=function(d){return d[d.NONE=0]="NONE",d[d.SINGLE=1]="SINGLE",d[d.MULTIPLE=2]="MULTIPLE",d}(R||(e.EngagementCollectionSource=R={})),G=function(d){return d.BEFORE="before",d.AFTER="after",d.INSIDE_FIRST="insideFirst",d.INSIDE_LAST="insideLast",d}(G||(e.EngagementPlacementPosition=G={})),ue=function(d){return d.SHOPIFY_CHECKOUT="shopify_checkout",d.THIRD_PARTY_CHECKOUT="third_party_checkout",d.CART_PAGE="cart_page",d.CART_DRAWER="cart_drawer",d}(ue||(e.RedirectBehaviour=ue={})),Me=function(d){return d.ONCE_IN_SESSION="ONCE_IN_SESSION",d.ACROSS_SESSIONS="ACROSS_SESSIONS",d}(Me||(e.FrequencyType=Me={})),j=function(d){return d.DAYS="DAYS",d.HOURS="HOURS",d.MINUTES="MINUTES",d.SECONDS="SECONDS",d}(j||(e.FrequencyGapUnit=j={})),Q=function(d){return d[d.NONE=0]="NONE",d[d.REJECT_POPUP=1]="REJECT_POPUP",d[d.ACCEPT_POPUP=2]="ACCEPT_POPUP",d[d.GO_TO_URL=4]="GO_TO_URL",d[d.SHARE=5]="SHARE",d[d.KEY_VALUE=100]="KEY_VALUE",d[d.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",d[d.ADD_TO_CART=102]="ADD_TO_CART",d[d.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",d[d.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",d[d.OPEN_CART=105]="OPEN_CART",d[d.SUBMIT_FORM=106]="SUBMIT_FORM",d[d.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",d[d.ADD_BUNDLE=108]="ADD_BUNDLE",d[d.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",d}(Q||(e.ClickActionType=Q={})),z=function(d){return d.POPUP="POPUP",d.PAGE_EMBED="PAGE_EMBED",d.CART_EMBED="CART_EMBED",d.ANNOUNCEMENT_BAR="ANNOUNCEMENT_BAR",d}(z||(e.OnsiteDeliveryType=z={})),J=function(d){return d.PRODUCT_PROMOTION="PRODUCT_PROMOTION",d.BUNDLE_AND_UPSELL="BUNDLE_AND_UPSELL",d.CART_RECOVERY="CART_RECOVERY",d.ANNOUNCEMENT="ANNOUNCEMENT",d.LEAD_GENERATION="LEAD_GENERATION",d.DATA_COLLECTION="DATA_COLLECTION",d.SALE_PROMOTION="SALE_PROMOTION",d.SUBSCRIPTION_UPSELL="SUBSCRIPTION_UPSELL",d.SHOPPABLE_VIDEO="SHOPPABLE_VIDEO",d.BYOB="BYOB",d.PROGRESS_BAR="PROGRESS_BAR",d.BUY_NOW="BUY_NOW",d}(J||(e.EngagementObjective=J={})),ge=function(d){return d.COOEE="COOEE",d.KLAVIYO="KLAVIYO",d}(ge||(e.EngagementContentSource=ge={})),je=function(d){return d.ICONS="ICONS",d.TILES="TILES",d}(je||(e.ProgressBarLayout=je={})),De=function(d){return d.FREE_SHIPPING="FREE_SHIPPING",d.DISCOUNT="DISCOUNT",d.FREE_AUTO_GIFT="FREE_AUTO_GIFT",d.FREE_GIFT_SELECT="FREE_GIFT_SELECT",d}(De||(e.MilestoneRewardType=De={}))}),Jo=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PriceRuleType=e.DiscountType=void 0;var t=function(n){return n[n.NONE=0]="NONE",n[n.STATIC=1]="STATIC",n[n.UNIQUE_FLAT=2]="UNIQUE_FLAT",n[n.UNIQUE_FLAT_ITEMS=3]="UNIQUE_FLAT_ITEMS",n[n.UNIQUE_FIXED_ITEMS=4]="UNIQUE_FIXED_ITEMS",n[n.UNIQUE_CHEAPEST_ITEM_FREE=5]="UNIQUE_CHEAPEST_ITEM_FREE",n[n.BXGY=6]="BXGY",n}(t||(e.DiscountType=t={})),r=function(n){return n.FIXED_AMOUNT="fixed_amount",n.PERCENTAGE="percentage",n}(r||(e.PriceRuleType=r={}))}),Pc=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayUtils=void 0;var t=class Th{static of(n,i){return i!==void 0?new Array(n).fill(i):Array.from({length:n},(s,o)=>o)}static remove(n,i){let s=n.indexOf(i);return s===-1?!1:(n.splice(s,1),!0)}static swap(n,i,s){[n[i],n[s]]=[n[s],n[i]]}static sum(n,i){return n.reduce((s,o)=>s+Math.max(i?i(o):+o,0),0)}static unique(n,i){return n.filter((s,o,c)=>c.findIndex(u=>u[i]===s[i])===o)}static shuffle(n){let i=n.length;for(;i!=0;){let s=Math.floor(Math.random()*i);i--,Th.swap(n,i,s)}}};e.ArrayUtils=t}),wf=ur((e,t)=>{"use strict";(function(r,n){"use strict";var i="1.0.40",s="",o="?",c="function",u="undefined",p="object",m="string",h="major",y="model",E="name",v="type",_="vendor",x="version",P="architecture",B="console",U="mobile",R="tablet",G="smarttv",ue="wearable",Me="embedded",j=500,Q="Amazon",z="Apple",J="ASUS",ge="BlackBerry",je="Browser",De="Chrome",d="Edge",qe="Firefox",ve="Google",gt="Huawei",se="LG",ie="Microsoft",lt="Motorola",er="Opera",lr="Samsung",yt="Sharp",Wr="Sony",Fn="Xiaomi",rn="Zebra",Qn="Facebook",Vi="Chromium OS",Hn="Mac OS",kn=" Browser",vt=function(q,ae){var Z={};for(var Te in q)ae[Te]&&ae[Te].length%2===0?Z[Te]=ae[Te].concat(q[Te]):Z[Te]=q[Te];return Z},jr=function(q){for(var ae={},Z=0;Z<q.length;Z++)ae[q[Z].toUpperCase()]=q[Z];return ae},Gi=function(q,ae){return typeof q===m?a(ae).indexOf(a(q))!==-1:!1},a=function(q){return q.toLowerCase()},l=function(q){return typeof q===m?q.replace(/[^\d\.]/g,s).split(".")[0]:n},f=function(q,ae){if(typeof q===m)return q=q.replace(/^\s\s*/,s),typeof ae===u?q:q.substring(0,j)},T=function(q,ae){for(var Z=0,Te,Dt,Nt,Ie,ne,Ft;Z<ae.length&&!ne;){var Wi=ae[Z],ls=ae[Z+1];for(Te=Dt=0;Te<Wi.length&&!ne&&Wi[Te];)if(ne=Wi[Te++].exec(q),ne)for(Nt=0;Nt<ls.length;Nt++)Ft=ne[++Dt],Ie=ls[Nt],typeof Ie===p&&Ie.length>0?Ie.length===2?typeof Ie[1]==c?this[Ie[0]]=Ie[1].call(this,Ft):this[Ie[0]]=Ie[1]:Ie.length===3?typeof Ie[1]===c&&!(Ie[1].exec&&Ie[1].test)?this[Ie[0]]=Ft?Ie[1].call(this,Ft,Ie[2]):n:this[Ie[0]]=Ft?Ft.replace(Ie[1],Ie[2]):n:Ie.length===4&&(this[Ie[0]]=Ft?Ie[3].call(this,Ft.replace(Ie[1],Ie[2])):n):this[Ie]=Ft||n;Z+=2}},A=function(q,ae){for(var Z in ae)if(typeof ae[Z]===p&&ae[Z].length>0){for(var Te=0;Te<ae[Z].length;Te++)if(Gi(ae[Z][Te],q))return Z===o?n:Z}else if(Gi(ae[Z],q))return Z===o?n:Z;return ae.hasOwnProperty("*")?ae["*"]:q},M={"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"},be={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[E,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[E,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[E,x],[/opios[\/ ]+([\w\.]+)/i],[x,[E,er+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[x,[E,er+" GX"]],[/\bopr\/([\w\.]+)/i],[x,[E,er]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[x,[E,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[x,[E,"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],[E,x],[/quark(?:pc)?\/([-\w\.]+)/i],[x,[E,"Quark"]],[/\bddg\/([\w\.]+)/i],[x,[E,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[E,"UC"+je]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[x,[E,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[E,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[E,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[x,[E,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[x,[E,"Smart Lenovo "+je]],[/(avast|avg)\/([\w\.]+)/i],[[E,/(.+)/,"$1 Secure "+je],x],[/\bfocus\/([\w\.]+)/i],[x,[E,qe+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[E,er+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[E,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[E,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[E,er+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[E,"MIUI"+kn]],[/fxios\/([\w\.-]+)/i],[x,[E,qe]],[/\bqihoobrowser\/?([\w\.]*)/i],[x,[E,"360"]],[/\b(qq)\/([\w\.]+)/i],[[E,/(.+)/,"$1Browser"],x],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[E,/(.+)/,"$1"+kn],x],[/samsungbrowser\/([\w\.]+)/i],[x,[E,lr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[x,[E,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[E,"Sogou Mobile"],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[E,x],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[E],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[x,E],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[E,Qn],x],[/(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],[E,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[E,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[x,[E,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[E,De+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[E,De+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[E,"Android "+je]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[E,x],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[x,[E,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[x,E],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[E,[x,A,M]],[/(webkit|khtml)\/([\w\.]+)/i],[E,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[E,"Netscape"],x],[/(wolvic|librewolf)\/([\w\.]+)/i],[E,x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[E,qe+" 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],[E,[x,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[E,[x,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[P,"amd64"]],[/(ia32(?=;))/i],[[P,a]],[/((?:i[346]|x)86)[;\)]/i],[[P,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[P,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[P,"armhf"]],[/windows (ce|mobile); ppc;/i],[[P,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[P,/ower/,s,a]],[/(sun4\w)[;\)]/i],[[P,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[P,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],[y,[_,lr],[v,R]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[y,[_,lr],[v,U]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[y,[_,z],[v,U]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[y,[_,z],[v,R]],[/(macintosh);/i],[y,[_,z]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[y,[_,yt],[v,U]],[/(?:honor)([-\w ]+)[;\)]/i],[y,[_,"Honor"],[v,U]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[y,[_,gt],[v,R]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[y,[_,gt],[v,U]],[/\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],[[y,/_/g," "],[_,Fn],[v,U]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[y,/_/g," "],[_,Fn],[v,R]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[y,[_,"OPPO"],[v,U]],[/\b(opd2\d{3}a?) bui/i],[y,[_,"OPPO"],[v,R]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[y,[_,"Vivo"],[v,U]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[y,[_,"Realme"],[v,U]],[/\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],[y,[_,lt],[v,U]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[y,[_,lt],[v,R]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[y,[_,se],[v,R]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[y,[_,se],[v,U]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[y,[_,"Lenovo"],[v,R]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[y,/_/g," "],[_,"Nokia"],[v,U]],[/(pixel c)\b/i],[y,[_,ve],[v,R]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[y,[_,ve],[v,U]],[/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],[y,[_,Wr],[v,U]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[y,"Xperia Tablet"],[_,Wr],[v,R]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[y,[_,"OnePlus"],[v,U]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[y,[_,Q],[v,R]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[y,/(.+)/g,"Fire Phone $1"],[_,Q],[v,U]],[/(playbook);[-\w\),; ]+(rim)/i],[y,_,[v,R]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[y,[_,ge],[v,U]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[y,[_,J],[v,R]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[y,[_,J],[v,U]],[/(nexus 9)/i],[y,[_,"HTC"],[v,R]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[_,[y,/_/g," "],[v,U]],[/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],[y,[_,"TCL"],[v,R]],[/(itel) ((\w+))/i],[[_,a],y,[v,A,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[y,[_,"Acer"],[v,R]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[y,[_,"Meizu"],[v,U]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[y,[_,"Ulefone"],[v,U]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[y,[_,"Energizer"],[v,U]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[y,[_,"Cat"],[v,U]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[y,[_,"Smartfren"],[v,U]],[/droid.+; (a(?:015|06[35]|142p?))/i],[y,[_,"Nothing"],[v,U]],[/(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,U]],[/(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,R]],[/(surface duo)/i],[y,[_,ie],[v,R]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[y,[_,"Fairphone"],[v,U]],[/(u304aa)/i],[y,[_,"AT&T"],[v,U]],[/\bsie-(\w*)/i],[y,[_,"Siemens"],[v,U]],[/\b(rct\w+) b/i],[y,[_,"RCA"],[v,R]],[/\b(venue[\d ]{2,7}) b/i],[y,[_,"Dell"],[v,R]],[/\b(q(?:mv|ta)\w+) b/i],[y,[_,"Verizon"],[v,R]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[y,[_,"Barnes & Noble"],[v,R]],[/\b(tm\d{3}\w+) b/i],[y,[_,"NuVision"],[v,R]],[/\b(k88) b/i],[y,[_,"ZTE"],[v,R]],[/\b(nx\d{3}j) b/i],[y,[_,"ZTE"],[v,U]],[/\b(gen\d{3}) b.+49h/i],[y,[_,"Swiss"],[v,U]],[/\b(zur\d{3}) b/i],[y,[_,"Swiss"],[v,R]],[/\b((zeki)?tb.*\b) b/i],[y,[_,"Zeki"],[v,R]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[_,"Dragon Touch"],y,[v,R]],[/\b(ns-?\w{0,9}) b/i],[y,[_,"Insignia"],[v,R]],[/\b((nxa|next)-?\w{0,9}) b/i],[y,[_,"NextBook"],[v,R]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[_,"Voice"],y,[v,U]],[/\b(lvtel\-)?(v1[12]) b/i],[[_,"LvTel"],y,[v,U]],[/\b(ph-1) /i],[y,[_,"Essential"],[v,U]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[y,[_,"Envizen"],[v,R]],[/\b(trio[-\w\. ]+) b/i],[y,[_,"MachSpeed"],[v,R]],[/\btu_(1491) b/i],[y,[_,"Rotor"],[v,R]],[/(shield[\w ]+) b/i],[y,[_,"Nvidia"],[v,R]],[/(sprint) (\w+)/i],[_,y,[v,U]],[/(kin\.[onetw]{3})/i],[[y,/\./g," "],[_,ie],[v,U]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[y,[_,rn],[v,R]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[y,[_,rn],[v,U]],[/smart-tv.+(samsung)/i],[_,[v,G]],[/hbbtv.+maple;(\d+)/i],[[y,/^/,"SmartTV"],[_,lr],[v,G]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[_,se],[v,G]],[/(apple) ?tv/i],[_,[y,z+" TV"],[v,G]],[/crkey/i],[[y,De+"cast"],[_,ve],[v,G]],[/droid.+aft(\w+)( bui|\))/i],[y,[_,Q],[v,G]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[y,[_,yt],[v,G]],[/(bravia[\w ]+)( bui|\))/i],[y,[_,Wr],[v,G]],[/(mitv-\w{5}) bui/i],[y,[_,Fn],[v,G]],[/Hbbtv.*(technisat) (.*);/i],[_,y,[v,G]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[_,f],[y,f],[v,G]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,G]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[_,y,[v,B]],[/droid.+; (shield) bui/i],[y,[_,"Nvidia"],[v,B]],[/(playstation [345portablevi]+)/i],[y,[_,Wr],[v,B]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[y,[_,ie],[v,B]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[y,[_,lr],[v,ue]],[/((pebble))app/i],[_,y,[v,ue]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[y,[_,z],[v,ue]],[/droid.+; (glass) \d/i],[y,[_,ve],[v,ue]],[/droid.+; (wt63?0{2,3})\)/i],[y,[_,rn],[v,ue]],[/droid.+; (glass) \d/i],[y,[_,ve],[v,ue]],[/(pico) (4|neo3(?: link|pro)?)/i],[_,y,[v,ue]],[/; (quest( \d| pro)?)/i],[y,[_,Qn],[v,ue]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[_,[v,Me]],[/(aeobc)\b/i],[y,[_,Q],[v,Me]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[y,[v,U]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[y,[v,R]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,R]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,U]],[/(android[-\w\. ]{0,9});.+buil/i],[y,[_,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[E,d+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[E,x],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[E,"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],[E,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,E]],os:[[/microsoft (windows) (vista|xp)/i],[E,x],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[E,[x,A,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[x,A,W],[E,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[E,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[E,Hn],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,E],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[E,x],[/\(bb(10);/i],[x,[E,ge]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[E,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[E,qe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[E,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[x,[E,"watchOS"]],[/crkey\/([\d\.]+)/i],[x,[E,De+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[E,Vi],x],[/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],[E,x],[/(sunos) ?([\w\.\d]*)/i],[[E,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[E,x]]},me=function(q,ae){if(typeof q===p&&(ae=q,q=n),!(this instanceof me))return new me(q,ae).getResult();var Z=typeof r!==u&&r.navigator?r.navigator:n,Te=q||(Z&&Z.userAgent?Z.userAgent:s),Dt=Z&&Z.userAgentData?Z.userAgentData:n,Nt=ae?vt(be,ae):be,Ie=Z&&Z.userAgent==Te;return this.getBrowser=function(){var ne={};return ne[E]=n,ne[x]=n,T.call(ne,Te,Nt.browser),ne[h]=l(ne[x]),Ie&&Z&&Z.brave&&typeof Z.brave.isBrave==c&&(ne[E]="Brave"),ne},this.getCPU=function(){var ne={};return ne[P]=n,T.call(ne,Te,Nt.cpu),ne},this.getDevice=function(){var ne={};return ne[_]=n,ne[y]=n,ne[v]=n,T.call(ne,Te,Nt.device),Ie&&!ne[v]&&Dt&&Dt.mobile&&(ne[v]=U),Ie&&ne[y]=="Macintosh"&&Z&&typeof Z.standalone!==u&&Z.maxTouchPoints&&Z.maxTouchPoints>2&&(ne[y]="iPad",ne[v]=R),ne},this.getEngine=function(){var ne={};return ne[E]=n,ne[x]=n,T.call(ne,Te,Nt.engine),ne},this.getOS=function(){var ne={};return ne[E]=n,ne[x]=n,T.call(ne,Te,Nt.os),Ie&&!ne[E]&&Dt&&Dt.platform&&Dt.platform!="Unknown"&&(ne[E]=Dt.platform.replace(/chrome os/i,Vi).replace(/macos/i,Hn)),ne},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 Te},this.setUA=function(ne){return Te=typeof ne===m&&ne.length>j?f(ne,j):ne,this},this.setUA(Te),this};me.VERSION=i,me.BROWSER=jr([E,x,h]),me.CPU=jr([P]),me.DEVICE=jr([y,_,v,B,U,G,R,ue,Me]),me.ENGINE=me.OS=jr([E,x]),typeof e!==u?(typeof t!==u&&t.exports&&(e=t.exports=me),e.UAParser=me):typeof define===c&&define.amd?define(function(){return me}):typeof r!==u&&(r.UAParser=me);var ye=typeof r!==u&&(r.jQuery||r.Zepto);if(ye&&!ye.ua){var $e=new me;ye.ua=$e.getResult(),ye.ua.get=function(){return $e.getUA()},ye.ua.set=function(q){$e.setUA(q);var ae=$e.getResult();for(var Z in ae)ye.ua[Z]=ae[Z]}}})(typeof window=="object"?window:e)}),Tf=ur((e,t)=>{"use strict";(function(r){if(typeof e=="object"&&typeof t<"u")t.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 p(y,E){if(!c[y]){if(!o[y]){var v=typeof zi=="function"&&zi;if(!E&&v)return v(y,!0);if(m)return m(y,!0);var _=new Error("Cannot find module '"+y+"'");throw _.code="MODULE_NOT_FOUND",_}var x=c[y]={exports:{}};o[y][0].call(x.exports,function(P){var B=o[y][1][P];return p(B||P)},x,x.exports,s,o,c,u)}return c[y].exports}for(var m=typeof zi=="function"&&zi,h=0;h<u.length;h++)p(u[h]);return p}({1:[function(s,o,c){(function(u){"use strict";var p=u.MutationObserver||u.WebKitMutationObserver,m;if(p){var h=0,y=new p(P),E=u.document.createTextNode("");y.observe(E,{characterData:!0}),m=function(){E.data=h=++h%2}}else if(!u.setImmediate&&typeof u.MessageChannel<"u"){var v=new u.MessageChannel;v.port1.onmessage=P,m=function(){v.port2.postMessage(0)}}else"document"in u&&"onreadystatechange"in u.document.createElement("script")?m=function(){var U=u.document.createElement("script");U.onreadystatechange=function(){P(),U.onreadystatechange=null,U.parentNode.removeChild(U),U=null},u.document.documentElement.appendChild(U)}:m=function(){setTimeout(P,0)};var _,x=[];function P(){_=!0;for(var U,R,G=x.length;G;){for(R=x,x=[],U=-1;++U<G;)R[U]();G=x.length}_=!1}o.exports=B;function B(U){x.push(U)===1&&!_&&m()}}).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 p(){}var m={},h=["REJECTED"],y=["FULFILLED"],E=["PENDING"];o.exports=v;function v(j){if(typeof j!="function")throw new TypeError("resolver must be a function");this.state=E,this.queue=[],this.outcome=void 0,j!==p&&B(this,j)}v.prototype.catch=function(j){return this.then(null,j)},v.prototype.then=function(j,Q){if(typeof j!="function"&&this.state===y||typeof Q!="function"&&this.state===h)return this;var z=new this.constructor(p);if(this.state!==E){var J=this.state===y?j:Q;x(z,J,this.outcome)}else this.queue.push(new _(z,j,Q));return z};function _(j,Q,z){this.promise=j,typeof Q=="function"&&(this.onFulfilled=Q,this.callFulfilled=this.otherCallFulfilled),typeof z=="function"&&(this.onRejected=z,this.callRejected=this.otherCallRejected)}_.prototype.callFulfilled=function(j){m.resolve(this.promise,j)},_.prototype.otherCallFulfilled=function(j){x(this.promise,this.onFulfilled,j)},_.prototype.callRejected=function(j){m.reject(this.promise,j)},_.prototype.otherCallRejected=function(j){x(this.promise,this.onRejected,j)};function x(j,Q,z){u(function(){var J;try{J=Q(z)}catch(ge){return m.reject(j,ge)}J===j?m.reject(j,new TypeError("Cannot resolve promise with itself")):m.resolve(j,J)})}m.resolve=function(j,Q){var z=U(P,Q);if(z.status==="error")return m.reject(j,z.value);var J=z.value;if(J)B(j,J);else{j.state=y,j.outcome=Q;for(var ge=-1,je=j.queue.length;++ge<je;)j.queue[ge].callFulfilled(Q)}return j},m.reject=function(j,Q){j.state=h,j.outcome=Q;for(var z=-1,J=j.queue.length;++z<J;)j.queue[z].callRejected(Q);return j};function P(j){var Q=j&&j.then;if(j&&(typeof j=="object"||typeof j=="function")&&typeof Q=="function")return function(){Q.apply(j,arguments)}}function B(j,Q){var z=!1;function J(d){z||(z=!0,m.reject(j,d))}function ge(d){z||(z=!0,m.resolve(j,d))}function je(){Q(ge,J)}var De=U(je);De.status==="error"&&J(De.value)}function U(j,Q){var z={};try{z.value=j(Q),z.status="success"}catch(J){z.status="error",z.value=J}return z}v.resolve=R;function R(j){return j instanceof this?j:m.resolve(new this(p),j)}v.reject=G;function G(j){var Q=new this(p);return m.reject(Q,j)}v.all=ue;function ue(j){var Q=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var z=j.length,J=!1;if(!z)return this.resolve([]);for(var ge=new Array(z),je=0,De=-1,d=new this(p);++De<z;)qe(j[De],De);return d;function qe(ve,gt){Q.resolve(ve).then(se,function(ie){J||(J=!0,m.reject(d,ie))});function se(ie){ge[gt]=ie,++je===z&&!J&&(J=!0,m.resolve(d,ge))}}}v.race=Me;function Me(j){var Q=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var z=j.length,J=!1;if(!z)return this.resolve([]);for(var ge=-1,je=new this(p);++ge<z;)De(j[ge]);return je;function De(d){Q.resolve(d).then(function(qe){J||(J=!0,m.resolve(je,qe))},function(qe){J||(J=!0,m.reject(je,qe))})}}},{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(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};function p(g,S){if(!(g instanceof S))throw new TypeError("Cannot call a class as a function")}function m(){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=m();function y(){try{if(!h||!h.open)return!1;var g=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),S=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!g||S)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function E(g,S){g=g||[],S=S||{};try{return new Blob(g,S)}catch(O){if(O.name!=="TypeError")throw O;for(var I=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,D=new I,C=0;C<g.length;C+=1)D.append(g[C]);return D.getBlob(S.type)}}typeof Promise>"u"&&s(3);var v=Promise;function _(g,S){S&&g.then(function(I){S(null,I)},function(I){S(I)})}function x(g,S,I){typeof S=="function"&&g.then(S),typeof I=="function"&&g.catch(I)}function P(g){return typeof g!="string"&&(console.warn(g+" used as a key, but it is not a string."),g=String(g)),g}function B(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var U="local-forage-detect-blob-support",R=void 0,G={},ue=Object.prototype.toString,Me="readonly",j="readwrite";function Q(g){for(var S=g.length,I=new ArrayBuffer(S),D=new Uint8Array(I),C=0;C<S;C++)D[C]=g.charCodeAt(C);return I}function z(g){return new v(function(S){var I=g.transaction(U,j),D=E([""]);I.objectStore(U).put(D,"key"),I.onabort=function(C){C.preventDefault(),C.stopPropagation(),S(!1)},I.oncomplete=function(){var C=navigator.userAgent.match(/Chrome\/(\d+)/),O=navigator.userAgent.match(/Edge\//);S(O||!C||parseInt(C[1],10)>=43)}}).catch(function(){return!1})}function J(g){return typeof R=="boolean"?v.resolve(R):z(g).then(function(S){return R=S,R})}function ge(g){var S=G[g.name],I={};I.promise=new v(function(D,C){I.resolve=D,I.reject=C}),S.deferredOperations.push(I),S.dbReady?S.dbReady=S.dbReady.then(function(){return I.promise}):S.dbReady=I.promise}function je(g){var S=G[g.name],I=S.deferredOperations.pop();if(I)return I.resolve(),I.promise}function De(g,S){var I=G[g.name],D=I.deferredOperations.pop();if(D)return D.reject(S),D.promise}function d(g,S){return new v(function(I,D){if(G[g.name]=G[g.name]||Wr(),g.db)if(S)ge(g),g.db.close();else return I(g.db);var C=[g.name];S&&C.push(g.version);var O=h.open.apply(h,C);S&&(O.onupgradeneeded=function(L){var $=O.result;try{$.createObjectStore(g.storeName),L.oldVersion<=1&&$.createObjectStore(U)}catch(V){if(V.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+L.oldVersion+" to version "+L.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw V}}),O.onerror=function(L){L.preventDefault(),D(O.error)},O.onsuccess=function(){var L=O.result;L.onversionchange=function($){$.target.close()},I(L),je(g)}})}function qe(g){return d(g,!1)}function ve(g){return d(g,!0)}function gt(g,S){if(!g.db)return!0;var I=!g.db.objectStoreNames.contains(g.storeName),D=g.version<g.db.version,C=g.version>g.db.version;if(D&&(g.version!==S&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),C||I){if(I){var O=g.db.version+1;O>g.version&&(g.version=O)}return!0}return!1}function se(g){return new v(function(S,I){var D=new FileReader;D.onerror=I,D.onloadend=function(C){var O=btoa(C.target.result||"");S({__local_forage_encoded_blob:!0,data:O,type:g.type})},D.readAsBinaryString(g)})}function ie(g){var S=Q(atob(g.data));return E([S],{type:g.type})}function lt(g){return g&&g.__local_forage_encoded_blob}function er(g){var S=this,I=S._initReady().then(function(){var D=G[S._dbInfo.name];if(D&&D.dbReady)return D.dbReady});return x(I,g,g),I}function lr(g){ge(g);for(var S=G[g.name],I=S.forages,D=0;D<I.length;D++){var C=I[D];C._dbInfo.db&&(C._dbInfo.db.close(),C._dbInfo.db=null)}return g.db=null,qe(g).then(function(O){return g.db=O,gt(g)?ve(g):O}).then(function(O){g.db=S.db=O;for(var L=0;L<I.length;L++)I[L]._dbInfo.db=O}).catch(function(O){throw De(g,O),O})}function yt(g,S,I,D){D===void 0&&(D=1);try{var C=g.db.transaction(g.storeName,S);I(null,C)}catch(O){if(D>0&&(!g.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return v.resolve().then(function(){if(!g.db||O.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),ve(g)}).then(function(){return lr(g).then(function(){yt(g,S,I,D-1)})}).catch(I);I(O)}}function Wr(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Fn(g){var S=this,I={db:null};if(g)for(var D in g)I[D]=g[D];var C=G[I.name];C||(C=Wr(),G[I.name]=C),C.forages.push(S),S._initReady||(S._initReady=S.ready,S.ready=er);var O=[];function L(){return v.resolve()}for(var $=0;$<C.forages.length;$++){var V=C.forages[$];V!==S&&O.push(V._initReady().catch(L))}var H=C.forages.slice(0);return v.all(O).then(function(){return I.db=C.db,qe(I)}).then(function(F){return I.db=F,gt(I,S._defaultConfig.version)?ve(I):F}).then(function(F){I.db=C.db=F,S._dbInfo=I;for(var Y=0;Y<H.length;Y++){var he=H[Y];he!==S&&(he._dbInfo.db=I.db,he._dbInfo.version=I.version)}})}function rn(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){yt(I._dbInfo,Me,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=V.get(g);H.onsuccess=function(){var F=H.result;F===void 0&&(F=null),lt(F)&&(F=ie(F)),C(F)},H.onerror=function(){O(H.error)}}catch(F){O(F)}})}).catch(O)});return _(D,S),D}function Qn(g,S){var I=this,D=new v(function(C,O){I.ready().then(function(){yt(I._dbInfo,Me,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=V.openCursor(),F=1;H.onsuccess=function(){var Y=H.result;if(Y){var he=Y.value;lt(he)&&(he=ie(he));var Ve=g(he,Y.key,F++);Ve!==void 0?C(Ve):Y.continue()}else C()},H.onerror=function(){O(H.error)}}catch(Y){O(Y)}})}).catch(O)});return _(D,S),D}function Vi(g,S,I){var D=this;g=P(g);var C=new v(function(O,L){var $;D.ready().then(function(){return $=D._dbInfo,ue.call(S)==="[object Blob]"?J($.db).then(function(V){return V?S:se(S)}):S}).then(function(V){yt(D._dbInfo,j,function(H,F){if(H)return L(H);try{var Y=F.objectStore(D._dbInfo.storeName);V===null&&(V=void 0);var he=Y.put(V,g);F.oncomplete=function(){V===void 0&&(V=null),O(V)},F.onabort=F.onerror=function(){var Ve=he.error?he.error:he.transaction.error;L(Ve)}}catch(Ve){L(Ve)}})}).catch(L)});return _(C,I),C}function Hn(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){yt(I._dbInfo,j,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=V.delete(g);$.oncomplete=function(){C()},$.onerror=function(){O(H.error)},$.onabort=function(){var F=H.error?H.error:H.transaction.error;O(F)}}catch(F){O(F)}})}).catch(O)});return _(D,S),D}function kn(g){var S=this,I=new v(function(D,C){S.ready().then(function(){yt(S._dbInfo,j,function(O,L){if(O)return C(O);try{var $=L.objectStore(S._dbInfo.storeName),V=$.clear();L.oncomplete=function(){D()},L.onabort=L.onerror=function(){var H=V.error?V.error:V.transaction.error;C(H)}}catch(H){C(H)}})}).catch(C)});return _(I,g),I}function vt(g){var S=this,I=new v(function(D,C){S.ready().then(function(){yt(S._dbInfo,Me,function(O,L){if(O)return C(O);try{var $=L.objectStore(S._dbInfo.storeName),V=$.count();V.onsuccess=function(){D(V.result)},V.onerror=function(){C(V.error)}}catch(H){C(H)}})}).catch(C)});return _(I,g),I}function jr(g,S){var I=this,D=new v(function(C,O){if(g<0){C(null);return}I.ready().then(function(){yt(I._dbInfo,Me,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=!1,F=V.openKeyCursor();F.onsuccess=function(){var Y=F.result;if(!Y){C(null);return}g===0||H?C(Y.key):(H=!0,Y.advance(g))},F.onerror=function(){O(F.error)}}catch(Y){O(Y)}})}).catch(O)});return _(D,S),D}function Gi(g){var S=this,I=new v(function(D,C){S.ready().then(function(){yt(S._dbInfo,Me,function(O,L){if(O)return C(O);try{var $=L.objectStore(S._dbInfo.storeName),V=$.openKeyCursor(),H=[];V.onsuccess=function(){var F=V.result;if(!F){D(H);return}H.push(F.key),F.continue()},V.onerror=function(){C(V.error)}}catch(F){C(F)}})}).catch(C)});return _(I,g),I}function a(g,S){S=B.apply(this,arguments);var I=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||I.name,g.storeName=g.storeName||I.storeName);var D=this,C;if(!g.name)C=v.reject("Invalid arguments");else{var O=g.name===I.name&&D._dbInfo.db,L=O?v.resolve(D._dbInfo.db):qe(g).then(function($){var V=G[g.name],H=V.forages;V.db=$;for(var F=0;F<H.length;F++)H[F]._dbInfo.db=$;return $});g.storeName?C=L.then(function($){if($.objectStoreNames.contains(g.storeName)){var V=$.version+1;ge(g);var H=G[g.name],F=H.forages;$.close();for(var Y=0;Y<F.length;Y++){var he=F[Y];he._dbInfo.db=null,he._dbInfo.version=V}var Ve=new v(function(Ae,ut){var Ge=h.open(g.name,V);Ge.onerror=function(Ht){var Tc=Ge.result;Tc.close(),ut(Ht)},Ge.onupgradeneeded=function(){var Ht=Ge.result;Ht.deleteObjectStore(g.storeName)},Ge.onsuccess=function(){var Ht=Ge.result;Ht.close(),Ae(Ht)}});return Ve.then(function(Ae){H.db=Ae;for(var ut=0;ut<F.length;ut++){var Ge=F[ut];Ge._dbInfo.db=Ae,je(Ge._dbInfo)}}).catch(function(Ae){throw(De(g,Ae)||v.resolve()).catch(function(){}),Ae})}}):C=L.then(function($){ge(g);var V=G[g.name],H=V.forages;$.close();for(var F=0;F<H.length;F++){var Y=H[F];Y._dbInfo.db=null}var he=new v(function(Ve,Ae){var ut=h.deleteDatabase(g.name);ut.onerror=function(){var Ge=ut.result;Ge&&Ge.close(),Ae(ut.error)},ut.onblocked=function(){console.warn('dropInstance blocked for database "'+g.name+'" until all open connections are closed')},ut.onsuccess=function(){var Ge=ut.result;Ge&&Ge.close(),Ve(Ge)}});return he.then(function(Ve){V.db=Ve;for(var Ae=0;Ae<H.length;Ae++){var ut=H[Ae];je(ut._dbInfo)}}).catch(function(Ve){throw(De(g,Ve)||v.resolve()).catch(function(){}),Ve})})}return _(C,S),C}var l={_driver:"asyncStorage",_initStorage:Fn,_support:y(),iterate:Qn,getItem:rn,setItem:Vi,removeItem:Hn,clear:kn,length:vt,key:jr,keys:Gi,dropInstance:a};function f(){return typeof openDatabase=="function"}var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",be=W.length,me="arbf",ye="blob",$e="si08",q="ui08",ae="uic8",Z="si16",Te="si32",Dt="ur16",Nt="ui32",Ie="fl32",ne="fl64",Ft=be+me.length,Wi=Object.prototype.toString;function ls(g){var S=g.length*.75,I=g.length,D,C=0,O,L,$,V;g[g.length-1]==="="&&(S--,g[g.length-2]==="="&&S--);var H=new ArrayBuffer(S),F=new Uint8Array(H);for(D=0;D<I;D+=4)O=T.indexOf(g[D]),L=T.indexOf(g[D+1]),$=T.indexOf(g[D+2]),V=T.indexOf(g[D+3]),F[C++]=O<<2|L>>4,F[C++]=(L&15)<<4|$>>2,F[C++]=($&3)<<6|V&63;return H}function Qo(g){var S=new Uint8Array(g),I="",D;for(D=0;D<S.length;D+=3)I+=T[S[D]>>2],I+=T[(S[D]&3)<<4|S[D+1]>>4],I+=T[(S[D+1]&15)<<2|S[D+2]>>6],I+=T[S[D+2]&63];return S.length%3===2?I=I.substring(0,I.length-1)+"=":S.length%3===1&&(I=I.substring(0,I.length-2)+"=="),I}function Kh(g,S){var I="";if(g&&(I=Wi.call(g)),g&&(I==="[object ArrayBuffer]"||g.buffer&&Wi.call(g.buffer)==="[object ArrayBuffer]")){var D,C=W;g instanceof ArrayBuffer?(D=g,C+=me):(D=g.buffer,I==="[object Int8Array]"?C+=$e:I==="[object Uint8Array]"?C+=q:I==="[object Uint8ClampedArray]"?C+=ae:I==="[object Int16Array]"?C+=Z:I==="[object Uint16Array]"?C+=Dt:I==="[object Int32Array]"?C+=Te:I==="[object Uint32Array]"?C+=Nt:I==="[object Float32Array]"?C+=Ie:I==="[object Float64Array]"?C+=ne:S(new Error("Failed to get type for BinaryArray"))),S(C+Qo(D))}else if(I==="[object Blob]"){var O=new FileReader;O.onload=function(){var L=A+g.type+"~"+Qo(this.result);S(W+ye+L)},O.readAsArrayBuffer(g)}else try{S(JSON.stringify(g))}catch(L){console.error("Couldn't convert value into a JSON string: ",g),S(null,L)}}function Yh(g){if(g.substring(0,be)!==W)return JSON.parse(g);var S=g.substring(Ft),I=g.substring(be,Ft),D;if(I===ye&&M.test(S)){var C=S.match(M);D=C[1],S=S.substring(C[0].length)}var O=ls(S);switch(I){case me:return O;case ye:return E([O],{type:D});case $e:return new Int8Array(O);case q:return new Uint8Array(O);case ae:return new Uint8ClampedArray(O);case Z:return new Int16Array(O);case Dt:return new Uint16Array(O);case Te:return new Int32Array(O);case Nt:return new Uint32Array(O);case Ie:return new Float32Array(O);case ne:return new Float64Array(O);default:throw new Error("Unkown type: "+I)}}var Sa={serialize:Kh,deserialize:Yh,stringToBuffer:ls,bufferToString:Qo};function Qu(g,S,I,D){g.executeSql("CREATE TABLE IF NOT EXISTS "+S.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],I,D)}function zh(g){var S=this,I={db:null};if(g)for(var D in g)I[D]=typeof g[D]!="string"?g[D].toString():g[D];var C=new v(function(O,L){try{I.db=openDatabase(I.name,String(I.version),I.description,I.size)}catch($){return L($)}I.db.transaction(function($){Qu($,I,function(){S._dbInfo=I,O()},function(V,H){L(H)})},L)});return I.serializer=Sa,C}function $n(g,S,I,D,C,O){g.executeSql(I,D,C,function(L,$){$.code===$.SYNTAX_ERR?L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[S.storeName],function(V,H){H.rows.length?O(V,$):Qu(V,S,function(){V.executeSql(I,D,C,O)},O)},O):O(L,$)},O)}function Xh(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"SELECT * FROM "+L.storeName+" WHERE key = ? LIMIT 1",[g],function(V,H){var F=H.rows.length?H.rows.item(0).value:null;F&&(F=L.serializer.deserialize(F)),C(F)},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function Jh(g,S){var I=this,D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"SELECT * FROM "+L.storeName,[],function(V,H){for(var F=H.rows,Y=F.length,he=0;he<Y;he++){var Ve=F.item(he),Ae=Ve.value;if(Ae&&(Ae=L.serializer.deserialize(Ae)),Ae=g(Ae,Ve.key,he+1),Ae!==void 0){C(Ae);return}}C()},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function Zu(g,S,I,D){var C=this;g=P(g);var O=new v(function(L,$){C.ready().then(function(){S===void 0&&(S=null);var V=S,H=C._dbInfo;H.serializer.serialize(S,function(F,Y){Y?$(Y):H.db.transaction(function(he){$n(he,H,"INSERT OR REPLACE INTO "+H.storeName+" (key, value) VALUES (?, ?)",[g,F],function(){L(V)},function(Ve,Ae){$(Ae)})},function(he){if(he.code===he.QUOTA_ERR){if(D>0){L(Zu.apply(C,[g,V,I,D-1]));return}$(he)}})})}).catch($)});return _(O,I),O}function Qh(g,S,I){return Zu.apply(this,[g,S,I,1])}function Zh(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"DELETE FROM "+L.storeName+" WHERE key = ?",[g],function(){C()},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function tp(g){var S=this,I=new v(function(D,C){S.ready().then(function(){var O=S._dbInfo;O.db.transaction(function(L){$n(L,O,"DELETE FROM "+O.storeName,[],function(){D()},function($,V){C(V)})})}).catch(C)});return _(I,g),I}function rp(g){var S=this,I=new v(function(D,C){S.ready().then(function(){var O=S._dbInfo;O.db.transaction(function(L){$n(L,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function($,V){var H=V.rows.item(0).c;D(H)},function($,V){C(V)})})}).catch(C)});return _(I,g),I}function np(g,S){var I=this,D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"SELECT key FROM "+L.storeName+" WHERE id = ? LIMIT 1",[g+1],function(V,H){var F=H.rows.length?H.rows.item(0).key:null;C(F)},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function ip(g){var S=this,I=new v(function(D,C){S.ready().then(function(){var O=S._dbInfo;O.db.transaction(function(L){$n(L,O,"SELECT key FROM "+O.storeName,[],function($,V){for(var H=[],F=0;F<V.rows.length;F++)H.push(V.rows.item(F).key);D(H)},function($,V){C(V)})})}).catch(C)});return _(I,g),I}function sp(g){return new v(function(S,I){g.transaction(function(D){D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(C,O){for(var L=[],$=0;$<O.rows.length;$++)L.push(O.rows.item($).name);S({db:g,storeNames:L})},function(C,O){I(O)})},function(D){I(D)})})}function op(g,S){S=B.apply(this,arguments);var I=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||I.name,g.storeName=g.storeName||I.storeName);var D=this,C;return g.name?C=new v(function(O){var L;g.name===I.name?L=D._dbInfo.db:L=openDatabase(g.name,"","",0),g.storeName?O({db:L,storeNames:[g.storeName]}):O(sp(L))}).then(function(O){return new v(function(L,$){O.db.transaction(function(V){function H(Ve){return new v(function(Ae,ut){V.executeSql("DROP TABLE IF EXISTS "+Ve,[],function(){Ae()},function(Ge,Ht){ut(Ht)})})}for(var F=[],Y=0,he=O.storeNames.length;Y<he;Y++)F.push(H(O.storeNames[Y]));v.all(F).then(function(){L()}).catch(function(Ve){$(Ve)})},function(V){$(V)})})}):C=v.reject("Invalid arguments"),_(C,S),C}var hp={_driver:"webSQLStorage",_initStorage:zh,_support:f(),iterate:Jh,getItem:Xh,setItem:Qh,removeItem:Zh,clear:tp,length:rp,key:np,keys:ip,dropInstance:op};function pp(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function wh(g,S){var I=g.name+"/";return g.storeName!==S.storeName&&(I+=g.storeName+"/"),I}function dp(){var g="_localforage_support_test";try{return localStorage.setItem(g,!0),localStorage.removeItem(g),!1}catch{return!0}}function fp(){return!dp()||localStorage.length>0}function gp(g){var S=this,I={};if(g)for(var D in g)I[D]=g[D];return I.keyPrefix=wh(g,S._defaultConfig),fp()?(S._dbInfo=I,I.serializer=Sa,v.resolve()):v.reject()}function mp(g){var S=this,I=S.ready().then(function(){for(var D=S._dbInfo.keyPrefix,C=localStorage.length-1;C>=0;C--){var O=localStorage.key(C);O.indexOf(D)===0&&localStorage.removeItem(O)}});return _(I,g),I}function yp(g,S){var I=this;g=P(g);var D=I.ready().then(function(){var C=I._dbInfo,O=localStorage.getItem(C.keyPrefix+g);return O&&(O=C.serializer.deserialize(O)),O});return _(D,S),D}function vp(g,S){var I=this,D=I.ready().then(function(){for(var C=I._dbInfo,O=C.keyPrefix,L=O.length,$=localStorage.length,V=1,H=0;H<$;H++){var F=localStorage.key(H);if(F.indexOf(O)===0){var Y=localStorage.getItem(F);if(Y&&(Y=C.serializer.deserialize(Y)),Y=g(Y,F.substring(L),V++),Y!==void 0)return Y}}});return _(D,S),D}function wp(g,S){var I=this,D=I.ready().then(function(){var C=I._dbInfo,O;try{O=localStorage.key(g)}catch{O=null}return O&&(O=O.substring(C.keyPrefix.length)),O});return _(D,S),D}function bp(g){var S=this,I=S.ready().then(function(){for(var D=S._dbInfo,C=localStorage.length,O=[],L=0;L<C;L++){var $=localStorage.key(L);$.indexOf(D.keyPrefix)===0&&O.push($.substring(D.keyPrefix.length))}return O});return _(I,g),I}function _p(g){var S=this,I=S.keys().then(function(D){return D.length});return _(I,g),I}function Ep(g,S){var I=this;g=P(g);var D=I.ready().then(function(){var C=I._dbInfo;localStorage.removeItem(C.keyPrefix+g)});return _(D,S),D}function Sp(g,S,I){var D=this;g=P(g);var C=D.ready().then(function(){S===void 0&&(S=null);var O=S;return new v(function(L,$){var V=D._dbInfo;V.serializer.serialize(S,function(H,F){if(F)$(F);else try{localStorage.setItem(V.keyPrefix+g,H),L(O)}catch(Y){(Y.name==="QuotaExceededError"||Y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&$(Y),$(Y)}})})});return _(C,I),C}function Ip(g,S){if(S=B.apply(this,arguments),g=typeof g!="function"&&g||{},!g.name){var I=this.config();g.name=g.name||I.name,g.storeName=g.storeName||I.storeName}var D=this,C;return g.name?C=new v(function(O){g.storeName?O(wh(g,D._defaultConfig)):O(g.name+"/")}).then(function(O){for(var L=localStorage.length-1;L>=0;L--){var $=localStorage.key(L);$.indexOf(O)===0&&localStorage.removeItem($)}}):C=v.reject("Invalid arguments"),_(C,S),C}var Tp={_driver:"localStorageWrapper",_initStorage:gp,_support:pp(),iterate:vp,getItem:yp,setItem:Sp,removeItem:Ep,clear:mp,length:_p,key:wp,keys:bp,dropInstance:Ip},Cp=function(g,S){return g===S||typeof g=="number"&&typeof S=="number"&&isNaN(g)&&isNaN(S)},Np=function(g,S){for(var I=g.length,D=0;D<I;){if(Cp(g[D],S))return!0;D++}return!1},bh=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"},eo={},Eh={},Yi={INDEXEDDB:l,WEBSQL:hp,LOCALSTORAGE:Tp},xp=[Yi.INDEXEDDB._driver,Yi.WEBSQL._driver,Yi.LOCALSTORAGE._driver],zo=["dropInstance"],qa=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(zo),Dp={description:"",driver:xp.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Op(g,S){g[S]=function(){var I=arguments;return g.ready().then(function(){return g[S].apply(g,I)})}}function Ic(){for(var g=1;g<arguments.length;g++){var S=arguments[g];if(S)for(var I in S)S.hasOwnProperty(I)&&(bh(S[I])?arguments[0][I]=S[I].slice():arguments[0][I]=S[I])}return arguments[0]}var Ap=function(){function g(S){p(this,g);for(var I in Yi)if(Yi.hasOwnProperty(I)){var D=Yi[I],C=D._driver;this[I]=C,eo[C]||this.defineDriver(D)}this._defaultConfig=Ic({},Dp),this._config=Ic({},this._defaultConfig,S),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return g.prototype.config=function(S){if((typeof S>"u"?"undefined":u(S))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var I in S){if(I==="storeName"&&(S[I]=S[I].replace(/\W/g,"_")),I==="version"&&typeof S[I]!="number")return new Error("Database version must be a number.");this._config[I]=S[I]}return"driver"in S&&S.driver?this.setDriver(this._config.driver):!0}else return typeof S=="string"?this._config[S]:this._config},g.prototype.defineDriver=function(S,I,D){var C=new v(function(O,L){try{var $=S._driver,V=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!S._driver){L(V);return}for(var H=qa.concat("_initStorage"),F=0,Y=H.length;F<Y;F++){var he=H[F],Ve=!Np(zo,he);if((Ve||S[he])&&typeof S[he]!="function"){L(V);return}}var Ae=function(){for(var Ge=function(Pp){return function(){var Rp=new Error("Method "+Pp+" is not implemented by the current driver"),Sh=v.reject(Rp);return _(Sh,arguments[arguments.length-1]),Sh}},Ht=0,Tc=zo.length;Ht<Tc;Ht++){var Cc=zo[Ht];S[Cc]||(S[Cc]=Ge(Cc))}};Ae();var ut=function(Ge){eo[$]&&console.info("Redefining LocalForage driver: "+$),eo[$]=S,Eh[$]=Ge,O()};"_support"in S?S._support&&typeof S._support=="function"?S._support().then(ut,L):ut(!!S._support):ut(!0)}catch(Ge){L(Ge)}});return x(C,I,D),C},g.prototype.driver=function(){return this._driver||null},g.prototype.getDriver=function(S,I,D){var C=eo[S]?v.resolve(eo[S]):v.reject(new Error("Driver not found."));return x(C,I,D),C},g.prototype.getSerializer=function(S){var I=v.resolve(Sa);return x(I,S),I},g.prototype.ready=function(S){var I=this,D=I._driverSet.then(function(){return I._ready===null&&(I._ready=I._initDriver()),I._ready});return x(D,S,S),D},g.prototype.setDriver=function(S,I,D){var C=this;bh(S)||(S=[S]);var O=this._getSupportedDrivers(S);function L(){C._config.driver=C.driver()}function $(F){return C._extend(F),L(),C._ready=C._initStorage(C._config),C._ready}function V(F){return function(){var Y=0;function he(){for(;Y<F.length;){var Ve=F[Y];return Y++,C._dbInfo=null,C._ready=null,C.getDriver(Ve).then($).catch(he)}L();var Ae=new Error("No available storage method found.");return C._driverSet=v.reject(Ae),C._driverSet}return he()}}var H=this._driverSet!==null?this._driverSet.catch(function(){return v.resolve()}):v.resolve();return this._driverSet=H.then(function(){var F=O[0];return C._dbInfo=null,C._ready=null,C.getDriver(F).then(function(Y){C._driver=Y._driver,L(),C._wrapLibraryMethodsWithReady(),C._initDriver=V(O)})}).catch(function(){L();var F=new Error("No available storage method found.");return C._driverSet=v.reject(F),C._driverSet}),x(this._driverSet,I,D),this._driverSet},g.prototype.supports=function(S){return!!Eh[S]},g.prototype._extend=function(S){Ic(this,S)},g.prototype._getSupportedDrivers=function(S){for(var I=[],D=0,C=S.length;D<C;D++){var O=S[D];this.supports(O)&&I.push(O)}return I},g.prototype._wrapLibraryMethodsWithReady=function(){for(var S=0,I=qa.length;S<I;S++)Op(this,qa[S])},g.prototype.createInstance=function(S){return new g(S)},g}(),kp=new Ap;o.exports=kp},{3:3}]},{},[4])(4)})}),Zn=ur(e=>{"use strict";var t=e&&e.__awaiter||function(n,i,s,o){function c(u){return u instanceof s?u:new s(function(p){p(u)})}return new(s||(s=Promise))(function(u,p){function m(E){try{y(o.next(E))}catch(v){p(v)}}function h(E){try{y(o.throw(E))}catch(v){p(v)}}function y(E){E.done?u(E.value):c(E.value).then(m,h)}y((o=o.apply(n,i||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.JSUtils=void 0;var r=class{static isObject(n){return typeof n=="object"&&!Array.isArray(n)&&n!==null}static parseToAny(n){try{return JSON.parse(n.toString())}catch{}return n.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(n.toString()):n}static sleep(n){return t(this,void 0,void 0,function*(){return new Promise(i=>setTimeout(i,n))})}static hasKeys(n){return n?Object.keys(n).length>=1:!1}static convertObjectToArray(n,i){return i.reduce((s,o)=>(n.hasOwnProperty(o)&&n[o]!=null&&s.push({[o]:n[o]}),s),[])}static removeNullUndefinedKeys(n){return Object.keys(n).reduce((i,s)=>(n[s]!==null&&n[s]!==void 0&&(i[s]=n[s]),i),{})}static stringify(n){return JSON.stringify(n,function(i,s){return s===void 0?null:s})}};e.JSUtils=r,r.ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)}),Fu=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URLBuilder=void 0;var t=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}();e.URLBuilder=t}),rh=ur((e,t)=>{"use strict";(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self,r.fetchRetry=n())})(e,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,p){var m=o.retries,h=o.retryDelay,y=o.retryOn;if(p&&p.retries!==void 0)if(n(p.retries))m=p.retries;else throw new i("retries must be a positive integer");if(p&&p.retryDelay!==void 0)if(n(p.retryDelay)||typeof p.retryDelay=="function")h=p.retryDelay;else throw new i("retryDelay must be a positive integer or a function returning a positive integer");if(p&&p.retryOn)if(Array.isArray(p.retryOn)||typeof p.retryOn=="function")y=p.retryOn;else throw new i("retryOn property expects an array or function");return new Promise(function(E,v){var _=function(P){var B=typeof Request<"u"&&u instanceof Request?u.clone():u;s(B,p).then(function(U){if(Array.isArray(y)&&y.indexOf(U.status)===-1)E(U);else if(typeof y=="function")try{return Promise.resolve(y(P,null,U)).then(function(R){R?x(P,null,U):E(U)}).catch(v)}catch(R){v(R)}else P<m?x(P,null,U):E(U)}).catch(function(U){if(typeof y=="function")try{Promise.resolve(y(P,U,null)).then(function(R){R?x(P,U,null):v(U)}).catch(function(R){v(R)})}catch(R){v(R)}else P<m?x(P,U,null):v(U)})};function x(P,B,U){var R=typeof h=="function"?h(P,B,U):h;setTimeout(function(){_(++P)},R)}_(0)})}};function n(s){return Number.isInteger(s)&&s>=0}function i(s){this.name="ArgumentError",this.message=s}return r})}),up="9.3.33",N=class xc{static SDK_VERSION=up;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 CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";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 CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let t=xc.SDK_VERSION.split(".").map(r=>r.padStart(2,"0")).join("");xc.SDK_VERSION_CODE=parseInt(t,10)}},tr={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",styleURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${N.SDK_VERSION}/dist/widget-sdk.min.css`},Ot=Ce(nn()),b=class{static log(...e){Ot.default.info(...e)}static debug(...e){Ot.default.debug(...e)}static error(...e){Ot.default.error(...e)}static warn(...e){Ot.default.warn(...e)}static info(...e){Ot.default.info(...e)}static trace(...e){Ot.default.trace(...e)}static configure(e=N.LOG_PREFIX){Ot.default.useDefaults({formatter:function(r){r.unshift(`${e} (v${N.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Ot.default.setLevel(Ot.default[localStorage.cooeeLogLevel]):Ot.default.setLevel(tr.debug?Ot.default.TRACE:Ot.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
|
|
1
|
+
"use strict";(()=>{var ig=Object.create,Ac=Object.defineProperty,og=Object.defineProperties,sg=Object.getOwnPropertyDescriptor,ag=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertyNames,ap=Object.getOwnPropertySymbols,lg=Object.getPrototypeOf,lp=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable,cp=(e,t,r)=>t in e?Ac(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||={})lp.call(t,r)&&cp(e,r,t[r]);if(ap)for(var r of ap(t))ug.call(t,r)&&cp(e,r,t[r]);return e},ee=(e,t)=>og(e,ag(t)),zi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ur=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cg(t))!lp.call(e,i)&&i!==r&&Ac(e,i,{get:()=>t[i],enumerable:!(n=sg(t,i))||n.enumerable});return e},Ce=(e,t,r)=>(r=e!=null?ig(lg(e)):{},pg(t||!e||!e.__esModule?Ac(r,"default",{value:e,enumerable:!0}):r,e)),nn=ur((e,t)=>{"use strict";(function(r){"use strict";var n={};n.VERSION="1.6.1";var i,s={},o=function(h,y){return function(){return y.apply(h,arguments)}},c=function(){var h=arguments,y=h[0],E,v;for(v=1;v<h.length;v++)for(E in h[v])!(E in y)&&h[v].hasOwnProperty(E)&&(y[E]=h[v][E]);return y},u=function(h,y){return{value:h,name:y}};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 p=function(h){this.context=h,this.setLevel(h.filterLevel),this.log=this.info};p.prototype={setLevel:function(h){h&&"value"in h&&(this.context.filterLevel=h)},getLevel:function(){return this.context.filterLevel},enabledFor:function(h){var y=this.context.filterLevel;return h.value>=y.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,y){i&&this.enabledFor(h)&&i(y,c({level:h},this.context))}};var m=new p({filterLevel:n.OFF});(function(){var h=n;h.enabledFor=o(m,m.enabledFor),h.trace=o(m,m.trace),h.debug=o(m,m.debug),h.time=o(m,m.time),h.timeEnd=o(m,m.timeEnd),h.info=o(m,m.info),h.warn=o(m,m.warn),h.error=o(m,m.error),h.log=h.info})(),n.setHandler=function(h){i=h},n.setLevel=function(h){m.setLevel(h);for(var y in s)s.hasOwnProperty(y)&&s[y].setLevel(h)},n.getLevel=function(){return m.getLevel()},n.get=function(h){return s[h]||(s[h]=new p(c({name:h},m.context)))},n.createDefaultHandler=function(h){h=h||{},h.formatter=h.formatter||function(v,_){_.name&&v.unshift("["+_.name+"]")};var y={},E=function(v,_){Function.prototype.apply.call(v,console,_)};return typeof console>"u"?function(){}:function(v,_){v=Array.prototype.slice.call(v);var x=console.log,P;_.level===n.TIME?(P=(_.name?"["+_.name+"] ":"")+v[0],v[1]==="start"?console.time?console.time(P):y[P]=new Date().getTime():console.timeEnd?console.timeEnd(P):E(x,[P+": "+(new Date().getTime()-y[P])+"ms"])):(_.level===n.WARN&&console.warn?x=console.warn:_.level===n.ERROR&&console.error?x=console.error:_.level===n.INFO&&console.info?x=console.info:_.level===n.DEBUG&&console.debug?x=console.debug:_.level===n.TRACE&&console.trace&&(x=console.trace),h.formatter(v,_),E(x,v))}},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 t<"u"&&t.exports?t.exports=n:(n._prevLogger=r.Logger,n.noConflict=function(){return r.Logger=n._prevLogger,n},r.Logger=n)})(e)}),Nc=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MustacheUtils=void 0;var t=class Ih{static escapeHtml(n){return String(n).replace(/"/g,i=>Ih.entityMap[i])}};e.MustacheUtils=t,t.entityMap={'"':"""}}),Vr=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MilestoneRewardType=e.ProgressBarLayout=e.EngagementContentSource=e.EngagementObjective=e.OnsiteDeliveryType=e.ClickActionType=e.FrequencyGapUnit=e.FrequencyType=e.RedirectBehaviour=e.EngagementPlacementPosition=e.EngagementCollectionSource=e.PromotionType=e.CartFilterEnum=e.CartCurrencyOperator=e.CartCriteria=e.URLCriteria=e.UTMCriteria=e.CartItemSource=e.EngagementItemSource=e.PurchasedVisitor=e.LoggedInVisitor=e.VisitorType=e.SessionType=e.EngagementContentType=e.TriggerType=e.EngagementType=e.EngagementStatus=e.TimePreference=e.ScheduleFrequency=e.CriteriaFrequency=void 0;var t=function(d){return d[d.ONCE_PER_USER=1]="ONCE_PER_USER",d[d.ONCE_PER_SESSION=2]="ONCE_PER_SESSION",d[d.EVERY_TIME=3]="EVERY_TIME",d}(t||(e.CriteriaFrequency=t={})),r=function(d){return d[d.ONE_TIME=1]="ONE_TIME",d[d.MULTIPLE=2]="MULTIPLE",d[d.RECURRING=3]="RECURRING",d}(r||(e.ScheduleFrequency=r={})),n=function(d){return d[d.NOW=1]="NOW",d[d.LATER=2]="LATER",d[d.NEVER=3]="NEVER",d}(n||(e.TimePreference=n={})),i=function(d){return d[d.PUBLISHED=1]="PUBLISHED",d[d.DRAFT=2]="DRAFT",d[d.PAUSED=3]="PAUSED",d[d.FAILED=4]="FAILED",d[d.STOPPED=5]="STOPPED",d[d.COMPLETED=6]="COMPLETED",d[d.ARCHIVED=7]="ARCHIVED",d[d.UNINSTALLED=8]="UNINSTALLED",d}(i||(e.EngagementStatus=i={})),s=function(d){return d[d.POPUP=1]="POPUP",d[d.LEAD_GENERATION=2]="LEAD_GENERATION",d[d.PRODUCT_WIDGET=3]="PRODUCT_WIDGET",d[d.PRODUCT_BUNDLE=4]="PRODUCT_BUNDLE",d[d.ANNOUNCEMENT_BAR=5]="ANNOUNCEMENT_BAR",d[d.CART_REMINDER=6]="CART_REMINDER",d[d.CRO_COPILOT=10]="CRO_COPILOT",d[d.OTHER=11]="OTHER",d}(s||(e.EngagementType=s={})),o=function(d){return d[d.NONE=0]="NONE",d[d.RULE_BASED=1]="RULE_BASED",d[d.INTENT_BASED=2]="INTENT_BASED",d}(o||(e.TriggerType=o={})),c=function(d){return d[d.SINGLE=1]="SINGLE",d[d.EXCLUSION=2]="EXCLUSION",d[d.ABTESTING=3]="ABTESTING",d}(c||(e.EngagementContentType=c={})),u=function(d){return d[d.ALL=0]="ALL",d[d.NEW_ONLY=1]="NEW_ONLY",d[d.RETURNING_ONLY=2]="RETURNING_ONLY",d}(u||(e.SessionType=u={})),p=function(d){return d[d.ALL=0]="ALL",d[d.LOGGED_IN_ONLY=3]="LOGGED_IN_ONLY",d[d.NON_LOGGED_IN_ONLY=4]="NON_LOGGED_IN_ONLY",d[d.PURCHASED=5]="PURCHASED",d[d.NON_PURCHASED=6]="NON_PURCHASED",d[d.ABANDON_CART=7]="ABANDON_CART",d[d.RETURNING_AND_NON_PURCHASED=8]="RETURNING_AND_NON_PURCHASED",d}(p||(e.VisitorType=p={})),m=function(d){return d.ALL="ALL",d.LOGGED_IN="LOGGED_IN",d.NON_LOGGED_IN="NON_LOGGED_IN",d}(m||(e.LoggedInVisitor=m={})),h=function(d){return d.ALL="ALL",d.PURCHASED="PURCHASED",d.NON_PURCHASED="NON_PURCHASED",d}(h||(e.PurchasedVisitor=h={})),y=function(d){return d[d.NONE=0]="NONE",d[d.ITEM_RECOMMENDATION=1]="ITEM_RECOMMENDATION",d[d.MULTIPLE_ITEMS=2]="MULTIPLE_ITEMS",d[d.SINGLE_ITEM=3]="SINGLE_ITEM",d[d.TOP_SELLING=4]="TOP_SELLING",d[d.STOCK_CLEARANCE=5]="STOCK_CLEARANCE",d[d.NEW_ARRIVALS=6]="NEW_ARRIVALS",d[d.RECENTLY_VIEWED=7]="RECENTLY_VIEWED",d[d.EVENT_ITEM=8]="EVENT_ITEM",d[d.CART_ITEM=9]="CART_ITEM",d[d.BUNDLE=10]="BUNDLE",d[d.CURRENT_ITEM=11]="CURRENT_ITEM",d[d.PURCHASED_PREVIOUSLY=12]="PURCHASED_PREVIOUSLY",d[d.COLLECTION_ITEMS=13]="COLLECTION_ITEMS",d[d.TRENDING_ITEMS=14]="TRENDING_ITEMS",d}(y||(e.EngagementItemSource=y={})),E=function(d){return d[d.LAST_ADDED=1]="LAST_ADDED",d[d.FIRST_ADDED=2]="FIRST_ADDED",d[d.HIGHEST_PRICE=3]="HIGHEST_PRICE",d[d.LOWEST_PRICE=4]="LOWEST_PRICE",d[d.FIRST_MATCHING_TAG=5]="FIRST_MATCHING_TAG",d[d.ALL=6]="ALL",d}(E||(e.CartItemSource=E={})),v=function(d){return d[d.ALL=0]="ALL",d[d.ONLY_ORGANIC=1]="ONLY_ORGANIC",d[d.ONLY_NON_ORGANIC=2]="ONLY_NON_ORGANIC",d[d.INCLUDES=3]="INCLUDES",d[d.EXCLUDES=4]="EXCLUDES",d}(v||(e.UTMCriteria=v={})),_=function(d){return d[d.NONE=0]="NONE",d[d.LIKE=1]="LIKE",d[d.NOT_LIKE=2]="NOT_LIKE",d[d.EQUALS=3]="EQUALS",d[d.NOT_EQUALS=4]="NOT_EQUALS",d}(_||(e.URLCriteria=_={})),x=function(d){return d[d.NONE=0]="NONE",d[d.LESS_THAN=1]="LESS_THAN",d[d.GREATER_THAN=2]="GREATER_THAN",d[d.BETWEEN=3]="BETWEEN",d[d.EQUALS=4]="EQUALS",d}(x||(e.CartCriteria=x={})),P=function(d){return d[d.ALL=0]="ALL",d[d.INCLUDES=1]="INCLUDES",d[d.EXCLUDES=2]="EXCLUDES",d}(P||(e.CartCurrencyOperator=P={})),B=function(d){return d[d.NONE=0]="NONE",d[d.AMOUNT=1]="AMOUNT",d[d.TOTAL_PRODUCT=2]="TOTAL_PRODUCT",d[d.UNIQUE_PRODUCT=3]="UNIQUE_PRODUCT",d}(B||(e.CartFilterEnum=B={})),U=function(d){return d[d.NONE=0]="NONE",d[d.ITEM=1]="ITEM",d[d.COLLECTION=2]="COLLECTION",d}(U||(e.PromotionType=U={})),R=function(d){return d[d.NONE=0]="NONE",d[d.SINGLE=1]="SINGLE",d[d.MULTIPLE=2]="MULTIPLE",d}(R||(e.EngagementCollectionSource=R={})),G=function(d){return d.BEFORE="before",d.AFTER="after",d.INSIDE_FIRST="insideFirst",d.INSIDE_LAST="insideLast",d}(G||(e.EngagementPlacementPosition=G={})),ue=function(d){return d.SHOPIFY_CHECKOUT="shopify_checkout",d.THIRD_PARTY_CHECKOUT="third_party_checkout",d.CART_PAGE="cart_page",d.CART_DRAWER="cart_drawer",d}(ue||(e.RedirectBehaviour=ue={})),Me=function(d){return d.ONCE_IN_SESSION="ONCE_IN_SESSION",d.ACROSS_SESSIONS="ACROSS_SESSIONS",d}(Me||(e.FrequencyType=Me={})),j=function(d){return d.DAYS="DAYS",d.HOURS="HOURS",d.MINUTES="MINUTES",d.SECONDS="SECONDS",d}(j||(e.FrequencyGapUnit=j={})),Q=function(d){return d[d.NONE=0]="NONE",d[d.REJECT_POPUP=1]="REJECT_POPUP",d[d.ACCEPT_POPUP=2]="ACCEPT_POPUP",d[d.GO_TO_URL=4]="GO_TO_URL",d[d.SHARE=5]="SHARE",d[d.KEY_VALUE=100]="KEY_VALUE",d[d.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",d[d.ADD_TO_CART=102]="ADD_TO_CART",d[d.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",d[d.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",d[d.OPEN_CART=105]="OPEN_CART",d[d.SUBMIT_FORM=106]="SUBMIT_FORM",d[d.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",d[d.ADD_BUNDLE=108]="ADD_BUNDLE",d[d.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",d}(Q||(e.ClickActionType=Q={})),z=function(d){return d.POPUP="POPUP",d.PAGE_EMBED="PAGE_EMBED",d.CART_EMBED="CART_EMBED",d.ANNOUNCEMENT_BAR="ANNOUNCEMENT_BAR",d}(z||(e.OnsiteDeliveryType=z={})),J=function(d){return d.PRODUCT_PROMOTION="PRODUCT_PROMOTION",d.BUNDLE_AND_UPSELL="BUNDLE_AND_UPSELL",d.CART_RECOVERY="CART_RECOVERY",d.ANNOUNCEMENT="ANNOUNCEMENT",d.LEAD_GENERATION="LEAD_GENERATION",d.DATA_COLLECTION="DATA_COLLECTION",d.SALE_PROMOTION="SALE_PROMOTION",d.SUBSCRIPTION_UPSELL="SUBSCRIPTION_UPSELL",d.SHOPPABLE_VIDEO="SHOPPABLE_VIDEO",d.BYOB="BYOB",d.PROGRESS_BAR="PROGRESS_BAR",d.BUY_NOW="BUY_NOW",d}(J||(e.EngagementObjective=J={})),ge=function(d){return d.COOEE="COOEE",d.KLAVIYO="KLAVIYO",d}(ge||(e.EngagementContentSource=ge={})),je=function(d){return d.ICONS="ICONS",d.TILES="TILES",d}(je||(e.ProgressBarLayout=je={})),De=function(d){return d.FREE_SHIPPING="FREE_SHIPPING",d.DISCOUNT="DISCOUNT",d.FREE_AUTO_GIFT="FREE_AUTO_GIFT",d.FREE_GIFT_SELECT="FREE_GIFT_SELECT",d}(De||(e.MilestoneRewardType=De={}))}),Jo=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PriceRuleType=e.DiscountType=void 0;var t=function(n){return n[n.NONE=0]="NONE",n[n.STATIC=1]="STATIC",n[n.UNIQUE_FLAT=2]="UNIQUE_FLAT",n[n.UNIQUE_FLAT_ITEMS=3]="UNIQUE_FLAT_ITEMS",n[n.UNIQUE_FIXED_ITEMS=4]="UNIQUE_FIXED_ITEMS",n[n.UNIQUE_CHEAPEST_ITEM_FREE=5]="UNIQUE_CHEAPEST_ITEM_FREE",n[n.BXGY=6]="BXGY",n}(t||(e.DiscountType=t={})),r=function(n){return n.FIXED_AMOUNT="fixed_amount",n.PERCENTAGE="percentage",n}(r||(e.PriceRuleType=r={}))}),Pc=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayUtils=void 0;var t=class Th{static of(n,i){return i!==void 0?new Array(n).fill(i):Array.from({length:n},(s,o)=>o)}static remove(n,i){let s=n.indexOf(i);return s===-1?!1:(n.splice(s,1),!0)}static swap(n,i,s){[n[i],n[s]]=[n[s],n[i]]}static sum(n,i){return n.reduce((s,o)=>s+Math.max(i?i(o):+o,0),0)}static unique(n,i){return n.filter((s,o,c)=>c.findIndex(u=>u[i]===s[i])===o)}static shuffle(n){let i=n.length;for(;i!=0;){let s=Math.floor(Math.random()*i);i--,Th.swap(n,i,s)}}};e.ArrayUtils=t}),wf=ur((e,t)=>{"use strict";(function(r,n){"use strict";var i="1.0.40",s="",o="?",c="function",u="undefined",p="object",m="string",h="major",y="model",E="name",v="type",_="vendor",x="version",P="architecture",B="console",U="mobile",R="tablet",G="smarttv",ue="wearable",Me="embedded",j=500,Q="Amazon",z="Apple",J="ASUS",ge="BlackBerry",je="Browser",De="Chrome",d="Edge",qe="Firefox",ve="Google",gt="Huawei",se="LG",ie="Microsoft",lt="Motorola",er="Opera",lr="Samsung",yt="Sharp",Wr="Sony",Fn="Xiaomi",rn="Zebra",Qn="Facebook",Vi="Chromium OS",Hn="Mac OS",kn=" Browser",vt=function(q,ae){var Z={};for(var Te in q)ae[Te]&&ae[Te].length%2===0?Z[Te]=ae[Te].concat(q[Te]):Z[Te]=q[Te];return Z},jr=function(q){for(var ae={},Z=0;Z<q.length;Z++)ae[q[Z].toUpperCase()]=q[Z];return ae},Gi=function(q,ae){return typeof q===m?a(ae).indexOf(a(q))!==-1:!1},a=function(q){return q.toLowerCase()},l=function(q){return typeof q===m?q.replace(/[^\d\.]/g,s).split(".")[0]:n},f=function(q,ae){if(typeof q===m)return q=q.replace(/^\s\s*/,s),typeof ae===u?q:q.substring(0,j)},T=function(q,ae){for(var Z=0,Te,Dt,Nt,Ie,ne,Ft;Z<ae.length&&!ne;){var Wi=ae[Z],ls=ae[Z+1];for(Te=Dt=0;Te<Wi.length&&!ne&&Wi[Te];)if(ne=Wi[Te++].exec(q),ne)for(Nt=0;Nt<ls.length;Nt++)Ft=ne[++Dt],Ie=ls[Nt],typeof Ie===p&&Ie.length>0?Ie.length===2?typeof Ie[1]==c?this[Ie[0]]=Ie[1].call(this,Ft):this[Ie[0]]=Ie[1]:Ie.length===3?typeof Ie[1]===c&&!(Ie[1].exec&&Ie[1].test)?this[Ie[0]]=Ft?Ie[1].call(this,Ft,Ie[2]):n:this[Ie[0]]=Ft?Ft.replace(Ie[1],Ie[2]):n:Ie.length===4&&(this[Ie[0]]=Ft?Ie[3].call(this,Ft.replace(Ie[1],Ie[2])):n):this[Ie]=Ft||n;Z+=2}},A=function(q,ae){for(var Z in ae)if(typeof ae[Z]===p&&ae[Z].length>0){for(var Te=0;Te<ae[Z].length;Te++)if(Gi(ae[Z][Te],q))return Z===o?n:Z}else if(Gi(ae[Z],q))return Z===o?n:Z;return ae.hasOwnProperty("*")?ae["*"]:q},M={"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"},be={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[E,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[E,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[E,x],[/opios[\/ ]+([\w\.]+)/i],[x,[E,er+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[x,[E,er+" GX"]],[/\bopr\/([\w\.]+)/i],[x,[E,er]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[x,[E,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[x,[E,"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],[E,x],[/quark(?:pc)?\/([-\w\.]+)/i],[x,[E,"Quark"]],[/\bddg\/([\w\.]+)/i],[x,[E,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[E,"UC"+je]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[x,[E,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[E,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[E,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[x,[E,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[x,[E,"Smart Lenovo "+je]],[/(avast|avg)\/([\w\.]+)/i],[[E,/(.+)/,"$1 Secure "+je],x],[/\bfocus\/([\w\.]+)/i],[x,[E,qe+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[E,er+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[E,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[E,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[E,er+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[E,"MIUI"+kn]],[/fxios\/([\w\.-]+)/i],[x,[E,qe]],[/\bqihoobrowser\/?([\w\.]*)/i],[x,[E,"360"]],[/\b(qq)\/([\w\.]+)/i],[[E,/(.+)/,"$1Browser"],x],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[E,/(.+)/,"$1"+kn],x],[/samsungbrowser\/([\w\.]+)/i],[x,[E,lr+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[x,[E,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[E,"Sogou Mobile"],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[E,x],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[E],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[x,E],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[E,Qn],x],[/(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],[E,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[E,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[x,[E,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[E,De+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[E,De+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[E,"Android "+je]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[E,x],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[x,[E,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[x,E],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[E,[x,A,M]],[/(webkit|khtml)\/([\w\.]+)/i],[E,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[E,"Netscape"],x],[/(wolvic|librewolf)\/([\w\.]+)/i],[E,x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[E,qe+" 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],[E,[x,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[E,[x,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[P,"amd64"]],[/(ia32(?=;))/i],[[P,a]],[/((?:i[346]|x)86)[;\)]/i],[[P,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[P,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[P,"armhf"]],[/windows (ce|mobile); ppc;/i],[[P,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[P,/ower/,s,a]],[/(sun4\w)[;\)]/i],[[P,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[P,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],[y,[_,lr],[v,R]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[y,[_,lr],[v,U]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[y,[_,z],[v,U]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[y,[_,z],[v,R]],[/(macintosh);/i],[y,[_,z]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[y,[_,yt],[v,U]],[/(?:honor)([-\w ]+)[;\)]/i],[y,[_,"Honor"],[v,U]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[y,[_,gt],[v,R]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[y,[_,gt],[v,U]],[/\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],[[y,/_/g," "],[_,Fn],[v,U]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[y,/_/g," "],[_,Fn],[v,R]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[y,[_,"OPPO"],[v,U]],[/\b(opd2\d{3}a?) bui/i],[y,[_,"OPPO"],[v,R]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[y,[_,"Vivo"],[v,U]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[y,[_,"Realme"],[v,U]],[/\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],[y,[_,lt],[v,U]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[y,[_,lt],[v,R]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[y,[_,se],[v,R]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[y,[_,se],[v,U]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[y,[_,"Lenovo"],[v,R]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[y,/_/g," "],[_,"Nokia"],[v,U]],[/(pixel c)\b/i],[y,[_,ve],[v,R]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[y,[_,ve],[v,U]],[/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],[y,[_,Wr],[v,U]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[y,"Xperia Tablet"],[_,Wr],[v,R]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[y,[_,"OnePlus"],[v,U]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[y,[_,Q],[v,R]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[y,/(.+)/g,"Fire Phone $1"],[_,Q],[v,U]],[/(playbook);[-\w\),; ]+(rim)/i],[y,_,[v,R]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[y,[_,ge],[v,U]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[y,[_,J],[v,R]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[y,[_,J],[v,U]],[/(nexus 9)/i],[y,[_,"HTC"],[v,R]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[_,[y,/_/g," "],[v,U]],[/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],[y,[_,"TCL"],[v,R]],[/(itel) ((\w+))/i],[[_,a],y,[v,A,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[y,[_,"Acer"],[v,R]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[y,[_,"Meizu"],[v,U]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[y,[_,"Ulefone"],[v,U]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[y,[_,"Energizer"],[v,U]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[y,[_,"Cat"],[v,U]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[y,[_,"Smartfren"],[v,U]],[/droid.+; (a(?:015|06[35]|142p?))/i],[y,[_,"Nothing"],[v,U]],[/(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,U]],[/(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,R]],[/(surface duo)/i],[y,[_,ie],[v,R]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[y,[_,"Fairphone"],[v,U]],[/(u304aa)/i],[y,[_,"AT&T"],[v,U]],[/\bsie-(\w*)/i],[y,[_,"Siemens"],[v,U]],[/\b(rct\w+) b/i],[y,[_,"RCA"],[v,R]],[/\b(venue[\d ]{2,7}) b/i],[y,[_,"Dell"],[v,R]],[/\b(q(?:mv|ta)\w+) b/i],[y,[_,"Verizon"],[v,R]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[y,[_,"Barnes & Noble"],[v,R]],[/\b(tm\d{3}\w+) b/i],[y,[_,"NuVision"],[v,R]],[/\b(k88) b/i],[y,[_,"ZTE"],[v,R]],[/\b(nx\d{3}j) b/i],[y,[_,"ZTE"],[v,U]],[/\b(gen\d{3}) b.+49h/i],[y,[_,"Swiss"],[v,U]],[/\b(zur\d{3}) b/i],[y,[_,"Swiss"],[v,R]],[/\b((zeki)?tb.*\b) b/i],[y,[_,"Zeki"],[v,R]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[_,"Dragon Touch"],y,[v,R]],[/\b(ns-?\w{0,9}) b/i],[y,[_,"Insignia"],[v,R]],[/\b((nxa|next)-?\w{0,9}) b/i],[y,[_,"NextBook"],[v,R]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[_,"Voice"],y,[v,U]],[/\b(lvtel\-)?(v1[12]) b/i],[[_,"LvTel"],y,[v,U]],[/\b(ph-1) /i],[y,[_,"Essential"],[v,U]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[y,[_,"Envizen"],[v,R]],[/\b(trio[-\w\. ]+) b/i],[y,[_,"MachSpeed"],[v,R]],[/\btu_(1491) b/i],[y,[_,"Rotor"],[v,R]],[/(shield[\w ]+) b/i],[y,[_,"Nvidia"],[v,R]],[/(sprint) (\w+)/i],[_,y,[v,U]],[/(kin\.[onetw]{3})/i],[[y,/\./g," "],[_,ie],[v,U]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[y,[_,rn],[v,R]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[y,[_,rn],[v,U]],[/smart-tv.+(samsung)/i],[_,[v,G]],[/hbbtv.+maple;(\d+)/i],[[y,/^/,"SmartTV"],[_,lr],[v,G]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[_,se],[v,G]],[/(apple) ?tv/i],[_,[y,z+" TV"],[v,G]],[/crkey/i],[[y,De+"cast"],[_,ve],[v,G]],[/droid.+aft(\w+)( bui|\))/i],[y,[_,Q],[v,G]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[y,[_,yt],[v,G]],[/(bravia[\w ]+)( bui|\))/i],[y,[_,Wr],[v,G]],[/(mitv-\w{5}) bui/i],[y,[_,Fn],[v,G]],[/Hbbtv.*(technisat) (.*);/i],[_,y,[v,G]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[_,f],[y,f],[v,G]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,G]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[_,y,[v,B]],[/droid.+; (shield) bui/i],[y,[_,"Nvidia"],[v,B]],[/(playstation [345portablevi]+)/i],[y,[_,Wr],[v,B]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[y,[_,ie],[v,B]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[y,[_,lr],[v,ue]],[/((pebble))app/i],[_,y,[v,ue]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[y,[_,z],[v,ue]],[/droid.+; (glass) \d/i],[y,[_,ve],[v,ue]],[/droid.+; (wt63?0{2,3})\)/i],[y,[_,rn],[v,ue]],[/droid.+; (glass) \d/i],[y,[_,ve],[v,ue]],[/(pico) (4|neo3(?: link|pro)?)/i],[_,y,[v,ue]],[/; (quest( \d| pro)?)/i],[y,[_,Qn],[v,ue]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[_,[v,Me]],[/(aeobc)\b/i],[y,[_,Q],[v,Me]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[y,[v,U]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[y,[v,R]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,R]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,U]],[/(android[-\w\. ]{0,9});.+buil/i],[y,[_,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[E,d+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[E,x],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[E,"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],[E,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,E]],os:[[/microsoft (windows) (vista|xp)/i],[E,x],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[E,[x,A,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[x,A,W],[E,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[E,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[E,Hn],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,E],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[E,x],[/\(bb(10);/i],[x,[E,ge]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[E,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[E,qe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[E,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[x,[E,"watchOS"]],[/crkey\/([\d\.]+)/i],[x,[E,De+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[E,Vi],x],[/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],[E,x],[/(sunos) ?([\w\.\d]*)/i],[[E,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[E,x]]},me=function(q,ae){if(typeof q===p&&(ae=q,q=n),!(this instanceof me))return new me(q,ae).getResult();var Z=typeof r!==u&&r.navigator?r.navigator:n,Te=q||(Z&&Z.userAgent?Z.userAgent:s),Dt=Z&&Z.userAgentData?Z.userAgentData:n,Nt=ae?vt(be,ae):be,Ie=Z&&Z.userAgent==Te;return this.getBrowser=function(){var ne={};return ne[E]=n,ne[x]=n,T.call(ne,Te,Nt.browser),ne[h]=l(ne[x]),Ie&&Z&&Z.brave&&typeof Z.brave.isBrave==c&&(ne[E]="Brave"),ne},this.getCPU=function(){var ne={};return ne[P]=n,T.call(ne,Te,Nt.cpu),ne},this.getDevice=function(){var ne={};return ne[_]=n,ne[y]=n,ne[v]=n,T.call(ne,Te,Nt.device),Ie&&!ne[v]&&Dt&&Dt.mobile&&(ne[v]=U),Ie&&ne[y]=="Macintosh"&&Z&&typeof Z.standalone!==u&&Z.maxTouchPoints&&Z.maxTouchPoints>2&&(ne[y]="iPad",ne[v]=R),ne},this.getEngine=function(){var ne={};return ne[E]=n,ne[x]=n,T.call(ne,Te,Nt.engine),ne},this.getOS=function(){var ne={};return ne[E]=n,ne[x]=n,T.call(ne,Te,Nt.os),Ie&&!ne[E]&&Dt&&Dt.platform&&Dt.platform!="Unknown"&&(ne[E]=Dt.platform.replace(/chrome os/i,Vi).replace(/macos/i,Hn)),ne},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 Te},this.setUA=function(ne){return Te=typeof ne===m&&ne.length>j?f(ne,j):ne,this},this.setUA(Te),this};me.VERSION=i,me.BROWSER=jr([E,x,h]),me.CPU=jr([P]),me.DEVICE=jr([y,_,v,B,U,G,R,ue,Me]),me.ENGINE=me.OS=jr([E,x]),typeof e!==u?(typeof t!==u&&t.exports&&(e=t.exports=me),e.UAParser=me):typeof define===c&&define.amd?define(function(){return me}):typeof r!==u&&(r.UAParser=me);var ye=typeof r!==u&&(r.jQuery||r.Zepto);if(ye&&!ye.ua){var $e=new me;ye.ua=$e.getResult(),ye.ua.get=function(){return $e.getUA()},ye.ua.set=function(q){$e.setUA(q);var ae=$e.getResult();for(var Z in ae)ye.ua[Z]=ae[Z]}}})(typeof window=="object"?window:e)}),Tf=ur((e,t)=>{"use strict";(function(r){if(typeof e=="object"&&typeof t<"u")t.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 p(y,E){if(!c[y]){if(!o[y]){var v=typeof zi=="function"&&zi;if(!E&&v)return v(y,!0);if(m)return m(y,!0);var _=new Error("Cannot find module '"+y+"'");throw _.code="MODULE_NOT_FOUND",_}var x=c[y]={exports:{}};o[y][0].call(x.exports,function(P){var B=o[y][1][P];return p(B||P)},x,x.exports,s,o,c,u)}return c[y].exports}for(var m=typeof zi=="function"&&zi,h=0;h<u.length;h++)p(u[h]);return p}({1:[function(s,o,c){(function(u){"use strict";var p=u.MutationObserver||u.WebKitMutationObserver,m;if(p){var h=0,y=new p(P),E=u.document.createTextNode("");y.observe(E,{characterData:!0}),m=function(){E.data=h=++h%2}}else if(!u.setImmediate&&typeof u.MessageChannel<"u"){var v=new u.MessageChannel;v.port1.onmessage=P,m=function(){v.port2.postMessage(0)}}else"document"in u&&"onreadystatechange"in u.document.createElement("script")?m=function(){var U=u.document.createElement("script");U.onreadystatechange=function(){P(),U.onreadystatechange=null,U.parentNode.removeChild(U),U=null},u.document.documentElement.appendChild(U)}:m=function(){setTimeout(P,0)};var _,x=[];function P(){_=!0;for(var U,R,G=x.length;G;){for(R=x,x=[],U=-1;++U<G;)R[U]();G=x.length}_=!1}o.exports=B;function B(U){x.push(U)===1&&!_&&m()}}).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 p(){}var m={},h=["REJECTED"],y=["FULFILLED"],E=["PENDING"];o.exports=v;function v(j){if(typeof j!="function")throw new TypeError("resolver must be a function");this.state=E,this.queue=[],this.outcome=void 0,j!==p&&B(this,j)}v.prototype.catch=function(j){return this.then(null,j)},v.prototype.then=function(j,Q){if(typeof j!="function"&&this.state===y||typeof Q!="function"&&this.state===h)return this;var z=new this.constructor(p);if(this.state!==E){var J=this.state===y?j:Q;x(z,J,this.outcome)}else this.queue.push(new _(z,j,Q));return z};function _(j,Q,z){this.promise=j,typeof Q=="function"&&(this.onFulfilled=Q,this.callFulfilled=this.otherCallFulfilled),typeof z=="function"&&(this.onRejected=z,this.callRejected=this.otherCallRejected)}_.prototype.callFulfilled=function(j){m.resolve(this.promise,j)},_.prototype.otherCallFulfilled=function(j){x(this.promise,this.onFulfilled,j)},_.prototype.callRejected=function(j){m.reject(this.promise,j)},_.prototype.otherCallRejected=function(j){x(this.promise,this.onRejected,j)};function x(j,Q,z){u(function(){var J;try{J=Q(z)}catch(ge){return m.reject(j,ge)}J===j?m.reject(j,new TypeError("Cannot resolve promise with itself")):m.resolve(j,J)})}m.resolve=function(j,Q){var z=U(P,Q);if(z.status==="error")return m.reject(j,z.value);var J=z.value;if(J)B(j,J);else{j.state=y,j.outcome=Q;for(var ge=-1,je=j.queue.length;++ge<je;)j.queue[ge].callFulfilled(Q)}return j},m.reject=function(j,Q){j.state=h,j.outcome=Q;for(var z=-1,J=j.queue.length;++z<J;)j.queue[z].callRejected(Q);return j};function P(j){var Q=j&&j.then;if(j&&(typeof j=="object"||typeof j=="function")&&typeof Q=="function")return function(){Q.apply(j,arguments)}}function B(j,Q){var z=!1;function J(d){z||(z=!0,m.reject(j,d))}function ge(d){z||(z=!0,m.resolve(j,d))}function je(){Q(ge,J)}var De=U(je);De.status==="error"&&J(De.value)}function U(j,Q){var z={};try{z.value=j(Q),z.status="success"}catch(J){z.status="error",z.value=J}return z}v.resolve=R;function R(j){return j instanceof this?j:m.resolve(new this(p),j)}v.reject=G;function G(j){var Q=new this(p);return m.reject(Q,j)}v.all=ue;function ue(j){var Q=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var z=j.length,J=!1;if(!z)return this.resolve([]);for(var ge=new Array(z),je=0,De=-1,d=new this(p);++De<z;)qe(j[De],De);return d;function qe(ve,gt){Q.resolve(ve).then(se,function(ie){J||(J=!0,m.reject(d,ie))});function se(ie){ge[gt]=ie,++je===z&&!J&&(J=!0,m.resolve(d,ge))}}}v.race=Me;function Me(j){var Q=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var z=j.length,J=!1;if(!z)return this.resolve([]);for(var ge=-1,je=new this(p);++ge<z;)De(j[ge]);return je;function De(d){Q.resolve(d).then(function(qe){J||(J=!0,m.resolve(je,qe))},function(qe){J||(J=!0,m.reject(je,qe))})}}},{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(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};function p(g,S){if(!(g instanceof S))throw new TypeError("Cannot call a class as a function")}function m(){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=m();function y(){try{if(!h||!h.open)return!1;var g=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),S=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!g||S)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function E(g,S){g=g||[],S=S||{};try{return new Blob(g,S)}catch(O){if(O.name!=="TypeError")throw O;for(var I=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,D=new I,C=0;C<g.length;C+=1)D.append(g[C]);return D.getBlob(S.type)}}typeof Promise>"u"&&s(3);var v=Promise;function _(g,S){S&&g.then(function(I){S(null,I)},function(I){S(I)})}function x(g,S,I){typeof S=="function"&&g.then(S),typeof I=="function"&&g.catch(I)}function P(g){return typeof g!="string"&&(console.warn(g+" used as a key, but it is not a string."),g=String(g)),g}function B(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var U="local-forage-detect-blob-support",R=void 0,G={},ue=Object.prototype.toString,Me="readonly",j="readwrite";function Q(g){for(var S=g.length,I=new ArrayBuffer(S),D=new Uint8Array(I),C=0;C<S;C++)D[C]=g.charCodeAt(C);return I}function z(g){return new v(function(S){var I=g.transaction(U,j),D=E([""]);I.objectStore(U).put(D,"key"),I.onabort=function(C){C.preventDefault(),C.stopPropagation(),S(!1)},I.oncomplete=function(){var C=navigator.userAgent.match(/Chrome\/(\d+)/),O=navigator.userAgent.match(/Edge\//);S(O||!C||parseInt(C[1],10)>=43)}}).catch(function(){return!1})}function J(g){return typeof R=="boolean"?v.resolve(R):z(g).then(function(S){return R=S,R})}function ge(g){var S=G[g.name],I={};I.promise=new v(function(D,C){I.resolve=D,I.reject=C}),S.deferredOperations.push(I),S.dbReady?S.dbReady=S.dbReady.then(function(){return I.promise}):S.dbReady=I.promise}function je(g){var S=G[g.name],I=S.deferredOperations.pop();if(I)return I.resolve(),I.promise}function De(g,S){var I=G[g.name],D=I.deferredOperations.pop();if(D)return D.reject(S),D.promise}function d(g,S){return new v(function(I,D){if(G[g.name]=G[g.name]||Wr(),g.db)if(S)ge(g),g.db.close();else return I(g.db);var C=[g.name];S&&C.push(g.version);var O=h.open.apply(h,C);S&&(O.onupgradeneeded=function(L){var $=O.result;try{$.createObjectStore(g.storeName),L.oldVersion<=1&&$.createObjectStore(U)}catch(V){if(V.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+L.oldVersion+" to version "+L.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw V}}),O.onerror=function(L){L.preventDefault(),D(O.error)},O.onsuccess=function(){var L=O.result;L.onversionchange=function($){$.target.close()},I(L),je(g)}})}function qe(g){return d(g,!1)}function ve(g){return d(g,!0)}function gt(g,S){if(!g.db)return!0;var I=!g.db.objectStoreNames.contains(g.storeName),D=g.version<g.db.version,C=g.version>g.db.version;if(D&&(g.version!==S&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),C||I){if(I){var O=g.db.version+1;O>g.version&&(g.version=O)}return!0}return!1}function se(g){return new v(function(S,I){var D=new FileReader;D.onerror=I,D.onloadend=function(C){var O=btoa(C.target.result||"");S({__local_forage_encoded_blob:!0,data:O,type:g.type})},D.readAsBinaryString(g)})}function ie(g){var S=Q(atob(g.data));return E([S],{type:g.type})}function lt(g){return g&&g.__local_forage_encoded_blob}function er(g){var S=this,I=S._initReady().then(function(){var D=G[S._dbInfo.name];if(D&&D.dbReady)return D.dbReady});return x(I,g,g),I}function lr(g){ge(g);for(var S=G[g.name],I=S.forages,D=0;D<I.length;D++){var C=I[D];C._dbInfo.db&&(C._dbInfo.db.close(),C._dbInfo.db=null)}return g.db=null,qe(g).then(function(O){return g.db=O,gt(g)?ve(g):O}).then(function(O){g.db=S.db=O;for(var L=0;L<I.length;L++)I[L]._dbInfo.db=O}).catch(function(O){throw De(g,O),O})}function yt(g,S,I,D){D===void 0&&(D=1);try{var C=g.db.transaction(g.storeName,S);I(null,C)}catch(O){if(D>0&&(!g.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return v.resolve().then(function(){if(!g.db||O.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),ve(g)}).then(function(){return lr(g).then(function(){yt(g,S,I,D-1)})}).catch(I);I(O)}}function Wr(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Fn(g){var S=this,I={db:null};if(g)for(var D in g)I[D]=g[D];var C=G[I.name];C||(C=Wr(),G[I.name]=C),C.forages.push(S),S._initReady||(S._initReady=S.ready,S.ready=er);var O=[];function L(){return v.resolve()}for(var $=0;$<C.forages.length;$++){var V=C.forages[$];V!==S&&O.push(V._initReady().catch(L))}var H=C.forages.slice(0);return v.all(O).then(function(){return I.db=C.db,qe(I)}).then(function(F){return I.db=F,gt(I,S._defaultConfig.version)?ve(I):F}).then(function(F){I.db=C.db=F,S._dbInfo=I;for(var Y=0;Y<H.length;Y++){var he=H[Y];he!==S&&(he._dbInfo.db=I.db,he._dbInfo.version=I.version)}})}function rn(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){yt(I._dbInfo,Me,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=V.get(g);H.onsuccess=function(){var F=H.result;F===void 0&&(F=null),lt(F)&&(F=ie(F)),C(F)},H.onerror=function(){O(H.error)}}catch(F){O(F)}})}).catch(O)});return _(D,S),D}function Qn(g,S){var I=this,D=new v(function(C,O){I.ready().then(function(){yt(I._dbInfo,Me,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=V.openCursor(),F=1;H.onsuccess=function(){var Y=H.result;if(Y){var he=Y.value;lt(he)&&(he=ie(he));var Ve=g(he,Y.key,F++);Ve!==void 0?C(Ve):Y.continue()}else C()},H.onerror=function(){O(H.error)}}catch(Y){O(Y)}})}).catch(O)});return _(D,S),D}function Vi(g,S,I){var D=this;g=P(g);var C=new v(function(O,L){var $;D.ready().then(function(){return $=D._dbInfo,ue.call(S)==="[object Blob]"?J($.db).then(function(V){return V?S:se(S)}):S}).then(function(V){yt(D._dbInfo,j,function(H,F){if(H)return L(H);try{var Y=F.objectStore(D._dbInfo.storeName);V===null&&(V=void 0);var he=Y.put(V,g);F.oncomplete=function(){V===void 0&&(V=null),O(V)},F.onabort=F.onerror=function(){var Ve=he.error?he.error:he.transaction.error;L(Ve)}}catch(Ve){L(Ve)}})}).catch(L)});return _(C,I),C}function Hn(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){yt(I._dbInfo,j,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=V.delete(g);$.oncomplete=function(){C()},$.onerror=function(){O(H.error)},$.onabort=function(){var F=H.error?H.error:H.transaction.error;O(F)}}catch(F){O(F)}})}).catch(O)});return _(D,S),D}function kn(g){var S=this,I=new v(function(D,C){S.ready().then(function(){yt(S._dbInfo,j,function(O,L){if(O)return C(O);try{var $=L.objectStore(S._dbInfo.storeName),V=$.clear();L.oncomplete=function(){D()},L.onabort=L.onerror=function(){var H=V.error?V.error:V.transaction.error;C(H)}}catch(H){C(H)}})}).catch(C)});return _(I,g),I}function vt(g){var S=this,I=new v(function(D,C){S.ready().then(function(){yt(S._dbInfo,Me,function(O,L){if(O)return C(O);try{var $=L.objectStore(S._dbInfo.storeName),V=$.count();V.onsuccess=function(){D(V.result)},V.onerror=function(){C(V.error)}}catch(H){C(H)}})}).catch(C)});return _(I,g),I}function jr(g,S){var I=this,D=new v(function(C,O){if(g<0){C(null);return}I.ready().then(function(){yt(I._dbInfo,Me,function(L,$){if(L)return O(L);try{var V=$.objectStore(I._dbInfo.storeName),H=!1,F=V.openKeyCursor();F.onsuccess=function(){var Y=F.result;if(!Y){C(null);return}g===0||H?C(Y.key):(H=!0,Y.advance(g))},F.onerror=function(){O(F.error)}}catch(Y){O(Y)}})}).catch(O)});return _(D,S),D}function Gi(g){var S=this,I=new v(function(D,C){S.ready().then(function(){yt(S._dbInfo,Me,function(O,L){if(O)return C(O);try{var $=L.objectStore(S._dbInfo.storeName),V=$.openKeyCursor(),H=[];V.onsuccess=function(){var F=V.result;if(!F){D(H);return}H.push(F.key),F.continue()},V.onerror=function(){C(V.error)}}catch(F){C(F)}})}).catch(C)});return _(I,g),I}function a(g,S){S=B.apply(this,arguments);var I=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||I.name,g.storeName=g.storeName||I.storeName);var D=this,C;if(!g.name)C=v.reject("Invalid arguments");else{var O=g.name===I.name&&D._dbInfo.db,L=O?v.resolve(D._dbInfo.db):qe(g).then(function($){var V=G[g.name],H=V.forages;V.db=$;for(var F=0;F<H.length;F++)H[F]._dbInfo.db=$;return $});g.storeName?C=L.then(function($){if($.objectStoreNames.contains(g.storeName)){var V=$.version+1;ge(g);var H=G[g.name],F=H.forages;$.close();for(var Y=0;Y<F.length;Y++){var he=F[Y];he._dbInfo.db=null,he._dbInfo.version=V}var Ve=new v(function(Ae,ut){var Ge=h.open(g.name,V);Ge.onerror=function(Ht){var Tc=Ge.result;Tc.close(),ut(Ht)},Ge.onupgradeneeded=function(){var Ht=Ge.result;Ht.deleteObjectStore(g.storeName)},Ge.onsuccess=function(){var Ht=Ge.result;Ht.close(),Ae(Ht)}});return Ve.then(function(Ae){H.db=Ae;for(var ut=0;ut<F.length;ut++){var Ge=F[ut];Ge._dbInfo.db=Ae,je(Ge._dbInfo)}}).catch(function(Ae){throw(De(g,Ae)||v.resolve()).catch(function(){}),Ae})}}):C=L.then(function($){ge(g);var V=G[g.name],H=V.forages;$.close();for(var F=0;F<H.length;F++){var Y=H[F];Y._dbInfo.db=null}var he=new v(function(Ve,Ae){var ut=h.deleteDatabase(g.name);ut.onerror=function(){var Ge=ut.result;Ge&&Ge.close(),Ae(ut.error)},ut.onblocked=function(){console.warn('dropInstance blocked for database "'+g.name+'" until all open connections are closed')},ut.onsuccess=function(){var Ge=ut.result;Ge&&Ge.close(),Ve(Ge)}});return he.then(function(Ve){V.db=Ve;for(var Ae=0;Ae<H.length;Ae++){var ut=H[Ae];je(ut._dbInfo)}}).catch(function(Ve){throw(De(g,Ve)||v.resolve()).catch(function(){}),Ve})})}return _(C,S),C}var l={_driver:"asyncStorage",_initStorage:Fn,_support:y(),iterate:Qn,getItem:rn,setItem:Vi,removeItem:Hn,clear:kn,length:vt,key:jr,keys:Gi,dropInstance:a};function f(){return typeof openDatabase=="function"}var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",be=W.length,me="arbf",ye="blob",$e="si08",q="ui08",ae="uic8",Z="si16",Te="si32",Dt="ur16",Nt="ui32",Ie="fl32",ne="fl64",Ft=be+me.length,Wi=Object.prototype.toString;function ls(g){var S=g.length*.75,I=g.length,D,C=0,O,L,$,V;g[g.length-1]==="="&&(S--,g[g.length-2]==="="&&S--);var H=new ArrayBuffer(S),F=new Uint8Array(H);for(D=0;D<I;D+=4)O=T.indexOf(g[D]),L=T.indexOf(g[D+1]),$=T.indexOf(g[D+2]),V=T.indexOf(g[D+3]),F[C++]=O<<2|L>>4,F[C++]=(L&15)<<4|$>>2,F[C++]=($&3)<<6|V&63;return H}function Qo(g){var S=new Uint8Array(g),I="",D;for(D=0;D<S.length;D+=3)I+=T[S[D]>>2],I+=T[(S[D]&3)<<4|S[D+1]>>4],I+=T[(S[D+1]&15)<<2|S[D+2]>>6],I+=T[S[D+2]&63];return S.length%3===2?I=I.substring(0,I.length-1)+"=":S.length%3===1&&(I=I.substring(0,I.length-2)+"=="),I}function Kh(g,S){var I="";if(g&&(I=Wi.call(g)),g&&(I==="[object ArrayBuffer]"||g.buffer&&Wi.call(g.buffer)==="[object ArrayBuffer]")){var D,C=W;g instanceof ArrayBuffer?(D=g,C+=me):(D=g.buffer,I==="[object Int8Array]"?C+=$e:I==="[object Uint8Array]"?C+=q:I==="[object Uint8ClampedArray]"?C+=ae:I==="[object Int16Array]"?C+=Z:I==="[object Uint16Array]"?C+=Dt:I==="[object Int32Array]"?C+=Te:I==="[object Uint32Array]"?C+=Nt:I==="[object Float32Array]"?C+=Ie:I==="[object Float64Array]"?C+=ne:S(new Error("Failed to get type for BinaryArray"))),S(C+Qo(D))}else if(I==="[object Blob]"){var O=new FileReader;O.onload=function(){var L=A+g.type+"~"+Qo(this.result);S(W+ye+L)},O.readAsArrayBuffer(g)}else try{S(JSON.stringify(g))}catch(L){console.error("Couldn't convert value into a JSON string: ",g),S(null,L)}}function Yh(g){if(g.substring(0,be)!==W)return JSON.parse(g);var S=g.substring(Ft),I=g.substring(be,Ft),D;if(I===ye&&M.test(S)){var C=S.match(M);D=C[1],S=S.substring(C[0].length)}var O=ls(S);switch(I){case me:return O;case ye:return E([O],{type:D});case $e:return new Int8Array(O);case q:return new Uint8Array(O);case ae:return new Uint8ClampedArray(O);case Z:return new Int16Array(O);case Dt:return new Uint16Array(O);case Te:return new Int32Array(O);case Nt:return new Uint32Array(O);case Ie:return new Float32Array(O);case ne:return new Float64Array(O);default:throw new Error("Unkown type: "+I)}}var Sa={serialize:Kh,deserialize:Yh,stringToBuffer:ls,bufferToString:Qo};function Qu(g,S,I,D){g.executeSql("CREATE TABLE IF NOT EXISTS "+S.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],I,D)}function zh(g){var S=this,I={db:null};if(g)for(var D in g)I[D]=typeof g[D]!="string"?g[D].toString():g[D];var C=new v(function(O,L){try{I.db=openDatabase(I.name,String(I.version),I.description,I.size)}catch($){return L($)}I.db.transaction(function($){Qu($,I,function(){S._dbInfo=I,O()},function(V,H){L(H)})},L)});return I.serializer=Sa,C}function $n(g,S,I,D,C,O){g.executeSql(I,D,C,function(L,$){$.code===$.SYNTAX_ERR?L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[S.storeName],function(V,H){H.rows.length?O(V,$):Qu(V,S,function(){V.executeSql(I,D,C,O)},O)},O):O(L,$)},O)}function Xh(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"SELECT * FROM "+L.storeName+" WHERE key = ? LIMIT 1",[g],function(V,H){var F=H.rows.length?H.rows.item(0).value:null;F&&(F=L.serializer.deserialize(F)),C(F)},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function Jh(g,S){var I=this,D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"SELECT * FROM "+L.storeName,[],function(V,H){for(var F=H.rows,Y=F.length,he=0;he<Y;he++){var Ve=F.item(he),Ae=Ve.value;if(Ae&&(Ae=L.serializer.deserialize(Ae)),Ae=g(Ae,Ve.key,he+1),Ae!==void 0){C(Ae);return}}C()},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function Zu(g,S,I,D){var C=this;g=P(g);var O=new v(function(L,$){C.ready().then(function(){S===void 0&&(S=null);var V=S,H=C._dbInfo;H.serializer.serialize(S,function(F,Y){Y?$(Y):H.db.transaction(function(he){$n(he,H,"INSERT OR REPLACE INTO "+H.storeName+" (key, value) VALUES (?, ?)",[g,F],function(){L(V)},function(Ve,Ae){$(Ae)})},function(he){if(he.code===he.QUOTA_ERR){if(D>0){L(Zu.apply(C,[g,V,I,D-1]));return}$(he)}})})}).catch($)});return _(O,I),O}function Qh(g,S,I){return Zu.apply(this,[g,S,I,1])}function Zh(g,S){var I=this;g=P(g);var D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"DELETE FROM "+L.storeName+" WHERE key = ?",[g],function(){C()},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function tp(g){var S=this,I=new v(function(D,C){S.ready().then(function(){var O=S._dbInfo;O.db.transaction(function(L){$n(L,O,"DELETE FROM "+O.storeName,[],function(){D()},function($,V){C(V)})})}).catch(C)});return _(I,g),I}function rp(g){var S=this,I=new v(function(D,C){S.ready().then(function(){var O=S._dbInfo;O.db.transaction(function(L){$n(L,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function($,V){var H=V.rows.item(0).c;D(H)},function($,V){C(V)})})}).catch(C)});return _(I,g),I}function np(g,S){var I=this,D=new v(function(C,O){I.ready().then(function(){var L=I._dbInfo;L.db.transaction(function($){$n($,L,"SELECT key FROM "+L.storeName+" WHERE id = ? LIMIT 1",[g+1],function(V,H){var F=H.rows.length?H.rows.item(0).key:null;C(F)},function(V,H){O(H)})})}).catch(O)});return _(D,S),D}function ip(g){var S=this,I=new v(function(D,C){S.ready().then(function(){var O=S._dbInfo;O.db.transaction(function(L){$n(L,O,"SELECT key FROM "+O.storeName,[],function($,V){for(var H=[],F=0;F<V.rows.length;F++)H.push(V.rows.item(F).key);D(H)},function($,V){C(V)})})}).catch(C)});return _(I,g),I}function sp(g){return new v(function(S,I){g.transaction(function(D){D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(C,O){for(var L=[],$=0;$<O.rows.length;$++)L.push(O.rows.item($).name);S({db:g,storeNames:L})},function(C,O){I(O)})},function(D){I(D)})})}function op(g,S){S=B.apply(this,arguments);var I=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||I.name,g.storeName=g.storeName||I.storeName);var D=this,C;return g.name?C=new v(function(O){var L;g.name===I.name?L=D._dbInfo.db:L=openDatabase(g.name,"","",0),g.storeName?O({db:L,storeNames:[g.storeName]}):O(sp(L))}).then(function(O){return new v(function(L,$){O.db.transaction(function(V){function H(Ve){return new v(function(Ae,ut){V.executeSql("DROP TABLE IF EXISTS "+Ve,[],function(){Ae()},function(Ge,Ht){ut(Ht)})})}for(var F=[],Y=0,he=O.storeNames.length;Y<he;Y++)F.push(H(O.storeNames[Y]));v.all(F).then(function(){L()}).catch(function(Ve){$(Ve)})},function(V){$(V)})})}):C=v.reject("Invalid arguments"),_(C,S),C}var hp={_driver:"webSQLStorage",_initStorage:zh,_support:f(),iterate:Jh,getItem:Xh,setItem:Qh,removeItem:Zh,clear:tp,length:rp,key:np,keys:ip,dropInstance:op};function pp(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function wh(g,S){var I=g.name+"/";return g.storeName!==S.storeName&&(I+=g.storeName+"/"),I}function dp(){var g="_localforage_support_test";try{return localStorage.setItem(g,!0),localStorage.removeItem(g),!1}catch{return!0}}function fp(){return!dp()||localStorage.length>0}function gp(g){var S=this,I={};if(g)for(var D in g)I[D]=g[D];return I.keyPrefix=wh(g,S._defaultConfig),fp()?(S._dbInfo=I,I.serializer=Sa,v.resolve()):v.reject()}function mp(g){var S=this,I=S.ready().then(function(){for(var D=S._dbInfo.keyPrefix,C=localStorage.length-1;C>=0;C--){var O=localStorage.key(C);O.indexOf(D)===0&&localStorage.removeItem(O)}});return _(I,g),I}function yp(g,S){var I=this;g=P(g);var D=I.ready().then(function(){var C=I._dbInfo,O=localStorage.getItem(C.keyPrefix+g);return O&&(O=C.serializer.deserialize(O)),O});return _(D,S),D}function vp(g,S){var I=this,D=I.ready().then(function(){for(var C=I._dbInfo,O=C.keyPrefix,L=O.length,$=localStorage.length,V=1,H=0;H<$;H++){var F=localStorage.key(H);if(F.indexOf(O)===0){var Y=localStorage.getItem(F);if(Y&&(Y=C.serializer.deserialize(Y)),Y=g(Y,F.substring(L),V++),Y!==void 0)return Y}}});return _(D,S),D}function wp(g,S){var I=this,D=I.ready().then(function(){var C=I._dbInfo,O;try{O=localStorage.key(g)}catch{O=null}return O&&(O=O.substring(C.keyPrefix.length)),O});return _(D,S),D}function bp(g){var S=this,I=S.ready().then(function(){for(var D=S._dbInfo,C=localStorage.length,O=[],L=0;L<C;L++){var $=localStorage.key(L);$.indexOf(D.keyPrefix)===0&&O.push($.substring(D.keyPrefix.length))}return O});return _(I,g),I}function _p(g){var S=this,I=S.keys().then(function(D){return D.length});return _(I,g),I}function Ep(g,S){var I=this;g=P(g);var D=I.ready().then(function(){var C=I._dbInfo;localStorage.removeItem(C.keyPrefix+g)});return _(D,S),D}function Sp(g,S,I){var D=this;g=P(g);var C=D.ready().then(function(){S===void 0&&(S=null);var O=S;return new v(function(L,$){var V=D._dbInfo;V.serializer.serialize(S,function(H,F){if(F)$(F);else try{localStorage.setItem(V.keyPrefix+g,H),L(O)}catch(Y){(Y.name==="QuotaExceededError"||Y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&$(Y),$(Y)}})})});return _(C,I),C}function Ip(g,S){if(S=B.apply(this,arguments),g=typeof g!="function"&&g||{},!g.name){var I=this.config();g.name=g.name||I.name,g.storeName=g.storeName||I.storeName}var D=this,C;return g.name?C=new v(function(O){g.storeName?O(wh(g,D._defaultConfig)):O(g.name+"/")}).then(function(O){for(var L=localStorage.length-1;L>=0;L--){var $=localStorage.key(L);$.indexOf(O)===0&&localStorage.removeItem($)}}):C=v.reject("Invalid arguments"),_(C,S),C}var Tp={_driver:"localStorageWrapper",_initStorage:gp,_support:pp(),iterate:vp,getItem:yp,setItem:Sp,removeItem:Ep,clear:mp,length:_p,key:wp,keys:bp,dropInstance:Ip},Cp=function(g,S){return g===S||typeof g=="number"&&typeof S=="number"&&isNaN(g)&&isNaN(S)},Np=function(g,S){for(var I=g.length,D=0;D<I;){if(Cp(g[D],S))return!0;D++}return!1},bh=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"},eo={},Eh={},Yi={INDEXEDDB:l,WEBSQL:hp,LOCALSTORAGE:Tp},xp=[Yi.INDEXEDDB._driver,Yi.WEBSQL._driver,Yi.LOCALSTORAGE._driver],zo=["dropInstance"],qa=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(zo),Dp={description:"",driver:xp.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Op(g,S){g[S]=function(){var I=arguments;return g.ready().then(function(){return g[S].apply(g,I)})}}function Ic(){for(var g=1;g<arguments.length;g++){var S=arguments[g];if(S)for(var I in S)S.hasOwnProperty(I)&&(bh(S[I])?arguments[0][I]=S[I].slice():arguments[0][I]=S[I])}return arguments[0]}var Ap=function(){function g(S){p(this,g);for(var I in Yi)if(Yi.hasOwnProperty(I)){var D=Yi[I],C=D._driver;this[I]=C,eo[C]||this.defineDriver(D)}this._defaultConfig=Ic({},Dp),this._config=Ic({},this._defaultConfig,S),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return g.prototype.config=function(S){if((typeof S>"u"?"undefined":u(S))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var I in S){if(I==="storeName"&&(S[I]=S[I].replace(/\W/g,"_")),I==="version"&&typeof S[I]!="number")return new Error("Database version must be a number.");this._config[I]=S[I]}return"driver"in S&&S.driver?this.setDriver(this._config.driver):!0}else return typeof S=="string"?this._config[S]:this._config},g.prototype.defineDriver=function(S,I,D){var C=new v(function(O,L){try{var $=S._driver,V=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!S._driver){L(V);return}for(var H=qa.concat("_initStorage"),F=0,Y=H.length;F<Y;F++){var he=H[F],Ve=!Np(zo,he);if((Ve||S[he])&&typeof S[he]!="function"){L(V);return}}var Ae=function(){for(var Ge=function(Pp){return function(){var Rp=new Error("Method "+Pp+" is not implemented by the current driver"),Sh=v.reject(Rp);return _(Sh,arguments[arguments.length-1]),Sh}},Ht=0,Tc=zo.length;Ht<Tc;Ht++){var Cc=zo[Ht];S[Cc]||(S[Cc]=Ge(Cc))}};Ae();var ut=function(Ge){eo[$]&&console.info("Redefining LocalForage driver: "+$),eo[$]=S,Eh[$]=Ge,O()};"_support"in S?S._support&&typeof S._support=="function"?S._support().then(ut,L):ut(!!S._support):ut(!0)}catch(Ge){L(Ge)}});return x(C,I,D),C},g.prototype.driver=function(){return this._driver||null},g.prototype.getDriver=function(S,I,D){var C=eo[S]?v.resolve(eo[S]):v.reject(new Error("Driver not found."));return x(C,I,D),C},g.prototype.getSerializer=function(S){var I=v.resolve(Sa);return x(I,S),I},g.prototype.ready=function(S){var I=this,D=I._driverSet.then(function(){return I._ready===null&&(I._ready=I._initDriver()),I._ready});return x(D,S,S),D},g.prototype.setDriver=function(S,I,D){var C=this;bh(S)||(S=[S]);var O=this._getSupportedDrivers(S);function L(){C._config.driver=C.driver()}function $(F){return C._extend(F),L(),C._ready=C._initStorage(C._config),C._ready}function V(F){return function(){var Y=0;function he(){for(;Y<F.length;){var Ve=F[Y];return Y++,C._dbInfo=null,C._ready=null,C.getDriver(Ve).then($).catch(he)}L();var Ae=new Error("No available storage method found.");return C._driverSet=v.reject(Ae),C._driverSet}return he()}}var H=this._driverSet!==null?this._driverSet.catch(function(){return v.resolve()}):v.resolve();return this._driverSet=H.then(function(){var F=O[0];return C._dbInfo=null,C._ready=null,C.getDriver(F).then(function(Y){C._driver=Y._driver,L(),C._wrapLibraryMethodsWithReady(),C._initDriver=V(O)})}).catch(function(){L();var F=new Error("No available storage method found.");return C._driverSet=v.reject(F),C._driverSet}),x(this._driverSet,I,D),this._driverSet},g.prototype.supports=function(S){return!!Eh[S]},g.prototype._extend=function(S){Ic(this,S)},g.prototype._getSupportedDrivers=function(S){for(var I=[],D=0,C=S.length;D<C;D++){var O=S[D];this.supports(O)&&I.push(O)}return I},g.prototype._wrapLibraryMethodsWithReady=function(){for(var S=0,I=qa.length;S<I;S++)Op(this,qa[S])},g.prototype.createInstance=function(S){return new g(S)},g}(),kp=new Ap;o.exports=kp},{3:3}]},{},[4])(4)})}),Zn=ur(e=>{"use strict";var t=e&&e.__awaiter||function(n,i,s,o){function c(u){return u instanceof s?u:new s(function(p){p(u)})}return new(s||(s=Promise))(function(u,p){function m(E){try{y(o.next(E))}catch(v){p(v)}}function h(E){try{y(o.throw(E))}catch(v){p(v)}}function y(E){E.done?u(E.value):c(E.value).then(m,h)}y((o=o.apply(n,i||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.JSUtils=void 0;var r=class{static isObject(n){return typeof n=="object"&&!Array.isArray(n)&&n!==null}static parseToAny(n){try{return JSON.parse(n.toString())}catch{}return n.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(n.toString()):n}static sleep(n){return t(this,void 0,void 0,function*(){return new Promise(i=>setTimeout(i,n))})}static hasKeys(n){return n?Object.keys(n).length>=1:!1}static convertObjectToArray(n,i){return i.reduce((s,o)=>(n.hasOwnProperty(o)&&n[o]!=null&&s.push({[o]:n[o]}),s),[])}static removeNullUndefinedKeys(n){return Object.keys(n).reduce((i,s)=>(n[s]!==null&&n[s]!==void 0&&(i[s]=n[s]),i),{})}static stringify(n){return JSON.stringify(n,function(i,s){return s===void 0?null:s})}};e.JSUtils=r,r.ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)}),Fu=ur(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URLBuilder=void 0;var t=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}();e.URLBuilder=t}),rh=ur((e,t)=>{"use strict";(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self,r.fetchRetry=n())})(e,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,p){var m=o.retries,h=o.retryDelay,y=o.retryOn;if(p&&p.retries!==void 0)if(n(p.retries))m=p.retries;else throw new i("retries must be a positive integer");if(p&&p.retryDelay!==void 0)if(n(p.retryDelay)||typeof p.retryDelay=="function")h=p.retryDelay;else throw new i("retryDelay must be a positive integer or a function returning a positive integer");if(p&&p.retryOn)if(Array.isArray(p.retryOn)||typeof p.retryOn=="function")y=p.retryOn;else throw new i("retryOn property expects an array or function");return new Promise(function(E,v){var _=function(P){var B=typeof Request<"u"&&u instanceof Request?u.clone():u;s(B,p).then(function(U){if(Array.isArray(y)&&y.indexOf(U.status)===-1)E(U);else if(typeof y=="function")try{return Promise.resolve(y(P,null,U)).then(function(R){R?x(P,null,U):E(U)}).catch(v)}catch(R){v(R)}else P<m?x(P,null,U):E(U)}).catch(function(U){if(typeof y=="function")try{Promise.resolve(y(P,U,null)).then(function(R){R?x(P,U,null):v(U)}).catch(function(R){v(R)})}catch(R){v(R)}else P<m?x(P,U,null):v(U)})};function x(P,B,U){var R=typeof h=="function"?h(P,B,U):h;setTimeout(function(){_(++P)},R)}_(0)})}};function n(s){return Number.isInteger(s)&&s>=0}function i(s){this.name="ArgumentError",this.message=s}return r})}),up="9.3.34",N=class xc{static SDK_VERSION=up;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 CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";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 CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let t=xc.SDK_VERSION.split(".").map(r=>r.padStart(2,"0")).join("");xc.SDK_VERSION_CODE=parseInt(t,10)}},tr={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",styleURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${N.SDK_VERSION}/dist/widget-sdk.min.css`},Ot=Ce(nn()),b=class{static log(...e){Ot.default.info(...e)}static debug(...e){Ot.default.debug(...e)}static error(...e){Ot.default.error(...e)}static warn(...e){Ot.default.warn(...e)}static info(...e){Ot.default.info(...e)}static trace(...e){Ot.default.trace(...e)}static configure(e=N.LOG_PREFIX){Ot.default.useDefaults({formatter:function(r){r.unshift(`${e} (v${N.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Ot.default.setLevel(Ot.default[localStorage.cooeeLogLevel]):Ot.default.setLevel(tr.debug?Ot.default.TRACE:Ot.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
font-size: 14px;
|
|
4
4
|
background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
|
|
@@ -67,4 +67,4 @@ mutation cartDiscountCodesUpdate($cartId: ID!, $discountCodes: [String!]) {
|
|
|
67
67
|
<span class="${n}"
|
|
68
68
|
style="background-color: ${t.pagination.color?.rgba};">
|
|
69
69
|
</span>
|
|
70
|
-
`},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},autoplay:t.autoplay?.enabled?{delay:t.autoplay?.delay,disableOnInteraction:!1}:!1,autoHeight:!0});return e.style.setProperty("--swiper-navigation-size",`${t.navigation.size}px`),r}function uc(e,t,r){let n={color:e.navigation.color?.rgba};return e.pagination.enabled&&(n.transform="translateY(-25%)"),k("div",{class:"swiper-container",ref:t,children:[k("div",{class:"swiper-wrapper",children:r()}),e.navigation.enabled&&k("div",{class:"swiper-button-next",style:n,children:k("span",{})}),e.navigation.enabled&&k("div",{class:"swiper-button-prev",style:n,children:k("span",{})}),e.pagination.enabled&&k("div",{className:"swiper-pagination",style:{bottom:0,top:"unset",position:"relative",color:e.pagination.color?.rgba}})]})}var $o=class extends xe{swiperRef=null;swiperInstance=null;configuration;gap;constructor(e,t){super(e,t),this.configuration=this.renderer.isMobile()?this.props.element.conf.sm:this.props.element.conf.lg,this.gap=(this.configuration.gap??15)+"px"}componentDidMount(){this.props.element.conf[this.deviceTypeKey].disp===2&&cc().then(()=>{this.swiperInstance=lc(this.swiperRef,this.props.element.conf[this.deviceTypeKey])})}componentWillUnmount(){this.swiperInstance&&this.swiperInstance.destroy()}render(){let e=this.props.triggerContext.triggerData.items;e.splice(this.configuration.maxItems??10);let t;if(this.configuration.disp===2){let r=i=>{this.swiperRef=i},n=()=>e?.map(i=>k("div",{class:"swiper-slide",children:this.getProductFragment(i)}));t=k("div",{style:ee(w({},this.getCompiledStyles()),{display:"block"}),class:"lc-product-swiper-list",children:uc(this.configuration,r,n)})}else t=k("div",{style:this.getCompiledStyles(),class:"lc-product-list",children:e?.map((r,n)=>this.getProductFragment(r,n!==e.length-1))});return t}getComponentStyles(){let e=[0,2].includes(this.configuration.disp),t={display:e?"flex":"grid",justifyContent:"safe "+(this.mediaStyle.flex?.jc??"center"),gap:this.gap,flexDirection:this.mediaStyle.flex?.dir??"row"};if(t.flexDirection==="row"){if(e)t.maxWidth="100%",t.overflowY="auto";else if(this.configuration.disp===1){let r=this.props.triggerContext.triggerData,n=r.items.length,i;r.isBundle()?i=this.props.element.prod.symbol?.hide!==!0?n*2-1:n:i=this.props.element.conf[this.deviceTypeKey].maxInRow,t.gridTemplateColumns=`repeat(${i}, auto)`}}return t}getProductFragment(e,t=!1){return k(fr,{children:[k(Hr,{element:this.props.element.prod,item:e,triggerContext:this.props.triggerContext}),this.props.triggerContext.triggerData.isBundle()&&t&&this.props.element.prod.symbol&&!this.props.element.prod.symbol.hide&&k("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:k(xt,{element:this.props.element.prod.symbol,triggerContext:this.props.triggerContext})})]},e.mID)}},jo=class extends xe{swiperRef=null;swiperInstance=null;constructor(e,t){super(e,t)}componentDidMount(){cc().then(()=>{this.swiperInstance=lc(this.swiperRef,this.props.element.conf)})}componentWillUnmount(){this.swiperInstance&&this.swiperInstance.destroy()}render(){let e=this.props.element,t=n=>{this.swiperRef=n},r=()=>e.values?.map(n=>k("div",{class:"swiper-slide",onClick:()=>this.onClick({clickAction:this.getClickAction(n)}),children:this.renderElement(n)}));return uc(e.conf,t,r)}getComponentStyles(){return{}}renderElement(e){let t=this.valueAddedSlide(this.props.element.slide,e);switch(t?.t){case 1:return k(Mr,{element:t,triggerContext:this.props.triggerContext});case 4:return k(Fr,{elements:t.elems,element:t,triggerContext:this.props.triggerContext});default:b.warn("Unknown slide type for carousal")}}valueAddedSlide(e,t){let r=JSON.stringify(e),n=Et.render(r,{form:t});return kt.getParsedElement(JSON.parse(n))}getClickAction(e){let t=w({},this.props.element.clc),r=JSON.stringify(t),n=Et.render(r,{form:e});return JSON.parse(n)}},tn=class extends xe{constructor(e,t){super(e,t),this.setState(()=>({decoration:"unset"})),at(()=>{this.setState(()=>({showButton:!this.props.triggerContext.triggerData.isBundle()||!!this.props.triggerContext.selectedItems.length}))})}renderElement(e){if(!e.hide){if(e.t===4){let t=e;return k(Fr,{element:t,triggerContext:this.props.triggerContext,elements:t.elems})}if(e.t===61)return k(Bo,{element:e,triggerContext:this.props.triggerContext});if(e.t===3)return this.state.showButton?k(Un,{element:e,triggerContext:this.props.triggerContext}):void 0;if(e.t===2)return k(xt,{element:e,triggerContext:this.props.triggerContext});if(e.t===1)return k(Mr,{element:e,triggerContext:this.props.triggerContext});if(e.t===11)return k($o,{element:e,triggerContext:this.props.triggerContext});if(e.t===12)return k(Hr,{element:e,item:this.props.triggerContext.triggerData.items[0],triggerContext:this.props.triggerContext});if(e.t===62)return k(jo,{element:e,triggerContext:this.props.triggerContext})}}render(){return this.props.elements.map(e=>this.renderElement(e))}getComponentStyles(){return{}}},Wo=class extends xe{clickAction;isClickable;constructor(e,t){super(e,t),this.clickAction=this.props.element.clc,this.isClickable=this.clickAction?.at===4&&this.clickAction.gu?.u}componentDidMount(){at(()=>{let e=this.props.triggerContext.triggerData,t=this.props.triggerContext.selectedItems;e.calculateDiscountData(t,this.props.triggerContext.shouldGiveFBTDiscount)})}render(){return k(fr,{children:[k("div",{style:this.getCompiledStyles(),class:"lc-container",onClick:()=>{this.onClick({clickAction:this.clickAction})},children:k(tn,{elements:this.props.elements,element:this.props.element,triggerContext:this.props.triggerContext})}),this.props.triggerContext.triggerData.id==="preview"&&k("div",{class:"letscooee-preview-badge",children:["#",this.props.triggerContext.triggerData.shortID," preview"]})]})}getComponentStyles(){let e={position:"relative",overflow:"hidden",display:"block"};return this.isClickable&&(e.cursor="pointer"),e}async onClick(e){if(this.isClickable)return super.onClick(e)}},At=class as{constructor(t){this.engagementTrigger=t,this.triggerContext=new Oi(new Date,this.engagementTrigger)}static renderedEngagements=[];static engagementIDsWithTrackedDisplay=new Set;static DEBOUNCE_TIME=1e3;rootContainer;widgetElement;widget;triggerContext;observers=[];runtimeData=le.get();widgetAPIService=pe.get(cr);safeHTTPService=pe.get(fe);scrollSubscription;variation;isExclusionWithBVariation;renderSilently(){this.render().catch(t=>Be.getInstance().captureException(t,w({},this.engagementTrigger.sentryContext())))}destroy(){b.log(`${this.engagementTrigger} will be destroyed`),this.scrollSubscription?.unsubscribe(),this.observers.forEach(t=>{t?.disconnect&&t.disconnect()}),this.rootContainer?.remove(),as.engagementIDsWithTrackedDisplay.delete(this.engagementTrigger.shortID)}async render(){if(this.engagementTrigger.hasMultiplePlacement){let t=await this.getVariation();this.handleVariationResponse(t)}if(this.rootContainer=await this.getWidgetContainer(!0),!this.rootContainer){b.warn(`${this.engagementTrigger} no section found to render the widget`);return}this.widget=this.engagementTrigger.widget,await this.getVariationIfRequired(),!this.shouldStopRendering()&&(await this.startRendering(),this.attachScroll(),await this.checkAndSendEvent(),this.triggerContext.renderer=this)}isSameTrigger(t){return this.engagementTrigger.shortID===t.shortID}update(t){dh.default.log(`${this.engagementTrigger} will be updated`),this.updateItems(t.items,this.engagementTrigger.items)}shouldStopRendering(){return!this.widget&&!this.isExclusionWithBVariation}async getVariationIfRequired(){if(this.engagementTrigger.isSingleContent()||this.engagementTrigger.widget){b.log(`${this.engagementTrigger} already has required data to render widget`);return}let t=await this.observeWidgetContainerInViewport();this.handleVariationResponse(t)}handleVariationResponse(t){t&&(b.log(`${this.engagementTrigger} visitor has been assigned to variation ${t.variation}`),t.items?.length&&(this.engagementTrigger.items=t.items.map(r=>new Rt(r)),this.engagementTrigger.nonMutableItems=t.items.map(r=>new Rt(r))),t.bundleFrom&&(this.engagementTrigger.bundleFrom=new Rt(t.bundleFrom)),t.discount&&(this.engagementTrigger.discount=t.discount),t.placement&&(this.triggerContext.triggerData.placement=t.placement),t.props&&mh.JSUtils.hasKeys(t.props)&&(this.engagementTrigger.props=w(w({},this.engagementTrigger.props),t.props)),this.triggerContext.triggerData.widget=this.widget=new Ei(t.widget),this.triggerContext.triggerData.contentID=t.contentID,this.triggerContext.triggerData.variation=this.variation=t.variation,this.triggerContext.triggerData.placement=t.placement,this.isExclusionWithBVariation=this.engagementTrigger.isExclusionTesting()&&this.variation==="b",this.isExclusionWithBVariation&&(this.rootContainer.style.height="0.5px"))}addToRendered(){as.renderedEngagements.push(this)}async getVariation(){b.log(`${this.engagementTrigger} get variation`);let t={engagementID:this.engagementTrigger.engagementID,isPreview:this.engagementTrigger.id==="preview"};try{return await this.widgetAPIService.getVariation(t)}catch(r){b.error(`${this.engagementTrigger} unable to get the variation`,r);return}}async observeWidgetContainerInViewport(){if(!this.rootContainer){b.warn(`${this.engagementTrigger} No root container found to watch for viewport`);return}let t=window.innerHeight*.3,r={root:null,rootMargin:`-${t}px 0px ${t}px 0px`,threshold:0};return await this.isInViewport()?this.getVariation():new Promise(n=>{let i=new IntersectionObserver((s,o)=>{s.forEach(async c=>{if(c.isIntersecting){b.log(`${this.engagementTrigger} root container is near the viewport. Fetching variation`);let u=await this.getVariation();n(u),o.unobserve(this.rootContainer)}})},r);i.observe(this.rootContainer),this.observers.push(i)})}attachScroll(){this.scrollSubscription=On(window,"scroll").pipe(ar(as.DEBOUNCE_TIME)).subscribe(()=>{this.checkAndSendEvent()})}async checkAndSendEvent(){let t=this.engagementTrigger.shortID;if(as.engagementIDsWithTrackedDisplay.has(t)||!await this.isInViewport())return;let r={};this.triggerContext.triggerData.items?.length&&(r.promotedMIDs=this.engagementTrigger.items?.map(s=>s.mID));let n=this.isExclusionWithBVariation?N.EVENT_CAMPAIGN_HOLDOUT:N.EVENT_TRIGGER_DISPLAYED,i=new _e(n,r,this.engagementTrigger);i.name===N.EVENT_CAMPAIGN_HOLDOUT&&(i.trigger.holdout=!0),this.safeHTTPService.sendEvent(i),as.engagementIDsWithTrackedDisplay.add(t),this.scrollSubscription.unsubscribe()}generateParentElementID(){return`letscooee-${this.engagementTrigger.shortID}`}async isInViewport(){let t=(await this.getWidgetContainer())?.getBoundingClientRect();if(!t)return!1;let r=window.innerHeight||document.documentElement.clientHeight,n=(Math.min(t.bottom,r)-Math.max(t.top,0))*t.width,i=t.width*t.height,s=n/i*100;return this.engagementTrigger.isAnySplit()?s>0:s>=30}async getWidgetContainer(t){if(this.rootContainer?.isConnected)return this.rootContainer;let r=await this.createParentElementWithPlacement(t);if(r)return r;let n=`.letscooee[data-engagement-id="${this.triggerContext.triggerData.shortID}"]`;return document.querySelector(n)}async createParentElementWithPlacement(t){let r=this.engagementTrigger.placement;if(!r?.selector)return b.warn(`${this.engagementTrigger} does not have a selector`),null;let n=r.selector,i;if(n.includes(N.SHADOW_SPLITTER)){let u=n.split(N.SHADOW_SPLITTER);i=(await te.retrySelector(u[0].trim()))?.shadowRoot,n=u[1].trim(),i&&dt.injectStylesheet(tr.styleURL,i);let p=Le.get().website.commonCSS;i&&p&&dt.injectRawCSS(p,i)}b.debug(`${this.engagementTrigger} attempt to render ${r.position}-${n}`);let s=await te.retrySelector(n,10,i??document);if(!s)return b.warn(`${this.engagementTrigger} no placement found with ${n}`),null;let o=this.generateParentElementID(),c=this.getParentElement(o);if(!t)return c;switch(r.position){case Vo.EngagementPlacementPosition.BEFORE:{s.parentElement?.insertBefore(c,s);break}case Vo.EngagementPlacementPosition.INSIDE_FIRST:{s.insertBefore(c,s.firstChild);break}case Vo.EngagementPlacementPosition.INSIDE_LAST:{s.appendChild(c);break}case Vo.EngagementPlacementPosition.AFTER:default:s.parentElement?.insertBefore(c,s.nextSibling)}return c}async startRendering(){let t;try{t=await Ui.refreshItems(this.engagementTrigger)}catch(r){b.error(`${this.engagementTrigger} error refreshing the items`,r);return}if(!t?.length&&this.engagementTrigger.isProductPromoted()){b.warn(`${this.engagementTrigger} is of ${this.engagementTrigger.objective} but no product found`);return}this.engagementTrigger.items=t,this.renderContainer()}getParentElement(t,r=document){let n=r.getElementById(t);if(n)return n;let i=this.engagementTrigger.shortID;return n=document.createElement("div"),n.id=t,n.className=`letscooee letscooee-engagement engagement-${i}`,n.dataset.engagementId=i,this.engagementTrigger.id==="preview"&&(n.className+=" letscooee-preview"),n.style.display="block",n.style.minHeight="0.5px",n.style.minWidth="0.5px",n}renderContainer(){if(!this.widget)return;let t=this.rootContainer;if(this.triggerContext.triggerData.hasSwiperElement()){let r=this.rootContainer?.shadowRoot||this.rootContainer?.attachShadow({mode:"open"}),n=Le.get().website.commonCSS;n&&dt.injectRawCSS(n,r),dt.injectStylesheet(tr.styleURL,r),dt.injectStylesheet("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css",r),t=r}ns(Ki(Wo,{element:this.widget.cont,triggerContext:this.triggerContext,elements:this.widget.elems}),t),this.addToRendered()}updateItems(t,r){let n=this.getItemDiff(t,r),i=this.getItemDiff(r,t);r.push(...n);for(let s of i)fh.ArrayUtils.remove(r,s)}getItemDiff(t,r){return t.filter(n=>!r.some(i=>i.selectedOrFirstVariant.value.mID===n.selectedOrFirstVariant.value.mID))}},Rr=class Vh extends At{static renderedEngagements=[];constructor(t){super(t)}addToRendered(){Vh.renderedEngagements.push(this)}observeWidgetContainerInViewport(){return this.getVariation()}generateParentElementID(){let t=super.generateParentElementID();return this.engagementTrigger.isSubscriptionUpsell()&&(t+=`-${this.engagementTrigger.items[0].selectedOrFirstVariant.value.mID}`),t}async checkAndSendEvent(){if(!ze.get().isOpen()&&this.runtimeData.pageName!=="cart"){b.log("Do not send display event as neither the cart drawer nor the cart page is open.");return}return super.checkAndSendEvent()}},pc=class Gh{constructor(t,r){this.engagementTrigger=t,this.element=r,this.cartItems=de.getCurrent().items}cartItems;static renderCartUpsell(t){let r=t.placement;if(!r?.selector){b.warn(`No placement available for ${t.objective}`,t.shortID);return}let n=Array.from(document.querySelectorAll(r.selector));if(!n?.length){b.warn(`No placement found for ${t.objective}`,t.shortID);return}for(let i of n)new Gh(t,i).render()}render(){let t=this.findCartItemFromHTMLElement();if(!t||this.engagementTrigger.skipSubscribedItems&&t.selling_plan_allocation)return;let r=this.engagementTrigger.items.find(m=>m.mID===t.product_id.toString());if(!r)return;let n=r.vars.find(m=>m.mID===t.id.toString());if(!n)return;let i=new Sr(n),s=t.selling_plan_allocation?.selling_plan;if(s)for(let m of i.sellingPlans??[])m.mID===s.id.toString()&&(m.isSelected=!0,i.changeSellingPlan(m));let o=new Rt(r);o.vars=[i],o.selectedOrFirstVariant.value=i;let c=`lc-cart-item-${this.engagementTrigger.shortID}-${r.mID}`;this.element.classList.add(c);let u=new Mt(this.engagementTrigger);u.placement.selector=`.${c}`,u.items=[o];let p=new Rr(u);p.renderSilently(),this.watchForCartItemDeletion(p,c)}watchForCartItemDeletion(t,r){let n=new MutationObserver(i=>{i.forEach(s=>{s.removedNodes.forEach(o=>{o===this.element&&(b.debug(`${r} has been removed`),t.destroy(),n.disconnect())})})});n.observe(this.element.parentElement,{childList:!0,subtree:!0})}findCartItemFromHTMLElement(){let t=this.element.innerHTML;return this.cartItems.find(r=>{if(!(t.includes(r.url)||t.includes(r.variant_id))&&(!t.includes(r.product_title)||r.variant_title&&!t.includes(r.variant_title)))return!1;let n=r.selling_plan_allocation?.selling_plan?.name;return!(n&&!t.includes(n))})}},hh=Ce(Vr()),fc=class extends Rr{ctaListener=new en;constructor(e){super(e),Dr.get().subscriber(N.CART_UPDATE_BROADCAST).pipe(qu(null)).subscribe(this.checkMilestone.bind(this))}update(e){super.update(e),this.widgetElement.update()}shouldStopRendering(){return!1}renderContainer(){if(this.widgetElement?.isConnected){this.addToRendered();return}let e=this.widgetElement=document.createElement("cooee-progressbar");e.className="cooee-root",e.cart=de.getCurrent(),e.engagementTrigger=this.engagementTrigger,e.setAttribute("engagement",this.engagementTrigger.shortID),this.rootContainer.appendChild(e),this.addToRendered()}async checkMilestone(){let e=await de.getCurrent().getNormalisedCart(),t=[...this.engagementTrigger.progressBarConfig.milestones].reverse().find(r=>r.minValue<e.amount);if(!t){b.log("No milestone achieved yet");return}if(b.log("Current milestone",t),t.rewardType===hh.MilestoneRewardType.FREE_AUTO_GIFT){let r=t.items[0];if(e.items.find(n=>n.vID===r.vID||n.mID===r.mID)){b.log(`Item(vID:${r.vID}) already present in the cart. Updating item's properties`),await this.ctaListener.performUpdate(r,{properties:this.engagementTrigger.getPrivateAttributesForLineItem()});return}else{let n=await this.ctaListener.performAddToCart([r],this.engagementTrigger);ze.get().refreshUI(n,!1),await this.removeOtherFreeGifts(r)}}}async removeOtherFreeGifts(e){let t=(await de.getCurrent().getNormalisedCart()).items.filter(r=>r.vID!==e?.vID&&r.properties[N.CAMPAIGN_ATTRIBUTE]===this.engagementTrigger.shortID);if(t.length)for(let r of t)await this.ctaListener.performUpdate(r,{quantity:0})}},gh=new br({t:12,style:{lg:{spc:{p:5,pl:5,pr:5,pt:5,pb:5},size:{w:"100%",h:"auto"},br:{r:4,w:0,s:1,c:{h:"#94a3b8",a:100}}},sm:{spc:{p:5,pl:5,pr:5,pt:5,pb:5},size:{w:"240px",h:"auto"},br:{r:0,w:0,s:1,c:{h:"#94a3b8",a:100}}}},elems:[{t:4,style:{lg:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"center",ai:"center"}},sm:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"center",ai:"center"}}},clc:{},elems:[{t:13,style:{lg:{spc:{mb:5},size:{w:"70px",h:"auto"},lout:{of:"cover"}},sm:{spc:{mb:5},size:{w:"80px",h:"auto"},lout:{of:"cover"}}},src:"{{{ product.image_url }}}"},{t:4,style:{lg:{spc:{mb:10},lout:{of:"cover",disp:"flex"},flex:{gap:5,dir:"column",wrap:"nowrap",jc:"start",ai:"start"}},sm:{spc:{mb:10},lout:{of:"cover",disp:"flex"},flex:{gap:7,dir:"column",wrap:"nowrap",jc:"start",ai:"start"}}},clc:{},elems:[{t:14,style:{lg:{spc:{},size:{w:"auto",h:"auto"},typo:{italic:!1,bold:!1,lh:1.2,fs:13,tc:{h:"#313131",a:100},ta:0,fw:600,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{},size:{w:"auto",h:"auto"},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#575757",a:100},ta:0,fw:500,ls:0,fam:{name:"Arial",g:!0}}}},text:"{{ product.name }}"},{t:4,style:{lg:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"start",ai:"start"}},sm:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"start",ai:"center"}}},clc:{},elems:[{t:2,style:{lg:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,td:"line-through",fs:14,tc:{h:"#64748b",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,td:"line-through",fs:12,tc:{h:"#64748b",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}}},text:"{{ product.compare_price }}"},{t:2,style:{lg:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,fs:14,tc:{h:"#000000",a:100},ta:1,fw:500,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,fs:13,tc:{h:"#000000",a:100},ta:1,fw:500,ls:0,fam:{name:"Arial",g:!0}}}},text:"{{ product.price }}"},{t:2,style:{lg:{spc:{p:0,pl:0,pr:0,pt:0,pb:0,m:0,ml:0,mr:10,mt:0,mb:0},typo:{italic:!1,bold:!1,lh:1.2,fs:18,tc:{h:"#64748b",a:100},ta:1,fw:600,ls:0}},sm:{spc:{p:0,m:0,mr:10},typo:{italic:!1,bold:!1,lh:1.2,fs:18,tc:{h:"#64748b",a:100},ta:1,fw:600,ls:0}}},hide:!0,text:"Save {{ product.discount_price }}",when:{lhs:"{{ product.discount_price }}",op:"gt",rhs:0}},{t:2,style:{lg:{spc:{p:0,pl:0,pr:0,pt:0,pb:0,m:0,ml:0,mr:10,mt:0,mb:0},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#0d8d00",a:100},ta:1,fw:400,ls:0,fam:{name:"DINNextRoundedLTPro-Medium"}}},sm:{spc:{p:0,m:0,mr:10},typo:{italic:!1,bold:!1,lh:1.2,fs:18,tc:{h:"#64748b",a:100},ta:1,fw:600,ls:0}}},hide:!0,text:"({{ product.discount_percent }}% off)",when:{lhs:"{{ product.discount_percent }}",op:"gt",rhs:0}}]},{t:4,style:{lg:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:5,dir:"row",wrap:"nowrap",jc:"start",ai:"center"}},sm:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:5,dir:"row",wrap:"nowrap",jc:"start",ai:"center"}}},clc:{},elems:[{t:3,style:{lg:{spc:{p:7,pl:7,pr:7,pt:7,pb:7},size:{w:"100%",h:"auto"},bg:{s:{h:"#000000",a:100}},br:{r:0,w:0,s:1,c:{a:100}},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#ffffff",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{p:7,pl:7,pr:7,pt:8,pb:8},size:{w:"70%",h:"auto"},bg:{s:{h:"#000000",a:100}},br:{r:0,w:0,s:1,c:{a:100}},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#ffffff",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}}},text:"Add",clc:{at:102},allowedTypes:[102]}]}]}]}]}),yh=new Xe({t:2,style:{lg:{spc:{mb:15},typo:{italic:!1,bold:!1,lh:1.2,fs:16,tc:{h:"#333333",a:100},ta:1,fw:700,ls:.5,fam:{name:"Arial",g:!0}}},sm:{spc:{mb:15},typo:{italic:!1,bold:!1,lh:1.2,fs:16,tc:{h:"#333333",a:100},ta:1,fw:700,ls:.5,fam:{name:"Arial",g:!0}}}},text:"WATCH & SHOP - NEW LAUNCHES"}),Go=class extends xe{render(){return k("div",{style:{marginTop:30},class:"lc-container",children:[k(xt,{element:yh,triggerContext:this.props.triggerContext}),k("div",{style:this.getComponentStyles(),children:this.props.triggerContext.triggerData.items.map(e=>{if(e.portraitVideos?.length)return e.portraitVideos.map(t=>k("div",{className:"lc-shoppable-video",style:{flex:"1 1 0",width:"260px"},children:[k("a",{href:e.link,onClick:()=>{this.sendTriggerClicked([new pt(e)],{from:"video"})},children:k("video",{width:"100%",autoplay:!0,muted:!0,loop:!0,children:this.getSources(t.sources)})}),k(Hr,{element:gh,item:e,triggerContext:this.props.triggerContext})]}))})})]})}getSources(e){let t=e.map(i=>k("source",{src:i.url,type:i.mimeType,media:`(max-width:${i.width}px)`})),r=e.filter(i=>i.format==="mp4").sort((i,s)=>s.width-i.width)[0];r&&t.push(k("source",{src:r.url,type:r.mimeType}));let n=e.filter(i=>i.format==="m3u8").sort((i,s)=>s.width-i.width)[0];return n&&t.push(k("source",{src:n.url,type:n.mimeType})),t}getComponentStyles(){return{display:"flex",gap:10,overflowX:"auto",margin:10}}},mc=class extends At{constructor(e){super(e)}shouldStopRendering(){return!1}renderContainer(){ns(Ki(Go,{element:this.widget?.cont,triggerContext:this.triggerContext}),this.rootContainer)}},vh=Ce(Zn()),dc=class extends At{constructor(e){super(e)}shouldStopRendering(){return!1}renderContainer(){let e=this.getParentElement(`inner-letscooee-${this.engagementTrigger.shortID}`);this.rootContainer.appendChild(e),document.addEventListener(N.ADD_BUNDLE_CTA_INBOUND_EVENT,this.inboundCTAListener.bind(this),!1)}async inboundCTAListener(e){let t=this.engagementTrigger,r=`Engagement(id: ${t.engagementID}, shortID: ${t.shortID})`,n=e.detail;if(!vh.JSUtils.hasKeys(n)){b.error(`No detail received for ${r}`);return}b.log("Detail received for BYOB",n);let i=n.campaignID??n.campaignId??n.campaign_id;if(i!==t.shortID&&i!==t.engagementID){b.warn(`Current ${r} is not BYOB. Received: ${i}`);return}let s=n.items;if(!s?.length)return;let o=s.map(c=>new pt({mID:c.product_id,vID:c.variant_id,quantity:c.quantity||1}));await new ki(this.triggerContext).execute({embeddedItems:o,clickAction:{at:108,applyDiscount:!0}})}},Fi=class{runtimeData=le.get();processCartWidgetResponse(e){this.runtimeData.isCartDirty=!1,this.runtimeData.cartEngagements=e;let t=[...Rr.renderedEngagements];Rr.renderedEngagements.length=0;for(let r of e)b.log(`\u{1F4E3} ${r} received as cart embed`),!this.findAndUpdateCurrent(r,t)&&(b.log(`${r} is new`),r.isProgressBar()?new fc(r).renderSilently():r.isSubscriptionUpsell()?pc.renderCartUpsell(r):new Rr(r).renderSilently());this.removeOldWidgets(t)}processPageWidgetResponse(e){let t=[...At.renderedEngagements];At.renderedEngagements.length=0;for(let r of e)b.log(`\u{1F4E3} ${r} received as page embed`),!this.findAndUpdateCurrent(r,t)&&(b.log(`${r} is new`),r.isShoppableVideo()?new mc(r).renderSilently():r.isBYOB()?new dc(r).renderSilently():new At(r).renderSilently());this.removeOldWidgets(t)}findAndUpdateCurrent(e,t){let r=t.findIndex(n=>n.isSameTrigger(e));return r<0||e.isSubscriptionUpsell()?!1:(t[r].update(e),t[r].renderSilently(),t.splice(r,1),!0)}removeOldWidgets(e){for(let t of e)t.destroy()}},cr=class Wh{static INSTANCE;httpService=pe.get(ht);sessionManager=pe.get(st);runtimeData=le.get();loadWidgetsSubject=new Ct;constructor(){this.loadWidgetsSubject.pipe(ar(300)).subscribe(()=>{this.loadCartWidgets().catch(t=>b.error("Unable to initiate cart widgets",t)),this.loadPageWidgets().catch(t=>b.error("Unable to initiate page widgets",t))}),Dr.get().subscriber(N.CART_UPDATE_BROADCAST).subscribe(()=>this.loadWidgetsSubject.next())}static getInstance(){return this.INSTANCE||(this.INSTANCE=new Wh),this.INSTANCE}loadOrRenderWidgetsAfterCartChange(){this.runtimeData.isCartDirty?this.loadWidgetsSilently():this.renderCachedCartWidgets()}loadPageWidgetsSilently(){st.replaySubject.subscribe(async()=>{this.loadPageWidgets().catch(t=>b.error("Unable to initiate load page widgets",t))})}loadCartWidgetsSilently(){st.replaySubject.subscribe(async()=>{this.loadCartWidgets().catch(t=>b.error("Unable to initiate cart widgets",t))})}loadWidgetsSilently(){st.replaySubject.subscribe(async()=>{this.loadWidgetsSubject.next()})}async loadPageWidgets(){let t=await this.getWidgetProps();b.log("Load widgets",t),this.httpService.post("/v1/engagement/page-widgets",t).then(async r=>{let n=r.widgets.map(i=>new Mt(i));new Fi().processPageWidgetResponse(n)}).catch(r=>{b.error("Error sending widget getter",r)})}async loadCartWidgets(){let t=await this.getWidgetProps();b.log("Load cart widgets",t),this.httpService.post("/v1/engagement/cart-widgets",t).then(async r=>{let n=r.widgets.map(i=>new Mt(i));new Fi().processCartWidgetResponse(n)}).catch(r=>{b.error("Error sending widget getter",r)})}async getVariation(t){let r=await this.getWidgetProps();return this.httpService.post("/v1/engagement/get-variant",w(w({},t),r))}renderCachedCartWidgets(){new Fi().processCartWidgetResponse(this.runtimeData.cartEngagements)}async addSessionContext(t){let r=await this.sessionManager.checkSessionAndGetContext();t.sessionID=r[0],t.sessionNumber=r[1],t.landingPage=r[2],t.page=Cr.parseFromCurrent()}addAvailableEngagementShortIDs(){let t=document.querySelectorAll(".letscooee-engagement"),r=[];return t.forEach(n=>{let i=n.dataset.engagementId;i&&+i&&r.push(i)}),r}async getWidgetProps(){let t={};t.engagementIDs=this.addAvailableEngagementShortIDs(),await this.addSessionContext(t),t.currentItem=this.runtimeData.getCurrentItem();try{t.cart=await de.getCurrent().getNormalisedCart()}catch(s){b.error("Error fetching Shopify cart before sending widget call",s)}let r=new URLSearchParams(location.search),n=r.get("cooee-preview");n?t.previewIDs=n.trim().split(",").filter(s=>Number.isInteger(+s)):this.runtimeData.previewIDs?.length&&(t.previewIDs=this.runtimeData.previewIDs);let i=r.get("cooee-variant");return i?t.previewVariant=i:this.runtimeData.previewVariant&&(t.previewVariant=this.runtimeData.previewVariant),t}},hc=class{runtimeData=le.get();widgetAPIService=pe.get(cr);meddle(){let e=we.globalRef;e.account=e.account??[],e.profile=e.profile??[],e.events=e.events??[],e.screen=e.screen??[],e.page=e.page??[],this.meddlePage(),this.meddleAccount(),this.meddleEvents(),this.meddleProfile(),this.meddleScreen(),this.exposeMethods()}exposeMethods(){let e=we.globalRef;e.loadPageWidgets=()=>{this.widgetAPIService.loadPageWidgetsSilently()},e.loadCartWidgets=()=>{this.widgetAPIService.loadCartWidgetsSilently()},e.previewWidget=we.previewWidget.bind(we),e.previewPopup=we.previewPopup.bind(we)}overwritePush(e,t){ci(e,"push",t)}meddleAccount(){this.overwritePush(we.globalRef.account,(...e)=>{this.processAccount(e[0])}),we.globalRef.account.forEach(this.processAccount.bind(this))}meddleEvents(){this.overwritePush(we.globalRef.events,(...e)=>{this.processEvent(e[0])}),we.globalRef.events.forEach(this.processEvent.bind(this))}meddleProfile(){this.overwritePush(we.globalRef.profile,(...e)=>{this.processProfile(e[0])}),we.globalRef.profile.forEach(this.processProfile.bind(this))}meddleScreen(){this.overwritePush(we.globalRef.screen,(...e)=>{this.processPageName(e[0])}),we.globalRef.screen.forEach(this.processPageName.bind(this))}processAccount(e){e&&(e.appID&&we.authenticate(e),e.flags&&Ln.setFlags(e.flags))}processEvent(e){e&&(N.JS_LOAD_WHITELIST_EVENTS.includes(e[0])?we.sendEvent(e[0],e[1],this.runtimeData.jsLoadTime):we.sendEvent(e[0],e[1]))}processProfile(e){e&&we.updateProfile(e)}processPageName(e){e&&we.setPageName(e)}meddlePage(){this.overwritePush(we.globalRef.page,(...e)=>{this.processPage(e[0])}),we.globalRef.page.forEach(this.processPage.bind(this))}processPage(e){e.currentItem&&this.runtimeData.setCurrentItem(e.currentItem),e.currency&&(this.runtimeData.currencyCode=e.currency),e.shopCurrency&&(this.runtimeData.shopCurrencyCode=e.shopCurrency),e.moneyFormat&&(this.runtimeData.moneyFormat=e.moneyFormat),e.jsLoad&&(this.runtimeData.jsLoadTime=e.jsLoad),e.pageName&&we.setPageName(e.pageName)}},Hi=class{static SESSION_STORAGE=window.sessionStorage;static SESSION_STORAGE_KEY_PREFIX=N.COOEE.concat("-");static getString(e,t){return this.getItem(e)||t}static setString(e,t){this.setItem(e,t)}static remove(e){this.removeItem(e)}static getItem(e){return this.SESSION_STORAGE.getItem(this.SESSION_STORAGE_KEY_PREFIX.concat(e))}static setItem(e,t){this.SESSION_STORAGE.setItem(this.SESSION_STORAGE_KEY_PREFIX.concat(e),t)}static removeItem(e){this.SESSION_STORAGE.removeItem(this.SESSION_STORAGE_KEY_PREFIX.concat(e))}},$i=class Xo{static INSTANCE;static DEBOUNCE_TIME=1e3;static THRESHOLD=10;safeHttpService=pe.get(fe);_lastScreenOrScroll=new Date;lastPercent=0;constructor(){}set lastScreenOrScroll(t){this._lastScreenOrScroll=t}static getInstance(){return this.INSTANCE||(this.INSTANCE=new Xo),this.INSTANCE}resetScrollID(t){Hi.remove(N.SESSION_STORAGE_SCROLL_ID),this.lastScreenOrScroll=t??new Date}listen(){if(window.scrollY){let t=this.getPercentScrolledY();this.shouldSendScroll(t)&&this.sendScroll(t)}te.onDocumentLoaded(()=>{this.observeWindowScroll()})}observeWindowScroll(){On(window,"scroll").pipe(ar(Xo.DEBOUNCE_TIME),Nn(()=>{let t=this.getPercentScrolledY();if(t>100){b.warn("Received scroll percent is more than 100",t);return}if(this.shouldSendScroll(t))return t})).subscribe(t=>{this.sendScroll(t)})}shouldSendScroll(t){return Math.abs(this.lastPercent-t)>=Xo.THRESHOLD||this.lastPercent!==t&&t===100}sendScroll(t){if(t==null)return;let r={percent:t,timeMS:new Date().getTime()-this._lastScreenOrScroll.getTime()};this.lastPercent=t;let n=Hi.getString(N.SESSION_STORAGE_SCROLL_ID,""),i=new _e(N.EVENT_SCROLL,r,null,n);this.safeHttpService.sendEvent(i),Hi.setString(N.SESSION_STORAGE_SCROLL_ID,i.id.toHexString()),this._lastScreenOrScroll=new Date(i.occurred)}getPercentScrolledY(){let t=window.document.body.scrollHeight,r=window.innerHeight;return Math.ceil((window.scrollY+r)/t*100)}},gc=class qh{static ACTIVE_DURATION="aDur";static INACTIVE_DURATION="iaDur";apiService=pe.get(fe);runtimeData=le.get();listen(){document.onvisibilitychange=()=>{document.visibilityState==="visible"?this.onVisible():document.visibilityState==="hidden"&&this.onHidden()}}async onVisible(){}async onHidden(){let t=await this.runtimeData.setInactive();if(t===0){b.info("Not sending background event as user was inactive on website");return}b.info(`Sending background event with ${t} seconds`);let r={};r[qh.ACTIVE_DURATION]=t,this.apiService.sendEvent(new _e(N.EVENT_APP_BACKGROUND,r))}},yc=class{compareCartItemSubject=new Ct;constructor(){this.compareCartItemSubject.pipe(ar(100)).subscribe(this.compareCartItems.bind(this))}listen(){this.compareCartItemSubject.next(),this.overwriteXMLHttpRequest(),this.overwriteFetchMethod()}overwriteXMLHttpRequest(){let e=this,t=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.send=function(){return this.addEventListener("load",function(){e.performEvent(this._url).catch(r=>b.error("Unable to process cart change in XMLHttpRequest",r))}),t.apply(this,arguments)},b.debug("Securely overwritten window.XMLHttpRequest.send method")}overwriteFetchMethod(){let e=this,t=window.fetch;window.fetch=function(r){return t.apply(window,arguments).then(n=>(e.performEvent(r.toString()).catch(i=>b.error("Unable to process cart change in fetch",i)),n))},b.debug("Securely overwritten window.fetch method")}async performEvent(e){this.isCartManipulationURL(e)&&(le.get().isCartDirty=!0,this.compareCartItemSubject.next())}isCartManipulationURL(e){return/\/cart\/(add|change|update|clear)/.test(e)}sendChangesAsEvents(e,t){let r=e?.items,n=t.items,i=[],s=[];if(b.debug(`Comparing cart change with old count ${r?.length} to new count ${n.length}`),n?.forEach(o=>{let c=r?.find(u=>u.vID===o.vID);if(c){if(c.quantity!==o.quantity){let u=c.quantity<o.quantity,p=Math.abs(c.quantity-o.quantity),m=ee(w({},o),{quantity:p});u?i.push(m):s.push(m)}r&&te.removeFromArray(r,c)}else i.push(o)}),r)for(let o of r)s.push(o);b.debug(`Cart delta: added: ${i.length}, removed: ${s.length}`),i.length&&this.sendEvent(N.EVENT_ADD_TO_CART,{items:i}),s.length&&e.token===t.token&&this.sendEvent(N.EVENT_REMOVE_FROM_CART,{items:s}),(s.length||i.length)&&Dr.get().broadcast(N.CART_UPDATE_BROADCAST,{itemsAdded:i,itemsRemoved:s})}sendEvent(e,t){let r=new _e(e,t);pe.get(fe).sendEvent(r)}async compareCartItems(){let e=await Oe.get(oe.CURRENT_CART,{}),t=await de.getCurrent().getNormalisedCart(!0);this.sendChangesAsEvents(e,t)}},vc=class{listen(){return this.overwriteFetchMethod(),this}overwriteFetchMethod(){let e=this,t=window.fetch;window.fetch=async function(r,n){try{await e.modifyRequest(r,n)}catch(i){Be.getInstance().captureError("Failed to modify graphql request",i,{body:JSON.stringify(n?.body)})}return t(r,n)},b.debug("Securely overwritten window.fetch method for graphql query")}async modifyRequest(e,t){let r=typeof e=="string"?e:e instanceof Request?e.url:"";if(!(r.includes("graphql.json")&&t?.method==="POST")||!t.body)return;let n;if(typeof t.body=="string")try{n=JSON.parse(t.body)}catch{return}else n=t.body;b.debug("Intercepted fetch request of:",r),n?.query.includes("cartCreate")&&(t.body=await this.updatedBody(n),this.sendBuyNowEvent())}async updatedBody(e){let t=e.variables.input.attributes??[],r=await te.getCartAttributes();return e.variables.input.attributes=[...t,...r],JSON.stringify(e)}sendBuyNowEvent(){let e=le.get().getCurrentItem();if(!e)return;let t=new _e(N.EVENT_BUY_NOW_CLICKED,{items:[e]});fe.getInstance().sendEvent(t)}},ji=class{constructor(e,t){this.selectors=e,this.eventName=t,this.selectorString=e.join(",")}static INSTANCE;elements;selectorString;clickListenerCallback=e=>{let t=e.currentTarget,r=new _e(this.eventName,{class:t.className||void 0,tagName:t.tagName||void 0,id:t.id||void 0});fe.getInstance().sendEvent(r),this.removeClickListener(this.clickListenerCallback)};listenSilently(){this.listen().catch(e=>b.error(e))}async listen(){this.elements=await te.retrySelectorForElements(this.selectorString),this.elements.forEach(e=>{e.addEventListener("click",this.clickListenerCallback)})}removeClickListener(e){this.elements?.forEach(t=>{t.removeEventListener("click",e)})}},_c=class Rc extends ji{static selectors=[".product__thumbnail-list-inner > button","product-gallery-navigation > button",".product-media--thumb-container",".product-images-inner > img",".m-product-media",".swiper-button-control",".media__thumb",".slick-arrow",".productView-img-container.product-single__media",".product-gallery__thumbnail_item_inner"];constructor(){super(Rc.selectors,N.EVENT_ITEM_THUMBNAIL_CLICKED)}static getInstance(){return this.INSTANCE||(this.INSTANCE=new Rc),this.INSTANCE}},Ec=class tl extends ji{static selectors=[".jdgm-widget.jdgm-preview-badge.jdgm-preview-badge--with-link.jdgm--done-setup","reviewsio-product-ratings",".ruk_rating_snippet.tracked:not(.hidden)","a > .loox-rating",".yotpo-reviews-star-ratings-widget",".yotpo.lp-hero__reviews",".pr-rating > a",".rivyoReviewWidget"];constructor(){super(tl.selectors,N.EVENT_REVIEW_CLICKED)}static getInstance(){return this.INSTANCE||(this.INSTANCE=new tl),this.INSTANCE}},Sc=class{selector=[".gokwik-checkout button","button.cart__checkout-button","button.cart__checkout","button#checkout","button#checkout2",'button[id*="checkout" i]','button[name*="checkout" i]','button[class*="checkout" i]'].join(",");listen(){te.onDocumentLoaded(()=>{b.debug("Execution order:","document ready"),this.useLocationHash()})}useLocationHash(){let e=window.location.hash?.substring(1);if(e)if(e.includes(N.HASH_INITIATE_CHECKOUT)){document.dispatchEvent(new Event(N.THIRD_PARTY_CHECKOUT_EVENT));let t=document.querySelector(this.selector);if(!t){b.debug("No clickable cart checkout button found");return}b.debug("Clickable cart checkout button found",t),t.click()}else e.includes(N.HASH_OPEN_CART_DRAWER)&&ze.get().open()}},wc=class{trackSilently(){this.track().catch(e=>Be.getInstance().captureException(e))}async track(){let e=window.Shopify?.checkout,t=window.Shopify?.Checkout;if(!e&&!t)return;let r={};this.processSmallCheckout(e,r),this.processBigCheckout(t,r);let n=this.getTokenFromCurrentURLPath();if(n&&(r.urlToken=n),!Object.keys(r).length){b.warn("No processable data found in",e,t);return}r.referrer=document.referrer,r.url=location.href;let i=await pe.get(st).checkSessionAndGetContext();r.sessionID=i[0],this.trackOrder(r)}processSmallCheckout(e,t){e&&(e.order_id&&(t.orderID=e.order_id.toString()),e.token&&(t.checkoutToken=e.token.toString()),e.customer_id&&(t.customerID=e.customer_id.toString()))}processBigCheckout(e,t){e&&(e.token&&!t.checkoutToken&&(t.checkoutToken=e.token.toString()),e.cartToken&&(t.cartToken=e.cartToken.toString()))}trackOrder(e){b.info("Found order to be send",e),fe.getInstance().trackOrder(e)}getTokenFromCurrentURLPath(){let e=new RegExp("[A-Fa-f0-9]{28,32}");return location.pathname?.split("/").find(t=>t.length&&e.test(t))}},Yo=class{static attachCheckoutListener(){window.gokwikSdk&&window.gokwikSdk.on("checkout_initiated",async()=>{let e=await de.getCurrent().getNormalisedCart(),t={via:"GoKwik",items:e.items,cartToken:e.token,amount:{value:e.amount,currency:e.currency}},r=new _e(N.EVENT_CHECKOUT_STARTED,t);fe.getInstance().sendEvent(r)})}},bc=class{async migrate(){}};Et.escape=_h.MustacheUtils.escapeHtml;var we=class{static globalRef;static authenticated;static async initForMerchantWebsiteOnly(){window.cooeeSDKPreview||(this.initGlobalReference(),await new bc().migrate(),this.autoAuthenticate(),new hc().meddle(),new gc().listen(),new wc().trackSilently(),new en().listen(),new yc().listen(),new vc().listen(),new Sc().listen(),pe.get($i).listen(),pe.get(Ec).listenSilently(),pe.get(_c).listenSilently(),pe.get(cr).loadPageWidgetsSilently(),this.attachGoKwikListeners(),this.storePreviewParams(),this.setupPreviewListeners(),Zt.watch())}static async initForAll(){this.injectWidgetAssets()}static initGlobalReference(){window.CooeeSDK||ci(window,"CooeeSDK",{}),this.globalRef=window.CooeeSDK,ci(this.globalRef,"config",new Le),ci(this.globalRef,"runtimeData",new le),b.debug("Global reference initialised")}static injectWidgetAssets(){if(document.currentScript.src.includes("localhost")){let e="http://localhost:8002";dt.injectScriptURL(`${e}/main.js`),dt.injectStylesheet(`${e}/styles.css`)}else{let e=`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${N.SDK_VERSION}`;dt.injectScriptURL(`${e}/dist/widget-sdk.min.js`,"cooee-widget-sdk"),dt.injectStylesheet(`${e}/dist/widget-sdk.min.css`)}}static autoAuthenticate(){let e=Pe.getShopName();e&&this.authenticate({shopifyShop:e})}static authenticate(e){if(this.authenticated)return;let t=e.appID?.trim(),r=e.shopifyShop;if((te.isNull(t)||t.length!==24)&&te.isNull(r)){b.warn("Cooee App ID or Shop name is not configured");return}this.authenticated=!0,pe.get(st).init(e)}static sendEvent(e,t,r){for(let i in t)if(i.length>3&&i.toLowerCase().startsWith("ce "))throw new Error("Event property name cannot start with 'CE '");let n=new _e(e,t);n.occurred=r??new Date,pe.get(fe).sendEvent(n)}static updateProfile(e){for(let t in e)if(t.toLowerCase().startsWith("ce "))throw new Error("User property name cannot start with 'CE '");pe.get(fe).updateProfile(e)}static setPageName(e){if(!e)return;let t=le.get(),r=t.pageName;if(e===r)return;if(t.pageName=e,e==="cart"&&pe.get(cr).loadOrRenderWidgetsAfterCartChange(),N.BLACKLISTED_PAGE_NAMES.some(s=>e.includes(s))){pe.get($i).resetScrollID();return}let n={};r&&(n.ps=r);let i=new _e(N.EVENT_SCREEN_VIEW,n);i.occurred=t.jsLoadTime,pe.get(fe).sendEvent(i),pe.get($i).resetScrollID(i.occurred)}static previewPopup(e,t){new Bi(t).render(e)}static previewWidget(e){new At(new Mt(e)).render()}static setupPreviewListeners(){if(window.opener){try{window.opener.postMessage({action:"COOEE_READY_FOR_PREVIEW"},"*")}catch(e){b.error(e)}window.addEventListener("message",e=>{if(b.debug("Received event",e),!e.origin.includes("letscooee.com")&&!e.origin.includes("localhost"))return;let t=e.data;typeof t=="object"&&(t.action==="POPUP_PREVIEW"?(this.previewPopup(t.engagementTrigger),e.source?.postMessage({action:"PREVIEW_SUCCESSFUL"},e.origin)):t.action==="WIDGET_PREVIEW"&&(this.previewWidget(t.engagementTrigger),e.source?.postMessage({action:"PREVIEW_SUCCESSFUL"},e.origin)))})}}static attachGoKwikListeners(){let e=le.get();window.addEventListener("kp-modal:opened",()=>{e.isGoKwikPopupOpen=!0}),window.addEventListener("user-loggedin",t=>{let{token:r}=t.detail;r&&this.updateProfile({goKwikToken:r})}),window.gokwikSdk?Yo.attachCheckoutListener():window.addEventListener("gokwikLoaded",Yo.attachCheckoutListener)}static storePreviewParams(){let e=le.get(),t=new URLSearchParams(location.search),r=t.get("cooee-preview");r&&(e.previewIDs=r.trim().split(",").filter(i=>Number.isInteger(+i)));let n=t.get("cooee-variant");n&&(e.previewVariant=n)}};b.configure();b.logBrand();b.debug("Execution order:","top");window.cooeeShopifyScriptLoaded||(window.cooeeShopifyScriptLoaded=!0,(async()=>(b.debug("Execution order:","IIFE start"),await we.initForMerchantWebsiteOnly(),await we.initForAll(),b.debug("Execution order:","IIFE end")))());b.debug("Execution order:","bottom");})();
|
|
70
|
+
`},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},autoplay:t.autoplay?.enabled?{delay:t.autoplay?.delay,disableOnInteraction:!1}:!1,autoHeight:!0});return e.style.setProperty("--swiper-navigation-size",`${t.navigation.size}px`),r}function uc(e,t,r){let n={color:e.navigation.color?.rgba};return e.pagination.enabled&&(n.transform="translateY(-25%)"),k("div",{class:"swiper-container",ref:t,children:[k("div",{class:"swiper-wrapper",children:r()}),e.navigation.enabled&&k("div",{class:"swiper-button-next",style:n,children:k("span",{})}),e.navigation.enabled&&k("div",{class:"swiper-button-prev",style:n,children:k("span",{})}),e.pagination.enabled&&k("div",{className:"swiper-pagination",style:{bottom:0,top:"unset",position:"relative",color:e.pagination.color?.rgba}})]})}var $o=class extends xe{swiperRef=null;swiperInstance=null;configuration;gap;constructor(e,t){super(e,t),this.configuration=this.renderer.isMobile()?this.props.element.conf.sm:this.props.element.conf.lg,this.gap=(this.configuration.gap??15)+"px"}componentDidMount(){this.props.element.conf[this.deviceTypeKey].disp===2&&cc().then(()=>{this.swiperInstance=lc(this.swiperRef,this.props.element.conf[this.deviceTypeKey])})}componentWillUnmount(){this.swiperInstance&&this.swiperInstance.destroy()}render(){let e=this.props.triggerContext.triggerData.items;e.splice(this.configuration.maxItems??10);let t;if(this.configuration.disp===2){let r=i=>{this.swiperRef=i},n=()=>e?.map(i=>k("div",{class:"swiper-slide",children:this.getProductFragment(i)}));t=k("div",{style:ee(w({},this.getCompiledStyles()),{display:"block"}),class:"lc-product-swiper-list",children:uc(this.configuration,r,n)})}else t=k("div",{style:this.getCompiledStyles(),class:"lc-product-list",children:e?.map((r,n)=>this.getProductFragment(r,n!==e.length-1))});return t}getComponentStyles(){let e=[0,2].includes(this.configuration.disp),t={display:e?"flex":"grid",justifyContent:"safe "+(this.mediaStyle.flex?.jc??"center"),gap:this.gap,flexDirection:this.mediaStyle.flex?.dir??"row"};if(t.flexDirection==="row"){if(e)t.maxWidth="100%",t.overflowY="auto";else if(this.configuration.disp===1){let r=this.props.triggerContext.triggerData,n=r.items.length,i;r.isBundle()?i=this.props.element.prod.symbol?.hide!==!0?n*2-1:n:i=this.props.element.conf[this.deviceTypeKey].maxInRow,t.gridTemplateColumns=`repeat(${i}, auto)`}}return t}getProductFragment(e,t=!1){return k(fr,{children:[k(Hr,{element:this.props.element.prod,item:e,triggerContext:this.props.triggerContext}),this.props.triggerContext.triggerData.isBundle()&&t&&this.props.element.prod.symbol&&!this.props.element.prod.symbol.hide&&k("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:k(xt,{element:this.props.element.prod.symbol,triggerContext:this.props.triggerContext})})]},e.mID)}},jo=class extends xe{swiperRef=null;swiperInstance=null;constructor(e,t){super(e,t)}componentDidMount(){cc().then(()=>{this.swiperInstance=lc(this.swiperRef,this.props.element.conf)})}componentWillUnmount(){this.swiperInstance&&this.swiperInstance.destroy()}render(){let e=this.props.element,t=n=>{this.swiperRef=n},r=()=>e.values?.map(n=>k("div",{class:"swiper-slide",onClick:()=>this.onClick({clickAction:this.getClickAction(n)}),children:this.renderElement(n)}));return uc(e.conf,t,r)}getComponentStyles(){return{}}renderElement(e){let t=this.valueAddedSlide(this.props.element.slide,e);switch(t?.t){case 1:return k(Mr,{element:t,triggerContext:this.props.triggerContext});case 4:return k(Fr,{elements:t.elems,element:t,triggerContext:this.props.triggerContext});default:b.warn("Unknown slide type for carousal")}}valueAddedSlide(e,t){let r=JSON.stringify(e),n=Et.render(r,{form:t});return kt.getParsedElement(JSON.parse(n))}getClickAction(e){let t=w({},this.props.element.clc),r=JSON.stringify(t),n=Et.render(r,{form:e});return JSON.parse(n)}},tn=class extends xe{constructor(e,t){super(e,t),this.setState(()=>({decoration:"unset"})),at(()=>{this.setState(()=>({showButton:!this.props.triggerContext.triggerData.isBundle()||!!this.props.triggerContext.selectedItems.length}))})}renderElement(e){if(!e.hide){if(e.t===4){let t=e;return k(Fr,{element:t,triggerContext:this.props.triggerContext,elements:t.elems})}if(e.t===61)return k(Bo,{element:e,triggerContext:this.props.triggerContext});if(e.t===3)return this.state.showButton?k(Un,{element:e,triggerContext:this.props.triggerContext}):void 0;if(e.t===2)return k(xt,{element:e,triggerContext:this.props.triggerContext});if(e.t===1)return k(Mr,{element:e,triggerContext:this.props.triggerContext});if(e.t===11)return k($o,{element:e,triggerContext:this.props.triggerContext});if(e.t===12)return k(Hr,{element:e,item:this.props.triggerContext.triggerData.items[0],triggerContext:this.props.triggerContext});if(e.t===62)return k(jo,{element:e,triggerContext:this.props.triggerContext})}}render(){return this.props.elements.map(e=>this.renderElement(e))}getComponentStyles(){return{}}},Wo=class extends xe{clickAction;isClickable;constructor(e,t){super(e,t),this.clickAction=this.props.element.clc,this.isClickable=this.clickAction?.at===4&&this.clickAction.gu?.u}componentDidMount(){at(()=>{let e=this.props.triggerContext.triggerData,t=this.props.triggerContext.selectedItems;e.calculateDiscountData(t,this.props.triggerContext.shouldGiveFBTDiscount)})}render(){return k(fr,{children:[k("div",{style:this.getCompiledStyles(),class:"lc-container",onClick:()=>{this.onClick({clickAction:this.clickAction})},children:k(tn,{elements:this.props.elements,element:this.props.element,triggerContext:this.props.triggerContext})}),this.props.triggerContext.triggerData.id==="preview"&&k("div",{class:"letscooee-preview-badge",children:["#",this.props.triggerContext.triggerData.shortID," preview"]})]})}getComponentStyles(){let e={position:"relative",overflow:"hidden",display:"block"};return this.isClickable&&(e.cursor="pointer"),e}async onClick(e){if(this.isClickable)return super.onClick(e)}},At=class as{constructor(t){this.engagementTrigger=t,this.triggerContext=new Oi(new Date,this.engagementTrigger)}static renderedEngagements=[];static engagementIDsWithTrackedDisplay=new Set;static DEBOUNCE_TIME=1e3;rootContainer;widgetElement;widget;triggerContext;observers=[];runtimeData=le.get();widgetAPIService=pe.get(cr);safeHTTPService=pe.get(fe);scrollSubscription;variation;isExclusionWithBVariation;renderSilently(){this.render().catch(t=>Be.getInstance().captureException(t,w({},this.engagementTrigger.sentryContext())))}destroy(){b.log(`${this.engagementTrigger} will be destroyed`),this.scrollSubscription?.unsubscribe(),this.observers.forEach(t=>{t?.disconnect&&t.disconnect()}),this.rootContainer?.remove(),as.engagementIDsWithTrackedDisplay.delete(this.engagementTrigger.shortID)}async render(){if(this.engagementTrigger.hasMultiplePlacement){let t=await this.getVariation();this.handleVariationResponse(t)}if(this.rootContainer=await this.getWidgetContainer(!0),!this.rootContainer){b.warn(`${this.engagementTrigger} no section found to render the widget`);return}this.widget=this.engagementTrigger.widget,await this.getVariationIfRequired(),!this.shouldStopRendering()&&(await this.startRendering(),this.attachScroll(),await this.checkAndSendEvent(),this.triggerContext.renderer=this)}isSameTrigger(t){return this.engagementTrigger.shortID===t.shortID}update(t){dh.default.log(`${this.engagementTrigger} will be updated`),this.updateItems(t.items,this.engagementTrigger.items)}shouldStopRendering(){return!this.widget&&!this.isExclusionWithBVariation}async getVariationIfRequired(){if(this.engagementTrigger.isSingleContent()||this.engagementTrigger.widget){b.log(`${this.engagementTrigger} already has required data to render widget`);return}let t=await this.observeWidgetContainerInViewport();this.handleVariationResponse(t)}handleVariationResponse(t){t&&(b.log(`${this.engagementTrigger} visitor has been assigned to variation ${t.variation}`),t.items?.length&&(this.engagementTrigger.items=t.items.map(r=>new Rt(r)),this.engagementTrigger.nonMutableItems=t.items.map(r=>new Rt(r))),t.bundleFrom&&(this.engagementTrigger.bundleFrom=new Rt(t.bundleFrom)),t.discount&&(this.engagementTrigger.discount=t.discount),t.placement&&(this.triggerContext.triggerData.placement=t.placement),t.props&&mh.JSUtils.hasKeys(t.props)&&(this.engagementTrigger.props=w(w({},this.engagementTrigger.props),t.props)),this.triggerContext.triggerData.widget=this.widget=new Ei(t.widget),this.triggerContext.triggerData.contentID=t.contentID,this.triggerContext.triggerData.variation=this.variation=t.variation,this.triggerContext.triggerData.placement=t.placement,this.triggerContext.triggerData.manipulation=t.manipulation,this.isExclusionWithBVariation=this.engagementTrigger.isExclusionTesting()&&this.variation==="b",this.isExclusionWithBVariation&&(this.rootContainer.style.height="0.5px"))}addToRendered(){as.renderedEngagements.push(this)}async getVariation(){b.log(`${this.engagementTrigger} get variation`);let t={engagementID:this.engagementTrigger.engagementID,isPreview:this.engagementTrigger.id==="preview"};try{return await this.widgetAPIService.getVariation(t)}catch(r){b.error(`${this.engagementTrigger} unable to get the variation`,r);return}}async observeWidgetContainerInViewport(){if(!this.rootContainer){b.warn(`${this.engagementTrigger} No root container found to watch for viewport`);return}let t=window.innerHeight*.3,r={root:null,rootMargin:`-${t}px 0px ${t}px 0px`,threshold:0};return await this.isInViewport()?this.getVariation():new Promise(n=>{let i=new IntersectionObserver((s,o)=>{s.forEach(async c=>{if(c.isIntersecting){b.log(`${this.engagementTrigger} root container is near the viewport. Fetching variation`);let u=await this.getVariation();n(u),o.unobserve(this.rootContainer)}})},r);i.observe(this.rootContainer),this.observers.push(i)})}attachScroll(){this.scrollSubscription=On(window,"scroll").pipe(ar(as.DEBOUNCE_TIME)).subscribe(()=>{this.checkAndSendEvent()})}async checkAndSendEvent(){let t=this.engagementTrigger.shortID;if(as.engagementIDsWithTrackedDisplay.has(t)||!await this.isInViewport())return;let r={};this.triggerContext.triggerData.items?.length&&(r.promotedMIDs=this.engagementTrigger.items?.map(s=>s.mID));let n=this.isExclusionWithBVariation?N.EVENT_CAMPAIGN_HOLDOUT:N.EVENT_TRIGGER_DISPLAYED,i=new _e(n,r,this.engagementTrigger);i.name===N.EVENT_CAMPAIGN_HOLDOUT&&(i.trigger.holdout=!0),this.safeHTTPService.sendEvent(i),as.engagementIDsWithTrackedDisplay.add(t),this.scrollSubscription.unsubscribe()}generateParentElementID(){return`letscooee-${this.engagementTrigger.shortID}`}async isInViewport(){let t=(await this.getWidgetContainer())?.getBoundingClientRect();if(!t)return!1;let r=window.innerHeight||document.documentElement.clientHeight,n=(Math.min(t.bottom,r)-Math.max(t.top,0))*t.width,i=t.width*t.height,s=n/i*100;return this.engagementTrigger.isAnySplit()?s>0:s>=30}async getWidgetContainer(t){if(this.rootContainer?.isConnected)return this.rootContainer;let r=await this.createParentElementWithPlacement(t);if(r)return r;let n=`.letscooee[data-engagement-id="${this.triggerContext.triggerData.shortID}"]`;return document.querySelector(n)}async createParentElementWithPlacement(t){let r=this.engagementTrigger.placement;if(!r?.selector)return b.warn(`${this.engagementTrigger} does not have a selector`),null;let n=r.selector,i;if(n.includes(N.SHADOW_SPLITTER)){let u=n.split(N.SHADOW_SPLITTER);i=(await te.retrySelector(u[0].trim()))?.shadowRoot,n=u[1].trim(),i&&dt.injectStylesheet(tr.styleURL,i);let p=Le.get().website.commonCSS;i&&p&&dt.injectRawCSS(p,i)}b.debug(`${this.engagementTrigger} attempt to render ${r.position}-${n}`);let s=await te.retrySelector(n,10,i??document);if(!s)return b.warn(`${this.engagementTrigger} no placement found with ${n}`),null;let o=this.generateParentElementID(),c=this.getParentElement(o);if(!t)return c;switch(r.position){case Vo.EngagementPlacementPosition.BEFORE:{s.parentElement?.insertBefore(c,s);break}case Vo.EngagementPlacementPosition.INSIDE_FIRST:{s.insertBefore(c,s.firstChild);break}case Vo.EngagementPlacementPosition.INSIDE_LAST:{s.appendChild(c);break}case Vo.EngagementPlacementPosition.AFTER:default:s.parentElement?.insertBefore(c,s.nextSibling)}return c}async startRendering(){let t;try{t=await Ui.refreshItems(this.engagementTrigger)}catch(r){b.error(`${this.engagementTrigger} error refreshing the items`,r);return}if(!t?.length&&this.engagementTrigger.isProductPromoted()){b.warn(`${this.engagementTrigger} is of ${this.engagementTrigger.objective} but no product found`);return}this.engagementTrigger.items=t,this.renderContainer()}getParentElement(t,r=document){let n=r.getElementById(t);if(n)return n;let i=this.engagementTrigger.shortID;return n=document.createElement("div"),n.id=t,n.className=`letscooee letscooee-engagement engagement-${i}`,n.dataset.engagementId=i,this.engagementTrigger.id==="preview"&&(n.className+=" letscooee-preview"),n.style.display="block",n.style.minHeight="0.5px",n.style.minWidth="0.5px",n}renderContainer(){if(!this.widget)return;let t=this.rootContainer;if(this.triggerContext.triggerData.hasSwiperElement()){let r=this.rootContainer?.shadowRoot||this.rootContainer?.attachShadow({mode:"open"}),n=Le.get().website.commonCSS;n&&dt.injectRawCSS(n,r),dt.injectStylesheet(tr.styleURL,r),dt.injectStylesheet("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css",r),t=r}ns(Ki(Wo,{element:this.widget.cont,triggerContext:this.triggerContext,elements:this.widget.elems}),t),this.addToRendered()}updateItems(t,r){let n=this.getItemDiff(t,r),i=this.getItemDiff(r,t);r.push(...n);for(let s of i)fh.ArrayUtils.remove(r,s)}getItemDiff(t,r){return t.filter(n=>!r.some(i=>i.selectedOrFirstVariant.value.mID===n.selectedOrFirstVariant.value.mID))}},Rr=class Vh extends At{static renderedEngagements=[];constructor(t){super(t)}addToRendered(){Vh.renderedEngagements.push(this)}observeWidgetContainerInViewport(){return this.getVariation()}generateParentElementID(){let t=super.generateParentElementID();return this.engagementTrigger.isSubscriptionUpsell()&&(t+=`-${this.engagementTrigger.items[0].selectedOrFirstVariant.value.mID}`),t}async checkAndSendEvent(){if(!ze.get().isOpen()&&this.runtimeData.pageName!=="cart"){b.log("Do not send display event as neither the cart drawer nor the cart page is open.");return}return super.checkAndSendEvent()}},pc=class Gh{constructor(t,r){this.engagementTrigger=t,this.element=r,this.cartItems=de.getCurrent().items}cartItems;static renderCartUpsell(t){let r=t.placement;if(!r?.selector){b.warn(`No placement available for ${t.objective}`,t.shortID);return}let n=Array.from(document.querySelectorAll(r.selector));if(!n?.length){b.warn(`No placement found for ${t.objective}`,t.shortID);return}for(let i of n)new Gh(t,i).render()}render(){let t=this.findCartItemFromHTMLElement();if(!t||this.engagementTrigger.skipSubscribedItems&&t.selling_plan_allocation)return;let r=this.engagementTrigger.items.find(m=>m.mID===t.product_id.toString());if(!r)return;let n=r.vars.find(m=>m.mID===t.id.toString());if(!n)return;let i=new Sr(n),s=t.selling_plan_allocation?.selling_plan;if(s)for(let m of i.sellingPlans??[])m.mID===s.id.toString()&&(m.isSelected=!0,i.changeSellingPlan(m));let o=new Rt(r);o.vars=[i],o.selectedOrFirstVariant.value=i;let c=`lc-cart-item-${this.engagementTrigger.shortID}-${r.mID}`;this.element.classList.add(c);let u=new Mt(this.engagementTrigger);u.placement.selector=`.${c}`,u.items=[o];let p=new Rr(u);p.renderSilently(),this.watchForCartItemDeletion(p,c)}watchForCartItemDeletion(t,r){let n=new MutationObserver(i=>{i.forEach(s=>{s.removedNodes.forEach(o=>{o===this.element&&(b.debug(`${r} has been removed`),t.destroy(),n.disconnect())})})});n.observe(this.element.parentElement,{childList:!0,subtree:!0})}findCartItemFromHTMLElement(){let t=this.element.innerHTML;return this.cartItems.find(r=>{if(!(t.includes(r.url)||t.includes(r.variant_id))&&(!t.includes(r.product_title)||r.variant_title&&!t.includes(r.variant_title)))return!1;let n=r.selling_plan_allocation?.selling_plan?.name;return!(n&&!t.includes(n))})}},hh=Ce(Vr()),fc=class extends Rr{ctaListener=new en;constructor(e){super(e),Dr.get().subscriber(N.CART_UPDATE_BROADCAST).pipe(qu(null)).subscribe(this.checkMilestone.bind(this))}update(e){super.update(e),this.widgetElement.update()}shouldStopRendering(){return!1}renderContainer(){if(this.widgetElement?.isConnected){this.addToRendered();return}let e=this.widgetElement=document.createElement("cooee-progressbar");e.className="cooee-root",e.cart=de.getCurrent(),e.engagementTrigger=this.engagementTrigger,e.setAttribute("engagement",this.engagementTrigger.shortID),this.rootContainer.appendChild(e),this.addToRendered()}async checkMilestone(){let e=await de.getCurrent().getNormalisedCart(),t=[...this.engagementTrigger.progressBarConfig.milestones].reverse().find(r=>r.minValue<e.amount);if(!t){b.log("No milestone achieved yet");return}if(b.log("Current milestone",t),t.rewardType===hh.MilestoneRewardType.FREE_AUTO_GIFT){let r=t.items[0];if(e.items.find(n=>n.vID===r.vID||n.mID===r.mID)){b.log(`Item(vID:${r.vID}) already present in the cart. Updating item's properties`),await this.ctaListener.performUpdate(r,{properties:this.engagementTrigger.getPrivateAttributesForLineItem()});return}else{let n=await this.ctaListener.performAddToCart([r],this.engagementTrigger);ze.get().refreshUI(n,!1),await this.removeOtherFreeGifts(r)}}}async removeOtherFreeGifts(e){let t=(await de.getCurrent().getNormalisedCart()).items.filter(r=>r.vID!==e?.vID&&r.properties[N.CAMPAIGN_ATTRIBUTE]===this.engagementTrigger.shortID);if(t.length)for(let r of t)await this.ctaListener.performUpdate(r,{quantity:0})}},gh=new br({t:12,style:{lg:{spc:{p:5,pl:5,pr:5,pt:5,pb:5},size:{w:"100%",h:"auto"},br:{r:4,w:0,s:1,c:{h:"#94a3b8",a:100}}},sm:{spc:{p:5,pl:5,pr:5,pt:5,pb:5},size:{w:"240px",h:"auto"},br:{r:0,w:0,s:1,c:{h:"#94a3b8",a:100}}}},elems:[{t:4,style:{lg:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"center",ai:"center"}},sm:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"center",ai:"center"}}},clc:{},elems:[{t:13,style:{lg:{spc:{mb:5},size:{w:"70px",h:"auto"},lout:{of:"cover"}},sm:{spc:{mb:5},size:{w:"80px",h:"auto"},lout:{of:"cover"}}},src:"{{{ product.image_url }}}"},{t:4,style:{lg:{spc:{mb:10},lout:{of:"cover",disp:"flex"},flex:{gap:5,dir:"column",wrap:"nowrap",jc:"start",ai:"start"}},sm:{spc:{mb:10},lout:{of:"cover",disp:"flex"},flex:{gap:7,dir:"column",wrap:"nowrap",jc:"start",ai:"start"}}},clc:{},elems:[{t:14,style:{lg:{spc:{},size:{w:"auto",h:"auto"},typo:{italic:!1,bold:!1,lh:1.2,fs:13,tc:{h:"#313131",a:100},ta:0,fw:600,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{},size:{w:"auto",h:"auto"},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#575757",a:100},ta:0,fw:500,ls:0,fam:{name:"Arial",g:!0}}}},text:"{{ product.name }}"},{t:4,style:{lg:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"start",ai:"start"}},sm:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:10,dir:"row",wrap:"nowrap",jc:"start",ai:"center"}}},clc:{},elems:[{t:2,style:{lg:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,td:"line-through",fs:14,tc:{h:"#64748b",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,td:"line-through",fs:12,tc:{h:"#64748b",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}}},text:"{{ product.compare_price }}"},{t:2,style:{lg:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,fs:14,tc:{h:"#000000",a:100},ta:1,fw:500,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{},typo:{italic:!1,bold:!1,lh:1.2,fs:13,tc:{h:"#000000",a:100},ta:1,fw:500,ls:0,fam:{name:"Arial",g:!0}}}},text:"{{ product.price }}"},{t:2,style:{lg:{spc:{p:0,pl:0,pr:0,pt:0,pb:0,m:0,ml:0,mr:10,mt:0,mb:0},typo:{italic:!1,bold:!1,lh:1.2,fs:18,tc:{h:"#64748b",a:100},ta:1,fw:600,ls:0}},sm:{spc:{p:0,m:0,mr:10},typo:{italic:!1,bold:!1,lh:1.2,fs:18,tc:{h:"#64748b",a:100},ta:1,fw:600,ls:0}}},hide:!0,text:"Save {{ product.discount_price }}",when:{lhs:"{{ product.discount_price }}",op:"gt",rhs:0}},{t:2,style:{lg:{spc:{p:0,pl:0,pr:0,pt:0,pb:0,m:0,ml:0,mr:10,mt:0,mb:0},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#0d8d00",a:100},ta:1,fw:400,ls:0,fam:{name:"DINNextRoundedLTPro-Medium"}}},sm:{spc:{p:0,m:0,mr:10},typo:{italic:!1,bold:!1,lh:1.2,fs:18,tc:{h:"#64748b",a:100},ta:1,fw:600,ls:0}}},hide:!0,text:"({{ product.discount_percent }}% off)",when:{lhs:"{{ product.discount_percent }}",op:"gt",rhs:0}}]},{t:4,style:{lg:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:5,dir:"row",wrap:"nowrap",jc:"start",ai:"center"}},sm:{spc:{},lout:{of:"cover",disp:"flex"},flex:{gap:5,dir:"row",wrap:"nowrap",jc:"start",ai:"center"}}},clc:{},elems:[{t:3,style:{lg:{spc:{p:7,pl:7,pr:7,pt:7,pb:7},size:{w:"100%",h:"auto"},bg:{s:{h:"#000000",a:100}},br:{r:0,w:0,s:1,c:{a:100}},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#ffffff",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}},sm:{spc:{p:7,pl:7,pr:7,pt:8,pb:8},size:{w:"70%",h:"auto"},bg:{s:{h:"#000000",a:100}},br:{r:0,w:0,s:1,c:{a:100}},typo:{italic:!1,bold:!1,lh:1.2,fs:12,tc:{h:"#ffffff",a:100},ta:1,fw:400,ls:0,fam:{name:"Arial",g:!0}}}},text:"Add",clc:{at:102},allowedTypes:[102]}]}]}]}]}),yh=new Xe({t:2,style:{lg:{spc:{mb:15},typo:{italic:!1,bold:!1,lh:1.2,fs:16,tc:{h:"#333333",a:100},ta:1,fw:700,ls:.5,fam:{name:"Arial",g:!0}}},sm:{spc:{mb:15},typo:{italic:!1,bold:!1,lh:1.2,fs:16,tc:{h:"#333333",a:100},ta:1,fw:700,ls:.5,fam:{name:"Arial",g:!0}}}},text:"WATCH & SHOP - NEW LAUNCHES"}),Go=class extends xe{render(){return k("div",{style:{marginTop:30},class:"lc-container",children:[k(xt,{element:yh,triggerContext:this.props.triggerContext}),k("div",{style:this.getComponentStyles(),children:this.props.triggerContext.triggerData.items.map(e=>{if(e.portraitVideos?.length)return e.portraitVideos.map(t=>k("div",{className:"lc-shoppable-video",style:{flex:"1 1 0",width:"260px"},children:[k("a",{href:e.link,onClick:()=>{this.sendTriggerClicked([new pt(e)],{from:"video"})},children:k("video",{width:"100%",autoplay:!0,muted:!0,loop:!0,children:this.getSources(t.sources)})}),k(Hr,{element:gh,item:e,triggerContext:this.props.triggerContext})]}))})})]})}getSources(e){let t=e.map(i=>k("source",{src:i.url,type:i.mimeType,media:`(max-width:${i.width}px)`})),r=e.filter(i=>i.format==="mp4").sort((i,s)=>s.width-i.width)[0];r&&t.push(k("source",{src:r.url,type:r.mimeType}));let n=e.filter(i=>i.format==="m3u8").sort((i,s)=>s.width-i.width)[0];return n&&t.push(k("source",{src:n.url,type:n.mimeType})),t}getComponentStyles(){return{display:"flex",gap:10,overflowX:"auto",margin:10}}},mc=class extends At{constructor(e){super(e)}shouldStopRendering(){return!1}renderContainer(){ns(Ki(Go,{element:this.widget?.cont,triggerContext:this.triggerContext}),this.rootContainer)}},vh=Ce(Zn()),dc=class extends At{constructor(e){super(e)}shouldStopRendering(){return!1}renderContainer(){let e=this.getParentElement(`inner-letscooee-${this.engagementTrigger.shortID}`);this.rootContainer.appendChild(e),document.addEventListener(N.ADD_BUNDLE_CTA_INBOUND_EVENT,this.inboundCTAListener.bind(this),!1)}async inboundCTAListener(e){let t=this.engagementTrigger,r=`Engagement(id: ${t.engagementID}, shortID: ${t.shortID})`,n=e.detail;if(!vh.JSUtils.hasKeys(n)){b.error(`No detail received for ${r}`);return}b.log("Detail received for BYOB",n);let i=n.campaignID??n.campaignId??n.campaign_id;if(i!==t.shortID&&i!==t.engagementID){b.warn(`Current ${r} is not BYOB. Received: ${i}`);return}let s=n.items;if(!s?.length)return;let o=s.map(c=>new pt({mID:c.product_id,vID:c.variant_id,quantity:c.quantity||1}));await new ki(this.triggerContext).execute({embeddedItems:o,clickAction:{at:108,applyDiscount:!0}})}},Fi=class{runtimeData=le.get();processCartWidgetResponse(e){this.runtimeData.isCartDirty=!1,this.runtimeData.cartEngagements=e;let t=[...Rr.renderedEngagements];Rr.renderedEngagements.length=0;for(let r of e)b.log(`\u{1F4E3} ${r} received as cart embed`),!this.findAndUpdateCurrent(r,t)&&(b.log(`${r} is new`),r.isProgressBar()?new fc(r).renderSilently():r.isSubscriptionUpsell()?pc.renderCartUpsell(r):new Rr(r).renderSilently());this.removeOldWidgets(t)}processPageWidgetResponse(e){let t=[...At.renderedEngagements];At.renderedEngagements.length=0;for(let r of e)b.log(`\u{1F4E3} ${r} received as page embed`),!this.findAndUpdateCurrent(r,t)&&(b.log(`${r} is new`),r.isShoppableVideo()?new mc(r).renderSilently():r.isBYOB()?new dc(r).renderSilently():new At(r).renderSilently());this.removeOldWidgets(t)}findAndUpdateCurrent(e,t){let r=t.findIndex(n=>n.isSameTrigger(e));return r<0||e.isSubscriptionUpsell()?!1:(t[r].update(e),t[r].renderSilently(),t.splice(r,1),!0)}removeOldWidgets(e){for(let t of e)t.destroy()}},cr=class Wh{static INSTANCE;httpService=pe.get(ht);sessionManager=pe.get(st);runtimeData=le.get();loadWidgetsSubject=new Ct;constructor(){this.loadWidgetsSubject.pipe(ar(300)).subscribe(()=>{this.loadCartWidgets().catch(t=>b.error("Unable to initiate cart widgets",t)),this.loadPageWidgets().catch(t=>b.error("Unable to initiate page widgets",t))}),Dr.get().subscriber(N.CART_UPDATE_BROADCAST).subscribe(()=>this.loadWidgetsSubject.next())}static getInstance(){return this.INSTANCE||(this.INSTANCE=new Wh),this.INSTANCE}loadOrRenderWidgetsAfterCartChange(){this.runtimeData.isCartDirty?this.loadWidgetsSilently():this.renderCachedCartWidgets()}loadPageWidgetsSilently(){st.replaySubject.subscribe(async()=>{this.loadPageWidgets().catch(t=>b.error("Unable to initiate load page widgets",t))})}loadCartWidgetsSilently(){st.replaySubject.subscribe(async()=>{this.loadCartWidgets().catch(t=>b.error("Unable to initiate cart widgets",t))})}loadWidgetsSilently(){st.replaySubject.subscribe(async()=>{this.loadWidgetsSubject.next()})}async loadPageWidgets(){let t=await this.getWidgetProps();b.log("Load widgets",t),this.httpService.post("/v1/engagement/page-widgets",t).then(async r=>{let n=r.widgets.map(i=>new Mt(i));new Fi().processPageWidgetResponse(n)}).catch(r=>{b.error("Error sending widget getter",r)})}async loadCartWidgets(){let t=await this.getWidgetProps();b.log("Load cart widgets",t),this.httpService.post("/v1/engagement/cart-widgets",t).then(async r=>{let n=r.widgets.map(i=>new Mt(i));new Fi().processCartWidgetResponse(n)}).catch(r=>{b.error("Error sending widget getter",r)})}async getVariation(t){let r=await this.getWidgetProps();return this.httpService.post("/v1/engagement/get-variant",w(w({},t),r))}renderCachedCartWidgets(){new Fi().processCartWidgetResponse(this.runtimeData.cartEngagements)}async addSessionContext(t){let r=await this.sessionManager.checkSessionAndGetContext();t.sessionID=r[0],t.sessionNumber=r[1],t.landingPage=r[2],t.page=Cr.parseFromCurrent()}addAvailableEngagementShortIDs(){let t=document.querySelectorAll(".letscooee-engagement"),r=[];return t.forEach(n=>{let i=n.dataset.engagementId;i&&+i&&r.push(i)}),r}async getWidgetProps(){let t={};t.engagementIDs=this.addAvailableEngagementShortIDs(),await this.addSessionContext(t),t.currentItem=this.runtimeData.getCurrentItem();try{t.cart=await de.getCurrent().getNormalisedCart()}catch(s){b.error("Error fetching Shopify cart before sending widget call",s)}let r=new URLSearchParams(location.search),n=r.get("cooee-preview");n?t.previewIDs=n.trim().split(",").filter(s=>Number.isInteger(+s)):this.runtimeData.previewIDs?.length&&(t.previewIDs=this.runtimeData.previewIDs);let i=r.get("cooee-variant");return i?t.previewVariant=i:this.runtimeData.previewVariant&&(t.previewVariant=this.runtimeData.previewVariant),t}},hc=class{runtimeData=le.get();widgetAPIService=pe.get(cr);meddle(){let e=we.globalRef;e.account=e.account??[],e.profile=e.profile??[],e.events=e.events??[],e.screen=e.screen??[],e.page=e.page??[],this.meddlePage(),this.meddleAccount(),this.meddleEvents(),this.meddleProfile(),this.meddleScreen(),this.exposeMethods()}exposeMethods(){let e=we.globalRef;e.loadPageWidgets=()=>{this.widgetAPIService.loadPageWidgetsSilently()},e.loadCartWidgets=()=>{this.widgetAPIService.loadCartWidgetsSilently()},e.previewWidget=we.previewWidget.bind(we),e.previewPopup=we.previewPopup.bind(we)}overwritePush(e,t){ci(e,"push",t)}meddleAccount(){this.overwritePush(we.globalRef.account,(...e)=>{this.processAccount(e[0])}),we.globalRef.account.forEach(this.processAccount.bind(this))}meddleEvents(){this.overwritePush(we.globalRef.events,(...e)=>{this.processEvent(e[0])}),we.globalRef.events.forEach(this.processEvent.bind(this))}meddleProfile(){this.overwritePush(we.globalRef.profile,(...e)=>{this.processProfile(e[0])}),we.globalRef.profile.forEach(this.processProfile.bind(this))}meddleScreen(){this.overwritePush(we.globalRef.screen,(...e)=>{this.processPageName(e[0])}),we.globalRef.screen.forEach(this.processPageName.bind(this))}processAccount(e){e&&(e.appID&&we.authenticate(e),e.flags&&Ln.setFlags(e.flags))}processEvent(e){e&&(N.JS_LOAD_WHITELIST_EVENTS.includes(e[0])?we.sendEvent(e[0],e[1],this.runtimeData.jsLoadTime):we.sendEvent(e[0],e[1]))}processProfile(e){e&&we.updateProfile(e)}processPageName(e){e&&we.setPageName(e)}meddlePage(){this.overwritePush(we.globalRef.page,(...e)=>{this.processPage(e[0])}),we.globalRef.page.forEach(this.processPage.bind(this))}processPage(e){e.currentItem&&this.runtimeData.setCurrentItem(e.currentItem),e.currency&&(this.runtimeData.currencyCode=e.currency),e.shopCurrency&&(this.runtimeData.shopCurrencyCode=e.shopCurrency),e.moneyFormat&&(this.runtimeData.moneyFormat=e.moneyFormat),e.jsLoad&&(this.runtimeData.jsLoadTime=e.jsLoad),e.pageName&&we.setPageName(e.pageName)}},Hi=class{static SESSION_STORAGE=window.sessionStorage;static SESSION_STORAGE_KEY_PREFIX=N.COOEE.concat("-");static getString(e,t){return this.getItem(e)||t}static setString(e,t){this.setItem(e,t)}static remove(e){this.removeItem(e)}static getItem(e){return this.SESSION_STORAGE.getItem(this.SESSION_STORAGE_KEY_PREFIX.concat(e))}static setItem(e,t){this.SESSION_STORAGE.setItem(this.SESSION_STORAGE_KEY_PREFIX.concat(e),t)}static removeItem(e){this.SESSION_STORAGE.removeItem(this.SESSION_STORAGE_KEY_PREFIX.concat(e))}},$i=class Xo{static INSTANCE;static DEBOUNCE_TIME=1e3;static THRESHOLD=10;safeHttpService=pe.get(fe);_lastScreenOrScroll=new Date;lastPercent=0;constructor(){}set lastScreenOrScroll(t){this._lastScreenOrScroll=t}static getInstance(){return this.INSTANCE||(this.INSTANCE=new Xo),this.INSTANCE}resetScrollID(t){Hi.remove(N.SESSION_STORAGE_SCROLL_ID),this.lastScreenOrScroll=t??new Date}listen(){if(window.scrollY){let t=this.getPercentScrolledY();this.shouldSendScroll(t)&&this.sendScroll(t)}te.onDocumentLoaded(()=>{this.observeWindowScroll()})}observeWindowScroll(){On(window,"scroll").pipe(ar(Xo.DEBOUNCE_TIME),Nn(()=>{let t=this.getPercentScrolledY();if(t>100){b.warn("Received scroll percent is more than 100",t);return}if(this.shouldSendScroll(t))return t})).subscribe(t=>{this.sendScroll(t)})}shouldSendScroll(t){return Math.abs(this.lastPercent-t)>=Xo.THRESHOLD||this.lastPercent!==t&&t===100}sendScroll(t){if(t==null)return;let r={percent:t,timeMS:new Date().getTime()-this._lastScreenOrScroll.getTime()};this.lastPercent=t;let n=Hi.getString(N.SESSION_STORAGE_SCROLL_ID,""),i=new _e(N.EVENT_SCROLL,r,null,n);this.safeHttpService.sendEvent(i),Hi.setString(N.SESSION_STORAGE_SCROLL_ID,i.id.toHexString()),this._lastScreenOrScroll=new Date(i.occurred)}getPercentScrolledY(){let t=window.document.body.scrollHeight,r=window.innerHeight;return Math.ceil((window.scrollY+r)/t*100)}},gc=class qh{static ACTIVE_DURATION="aDur";static INACTIVE_DURATION="iaDur";apiService=pe.get(fe);runtimeData=le.get();listen(){document.onvisibilitychange=()=>{document.visibilityState==="visible"?this.onVisible():document.visibilityState==="hidden"&&this.onHidden()}}async onVisible(){}async onHidden(){let t=await this.runtimeData.setInactive();if(t===0){b.info("Not sending background event as user was inactive on website");return}b.info(`Sending background event with ${t} seconds`);let r={};r[qh.ACTIVE_DURATION]=t,this.apiService.sendEvent(new _e(N.EVENT_APP_BACKGROUND,r))}},yc=class{compareCartItemSubject=new Ct;constructor(){this.compareCartItemSubject.pipe(ar(100)).subscribe(this.compareCartItems.bind(this))}listen(){this.compareCartItemSubject.next(),this.overwriteXMLHttpRequest(),this.overwriteFetchMethod()}overwriteXMLHttpRequest(){let e=this,t=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.send=function(){return this.addEventListener("load",function(){e.performEvent(this._url).catch(r=>b.error("Unable to process cart change in XMLHttpRequest",r))}),t.apply(this,arguments)},b.debug("Securely overwritten window.XMLHttpRequest.send method")}overwriteFetchMethod(){let e=this,t=window.fetch;window.fetch=function(r){return t.apply(window,arguments).then(n=>(e.performEvent(r.toString()).catch(i=>b.error("Unable to process cart change in fetch",i)),n))},b.debug("Securely overwritten window.fetch method")}async performEvent(e){this.isCartManipulationURL(e)&&(le.get().isCartDirty=!0,this.compareCartItemSubject.next())}isCartManipulationURL(e){return/\/cart\/(add|change|update|clear)/.test(e)}sendChangesAsEvents(e,t){let r=e?.items,n=t.items,i=[],s=[];if(b.debug(`Comparing cart change with old count ${r?.length} to new count ${n.length}`),n?.forEach(o=>{let c=r?.find(u=>u.vID===o.vID);if(c){if(c.quantity!==o.quantity){let u=c.quantity<o.quantity,p=Math.abs(c.quantity-o.quantity),m=ee(w({},o),{quantity:p});u?i.push(m):s.push(m)}r&&te.removeFromArray(r,c)}else i.push(o)}),r)for(let o of r)s.push(o);b.debug(`Cart delta: added: ${i.length}, removed: ${s.length}`),i.length&&this.sendEvent(N.EVENT_ADD_TO_CART,{items:i}),s.length&&e.token===t.token&&this.sendEvent(N.EVENT_REMOVE_FROM_CART,{items:s}),(s.length||i.length)&&Dr.get().broadcast(N.CART_UPDATE_BROADCAST,{itemsAdded:i,itemsRemoved:s})}sendEvent(e,t){let r=new _e(e,t);pe.get(fe).sendEvent(r)}async compareCartItems(){let e=await Oe.get(oe.CURRENT_CART,{}),t=await de.getCurrent().getNormalisedCart(!0);this.sendChangesAsEvents(e,t)}},vc=class{listen(){return this.overwriteFetchMethod(),this}overwriteFetchMethod(){let e=this,t=window.fetch;window.fetch=async function(r,n){try{await e.modifyRequest(r,n)}catch(i){Be.getInstance().captureError("Failed to modify graphql request",i,{body:JSON.stringify(n?.body)})}return t(r,n)},b.debug("Securely overwritten window.fetch method for graphql query")}async modifyRequest(e,t){let r=typeof e=="string"?e:e instanceof Request?e.url:"";if(!(r.includes("graphql.json")&&t?.method==="POST")||!t.body)return;let n;if(typeof t.body=="string")try{n=JSON.parse(t.body)}catch{return}else n=t.body;b.debug("Intercepted fetch request of:",r),n?.query.includes("cartCreate")&&(t.body=await this.updatedBody(n),this.sendBuyNowEvent())}async updatedBody(e){let t=e.variables.input.attributes??[],r=await te.getCartAttributes();return e.variables.input.attributes=[...t,...r],JSON.stringify(e)}sendBuyNowEvent(){let e=le.get().getCurrentItem();if(!e)return;let t=new _e(N.EVENT_BUY_NOW_CLICKED,{items:[e]});fe.getInstance().sendEvent(t)}},ji=class{constructor(e,t){this.selectors=e,this.eventName=t,this.selectorString=e.join(",")}static INSTANCE;elements;selectorString;clickListenerCallback=e=>{let t=e.currentTarget,r=new _e(this.eventName,{class:t.className||void 0,tagName:t.tagName||void 0,id:t.id||void 0});fe.getInstance().sendEvent(r),this.removeClickListener(this.clickListenerCallback)};listenSilently(){this.listen().catch(e=>b.error(e))}async listen(){this.elements=await te.retrySelectorForElements(this.selectorString),this.elements.forEach(e=>{e.addEventListener("click",this.clickListenerCallback)})}removeClickListener(e){this.elements?.forEach(t=>{t.removeEventListener("click",e)})}},_c=class Rc extends ji{static selectors=[".product__thumbnail-list-inner > button","product-gallery-navigation > button",".product-media--thumb-container",".product-images-inner > img",".m-product-media",".swiper-button-control",".media__thumb",".slick-arrow",".productView-img-container.product-single__media",".product-gallery__thumbnail_item_inner"];constructor(){super(Rc.selectors,N.EVENT_ITEM_THUMBNAIL_CLICKED)}static getInstance(){return this.INSTANCE||(this.INSTANCE=new Rc),this.INSTANCE}},Ec=class tl extends ji{static selectors=[".jdgm-widget.jdgm-preview-badge.jdgm-preview-badge--with-link.jdgm--done-setup","reviewsio-product-ratings",".ruk_rating_snippet.tracked:not(.hidden)","a > .loox-rating",".yotpo-reviews-star-ratings-widget",".yotpo.lp-hero__reviews",".pr-rating > a",".rivyoReviewWidget"];constructor(){super(tl.selectors,N.EVENT_REVIEW_CLICKED)}static getInstance(){return this.INSTANCE||(this.INSTANCE=new tl),this.INSTANCE}},Sc=class{selector=[".gokwik-checkout button","button.cart__checkout-button","button.cart__checkout","button#checkout","button#checkout2",'button[id*="checkout" i]','button[name*="checkout" i]','button[class*="checkout" i]'].join(",");listen(){te.onDocumentLoaded(()=>{b.debug("Execution order:","document ready"),this.useLocationHash()})}useLocationHash(){let e=window.location.hash?.substring(1);if(e)if(e.includes(N.HASH_INITIATE_CHECKOUT)){document.dispatchEvent(new Event(N.THIRD_PARTY_CHECKOUT_EVENT));let t=document.querySelector(this.selector);if(!t){b.debug("No clickable cart checkout button found");return}b.debug("Clickable cart checkout button found",t),t.click()}else e.includes(N.HASH_OPEN_CART_DRAWER)&&ze.get().open()}},wc=class{trackSilently(){this.track().catch(e=>Be.getInstance().captureException(e))}async track(){let e=window.Shopify?.checkout,t=window.Shopify?.Checkout;if(!e&&!t)return;let r={};this.processSmallCheckout(e,r),this.processBigCheckout(t,r);let n=this.getTokenFromCurrentURLPath();if(n&&(r.urlToken=n),!Object.keys(r).length){b.warn("No processable data found in",e,t);return}r.referrer=document.referrer,r.url=location.href;let i=await pe.get(st).checkSessionAndGetContext();r.sessionID=i[0],this.trackOrder(r)}processSmallCheckout(e,t){e&&(e.order_id&&(t.orderID=e.order_id.toString()),e.token&&(t.checkoutToken=e.token.toString()),e.customer_id&&(t.customerID=e.customer_id.toString()))}processBigCheckout(e,t){e&&(e.token&&!t.checkoutToken&&(t.checkoutToken=e.token.toString()),e.cartToken&&(t.cartToken=e.cartToken.toString()))}trackOrder(e){b.info("Found order to be send",e),fe.getInstance().trackOrder(e)}getTokenFromCurrentURLPath(){let e=new RegExp("[A-Fa-f0-9]{28,32}");return location.pathname?.split("/").find(t=>t.length&&e.test(t))}},Yo=class{static attachCheckoutListener(){window.gokwikSdk&&window.gokwikSdk.on("checkout_initiated",async()=>{let e=await de.getCurrent().getNormalisedCart(),t={via:"GoKwik",items:e.items,cartToken:e.token,amount:{value:e.amount,currency:e.currency}},r=new _e(N.EVENT_CHECKOUT_STARTED,t);fe.getInstance().sendEvent(r)})}},bc=class{async migrate(){}};Et.escape=_h.MustacheUtils.escapeHtml;var we=class{static globalRef;static authenticated;static async initForMerchantWebsiteOnly(){window.cooeeSDKPreview||(this.initGlobalReference(),await new bc().migrate(),this.autoAuthenticate(),new hc().meddle(),new gc().listen(),new wc().trackSilently(),new en().listen(),new yc().listen(),new vc().listen(),new Sc().listen(),pe.get($i).listen(),pe.get(Ec).listenSilently(),pe.get(_c).listenSilently(),pe.get(cr).loadPageWidgetsSilently(),this.attachGoKwikListeners(),this.storePreviewParams(),this.setupPreviewListeners(),Zt.watch())}static async initForAll(){this.injectWidgetAssets()}static initGlobalReference(){window.CooeeSDK||ci(window,"CooeeSDK",{}),this.globalRef=window.CooeeSDK,ci(this.globalRef,"config",new Le),ci(this.globalRef,"runtimeData",new le),b.debug("Global reference initialised")}static injectWidgetAssets(){if(document.currentScript.src.includes("localhost")){let e="http://localhost:8002";dt.injectScriptURL(`${e}/main.js`),dt.injectStylesheet(`${e}/styles.css`)}else{let e=`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${N.SDK_VERSION}`;dt.injectScriptURL(`${e}/dist/widget-sdk.min.js`,"cooee-widget-sdk"),dt.injectStylesheet(`${e}/dist/widget-sdk.min.css`)}}static autoAuthenticate(){let e=Pe.getShopName();e&&this.authenticate({shopifyShop:e})}static authenticate(e){if(this.authenticated)return;let t=e.appID?.trim(),r=e.shopifyShop;if((te.isNull(t)||t.length!==24)&&te.isNull(r)){b.warn("Cooee App ID or Shop name is not configured");return}this.authenticated=!0,pe.get(st).init(e)}static sendEvent(e,t,r){for(let i in t)if(i.length>3&&i.toLowerCase().startsWith("ce "))throw new Error("Event property name cannot start with 'CE '");let n=new _e(e,t);n.occurred=r??new Date,pe.get(fe).sendEvent(n)}static updateProfile(e){for(let t in e)if(t.toLowerCase().startsWith("ce "))throw new Error("User property name cannot start with 'CE '");pe.get(fe).updateProfile(e)}static setPageName(e){if(!e)return;let t=le.get(),r=t.pageName;if(e===r)return;if(t.pageName=e,e==="cart"&&pe.get(cr).loadOrRenderWidgetsAfterCartChange(),N.BLACKLISTED_PAGE_NAMES.some(s=>e.includes(s))){pe.get($i).resetScrollID();return}let n={};r&&(n.ps=r);let i=new _e(N.EVENT_SCREEN_VIEW,n);i.occurred=t.jsLoadTime,pe.get(fe).sendEvent(i),pe.get($i).resetScrollID(i.occurred)}static previewPopup(e,t){new Bi(t).render(e)}static previewWidget(e){new At(new Mt(e)).render()}static setupPreviewListeners(){if(window.opener){try{window.opener.postMessage({action:"COOEE_READY_FOR_PREVIEW"},"*")}catch(e){b.error(e)}window.addEventListener("message",e=>{if(b.debug("Received event",e),!e.origin.includes("letscooee.com")&&!e.origin.includes("localhost"))return;let t=e.data;typeof t=="object"&&(t.action==="POPUP_PREVIEW"?(this.previewPopup(t.engagementTrigger),e.source?.postMessage({action:"PREVIEW_SUCCESSFUL"},e.origin)):t.action==="WIDGET_PREVIEW"&&(this.previewWidget(t.engagementTrigger),e.source?.postMessage({action:"PREVIEW_SUCCESSFUL"},e.origin)))})}}static attachGoKwikListeners(){let e=le.get();window.addEventListener("kp-modal:opened",()=>{e.isGoKwikPopupOpen=!0}),window.addEventListener("user-loggedin",t=>{let{token:r}=t.detail;r&&this.updateProfile({goKwikToken:r})}),window.gokwikSdk?Yo.attachCheckoutListener():window.addEventListener("gokwikLoaded",Yo.attachCheckoutListener)}static storePreviewParams(){let e=le.get(),t=new URLSearchParams(location.search),r=t.get("cooee-preview");r&&(e.previewIDs=r.trim().split(",").filter(i=>Number.isInteger(+i)));let n=t.get("cooee-variant");n&&(e.previewVariant=n)}};b.configure();b.logBrand();b.debug("Execution order:","top");window.cooeeShopifyScriptLoaded||(window.cooeeShopifyScriptLoaded=!0,(async()=>(b.debug("Execution order:","IIFE start"),await we.initForMerchantWebsiteOnly(),await we.initForAll(),b.debug("Execution order:","IIFE end")))());b.debug("Execution order:","bottom");})();
|
package/dist/widget-sdk.min.js
CHANGED
|
@@ -4,7 +4,7 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
|
4
4
|
`);return r>=0?n.slice(0,r):n}function su(t,e){return t?e?`${t} ${e}`:t:e||""}var wg=ft({__forward_ref__:ft});function vc(t){return t.__forward_ref__=vc,t.toString=function(){return re(this())},t}function ee(t){return Sg(t)?t():t}function Sg(t){return typeof t=="function"&&t.hasOwnProperty(wg)&&t.__forward_ref__===vc}function Et(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ms(t){return au(t,yc)||au(t,_c)}function au(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ig(t){return t&&(t[yc]||t[_c])||null}function uu(t){return t&&(t.hasOwnProperty(lu)||t.hasOwnProperty(Tg))?t[lu]:null}var yc=ft({\u0275prov:ft}),lu=ft({\u0275inj:ft}),_c=ft({ngInjectableDef:ft}),Tg=ft({ngInjectorDef:ft}),ct=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,e){this._desc=t,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=Et({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function bc(t){return t&&!!t.\u0275providers}var Cg=ft({\u0275cmp:ft}),Ng=ft({\u0275dir:ft}),Og=ft({\u0275pipe:ft}),cu=ft({\u0275fac:ft}),Jn=ft({__NG_ELEMENT_ID__:ft}),fu=ft({__NG_ENV_ID__:ft});function Oi(t){return typeof t=="string"?t:t==null?"":String(t)}function xg(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Oi(t)}function Dg(t,e){throw new it(-200,t)}function js(t,e){throw new it(-201,!1)}var q=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(q||{}),No;function Ec(){return No}function jt(t){let e=No;return No=t,e}function wc(t,e,n){let r=Ms(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&q.Optional)return null;if(e!==void 0)return e;js(t,"Injector")}var kg={},er=kg,Ag="__NG_DI_FLAG__",ui="ngTempTokenPath",Rg="ngTokenPath",Lg=/\n/gm,Pg="\u0275",du="__source",bn;function Mg(){return bn}function Se(t){let e=bn;return bn=t,e}function jg(t,e=q.Default){if(bn===void 0)throw new it(-203,!1);return bn===null?wc(t,void 0,e):bn.get(t,e&q.Optional?null:void 0,e)}function lt(t,e=q.Default){return(Ec()||jg)(ee(t),e)}function at(t,e=q.Default){return lt(t,xi(e))}function xi(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Oo(t){let e=[];for(let n=0;n<t.length;n++){let r=ee(t[n]);if(Array.isArray(r)){if(r.length===0)throw new it(900,!1);let i,o=q.Default;for(let s=0;s<r.length;s++){let a=r[s],u=Vg(a);typeof u=="number"?u===-1?i=a.token:o|=u:i=a}e.push(lt(i,o))}else e.push(lt(r))}return e}function Vg(t){return t[Ag]}function Fg(t,e,n,r){let i=t[ui];throw e[du]&&i.unshift(e[du]),t.message=Ug(`
|
|
5
5
|
`+t.message,i,n,r),t[Rg]=i,t[ui]=null,t}function Ug(t,e,n,r=null){t=t&&t.charAt(0)===`
|
|
6
6
|
`&&t.charAt(1)==Pg?t.slice(2):t;let i=re(e);if(Array.isArray(e))i=e.map(re).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):re(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Lg,`
|
|
7
|
-
`)}`}function Tn(t,e){return t.hasOwnProperty(cu)?t[cu]:null}function Vs(t,e){t.forEach(n=>Array.isArray(n)?Vs(n,e):e(n))}function Hg(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Sc(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Bg(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(i===1)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function $g(t,e,n){let r=vr(t,e);return r>=0?t[r|1]=n:(r=~r,Bg(t,r,e,n)),r}function io(t,e){let n=vr(t,e);if(n>=0)return t[n|1]}function vr(t,e){return zg(t,e,1)}function zg(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}var Cn={},ze=[],li=new ct(""),Ic=new ct("",-1),Tc=new ct(""),Cc=class{get(t,e=er){if(e===er){let n=new Error(`NullInjectorError: No provider for ${re(t)}!`);throw n.name="NullInjectorError",n}return e}};function Di(t){return t[Cg]||null}function Nc(t){return t[Ng]||null}function Oc(t){return t[Og]||null}function Gg(t){let e=Di(t)||Nc(t)||Oc(t);return e!==null&&e.standalone}function qg(t){return{\u0275providers:t}}function Wg(...t){return{\u0275providers:xc(!0,t),\u0275fromNgModule:!0}}function xc(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Vs(e,s=>{let a=s;xo(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Dc(i,o),n}function Dc(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:i}=t[n];Fs(i,o=>{e(o,r)})}}function xo(t,e,n,r){if(t=ee(t),!t)return!1;let i=null,o=uu(t),s=!o&&Di(t);if(!o&&!s){let u=t.ngModule;if(o=uu(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of u)xo(l,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Vs(o.imports,d=>{xo(d,e,n,r)&&(l||=[],l.push(d))})}finally{}l!==void 0&&Dc(l,e)}if(!a){let l=Tn(i)||(()=>new i);e({provide:i,useFactory:l,deps:ze},i),e({provide:Tc,useValue:i,multi:!0},i),e({provide:li,useValue:()=>lt(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let l=t;Fs(u,d=>{e(d,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Fs(t,e){for(let n of t)bc(n)&&(n=n.\u0275providers),Array.isArray(n)?Fs(n,e):e(n)}var Yg=ft({provide:String,useValue:ft});function kc(t){return t!==null&&typeof t=="object"&&Yg in t}function Kg(t){return!!(t&&t.useExisting)}function Zg(t){return!!(t&&t.useFactory)}function Do(t){return typeof t=="function"}var Us=new ct(""),Qr={},Qg={},oo;function Hs(){return oo===void 0&&(oo=new Cc),oo}var nr=class{},Bs=class extends nr{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,Ao(t,o=>this.processProvider(o)),this.records.set(Ic,gn(void 0,this)),r.has("environment")&&this.records.set(nr,gn(void 0,this));let i=this.records.get(Us);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Tc,ze,q.Self))}destroy(){Kn(this),this._destroyed=!0;let t=et(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),et(t)}}onDestroy(t){return Kn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Kn(this);let e=Se(this),n=jt(void 0),r;try{return t()}finally{Se(e),jt(n)}}get(t,e=er,n=q.Default){if(Kn(this),t.hasOwnProperty(fu))return t[fu](this);n=xi(n);let r,i=Se(this),o=jt(void 0);try{if(!(n&q.SkipSelf)){let a=this.records.get(t);if(a===void 0){let u=rm(t)&&Ms(t);u&&this.injectableDefInScope(u)?a=gn(ko(t),Qr):a=null,this.records.set(t,a)}if(a!=null)return this.hydrate(t,a)}let s=n&q.Self?Hs():this.parent;return e=n&q.Optional&&e===er?null:e,s.get(t,e)}catch(s){if(s.name==="NullInjectorError"){if((s[ui]=s[ui]||[]).unshift(re(t)),i)throw s;return Fg(s,t,"R3InjectorError",this.source)}else throw s}finally{jt(o),Se(i)}}resolveInjectorInitializers(){let t=et(null),e=Se(this),n=jt(void 0),r;try{let i=this.get(li,ze,q.Self);for(let o of i)o()}finally{Se(e),jt(n),et(t)}}toString(){let t=[],e=this.records;for(let n of e.keys())t.push(re(n));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ee(t);let e=Do(t)?t:ee(t&&t.provide),n=Jg(t);if(!Do(t)&&t.multi===!0){let r=this.records.get(e);r||(r=gn(void 0,Qr,!0),r.factory=()=>Oo(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,n)}hydrate(t,e){let n=et(null);try{return e.value===Qr&&(e.value=Qg,e.value=e.factory()),typeof e.value=="object"&&e.value&&nm(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{et(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let e=ee(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function ko(t){let e=Ms(t),n=e!==null?e.factory:Tn(t);if(n!==null)return n;if(t instanceof ct)throw new it(204,!1);if(t instanceof Function)return Xg(t);throw new it(204,!1)}function Xg(t){if(t.length>0)throw new it(204,!1);let e=Ig(t);return e!==null?()=>e.factory(t):()=>new t}function Jg(t){if(kc(t))return gn(void 0,t.useValue);{let e=tm(t);return gn(e,Qr)}}function tm(t,e,n){let r;if(Do(t)){let i=ee(t);return Tn(i)||ko(i)}else if(kc(t))r=()=>ee(t.useValue);else if(Zg(t))r=()=>t.useFactory(...Oo(t.deps||[]));else if(Kg(t))r=()=>lt(ee(t.useExisting));else{let i=ee(t&&(t.useClass||t.provide));if(em(t))r=()=>new i(...Oo(t.deps));else return Tn(i)||ko(i)}return r}function Kn(t){if(t.destroyed)throw new it(205,!1)}function gn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function em(t){return!!t.deps}function nm(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function rm(t){return typeof t=="function"||typeof t=="object"&&t instanceof ct}function Ao(t,e){for(let n of t)Array.isArray(n)?Ao(n,e):n&&bc(n)?Ao(n.\u0275providers,e):e(n)}function Ac(t,e){t instanceof Bs&&Kn(t);let n,r=Se(t),i=jt(void 0);try{return e()}finally{Se(r),jt(i)}}function im(){return Ec()!==void 0||Mg()!=null}var be=0,K=1,U=2,Xt=3,ie=4,ce=5,rr=6,hu=7,kt=8,ir=9,ye=10,Gt=11,or=12,pu=13,Mn=14,le=15,Nn=16,mn=17,On=18,ki=19,Rc=20,De=21,so=22,ci=23,Bt=24,ao=25,Lt=26,Lc=1,sr=7,om=8,fi=9,Vt=10;function Be(t){return Array.isArray(t)&&typeof t[Lc]=="object"}function nn(t){return Array.isArray(t)&&t[Lc]===!0}function Pc(t){return(t.flags&4)!==0}function Ai(t){return t.componentOffset>-1}function Mc(t){return(t.flags&1)===1}function rn(t){return!!t.template}function di(t){return(t[U]&512)!==0}function yr(t){return(t[U]&256)===256}var sm=class{previousValue;currentValue;firstChange;constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function jc(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function am(t){return t.type.prototype.ngOnChanges&&(t.setInput=lm),um}function um(){let t=Fc(this),e=t?.current;if(e){let n=t.previous;if(n===Cn)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function lm(t,e,n,r,i){let o=this.declaredInputs[r],s=Fc(t)||cm(t,{previous:Cn,current:null}),a=s.current||(s.current={}),u=s.previous,l=u[o];a[o]=new sm(l&&l.currentValue,n,u===Cn),jc(t,e,i,n)}var Vc="__ngSimpleChanges__";function Fc(t){return t[Vc]||null}function cm(t,e){return t[Vc]=e}var fm=null,dt=function(t,e=null,n){fm?.(t,e,n)},dm="svg",hm="math";function Ae(t){for(;Array.isArray(t);)t=t[be];return t}function Uc(t,e){return Ae(e[t])}function on(t,e){return Ae(e[t.index])}function $s(t,e){return t.data[e]}function Hc(t,e){return t[e]}function Ge(t,e){let n=e[t];return Be(n)?n:n[be]}function zs(t){return(t[U]&128)===128}function xn(t,e){return e==null?null:t[e]}function Bc(t){t[mn]=0}function Gs(t){t[U]&1024||(t[U]|=1024,zs(t)&&Li(t))}function pm(t,e){for(;t>0;)e=e[Mn],t--;return e}function Ri(t){return!!(t[U]&9216||t[Bt]?.dirty)}function Ro(t){t[ye].changeDetectionScheduler?.notify(8),t[U]&64&&(t[U]|=1024),Ri(t)&&Li(t)}function Li(t){t[ye].changeDetectionScheduler?.notify(0);let e=qe(t);for(;e!==null&&!(e[U]&8192||(e[U]|=8192,!zs(e)));)e=qe(e)}function $c(t,e){if(yr(t))throw new it(911,!1);t[De]===null&&(t[De]=[]),t[De].push(e)}function gm(t,e){if(t[De]===null)return;let n=t[De].indexOf(e);n!==-1&&t[De].splice(n,1)}function qe(t){let e=t[Xt];return nn(e)?e[Xt]:e}var Z={lFrame:Xc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Lo=!1;function mm(){return Z.lFrame.elementDepthCount}function vm(){Z.lFrame.elementDepthCount++}function ym(){Z.lFrame.elementDepthCount--}function zc(){return Z.bindingsEnabled}function _m(){return Z.skipHydrationRootTNode!==null}function bm(t){return Z.skipHydrationRootTNode===t}function Em(){Z.skipHydrationRootTNode=null}function yt(){return Z.lFrame.lView}function fe(){return Z.lFrame.tView}function _r(){let t=Gc();for(;t!==null&&t.type===64;)t=t.parent;return t}function Gc(){return Z.lFrame.currentTNode}function wm(){let t=Z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function jn(t,e){let n=Z.lFrame;n.currentTNode=t,n.isParent=e}function qc(){return Z.lFrame.isParent}function Sm(){Z.lFrame.isParent=!1}function Wc(){return Lo}function gu(t){let e=Lo;return Lo=t,e}function Yc(){let t=Z.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Im(t){return Z.lFrame.bindingIndex=t}function Pi(){return Z.lFrame.bindingIndex++}function Tm(t){let e=Z.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Cm(){return Z.lFrame.inI18n}function Nm(t,e){let n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=t,Po(e)}function Om(){return Z.lFrame.currentDirectiveIndex}function Po(t){Z.lFrame.currentDirectiveIndex=t}function xm(t){let e=Z.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Kc(t){Z.lFrame.currentQueryIndex=t}function Dm(t){let e=t[K];return e.type===2?e.declTNode:e.type===1?t[ce]:null}function Zc(t,e,n){if(n&q.SkipSelf){let i=e,o=t;for(;(i=i.parent,i===null&&!(n&q.Host))&&(i=Dm(o),!(i===null||(o=o[Mn],i.type&10))););if(i===null)return!1;e=i,t=o}let r=Z.lFrame=Qc();return r.currentTNode=e,r.lView=t,!0}function qs(t){let e=Qc(),n=t[K];Z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Qc(){let t=Z.lFrame,e=t===null?null:t.child;return e===null?Xc(t):e}function Xc(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Jc(){let t=Z.lFrame;return Z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var tf=Jc;function Ws(){let t=Jc();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function km(t){return(Z.lFrame.contextLView=pm(t,Z.lFrame.contextLView))[kt]}function sn(){return Z.lFrame.selectedIndex}function We(t){Z.lFrame.selectedIndex=t}function Am(){let t=Z.lFrame;return $s(t.tView,t.selectedIndex)}function Rm(){return Z.lFrame.currentNamespace}var ef=!0;function Ys(){return ef}function Ks(t){ef=t}function Lm(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=am(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function nf(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:u,ngOnDestroy:l}=i;o&&(t.contentHooks??=[]).push(-n,o),s&&((t.contentHooks??=[]).push(n,s),(t.contentCheckHooks??=[]).push(n,s)),a&&(t.viewHooks??=[]).push(-n,a),u&&((t.viewHooks??=[]).push(n,u),(t.viewCheckHooks??=[]).push(n,u)),l!=null&&(t.destroyHooks??=[]).push(n,l)}}function Xr(t,e,n){rf(t,e,3,n)}function Jr(t,e,n,r){(t[U]&3)===n&&rf(t,e,n,r)}function uo(t,e){let n=t[U];(n&3)===e&&(n&=16383,n+=1,t[U]=n)}function rf(t,e,n,r){let i=r!==void 0?t[mn]&65535:0,o=r??-1,s=e.length-1,a=0;for(let u=i;u<s;u++)if(typeof e[u+1]=="number"){if(a=e[u],r!=null&&a>=r)break}else e[u]<0&&(t[mn]+=65536),(a<o||o==-1)&&(Pm(t,n,e,u),t[mn]=(t[mn]&4294901760)+u+2),u++}function mu(t,e){dt(4,t,e);let n=et(null);try{e.call(t)}finally{et(n),dt(5,t,e)}}function Pm(t,e,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=t[s];i?t[U]>>14<t[mn]>>16&&(t[U]&3)===e&&(t[U]+=16384,mu(a,o)):mu(a,o)}var En=-1,Zs=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,e,n){this.factory=t,this.canSeeViewProviders=e,this.injectImpl=n}};function Mm(t){return t instanceof Zs}function jm(t){return(t.flags&8)!==0}function Vm(t){return(t.flags&16)!==0}function Fm(t,e,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++],a=n[r++];t.setAttribute(e,s,a,o)}else{let o=i,s=n[++r];Hm(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function Um(t){return t===3||t===4||t===6}function Hm(t){return t.charCodeAt(0)===64}function Qs(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let i=e[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?vu(t,n,i,null,e[++r]):vu(t,n,i,null,null))}}return t}function vu(t,e,n,r,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(t[o+1]=i);return}else if(r===t[o+1]){t[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),r!==null&&t.splice(o++,0,r),i!==null&&t.splice(o++,0,i)}var lo={},Bm=class{injector;parentInjector;constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,n){n=xi(n);let r=this.injector.get(t,lo,n);return r!==lo||e===lo?r:this.parentInjector.get(t,e,n)}};function $m(t){return t!==En}function Mo(t){return t&32767}function zm(t){return t>>16}function jo(t,e){let n=zm(t),r=e;for(;n>0;)r=r[Mn],n--;return r}var Vo=!0;function hi(t){let e=Vo;return Vo=t,e}var Gm=256,of=Gm-1,sf=5,qm=0,ue={};function Wm(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jn)&&(r=n[Jn]),r==null&&(r=n[Jn]=qm++);let i=r&of,o=1<<i;e.data[t+(i>>sf)]|=o}function af(t,e){let n=uf(t,e);if(n!==-1)return n;let r=e[K];r.firstCreatePass&&(t.injectorIndex=e.length,co(r.data,t),co(e,null),co(r.blueprint,null));let i=lf(t,e),o=t.injectorIndex;if($m(i)){let s=Mo(i),a=jo(i,e),u=a[K].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|u[s+l]}return e[o+8]=i,o}function co(t,e){t.push(0,0,0,0,0,0,0,0,e)}function uf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function lf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=gf(i),r===null)return En;if(n++,i=i[Mn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return En}function Ym(t,e,n){Wm(t,e,n)}function cf(t,e,n){if(n&q.Optional||t!==void 0)return t;js(e,"NodeInjector")}function ff(t,e,n,r){if(n&q.Optional&&r===void 0&&(r=null),(n&(q.Self|q.Host))===0){let i=t[ir],o=jt(void 0);try{return i?i.get(e,r,n&q.Optional):wc(e,r,n&q.Optional)}finally{jt(o)}}return cf(r,e,n)}function df(t,e,n,r=q.Default,i){if(t!==null){if(e[U]&2048&&!(r&q.Self)){let s=Jm(t,e,n,r,ue);if(s!==ue)return s}let o=hf(t,e,n,r,ue);if(o!==ue)return o}return ff(e,n,r,i)}function hf(t,e,n,r,i){let o=Qm(n);if(typeof o=="function"){if(!Zc(e,t,r))return r&q.Host?cf(i,n,r):ff(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&q.Optional))js(n);else return s}finally{tf()}}else if(typeof o=="number"){let s=null,a=uf(t,e),u=En,l=r&q.Host?e[le][ce]:null;for((a===-1||r&q.SkipSelf)&&(u=a===-1?lf(t,e):e[a+8],u===En||!_u(r,!1)?a=-1:(s=e[K],a=Mo(u),e=jo(u,e)));a!==-1;){let d=e[K];if(yu(o,a,d.data)){let h=Km(a,e,n,s,r,l);if(h!==ue)return h}u=e[a+8],u!==En&&_u(r,e[K].data[a+8]===l)&&yu(o,a,e)?(s=d,a=Mo(u),e=jo(u,e)):a=-1}}return i}function Km(t,e,n,r,i,o){let s=e[K],a=s.data[t+8],u=r==null?Ai(a)&&Vo:r!=s&&(a.type&3)!==0,l=i&q.Host&&o===a,d=Zm(a,s,n,u,l);return d!==null?Fo(e,s,d,a):ue}function Zm(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,u=t.directiveStart,l=t.directiveEnd,d=o>>20,h=r?a:a+d,y=i?a+d:l;for(let _=h;_<y;_++){let w=s[_];if(_<u&&n===w||_>=u&&w.type===n)return _}if(i){let _=s[u];if(_&&rn(_)&&_.type===n)return u}return null}function Fo(t,e,n,r){let i=t[n],o=e.data;if(Mm(i)){let s=i;s.resolving&&Dg(xg(o[n]));let a=hi(s.canSeeViewProviders);s.resolving=!0;let u,l=s.injectImpl?jt(s.injectImpl):null,d=Zc(t,r,q.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&Lm(n,o[n],e)}finally{l!==null&&jt(l),hi(a),s.resolving=!1,tf()}}return i}function Qm(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Jn)?t[Jn]:void 0;return typeof e=="number"?e>=0?e&of:Xm:e}function yu(t,e,n){let r=1<<t;return!!(n[e+(t>>sf)]&r)}function _u(t,e){return!(t&q.Self)&&!(t&q.Host&&e)}var pf=class{_tNode;_lView;constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return df(this._tNode,this._lView,t,xi(n),e)}};function Xm(){return new pf(_r(),yt())}function Jm(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[U]&2048&&!di(s);){let a=hf(o,s,n,r|q.Self,ue);if(a!==ue)return a;let u=o.parent;if(!u){let l=s[Rc];if(l){let d=l.get(n,ue,r);if(d!==ue)return d}u=gf(s),s=s[Mn]}o=u}return i}function gf(t){let e=t[K],n=e.type;return n===2?e.declTNode:n===1?t[ce]:null}function bu(t,e=null,n=null,r){let i=tv(t,e,n,r);return i.resolveInjectorInitializers(),i}function tv(t,e=null,n=null,r,i=new Set){let o=[n||ze,Wg(t)];return r=r||(typeof t=="object"?void 0:re(t)),new Bs(o,e||Hs(),r||null,i)}var Mi=class mf{static THROW_IF_NOT_FOUND=er;static NULL=new Cc;static create(e,n){if(Array.isArray(e))return bu({name:""},n,e,"");{let r=e.name??"";return bu({name:r},e.parent,e.providers,r)}}static \u0275prov=Et({token:mf,providedIn:"any",factory:()=>lt(Ic)});static __NG_ELEMENT_ID__=-1},ev=new ct("");ev.__NG_ELEMENT_ID__=t=>{let e=_r();if(e===null)throw new it(204,!1);if(e.type&2)return e.value;if(t&q.Optional)return null;throw new it(204,!1)};var vf=!1,yf=(()=>{class t{static __NG_ELEMENT_ID__=rv;static __NG_ENV_ID__=n=>n}return t})(),nv=class extends yf{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return $c(this._lView,t),()=>gm(this._lView,t)}};function rv(){return new nv(yt())}var br=class{},Xs=new ct("",{providedIn:"root",factory:()=>!1}),_f=new ct(""),Js=new ct(""),ji=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Wp(!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=Et({token:t,providedIn:"root",factory:()=>new t})}return t})(),iv=class extends mr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,im()&&(this.destroyRef=at(yf,{optional:!0})??void 0,this.pendingTasks=at(ji,{optional:!0})??void 0)}emit(t){let e=et(null);try{super.next(t)}finally{et(e)}}subscribe(t,e,n){let r=t,i=e||(()=>null),o=n;if(t&&typeof t=="object"){let a=t;r=a.next?.bind(a),i=a.error?.bind(a),o=a.complete?.bind(a)}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 t instanceof ve&&t.add(s),s}wrapInTimeout(t){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{t(e),n!==void 0&&this.pendingTasks?.remove(n)})}}},Ne=iv;function pi(...t){}function bf(t){let e,n;function r(){t=pi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Eu(t){return queueMicrotask(()=>t()),()=>{t=pi}}var ta="isAngularZone",gi=ta+"_ID",ov=0,$t=class Uo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ne(!1);onMicrotaskEmpty=new Ne(!1);onStable=new Ne(!1);onError=new Ne(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=vf}=e;if(typeof Zone>"u")throw new it(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,uv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ta)===!0}static assertInAngularZone(){if(!Uo.isInAngularZone())throw new it(909,!1)}static assertNotInAngularZone(){if(Uo.isInAngularZone())throw new it(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,sv,pi,pi);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},sv={};function ea(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function av(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){bf(()=>{t.callbackScheduled=!1,Ho(t),t.isCheckStableRunning=!0,ea(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Ho(t)}function uv(t){let e=()=>{av(t)},n=ov++;t._inner=t._inner.fork({name:"angular",properties:{[ta]:!0,[gi]:n,[gi+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(lv(u))return r.invokeTask(o,s,a,u);try{return wu(t),r.invokeTask(o,s,a,u)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Su(t)}},onInvoke:(r,i,o,s,a,u,l)=>{try{return wu(t),r.invoke(o,s,a,u,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!cv(u)&&e(),Su(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Ho(t),ea(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Ho(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Su(t){t._nesting--,ea(t)}var Ef=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ne;onMicrotaskEmpty=new Ne;onStable=new Ne;onError=new Ne;run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}};function lv(t){return wf(t,"__ignore_ng_zone__")}function cv(t){return wf(t,"__scheduler_tick__")}function wf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Er=class{_console=console;handleError(t){this._console.error("ERROR",t)}},fv=new ct("",{providedIn:"root",factory:()=>{let t=at($t),e=at(Er);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function dv(){return Sf(_r(),yt())}function Sf(t,e){return new If(on(t,e))}var If=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=dv}return t})();function fo(t,e){let n=xp(t),r=n[Oe];return e?.equal&&(r.equal=e.equal),n.set=i=>Wl(r,i),n.update=i=>Dp(r,i),n.asReadonly=hv.bind(n),n}function hv(){let t=this[Oe];if(t.readonlyFn===void 0){let e=()=>this();e[Oe]=t,t.readonlyFn=e}return t.readonlyFn}function Tf(t){return(t.flags&128)===128}var Cf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Cf||{}),Nf=new Map,pv=0;function gv(){return pv++}function mv(t){Nf.set(t[ki],t)}function Bo(t){Nf.delete(t[ki])}var Iu="__ngContext__";function wr(t,e){Be(e)?(t[Iu]=e[ki],mv(e)):t[Iu]=e}function Of(t){return Df(t[or])}function xf(t){return Df(t[ie])}function Df(t){for(;t!==null&&!nn(t);)t=t[ie];return t}var $o;function vv(t){$o=t}function kf(){if($o!==void 0)return $o;if(typeof document<"u")return document;throw new it(210,!1)}var Af=new ct("",{providedIn:"root",factory:()=>yv}),yv="ng",Rf=new ct(""),na=new ct("",{providedIn:"platform",factory:()=>"unknown"}),Lf=new ct("",{providedIn:"root",factory:()=>kf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),_v="h",bv="b",Pf=!1,Ev=new ct("",{providedIn:"root",factory:()=>Pf}),Mf=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(Mf||{}),ra=new ct(""),Tu=new Set;function Vi(t){Tu.has(t)||(Tu.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var wv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=Et({token:t,providedIn:"root",factory:()=>new t})}return t})(),Sv=()=>null;function jf(t,e,n=!1){return Sv(t,e,n)}function Vf(t,e){let n=t.contentQueries;if(n!==null){let r=et(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=t.data[s];Kc(o),a.contentQueries(2,e[s],s)}}}finally{et(r)}}}function zo(t,e,n){Kc(0);let r=et(null);try{e(t,n)}finally{et(r)}}function Ff(t,e,n){if(Pc(e)){let r=et(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let u=n[s];a.contentQueries(1,u,s)}}}finally{et(r)}}}var ge=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ge||{}),Vr;function Iv(){if(Vr===void 0&&(Vr=null,ai.trustedTypes))try{Vr=ai.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Vr}function Fi(t){return Iv()?.createHTML(t)||t}var Fr;function Tv(){if(Fr===void 0&&(Fr=null,ai.trustedTypes))try{Fr=ai.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Fr}function Cu(t){return Tv()?.createHTML(t)||t}var an=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${mc})`}},Cv=class extends an{getTypeName(){return"HTML"}},Nv=class extends an{getTypeName(){return"Style"}},Ov=class extends an{getTypeName(){return"Script"}},xv=class extends an{getTypeName(){return"URL"}},Dv=class extends an{getTypeName(){return"ResourceURL"}};function Ce(t){return t instanceof an?t.changingThisBreaksApplicationSecurity:t}function Fe(t,e){let n=kv(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${mc})`)}return n===e}function kv(t){return t instanceof an&&t.getTypeName()||null}function Av(t){return new Cv(t)}function Rv(t){return new Nv(t)}function Lv(t){return new Ov(t)}function Pv(t){return new xv(t)}function Mv(t){return new Dv(t)}function jv(t){let e=new Fv(t);return Uv()?new Vv(e):e}var Vv=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let e=new window.DOMParser().parseFromString(Fi(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.firstChild?.remove(),e)}catch{return null}}},Fv=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=Fi(t),e}};function Uv(){try{return!!new window.DOMParser().parseFromString(Fi(""),"text/html")}catch{return!1}}var Hv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ia(t){return t=String(t),t.match(Hv)?t:"unsafe:"+t}function Ee(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Sr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Uf=Ee("area,br,col,hr,img,wbr"),Hf=Ee("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Bf=Ee("rp,rt"),Bv=Sr(Bf,Hf),$v=Sr(Hf,Ee("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")),zv=Sr(Bf,Ee("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")),Nu=Sr(Uf,$v,zv,Bv),$f=Ee("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gv=Ee("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"),qv=Ee("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"),Wv=Sr($f,Gv,qv),Yv=Ee("script,style,template"),Kv=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let e=t.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=Xv(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=Qv(e);if(i){e=i;break}e=r.pop()}}return this.buf.join("")}startElement(t){let e=Ou(t).toLowerCase();if(!Nu.hasOwnProperty(e))return this.sanitizedSomething=!0,!Yv.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=t.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!Wv.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;$f[s]&&(a=ia(a)),this.buf.push(" ",o,'="',xu(a),'"')}return this.buf.push(">"),!0}endElement(t){let e=Ou(t).toLowerCase();Nu.hasOwnProperty(e)&&!Uf.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(xu(t))}};function Zv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Qv(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw zf(e);return e}function Xv(t){let e=t.firstChild;if(e&&Zv(t,e))throw zf(e);return e}function Ou(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function zf(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Jv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ty=/([^\#-~ |!])/g;function xu(t){return t.replace(/&/g,"&").replace(Jv,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(ty,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ur;function Gf(t,e){let n=null;try{Ur=Ur||jv(t);let r=e?String(e):"";n=Ur.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=Ur.getInertBodyElement(r)}while(r!==o);let s=new Kv().sanitizeChildren(Du(n)||n);return Fi(s)}finally{if(n){let r=Du(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Du(t){return"content"in t&&ey(t)?t.content:null}function ey(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var pe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(pe||{});function qf(t){let e=Wf();return e?Cu(e.sanitize(pe.HTML,t)||""):Fe(t,"HTML")?Cu(Ce(t)):Gf(kf(),Oi(t))}function ny(t){let e=Wf();return e?e.sanitize(pe.URL,t)||"":Fe(t,"URL")?Ce(t):ia(Oi(t))}function Wf(){let t=yt();return t&&t[ye].sanitizer}function ry(t,e,n){let r=t.length;for(;;){let i=t.indexOf(e,n);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}var Yf="ng-template";function iy(t,e,n,r){let i=0;if(r){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&ry(e[i+1].toLowerCase(),n,0)!==-1)return!0}else if(oa(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function oa(t){return t.type===4&&t.value!==Yf}function oy(t,e,n){let r=t.type===4&&!n?Yf:t.value;return e===r}function sy(t,e,n){let r=4,i=t.attrs,o=i!==null?ly(i):0,s=!1;for(let a=0;a<e.length;a++){let u=e[a];if(typeof u=="number"){if(!s&&!te(r)&&!te(u))return!1;if(s&&te(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!oy(t,u,n)||u===""&&e.length===1){if(te(r))return!1;s=!0}}else if(r&8){if(i===null||!iy(t,i,u,n)){if(te(r))return!1;s=!0}}else{let l=e[++a],d=ay(u,i,oa(t),n);if(d===-1){if(te(r))return!1;s=!0;continue}if(l!==""){let h;if(d>o?h="":h=i[d+1].toLowerCase(),r&2&&l!==h){if(te(r))return!1;s=!0}}}}return te(r)||s}function te(t){return(t&1)===0}function ay(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return cy(e,t)}function uy(t,e,n=!1){for(let r=0;r<e.length;r++)if(sy(t,e[r],n))return!0;return!1}function ly(t){for(let e=0;e<t.length;e++){let n=t[e];if(Um(n))return e}return t.length}function cy(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function ku(t,e){return t?":not("+e.trim()+")":e}function fy(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!te(s)&&(e+=ku(o,i),i=""),r=s,o=o||!te(r);n++}return i!==""&&(e+=ku(o,i)),e}function dy(t){return t.map(fy).join(",")}function hy(t){let e=[],n=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++r]):i===8&&n.push(o);else{if(!te(i))break;i=o}r++}return n.length&&e.push(1,...n),e}var Me={};function py(t,e){return t.createText(e)}function gy(t,e,n){t.setValue(e,n)}function Kf(t,e,n){return t.createElement(e,n)}function Go(t,e,n,r,i){t.insertBefore(e,n,r,i)}function Zf(t,e,n){t.appendChild(e,n)}function Au(t,e,n,r,i){r!==null?Go(t,e,n,r,i):Zf(t,e,n)}function my(t,e,n){t.removeChild(null,e,n)}function vy(t,e,n){t.setAttribute(e,"style",n)}function yy(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Qf(t,e,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Fm(t,e,r),i!==null&&yy(t,e,i),o!==null&&vy(t,e,o)}function sa(t,e,n,r,i,o,s,a,u,l,d){let h=Lt+r,y=h+i,_=_y(h,y),w=typeof l=="function"?l():l;return _[K]={type:t,blueprint:_,template:n,queries:null,viewQuery:a,declTNode:e,data:_.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:y,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:u,consts:w,incompleteFirstPass:!1,ssrId:d}}function _y(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Me);return n}function by(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=sa(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function aa(t,e,n,r,i,o,s,a,u,l,d){let h=e.blueprint.slice();return h[be]=i,h[U]=r|4|128|8|64|1024,(l!==null||t&&t[U]&2048)&&(h[U]|=2048),Bc(h),h[Xt]=h[Mn]=t,h[kt]=n,h[ye]=s||t&&t[ye],h[Gt]=a||t&&t[Gt],h[ir]=u||t&&t[ir]||null,h[ce]=o,h[ki]=gv(),h[rr]=d,h[Rc]=l,h[le]=e.type==2?t[le]:h,h}function Ey(t,e,n){let r=on(e,t),i=by(n),o=t[ye].rendererFactory,s=td(t,aa(t,i,null,Xf(n),r,e,null,o.createRenderer(r,n),null,null,null));return t[e.index]=s}function Xf(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function Jf(t,e,n,r){if(n===0)return-1;let i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function td(t,e){return t[or]?t[pu][ie]=e:t[or]=e,t[pu]=e,e}function wn(t=1){ed(fe(),yt(),sn()+t,!1)}function ed(t,e,n,r){if(!r)if((e[U]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Xr(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Jr(e,i,0,n)}We(n)}var Ui=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Ui||{});function qo(t,e,n,r){let i=et(null);try{let[o,s,a]=t.inputs[n],u=null;(s&Ui.SignalBased)!==0&&(u=e[o][Oe]),u!==null&&u.transformFn!==void 0?r=u.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,u,r,n,o):jc(e,u,o,r)}finally{et(i)}}function nd(t,e,n,r,i){let o=sn(),s=r&2;try{We(-1),s&&e.length>Lt&&ed(t,e,Lt,!1),dt(s?2:0,i),n(r,i)}finally{We(o),dt(s?3:1,i)}}function ua(t,e,n){Oy(t,e,n),(n.flags&64)===64&&xy(t,e,n)}function rd(t,e,n=on){let r=e.localNames;if(r!==null){let i=e.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(e,t):t[s];t[i++]=a}}}function wy(t,e,n,r){let i=r.get(Ev,Pf)||n===ge.ShadowDom,o=t.selectRootElement(e,i);return Sy(o),o}function Sy(t){Iy(t)}var Iy=()=>null;function Ty(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Cy(t,e,n,r,i,o,s,a){if(!a&&la(e,t,n,r,i)){Ai(e)&&Ny(n,e.index);return}if(e.type&3){let u=on(e,n);r=Ty(r),i=s!=null?s(i,e.value||"",r):i,o.setProperty(u,r,i)}else e.type&12}function Ny(t,e){let n=Ge(e,t);n[U]&16||(n[U]|=64)}function Oy(t,e,n){let r=n.directiveStart,i=n.directiveEnd;Ai(n)&&Ey(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||af(n,e);let o=n.initialInputs;for(let s=r;s<i;s++){let a=t.data[s],u=Fo(e,t,s,n);if(wr(u,e),o!==null&&ky(e,s-r,u,a,n,o),rn(a)){let l=Ge(n.index,e);l[kt]=Fo(e,t,s,n)}}}function xy(t,e,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Om();try{We(o);for(let a=r;a<i;a++){let u=t.data[a],l=e[a];Po(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&Dy(u,l)}}finally{We(-1),Po(s)}}function Dy(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function id(t,e){let n=t.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];uy(e,o.selectors,!1)&&(r??=[],rn(o)?r.unshift(o):r.push(o))}return r}function ky(t,e,n,r,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;a+=2){let u=s[a],l=s[a+1];qo(r,n,u,l)}}function Ay(t,e){let n=t[ir],r=n?n.get(Er,null):null;r&&r.handleError(e)}function la(t,e,n,r,i){let o=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let u=0;u<s.length;u+=2){let l=s[u],d=s[u+1],h=e.data[l];qo(h,n[l],d,i),a=!0}if(o)for(let u of o){let l=n[u],d=e.data[u];qo(d,l,r,i),a=!0}return a}function Ry(t,e){let n=Ge(e,t),r=n[K];Ly(r,n);let i=n[be];i!==null&&n[rr]===null&&(n[rr]=jf(i,n[ir])),dt(18),ca(r,n,n[kt]),dt(19,n[kt])}function Ly(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function ca(t,e,n){qs(e);try{let r=t.viewQuery;r!==null&&zo(1,r,n);let i=t.template;i!==null&&nd(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[On]?.finishViewCreation(t),t.staticContentQueries&&Vf(t,e),t.staticViewQueries&&zo(2,t.viewQuery,n);let o=t.components;o!==null&&Py(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[U]&=-5,Ws()}}function Py(t,e){for(let n=0;n<e.length;n++)Ry(t,e[n])}function fa(t,e,n,r){let i=et(null);try{let o=e.tView,s=t[U]&4096?4096:16,a=aa(t,o,n,s,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=t[e.index];a[Nn]=u;let l=t[On];return l!==null&&(a[On]=l.createEmbeddedView(o)),ca(o,a,n),a}finally{et(i)}}function da(t,e){return!e||e.firstChild===null||Tf(t)}var My;function ha(t,e){return My(t,e)}var He=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(He||{});function od(t){return(t.flags&32)===32}function vn(t,e,n,r,i){if(r!=null){let o,s=!1;nn(r)?o=r:Be(r)&&(s=!0,r=r[be]);let a=Ae(r);t===0&&n!==null?i==null?Zf(e,n,a):Go(e,n,a,i||null,!0):t===1&&n!==null?Go(e,n,a,i||null,!0):t===2?my(e,a,s):t===3&&e.destroyNode(a),o!=null&&Yy(e,t,o,n,i)}}function jy(t,e){sd(t,e),e[be]=null,e[ce]=null}function Vy(t,e,n,r,i,o){r[be]=i,r[ce]=e,Hi(t,r,n,1,i,o)}function sd(t,e){e[ye].changeDetectionScheduler?.notify(9),Hi(t,e,e[Gt],2,null,null)}function Fy(t){let e=t[or];if(!e)return ho(t[K],t);for(;e;){let n=null;if(Be(e))n=e[or];else{let r=e[Vt];r&&(n=r)}if(!n){for(;e&&!e[ie]&&e!==t;)Be(e)&&ho(e[K],e),e=e[Xt];e===null&&(e=t),Be(e)&&ho(e[K],e),n=e&&e[ie]}e=n}}function pa(t,e){let n=t[fi],r=n.indexOf(e);n.splice(r,1)}function ga(t,e){if(yr(e))return;let n=e[Gt];n.destroyNode&&Hi(t,e,n,3,null,null),Fy(e)}function ho(t,e){if(yr(e))return;let n=et(null);try{e[U]&=-129,e[U]|=256,e[Bt]&&Hl(e[Bt]),Hy(t,e),Uy(t,e),e[K].type===1&&e[Gt].destroy();let r=e[Nn];if(r!==null&&nn(e[Xt])){r!==e[Xt]&&pa(r,e);let i=e[On];i!==null&&i.detachView(t)}Bo(e)}finally{et(n)}}function Uy(t,e){let n=t.cleanup,r=e[hu];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[hu]=null);let i=e[De];if(i!==null){e[De]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=e[ci];if(o!==null){e[ci]=null;for(let s of o)s.destroy()}}function Hy(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=e[n[r]];if(!(i instanceof Zs)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];dt(4,a,u);try{u.call(a)}finally{dt(5,a,u)}}else{dt(4,i,o);try{o.call(i)}finally{dt(5,i,o)}}}}}function By(t,e,n){return $y(t,e.parent,n)}function $y(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[be];if(Ai(r)){let{encapsulation:i}=t.data[r.directiveStart+r.componentOffset];if(i===ge.None||i===ge.Emulated)return null}return on(r,n)}function zy(t,e,n){return qy(t,e,n)}function Gy(t,e,n){return t.type&40?on(t,n):null}var qy=Gy,Ru;function ma(t,e,n,r){let i=By(t,r,e),o=e[Gt],s=r.parent||e[ce],a=zy(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)Au(o,i,n[u],a,!1);else Au(o,i,n,a,!1);Ru!==void 0&&Ru(o,r,e,n,i)}function Zn(t,e){if(e!==null){let n=e.type;if(n&3)return on(e,t);if(n&4)return Wo(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Zn(t,r);{let i=t[e.index];return nn(i)?Wo(-1,i):Ae(i)}}else{if(n&128)return Zn(t,e.next);if(n&32)return ha(e,t)()||Ae(t[e.index]);{let r=ad(t,e);if(r!==null){if(Array.isArray(r))return r[0];let i=qe(t[le]);return Zn(i,r)}else return Zn(t,e.next)}}}return null}function ad(t,e){if(e!==null){let n=t[le][ce],r=e.projection;return n.projection[r]}return null}function Wo(t,e){let n=Vt+t+1;if(n<e.length){let r=e[n],i=r[K].firstChild;if(i!==null)return Zn(r,i)}return e[sr]}function va(t,e,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(s&&e===0&&(a&&wr(Ae(a),r),n.flags|=2),!od(n))if(u&8)va(t,e,n.child,r,i,o,!1),vn(e,t,i,a,o);else if(u&32){let l=ha(n,r),d;for(;d=l();)vn(e,t,i,d,o);vn(e,t,i,a,o)}else u&16?Wy(t,e,r,n,i,o):vn(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Hi(t,e,n,r,i,o){va(n,r,t.firstChild,e,i,o,!1)}function Wy(t,e,n,r,i,o){let s=n[le],a=s[ce].projection[r.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++){let l=a[u];vn(e,t,i,l,o)}else{let u=a,l=s[Xt];Tf(r)&&(u.flags|=128),va(t,e,u,l,i,o,!0)}}function Yy(t,e,n,r,i){let o=n[sr],s=Ae(n);o!==s&&vn(e,t,r,o,i);for(let a=Vt;a<n.length;a++){let u=n[a];Hi(u[K],u,t,e,r,o)}}function Ky(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:He.DashCase;i==null?t.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=He.Important),t.setStyle(n,r,i,o))}}function mi(t,e,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=e[n.index];o!==null&&r.push(Ae(o)),nn(o)&&Zy(o,r);let s=n.type;if(s&8)mi(t,e,n.child,r);else if(s&32){let a=ha(n,e),u;for(;u=a();)r.push(u)}else if(s&16){let a=ad(e,n);if(Array.isArray(a))r.push(...a);else{let u=qe(e[le]);mi(u[K],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Zy(t,e){for(let n=Vt;n<t.length;n++){let r=t[n],i=r[K].firstChild;i!==null&&mi(r[K],r,i,e)}t[sr]!==t[be]&&e.push(t[sr])}function ud(t){if(t[ao]!==null){for(let e of t[ao])e.impl.addSequence(e);t[ao].length=0}}var ld=[];function Qy(t){return t[Bt]??Xy(t)}function Xy(t){let e=ld.pop()??Object.create(t_);return e.lView=t,e}function Jy(t){t.lView[Bt]!==t&&(t.lView=null,ld.push(t))}var t_=ht(C({},As),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Li(t.lView)},consumerOnSignalRead(){this.lView[Bt]=this}});function e_(t){let e=t[Bt]??Object.create(n_);return e.lView=t,e}var n_=ht(C({},As),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=qe(t.lView);for(;e&&!cd(e[K]);)e=qe(e);e&&Gs(e)},consumerOnSignalRead(){this.lView[Bt]=this}});function cd(t){return t.type!==2}function fd(t){if(t[ci]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[ci])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[U]&8192)}}var r_=100;function dd(t,e=!0,n=0){let r=t[ye].rendererFactory,i=!1;i||r.begin?.();try{i_(t,n)}catch(o){throw e&&Ay(t,o),o}finally{i||r.end?.()}}function i_(t,e){let n=Wc();try{gu(!0),Yo(t,e);let r=0;for(;Ri(t);){if(r===r_)throw new it(103,!1);r++,Yo(t,1)}}finally{gu(n)}}function o_(t,e,n,r){if(yr(e))return;let i=e[U],o=!1,s=!1;qs(e);let a=!0,u=null,l=null;o||(cd(t)?(l=Qy(e),u=tu(l)):bp()===null?(a=!1,l=e_(e),u=tu(l)):e[Bt]&&(Hl(e[Bt]),e[Bt]=null));try{Bc(e),Im(t.bindingStartIndex),n!==null&&nd(t,e,n,2,r);let d=(i&3)===3;if(!o)if(d){let _=t.preOrderCheckHooks;_!==null&&Xr(e,_,null)}else{let _=t.preOrderHooks;_!==null&&Jr(e,_,0,null),uo(e,0)}if(s||s_(e),fd(e),hd(e,0),t.contentQueries!==null&&Vf(t,e),!o)if(d){let _=t.contentCheckHooks;_!==null&&Xr(e,_)}else{let _=t.contentHooks;_!==null&&Jr(e,_,1),uo(e,1)}u_(t,e);let h=t.components;h!==null&&gd(e,h,0);let y=t.viewQuery;if(y!==null&&zo(2,y,r),!o)if(d){let _=t.viewCheckHooks;_!==null&&Xr(e,_)}else{let _=t.viewHooks;_!==null&&Jr(e,_,2),uo(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[so]){for(let _ of e[so])_();e[so]=null}o||(ud(e),e[U]&=-73)}catch(d){throw o||Li(e),d}finally{l!==null&&(Tp(l,u),a&&Jy(l)),Ws()}}function hd(t,e){for(let n=Of(t);n!==null;n=xf(n))for(let r=Vt;r<n.length;r++){let i=n[r];pd(i,e)}}function s_(t){for(let e=Of(t);e!==null;e=xf(e)){if(!(e[U]&2))continue;let n=e[fi];for(let r=0;r<n.length;r++){let i=n[r];Gs(i)}}}function a_(t,e,n){dt(18);let r=Ge(e,t);pd(r,n),dt(19,r[kt])}function pd(t,e){zs(t)&&Yo(t,e)}function Yo(t,e){let n=t[K],r=t[U],i=t[Bt],o=!!(e===0&&r&16);if(o||=!!(r&64&&e===0),o||=!!(r&1024),o||=!!(i?.dirty&&Ul(i)),o||=!1,i&&(i.dirty=!1),t[U]&=-9217,o)o_(n,t,n.template,t[kt]);else if(r&8192){fd(t),hd(t,1);let s=n.components;s!==null&&gd(t,s,1),ud(t)}}function gd(t,e,n){for(let r=0;r<e.length;r++)a_(t,e[r],n)}function u_(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)We(~i);else{let o=i,s=n[++r],a=n[++r];Nm(s,o);let u=e[o];dt(24,u),a(2,u),dt(25,u)}}}finally{We(-1)}}function md(t,e){let n=Wc()?64:1088;for(t[ye].changeDetectionScheduler?.notify(e);t;){t[U]|=n;let r=qe(t);if(di(t)&&!r)return t;t=r}return null}function l_(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function vd(t,e){let n=Vt+e;if(n<t.length)return t[n]}function ya(t,e,n,r=!0){let i=e[K];if(c_(i,e,t,n),r){let s=Wo(n,t),a=e[Gt],u=a.parentNode(t[sr]);u!==null&&Vy(i,t[ce],a,e,u,s)}let o=e[rr];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function yd(t,e){let n=_a(t,e);return n!==void 0&&ga(n[K],n),n}function _a(t,e){if(t.length<=Vt)return;let n=Vt+e,r=t[n];if(r){let i=r[Nn];i!==null&&i!==t&&pa(i,r),e>0&&(t[n-1][ie]=r[ie]);let o=Sc(t,Vt+e);jy(r[K],r);let s=o[On];s!==null&&s.detachView(o[K]),r[Xt]=null,r[ie]=null,r[U]&=-129}return r}function c_(t,e,n,r){let i=Vt+r,o=n.length;r>0&&(n[i-1][ie]=e),r<o-Vt?(e[ie]=n[i],Hg(n,Vt+r,e)):(n.push(e),e[ie]=null),e[Xt]=n;let s=e[Nn];s!==null&&n!==s&&_d(s,e);let a=e[On];a!==null&&a.insertView(t),Ro(e),e[U]|=128}function _d(t,e){let n=t[fi],r=e[Xt];if(Be(r))t[U]|=2;else{let i=r[Xt][le];e[le]!==i&&(t[U]|=2)}n===null?t[fi]=[e]:n.push(e)}var f_=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,e=t[K];return mi(e,t,e.firstChild,[])}constructor(t,e,n=!0){this._lView=t,this._cdRefInjectingView=e,this.notifyErrorHandler=n}get context(){return this._lView[kt]}get dirty(){return!!(this._lView[U]&9280)||!!this._lView[Bt]?.dirty}set context(t){this._lView[kt]=t}get destroyed(){return yr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Xt];if(nn(t)){let e=t[om],n=e?e.indexOf(this):-1;n>-1&&(_a(t,n),Sc(e,n))}this._attachedToViewContainer=!1}ga(this._lView[K],this._lView)}onDestroy(t){$c(this._lView,t)}markForCheck(){md(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[U]&=-129}reattach(){Ro(this._lView),this._lView[U]|=128}detectChanges(){this._lView[U]|=1024,dd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new it(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=di(this._lView),e=this._lView[Nn];e!==null&&!t&&pa(e,this._lView),sd(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new it(902,!1);this._appRef=t;let e=di(this._lView),n=this._lView[Nn];n!==null&&!e&&_d(n,this._lView),Ro(this._lView)}};function Bi(t,e,n,r,i){let o=t.data[e];if(o===null)o=d_(t,e,n,r,i),Cm()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=wm();o.injectorIndex=s===null?-1:s.injectorIndex}return jn(o,!0),o}function d_(t,e,n,r,i){let o=Gc(),s=qc(),a=s?o:o&&o.parent,u=t.data[e]=p_(t,a,n,e,r,i);return h_(t,u,o,s),u}function h_(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function p_(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return _m()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value: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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var j1=new RegExp(`^(\\d+)*(${bv}|${_v})*(.*)`),g_=()=>null;function ba(t,e){return g_(t,e)}var m_=class{},bd=class{},v_=class{resolveComponentFactory(t){throw Error(`No component factory found for ${re(t)}.`)}},Ir=class{static NULL=new v_},Ea=class{},y_=(()=>{class t{static \u0275prov=Et({token:t,providedIn:"root",factory:()=>null})}return t})();function Lu(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=su(i,a);else if(o==2){let u=a,l=e[++s];r=su(r,u+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function $i(t,e=q.Default){let n=yt();if(n===null)return lt(t,e);let r=_r();return df(r,n,ee(t),e)}function Ed(t,e,n,r,i){let o=r===null?null:{"":-1},s=i(t,n);if(s!==null){let a,u=null,l=null,d=b_(s);d===null?a=s:[a,u,l]=d,S_(t,e,n,a,o,u,l)}o!==null&&r!==null&&__(n,r,o)}function __(t,e,n){let r=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=n[e[i+1]];if(o==null)throw new it(-301,!1);r.push(e[i],o)}}function b_(t){let e=null,n=!1;for(let s=0;s<t.length;s++){let a=t[s];if(s===0&&rn(a)&&(e=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of t)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,E_(s,r,o,i)),s===e&&(r??=[],r.push(s));return r!==null?(r.push(...e===null?t:t.slice(1)),[r,i,o]):null}function E_(t,e,n,r){let i=e.length;t.findHostDirectiveDefs(t,e,r),n.set(t,[i,e.length-1])}function w_(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function S_(t,e,n,r,i,o,s){let a=r.length,u=!1;for(let y=0;y<a;y++){let _=r[y];!u&&rn(_)&&(u=!0,w_(t,n,y)),Ym(af(n,e),t,_.type)}x_(n,t.data.length,a);for(let y=0;y<a;y++){let _=r[y];_.providersResolver&&_.providersResolver(_)}let l=!1,d=!1,h=Jf(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let _=r[y];if(n.mergedAttrs=Qs(n.mergedAttrs,_.hostAttrs),T_(t,n,e,h,_),O_(h,_,i),s!==null&&s.has(_)){let[T,A]=s.get(_);n.directiveToIndex.set(_.type,[h,T+n.directiveStart,A+n.directiveStart])}else(o===null||!o.has(_))&&n.directiveToIndex.set(_.type,h);_.contentQueries!==null&&(n.flags|=4),(_.hostBindings!==null||_.hostAttrs!==null||_.hostVars!==0)&&(n.flags|=64);let w=_.type.prototype;!l&&(w.ngOnChanges||w.ngOnInit||w.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!d&&(w.ngOnChanges||w.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}I_(t,n,o)}function I_(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let i=t.data[r];if(n===null||!n.has(i))Pu(0,e,i,r),Pu(1,e,i,r),ju(e,r,!1);else{let o=n.get(i);Mu(0,e,o,r),Mu(1,e,o,r),ju(e,r,!0)}}}function Pu(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[o]??=[],s[o].push(r),wd(e,o)}}function Mu(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),wd(e,s)}}function wd(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function ju(t,e,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=t;if(r===null||!n&&i===null||n&&o===null||oa(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let u=r[a];if(u===0){a+=4;continue}else if(u===5){a+=2;continue}else if(typeof u=="number")break;if(!n&&i.hasOwnProperty(u)){let l=i[u];for(let d of l)if(d===e){s??=[],s.push(u,r[a+1]);break}}else if(n&&o.hasOwnProperty(u)){let l=o[u];for(let d=0;d<l.length;d+=2)if(l[d]===e){s??=[],s.push(l[d+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function T_(t,e,n,r,i){t.data[r]=i;let o=i.factory||(i.factory=Tn(i.type,!0)),s=new Zs(o,rn(i),$i);t.blueprint[r]=s,n[r]=s,C_(t,e,r,Jf(t,n,i.hostVars,Me),i)}function C_(t,e,n,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;N_(s)!=a&&s.push(a),s.push(n,r,o)}}function N_(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function O_(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;rn(e)&&(n[""]=t)}}function x_(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Sd(t,e,n,r,i,o,s,a){let u=e.consts,l=xn(u,s),d=Bi(e,t,2,r,l);return o&&Ed(e,n,d,xn(u,a),i),d.mergedAttrs=Qs(d.mergedAttrs,d.attrs),d.attrs!==null&&Lu(d,d.attrs,!1),d.mergedAttrs!==null&&Lu(d,d.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,d),d}function Id(t,e){nf(t,e),Pc(e)&&t.queries.elementEnd(e)}var D_=class extends Ir{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let e=Di(t);return new M_(e,this.ngModule)}};function k_(t){return Object.keys(t).map(e=>{let[n,r,i]=t[e],o={propName:n,templateName:e,isSignal:(r&Ui.SignalBased)!==0};return i&&(o.transform=i),o})}function A_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function R_(t,e,n){let r=e instanceof nr?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Bm(n,r):n}function L_(t){let e=t.get(Ea,null);if(e===null)throw new it(407,!1);let n=t.get(y_,null),r=t.get(br,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r}}function P_(t,e){let n=(t.selectors[0][0]||"div").toLowerCase();return Kf(e,n,n==="svg"?dm:n==="math"?hm:null)}var M_=class extends bd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return k_(this.componentDef.inputs)}get outputs(){return A_(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=dy(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!e}create(t,e,n,r){dt(22);let i=et(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:hy(this.componentDef.selectors[0]),a=sa(0,null,null,1,0,null,null,null,null,[s],null),u=R_(o,r||this.ngModule,t),l=L_(u),d=l.rendererFactory.createRenderer(null,o),h=n?wy(d,n,o.encapsulation,u):P_(o,d),y=aa(null,a,null,512|Xf(o),null,null,l,d,u,null,jf(h,u,!0));y[Lt]=h,qs(y);let _=null;try{let w=Sd(Lt,a,y,"#host",()=>[this.componentDef],!0,0);h&&(Qf(d,h,w),wr(h,y)),ua(a,y,w),Ff(a,w,y),Id(a,w),e!==void 0&&V_(w,this.ngContentSelectors,e),_=Ge(w.index,y),y[kt]=_[kt],ca(a,y,null)}catch(w){throw _!==null&&Bo(_),Bo(y),w}finally{dt(23),Ws()}return new j_(this.componentType,y)}finally{et(i)}}},j_=class extends m_{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,e){super(),this._rootLView=e,this._tNode=$s(e[K],Lt),this.location=Sf(this._tNode,e),this.instance=Ge(this._tNode.index,e)[kt],this.hostView=this.changeDetectorRef=new f_(e,void 0,!1),this.componentType=t}setInput(t,e){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),e))return;let r=this._rootLView,i=la(n,r[K],r,t,e);this.previousInputValues.set(t,e);let o=Ge(n.index,r);md(o,1)}get injector(){return new pf(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function V_(t,e,n){let r=t.projection=[];for(let i=0;i<e.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var F_=()=>!1;function U_(t,e,n){return F_(t,e,n)}var Ko=class{},Td=class extends Ko{injector;componentFactoryResolver=new D_(this);instance=null;constructor(t){super();let e=new Bs([...t.providers,{provide:Ko,useValue:this},{provide:Ir,useValue:this.componentFactoryResolver}],t.parent||Hs(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function H_(t,e,n=null){return new Td({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var B_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=xc(!1,n.type),i=r.length>0?H_([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=Et({token:t,providedIn:"environment",factory:()=>new t(lt(nr))})}return t})();function $_(t){return Eg(()=>{let e=Y_(t),n=ht(C({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Cf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?i=>i.get(B_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ge.Emulated,styles:t.styles||ze,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Vi("NgStandalone"),K_(n);let r=t.dependencies;return n.directiveDefs=Vu(r,!1),n.pipeDefs=Vu(r,!0),n.id=Z_(n),n})}function z_(t){return Di(t)||Nc(t)}function G_(t){return t!==null}function q_(t,e){if(t==null)return Cn;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,u;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,u=i[3]||null):(o=i,s=i,a=Ui.None,u=null),n[o]=[r,a,u],e[o]=s}return n}function W_(t){if(t==null)return Cn;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function wa(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Y_(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Cn,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:q_(t.inputs,e),outputs:W_(t.outputs),debugInfo:null}}function K_(t){t.features?.forEach(e=>e(t))}function Vu(t,e){if(!t)return null;let n=e?Oc:z_;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(G_)}function Z_(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Cd(t,e,n){return t[e]=n}function Re(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function Q_(t,e,n,r){let i=Re(t,e,n);return Re(t,e+1,r)||i}function X_(t,e,n,r,i,o,s,a,u){let l=e.consts,d=Bi(e,t,4,s||null,a||null);zc()&&Ed(e,n,d,xn(l,u),id),d.mergedAttrs=Qs(d.mergedAttrs,d.attrs),nf(e,d);let h=d.tView=sa(2,d,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,d),h.queries=e.queries.embeddedTView(d)),d}function Zo(t,e,n,r,i,o,s,a,u,l){let d=n+Lt,h=e.firstCreatePass?X_(d,e,t,r,i,o,s,a,u):e.data[d];jn(h,!1);let y=J_(e,t,h,n);Ys()&&ma(e,t,y,h),wr(y,t);let _=l_(y,t,y,h);return t[d]=_,td(t,_),U_(_,h,t),Mc(h)&&ua(e,t,h),u!=null&&rd(t,h,l),h}function Nd(t,e,n,r,i,o,s,a){let u=yt(),l=fe(),d=xn(l.consts,o);return Zo(u,l,t,e,n,r,i,d,s,a),Nd}var J_=tb;function tb(t,e,n,r){return Ks(!0),e[Gt].createComment("")}var eb=new ct(""),nb=(()=>{class t{static \u0275prov=Et({token:t,providedIn:"root",factory:()=>new rb})}return t})(),rb=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let e=t.zone,n=this.queues.get(e);n.has(t)&&(n.delete(t),this.queuedEffectCount--)}enqueue(t){let e=t.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(t)||(this.queuedEffectCount++,n.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,e]of this.queues)t===null?this.flushQueue(e):t.run(()=>this.flushQueue(e))}flushQueue(t){for(let e of t)t.delete(e),this.queuedEffectCount--,e.run()}};function Od(t){return!!t&&typeof t.then=="function"}function ib(t){return!!t&&typeof t.subscribe=="function"}var ob=new ct(""),xd=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=at(ob,{optional:!0})??[];injector=at(Mi);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=Ac(this.injector,i);if(Od(o))n.push(o);else if(ib(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sb=new ct("");function ab(){Np(()=>{throw new it(600,!1)})}function ub(t){return t.isBoundToModule}var lb=10,Dn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=at(fv);afterRenderManager=at(wv);zonelessEnabled=at(Xs);rootEffectScheduler=at(nb);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new mr;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=at(ji).hasPendingTasks.pipe(pc(n=>!n));constructor(){at(ra,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=at(nr);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){dt(10);let i=n instanceof bd;if(!this._injector.get(xd).done){let h=!i&&Gg(n),y=!1;throw new it(405,y)}let o;i?o=n:o=this._injector.get(Ir).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=ub(o)?void 0:this._injector.get(Ko),a=r||o.selector,u=o.create(Mi.NULL,[],a,s),l=u.location.nativeElement,d=u.injector.get(eb,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),ti(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),dt(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){dt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Mf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new it(101,!1);let n=et(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,et(n),this.afterTick.next(),dt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ea,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<lb;)dt(14),this.synchronizeOnce(),dt(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)cb(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})=>Ri(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;ti(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sb,[]).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),()=>ti(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new it(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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ti(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function cb(t,e,n,r){!n&&!Ri(t)||dd(t,e,n&&!r?0:1)}function fb(t,e,n,r){return Re(t,Pi(),n)?e+Oi(n)+r:Me}function Hr(t,e){return t<<17|e<<2}function Ye(t){return t>>17&32767}function db(t){return(t&2)==2}function hb(t,e){return t&131071|e<<17}function Qo(t){return t|2}function kn(t){return(t&131068)>>2}function po(t,e){return t&-131069|e<<2}function pb(t){return(t&1)===1}function Xo(t){return t|1}function gb(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Ye(s),u=kn(s);t[r]=n;let l=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||vr(h,d)>0)&&(l=!0)}else d=n;if(i)if(u!==0){let h=Ye(t[a+1]);t[r+1]=Hr(h,a),h!==0&&(t[h+1]=po(t[h+1],r)),t[a+1]=hb(t[a+1],r)}else t[r+1]=Hr(a,0),a!==0&&(t[a+1]=po(t[a+1],r)),a=r;else t[r+1]=Hr(u,0),a===0?a=r:t[u+1]=po(t[u+1],r),u=r;l&&(t[r+1]=Qo(t[r+1])),Fu(t,d,r,!0),Fu(t,d,r,!1),mb(e,d,t,r,o),s=Hr(a,u),o?e.classBindings=s:e.styleBindings=s}function mb(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&vr(o,e)>=0&&(n[r+1]=Xo(n[r+1]))}function Fu(t,e,n,r){let i=t[n+1],o=e===null,s=r?Ye(i):kn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],l=t[s+1];vb(u,e)&&(a=!0,t[s+1]=r?Xo(l):Qo(l)),s=r?Ye(l):kn(l)}a&&(t[n+1]=r?Qo(i):Xo(i))}function vb(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?vr(t,e)>=0:!1}function vi(t,e,n){let r=yt(),i=Pi();if(Re(r,i,e)){let o=fe(),s=Am();Cy(o,s,r,t,e,r[Gt],n,!1)}return vi}function Uu(t,e,n,r,i){la(e,t,n,i?"class":"style",r)}function Sa(t,e,n){return yb(t,e,n,!1),Sa}function yb(t,e,n,r){let i=yt(),o=fe(),s=Tm(2);if(o.firstUpdatePass&&bb(o,t,s,r),e!==Me&&Re(i,s,e)){let a=o.data[sn()];Tb(o,a,i,i[Gt],t,i[s+1]=Cb(e,n),r,s)}}function _b(t,e){return e>=t.expandoStartIndex}function bb(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[sn()],s=_b(t,n);Nb(o,r)&&e===null&&!s&&(e=!1),e=Eb(i,o,e,r),gb(i,o,e,n,s,r)}}function Eb(t,e,n,r){let i=xm(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=go(null,t,e,n,r),n=ar(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=go(i,t,e,n,r),o===null){let a=wb(t,e,r);a!==void 0&&Array.isArray(a)&&(a=go(null,t,e,a[1],r),a=ar(a,e.attrs,r),Sb(t,e,r,a))}else o=Ib(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function wb(t,e,n){let r=n?e.classBindings:e.styleBindings;if(kn(r)!==0)return t[Ye(r)]}function Sb(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Ye(i)]=r}function Ib(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=ar(r,s,n)}return ar(r,e.attrs,n)}function go(t,e,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=e[a],r=ar(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function ar(t,e,n){let r=n?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),$g(t,s,n?!0:e[++o]))}return t===void 0?null:t}function Tb(t,e,n,r,i,o,s,a){if(!(e.type&3))return;let u=t.data,l=u[a+1],d=pb(l)?Hu(u,e,n,i,kn(l),s):void 0;if(!yi(d)){yi(o)||db(l)&&(o=Hu(u,null,n,i,a,s));let h=Uc(sn(),n);Ky(r,s,h,i,o)}}function Hu(t,e,n,r,i,o){let s=e===null,a;for(;i>0;){let u=t[i],l=Array.isArray(u),d=l?u[1]:u,h=d===null,y=n[i+1];y===Me&&(y=h?ze:void 0);let _=h?io(y,r):d===r?y:void 0;if(l&&!yi(_)&&(_=io(u,r)),yi(_)&&(a=_,s))return a;let w=t[i+1];i=s?Ye(w):kn(w)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=io(u,r))}return a}function yi(t){return t!==void 0}function Cb(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=re(Ce(t)))),t}function Nb(t,e){return(t.flags&(e?8:16))!==0}var Ob=class{destroy(t){}updateValue(t,e){}swap(t,e){let n=Math.min(t,e),r=Math.max(t,e),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(t,e){this.attach(e,this.detach(t))}};function mo(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function xb(t,e,n){let r,i,o=0,s=t.length-1,a;if(Array.isArray(e)){let u=e.length-1;for(;o<=s&&o<=u;){let l=t.at(o),d=e[o],h=mo(o,l,o,d,n);if(h!==0){h<0&&t.updateValue(o,d),o++;continue}let y=t.at(s),_=e[u],w=mo(s,y,u,_,n);if(w!==0){w<0&&t.updateValue(s,_),s--,u--;continue}let T=n(o,l),A=n(s,y),R=n(o,d);if(Object.is(R,A)){let Q=n(u,_);Object.is(Q,T)?(t.swap(o,s),t.updateValue(s,_),u--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(r??=new zu,i??=$u(t,o,s,n),Jo(t,r,o,R))t.updateValue(o,d),o++,s++;else if(i.has(R))r.set(T,t.detach(o)),s--;else{let Q=t.create(o,e[o]);t.attach(o,Q),o++,s++}}for(;o<=u;)Bu(t,r,n,o,e[o]),o++}else if(e!=null){let u=e[Symbol.iterator](),l=u.next();for(;!l.done&&o<=s;){let d=t.at(o),h=l.value,y=mo(o,d,o,h,n);if(y!==0)y<0&&t.updateValue(o,h),o++,l=u.next();else{r??=new zu,i??=$u(t,o,s,n);let _=n(o,h);if(Jo(t,r,o,_))t.updateValue(o,h),o++,s++,l=u.next();else if(!i.has(_))t.attach(o,t.create(o,h)),o++,s++,l=u.next();else{let w=n(o,d);r.set(w,t.detach(o)),s--}}}for(;!l.done;)Bu(t,r,n,t.length,l.value),l=u.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(u=>{t.destroy(u)})}function Jo(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Bu(t,e,n,r,i){if(Jo(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function $u(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var zu=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let e=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(t,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,e){if(this.kvMap.has(t)){let n=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(t,e)}forEach(t){for(let[e,n]of this.kvMap)if(t(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),t(n,e)}}};function Db(t,e){Vi("NgControlFlow");let n=yt(),r=Pi(),i=n[r]!==Me?n[r]:-1,o=i!==-1?_i(n,Lt+i):void 0,s=0;if(Re(n,r,t)){let a=et(null);try{if(o!==void 0&&yd(o,s),t!==-1){let u=Lt+t,l=_i(n,u),d=ts(n[K],u),h=ba(l,d.tView.ssrId),y=fa(n,d,e,{dehydratedView:h});ya(l,y,s,da(d,h))}}finally{et(a)}}else if(o!==void 0){let a=vd(o,s);a!==void 0&&(a[kt]=e)}}var kb=class{lContainer;$implicit;$index;constructor(t,e,n){this.lContainer=t,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Vt}},Ab=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,e,n){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=n}};function Rb(t,e,n,r,i,o,s,a,u,l,d,h,y){Vi("NgControlFlow");let _=yt(),w=fe(),T=u!==void 0,A=yt(),R=a?s.bind(A[le][kt]):s,Q=new Ab(T,R);A[Lt+t]=Q,Zo(_,w,t+1,e,n,r,i,xn(w.consts,o)),T&&Zo(_,w,t+2,u,l,d,h,xn(w.consts,y))}var Lb=class extends Ob{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,e,n){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-Vt}at(t){return this.getLView(t)[kt].$implicit}attach(t,e){let n=e[rr];this.needsIndexUpdate||=t!==this.length,ya(this.lContainer,e,t,da(this.templateTNode,n))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Mb(this.lContainer,t)}create(t,e){let n=ba(this.lContainer,this.templateTNode.tView.ssrId),r=fa(this.hostLView,this.templateTNode,new kb(this.lContainer,e,t),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(t){ga(t[K],t),this.operationsCounter?.recordDestroy()}updateValue(t,e){this.getLView(t)[kt].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[kt].$index=t}getLView(t){return jb(this.lContainer,t)}};function Pb(t){let e=et(null),n=sn();try{let r=yt(),i=r[K],o=r[n],s=n+1,a=_i(r,s);if(o.liveCollection===void 0){let l=ts(i,s);o.liveCollection=new Lb(a,r,l)}else o.liveCollection.reset();let u=o.liveCollection;if(xb(u,t,o.trackByFn),u.updateIndexes(),o.hasEmptyBlock){let l=Pi(),d=u.length===0;if(Re(r,l,d)){let h=n+2,y=_i(r,h);if(d){let _=ts(i,h),w=ba(y,_.tView.ssrId),T=fa(r,_,void 0,{dehydratedView:w});ya(y,T,0,da(_,w))}else yd(y,0)}}}finally{et(e)}}function _i(t,e){return t[e]}function Mb(t,e){return _a(t,e)}function jb(t,e){return vd(t,e)}function ts(t,e){return $s(t,e)}function ur(t,e,n,r){let i=yt(),o=fe(),s=Lt+t,a=i[Gt],u=o.firstCreatePass?Sd(s,o,i,e,id,zc(),n,r):o.data[s],l=Vb(o,i,u,a,e,t);i[s]=l;let d=Mc(u);return jn(u,!0),Qf(a,l,u),!od(u)&&Ys()&&ma(o,i,l,u),(mm()===0||d)&&wr(l,i),vm(),d&&(ua(o,i,u),Ff(o,u,i)),r!==null&&rd(i,u),ur}function lr(){let t=_r();qc()?Sm():(t=t.parent,jn(t,!1));let e=t;bm(e)&&Em(),ym();let n=fe();return n.firstCreatePass&&Id(n,e),e.classesWithoutHost!=null&&jm(e)&&Uu(n,e,yt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Vm(e)&&Uu(n,e,yt(),e.stylesWithoutHost,!1),lr}function cr(t,e,n,r){return ur(t,e,n,r),lr(),cr}var Vb=(t,e,n,r,i,o)=>(Ks(!0),Kf(r,i,Rm())),bi="en-US",Fb=bi;function Ub(t){typeof t=="string"&&(Fb=t.toLowerCase().replace(/_/g,"-"))}function Dd(t=1){return km(t)}function kd(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Hb(t,e=""){let n=yt(),r=fe(),i=t+Lt,o=r.firstCreatePass?Bi(r,i,1,e,null):r.data[i],s=Bb(r,n,o,e,t);n[i]=s,Ys()&&ma(r,n,s,o),jn(o,!1)}var Bb=(t,e,n,r,i)=>(Ks(!0),py(e[Gt],r));function Ad(t){return Rd("",t,""),Ad}function Rd(t,e,n){let r=yt(),i=fb(r,t,e,n);return i!==Me&&$b(r,sn(),i),Rd}function $b(t,e,n){let r=Uc(e,t);gy(t[Gt],r,n)}var zb={};function Ld(t){let e=fe(),n=yt(),r=t+Lt,i=Bi(e,r,128,null,null);return jn(i,!1),kd(e,n,r,zb),Ld}function Pd(t,e){let n=t[e];return n===Me?void 0:n}function Gb(t,e,n,r,i,o){let s=e+n;return Re(t,s,i)?Cd(t,s+1,o?r.call(o,i):r(i)):Pd(t,s+1)}function qb(t,e,n,r,i,o,s){let a=e+n;return Q_(t,a,i,o)?Cd(t,a+2,s?r.call(s,i,o):r(i,o)):Pd(t,a+2)}function Ei(t,e){let n=fe(),r,i=t+Lt;n.firstCreatePass?(r=Wb(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Tn(r.type,!0)),s,a=jt($i);try{let u=hi(!1),l=o();return hi(u),kd(n,yt(),i,l),l}finally{jt(a)}}function Wb(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function es(t,e,n){let r=t+Lt,i=yt(),o=Hc(i,r);return Md(i,r)?Gb(i,Yc(),e,o.transform,n,o):o.transform(n)}function Yb(t,e,n,r){let i=t+Lt,o=yt(),s=Hc(o,i);return Md(o,i)?qb(o,Yc(),e,s.transform,n,r,s):s.transform(n,r)}function Md(t,e){return t[K].data[e].pure}var Kb=(()=>{class t{zone=at($t);changeDetectionScheduler=at(br);applicationRef=at(Dn);_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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zb({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new $t(ht(C({},Qb()),{scheduleInRootZone:n})),[{provide:$t,useFactory:t},{provide:li,multi:!0,useFactory:()=>{let r=at(Kb,{optional:!0});return()=>r.initialize()}},{provide:li,multi:!0,useFactory:()=>{let r=at(Xb);return()=>{r.initialize()}}},e===!0?{provide:_f,useValue:!0}:[],{provide:Js,useValue:n??vf}]}function Qb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Xb=(()=>{class t{subscription=new ve;initialized=!1;zone=at($t);pendingTasks=at(ji);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(()=>{$t.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$t.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jd=(()=>{class t{appRef=at(Dn);taskService=at(ji);ngZone=at($t);zonelessEnabled=at(Xs);tracing=at(ra,{optional:!0});disableScheduling=at(_f,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ve;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(at(Js,{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 Ef||!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?Eu:bf;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(gi+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,Eu(()=>{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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Jb(){return Vi("NgZoneless"),qg([{provide:br,useExisting:jd},{provide:$t,useClass:Ef},{provide:Xs,useValue:!0},{provide:Js,useValue:!1},[]])}function tE(){return typeof $localize<"u"&&$localize.locale||bi}var Vd=new ct("",{providedIn:"root",factory:()=>at(Vd,q.Optional|q.SkipSelf)||tE()}),ns=new ct(""),eE=new ct("");function Wn(t){return!t.moduleRef}function nE(t){let e=Wn(t)?t.r3Injector:t.moduleRef.injector,n=e.get($t);return n.run(()=>{Wn(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(Er,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Wn(t)){let o=()=>e.destroy(),s=t.platformInjector.get(ns);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(ns);s.add(o),t.moduleRef.onDestroy(()=>{ti(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return iE(r,n,()=>{let o=e.get(xd);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(Vd,bi);if(Ub(s||bi),!e.get(eE,!0))return Wn(t)?e.get(Dn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Wn(t)){let a=e.get(Dn);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return rE(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function rE(t,e){let n=t.injector.get(Dn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new it(-403,!1);e.push(t)}function iE(t,e,n){try{let r=n();return Od(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var ei=null;function oE(t=[],e){return Mi.create({name:e,providers:[{provide:Us,useValue:"platform"},{provide:ns,useValue:new Set([()=>ei=null])},...t]})}function sE(t=[]){if(ei)return ei;let e=oE(t);return ei=e,ab(),aE(e),e}function aE(t){let e=t.get(Rf,null);Ac(t,()=>{e?.forEach(n=>n())})}function uE(t){dt(8);try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=sE(r),o=[Zb({}),{provide:br,useExisting:jd},...n||[]],s=new Td({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return nE({r3Injector:s.injector,platformInjector:i,rootComponent:e})}catch(e){return Promise.reject(e)}finally{dt(9)}}var V1=class{[Oe];constructor(t){this[Oe]=t}destroy(){this[Oe].destroy()}},lE={schedule(t,e){let n=setTimeout(t,e);return()=>clearTimeout(n)}};function cE(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function fE(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var vo;function dE(t,e){if(!vo){let n=Element.prototype;vo=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?vo.call(t,e):!1}function hE(t){let e={};return t.forEach(({propName:n,templateName:r,transform:i})=>{e[cE(r)]=[n,i]}),e}function pE(t,e){return e.get(Ir).resolveComponentFactory(t).inputs}function gE(t,e){let n=t.childNodes,r=e.map(()=>[]),i=-1;e.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],u=mE(a,e,i);u!==-1&&r[u].push(a)}return r}function mE(t,e,n){let r=n;return fE(t)&&e.some((i,o)=>i!=="*"&&dE(t,i)?(r=o,!0):!1),r}var vE=10,yE=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(Ir).resolveComponentFactory(t);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new _E(this.componentFactory,t,this.inputMap)}},_E=class{componentFactory;injector;inputMap;eventEmitters=new Yp(1);events=this.eventEmitters.pipe(_g(t=>yg(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,n){this.componentFactory=t,this.injector=e,this.inputMap=n,this.ngZone=this.injector.get($t),this.appRef=this.injector.get(Dn),this.cdScheduler=e.get(br),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=lE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},vE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let e=Mi.create({providers:[],parent:this.injector}),n=gE(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear()}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=t.instance[n];return new zt(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},bE=class extends HTMLElement{ngElementEventsSubscription=null};function EE(t,e){let n=pE(t,e.injector),r=e.strategyFactory||new yE(t,e.injector),i=hE(n);class o extends bE{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:u,transform:l})=>{if(!this.hasOwnProperty(u))return;let d=this[u];delete this[u],a.setInputValue(u,d,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,u,l,d){let[h,y]=i[a];this.ngElementStrategy.setInputValue(h,l,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let u=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(u)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),o}var Fd=null;function Ud(){return Fd}function wE(t){Fd??=t}var SE=class{},Le=new ct("");function IE(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var TE="browser",CE="server";function Hd(t){return t===CE}var NE=class{},OE=class extends SE{supportsDOMEvents=!0},xE=class Bd extends OE{static makeCurrent(){wE(new Bd)}onAndCancel(e,n,r,i){return e.addEventListener(n,r,i),()=>{e.removeEventListener(n,r,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=DE();return n==null?null:kE(n)}resetBaseElement(){Qn=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return IE(document.cookie,e)}},Qn=null;function DE(){return Qn=Qn||document.querySelector("base"),Qn?Qn.getAttribute("href"):null}function kE(t){return new URL(t,document.baseURI).pathname}var AE=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),rs=new ct(""),$d=(()=>{class t{_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 it(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||t)(lt(rs),lt($t))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),zd=class{_doc;constructor(t){this._doc=t}manager},ni="ng-app-id";function Gu(t){for(let e of t)e.remove()}function qu(t,e){let n=e.createElement("style");return n.textContent=t,n}function RE(t,e,n,r){let i=t.head?.querySelectorAll(`style[${ni}="${e}"],link[${ni}="${e}"]`);if(i)for(let o of i)o.removeAttribute(ni),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 is(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var Gd=(()=>{class t{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=Hd(o),RE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,qu);r?.forEach(i=>this.addUsage(i,this.external,is))}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&&(Gu(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Gu(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,qu(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,is(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ni,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||t)(lt(Le),lt(Af),lt(Lf,8),lt(na))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),yo={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"},Ia=/%COMP%/g,qd="%COMP%",LE=`_nghost-${qd}`,PE=`_ngcontent-${qd}`,ME=!0,jE=new ct("",{providedIn:"root",factory:()=>ME});function VE(t){return PE.replace(Ia,t)}function FE(t){return LE.replace(Ia,t)}function Wd(t,e){return e.map(n=>n.replace(Ia,t))}var Wu=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,u,l=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=l,this.tracingService=d,this.platformIsServer=Hd(a),this.defaultRenderer=new Ta(n,s,u,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ge.ShadowDom&&(r=ht(C({},r),{encapsulation:ge.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Ku?i.applyToHost(n):i instanceof os&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,y=this.tracingService;switch(r.encapsulation){case ge.Emulated:o=new Ku(u,l,r,this.appId,d,s,a,h,y);break;case ge.ShadowDom:return new UE(u,l,n,r,s,a,this.nonce,h,y);default:o=new os(u,l,r,d,s,a,h,y);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||t)(lt($d),lt(Gd),lt(Af),lt(jE),lt(Le),lt(na),lt($t),lt(Lf),lt(ra,8))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),Ta=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,n,r,i){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(yo[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Yu(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(Yu(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new it(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;let i=yo[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let r=yo[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(He.DashCase|He.Important)?t.style.setProperty(e,n,r&He.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&He.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n,r){if(typeof t=="string"&&(t=Ud().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,e,i)),this.eventManager.addEventListener(t,e,i,r)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function Yu(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var UE=class extends Ta{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,a,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Wd(r.id,l);for(let h of l){let y=document.createElement("style");s&&y.setAttribute("nonce",s),y.textContent=h,this.shadowRoot.appendChild(y)}let d=r.getExternalStyles?.();if(d)for(let h of d){let y=is(h,i);s&&y.setAttribute("nonce",s),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},os=class extends Ta{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let l=n.styles;this.styles=u?Wd(u,l):l,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ku=class extends os{contentAttr;hostAttr;constructor(t,e,n,r,i,o,s,a,u){let l=r+"-"+n.id;super(t,e,n,i,o,s,a,u,l),this.contentAttr=VE(l),this.hostAttr=FE(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},HE=(()=>{class t extends zd{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||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),Zu=["alt","control","meta","shift"],BE={"\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"},$E={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},zE=(()=>{class t extends zd{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ud().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Zu.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=BE[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"),Zu.forEach(s=>{if(s!==i){let a=$E[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})();function GE(t){return uE(qE(t))}function qE(t){return{appProviders:[...QE,...t?.providers??[]],platformProviders:ZE}}function WE(){xE.makeCurrent()}function YE(){return new Er}function KE(){return vv(document),document}var ZE=[{provide:na,useValue:TE},{provide:Rf,useValue:WE,multi:!0},{provide:Le,useFactory:KE,deps:[]}],QE=[{provide:Us,useValue:"root"},{provide:Er,useFactory:YE,deps:[]},{provide:rs,useClass:HE,multi:!0,deps:[Le]},{provide:rs,useClass:zE,multi:!0,deps:[Le]},Wu,Gd,$d,{provide:Ea,useExisting:Wu},{provide:NE,useClass:AE,deps:[]},[]],Yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=lt(XE),r},providedIn:"root"})}return t})(),XE=(()=>{class t extends Yd{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case pe.NONE:return r;case pe.HTML:return Fe(r,"HTML")?Ce(r):Gf(this._doc,String(r)).toString();case pe.STYLE:return Fe(r,"Style")?Ce(r):r;case pe.SCRIPT:if(Fe(r,"Script"))return Ce(r);throw new it(5200,!1);case pe.URL:return Fe(r,"URL")?Ce(r):ia(String(r));case pe.RESOURCE_URL:if(Fe(r,"ResourceURL"))return Ce(r);throw new it(5201,!1);default:throw new it(5202,!1)}}bypassSecurityTrustHtml(n){return Av(n)}bypassSecurityTrustStyle(n){return Rv(n)}bypassSecurityTrustScript(n){return Lv(n)}bypassSecurityTrustUrl(n){return Pv(n)}bypassSecurityTrustResourceUrl(n){return Mv(n)}static \u0275fac=function(n){return new(n||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ss={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},Zt=pr(pp()),JE="9.3.33",ri=class as{static SDK_VERSION=JE;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 CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";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 CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let e=as.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");as.SDK_VERSION_CODE=parseInt(e,10)}},Qt=class{static log(...t){Zt.default.info(...t)}static debug(...t){Zt.default.debug(...t)}static error(...t){Zt.default.error(...t)}static warn(...t){Zt.default.warn(...t)}static info(...t){Zt.default.info(...t)}static trace(...t){Zt.default.trace(...t)}static configure(t=ri.LOG_PREFIX){Zt.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${ri.SDK_VERSION}):`)}});let e=this.getDebugParam();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Zt.default.setLevel(Zt.default[localStorage.cooeeLogLevel]):Zt.default.setLevel(ss.debug?Zt.default.TRACE:Zt.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
|
|
7
|
+
`)}`}function Tn(t,e){return t.hasOwnProperty(cu)?t[cu]:null}function Vs(t,e){t.forEach(n=>Array.isArray(n)?Vs(n,e):e(n))}function Hg(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Sc(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Bg(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(i===1)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function $g(t,e,n){let r=vr(t,e);return r>=0?t[r|1]=n:(r=~r,Bg(t,r,e,n)),r}function io(t,e){let n=vr(t,e);if(n>=0)return t[n|1]}function vr(t,e){return zg(t,e,1)}function zg(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}var Cn={},ze=[],li=new ct(""),Ic=new ct("",-1),Tc=new ct(""),Cc=class{get(t,e=er){if(e===er){let n=new Error(`NullInjectorError: No provider for ${re(t)}!`);throw n.name="NullInjectorError",n}return e}};function Di(t){return t[Cg]||null}function Nc(t){return t[Ng]||null}function Oc(t){return t[Og]||null}function Gg(t){let e=Di(t)||Nc(t)||Oc(t);return e!==null&&e.standalone}function qg(t){return{\u0275providers:t}}function Wg(...t){return{\u0275providers:xc(!0,t),\u0275fromNgModule:!0}}function xc(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Vs(e,s=>{let a=s;xo(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Dc(i,o),n}function Dc(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:i}=t[n];Fs(i,o=>{e(o,r)})}}function xo(t,e,n,r){if(t=ee(t),!t)return!1;let i=null,o=uu(t),s=!o&&Di(t);if(!o&&!s){let u=t.ngModule;if(o=uu(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of u)xo(l,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Vs(o.imports,d=>{xo(d,e,n,r)&&(l||=[],l.push(d))})}finally{}l!==void 0&&Dc(l,e)}if(!a){let l=Tn(i)||(()=>new i);e({provide:i,useFactory:l,deps:ze},i),e({provide:Tc,useValue:i,multi:!0},i),e({provide:li,useValue:()=>lt(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let l=t;Fs(u,d=>{e(d,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Fs(t,e){for(let n of t)bc(n)&&(n=n.\u0275providers),Array.isArray(n)?Fs(n,e):e(n)}var Yg=ft({provide:String,useValue:ft});function kc(t){return t!==null&&typeof t=="object"&&Yg in t}function Kg(t){return!!(t&&t.useExisting)}function Zg(t){return!!(t&&t.useFactory)}function Do(t){return typeof t=="function"}var Us=new ct(""),Qr={},Qg={},oo;function Hs(){return oo===void 0&&(oo=new Cc),oo}var nr=class{},Bs=class extends nr{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,Ao(t,o=>this.processProvider(o)),this.records.set(Ic,gn(void 0,this)),r.has("environment")&&this.records.set(nr,gn(void 0,this));let i=this.records.get(Us);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Tc,ze,q.Self))}destroy(){Kn(this),this._destroyed=!0;let t=et(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),et(t)}}onDestroy(t){return Kn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Kn(this);let e=Se(this),n=jt(void 0),r;try{return t()}finally{Se(e),jt(n)}}get(t,e=er,n=q.Default){if(Kn(this),t.hasOwnProperty(fu))return t[fu](this);n=xi(n);let r,i=Se(this),o=jt(void 0);try{if(!(n&q.SkipSelf)){let a=this.records.get(t);if(a===void 0){let u=rm(t)&&Ms(t);u&&this.injectableDefInScope(u)?a=gn(ko(t),Qr):a=null,this.records.set(t,a)}if(a!=null)return this.hydrate(t,a)}let s=n&q.Self?Hs():this.parent;return e=n&q.Optional&&e===er?null:e,s.get(t,e)}catch(s){if(s.name==="NullInjectorError"){if((s[ui]=s[ui]||[]).unshift(re(t)),i)throw s;return Fg(s,t,"R3InjectorError",this.source)}else throw s}finally{jt(o),Se(i)}}resolveInjectorInitializers(){let t=et(null),e=Se(this),n=jt(void 0),r;try{let i=this.get(li,ze,q.Self);for(let o of i)o()}finally{Se(e),jt(n),et(t)}}toString(){let t=[],e=this.records;for(let n of e.keys())t.push(re(n));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ee(t);let e=Do(t)?t:ee(t&&t.provide),n=Jg(t);if(!Do(t)&&t.multi===!0){let r=this.records.get(e);r||(r=gn(void 0,Qr,!0),r.factory=()=>Oo(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,n)}hydrate(t,e){let n=et(null);try{return e.value===Qr&&(e.value=Qg,e.value=e.factory()),typeof e.value=="object"&&e.value&&nm(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{et(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let e=ee(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function ko(t){let e=Ms(t),n=e!==null?e.factory:Tn(t);if(n!==null)return n;if(t instanceof ct)throw new it(204,!1);if(t instanceof Function)return Xg(t);throw new it(204,!1)}function Xg(t){if(t.length>0)throw new it(204,!1);let e=Ig(t);return e!==null?()=>e.factory(t):()=>new t}function Jg(t){if(kc(t))return gn(void 0,t.useValue);{let e=tm(t);return gn(e,Qr)}}function tm(t,e,n){let r;if(Do(t)){let i=ee(t);return Tn(i)||ko(i)}else if(kc(t))r=()=>ee(t.useValue);else if(Zg(t))r=()=>t.useFactory(...Oo(t.deps||[]));else if(Kg(t))r=()=>lt(ee(t.useExisting));else{let i=ee(t&&(t.useClass||t.provide));if(em(t))r=()=>new i(...Oo(t.deps));else return Tn(i)||ko(i)}return r}function Kn(t){if(t.destroyed)throw new it(205,!1)}function gn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function em(t){return!!t.deps}function nm(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function rm(t){return typeof t=="function"||typeof t=="object"&&t instanceof ct}function Ao(t,e){for(let n of t)Array.isArray(n)?Ao(n,e):n&&bc(n)?Ao(n.\u0275providers,e):e(n)}function Ac(t,e){t instanceof Bs&&Kn(t);let n,r=Se(t),i=jt(void 0);try{return e()}finally{Se(r),jt(i)}}function im(){return Ec()!==void 0||Mg()!=null}var be=0,K=1,U=2,Xt=3,ie=4,ce=5,rr=6,hu=7,kt=8,ir=9,ye=10,Gt=11,or=12,pu=13,Mn=14,le=15,Nn=16,mn=17,On=18,ki=19,Rc=20,De=21,so=22,ci=23,Bt=24,ao=25,Lt=26,Lc=1,sr=7,om=8,fi=9,Vt=10;function Be(t){return Array.isArray(t)&&typeof t[Lc]=="object"}function nn(t){return Array.isArray(t)&&t[Lc]===!0}function Pc(t){return(t.flags&4)!==0}function Ai(t){return t.componentOffset>-1}function Mc(t){return(t.flags&1)===1}function rn(t){return!!t.template}function di(t){return(t[U]&512)!==0}function yr(t){return(t[U]&256)===256}var sm=class{previousValue;currentValue;firstChange;constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function jc(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function am(t){return t.type.prototype.ngOnChanges&&(t.setInput=lm),um}function um(){let t=Fc(this),e=t?.current;if(e){let n=t.previous;if(n===Cn)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function lm(t,e,n,r,i){let o=this.declaredInputs[r],s=Fc(t)||cm(t,{previous:Cn,current:null}),a=s.current||(s.current={}),u=s.previous,l=u[o];a[o]=new sm(l&&l.currentValue,n,u===Cn),jc(t,e,i,n)}var Vc="__ngSimpleChanges__";function Fc(t){return t[Vc]||null}function cm(t,e){return t[Vc]=e}var fm=null,dt=function(t,e=null,n){fm?.(t,e,n)},dm="svg",hm="math";function Ae(t){for(;Array.isArray(t);)t=t[be];return t}function Uc(t,e){return Ae(e[t])}function on(t,e){return Ae(e[t.index])}function $s(t,e){return t.data[e]}function Hc(t,e){return t[e]}function Ge(t,e){let n=e[t];return Be(n)?n:n[be]}function zs(t){return(t[U]&128)===128}function xn(t,e){return e==null?null:t[e]}function Bc(t){t[mn]=0}function Gs(t){t[U]&1024||(t[U]|=1024,zs(t)&&Li(t))}function pm(t,e){for(;t>0;)e=e[Mn],t--;return e}function Ri(t){return!!(t[U]&9216||t[Bt]?.dirty)}function Ro(t){t[ye].changeDetectionScheduler?.notify(8),t[U]&64&&(t[U]|=1024),Ri(t)&&Li(t)}function Li(t){t[ye].changeDetectionScheduler?.notify(0);let e=qe(t);for(;e!==null&&!(e[U]&8192||(e[U]|=8192,!zs(e)));)e=qe(e)}function $c(t,e){if(yr(t))throw new it(911,!1);t[De]===null&&(t[De]=[]),t[De].push(e)}function gm(t,e){if(t[De]===null)return;let n=t[De].indexOf(e);n!==-1&&t[De].splice(n,1)}function qe(t){let e=t[Xt];return nn(e)?e[Xt]:e}var Z={lFrame:Xc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Lo=!1;function mm(){return Z.lFrame.elementDepthCount}function vm(){Z.lFrame.elementDepthCount++}function ym(){Z.lFrame.elementDepthCount--}function zc(){return Z.bindingsEnabled}function _m(){return Z.skipHydrationRootTNode!==null}function bm(t){return Z.skipHydrationRootTNode===t}function Em(){Z.skipHydrationRootTNode=null}function yt(){return Z.lFrame.lView}function fe(){return Z.lFrame.tView}function _r(){let t=Gc();for(;t!==null&&t.type===64;)t=t.parent;return t}function Gc(){return Z.lFrame.currentTNode}function wm(){let t=Z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function jn(t,e){let n=Z.lFrame;n.currentTNode=t,n.isParent=e}function qc(){return Z.lFrame.isParent}function Sm(){Z.lFrame.isParent=!1}function Wc(){return Lo}function gu(t){let e=Lo;return Lo=t,e}function Yc(){let t=Z.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Im(t){return Z.lFrame.bindingIndex=t}function Pi(){return Z.lFrame.bindingIndex++}function Tm(t){let e=Z.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Cm(){return Z.lFrame.inI18n}function Nm(t,e){let n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=t,Po(e)}function Om(){return Z.lFrame.currentDirectiveIndex}function Po(t){Z.lFrame.currentDirectiveIndex=t}function xm(t){let e=Z.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Kc(t){Z.lFrame.currentQueryIndex=t}function Dm(t){let e=t[K];return e.type===2?e.declTNode:e.type===1?t[ce]:null}function Zc(t,e,n){if(n&q.SkipSelf){let i=e,o=t;for(;(i=i.parent,i===null&&!(n&q.Host))&&(i=Dm(o),!(i===null||(o=o[Mn],i.type&10))););if(i===null)return!1;e=i,t=o}let r=Z.lFrame=Qc();return r.currentTNode=e,r.lView=t,!0}function qs(t){let e=Qc(),n=t[K];Z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Qc(){let t=Z.lFrame,e=t===null?null:t.child;return e===null?Xc(t):e}function Xc(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Jc(){let t=Z.lFrame;return Z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var tf=Jc;function Ws(){let t=Jc();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function km(t){return(Z.lFrame.contextLView=pm(t,Z.lFrame.contextLView))[kt]}function sn(){return Z.lFrame.selectedIndex}function We(t){Z.lFrame.selectedIndex=t}function Am(){let t=Z.lFrame;return $s(t.tView,t.selectedIndex)}function Rm(){return Z.lFrame.currentNamespace}var ef=!0;function Ys(){return ef}function Ks(t){ef=t}function Lm(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=am(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function nf(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:u,ngOnDestroy:l}=i;o&&(t.contentHooks??=[]).push(-n,o),s&&((t.contentHooks??=[]).push(n,s),(t.contentCheckHooks??=[]).push(n,s)),a&&(t.viewHooks??=[]).push(-n,a),u&&((t.viewHooks??=[]).push(n,u),(t.viewCheckHooks??=[]).push(n,u)),l!=null&&(t.destroyHooks??=[]).push(n,l)}}function Xr(t,e,n){rf(t,e,3,n)}function Jr(t,e,n,r){(t[U]&3)===n&&rf(t,e,n,r)}function uo(t,e){let n=t[U];(n&3)===e&&(n&=16383,n+=1,t[U]=n)}function rf(t,e,n,r){let i=r!==void 0?t[mn]&65535:0,o=r??-1,s=e.length-1,a=0;for(let u=i;u<s;u++)if(typeof e[u+1]=="number"){if(a=e[u],r!=null&&a>=r)break}else e[u]<0&&(t[mn]+=65536),(a<o||o==-1)&&(Pm(t,n,e,u),t[mn]=(t[mn]&4294901760)+u+2),u++}function mu(t,e){dt(4,t,e);let n=et(null);try{e.call(t)}finally{et(n),dt(5,t,e)}}function Pm(t,e,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=t[s];i?t[U]>>14<t[mn]>>16&&(t[U]&3)===e&&(t[U]+=16384,mu(a,o)):mu(a,o)}var En=-1,Zs=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,e,n){this.factory=t,this.canSeeViewProviders=e,this.injectImpl=n}};function Mm(t){return t instanceof Zs}function jm(t){return(t.flags&8)!==0}function Vm(t){return(t.flags&16)!==0}function Fm(t,e,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++],a=n[r++];t.setAttribute(e,s,a,o)}else{let o=i,s=n[++r];Hm(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function Um(t){return t===3||t===4||t===6}function Hm(t){return t.charCodeAt(0)===64}function Qs(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let i=e[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?vu(t,n,i,null,e[++r]):vu(t,n,i,null,null))}}return t}function vu(t,e,n,r,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(t[o+1]=i);return}else if(r===t[o+1]){t[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),r!==null&&t.splice(o++,0,r),i!==null&&t.splice(o++,0,i)}var lo={},Bm=class{injector;parentInjector;constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,n){n=xi(n);let r=this.injector.get(t,lo,n);return r!==lo||e===lo?r:this.parentInjector.get(t,e,n)}};function $m(t){return t!==En}function Mo(t){return t&32767}function zm(t){return t>>16}function jo(t,e){let n=zm(t),r=e;for(;n>0;)r=r[Mn],n--;return r}var Vo=!0;function hi(t){let e=Vo;return Vo=t,e}var Gm=256,of=Gm-1,sf=5,qm=0,ue={};function Wm(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jn)&&(r=n[Jn]),r==null&&(r=n[Jn]=qm++);let i=r&of,o=1<<i;e.data[t+(i>>sf)]|=o}function af(t,e){let n=uf(t,e);if(n!==-1)return n;let r=e[K];r.firstCreatePass&&(t.injectorIndex=e.length,co(r.data,t),co(e,null),co(r.blueprint,null));let i=lf(t,e),o=t.injectorIndex;if($m(i)){let s=Mo(i),a=jo(i,e),u=a[K].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|u[s+l]}return e[o+8]=i,o}function co(t,e){t.push(0,0,0,0,0,0,0,0,e)}function uf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function lf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=gf(i),r===null)return En;if(n++,i=i[Mn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return En}function Ym(t,e,n){Wm(t,e,n)}function cf(t,e,n){if(n&q.Optional||t!==void 0)return t;js(e,"NodeInjector")}function ff(t,e,n,r){if(n&q.Optional&&r===void 0&&(r=null),(n&(q.Self|q.Host))===0){let i=t[ir],o=jt(void 0);try{return i?i.get(e,r,n&q.Optional):wc(e,r,n&q.Optional)}finally{jt(o)}}return cf(r,e,n)}function df(t,e,n,r=q.Default,i){if(t!==null){if(e[U]&2048&&!(r&q.Self)){let s=Jm(t,e,n,r,ue);if(s!==ue)return s}let o=hf(t,e,n,r,ue);if(o!==ue)return o}return ff(e,n,r,i)}function hf(t,e,n,r,i){let o=Qm(n);if(typeof o=="function"){if(!Zc(e,t,r))return r&q.Host?cf(i,n,r):ff(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&q.Optional))js(n);else return s}finally{tf()}}else if(typeof o=="number"){let s=null,a=uf(t,e),u=En,l=r&q.Host?e[le][ce]:null;for((a===-1||r&q.SkipSelf)&&(u=a===-1?lf(t,e):e[a+8],u===En||!_u(r,!1)?a=-1:(s=e[K],a=Mo(u),e=jo(u,e)));a!==-1;){let d=e[K];if(yu(o,a,d.data)){let h=Km(a,e,n,s,r,l);if(h!==ue)return h}u=e[a+8],u!==En&&_u(r,e[K].data[a+8]===l)&&yu(o,a,e)?(s=d,a=Mo(u),e=jo(u,e)):a=-1}}return i}function Km(t,e,n,r,i,o){let s=e[K],a=s.data[t+8],u=r==null?Ai(a)&&Vo:r!=s&&(a.type&3)!==0,l=i&q.Host&&o===a,d=Zm(a,s,n,u,l);return d!==null?Fo(e,s,d,a):ue}function Zm(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,u=t.directiveStart,l=t.directiveEnd,d=o>>20,h=r?a:a+d,y=i?a+d:l;for(let _=h;_<y;_++){let w=s[_];if(_<u&&n===w||_>=u&&w.type===n)return _}if(i){let _=s[u];if(_&&rn(_)&&_.type===n)return u}return null}function Fo(t,e,n,r){let i=t[n],o=e.data;if(Mm(i)){let s=i;s.resolving&&Dg(xg(o[n]));let a=hi(s.canSeeViewProviders);s.resolving=!0;let u,l=s.injectImpl?jt(s.injectImpl):null,d=Zc(t,r,q.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&Lm(n,o[n],e)}finally{l!==null&&jt(l),hi(a),s.resolving=!1,tf()}}return i}function Qm(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Jn)?t[Jn]:void 0;return typeof e=="number"?e>=0?e&of:Xm:e}function yu(t,e,n){let r=1<<t;return!!(n[e+(t>>sf)]&r)}function _u(t,e){return!(t&q.Self)&&!(t&q.Host&&e)}var pf=class{_tNode;_lView;constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return df(this._tNode,this._lView,t,xi(n),e)}};function Xm(){return new pf(_r(),yt())}function Jm(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[U]&2048&&!di(s);){let a=hf(o,s,n,r|q.Self,ue);if(a!==ue)return a;let u=o.parent;if(!u){let l=s[Rc];if(l){let d=l.get(n,ue,r);if(d!==ue)return d}u=gf(s),s=s[Mn]}o=u}return i}function gf(t){let e=t[K],n=e.type;return n===2?e.declTNode:n===1?t[ce]:null}function bu(t,e=null,n=null,r){let i=tv(t,e,n,r);return i.resolveInjectorInitializers(),i}function tv(t,e=null,n=null,r,i=new Set){let o=[n||ze,Wg(t)];return r=r||(typeof t=="object"?void 0:re(t)),new Bs(o,e||Hs(),r||null,i)}var Mi=class mf{static THROW_IF_NOT_FOUND=er;static NULL=new Cc;static create(e,n){if(Array.isArray(e))return bu({name:""},n,e,"");{let r=e.name??"";return bu({name:r},e.parent,e.providers,r)}}static \u0275prov=Et({token:mf,providedIn:"any",factory:()=>lt(Ic)});static __NG_ELEMENT_ID__=-1},ev=new ct("");ev.__NG_ELEMENT_ID__=t=>{let e=_r();if(e===null)throw new it(204,!1);if(e.type&2)return e.value;if(t&q.Optional)return null;throw new it(204,!1)};var vf=!1,yf=(()=>{class t{static __NG_ELEMENT_ID__=rv;static __NG_ENV_ID__=n=>n}return t})(),nv=class extends yf{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return $c(this._lView,t),()=>gm(this._lView,t)}};function rv(){return new nv(yt())}var br=class{},Xs=new ct("",{providedIn:"root",factory:()=>!1}),_f=new ct(""),Js=new ct(""),ji=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Wp(!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=Et({token:t,providedIn:"root",factory:()=>new t})}return t})(),iv=class extends mr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,im()&&(this.destroyRef=at(yf,{optional:!0})??void 0,this.pendingTasks=at(ji,{optional:!0})??void 0)}emit(t){let e=et(null);try{super.next(t)}finally{et(e)}}subscribe(t,e,n){let r=t,i=e||(()=>null),o=n;if(t&&typeof t=="object"){let a=t;r=a.next?.bind(a),i=a.error?.bind(a),o=a.complete?.bind(a)}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 t instanceof ve&&t.add(s),s}wrapInTimeout(t){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{t(e),n!==void 0&&this.pendingTasks?.remove(n)})}}},Ne=iv;function pi(...t){}function bf(t){let e,n;function r(){t=pi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Eu(t){return queueMicrotask(()=>t()),()=>{t=pi}}var ta="isAngularZone",gi=ta+"_ID",ov=0,$t=class Uo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ne(!1);onMicrotaskEmpty=new Ne(!1);onStable=new Ne(!1);onError=new Ne(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=vf}=e;if(typeof Zone>"u")throw new it(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,uv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ta)===!0}static assertInAngularZone(){if(!Uo.isInAngularZone())throw new it(909,!1)}static assertNotInAngularZone(){if(Uo.isInAngularZone())throw new it(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,sv,pi,pi);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},sv={};function ea(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function av(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){bf(()=>{t.callbackScheduled=!1,Ho(t),t.isCheckStableRunning=!0,ea(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Ho(t)}function uv(t){let e=()=>{av(t)},n=ov++;t._inner=t._inner.fork({name:"angular",properties:{[ta]:!0,[gi]:n,[gi+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(lv(u))return r.invokeTask(o,s,a,u);try{return wu(t),r.invokeTask(o,s,a,u)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Su(t)}},onInvoke:(r,i,o,s,a,u,l)=>{try{return wu(t),r.invoke(o,s,a,u,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!cv(u)&&e(),Su(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Ho(t),ea(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Ho(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Su(t){t._nesting--,ea(t)}var Ef=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ne;onMicrotaskEmpty=new Ne;onStable=new Ne;onError=new Ne;run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}};function lv(t){return wf(t,"__ignore_ng_zone__")}function cv(t){return wf(t,"__scheduler_tick__")}function wf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Er=class{_console=console;handleError(t){this._console.error("ERROR",t)}},fv=new ct("",{providedIn:"root",factory:()=>{let t=at($t),e=at(Er);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function dv(){return Sf(_r(),yt())}function Sf(t,e){return new If(on(t,e))}var If=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=dv}return t})();function fo(t,e){let n=xp(t),r=n[Oe];return e?.equal&&(r.equal=e.equal),n.set=i=>Wl(r,i),n.update=i=>Dp(r,i),n.asReadonly=hv.bind(n),n}function hv(){let t=this[Oe];if(t.readonlyFn===void 0){let e=()=>this();e[Oe]=t,t.readonlyFn=e}return t.readonlyFn}function Tf(t){return(t.flags&128)===128}var Cf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Cf||{}),Nf=new Map,pv=0;function gv(){return pv++}function mv(t){Nf.set(t[ki],t)}function Bo(t){Nf.delete(t[ki])}var Iu="__ngContext__";function wr(t,e){Be(e)?(t[Iu]=e[ki],mv(e)):t[Iu]=e}function Of(t){return Df(t[or])}function xf(t){return Df(t[ie])}function Df(t){for(;t!==null&&!nn(t);)t=t[ie];return t}var $o;function vv(t){$o=t}function kf(){if($o!==void 0)return $o;if(typeof document<"u")return document;throw new it(210,!1)}var Af=new ct("",{providedIn:"root",factory:()=>yv}),yv="ng",Rf=new ct(""),na=new ct("",{providedIn:"platform",factory:()=>"unknown"}),Lf=new ct("",{providedIn:"root",factory:()=>kf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),_v="h",bv="b",Pf=!1,Ev=new ct("",{providedIn:"root",factory:()=>Pf}),Mf=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(Mf||{}),ra=new ct(""),Tu=new Set;function Vi(t){Tu.has(t)||(Tu.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var wv=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=Et({token:t,providedIn:"root",factory:()=>new t})}return t})(),Sv=()=>null;function jf(t,e,n=!1){return Sv(t,e,n)}function Vf(t,e){let n=t.contentQueries;if(n!==null){let r=et(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=t.data[s];Kc(o),a.contentQueries(2,e[s],s)}}}finally{et(r)}}}function zo(t,e,n){Kc(0);let r=et(null);try{e(t,n)}finally{et(r)}}function Ff(t,e,n){if(Pc(e)){let r=et(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let u=n[s];a.contentQueries(1,u,s)}}}finally{et(r)}}}var ge=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ge||{}),Vr;function Iv(){if(Vr===void 0&&(Vr=null,ai.trustedTypes))try{Vr=ai.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Vr}function Fi(t){return Iv()?.createHTML(t)||t}var Fr;function Tv(){if(Fr===void 0&&(Fr=null,ai.trustedTypes))try{Fr=ai.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Fr}function Cu(t){return Tv()?.createHTML(t)||t}var an=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${mc})`}},Cv=class extends an{getTypeName(){return"HTML"}},Nv=class extends an{getTypeName(){return"Style"}},Ov=class extends an{getTypeName(){return"Script"}},xv=class extends an{getTypeName(){return"URL"}},Dv=class extends an{getTypeName(){return"ResourceURL"}};function Ce(t){return t instanceof an?t.changingThisBreaksApplicationSecurity:t}function Fe(t,e){let n=kv(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${mc})`)}return n===e}function kv(t){return t instanceof an&&t.getTypeName()||null}function Av(t){return new Cv(t)}function Rv(t){return new Nv(t)}function Lv(t){return new Ov(t)}function Pv(t){return new xv(t)}function Mv(t){return new Dv(t)}function jv(t){let e=new Fv(t);return Uv()?new Vv(e):e}var Vv=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let e=new window.DOMParser().parseFromString(Fi(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.firstChild?.remove(),e)}catch{return null}}},Fv=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=Fi(t),e}};function Uv(){try{return!!new window.DOMParser().parseFromString(Fi(""),"text/html")}catch{return!1}}var Hv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ia(t){return t=String(t),t.match(Hv)?t:"unsafe:"+t}function Ee(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Sr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Uf=Ee("area,br,col,hr,img,wbr"),Hf=Ee("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Bf=Ee("rp,rt"),Bv=Sr(Bf,Hf),$v=Sr(Hf,Ee("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")),zv=Sr(Bf,Ee("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")),Nu=Sr(Uf,$v,zv,Bv),$f=Ee("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gv=Ee("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"),qv=Ee("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"),Wv=Sr($f,Gv,qv),Yv=Ee("script,style,template"),Kv=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let e=t.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=Xv(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=Qv(e);if(i){e=i;break}e=r.pop()}}return this.buf.join("")}startElement(t){let e=Ou(t).toLowerCase();if(!Nu.hasOwnProperty(e))return this.sanitizedSomething=!0,!Yv.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=t.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!Wv.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;$f[s]&&(a=ia(a)),this.buf.push(" ",o,'="',xu(a),'"')}return this.buf.push(">"),!0}endElement(t){let e=Ou(t).toLowerCase();Nu.hasOwnProperty(e)&&!Uf.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(xu(t))}};function Zv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Qv(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw zf(e);return e}function Xv(t){let e=t.firstChild;if(e&&Zv(t,e))throw zf(e);return e}function Ou(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function zf(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Jv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ty=/([^\#-~ |!])/g;function xu(t){return t.replace(/&/g,"&").replace(Jv,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(ty,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ur;function Gf(t,e){let n=null;try{Ur=Ur||jv(t);let r=e?String(e):"";n=Ur.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=Ur.getInertBodyElement(r)}while(r!==o);let s=new Kv().sanitizeChildren(Du(n)||n);return Fi(s)}finally{if(n){let r=Du(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Du(t){return"content"in t&&ey(t)?t.content:null}function ey(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var pe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(pe||{});function qf(t){let e=Wf();return e?Cu(e.sanitize(pe.HTML,t)||""):Fe(t,"HTML")?Cu(Ce(t)):Gf(kf(),Oi(t))}function ny(t){let e=Wf();return e?e.sanitize(pe.URL,t)||"":Fe(t,"URL")?Ce(t):ia(Oi(t))}function Wf(){let t=yt();return t&&t[ye].sanitizer}function ry(t,e,n){let r=t.length;for(;;){let i=t.indexOf(e,n);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}var Yf="ng-template";function iy(t,e,n,r){let i=0;if(r){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&ry(e[i+1].toLowerCase(),n,0)!==-1)return!0}else if(oa(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function oa(t){return t.type===4&&t.value!==Yf}function oy(t,e,n){let r=t.type===4&&!n?Yf:t.value;return e===r}function sy(t,e,n){let r=4,i=t.attrs,o=i!==null?ly(i):0,s=!1;for(let a=0;a<e.length;a++){let u=e[a];if(typeof u=="number"){if(!s&&!te(r)&&!te(u))return!1;if(s&&te(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!oy(t,u,n)||u===""&&e.length===1){if(te(r))return!1;s=!0}}else if(r&8){if(i===null||!iy(t,i,u,n)){if(te(r))return!1;s=!0}}else{let l=e[++a],d=ay(u,i,oa(t),n);if(d===-1){if(te(r))return!1;s=!0;continue}if(l!==""){let h;if(d>o?h="":h=i[d+1].toLowerCase(),r&2&&l!==h){if(te(r))return!1;s=!0}}}}return te(r)||s}function te(t){return(t&1)===0}function ay(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return cy(e,t)}function uy(t,e,n=!1){for(let r=0;r<e.length;r++)if(sy(t,e[r],n))return!0;return!1}function ly(t){for(let e=0;e<t.length;e++){let n=t[e];if(Um(n))return e}return t.length}function cy(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function ku(t,e){return t?":not("+e.trim()+")":e}function fy(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!te(s)&&(e+=ku(o,i),i=""),r=s,o=o||!te(r);n++}return i!==""&&(e+=ku(o,i)),e}function dy(t){return t.map(fy).join(",")}function hy(t){let e=[],n=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++r]):i===8&&n.push(o);else{if(!te(i))break;i=o}r++}return n.length&&e.push(1,...n),e}var Me={};function py(t,e){return t.createText(e)}function gy(t,e,n){t.setValue(e,n)}function Kf(t,e,n){return t.createElement(e,n)}function Go(t,e,n,r,i){t.insertBefore(e,n,r,i)}function Zf(t,e,n){t.appendChild(e,n)}function Au(t,e,n,r,i){r!==null?Go(t,e,n,r,i):Zf(t,e,n)}function my(t,e,n){t.removeChild(null,e,n)}function vy(t,e,n){t.setAttribute(e,"style",n)}function yy(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Qf(t,e,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Fm(t,e,r),i!==null&&yy(t,e,i),o!==null&&vy(t,e,o)}function sa(t,e,n,r,i,o,s,a,u,l,d){let h=Lt+r,y=h+i,_=_y(h,y),w=typeof l=="function"?l():l;return _[K]={type:t,blueprint:_,template:n,queries:null,viewQuery:a,declTNode:e,data:_.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:y,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:u,consts:w,incompleteFirstPass:!1,ssrId:d}}function _y(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Me);return n}function by(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=sa(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function aa(t,e,n,r,i,o,s,a,u,l,d){let h=e.blueprint.slice();return h[be]=i,h[U]=r|4|128|8|64|1024,(l!==null||t&&t[U]&2048)&&(h[U]|=2048),Bc(h),h[Xt]=h[Mn]=t,h[kt]=n,h[ye]=s||t&&t[ye],h[Gt]=a||t&&t[Gt],h[ir]=u||t&&t[ir]||null,h[ce]=o,h[ki]=gv(),h[rr]=d,h[Rc]=l,h[le]=e.type==2?t[le]:h,h}function Ey(t,e,n){let r=on(e,t),i=by(n),o=t[ye].rendererFactory,s=td(t,aa(t,i,null,Xf(n),r,e,null,o.createRenderer(r,n),null,null,null));return t[e.index]=s}function Xf(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function Jf(t,e,n,r){if(n===0)return-1;let i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function td(t,e){return t[or]?t[pu][ie]=e:t[or]=e,t[pu]=e,e}function wn(t=1){ed(fe(),yt(),sn()+t,!1)}function ed(t,e,n,r){if(!r)if((e[U]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Xr(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Jr(e,i,0,n)}We(n)}var Ui=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Ui||{});function qo(t,e,n,r){let i=et(null);try{let[o,s,a]=t.inputs[n],u=null;(s&Ui.SignalBased)!==0&&(u=e[o][Oe]),u!==null&&u.transformFn!==void 0?r=u.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,u,r,n,o):jc(e,u,o,r)}finally{et(i)}}function nd(t,e,n,r,i){let o=sn(),s=r&2;try{We(-1),s&&e.length>Lt&&ed(t,e,Lt,!1),dt(s?2:0,i),n(r,i)}finally{We(o),dt(s?3:1,i)}}function ua(t,e,n){Oy(t,e,n),(n.flags&64)===64&&xy(t,e,n)}function rd(t,e,n=on){let r=e.localNames;if(r!==null){let i=e.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(e,t):t[s];t[i++]=a}}}function wy(t,e,n,r){let i=r.get(Ev,Pf)||n===ge.ShadowDom,o=t.selectRootElement(e,i);return Sy(o),o}function Sy(t){Iy(t)}var Iy=()=>null;function Ty(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Cy(t,e,n,r,i,o,s,a){if(!a&&la(e,t,n,r,i)){Ai(e)&&Ny(n,e.index);return}if(e.type&3){let u=on(e,n);r=Ty(r),i=s!=null?s(i,e.value||"",r):i,o.setProperty(u,r,i)}else e.type&12}function Ny(t,e){let n=Ge(e,t);n[U]&16||(n[U]|=64)}function Oy(t,e,n){let r=n.directiveStart,i=n.directiveEnd;Ai(n)&&Ey(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||af(n,e);let o=n.initialInputs;for(let s=r;s<i;s++){let a=t.data[s],u=Fo(e,t,s,n);if(wr(u,e),o!==null&&ky(e,s-r,u,a,n,o),rn(a)){let l=Ge(n.index,e);l[kt]=Fo(e,t,s,n)}}}function xy(t,e,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Om();try{We(o);for(let a=r;a<i;a++){let u=t.data[a],l=e[a];Po(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&Dy(u,l)}}finally{We(-1),Po(s)}}function Dy(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function id(t,e){let n=t.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];uy(e,o.selectors,!1)&&(r??=[],rn(o)?r.unshift(o):r.push(o))}return r}function ky(t,e,n,r,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;a+=2){let u=s[a],l=s[a+1];qo(r,n,u,l)}}function Ay(t,e){let n=t[ir],r=n?n.get(Er,null):null;r&&r.handleError(e)}function la(t,e,n,r,i){let o=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let u=0;u<s.length;u+=2){let l=s[u],d=s[u+1],h=e.data[l];qo(h,n[l],d,i),a=!0}if(o)for(let u of o){let l=n[u],d=e.data[u];qo(d,l,r,i),a=!0}return a}function Ry(t,e){let n=Ge(e,t),r=n[K];Ly(r,n);let i=n[be];i!==null&&n[rr]===null&&(n[rr]=jf(i,n[ir])),dt(18),ca(r,n,n[kt]),dt(19,n[kt])}function Ly(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function ca(t,e,n){qs(e);try{let r=t.viewQuery;r!==null&&zo(1,r,n);let i=t.template;i!==null&&nd(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[On]?.finishViewCreation(t),t.staticContentQueries&&Vf(t,e),t.staticViewQueries&&zo(2,t.viewQuery,n);let o=t.components;o!==null&&Py(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[U]&=-5,Ws()}}function Py(t,e){for(let n=0;n<e.length;n++)Ry(t,e[n])}function fa(t,e,n,r){let i=et(null);try{let o=e.tView,s=t[U]&4096?4096:16,a=aa(t,o,n,s,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=t[e.index];a[Nn]=u;let l=t[On];return l!==null&&(a[On]=l.createEmbeddedView(o)),ca(o,a,n),a}finally{et(i)}}function da(t,e){return!e||e.firstChild===null||Tf(t)}var My;function ha(t,e){return My(t,e)}var He=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(He||{});function od(t){return(t.flags&32)===32}function vn(t,e,n,r,i){if(r!=null){let o,s=!1;nn(r)?o=r:Be(r)&&(s=!0,r=r[be]);let a=Ae(r);t===0&&n!==null?i==null?Zf(e,n,a):Go(e,n,a,i||null,!0):t===1&&n!==null?Go(e,n,a,i||null,!0):t===2?my(e,a,s):t===3&&e.destroyNode(a),o!=null&&Yy(e,t,o,n,i)}}function jy(t,e){sd(t,e),e[be]=null,e[ce]=null}function Vy(t,e,n,r,i,o){r[be]=i,r[ce]=e,Hi(t,r,n,1,i,o)}function sd(t,e){e[ye].changeDetectionScheduler?.notify(9),Hi(t,e,e[Gt],2,null,null)}function Fy(t){let e=t[or];if(!e)return ho(t[K],t);for(;e;){let n=null;if(Be(e))n=e[or];else{let r=e[Vt];r&&(n=r)}if(!n){for(;e&&!e[ie]&&e!==t;)Be(e)&&ho(e[K],e),e=e[Xt];e===null&&(e=t),Be(e)&&ho(e[K],e),n=e&&e[ie]}e=n}}function pa(t,e){let n=t[fi],r=n.indexOf(e);n.splice(r,1)}function ga(t,e){if(yr(e))return;let n=e[Gt];n.destroyNode&&Hi(t,e,n,3,null,null),Fy(e)}function ho(t,e){if(yr(e))return;let n=et(null);try{e[U]&=-129,e[U]|=256,e[Bt]&&Hl(e[Bt]),Hy(t,e),Uy(t,e),e[K].type===1&&e[Gt].destroy();let r=e[Nn];if(r!==null&&nn(e[Xt])){r!==e[Xt]&&pa(r,e);let i=e[On];i!==null&&i.detachView(t)}Bo(e)}finally{et(n)}}function Uy(t,e){let n=t.cleanup,r=e[hu];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[hu]=null);let i=e[De];if(i!==null){e[De]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=e[ci];if(o!==null){e[ci]=null;for(let s of o)s.destroy()}}function Hy(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=e[n[r]];if(!(i instanceof Zs)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];dt(4,a,u);try{u.call(a)}finally{dt(5,a,u)}}else{dt(4,i,o);try{o.call(i)}finally{dt(5,i,o)}}}}}function By(t,e,n){return $y(t,e.parent,n)}function $y(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[be];if(Ai(r)){let{encapsulation:i}=t.data[r.directiveStart+r.componentOffset];if(i===ge.None||i===ge.Emulated)return null}return on(r,n)}function zy(t,e,n){return qy(t,e,n)}function Gy(t,e,n){return t.type&40?on(t,n):null}var qy=Gy,Ru;function ma(t,e,n,r){let i=By(t,r,e),o=e[Gt],s=r.parent||e[ce],a=zy(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)Au(o,i,n[u],a,!1);else Au(o,i,n,a,!1);Ru!==void 0&&Ru(o,r,e,n,i)}function Zn(t,e){if(e!==null){let n=e.type;if(n&3)return on(e,t);if(n&4)return Wo(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Zn(t,r);{let i=t[e.index];return nn(i)?Wo(-1,i):Ae(i)}}else{if(n&128)return Zn(t,e.next);if(n&32)return ha(e,t)()||Ae(t[e.index]);{let r=ad(t,e);if(r!==null){if(Array.isArray(r))return r[0];let i=qe(t[le]);return Zn(i,r)}else return Zn(t,e.next)}}}return null}function ad(t,e){if(e!==null){let n=t[le][ce],r=e.projection;return n.projection[r]}return null}function Wo(t,e){let n=Vt+t+1;if(n<e.length){let r=e[n],i=r[K].firstChild;if(i!==null)return Zn(r,i)}return e[sr]}function va(t,e,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(s&&e===0&&(a&&wr(Ae(a),r),n.flags|=2),!od(n))if(u&8)va(t,e,n.child,r,i,o,!1),vn(e,t,i,a,o);else if(u&32){let l=ha(n,r),d;for(;d=l();)vn(e,t,i,d,o);vn(e,t,i,a,o)}else u&16?Wy(t,e,r,n,i,o):vn(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Hi(t,e,n,r,i,o){va(n,r,t.firstChild,e,i,o,!1)}function Wy(t,e,n,r,i,o){let s=n[le],a=s[ce].projection[r.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++){let l=a[u];vn(e,t,i,l,o)}else{let u=a,l=s[Xt];Tf(r)&&(u.flags|=128),va(t,e,u,l,i,o,!0)}}function Yy(t,e,n,r,i){let o=n[sr],s=Ae(n);o!==s&&vn(e,t,r,o,i);for(let a=Vt;a<n.length;a++){let u=n[a];Hi(u[K],u,t,e,r,o)}}function Ky(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:He.DashCase;i==null?t.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=He.Important),t.setStyle(n,r,i,o))}}function mi(t,e,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=e[n.index];o!==null&&r.push(Ae(o)),nn(o)&&Zy(o,r);let s=n.type;if(s&8)mi(t,e,n.child,r);else if(s&32){let a=ha(n,e),u;for(;u=a();)r.push(u)}else if(s&16){let a=ad(e,n);if(Array.isArray(a))r.push(...a);else{let u=qe(e[le]);mi(u[K],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Zy(t,e){for(let n=Vt;n<t.length;n++){let r=t[n],i=r[K].firstChild;i!==null&&mi(r[K],r,i,e)}t[sr]!==t[be]&&e.push(t[sr])}function ud(t){if(t[ao]!==null){for(let e of t[ao])e.impl.addSequence(e);t[ao].length=0}}var ld=[];function Qy(t){return t[Bt]??Xy(t)}function Xy(t){let e=ld.pop()??Object.create(t_);return e.lView=t,e}function Jy(t){t.lView[Bt]!==t&&(t.lView=null,ld.push(t))}var t_=ht(C({},As),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Li(t.lView)},consumerOnSignalRead(){this.lView[Bt]=this}});function e_(t){let e=t[Bt]??Object.create(n_);return e.lView=t,e}var n_=ht(C({},As),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=qe(t.lView);for(;e&&!cd(e[K]);)e=qe(e);e&&Gs(e)},consumerOnSignalRead(){this.lView[Bt]=this}});function cd(t){return t.type!==2}function fd(t){if(t[ci]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[ci])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[U]&8192)}}var r_=100;function dd(t,e=!0,n=0){let r=t[ye].rendererFactory,i=!1;i||r.begin?.();try{i_(t,n)}catch(o){throw e&&Ay(t,o),o}finally{i||r.end?.()}}function i_(t,e){let n=Wc();try{gu(!0),Yo(t,e);let r=0;for(;Ri(t);){if(r===r_)throw new it(103,!1);r++,Yo(t,1)}}finally{gu(n)}}function o_(t,e,n,r){if(yr(e))return;let i=e[U],o=!1,s=!1;qs(e);let a=!0,u=null,l=null;o||(cd(t)?(l=Qy(e),u=tu(l)):bp()===null?(a=!1,l=e_(e),u=tu(l)):e[Bt]&&(Hl(e[Bt]),e[Bt]=null));try{Bc(e),Im(t.bindingStartIndex),n!==null&&nd(t,e,n,2,r);let d=(i&3)===3;if(!o)if(d){let _=t.preOrderCheckHooks;_!==null&&Xr(e,_,null)}else{let _=t.preOrderHooks;_!==null&&Jr(e,_,0,null),uo(e,0)}if(s||s_(e),fd(e),hd(e,0),t.contentQueries!==null&&Vf(t,e),!o)if(d){let _=t.contentCheckHooks;_!==null&&Xr(e,_)}else{let _=t.contentHooks;_!==null&&Jr(e,_,1),uo(e,1)}u_(t,e);let h=t.components;h!==null&&gd(e,h,0);let y=t.viewQuery;if(y!==null&&zo(2,y,r),!o)if(d){let _=t.viewCheckHooks;_!==null&&Xr(e,_)}else{let _=t.viewHooks;_!==null&&Jr(e,_,2),uo(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[so]){for(let _ of e[so])_();e[so]=null}o||(ud(e),e[U]&=-73)}catch(d){throw o||Li(e),d}finally{l!==null&&(Tp(l,u),a&&Jy(l)),Ws()}}function hd(t,e){for(let n=Of(t);n!==null;n=xf(n))for(let r=Vt;r<n.length;r++){let i=n[r];pd(i,e)}}function s_(t){for(let e=Of(t);e!==null;e=xf(e)){if(!(e[U]&2))continue;let n=e[fi];for(let r=0;r<n.length;r++){let i=n[r];Gs(i)}}}function a_(t,e,n){dt(18);let r=Ge(e,t);pd(r,n),dt(19,r[kt])}function pd(t,e){zs(t)&&Yo(t,e)}function Yo(t,e){let n=t[K],r=t[U],i=t[Bt],o=!!(e===0&&r&16);if(o||=!!(r&64&&e===0),o||=!!(r&1024),o||=!!(i?.dirty&&Ul(i)),o||=!1,i&&(i.dirty=!1),t[U]&=-9217,o)o_(n,t,n.template,t[kt]);else if(r&8192){fd(t),hd(t,1);let s=n.components;s!==null&&gd(t,s,1),ud(t)}}function gd(t,e,n){for(let r=0;r<e.length;r++)a_(t,e[r],n)}function u_(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)We(~i);else{let o=i,s=n[++r],a=n[++r];Nm(s,o);let u=e[o];dt(24,u),a(2,u),dt(25,u)}}}finally{We(-1)}}function md(t,e){let n=Wc()?64:1088;for(t[ye].changeDetectionScheduler?.notify(e);t;){t[U]|=n;let r=qe(t);if(di(t)&&!r)return t;t=r}return null}function l_(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function vd(t,e){let n=Vt+e;if(n<t.length)return t[n]}function ya(t,e,n,r=!0){let i=e[K];if(c_(i,e,t,n),r){let s=Wo(n,t),a=e[Gt],u=a.parentNode(t[sr]);u!==null&&Vy(i,t[ce],a,e,u,s)}let o=e[rr];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function yd(t,e){let n=_a(t,e);return n!==void 0&&ga(n[K],n),n}function _a(t,e){if(t.length<=Vt)return;let n=Vt+e,r=t[n];if(r){let i=r[Nn];i!==null&&i!==t&&pa(i,r),e>0&&(t[n-1][ie]=r[ie]);let o=Sc(t,Vt+e);jy(r[K],r);let s=o[On];s!==null&&s.detachView(o[K]),r[Xt]=null,r[ie]=null,r[U]&=-129}return r}function c_(t,e,n,r){let i=Vt+r,o=n.length;r>0&&(n[i-1][ie]=e),r<o-Vt?(e[ie]=n[i],Hg(n,Vt+r,e)):(n.push(e),e[ie]=null),e[Xt]=n;let s=e[Nn];s!==null&&n!==s&&_d(s,e);let a=e[On];a!==null&&a.insertView(t),Ro(e),e[U]|=128}function _d(t,e){let n=t[fi],r=e[Xt];if(Be(r))t[U]|=2;else{let i=r[Xt][le];e[le]!==i&&(t[U]|=2)}n===null?t[fi]=[e]:n.push(e)}var f_=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,e=t[K];return mi(e,t,e.firstChild,[])}constructor(t,e,n=!0){this._lView=t,this._cdRefInjectingView=e,this.notifyErrorHandler=n}get context(){return this._lView[kt]}get dirty(){return!!(this._lView[U]&9280)||!!this._lView[Bt]?.dirty}set context(t){this._lView[kt]=t}get destroyed(){return yr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Xt];if(nn(t)){let e=t[om],n=e?e.indexOf(this):-1;n>-1&&(_a(t,n),Sc(e,n))}this._attachedToViewContainer=!1}ga(this._lView[K],this._lView)}onDestroy(t){$c(this._lView,t)}markForCheck(){md(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[U]&=-129}reattach(){Ro(this._lView),this._lView[U]|=128}detectChanges(){this._lView[U]|=1024,dd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new it(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=di(this._lView),e=this._lView[Nn];e!==null&&!t&&pa(e,this._lView),sd(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new it(902,!1);this._appRef=t;let e=di(this._lView),n=this._lView[Nn];n!==null&&!e&&_d(n,this._lView),Ro(this._lView)}};function Bi(t,e,n,r,i){let o=t.data[e];if(o===null)o=d_(t,e,n,r,i),Cm()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=wm();o.injectorIndex=s===null?-1:s.injectorIndex}return jn(o,!0),o}function d_(t,e,n,r,i){let o=Gc(),s=qc(),a=s?o:o&&o.parent,u=t.data[e]=p_(t,a,n,e,r,i);return h_(t,u,o,s),u}function h_(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function p_(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return _m()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value: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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var j1=new RegExp(`^(\\d+)*(${bv}|${_v})*(.*)`),g_=()=>null;function ba(t,e){return g_(t,e)}var m_=class{},bd=class{},v_=class{resolveComponentFactory(t){throw Error(`No component factory found for ${re(t)}.`)}},Ir=class{static NULL=new v_},Ea=class{},y_=(()=>{class t{static \u0275prov=Et({token:t,providedIn:"root",factory:()=>null})}return t})();function Lu(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=su(i,a);else if(o==2){let u=a,l=e[++s];r=su(r,u+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function $i(t,e=q.Default){let n=yt();if(n===null)return lt(t,e);let r=_r();return df(r,n,ee(t),e)}function Ed(t,e,n,r,i){let o=r===null?null:{"":-1},s=i(t,n);if(s!==null){let a,u=null,l=null,d=b_(s);d===null?a=s:[a,u,l]=d,S_(t,e,n,a,o,u,l)}o!==null&&r!==null&&__(n,r,o)}function __(t,e,n){let r=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=n[e[i+1]];if(o==null)throw new it(-301,!1);r.push(e[i],o)}}function b_(t){let e=null,n=!1;for(let s=0;s<t.length;s++){let a=t[s];if(s===0&&rn(a)&&(e=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of t)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,E_(s,r,o,i)),s===e&&(r??=[],r.push(s));return r!==null?(r.push(...e===null?t:t.slice(1)),[r,i,o]):null}function E_(t,e,n,r){let i=e.length;t.findHostDirectiveDefs(t,e,r),n.set(t,[i,e.length-1])}function w_(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function S_(t,e,n,r,i,o,s){let a=r.length,u=!1;for(let y=0;y<a;y++){let _=r[y];!u&&rn(_)&&(u=!0,w_(t,n,y)),Ym(af(n,e),t,_.type)}x_(n,t.data.length,a);for(let y=0;y<a;y++){let _=r[y];_.providersResolver&&_.providersResolver(_)}let l=!1,d=!1,h=Jf(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let _=r[y];if(n.mergedAttrs=Qs(n.mergedAttrs,_.hostAttrs),T_(t,n,e,h,_),O_(h,_,i),s!==null&&s.has(_)){let[T,A]=s.get(_);n.directiveToIndex.set(_.type,[h,T+n.directiveStart,A+n.directiveStart])}else(o===null||!o.has(_))&&n.directiveToIndex.set(_.type,h);_.contentQueries!==null&&(n.flags|=4),(_.hostBindings!==null||_.hostAttrs!==null||_.hostVars!==0)&&(n.flags|=64);let w=_.type.prototype;!l&&(w.ngOnChanges||w.ngOnInit||w.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!d&&(w.ngOnChanges||w.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}I_(t,n,o)}function I_(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let i=t.data[r];if(n===null||!n.has(i))Pu(0,e,i,r),Pu(1,e,i,r),ju(e,r,!1);else{let o=n.get(i);Mu(0,e,o,r),Mu(1,e,o,r),ju(e,r,!0)}}}function Pu(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[o]??=[],s[o].push(r),wd(e,o)}}function Mu(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),wd(e,s)}}function wd(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function ju(t,e,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=t;if(r===null||!n&&i===null||n&&o===null||oa(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let u=r[a];if(u===0){a+=4;continue}else if(u===5){a+=2;continue}else if(typeof u=="number")break;if(!n&&i.hasOwnProperty(u)){let l=i[u];for(let d of l)if(d===e){s??=[],s.push(u,r[a+1]);break}}else if(n&&o.hasOwnProperty(u)){let l=o[u];for(let d=0;d<l.length;d+=2)if(l[d]===e){s??=[],s.push(l[d+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function T_(t,e,n,r,i){t.data[r]=i;let o=i.factory||(i.factory=Tn(i.type,!0)),s=new Zs(o,rn(i),$i);t.blueprint[r]=s,n[r]=s,C_(t,e,r,Jf(t,n,i.hostVars,Me),i)}function C_(t,e,n,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;N_(s)!=a&&s.push(a),s.push(n,r,o)}}function N_(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function O_(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;rn(e)&&(n[""]=t)}}function x_(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Sd(t,e,n,r,i,o,s,a){let u=e.consts,l=xn(u,s),d=Bi(e,t,2,r,l);return o&&Ed(e,n,d,xn(u,a),i),d.mergedAttrs=Qs(d.mergedAttrs,d.attrs),d.attrs!==null&&Lu(d,d.attrs,!1),d.mergedAttrs!==null&&Lu(d,d.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,d),d}function Id(t,e){nf(t,e),Pc(e)&&t.queries.elementEnd(e)}var D_=class extends Ir{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let e=Di(t);return new M_(e,this.ngModule)}};function k_(t){return Object.keys(t).map(e=>{let[n,r,i]=t[e],o={propName:n,templateName:e,isSignal:(r&Ui.SignalBased)!==0};return i&&(o.transform=i),o})}function A_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function R_(t,e,n){let r=e instanceof nr?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Bm(n,r):n}function L_(t){let e=t.get(Ea,null);if(e===null)throw new it(407,!1);let n=t.get(y_,null),r=t.get(br,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r}}function P_(t,e){let n=(t.selectors[0][0]||"div").toLowerCase();return Kf(e,n,n==="svg"?dm:n==="math"?hm:null)}var M_=class extends bd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return k_(this.componentDef.inputs)}get outputs(){return A_(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=dy(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!e}create(t,e,n,r){dt(22);let i=et(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:hy(this.componentDef.selectors[0]),a=sa(0,null,null,1,0,null,null,null,null,[s],null),u=R_(o,r||this.ngModule,t),l=L_(u),d=l.rendererFactory.createRenderer(null,o),h=n?wy(d,n,o.encapsulation,u):P_(o,d),y=aa(null,a,null,512|Xf(o),null,null,l,d,u,null,jf(h,u,!0));y[Lt]=h,qs(y);let _=null;try{let w=Sd(Lt,a,y,"#host",()=>[this.componentDef],!0,0);h&&(Qf(d,h,w),wr(h,y)),ua(a,y,w),Ff(a,w,y),Id(a,w),e!==void 0&&V_(w,this.ngContentSelectors,e),_=Ge(w.index,y),y[kt]=_[kt],ca(a,y,null)}catch(w){throw _!==null&&Bo(_),Bo(y),w}finally{dt(23),Ws()}return new j_(this.componentType,y)}finally{et(i)}}},j_=class extends m_{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,e){super(),this._rootLView=e,this._tNode=$s(e[K],Lt),this.location=Sf(this._tNode,e),this.instance=Ge(this._tNode.index,e)[kt],this.hostView=this.changeDetectorRef=new f_(e,void 0,!1),this.componentType=t}setInput(t,e){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),e))return;let r=this._rootLView,i=la(n,r[K],r,t,e);this.previousInputValues.set(t,e);let o=Ge(n.index,r);md(o,1)}get injector(){return new pf(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function V_(t,e,n){let r=t.projection=[];for(let i=0;i<e.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var F_=()=>!1;function U_(t,e,n){return F_(t,e,n)}var Ko=class{},Td=class extends Ko{injector;componentFactoryResolver=new D_(this);instance=null;constructor(t){super();let e=new Bs([...t.providers,{provide:Ko,useValue:this},{provide:Ir,useValue:this.componentFactoryResolver}],t.parent||Hs(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function H_(t,e,n=null){return new Td({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var B_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=xc(!1,n.type),i=r.length>0?H_([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=Et({token:t,providedIn:"environment",factory:()=>new t(lt(nr))})}return t})();function $_(t){return Eg(()=>{let e=Y_(t),n=ht(C({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Cf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?i=>i.get(B_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ge.Emulated,styles:t.styles||ze,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Vi("NgStandalone"),K_(n);let r=t.dependencies;return n.directiveDefs=Vu(r,!1),n.pipeDefs=Vu(r,!0),n.id=Z_(n),n})}function z_(t){return Di(t)||Nc(t)}function G_(t){return t!==null}function q_(t,e){if(t==null)return Cn;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,u;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,u=i[3]||null):(o=i,s=i,a=Ui.None,u=null),n[o]=[r,a,u],e[o]=s}return n}function W_(t){if(t==null)return Cn;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function wa(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Y_(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Cn,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:q_(t.inputs,e),outputs:W_(t.outputs),debugInfo:null}}function K_(t){t.features?.forEach(e=>e(t))}function Vu(t,e){if(!t)return null;let n=e?Oc:z_;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(G_)}function Z_(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Cd(t,e,n){return t[e]=n}function Re(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function Q_(t,e,n,r){let i=Re(t,e,n);return Re(t,e+1,r)||i}function X_(t,e,n,r,i,o,s,a,u){let l=e.consts,d=Bi(e,t,4,s||null,a||null);zc()&&Ed(e,n,d,xn(l,u),id),d.mergedAttrs=Qs(d.mergedAttrs,d.attrs),nf(e,d);let h=d.tView=sa(2,d,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,d),h.queries=e.queries.embeddedTView(d)),d}function Zo(t,e,n,r,i,o,s,a,u,l){let d=n+Lt,h=e.firstCreatePass?X_(d,e,t,r,i,o,s,a,u):e.data[d];jn(h,!1);let y=J_(e,t,h,n);Ys()&&ma(e,t,y,h),wr(y,t);let _=l_(y,t,y,h);return t[d]=_,td(t,_),U_(_,h,t),Mc(h)&&ua(e,t,h),u!=null&&rd(t,h,l),h}function Nd(t,e,n,r,i,o,s,a){let u=yt(),l=fe(),d=xn(l.consts,o);return Zo(u,l,t,e,n,r,i,d,s,a),Nd}var J_=tb;function tb(t,e,n,r){return Ks(!0),e[Gt].createComment("")}var eb=new ct(""),nb=(()=>{class t{static \u0275prov=Et({token:t,providedIn:"root",factory:()=>new rb})}return t})(),rb=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let e=t.zone,n=this.queues.get(e);n.has(t)&&(n.delete(t),this.queuedEffectCount--)}enqueue(t){let e=t.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(t)||(this.queuedEffectCount++,n.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,e]of this.queues)t===null?this.flushQueue(e):t.run(()=>this.flushQueue(e))}flushQueue(t){for(let e of t)t.delete(e),this.queuedEffectCount--,e.run()}};function Od(t){return!!t&&typeof t.then=="function"}function ib(t){return!!t&&typeof t.subscribe=="function"}var ob=new ct(""),xd=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=at(ob,{optional:!0})??[];injector=at(Mi);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=Ac(this.injector,i);if(Od(o))n.push(o);else if(ib(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sb=new ct("");function ab(){Np(()=>{throw new it(600,!1)})}function ub(t){return t.isBoundToModule}var lb=10,Dn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=at(fv);afterRenderManager=at(wv);zonelessEnabled=at(Xs);rootEffectScheduler=at(nb);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new mr;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=at(ji).hasPendingTasks.pipe(pc(n=>!n));constructor(){at(ra,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=at(nr);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){dt(10);let i=n instanceof bd;if(!this._injector.get(xd).done){let h=!i&&Gg(n),y=!1;throw new it(405,y)}let o;i?o=n:o=this._injector.get(Ir).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=ub(o)?void 0:this._injector.get(Ko),a=r||o.selector,u=o.create(Mi.NULL,[],a,s),l=u.location.nativeElement,d=u.injector.get(eb,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),ti(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),dt(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){dt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Mf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new it(101,!1);let n=et(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,et(n),this.afterTick.next(),dt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ea,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<lb;)dt(14),this.synchronizeOnce(),dt(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)cb(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})=>Ri(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;ti(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sb,[]).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),()=>ti(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new it(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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ti(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function cb(t,e,n,r){!n&&!Ri(t)||dd(t,e,n&&!r?0:1)}function fb(t,e,n,r){return Re(t,Pi(),n)?e+Oi(n)+r:Me}function Hr(t,e){return t<<17|e<<2}function Ye(t){return t>>17&32767}function db(t){return(t&2)==2}function hb(t,e){return t&131071|e<<17}function Qo(t){return t|2}function kn(t){return(t&131068)>>2}function po(t,e){return t&-131069|e<<2}function pb(t){return(t&1)===1}function Xo(t){return t|1}function gb(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Ye(s),u=kn(s);t[r]=n;let l=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||vr(h,d)>0)&&(l=!0)}else d=n;if(i)if(u!==0){let h=Ye(t[a+1]);t[r+1]=Hr(h,a),h!==0&&(t[h+1]=po(t[h+1],r)),t[a+1]=hb(t[a+1],r)}else t[r+1]=Hr(a,0),a!==0&&(t[a+1]=po(t[a+1],r)),a=r;else t[r+1]=Hr(u,0),a===0?a=r:t[u+1]=po(t[u+1],r),u=r;l&&(t[r+1]=Qo(t[r+1])),Fu(t,d,r,!0),Fu(t,d,r,!1),mb(e,d,t,r,o),s=Hr(a,u),o?e.classBindings=s:e.styleBindings=s}function mb(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&vr(o,e)>=0&&(n[r+1]=Xo(n[r+1]))}function Fu(t,e,n,r){let i=t[n+1],o=e===null,s=r?Ye(i):kn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],l=t[s+1];vb(u,e)&&(a=!0,t[s+1]=r?Xo(l):Qo(l)),s=r?Ye(l):kn(l)}a&&(t[n+1]=r?Qo(i):Xo(i))}function vb(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?vr(t,e)>=0:!1}function vi(t,e,n){let r=yt(),i=Pi();if(Re(r,i,e)){let o=fe(),s=Am();Cy(o,s,r,t,e,r[Gt],n,!1)}return vi}function Uu(t,e,n,r,i){la(e,t,n,i?"class":"style",r)}function Sa(t,e,n){return yb(t,e,n,!1),Sa}function yb(t,e,n,r){let i=yt(),o=fe(),s=Tm(2);if(o.firstUpdatePass&&bb(o,t,s,r),e!==Me&&Re(i,s,e)){let a=o.data[sn()];Tb(o,a,i,i[Gt],t,i[s+1]=Cb(e,n),r,s)}}function _b(t,e){return e>=t.expandoStartIndex}function bb(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[sn()],s=_b(t,n);Nb(o,r)&&e===null&&!s&&(e=!1),e=Eb(i,o,e,r),gb(i,o,e,n,s,r)}}function Eb(t,e,n,r){let i=xm(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=go(null,t,e,n,r),n=ar(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=go(i,t,e,n,r),o===null){let a=wb(t,e,r);a!==void 0&&Array.isArray(a)&&(a=go(null,t,e,a[1],r),a=ar(a,e.attrs,r),Sb(t,e,r,a))}else o=Ib(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function wb(t,e,n){let r=n?e.classBindings:e.styleBindings;if(kn(r)!==0)return t[Ye(r)]}function Sb(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Ye(i)]=r}function Ib(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=ar(r,s,n)}return ar(r,e.attrs,n)}function go(t,e,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=e[a],r=ar(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function ar(t,e,n){let r=n?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),$g(t,s,n?!0:e[++o]))}return t===void 0?null:t}function Tb(t,e,n,r,i,o,s,a){if(!(e.type&3))return;let u=t.data,l=u[a+1],d=pb(l)?Hu(u,e,n,i,kn(l),s):void 0;if(!yi(d)){yi(o)||db(l)&&(o=Hu(u,null,n,i,a,s));let h=Uc(sn(),n);Ky(r,s,h,i,o)}}function Hu(t,e,n,r,i,o){let s=e===null,a;for(;i>0;){let u=t[i],l=Array.isArray(u),d=l?u[1]:u,h=d===null,y=n[i+1];y===Me&&(y=h?ze:void 0);let _=h?io(y,r):d===r?y:void 0;if(l&&!yi(_)&&(_=io(u,r)),yi(_)&&(a=_,s))return a;let w=t[i+1];i=s?Ye(w):kn(w)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=io(u,r))}return a}function yi(t){return t!==void 0}function Cb(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=re(Ce(t)))),t}function Nb(t,e){return(t.flags&(e?8:16))!==0}var Ob=class{destroy(t){}updateValue(t,e){}swap(t,e){let n=Math.min(t,e),r=Math.max(t,e),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(t,e){this.attach(e,this.detach(t))}};function mo(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function xb(t,e,n){let r,i,o=0,s=t.length-1,a;if(Array.isArray(e)){let u=e.length-1;for(;o<=s&&o<=u;){let l=t.at(o),d=e[o],h=mo(o,l,o,d,n);if(h!==0){h<0&&t.updateValue(o,d),o++;continue}let y=t.at(s),_=e[u],w=mo(s,y,u,_,n);if(w!==0){w<0&&t.updateValue(s,_),s--,u--;continue}let T=n(o,l),A=n(s,y),R=n(o,d);if(Object.is(R,A)){let Q=n(u,_);Object.is(Q,T)?(t.swap(o,s),t.updateValue(s,_),u--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(r??=new zu,i??=$u(t,o,s,n),Jo(t,r,o,R))t.updateValue(o,d),o++,s++;else if(i.has(R))r.set(T,t.detach(o)),s--;else{let Q=t.create(o,e[o]);t.attach(o,Q),o++,s++}}for(;o<=u;)Bu(t,r,n,o,e[o]),o++}else if(e!=null){let u=e[Symbol.iterator](),l=u.next();for(;!l.done&&o<=s;){let d=t.at(o),h=l.value,y=mo(o,d,o,h,n);if(y!==0)y<0&&t.updateValue(o,h),o++,l=u.next();else{r??=new zu,i??=$u(t,o,s,n);let _=n(o,h);if(Jo(t,r,o,_))t.updateValue(o,h),o++,s++,l=u.next();else if(!i.has(_))t.attach(o,t.create(o,h)),o++,s++,l=u.next();else{let w=n(o,d);r.set(w,t.detach(o)),s--}}}for(;!l.done;)Bu(t,r,n,t.length,l.value),l=u.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(u=>{t.destroy(u)})}function Jo(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Bu(t,e,n,r,i){if(Jo(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function $u(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var zu=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let e=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(t,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,e){if(this.kvMap.has(t)){let n=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(t,e)}forEach(t){for(let[e,n]of this.kvMap)if(t(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),t(n,e)}}};function Db(t,e){Vi("NgControlFlow");let n=yt(),r=Pi(),i=n[r]!==Me?n[r]:-1,o=i!==-1?_i(n,Lt+i):void 0,s=0;if(Re(n,r,t)){let a=et(null);try{if(o!==void 0&&yd(o,s),t!==-1){let u=Lt+t,l=_i(n,u),d=ts(n[K],u),h=ba(l,d.tView.ssrId),y=fa(n,d,e,{dehydratedView:h});ya(l,y,s,da(d,h))}}finally{et(a)}}else if(o!==void 0){let a=vd(o,s);a!==void 0&&(a[kt]=e)}}var kb=class{lContainer;$implicit;$index;constructor(t,e,n){this.lContainer=t,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Vt}},Ab=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,e,n){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=n}};function Rb(t,e,n,r,i,o,s,a,u,l,d,h,y){Vi("NgControlFlow");let _=yt(),w=fe(),T=u!==void 0,A=yt(),R=a?s.bind(A[le][kt]):s,Q=new Ab(T,R);A[Lt+t]=Q,Zo(_,w,t+1,e,n,r,i,xn(w.consts,o)),T&&Zo(_,w,t+2,u,l,d,h,xn(w.consts,y))}var Lb=class extends Ob{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,e,n){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-Vt}at(t){return this.getLView(t)[kt].$implicit}attach(t,e){let n=e[rr];this.needsIndexUpdate||=t!==this.length,ya(this.lContainer,e,t,da(this.templateTNode,n))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Mb(this.lContainer,t)}create(t,e){let n=ba(this.lContainer,this.templateTNode.tView.ssrId),r=fa(this.hostLView,this.templateTNode,new kb(this.lContainer,e,t),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(t){ga(t[K],t),this.operationsCounter?.recordDestroy()}updateValue(t,e){this.getLView(t)[kt].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[kt].$index=t}getLView(t){return jb(this.lContainer,t)}};function Pb(t){let e=et(null),n=sn();try{let r=yt(),i=r[K],o=r[n],s=n+1,a=_i(r,s);if(o.liveCollection===void 0){let l=ts(i,s);o.liveCollection=new Lb(a,r,l)}else o.liveCollection.reset();let u=o.liveCollection;if(xb(u,t,o.trackByFn),u.updateIndexes(),o.hasEmptyBlock){let l=Pi(),d=u.length===0;if(Re(r,l,d)){let h=n+2,y=_i(r,h);if(d){let _=ts(i,h),w=ba(y,_.tView.ssrId),T=fa(r,_,void 0,{dehydratedView:w});ya(y,T,0,da(_,w))}else yd(y,0)}}}finally{et(e)}}function _i(t,e){return t[e]}function Mb(t,e){return _a(t,e)}function jb(t,e){return vd(t,e)}function ts(t,e){return $s(t,e)}function ur(t,e,n,r){let i=yt(),o=fe(),s=Lt+t,a=i[Gt],u=o.firstCreatePass?Sd(s,o,i,e,id,zc(),n,r):o.data[s],l=Vb(o,i,u,a,e,t);i[s]=l;let d=Mc(u);return jn(u,!0),Qf(a,l,u),!od(u)&&Ys()&&ma(o,i,l,u),(mm()===0||d)&&wr(l,i),vm(),d&&(ua(o,i,u),Ff(o,u,i)),r!==null&&rd(i,u),ur}function lr(){let t=_r();qc()?Sm():(t=t.parent,jn(t,!1));let e=t;bm(e)&&Em(),ym();let n=fe();return n.firstCreatePass&&Id(n,e),e.classesWithoutHost!=null&&jm(e)&&Uu(n,e,yt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Vm(e)&&Uu(n,e,yt(),e.stylesWithoutHost,!1),lr}function cr(t,e,n,r){return ur(t,e,n,r),lr(),cr}var Vb=(t,e,n,r,i,o)=>(Ks(!0),Kf(r,i,Rm())),bi="en-US",Fb=bi;function Ub(t){typeof t=="string"&&(Fb=t.toLowerCase().replace(/_/g,"-"))}function Dd(t=1){return km(t)}function kd(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Hb(t,e=""){let n=yt(),r=fe(),i=t+Lt,o=r.firstCreatePass?Bi(r,i,1,e,null):r.data[i],s=Bb(r,n,o,e,t);n[i]=s,Ys()&&ma(r,n,s,o),jn(o,!1)}var Bb=(t,e,n,r,i)=>(Ks(!0),py(e[Gt],r));function Ad(t){return Rd("",t,""),Ad}function Rd(t,e,n){let r=yt(),i=fb(r,t,e,n);return i!==Me&&$b(r,sn(),i),Rd}function $b(t,e,n){let r=Uc(e,t);gy(t[Gt],r,n)}var zb={};function Ld(t){let e=fe(),n=yt(),r=t+Lt,i=Bi(e,r,128,null,null);return jn(i,!1),kd(e,n,r,zb),Ld}function Pd(t,e){let n=t[e];return n===Me?void 0:n}function Gb(t,e,n,r,i,o){let s=e+n;return Re(t,s,i)?Cd(t,s+1,o?r.call(o,i):r(i)):Pd(t,s+1)}function qb(t,e,n,r,i,o,s){let a=e+n;return Q_(t,a,i,o)?Cd(t,a+2,s?r.call(s,i,o):r(i,o)):Pd(t,a+2)}function Ei(t,e){let n=fe(),r,i=t+Lt;n.firstCreatePass?(r=Wb(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Tn(r.type,!0)),s,a=jt($i);try{let u=hi(!1),l=o();return hi(u),kd(n,yt(),i,l),l}finally{jt(a)}}function Wb(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function es(t,e,n){let r=t+Lt,i=yt(),o=Hc(i,r);return Md(i,r)?Gb(i,Yc(),e,o.transform,n,o):o.transform(n)}function Yb(t,e,n,r){let i=t+Lt,o=yt(),s=Hc(o,i);return Md(o,i)?qb(o,Yc(),e,s.transform,n,r,s):s.transform(n,r)}function Md(t,e){return t[K].data[e].pure}var Kb=(()=>{class t{zone=at($t);changeDetectionScheduler=at(br);applicationRef=at(Dn);_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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zb({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new $t(ht(C({},Qb()),{scheduleInRootZone:n})),[{provide:$t,useFactory:t},{provide:li,multi:!0,useFactory:()=>{let r=at(Kb,{optional:!0});return()=>r.initialize()}},{provide:li,multi:!0,useFactory:()=>{let r=at(Xb);return()=>{r.initialize()}}},e===!0?{provide:_f,useValue:!0}:[],{provide:Js,useValue:n??vf}]}function Qb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Xb=(()=>{class t{subscription=new ve;initialized=!1;zone=at($t);pendingTasks=at(ji);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(()=>{$t.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$t.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jd=(()=>{class t{appRef=at(Dn);taskService=at(ji);ngZone=at($t);zonelessEnabled=at(Xs);tracing=at(ra,{optional:!0});disableScheduling=at(_f,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ve;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(at(Js,{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 Ef||!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?Eu:bf;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(gi+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,Eu(()=>{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||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Jb(){return Vi("NgZoneless"),qg([{provide:br,useExisting:jd},{provide:$t,useClass:Ef},{provide:Xs,useValue:!0},{provide:Js,useValue:!1},[]])}function tE(){return typeof $localize<"u"&&$localize.locale||bi}var Vd=new ct("",{providedIn:"root",factory:()=>at(Vd,q.Optional|q.SkipSelf)||tE()}),ns=new ct(""),eE=new ct("");function Wn(t){return!t.moduleRef}function nE(t){let e=Wn(t)?t.r3Injector:t.moduleRef.injector,n=e.get($t);return n.run(()=>{Wn(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(Er,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Wn(t)){let o=()=>e.destroy(),s=t.platformInjector.get(ns);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(ns);s.add(o),t.moduleRef.onDestroy(()=>{ti(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return iE(r,n,()=>{let o=e.get(xd);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(Vd,bi);if(Ub(s||bi),!e.get(eE,!0))return Wn(t)?e.get(Dn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Wn(t)){let a=e.get(Dn);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return rE(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function rE(t,e){let n=t.injector.get(Dn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new it(-403,!1);e.push(t)}function iE(t,e,n){try{let r=n();return Od(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var ei=null;function oE(t=[],e){return Mi.create({name:e,providers:[{provide:Us,useValue:"platform"},{provide:ns,useValue:new Set([()=>ei=null])},...t]})}function sE(t=[]){if(ei)return ei;let e=oE(t);return ei=e,ab(),aE(e),e}function aE(t){let e=t.get(Rf,null);Ac(t,()=>{e?.forEach(n=>n())})}function uE(t){dt(8);try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=sE(r),o=[Zb({}),{provide:br,useExisting:jd},...n||[]],s=new Td({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return nE({r3Injector:s.injector,platformInjector:i,rootComponent:e})}catch(e){return Promise.reject(e)}finally{dt(9)}}var V1=class{[Oe];constructor(t){this[Oe]=t}destroy(){this[Oe].destroy()}},lE={schedule(t,e){let n=setTimeout(t,e);return()=>clearTimeout(n)}};function cE(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function fE(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var vo;function dE(t,e){if(!vo){let n=Element.prototype;vo=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?vo.call(t,e):!1}function hE(t){let e={};return t.forEach(({propName:n,templateName:r,transform:i})=>{e[cE(r)]=[n,i]}),e}function pE(t,e){return e.get(Ir).resolveComponentFactory(t).inputs}function gE(t,e){let n=t.childNodes,r=e.map(()=>[]),i=-1;e.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],u=mE(a,e,i);u!==-1&&r[u].push(a)}return r}function mE(t,e,n){let r=n;return fE(t)&&e.some((i,o)=>i!=="*"&&dE(t,i)?(r=o,!0):!1),r}var vE=10,yE=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(Ir).resolveComponentFactory(t);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new _E(this.componentFactory,t,this.inputMap)}},_E=class{componentFactory;injector;inputMap;eventEmitters=new Yp(1);events=this.eventEmitters.pipe(_g(t=>yg(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,n){this.componentFactory=t,this.injector=e,this.inputMap=n,this.ngZone=this.injector.get($t),this.appRef=this.injector.get(Dn),this.cdScheduler=e.get(br),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=lE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},vE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let e=Mi.create({providers:[],parent:this.injector}),n=gE(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear()}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=t.instance[n];return new zt(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},bE=class extends HTMLElement{ngElementEventsSubscription=null};function EE(t,e){let n=pE(t,e.injector),r=e.strategyFactory||new yE(t,e.injector),i=hE(n);class o extends bE{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:u,transform:l})=>{if(!this.hasOwnProperty(u))return;let d=this[u];delete this[u],a.setInputValue(u,d,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,u,l,d){let[h,y]=i[a];this.ngElementStrategy.setInputValue(h,l,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let u=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(u)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),o}var Fd=null;function Ud(){return Fd}function wE(t){Fd??=t}var SE=class{},Le=new ct("");function IE(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var TE="browser",CE="server";function Hd(t){return t===CE}var NE=class{},OE=class extends SE{supportsDOMEvents=!0},xE=class Bd extends OE{static makeCurrent(){wE(new Bd)}onAndCancel(e,n,r,i){return e.addEventListener(n,r,i),()=>{e.removeEventListener(n,r,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=DE();return n==null?null:kE(n)}resetBaseElement(){Qn=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return IE(document.cookie,e)}},Qn=null;function DE(){return Qn=Qn||document.querySelector("base"),Qn?Qn.getAttribute("href"):null}function kE(t){return new URL(t,document.baseURI).pathname}var AE=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),rs=new ct(""),$d=(()=>{class t{_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 it(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||t)(lt(rs),lt($t))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),zd=class{_doc;constructor(t){this._doc=t}manager},ni="ng-app-id";function Gu(t){for(let e of t)e.remove()}function qu(t,e){let n=e.createElement("style");return n.textContent=t,n}function RE(t,e,n,r){let i=t.head?.querySelectorAll(`style[${ni}="${e}"],link[${ni}="${e}"]`);if(i)for(let o of i)o.removeAttribute(ni),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 is(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var Gd=(()=>{class t{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=Hd(o),RE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,qu);r?.forEach(i=>this.addUsage(i,this.external,is))}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&&(Gu(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Gu(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,qu(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,is(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ni,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||t)(lt(Le),lt(Af),lt(Lf,8),lt(na))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),yo={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"},Ia=/%COMP%/g,qd="%COMP%",LE=`_nghost-${qd}`,PE=`_ngcontent-${qd}`,ME=!0,jE=new ct("",{providedIn:"root",factory:()=>ME});function VE(t){return PE.replace(Ia,t)}function FE(t){return LE.replace(Ia,t)}function Wd(t,e){return e.map(n=>n.replace(Ia,t))}var Wu=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,u,l=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=l,this.tracingService=d,this.platformIsServer=Hd(a),this.defaultRenderer=new Ta(n,s,u,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ge.ShadowDom&&(r=ht(C({},r),{encapsulation:ge.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Ku?i.applyToHost(n):i instanceof os&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,y=this.tracingService;switch(r.encapsulation){case ge.Emulated:o=new Ku(u,l,r,this.appId,d,s,a,h,y);break;case ge.ShadowDom:return new UE(u,l,n,r,s,a,this.nonce,h,y);default:o=new os(u,l,r,d,s,a,h,y);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||t)(lt($d),lt(Gd),lt(Af),lt(jE),lt(Le),lt(na),lt($t),lt(Lf),lt(ra,8))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),Ta=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,n,r,i){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(yo[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Yu(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(Yu(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new it(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;let i=yo[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let r=yo[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(He.DashCase|He.Important)?t.style.setProperty(e,n,r&He.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&He.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n,r){if(typeof t=="string"&&(t=Ud().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,e,i)),this.eventManager.addEventListener(t,e,i,r)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function Yu(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var UE=class extends Ta{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,a,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Wd(r.id,l);for(let h of l){let y=document.createElement("style");s&&y.setAttribute("nonce",s),y.textContent=h,this.shadowRoot.appendChild(y)}let d=r.getExternalStyles?.();if(d)for(let h of d){let y=is(h,i);s&&y.setAttribute("nonce",s),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},os=class extends Ta{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,n,r,i,o,s,a,u){super(t,i,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let l=n.styles;this.styles=u?Wd(u,l):l,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ku=class extends os{contentAttr;hostAttr;constructor(t,e,n,r,i,o,s,a,u){let l=r+"-"+n.id;super(t,e,n,i,o,s,a,u,l),this.contentAttr=VE(l),this.hostAttr=FE(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},HE=(()=>{class t extends zd{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||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})(),Zu=["alt","control","meta","shift"],BE={"\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"},$E={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},zE=(()=>{class t extends zd{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ud().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Zu.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=BE[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"),Zu.forEach(s=>{if(s!==i){let a=$E[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac})}return t})();function GE(t){return uE(qE(t))}function qE(t){return{appProviders:[...QE,...t?.providers??[]],platformProviders:ZE}}function WE(){xE.makeCurrent()}function YE(){return new Er}function KE(){return vv(document),document}var ZE=[{provide:na,useValue:TE},{provide:Rf,useValue:WE,multi:!0},{provide:Le,useFactory:KE,deps:[]}],QE=[{provide:Us,useValue:"root"},{provide:Er,useFactory:YE,deps:[]},{provide:rs,useClass:HE,multi:!0,deps:[Le]},{provide:rs,useClass:zE,multi:!0,deps:[Le]},Wu,Gd,$d,{provide:Ea,useExisting:Wu},{provide:NE,useClass:AE,deps:[]},[]],Yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=Et({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=lt(XE),r},providedIn:"root"})}return t})(),XE=(()=>{class t extends Yd{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case pe.NONE:return r;case pe.HTML:return Fe(r,"HTML")?Ce(r):Gf(this._doc,String(r)).toString();case pe.STYLE:return Fe(r,"Style")?Ce(r):r;case pe.SCRIPT:if(Fe(r,"Script"))return Ce(r);throw new it(5200,!1);case pe.URL:return Fe(r,"URL")?Ce(r):ia(String(r));case pe.RESOURCE_URL:if(Fe(r,"ResourceURL"))return Ce(r);throw new it(5201,!1);default:throw new it(5202,!1)}}bypassSecurityTrustHtml(n){return Av(n)}bypassSecurityTrustStyle(n){return Rv(n)}bypassSecurityTrustScript(n){return Lv(n)}bypassSecurityTrustUrl(n){return Pv(n)}bypassSecurityTrustResourceUrl(n){return Mv(n)}static \u0275fac=function(n){return new(n||t)(lt(Le))};static \u0275prov=Et({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ss={apiURL:"http://localhost:3003",debug:!0,mode:"local",styleURL:"http://localhost:8002/styles.css"},Zt=pr(pp()),JE="9.3.34",ri=class as{static SDK_VERSION=JE;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 CTA_AFTER_REFRESH_UI="letscooee:outbound:refresh-ui";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 CONTENT_ATTRIBUTE="_letscooee_content";static VIA="_via";static PAYMENT_MODAL_DETAILS=[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}];static{let e=as.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");as.SDK_VERSION_CODE=parseInt(e,10)}},Qt=class{static log(...t){Zt.default.info(...t)}static debug(...t){Zt.default.debug(...t)}static error(...t){Zt.default.error(...t)}static warn(...t){Zt.default.warn(...t)}static info(...t){Zt.default.info(...t)}static trace(...t){Zt.default.trace(...t)}static configure(t=ri.LOG_PREFIX){Zt.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${ri.SDK_VERSION}):`)}});let e=this.getDebugParam();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Zt.default.setLevel(Zt.default[localStorage.cooeeLogLevel]):Zt.default.setLevel(ss.debug?Zt.default.TRACE:Zt.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
|
|
8
8
|
display: inline-block;
|
|
9
9
|
font-size: 14px;
|
|
10
10
|
background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
|
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.
|
|
4
|
+
"version": "9.3.34",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "ng lint",
|
|
7
7
|
"integrity": "./scripts/validate-integrity.sh",
|