@letscooee/web-sdk 9.11.0 → 9.12.0
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.
- package/dist/main.min.js +21 -21
- package/dist/widget.min.css +1 -1
- package/dist/widget.min.js +38 -38
- package/package.json +2 -2
package/dist/widget.min.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
"use strict";(()=>{var xw=Object.create;var
|
|
1
|
+
"use strict";(()=>{var xw=Object.create;var nf=Object.defineProperty;var Ew=Object.getOwnPropertyDescriptor;var Sw=Object.getOwnPropertyNames;var Cw=Object.getPrototypeOf,Iw=Object.prototype.hasOwnProperty;var Tw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Sw(t))!Iw.call(e,i)&&i!==n&&nf(e,i,{get:()=>t[i],enumerable:!(r=Ew(t,i))||r.enumerable});return e};var Dw=(e,t,n)=>(n=e!=null?xw(Cw(e)):{},Tw(t||!e||!e.__esModule?nf(n,"default",{value:e,enumerable:!0}):n,e));var Ow=Object.create,Sa=Object.defineProperty,kw=Object.defineProperties,Qg=Object.getOwnPropertyDescriptor,Rw=Object.getOwnPropertyDescriptors,Pw=Object.getOwnPropertyNames,rf=Object.getOwnPropertySymbols,Nw=Object.getPrototypeOf,em=Object.prototype.hasOwnProperty,Aw=Object.prototype.propertyIsEnumerable,fc=(e,t,n)=>t in e?Sa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||={})em.call(t,n)&&fc(e,n,t[n]);if(rf)for(var n of rf(t))Aw.call(t,n)&&fc(e,n,t[n]);return e},Ne=(e,t)=>kw(e,Rw(t)),os=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ku=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Pw(t))!em.call(e,i)&&i!==n&&Sa(e,i,{get:()=>t[i],enumerable:!(r=Qg(t,i))||r.enumerable});return e},Ca=(e,t,n)=>(n=e!=null?Ow(Nw(e)):{},Mw(t||!e||!e.__esModule?Sa(n,"default",{value:e,enumerable:!0}):n,e)),Lw=(e,t,n,r)=>{for(var i=r>1?void 0:r?Qg(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(r?s(t,n,i):s(i))||i);return r&&i&&Sa(t,n,i),i},of=(e,t,n)=>fc(e,typeof t!="symbol"?t+"":t,n),Vw=Ku((e,t)=>{"use strict";(function(n){"use strict";var r={};r.VERSION="1.6.1";var i,o={},s=function(h,_){return function(){return _.apply(h,arguments)}},a=function(){var h=arguments,_=h[0],m,b;for(b=1;b<h.length;b++)for(m in h[b])!(m in _)&&h[b].hasOwnProperty(m)&&(_[m]=h[b][m]);return _},l=function(h,_){return{value:h,name:_}};r.TRACE=l(1,"TRACE"),r.DEBUG=l(2,"DEBUG"),r.INFO=l(3,"INFO"),r.TIME=l(4,"TIME"),r.WARN=l(5,"WARN"),r.ERROR=l(8,"ERROR"),r.OFF=l(99,"OFF");var u=function(h){this.context=h,this.setLevel(h.filterLevel),this.log=this.info};u.prototype={setLevel:function(h){h&&"value"in h&&(this.context.filterLevel=h)},getLevel:function(){return this.context.filterLevel},enabledFor:function(h){var _=this.context.filterLevel;return h.value>=_.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(h){typeof h=="string"&&h.length>0&&this.invoke(r.TIME,[h,"start"])},timeEnd:function(h){typeof h=="string"&&h.length>0&&this.invoke(r.TIME,[h,"end"])},invoke:function(h,_){i&&this.enabledFor(h)&&i(_,a({level:h},this.context))}};var d=new u({filterLevel:r.OFF});(function(){var h=r;h.enabledFor=s(d,d.enabledFor),h.trace=s(d,d.trace),h.debug=s(d,d.debug),h.time=s(d,d.time),h.timeEnd=s(d,d.timeEnd),h.info=s(d,d.info),h.warn=s(d,d.warn),h.error=s(d,d.error),h.log=h.info})(),r.setHandler=function(h){i=h},r.setLevel=function(h){d.setLevel(h);for(var _ in o)o.hasOwnProperty(_)&&o[_].setLevel(h)},r.getLevel=function(){return d.getLevel()},r.get=function(h){return o[h]||(o[h]=new u(a({name:h},d.context)))},r.createDefaultHandler=function(h){h=h||{},h.formatter=h.formatter||function(b,S){S.name&&b.unshift("["+S.name+"]")};var _={},m=function(b,S){Function.prototype.apply.call(b,console,S)};return typeof console>"u"?function(){}:function(b,S){b=Array.prototype.slice.call(b);var N=console.log,P;S.level===r.TIME?(P=(S.name?"["+S.name+"] ":"")+b[0],b[1]==="start"?console.time?console.time(P):_[P]=new Date().getTime():console.timeEnd?console.timeEnd(P):m(N,[P+": "+(new Date().getTime()-_[P])+"ms"])):(S.level===r.WARN&&console.warn?N=console.warn:S.level===r.ERROR&&console.error?N=console.error:S.level===r.INFO&&console.info?N=console.info:S.level===r.DEBUG&&console.debug?N=console.debug:S.level===r.TRACE&&console.trace&&(N=console.trace),h.formatter(b,S),m(N,b))}},r.useDefaults=function(h){r.setLevel(h&&h.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(h))},r.setDefaults=r.useDefaults,typeof define=="function"&&define.amd?define(r):typeof t<"u"&&t.exports?t.exports=r:(r._prevLogger=n.Logger,r.noConflict=function(){return n.Logger=r._prevLogger,r},n.Logger=r)})(e)}),tm=Ku((e,t)=>{"use strict";(function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).Sqrl={})})(e,function(n){"use strict";function r(O){var D,y,v=new Error(O);return D=v,y=r.prototype,Object.setPrototypeOf?Object.setPrototypeOf(D,y):D.__proto__=y,v}function i(O,D,y){var v=D.slice(0,y).split(/\n/),M=v.length,B=v[M-1].length+1;throw r(O+=" at line "+M+" col "+B+`:
|
|
2
2
|
|
|
3
3
|
`+D.split(/\n/)[M-1]+`
|
|
4
|
-
`+Array(
|
|
5
|
-
`).replace(/^\s+|\s+$/gm,"")),d.lastIndex=0,h.lastIndex=0,
|
|
6
|
-
`)}}return M}var
|
|
4
|
+
`+Array(B).join(" ")+"^")}r.prototype=Object.create(Error.prototype,{name:{value:"Squirrelly Error",enumerable:!1}});var o=new Function("return this")().Promise,s=!1;try{s=new Function("return (async function(){}).constructor")()}catch(O){if(!(O instanceof SyntaxError))throw O}function a(O,D){return Object.prototype.hasOwnProperty.call(O,D)}function l(O,D,y){for(var v in D)a(D,v)&&(D[v]==null||typeof D[v]!="object"||v!=="storage"&&v!=="prefixes"||y?O[v]=D[v]:O[v]=l({},D[v]));return O}var u=/^async +/,d=/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})*}|(?!\${)[^\\`])*`/g,h=/'(?:\\[\s\w"'\\`]|[^\n\r'\\])*?'/g,_=/"(?:\\[\s\w"'\\`]|[^\n\r"\\])*?"/g,m=/[.*+\-?^${}()|[\]\\]/g;function b(O){return m.test(O)?O.replace(m,"\\$&"):O}function S(O,D){D.rmWhitespace&&(O=O.replace(/[\r\n]+/g,`
|
|
5
|
+
`).replace(/^\s+|\s+$/gm,"")),d.lastIndex=0,h.lastIndex=0,_.lastIndex=0;var y=D.prefixes,v=[y.h,y.b,y.i,y.r,y.c,y.e].reduce(function(xe,J){return xe&&J?xe+"|"+b(J):J?b(J):xe},""),M=new RegExp("([|()]|=>)|('|\"|`|\\/\\*)|\\s*((\\/)?(-|_)?"+b(D.tags[1])+")","g"),B=new RegExp("([^]*?)"+b(D.tags[0])+"(-|_)?\\s*("+v+")?\\s*","g"),W=0,te=!1;function ee(xe,J){var oe,me={f:[]},ce=0,c="c";function f(Se){var Ve=O.slice(W,Se),Re=Ve.trim();if(c==="f")Re==="safe"?me.raw=!0:D.async&&u.test(Re)?(Re=Re.replace(u,""),me.f.push([Re,"",!0])):me.f.push([Re,""]);else if(c==="fp")me.f[me.f.length-1][1]+=Re;else if(c==="err"){if(Re){var xt=Ve.search(/\S/);i("invalid syntax",O,W+xt)}}else me[c]=Re;W=Se+1}for(J==="h"||J==="b"||J==="c"?c="n":J==="r"&&(me.raw=!0,J="i"),M.lastIndex=W;(oe=M.exec(O))!==null;){var p=oe[1],E=oe[2],k=oe[3],V=oe[4],X=oe[5],ne=oe.index;if(p)p==="("?(ce===0&&(c==="n"?(f(ne),c="p"):c==="f"&&(f(ne),c="fp")),ce++):p===")"?--ce===0&&c!=="c"&&(f(ne),c="err"):ce===0&&p==="|"?(f(ne),c="f"):p==="=>"&&(f(ne),W+=1,c="res");else if(E)if(E==="/*"){var Le=O.indexOf("*/",M.lastIndex);Le===-1&&i("unclosed comment",O,oe.index),M.lastIndex=Le+2}else E==="'"?(h.lastIndex=oe.index,h.exec(O)?M.lastIndex=h.lastIndex:i("unclosed string",O,oe.index)):E==='"'?(_.lastIndex=oe.index,_.exec(O)?M.lastIndex=_.lastIndex:i("unclosed string",O,oe.index)):E==="`"&&(d.lastIndex=oe.index,d.exec(O)?M.lastIndex=d.lastIndex:i("unclosed string",O,oe.index));else if(k)return f(ne),W=ne+oe[0].length,B.lastIndex=W,te=X,V&&J==="h"&&(J="s"),me.t=J,me}return i("unclosed tag",O,xe),me}var K=function xe(J,oe){J.b=[],J.d=[];var me,ce=!1,c=[];function f(xt,Fn){xt&&(xt=function(dt,un,On,ir){var zt,hn;return typeof un.autoTrim=="string"?zt=hn=un.autoTrim:Array.isArray(un.autoTrim)&&(zt=un.autoTrim[1],hn=un.autoTrim[0]),(On||On===!1)&&(zt=On),(ir||ir===!1)&&(hn=ir),zt==="slurp"&&hn==="slurp"?dt.trim():(zt==="_"||zt==="slurp"?dt=String.prototype.trimLeft?dt.trimLeft():dt.replace(/^[\s\uFEFF\xA0]+/,""):zt!=="-"&&zt!=="nl"||(dt=dt.replace(/^(?:\n|\r|\r\n)/,"")),hn==="_"||hn==="slurp"?dt=String.prototype.trimRight?dt.trimRight():dt.replace(/[\s\uFEFF\xA0]+$/,""):hn!=="-"&&hn!=="nl"||(dt=dt.replace(/(?:\n|\r|\r\n)$/,"")),dt)}(xt,D,te,Fn))&&(xt=xt.replace(/\\|'/g,"\\$&").replace(/\r\n|\n|\r/g,"\\n"),c.push(xt))}for(;(me=B.exec(O))!==null;){var p,E=me[1],k=me[2],V=me[3]||"";for(var X in y)if(y[X]===V){p=X;break}f(E,k),W=me.index+me[0].length,p||i("unrecognized tag type: "+V,O,W);var ne=ee(me.index,p),Le=ne.t;if(Le==="h"){var Se=ne.n||"";D.async&&u.test(Se)&&(ne.a=!0,ne.n=Se.replace(u,"")),ne=xe(ne),c.push(ne)}else if(Le==="c"){if(J.n===ne.n)return ce?(ce.d=c,J.b.push(ce)):J.d=c,J;i("Helper start and end don't match",O,me.index+me[0].length)}else if(Le==="b"){ce?(ce.d=c,J.b.push(ce)):J.d=c;var Ve=ne.n||"";D.async&&u.test(Ve)&&(ne.a=!0,ne.n=Ve.replace(u,"")),ce=ne,c=[]}else if(Le==="s"){var Re=ne.n||"";D.async&&u.test(Re)&&(ne.a=!0,ne.n=Re.replace(u,"")),c.push(ne)}else c.push(ne)}if(!oe)throw r('unclosed helper "'+J.n+'"');return f(O.slice(W,O.length),!1),J.d=c,J}({f:[]},!0);if(D.plugins)for(var le=0;le<D.plugins.length;le++){var pe=D.plugins[le];pe.processAST&&(K.d=pe.processAST(K.d,D))}return K.d}function N(O,D){var y=S(O,D),v="var tR='';"+(D.useWith?"with("+D.varName+"||{}){":"")+ie(y,D)+"if(cb){cb(null,tR)} return tR"+(D.useWith?"}":"");if(D.plugins)for(var M=0;M<D.plugins.length;M++){var B=D.plugins[M];B.processFnString&&(v=B.processFnString(v,D))}return v}function P(O,D){for(var y=0;y<D.length;y++){var v=D[y][0],M=D[y][1];O=(D[y][2]?"await ":"")+"c.l('F','"+v+"')("+O,M&&(O+=","+M),O+=")"}return O}function z(O,D,y,v,M,B){var W="{exec:"+(M?"async ":"")+q(y,D,O)+",params:["+v+"]";return B&&(W+=",name:'"+B+"'"),M&&(W+=",async:true"),W+="}"}function re(O,D){for(var y="[",v=0;v<O.length;v++){var M=O[v];y+=z(D,M.res||"",M.d,M.p||"",M.a,M.n),v<O.length&&(y+=",")}return y+="]"}function q(O,D,y){return"function("+D+"){var tR='';"+ie(O,y)+"return tR}"}function ie(O,D){for(var y=0,v=O.length,M="";y<v;y++){var B=O[y];if(typeof B=="string")M+="tR+='"+B+"';";else{var W=B.t,te=B.c||"",ee=B.f,K=B.n||"",le=B.p||"",pe=B.res||"",xe=B.b,J=!!B.a;if(W==="i"){D.defaultFilter&&(te="c.l('F','"+D.defaultFilter+"')("+te+")");var oe=P(te,ee);!B.raw&&D.autoEscape&&(oe="c.l('F','e')("+oe+")"),M+="tR+="+oe+";"}else if(W==="h")if(D.storage.nativeHelpers.get(K))M+=D.storage.nativeHelpers.get(K)(B,D);else{var me=(J?"await ":"")+"c.l('H','"+K+"')("+z(D,pe,B.d,le,J);me+=xe?","+re(xe,D):",[]",M+="tR+="+P(me+=",c)",ee)+";"}else W==="s"?M+="tR+="+P((J?"await ":"")+"c.l('H','"+K+"')({params:["+le+"]},[],c)",ee)+";":W==="e"&&(M+=te+`
|
|
6
|
+
`)}}return M}var Ae=function(){function O(D){this.cache=D}return O.prototype.define=function(D,y){this.cache[D]=y},O.prototype.get=function(D){return this.cache[D]},O.prototype.remove=function(D){delete this.cache[D]},O.prototype.reset=function(){this.cache={}},O.prototype.load=function(D){l(this.cache,D,!0)},O}();function Me(O,D,y,v){if(D&&D.length>0)throw r((v?"Native":"")+"Helper '"+O+"' doesn't accept blocks");if(y&&y.length>0)throw r((v?"Native":"")+"Helper '"+O+"' doesn't accept filters")}var F={"&":"&","<":"<",">":">",'"':""","'":"'"};function _e(O){return F[O]}var ue=new Ae({}),he=new Ae({each:function(O,D){var y="",v=O.params[0];if(Me("each",D,!1),O.async)return new Promise(function(B){(function W(te,ee,K,le,pe){K(te[ee],ee).then(function(xe){le+=xe,ee===te.length-1?pe(le):W(te,ee+1,K,le,pe)})})(v,0,O.exec,y,B)});for(var M=0;M<v.length;M++)y+=O.exec(v[M],M);return y},foreach:function(O,D){var y=O.params[0];if(Me("foreach",D,!1),O.async)return new Promise(function(B){(function W(te,ee,K,le,pe,xe){le(ee[K],te[ee[K]]).then(function(J){pe+=J,K===ee.length-1?xe(pe):W(te,ee,K+1,le,pe,xe)})})(y,Object.keys(y),0,O.exec,"",B)});var v="";for(var M in y)a(y,M)&&(v+=O.exec(M,y[M]));return v},include:function(O,D,y){Me("include",D,!1);var v=y.storage.templates.get(O.params[0]);if(!v)throw r('Could not fetch template "'+O.params[0]+'"');return v(O.params[1],y)},extends:function(O,D,y){var v=O.params[1]||{};v.content=O.exec();for(var M=0;M<D.length;M++){var B=D[M];v[B.name]=B.exec()}var W=y.storage.templates.get(O.params[0]);if(!W)throw r('Could not fetch template "'+O.params[0]+'"');return W(v,y)},useScope:function(O,D){return Me("useScope",D,!1),O.exec(O.params[0])}}),Oe=new Ae({if:function(O,D){Me("if",!1,O.f,!0);var y="if("+O.p+"){"+ie(O.d,D)+"}";if(O.b)for(var v=0;v<O.b.length;v++){var M=O.b[v];M.n==="else"?y+="else{"+ie(M.d,D)+"}":M.n==="elif"&&(y+="else if("+M.p+"){"+ie(M.d,D)+"}")}return y},try:function(O,D){if(Me("try",!1,O.f,!0),!O.b||O.b.length!==1||O.b[0].n!=="catch")throw r("native helper 'try' only accepts 1 block, 'catch'");var y="try{"+ie(O.d,D)+"}",v=O.b[0];return y+="catch"+(v.res?"("+v.res+")":"")+"{"+ie(v.d,D)+"}"},block:function(O,D){return Me("block",O.b,O.f,!0),"if(!"+D.varName+"["+O.p+"]){tR+=("+q(O.d,"",D)+")()}else{tR+="+D.varName+"["+O.p+"]}"}}),Ke=new Ae({e:function(O){var D=String(O);return/[&<>"']/.test(D)?D.replace(/[&<>"']/g,_e):D}}),He={varName:"it",autoTrim:[!1,"nl"],autoEscape:!0,defaultFilter:!1,tags:["{{","}}"],l:function(O,D){if(O==="H"){var y=this.storage.helpers.get(D);if(y)return y;throw r("Can't find helper '"+D+"'")}if(O==="F"){var v=this.storage.filters.get(D);if(v)return v;throw r("Can't find filter '"+D+"'")}},async:!1,storage:{helpers:he,nativeHelpers:Oe,filters:Ke,templates:ue},prefixes:{h:"@",b:"#",i:"",r:"*",c:"/",e:"!"},cache:!1,plugins:[],useWith:!1};function Je(O,D){var y={};return l(y,He),D&&l(y,D),O&&l(y,O),y.l.bind(y),y}function st(O,D){var y,v=Je(D||{}),M=Function;if(v.async){if(!s)throw r("This environment doesn't support async/await");M=s}if(v.varName&&(y=v.varName,/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(y)===!1))throw r("options.varName must be a valid JS identifier");try{return new M(v.varName,"c","cb",N(O,v))}catch(B){throw B instanceof SyntaxError?r(`Bad template syntax
|
|
7
7
|
|
|
8
|
-
`+
|
|
9
|
-
`+Array(
|
|
10
|
-
`+A(R,y)):U}}function Pe(R,D){var b;return D.cache&&D.name&&D.storage.templates.get(D.name)?D.storage.templates.get(D.name):(b=typeof R=="function"?R:st(R,D),D.cache&&D.name&&D.storage.templates.define(D.name,b),b)}_.l.bind(_),n.compile=st,n.compileScope=ie,n.compileScopeIntoFunction=z,n.compileToString=A,n.defaultConfig=_,n.filters=ze,n.getConfig=Je,n.helpers=he,n.nativeHelpers=Ce,n.parse=C,n.render=function(R,D,b,y){var M=Je(b||{});if(!M.async)return Pe(R,M)(D,M);if(!y){if(typeof o=="function")return new o(function(U,G){try{U(Pe(R,M)(D,M))}catch(te){G(te)}});throw r("Please provide a callback function, this env doesn't support Promises")}try{Pe(R,M)(D,M,y)}catch(U){return y(U)}},n.templates=ce,Object.defineProperty(n,"__esModule",{value:!0})})}),Po=Fn(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.SessionType=e.EngagementContentType=e.TriggerType=e.EngagementType=e.EngagementStatus=e.TimePreference=e.ScheduleFrequency=e.CriteriaFrequency=void 0;var t=function(_){return _[_.ONCE_PER_USER=1]="ONCE_PER_USER",_[_.ONCE_PER_SESSION=2]="ONCE_PER_SESSION",_[_.EVERY_TIME=3]="EVERY_TIME",_}(t||(e.CriteriaFrequency=t={})),n=function(_){return _[_.ONE_TIME=1]="ONE_TIME",_[_.MULTIPLE=2]="MULTIPLE",_[_.RECURRING=3]="RECURRING",_}(n||(e.ScheduleFrequency=n={})),r=function(_){return _[_.NOW=1]="NOW",_[_.LATER=2]="LATER",_[_.NEVER=3]="NEVER",_}(r||(e.TimePreference=r={})),i=function(_){return _[_.PUBLISHED=1]="PUBLISHED",_[_.DRAFT=2]="DRAFT",_[_.PAUSED=3]="PAUSED",_[_.STOPPED=5]="STOPPED",_[_.COMPLETED=6]="COMPLETED",_[_.UNINSTALLED=8]="UNINSTALLED",_}(i||(e.EngagementStatus=i={})),o=function(_){return _.CAMPAIGN="CAMPAIGN",_.NATIVE_AB="NATIVE_AB",_.CRO_COPILOT="CRO_COPILOT",_}(o||(e.EngagementType=o={})),s=function(_){return _[_.NONE=0]="NONE",_[_.RULE_BASED=1]="RULE_BASED",_[_.INTENT_BASED=2]="INTENT_BASED",_}(s||(e.TriggerType=s={})),a=function(_){return _[_.SINGLE=1]="SINGLE",_[_.EXCLUSION=2]="EXCLUSION",_[_.ABTESTING=3]="ABTESTING",_}(a||(e.EngagementContentType=a={})),l=function(_){return _[_.ALL=0]="ALL",_[_.NEW_ONLY=1]="NEW_ONLY",_[_.RETURNING_ONLY=2]="RETURNING_ONLY",_}(l||(e.SessionType=l={})),u=function(_){return _.ALL="ALL",_.LOGGED_IN="LOGGED_IN",_.NON_LOGGED_IN="NON_LOGGED_IN",_}(u||(e.LoggedInVisitor=u={})),d=function(_){return _.ALL="ALL",_.PURCHASED="PURCHASED",_.NON_PURCHASED="NON_PURCHASED",_}(d||(e.PurchasedVisitor=d={})),h=function(_){return _[_.NONE=0]="NONE",_[_.ITEM_RECOMMENDATION=1]="ITEM_RECOMMENDATION",_[_.MULTIPLE_ITEMS=2]="MULTIPLE_ITEMS",_[_.SINGLE_ITEM=3]="SINGLE_ITEM",_[_.TOP_SELLING=4]="TOP_SELLING",_[_.STOCK_CLEARANCE=5]="STOCK_CLEARANCE",_[_.NEW_ARRIVALS=6]="NEW_ARRIVALS",_[_.RECENTLY_VIEWED=7]="RECENTLY_VIEWED",_[_.EVENT_ITEM=8]="EVENT_ITEM",_[_.CART_ITEM=9]="CART_ITEM",_[_.BUNDLE=10]="BUNDLE",_[_.CURRENT_ITEM=11]="CURRENT_ITEM",_[_.PURCHASED_PREVIOUSLY=12]="PURCHASED_PREVIOUSLY",_[_.COLLECTION_ITEMS=13]="COLLECTION_ITEMS",_[_.TRENDING_ITEMS=14]="TRENDING_ITEMS",_}(h||(e.EngagementItemSource=h={})),v=function(_){return _[_.LAST_ADDED=1]="LAST_ADDED",_[_.FIRST_ADDED=2]="FIRST_ADDED",_[_.HIGHEST_PRICE=3]="HIGHEST_PRICE",_[_.LOWEST_PRICE=4]="LOWEST_PRICE",_[_.FIRST_MATCHING_TAG=5]="FIRST_MATCHING_TAG",_[_.ALL=6]="ALL",_}(v||(e.CartItemSource=v={})),m=function(_){return _[_.ALL=0]="ALL",_[_.ONLY_ORGANIC=1]="ONLY_ORGANIC",_[_.ONLY_NON_ORGANIC=2]="ONLY_NON_ORGANIC",_[_.INCLUDES=3]="INCLUDES",_[_.EXCLUDES=4]="EXCLUDES",_}(m||(e.UTMCriteria=m={})),w=function(_){return _[_.NONE=0]="NONE",_[_.LIKE=1]="LIKE",_[_.NOT_LIKE=2]="NOT_LIKE",_[_.EQUALS=3]="EQUALS",_[_.NOT_EQUALS=4]="NOT_EQUALS",_}(w||(e.URLCriteria=w={})),C=function(_){return _[_.NONE=0]="NONE",_[_.LESS_THAN=1]="LESS_THAN",_[_.GREATER_THAN=2]="GREATER_THAN",_[_.BETWEEN=3]="BETWEEN",_[_.EQUALS=4]="EQUALS",_}(C||(e.CartCriteria=C={})),A=function(_){return _[_.ALL=0]="ALL",_[_.INCLUDES=1]="INCLUDES",_[_.EXCLUDES=2]="EXCLUDES",_}(A||(e.CartCurrencyOperator=A={})),P=function(_){return _[_.NONE=0]="NONE",_[_.AMOUNT=1]="AMOUNT",_[_.TOTAL_PRODUCT=2]="TOTAL_PRODUCT",_[_.UNIQUE_PRODUCT=3]="UNIQUE_PRODUCT",_}(P||(e.CartFilterEnum=P={})),$=function(_){return _[_.NONE=0]="NONE",_[_.ITEM=1]="ITEM",_[_.COLLECTION=2]="COLLECTION",_}($||(e.PromotionType=$={})),re=function(_){return _[_.NONE=0]="NONE",_[_.SINGLE=1]="SINGLE",_[_.MULTIPLE=2]="MULTIPLE",_}(re||(e.EngagementCollectionSource=re={})),z=function(_){return _.BEFORE="before",_.AFTER="after",_.INSIDE_FIRST="insideFirst",_.INSIDE_LAST="insideLast",_}(z||(e.EngagementPlacementPosition=z={})),ie=function(_){return _.SHOPIFY_CHECKOUT="shopify_checkout",_.THIRD_PARTY_CHECKOUT="third_party_checkout",_.CART_PAGE="cart_page",_.CART_DRAWER="cart_drawer",_}(ie||(e.RedirectBehaviour=ie={})),ke=function(_){return _.ONCE_IN_SESSION="ONCE_IN_SESSION",_.ACROSS_SESSIONS="ACROSS_SESSIONS",_}(ke||(e.FrequencyType=ke={})),Ne=function(_){return _.DAYS="DAYS",_.HOURS="HOURS",_.MINUTES="MINUTES",_.SECONDS="SECONDS",_}(Ne||(e.FrequencyGapUnit=Ne={})),F=function(_){return _[_.NONE=0]="NONE",_[_.REJECT_POPUP=1]="REJECT_POPUP",_[_.ACCEPT_POPUP=2]="ACCEPT_POPUP",_[_.GO_TO_URL=4]="GO_TO_URL",_[_.SHARE=5]="SHARE",_[_.KEY_VALUE=100]="KEY_VALUE",_[_.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",_[_.ADD_TO_CART=102]="ADD_TO_CART",_[_.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",_[_.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",_[_.OPEN_CART=105]="OPEN_CART",_[_.SUBMIT_FORM=106]="SUBMIT_FORM",_[_.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",_[_.ADD_BUNDLE=108]="ADD_BUNDLE",_[_.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",_}(F||(e.ClickActionType=F={})),pe=function(_){return _.POPUP="POPUP",_.PAGE_EMBED="PAGE_EMBED",_.CART_EMBED="CART_EMBED",_.ANNOUNCEMENT_BAR="ANNOUNCEMENT_BAR",_}(pe||(e.OnsiteDeliveryType=pe={})),ce=function(_){return _.PRODUCT_PROMOTION="PRODUCT_PROMOTION",_.BUNDLE_AND_UPSELL="BUNDLE_AND_UPSELL",_.CART_RECOVERY="CART_RECOVERY",_.ANNOUNCEMENT="ANNOUNCEMENT",_.LEAD_GENERATION="LEAD_GENERATION",_.DATA_COLLECTION="DATA_COLLECTION",_.SALE_PROMOTION="SALE_PROMOTION",_.SUBSCRIPTION_UPSELL="SUBSCRIPTION_UPSELL",_.SHOPPABLE_VIDEO="SHOPPABLE_VIDEO",_.BYOB="BYOB",_.PROGRESS_BAR="PROGRESS_BAR",_.BUY_NOW="BUY_NOW",_.STICKY_ATC="STICKY_ATC",_.EXPERIMENT="EXPERIMENT",_}(ce||(e.EngagementObjective=ce={})),he=function(_){return _.COOEE="COOEE",_.KLAVIYO="KLAVIYO",_}(he||(e.EngagementContentSource=he={})),Ce=function(_){return _.ICONS="ICONS",_.TILES="TILES",_}(Ce||(e.ProgressBarLayout=Ce={})),ze=function(_){return _.FREE_SHIPPING="FREE_SHIPPING",_.DISCOUNT="DISCOUNT",_.FREE_AUTO_GIFT="FREE_AUTO_GIFT",_.FREE_GIFT_SELECT="FREE_GIFT_SELECT",_}(ze||(e.MilestoneRewardType=ze={}))}),Fw=Fn(e=>{"use strict";var t=e&&e.__awaiter||function(r,i,o,s){function a(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function d(m){try{v(s.next(m))}catch(w){u(w)}}function h(m){try{v(s.throw(m))}catch(w){u(w)}}function v(m){m.done?l(m.value):a(m.value).then(d,h)}v((s=s.apply(r,i||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.JSUtils=void 0;var n=class{static isObject(r){return typeof r=="object"&&!Array.isArray(r)&&r!==null}static parseToAny(r){try{return JSON.parse(r.toString())}catch{}return r.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(r.toString()):r}static sleep(r){return t(this,void 0,void 0,function*(){return new Promise(i=>setTimeout(i,r))})}static hasKeys(r){return r?Object.keys(r).length>=1:!1}static convertObjectToArray(r,i){return i.reduce((o,s)=>(r.hasOwnProperty(s)&&r[s]!=null&&o.push({[s]:r[s]}),o),[])}static removeNullUndefinedKeys(r){return Object.keys(r).reduce((i,o)=>(r[o]!==null&&r[o]!==void 0&&(i[o]=r[o]),i),{})}static stringify(r){return JSON.stringify(r,function(i,o){return o===void 0?null:o})}};e.JSUtils=n,n.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)/)}),Bw=Fn((e,t)=>{"use strict";(function(n){if(typeof e=="object"&&typeof t<"u")t.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.localforage=n()}})(function(){var n,r,i;return function o(s,a,l){function u(v,m){if(!a[v]){if(!s[v]){var w=typeof as=="function"&&as;if(!m&&w)return w(v,!0);if(d)return d(v,!0);var C=new Error("Cannot find module '"+v+"'");throw C.code="MODULE_NOT_FOUND",C}var A=a[v]={exports:{}};s[v][0].call(A.exports,function(P){var $=s[v][1][P];return u($||P)},A,A.exports,o,s,a,l)}return a[v].exports}for(var d=typeof as=="function"&&as,h=0;h<l.length;h++)u(l[h]);return u}({1:[function(o,s,a){(function(l){"use strict";var u=l.MutationObserver||l.WebKitMutationObserver,d;if(u){var h=0,v=new u(P),m=l.document.createTextNode("");v.observe(m,{characterData:!0}),d=function(){m.data=h=++h%2}}else if(!l.setImmediate&&typeof l.MessageChannel<"u"){var w=new l.MessageChannel;w.port1.onmessage=P,d=function(){w.port2.postMessage(0)}}else"document"in l&&"onreadystatechange"in l.document.createElement("script")?d=function(){var re=l.document.createElement("script");re.onreadystatechange=function(){P(),re.onreadystatechange=null,re.parentNode.removeChild(re),re=null},l.document.documentElement.appendChild(re)}:d=function(){setTimeout(P,0)};var C,A=[];function P(){C=!0;for(var re,z,ie=A.length;ie;){for(z=A,A=[],re=-1;++re<ie;)z[re]();ie=A.length}C=!1}s.exports=$;function $(re){A.push(re)===1&&!C&&d()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(o,s,a){"use strict";var l=o(1);function u(){}var d={},h=["REJECTED"],v=["FULFILLED"],m=["PENDING"];s.exports=w;function w(F){if(typeof F!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,F!==u&&$(this,F)}w.prototype.catch=function(F){return this.then(null,F)},w.prototype.then=function(F,pe){if(typeof F!="function"&&this.state===v||typeof pe!="function"&&this.state===h)return this;var ce=new this.constructor(u);if(this.state!==m){var he=this.state===v?F:pe;A(ce,he,this.outcome)}else this.queue.push(new C(ce,F,pe));return ce};function C(F,pe,ce){this.promise=F,typeof pe=="function"&&(this.onFulfilled=pe,this.callFulfilled=this.otherCallFulfilled),typeof ce=="function"&&(this.onRejected=ce,this.callRejected=this.otherCallRejected)}C.prototype.callFulfilled=function(F){d.resolve(this.promise,F)},C.prototype.otherCallFulfilled=function(F){A(this.promise,this.onFulfilled,F)},C.prototype.callRejected=function(F){d.reject(this.promise,F)},C.prototype.otherCallRejected=function(F){A(this.promise,this.onRejected,F)};function A(F,pe,ce){l(function(){var he;try{he=pe(ce)}catch(Ce){return d.reject(F,Ce)}he===F?d.reject(F,new TypeError("Cannot resolve promise with itself")):d.resolve(F,he)})}d.resolve=function(F,pe){var ce=re(P,pe);if(ce.status==="error")return d.reject(F,ce.value);var he=ce.value;if(he)$(F,he);else{F.state=v,F.outcome=pe;for(var Ce=-1,ze=F.queue.length;++Ce<ze;)F.queue[Ce].callFulfilled(pe)}return F},d.reject=function(F,pe){F.state=h,F.outcome=pe;for(var ce=-1,he=F.queue.length;++ce<he;)F.queue[ce].callRejected(pe);return F};function P(F){var pe=F&&F.then;if(F&&(typeof F=="object"||typeof F=="function")&&typeof pe=="function")return function(){pe.apply(F,arguments)}}function $(F,pe){var ce=!1;function he(Je){ce||(ce=!0,d.reject(F,Je))}function Ce(Je){ce||(ce=!0,d.resolve(F,Je))}function ze(){pe(Ce,he)}var _=re(ze);_.status==="error"&&he(_.value)}function re(F,pe){var ce={};try{ce.value=F(pe),ce.status="success"}catch(he){ce.status="error",ce.value=he}return ce}w.resolve=z;function z(F){return F instanceof this?F:d.resolve(new this(u),F)}w.reject=ie;function ie(F){var pe=new this(u);return d.reject(pe,F)}w.all=ke;function ke(F){var pe=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ce=F.length,he=!1;if(!ce)return this.resolve([]);for(var Ce=new Array(ce),ze=0,_=-1,Je=new this(u);++_<ce;)st(F[_],_);return Je;function st(Pe,R){pe.resolve(Pe).then(D,function(b){he||(he=!0,d.reject(Je,b))});function D(b){Ce[R]=b,++ze===ce&&!he&&(he=!0,d.resolve(Je,Ce))}}}w.race=Ne;function Ne(F){var pe=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ce=F.length,he=!1;if(!ce)return this.resolve([]);for(var Ce=-1,ze=new this(u);++Ce<ce;)_(F[Ce]);return ze;function _(Je){pe.resolve(Je).then(function(st){he||(he=!0,d.resolve(ze,st))},function(st){he||(he=!0,d.reject(ze,st))})}}},{1:1}],3:[function(o,s,a){(function(l){"use strict";typeof l.Promise!="function"&&(l.Promise=o(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(o,s,a){"use strict";var l=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 u(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function d(){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=d();function v(){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),E=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!g||E)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function m(g,E){g=g||[],E=E||{};try{return new Blob(g,E)}catch(O){if(O.name!=="TypeError")throw O;for(var x=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,T=new x,I=0;I<g.length;I+=1)T.append(g[I]);return T.getBlob(E.type)}}typeof Promise>"u"&&o(3);var w=Promise;function C(g,E){E&&g.then(function(x){E(null,x)},function(x){E(x)})}function A(g,E,x){typeof E=="function"&&g.then(E),typeof x=="function"&&g.catch(x)}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 $(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var re="local-forage-detect-blob-support",z=void 0,ie={},ke=Object.prototype.toString,Ne="readonly",F="readwrite";function pe(g){for(var E=g.length,x=new ArrayBuffer(E),T=new Uint8Array(x),I=0;I<E;I++)T[I]=g.charCodeAt(I);return x}function ce(g){return new w(function(E){var x=g.transaction(re,F),T=m([""]);x.objectStore(re).put(T,"key"),x.onabort=function(I){I.preventDefault(),I.stopPropagation(),E(!1)},x.oncomplete=function(){var I=navigator.userAgent.match(/Chrome\/(\d+)/),O=navigator.userAgent.match(/Edge\//);E(O||!I||parseInt(I[1],10)>=43)}}).catch(function(){return!1})}function he(g){return typeof z=="boolean"?w.resolve(z):ce(g).then(function(E){return z=E,z})}function Ce(g){var E=ie[g.name],x={};x.promise=new w(function(T,I){x.resolve=T,x.reject=I}),E.deferredOperations.push(x),E.dbReady?E.dbReady=E.dbReady.then(function(){return x.promise}):E.dbReady=x.promise}function ze(g){var E=ie[g.name],x=E.deferredOperations.pop();if(x)return x.resolve(),x.promise}function _(g,E){var x=ie[g.name],T=x.deferredOperations.pop();if(T)return T.reject(E),T.promise}function Je(g,E){return new w(function(x,T){if(ie[g.name]=ie[g.name]||te(),g.db)if(E)Ce(g),g.db.close();else return x(g.db);var I=[g.name];E&&I.push(g.version);var O=h.open.apply(h,I);E&&(O.onupgradeneeded=function(V){var B=O.result;try{B.createObjectStore(g.storeName),V.oldVersion<=1&&B.createObjectStore(re)}catch(q){if(q.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+V.oldVersion+" to version "+V.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw q}}),O.onerror=function(V){V.preventDefault(),T(O.error)},O.onsuccess=function(){var V=O.result;V.onversionchange=function(B){B.target.close()},x(V),ze(g)}})}function st(g){return Je(g,!1)}function Pe(g){return Je(g,!0)}function R(g,E){if(!g.db)return!0;var x=!g.db.objectStoreNames.contains(g.storeName),T=g.version<g.db.version,I=g.version>g.db.version;if(T&&(g.version!==E&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),I||x){if(x){var O=g.db.version+1;O>g.version&&(g.version=O)}return!0}return!1}function D(g){return new w(function(E,x){var T=new FileReader;T.onerror=x,T.onloadend=function(I){var O=btoa(I.target.result||"");E({__local_forage_encoded_blob:!0,data:O,type:g.type})},T.readAsBinaryString(g)})}function b(g){var E=pe(atob(g.data));return m([E],{type:g.type})}function y(g){return g&&g.__local_forage_encoded_blob}function M(g){var E=this,x=E._initReady().then(function(){var T=ie[E._dbInfo.name];if(T&&T.dbReady)return T.dbReady});return A(x,g,g),x}function U(g){Ce(g);for(var E=ie[g.name],x=E.forages,T=0;T<x.length;T++){var I=x[T];I._dbInfo.db&&(I._dbInfo.db.close(),I._dbInfo.db=null)}return g.db=null,st(g).then(function(O){return g.db=O,R(g)?Pe(g):O}).then(function(O){g.db=E.db=O;for(var V=0;V<x.length;V++)x[V]._dbInfo.db=O}).catch(function(O){throw _(g,O),O})}function G(g,E,x,T){T===void 0&&(T=1);try{var I=g.db.transaction(g.storeName,E);x(null,I)}catch(O){if(T>0&&(!g.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return w.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),Pe(g)}).then(function(){return U(g).then(function(){G(g,E,x,T-1)})}).catch(x);x(O)}}function te(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(g){var E=this,x={db:null};if(g)for(var T in g)x[T]=g[T];var I=ie[x.name];I||(I=te(),ie[x.name]=I),I.forages.push(E),E._initReady||(E._initReady=E.ready,E.ready=M);var O=[];function V(){return w.resolve()}for(var B=0;B<I.forages.length;B++){var q=I.forages[B];q!==E&&O.push(q._initReady().catch(V))}var W=I.forages.slice(0);return w.all(O).then(function(){return x.db=I.db,st(x)}).then(function(H){return x.db=H,R(x,E._defaultConfig.version)?Pe(x):H}).then(function(H){x.db=I.db=H,E._dbInfo=x;for(var le=0;le<W.length;le++){var Te=W[le];Te!==E&&(Te._dbInfo.db=x.db,Te._dbInfo.version=x.version)}})}function J(g,E){var x=this;g=P(g);var T=new w(function(I,O){x.ready().then(function(){G(x._dbInfo,Ne,function(V,B){if(V)return O(V);try{var q=B.objectStore(x._dbInfo.storeName),W=q.get(g);W.onsuccess=function(){var H=W.result;H===void 0&&(H=null),y(H)&&(H=b(H)),I(H)},W.onerror=function(){O(W.error)}}catch(H){O(H)}})}).catch(O)});return C(T,E),T}function ue(g,E){var x=this,T=new w(function(I,O){x.ready().then(function(){G(x._dbInfo,Ne,function(V,B){if(V)return O(V);try{var q=B.objectStore(x._dbInfo.storeName),W=q.openCursor(),H=1;W.onsuccess=function(){var le=W.result;if(le){var Te=le.value;y(Te)&&(Te=b(Te));var qe=g(Te,le.key,H++);qe!==void 0?I(qe):le.continue()}else I()},W.onerror=function(){O(W.error)}}catch(le){O(le)}})}).catch(O)});return C(T,E),T}function _e(g,E,x){var T=this;g=P(g);var I=new w(function(O,V){var B;T.ready().then(function(){return B=T._dbInfo,ke.call(E)==="[object Blob]"?he(B.db).then(function(q){return q?E:D(E)}):E}).then(function(q){G(T._dbInfo,F,function(W,H){if(W)return V(W);try{var le=H.objectStore(T._dbInfo.storeName);q===null&&(q=void 0);var Te=le.put(q,g);H.oncomplete=function(){q===void 0&&(q=null),O(q)},H.onabort=H.onerror=function(){var qe=Te.error?Te.error:Te.transaction.error;V(qe)}}catch(qe){V(qe)}})}).catch(V)});return C(I,x),I}function xe(g,E){var x=this;g=P(g);var T=new w(function(I,O){x.ready().then(function(){G(x._dbInfo,F,function(V,B){if(V)return O(V);try{var q=B.objectStore(x._dbInfo.storeName),W=q.delete(g);B.oncomplete=function(){I()},B.onerror=function(){O(W.error)},B.onabort=function(){var H=W.error?W.error:W.transaction.error;O(H)}}catch(H){O(H)}})}).catch(O)});return C(T,E),T}function X(g){var E=this,x=new w(function(T,I){E.ready().then(function(){G(E._dbInfo,F,function(O,V){if(O)return I(O);try{var B=V.objectStore(E._dbInfo.storeName),q=B.clear();V.oncomplete=function(){T()},V.onabort=V.onerror=function(){var W=q.error?q.error:q.transaction.error;I(W)}}catch(W){I(W)}})}).catch(I)});return C(x,g),x}function se(g){var E=this,x=new w(function(T,I){E.ready().then(function(){G(E._dbInfo,Ne,function(O,V){if(O)return I(O);try{var B=V.objectStore(E._dbInfo.storeName),q=B.count();q.onsuccess=function(){T(q.result)},q.onerror=function(){I(q.error)}}catch(W){I(W)}})}).catch(I)});return C(x,g),x}function ve(g,E){var x=this,T=new w(function(I,O){if(g<0){I(null);return}x.ready().then(function(){G(x._dbInfo,Ne,function(V,B){if(V)return O(V);try{var q=B.objectStore(x._dbInfo.storeName),W=!1,H=q.openKeyCursor();H.onsuccess=function(){var le=H.result;if(!le){I(null);return}g===0||W?I(le.key):(W=!0,le.advance(g))},H.onerror=function(){O(H.error)}}catch(le){O(le)}})}).catch(O)});return C(T,E),T}function de(g){var E=this,x=new w(function(T,I){E.ready().then(function(){G(E._dbInfo,Ne,function(O,V){if(O)return I(O);try{var B=V.objectStore(E._dbInfo.storeName),q=B.openKeyCursor(),W=[];q.onsuccess=function(){var H=q.result;if(!H){T(W);return}W.push(H.key),H.continue()},q.onerror=function(){I(q.error)}}catch(H){I(H)}})}).catch(I)});return C(x,g),x}function c(g,E){E=$.apply(this,arguments);var x=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||x.name,g.storeName=g.storeName||x.storeName);var T=this,I;if(!g.name)I=w.reject("Invalid arguments");else{var O=g.name===x.name&&T._dbInfo.db,V=O?w.resolve(T._dbInfo.db):st(g).then(function(B){var q=ie[g.name],W=q.forages;q.db=B;for(var H=0;H<W.length;H++)W[H]._dbInfo.db=B;return B});g.storeName?I=V.then(function(B){if(B.objectStoreNames.contains(g.storeName)){var q=B.version+1;Ce(g);var W=ie[g.name],H=W.forages;B.close();for(var le=0;le<H.length;le++){var Te=H[le];Te._dbInfo.db=null,Te._dbInfo.version=q}var qe=new w(function(He,_t){var nt=h.open(g.name,q);nt.onerror=function(Jt){var El=nt.result;El.close(),_t(Jt)},nt.onupgradeneeded=function(){var Jt=nt.result;Jt.deleteObjectStore(g.storeName)},nt.onsuccess=function(){var Jt=nt.result;Jt.close(),He(Jt)}});return qe.then(function(He){W.db=He;for(var _t=0;_t<H.length;_t++){var nt=H[_t];nt._dbInfo.db=He,ze(nt._dbInfo)}}).catch(function(He){throw(_(g,He)||w.resolve()).catch(function(){}),He})}}):I=V.then(function(B){Ce(g);var q=ie[g.name],W=q.forages;B.close();for(var H=0;H<W.length;H++){var le=W[H];le._dbInfo.db=null}var Te=new w(function(qe,He){var _t=h.deleteDatabase(g.name);_t.onerror=function(){var nt=_t.result;nt&&nt.close(),He(_t.error)},_t.onblocked=function(){console.warn('dropInstance blocked for database "'+g.name+'" until all open connections are closed')},_t.onsuccess=function(){var nt=_t.result;nt&&nt.close(),qe(nt)}});return Te.then(function(qe){q.db=qe;for(var He=0;He<W.length;He++){var _t=W[He];ze(_t._dbInfo)}}).catch(function(qe){throw(_(g,qe)||w.resolve()).catch(function(){}),qe})})}return C(I,E),I}var f={_driver:"asyncStorage",_initStorage:ee,_support:v(),iterate:ue,getItem:J,setItem:_e,removeItem:xe,clear:X,length:se,key:ve,keys:de,dropInstance:c};function p(){return typeof openDatabase=="function"}var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="~~local_forage_type~",j=/^~~local_forage_type~([^~]+)~/,Q="__lfsc__:",oe=Q.length,Ve="arbf",Ie="blob",je="si08",Ae="ui08",xt="uic8",Hn="si16",ft="si32",un="ur16",Rn="ui32",or="fl32",zt="fl64",hn=oe+Ve.length,Kd=Object.prototype.toString;function Jd(g){var E=g.length*.75,x=g.length,T,I=0,O,V,B,q;g[g.length-1]==="="&&(E--,g[g.length-2]==="="&&E--);var W=new ArrayBuffer(E),H=new Uint8Array(W);for(T=0;T<x;T+=4)O=S.indexOf(g[T]),V=S.indexOf(g[T+1]),B=S.indexOf(g[T+2]),q=S.indexOf(g[T+3]),H[I++]=O<<2|V>>4,H[I++]=(V&15)<<4|B>>2,H[I++]=(B&3)<<6|q&63;return W}function vl(g){var E=new Uint8Array(g),x="",T;for(T=0;T<E.length;T+=3)x+=S[E[T]>>2],x+=S[(E[T]&3)<<4|E[T+1]>>4],x+=S[(E[T+1]&15)<<2|E[T+2]>>6],x+=S[E[T+2]&63];return E.length%3===2?x=x.substring(0,x.length-1)+"=":E.length%3===1&&(x=x.substring(0,x.length-2)+"=="),x}function Bb(g,E){var x="";if(g&&(x=Kd.call(g)),g&&(x==="[object ArrayBuffer]"||g.buffer&&Kd.call(g.buffer)==="[object ArrayBuffer]")){var T,I=Q;g instanceof ArrayBuffer?(T=g,I+=Ve):(T=g.buffer,x==="[object Int8Array]"?I+=je:x==="[object Uint8Array]"?I+=Ae:x==="[object Uint8ClampedArray]"?I+=xt:x==="[object Int16Array]"?I+=Hn:x==="[object Uint16Array]"?I+=un:x==="[object Int32Array]"?I+=ft:x==="[object Uint32Array]"?I+=Rn:x==="[object Float32Array]"?I+=or:x==="[object Float64Array]"?I+=zt:E(new Error("Failed to get type for BinaryArray"))),E(I+vl(T))}else if(x==="[object Blob]"){var O=new FileReader;O.onload=function(){var V=k+g.type+"~"+vl(this.result);E(Q+Ie+V)},O.readAsArrayBuffer(g)}else try{E(JSON.stringify(g))}catch(V){console.error("Couldn't convert value into a JSON string: ",g),E(null,V)}}function Ub(g){if(g.substring(0,oe)!==Q)return JSON.parse(g);var E=g.substring(hn),x=g.substring(oe,hn),T;if(x===Ie&&j.test(E)){var I=E.match(j);T=I[1],E=E.substring(I[0].length)}var O=Jd(E);switch(x){case Ve:return O;case Ie:return m([O],{type:T});case je:return new Int8Array(O);case Ae:return new Uint8Array(O);case xt:return new Uint8ClampedArray(O);case Hn:return new Int16Array(O);case un:return new Uint16Array(O);case ft:return new Int32Array(O);case Rn:return new Uint32Array(O);case or:return new Float32Array(O);case zt:return new Float64Array(O);default:throw new Error("Unkown type: "+x)}}var yl={serialize:Bb,deserialize:Ub,stringToBuffer:Jd,bufferToString:vl};function Xd(g,E,x,T){g.executeSql("CREATE TABLE IF NOT EXISTS "+E.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],x,T)}function Hb(g){var E=this,x={db:null};if(g)for(var T in g)x[T]=typeof g[T]!="string"?g[T].toString():g[T];var I=new w(function(O,V){try{x.db=openDatabase(x.name,String(x.version),x.description,x.size)}catch(B){return V(B)}x.db.transaction(function(B){Xd(B,x,function(){E._dbInfo=x,O()},function(q,W){V(W)})},V)});return x.serializer=yl,I}function sr(g,E,x,T,I,O){g.executeSql(x,T,I,function(V,B){B.code===B.SYNTAX_ERR?V.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[E.storeName],function(q,W){W.rows.length?O(q,B):Xd(q,E,function(){q.executeSql(x,T,I,O)},O)},O):O(V,B)},O)}function $b(g,E){var x=this;g=P(g);var T=new w(function(I,O){x.ready().then(function(){var V=x._dbInfo;V.db.transaction(function(B){sr(B,V,"SELECT * FROM "+V.storeName+" WHERE key = ? LIMIT 1",[g],function(q,W){var H=W.rows.length?W.rows.item(0).value:null;H&&(H=V.serializer.deserialize(H)),I(H)},function(q,W){O(W)})})}).catch(O)});return C(T,E),T}function zb(g,E){var x=this,T=new w(function(I,O){x.ready().then(function(){var V=x._dbInfo;V.db.transaction(function(B){sr(B,V,"SELECT * FROM "+V.storeName,[],function(q,W){for(var H=W.rows,le=H.length,Te=0;Te<le;Te++){var qe=H.item(Te),He=qe.value;if(He&&(He=V.serializer.deserialize(He)),He=g(He,qe.key,Te+1),He!==void 0){I(He);return}}I()},function(q,W){O(W)})})}).catch(O)});return C(T,E),T}function Qd(g,E,x,T){var I=this;g=P(g);var O=new w(function(V,B){I.ready().then(function(){E===void 0&&(E=null);var q=E,W=I._dbInfo;W.serializer.serialize(E,function(H,le){le?B(le):W.db.transaction(function(Te){sr(Te,W,"INSERT OR REPLACE INTO "+W.storeName+" (key, value) VALUES (?, ?)",[g,H],function(){V(q)},function(qe,He){B(He)})},function(Te){if(Te.code===Te.QUOTA_ERR){if(T>0){V(Qd.apply(I,[g,q,x,T-1]));return}B(Te)}})})}).catch(B)});return C(O,x),O}function Wb(g,E,x){return Qd.apply(this,[g,E,x,1])}function qb(g,E){var x=this;g=P(g);var T=new w(function(I,O){x.ready().then(function(){var V=x._dbInfo;V.db.transaction(function(B){sr(B,V,"DELETE FROM "+V.storeName+" WHERE key = ?",[g],function(){I()},function(q,W){O(W)})})}).catch(O)});return C(T,E),T}function Gb(g){var E=this,x=new w(function(T,I){E.ready().then(function(){var O=E._dbInfo;O.db.transaction(function(V){sr(V,O,"DELETE FROM "+O.storeName,[],function(){T()},function(B,q){I(q)})})}).catch(I)});return C(x,g),x}function Zb(g){var E=this,x=new w(function(T,I){E.ready().then(function(){var O=E._dbInfo;O.db.transaction(function(V){sr(V,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function(B,q){var W=q.rows.item(0).c;T(W)},function(B,q){I(q)})})}).catch(I)});return C(x,g),x}function Yb(g,E){var x=this,T=new w(function(I,O){x.ready().then(function(){var V=x._dbInfo;V.db.transaction(function(B){sr(B,V,"SELECT key FROM "+V.storeName+" WHERE id = ? LIMIT 1",[g+1],function(q,W){var H=W.rows.length?W.rows.item(0).key:null;I(H)},function(q,W){O(W)})})}).catch(O)});return C(T,E),T}function Kb(g){var E=this,x=new w(function(T,I){E.ready().then(function(){var O=E._dbInfo;O.db.transaction(function(V){sr(V,O,"SELECT key FROM "+O.storeName,[],function(B,q){for(var W=[],H=0;H<q.rows.length;H++)W.push(q.rows.item(H).key);T(W)},function(B,q){I(q)})})}).catch(I)});return C(x,g),x}function Jb(g){return new w(function(E,x){g.transaction(function(T){T.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(I,O){for(var V=[],B=0;B<O.rows.length;B++)V.push(O.rows.item(B).name);E({db:g,storeNames:V})},function(I,O){x(O)})},function(T){x(T)})})}function Xb(g,E){E=$.apply(this,arguments);var x=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||x.name,g.storeName=g.storeName||x.storeName);var T=this,I;return g.name?I=new w(function(O){var V;g.name===x.name?V=T._dbInfo.db:V=openDatabase(g.name,"","",0),g.storeName?O({db:V,storeNames:[g.storeName]}):O(Jb(V))}).then(function(O){return new w(function(V,B){O.db.transaction(function(q){function W(qe){return new w(function(He,_t){q.executeSql("DROP TABLE IF EXISTS "+qe,[],function(){He()},function(nt,Jt){_t(Jt)})})}for(var H=[],le=0,Te=O.storeNames.length;le<Te;le++)H.push(W(O.storeNames[le]));w.all(H).then(function(){V()}).catch(function(qe){B(qe)})},function(q){B(q)})})}):I=w.reject("Invalid arguments"),C(I,E),I}var Qb={_driver:"webSQLStorage",_initStorage:Hb,_support:p(),iterate:zb,getItem:$b,setItem:Wb,removeItem:qb,clear:Gb,length:Zb,key:Yb,keys:Kb,dropInstance:Xb};function ew(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function ef(g,E){var x=g.name+"/";return g.storeName!==E.storeName&&(x+=g.storeName+"/"),x}function tw(){var g="_localforage_support_test";try{return localStorage.setItem(g,!0),localStorage.removeItem(g),!1}catch{return!0}}function nw(){return!tw()||localStorage.length>0}function rw(g){var E=this,x={};if(g)for(var T in g)x[T]=g[T];return x.keyPrefix=ef(g,E._defaultConfig),nw()?(E._dbInfo=x,x.serializer=yl,w.resolve()):w.reject()}function iw(g){var E=this,x=E.ready().then(function(){for(var T=E._dbInfo.keyPrefix,I=localStorage.length-1;I>=0;I--){var O=localStorage.key(I);O.indexOf(T)===0&&localStorage.removeItem(O)}});return C(x,g),x}function ow(g,E){var x=this;g=P(g);var T=x.ready().then(function(){var I=x._dbInfo,O=localStorage.getItem(I.keyPrefix+g);return O&&(O=I.serializer.deserialize(O)),O});return C(T,E),T}function sw(g,E){var x=this,T=x.ready().then(function(){for(var I=x._dbInfo,O=I.keyPrefix,V=O.length,B=localStorage.length,q=1,W=0;W<B;W++){var H=localStorage.key(W);if(H.indexOf(O)===0){var le=localStorage.getItem(H);if(le&&(le=I.serializer.deserialize(le)),le=g(le,H.substring(V),q++),le!==void 0)return le}}});return C(T,E),T}function aw(g,E){var x=this,T=x.ready().then(function(){var I=x._dbInfo,O;try{O=localStorage.key(g)}catch{O=null}return O&&(O=O.substring(I.keyPrefix.length)),O});return C(T,E),T}function lw(g){var E=this,x=E.ready().then(function(){for(var T=E._dbInfo,I=localStorage.length,O=[],V=0;V<I;V++){var B=localStorage.key(V);B.indexOf(T.keyPrefix)===0&&O.push(B.substring(T.keyPrefix.length))}return O});return C(x,g),x}function cw(g){var E=this,x=E.keys().then(function(T){return T.length});return C(x,g),x}function uw(g,E){var x=this;g=P(g);var T=x.ready().then(function(){var I=x._dbInfo;localStorage.removeItem(I.keyPrefix+g)});return C(T,E),T}function hw(g,E,x){var T=this;g=P(g);var I=T.ready().then(function(){E===void 0&&(E=null);var O=E;return new w(function(V,B){var q=T._dbInfo;q.serializer.serialize(E,function(W,H){if(H)B(H);else try{localStorage.setItem(q.keyPrefix+g,W),V(O)}catch(le){(le.name==="QuotaExceededError"||le.name==="NS_ERROR_DOM_QUOTA_REACHED")&&B(le),B(le)}})})});return C(I,x),I}function dw(g,E){if(E=$.apply(this,arguments),g=typeof g!="function"&&g||{},!g.name){var x=this.config();g.name=g.name||x.name,g.storeName=g.storeName||x.storeName}var T=this,I;return g.name?I=new w(function(O){g.storeName?O(ef(g,T._defaultConfig)):O(g.name+"/")}).then(function(O){for(var V=localStorage.length-1;V>=0;V--){var B=localStorage.key(V);B.indexOf(O)===0&&localStorage.removeItem(B)}}):I=w.reject("Invalid arguments"),C(I,E),I}var fw={_driver:"localStorageWrapper",_initStorage:rw,_support:ew(),iterate:sw,getItem:ow,setItem:hw,removeItem:uw,clear:iw,length:cw,key:aw,keys:lw,dropInstance:dw},pw=function(g,E){return g===E||typeof g=="number"&&typeof E=="number"&&isNaN(g)&&isNaN(E)},gw=function(g,E){for(var x=g.length,T=0;T<x;){if(pw(g[T],E))return!0;T++}return!1},tf=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"},qi={},nf={},ri={INDEXEDDB:f,WEBSQL:Qb,LOCALSTORAGE:fw},_w=[ri.INDEXEDDB._driver,ri.WEBSQL._driver,ri.LOCALSTORAGE._driver],ss=["dropInstance"],bl=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ss),mw={description:"",driver:_w.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function vw(g,E){g[E]=function(){var x=arguments;return g.ready().then(function(){return g[E].apply(g,x)})}}function wl(){for(var g=1;g<arguments.length;g++){var E=arguments[g];if(E)for(var x in E)E.hasOwnProperty(x)&&(tf(E[x])?arguments[0][x]=E[x].slice():arguments[0][x]=E[x])}return arguments[0]}var yw=function(){function g(E){u(this,g);for(var x in ri)if(ri.hasOwnProperty(x)){var T=ri[x],I=T._driver;this[x]=I,qi[I]||this.defineDriver(T)}this._defaultConfig=wl({},mw),this._config=wl({},this._defaultConfig,E),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return g.prototype.config=function(E){if((typeof E>"u"?"undefined":l(E))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var x in E){if(x==="storeName"&&(E[x]=E[x].replace(/\W/g,"_")),x==="version"&&typeof E[x]!="number")return new Error("Database version must be a number.");this._config[x]=E[x]}return"driver"in E&&E.driver?this.setDriver(this._config.driver):!0}else return typeof E=="string"?this._config[E]:this._config},g.prototype.defineDriver=function(E,x,T){var I=new w(function(O,V){try{var B=E._driver,q=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!E._driver){V(q);return}for(var W=bl.concat("_initStorage"),H=0,le=W.length;H<le;H++){var Te=W[H],qe=!gw(ss,Te);if((qe||E[Te])&&typeof E[Te]!="function"){V(q);return}}var He=function(){for(var nt=function(ww){return function(){var Ew=new Error("Method "+ww+" is not implemented by the current driver"),rf=w.reject(Ew);return C(rf,arguments[arguments.length-1]),rf}},Jt=0,El=ss.length;Jt<El;Jt++){var xl=ss[Jt];E[xl]||(E[xl]=nt(xl))}};He();var _t=function(nt){qi[B]&&console.info("Redefining LocalForage driver: "+B),qi[B]=E,nf[B]=nt,O()};"_support"in E?E._support&&typeof E._support=="function"?E._support().then(_t,V):_t(!!E._support):_t(!0)}catch(nt){V(nt)}});return A(I,x,T),I},g.prototype.driver=function(){return this._driver||null},g.prototype.getDriver=function(E,x,T){var I=qi[E]?w.resolve(qi[E]):w.reject(new Error("Driver not found."));return A(I,x,T),I},g.prototype.getSerializer=function(E){var x=w.resolve(yl);return A(x,E),x},g.prototype.ready=function(E){var x=this,T=x._driverSet.then(function(){return x._ready===null&&(x._ready=x._initDriver()),x._ready});return A(T,E,E),T},g.prototype.setDriver=function(E,x,T){var I=this;tf(E)||(E=[E]);var O=this._getSupportedDrivers(E);function V(){I._config.driver=I.driver()}function B(H){return I._extend(H),V(),I._ready=I._initStorage(I._config),I._ready}function q(H){return function(){var le=0;function Te(){for(;le<H.length;){var qe=H[le];return le++,I._dbInfo=null,I._ready=null,I.getDriver(qe).then(B).catch(Te)}V();var He=new Error("No available storage method found.");return I._driverSet=w.reject(He),I._driverSet}return Te()}}var W=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=W.then(function(){var H=O[0];return I._dbInfo=null,I._ready=null,I.getDriver(H).then(function(le){I._driver=le._driver,V(),I._wrapLibraryMethodsWithReady(),I._initDriver=q(O)})}).catch(function(){V();var H=new Error("No available storage method found.");return I._driverSet=w.reject(H),I._driverSet}),A(this._driverSet,x,T),this._driverSet},g.prototype.supports=function(E){return!!nf[E]},g.prototype._extend=function(E){wl(this,E)},g.prototype._getSupportedDrivers=function(E){for(var x=[],T=0,I=E.length;T<I;T++){var O=E[T];this.supports(O)&&x.push(O)}return x},g.prototype._wrapLibraryMethodsWithReady=function(){for(var E=0,x=bl.length;E<x;E++)vw(this,bl[E])},g.prototype.createInstance=function(E){return new g(E)},g}(),bw=new yw;s.exports=bw},{3:3}]},{},[4])(4)})}),Uw=Fn(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MustacheUtils=void 0;var t=class o_{static escapeHtml(r){return String(r).replace(/"/g,i=>o_.entityMap[i])}};e.MustacheUtils=t,t.entityMap={'"':"""}}),Hw=Fn(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StorageDestination=e.AssetType=void 0;var t=function(r){return r[r.IMAGE=1]="IMAGE",r[r.VIDEO=2]="VIDEO",r[r.GIF=3]="GIF",r[r.SCREENSHOT=4]="SCREENSHOT",r[r.THREE_D=5]="THREE_D",r[r.FONT=6]="FONT",r[r.TEXT=7]="TEXT",r[r.JSON=8]="JSON",r[r.SVG=9]="SVG",r[r.HTML=10]="HTML",r[r.LOGO=11]="LOGO",r[r.OTHERS=1e3]="OTHERS",r}(t||(e.AssetType=t={})),n=function(r){return r.AWS_S3="AWS_S3",r.SHOPIFY_FILES="SHOPIFY_FILES",r}(n||(e.StorageDestination=n={}))}),$w=Fn(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TemplateStatus=void 0;var t=function(n){return n[n.DRAFT=1]="DRAFT",n[n.PUBLISHED=2]="PUBLISHED",n[n.DISABLED=3]="DISABLED",n}(t||(e.TemplateStatus=t={}))}),zw=Fn(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionType=void 0;var t=function(n){return n.VIEW_ITEM="VIEW_ITEM",n.ADD_TO_CART="ADD_TO_CART",n.VIEW_CATEGORY="VIEW_CATEGORY",n.VIEW_TAG="VIEW_TAG",n.SEARCH="SEARCH",n.APPLY_COUPON="APPLY_COUPON",n}(t||(e.ActionType=t={}))}),Ww=Fn(e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=e&&e.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(Hw(),e),n($w(),e),n(Po(),e),n(zw(),e)});function s_(e,t){return Object.is(e,t)}var vt=null,ro=!1,Xu=1,nn=Symbol("SIGNAL");function Oe(e){let t=vt;return vt=e,t}function qw(){return vt}function Gw(){return ro}var Ri={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qu(e){if(ro)throw new Error("");if(vt===null)return;vt.consumerOnSignalRead(e);let t=vt.nextProducerIndex++;if(Ra(vt),t<vt.producerNode.length&&vt.producerNode[t]!==e&&fo(vt)){let n=vt.producerNode[t];Da(n,vt.producerIndexOfThis[t])}vt.producerNode[t]!==e&&(vt.producerNode[t]=e,vt.producerIndexOfThis[t]=fo(vt)?h_(e,vt,t):0),vt.producerLastReadVersion[t]=e.version}function Zw(){Xu++}function a_(e){if(!(fo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Xu)){if(!e.producerMustRecompute(e)&&!Oa(e)){lf(e);return}e.producerRecomputeValue(e),lf(e)}}function l_(e){if(e.liveConsumerNode===void 0)return;let t=ro;ro=!0;try{for(let n of e.liveConsumerNode)n.dirty||u_(n)}finally{ro=t}}function c_(){return vt?.consumerAllowSignalWrites!==!1}function u_(e){e.dirty=!0,l_(e),e.consumerMarkedDirty?.(e)}function lf(e){e.dirty=!1,e.lastCleanEpoch=Xu}function ho(e){return e&&(e.nextProducerIndex=0),Oe(e)}function Ta(e,t){if(Oe(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(fo(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Da(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Oa(e){Ra(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(a_(n),r!==n.version))return!0}return!1}function Ao(e){if(Ra(e),fo(e))for(let t=0;t<e.producerNode.length;t++)Da(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function h_(e,t,n){if(d_(e),e.liveConsumerNode.length===0&&f_(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=h_(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Da(e,t){if(d_(e),e.liveConsumerNode.length===1&&f_(e))for(let r=0;r<e.producerNode.length;r++)Da(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];Ra(i),i.producerIndexOfThis[r]=t}}function fo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Ra(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function d_(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function f_(e){return e.producerNode!==void 0}function Yw(e){let t=Object.create(Kw);t.computation=e;let n=()=>{if(a_(t),Qu(t),t.value===Os)throw t.error;return t.value};return n[nn]=t,n}var Sl=Symbol("UNSET"),Cl=Symbol("COMPUTING"),Os=Symbol("ERRORED"),Kw=Le(L({},Ri),{value:Sl,dirty:!0,error:null,equal:s_,kind:"computed",producerMustRecompute(e){return e.value===Sl||e.value===Cl},producerRecomputeValue(e){if(e.value===Cl)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Cl;let n=ho(e),r,i=!1;try{r=e.computation(),Oe(null),i=t!==Sl&&t!==Os&&r!==Os&&e.equal(t,r)}catch(o){r=Os,e.error=o}finally{Ta(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Jw(){throw new Error}var p_=Jw;function g_(e){p_(e)}function Xw(e){p_=e}var Qw=null;function e1(e){let t=Object.create(__);t.value=e;let n=()=>(Qu(t),t.value);return n[nn]=t,n}function eh(e,t){c_()||g_(e),e.equal(e.value,t)||(e.value=t,n1(e))}function t1(e,t){c_()||g_(e),eh(e,t(e.value))}var __=Le(L({},Ri),{equal:s_,value:void 0,kind:"signal"});function n1(e){e.version++,Zw(),l_(e),Qw?.()}function r1(e,t,n){let r=Object.create(i1);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let i=l=>{r.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(Ao(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=_c)}let a=()=>{if(r.fn===null)return;if(Gw())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Oa(r))return;r.hasRun=!0;let l=ho(r);try{r.cleanupFn(),r.cleanupFn=_c,r.fn(i)}finally{Ta(r,l)}};return r.ref={notify:()=>u_(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[nn]:r},r.ref}var _c=()=>{},i1=Le(L({},Ri),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:_c});function Ze(e){return typeof e=="function"}function m_(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Il=m_(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
|
|
8
|
+
`+B.message+`
|
|
9
|
+
`+Array(B.message.length+1).join("=")+`
|
|
10
|
+
`+N(O,v)):B}}function ke(O,D){var y;return D.cache&&D.name&&D.storage.templates.get(D.name)?D.storage.templates.get(D.name):(y=typeof O=="function"?O:st(O,D),D.cache&&D.name&&D.storage.templates.define(D.name,y),y)}He.l.bind(He),n.compile=st,n.compileScope=ie,n.compileScopeIntoFunction=q,n.compileToString=N,n.defaultConfig=He,n.filters=Ke,n.getConfig=Je,n.helpers=he,n.nativeHelpers=Oe,n.parse=S,n.render=function(O,D,y,v){var M=Je(y||{});if(!M.async)return ke(O,M)(D,M);if(!v){if(typeof o=="function")return new o(function(B,W){try{B(ke(O,M)(D,M))}catch(te){W(te)}});throw r("Please provide a callback function, this env doesn't support Promises")}try{ke(O,M)(D,M,v)}catch(B){return v(B)}},n.templates=ue,Object.defineProperty(n,"__esModule",{value:!0})})}),jw=Ku((e,t)=>{"use strict";(function(n){if(typeof e=="object"&&typeof t<"u")t.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.localforage=n()}})(function(){var n,r,i;return function o(s,a,l){function u(_,m){if(!a[_]){if(!s[_]){var b=typeof os=="function"&&os;if(!m&&b)return b(_,!0);if(d)return d(_,!0);var S=new Error("Cannot find module '"+_+"'");throw S.code="MODULE_NOT_FOUND",S}var N=a[_]={exports:{}};s[_][0].call(N.exports,function(P){var z=s[_][1][P];return u(z||P)},N,N.exports,o,s,a,l)}return a[_].exports}for(var d=typeof os=="function"&&os,h=0;h<l.length;h++)u(l[h]);return u}({1:[function(o,s,a){(function(l){"use strict";var u=l.MutationObserver||l.WebKitMutationObserver,d;if(u){var h=0,_=new u(P),m=l.document.createTextNode("");_.observe(m,{characterData:!0}),d=function(){m.data=h=++h%2}}else if(!l.setImmediate&&typeof l.MessageChannel<"u"){var b=new l.MessageChannel;b.port1.onmessage=P,d=function(){b.port2.postMessage(0)}}else"document"in l&&"onreadystatechange"in l.document.createElement("script")?d=function(){var re=l.document.createElement("script");re.onreadystatechange=function(){P(),re.onreadystatechange=null,re.parentNode.removeChild(re),re=null},l.document.documentElement.appendChild(re)}:d=function(){setTimeout(P,0)};var S,N=[];function P(){S=!0;for(var re,q,ie=N.length;ie;){for(q=N,N=[],re=-1;++re<ie;)q[re]();ie=N.length}S=!1}s.exports=z;function z(re){N.push(re)===1&&!S&&d()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(o,s,a){"use strict";var l=o(1);function u(){}var d={},h=["REJECTED"],_=["FULFILLED"],m=["PENDING"];s.exports=b;function b(F){if(typeof F!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,F!==u&&z(this,F)}b.prototype.catch=function(F){return this.then(null,F)},b.prototype.then=function(F,_e){if(typeof F!="function"&&this.state===_||typeof _e!="function"&&this.state===h)return this;var ue=new this.constructor(u);if(this.state!==m){var he=this.state===_?F:_e;N(ue,he,this.outcome)}else this.queue.push(new S(ue,F,_e));return ue};function S(F,_e,ue){this.promise=F,typeof _e=="function"&&(this.onFulfilled=_e,this.callFulfilled=this.otherCallFulfilled),typeof ue=="function"&&(this.onRejected=ue,this.callRejected=this.otherCallRejected)}S.prototype.callFulfilled=function(F){d.resolve(this.promise,F)},S.prototype.otherCallFulfilled=function(F){N(this.promise,this.onFulfilled,F)},S.prototype.callRejected=function(F){d.reject(this.promise,F)},S.prototype.otherCallRejected=function(F){N(this.promise,this.onRejected,F)};function N(F,_e,ue){l(function(){var he;try{he=_e(ue)}catch(Oe){return d.reject(F,Oe)}he===F?d.reject(F,new TypeError("Cannot resolve promise with itself")):d.resolve(F,he)})}d.resolve=function(F,_e){var ue=re(P,_e);if(ue.status==="error")return d.reject(F,ue.value);var he=ue.value;if(he)z(F,he);else{F.state=_,F.outcome=_e;for(var Oe=-1,Ke=F.queue.length;++Oe<Ke;)F.queue[Oe].callFulfilled(_e)}return F},d.reject=function(F,_e){F.state=h,F.outcome=_e;for(var ue=-1,he=F.queue.length;++ue<he;)F.queue[ue].callRejected(_e);return F};function P(F){var _e=F&&F.then;if(F&&(typeof F=="object"||typeof F=="function")&&typeof _e=="function")return function(){_e.apply(F,arguments)}}function z(F,_e){var ue=!1;function he(Je){ue||(ue=!0,d.reject(F,Je))}function Oe(Je){ue||(ue=!0,d.resolve(F,Je))}function Ke(){_e(Oe,he)}var He=re(Ke);He.status==="error"&&he(He.value)}function re(F,_e){var ue={};try{ue.value=F(_e),ue.status="success"}catch(he){ue.status="error",ue.value=he}return ue}b.resolve=q;function q(F){return F instanceof this?F:d.resolve(new this(u),F)}b.reject=ie;function ie(F){var _e=new this(u);return d.reject(_e,F)}b.all=Ae;function Ae(F){var _e=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ue=F.length,he=!1;if(!ue)return this.resolve([]);for(var Oe=new Array(ue),Ke=0,He=-1,Je=new this(u);++He<ue;)st(F[He],He);return Je;function st(ke,O){_e.resolve(ke).then(D,function(y){he||(he=!0,d.reject(Je,y))});function D(y){Oe[O]=y,++Ke===ue&&!he&&(he=!0,d.resolve(Je,Oe))}}}b.race=Me;function Me(F){var _e=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ue=F.length,he=!1;if(!ue)return this.resolve([]);for(var Oe=-1,Ke=new this(u);++Oe<ue;)He(F[Oe]);return Ke;function He(Je){_e.resolve(Je).then(function(st){he||(he=!0,d.resolve(Ke,st))},function(st){he||(he=!0,d.reject(Ke,st))})}}},{1:1}],3:[function(o,s,a){(function(l){"use strict";typeof l.Promise!="function"&&(l.Promise=o(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(o,s,a){"use strict";var l=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 u(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function d(){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=d();function _(){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),w=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!g||w)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function m(g,w){g=g||[],w=w||{};try{return new Blob(g,w)}catch(T){if(T.name!=="TypeError")throw T;for(var x=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,I=new x,C=0;C<g.length;C+=1)I.append(g[C]);return I.getBlob(w.type)}}typeof Promise>"u"&&o(3);var b=Promise;function S(g,w){w&&g.then(function(x){w(null,x)},function(x){w(x)})}function N(g,w,x){typeof w=="function"&&g.then(w),typeof x=="function"&&g.catch(x)}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 z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var re="local-forage-detect-blob-support",q=void 0,ie={},Ae=Object.prototype.toString,Me="readonly",F="readwrite";function _e(g){for(var w=g.length,x=new ArrayBuffer(w),I=new Uint8Array(x),C=0;C<w;C++)I[C]=g.charCodeAt(C);return x}function ue(g){return new b(function(w){var x=g.transaction(re,F),I=m([""]);x.objectStore(re).put(I,"key"),x.onabort=function(C){C.preventDefault(),C.stopPropagation(),w(!1)},x.oncomplete=function(){var C=navigator.userAgent.match(/Chrome\/(\d+)/),T=navigator.userAgent.match(/Edge\//);w(T||!C||parseInt(C[1],10)>=43)}}).catch(function(){return!1})}function he(g){return typeof q=="boolean"?b.resolve(q):ue(g).then(function(w){return q=w,q})}function Oe(g){var w=ie[g.name],x={};x.promise=new b(function(I,C){x.resolve=I,x.reject=C}),w.deferredOperations.push(x),w.dbReady?w.dbReady=w.dbReady.then(function(){return x.promise}):w.dbReady=x.promise}function Ke(g){var w=ie[g.name],x=w.deferredOperations.pop();if(x)return x.resolve(),x.promise}function He(g,w){var x=ie[g.name],I=x.deferredOperations.pop();if(I)return I.reject(w),I.promise}function Je(g,w){return new b(function(x,I){if(ie[g.name]=ie[g.name]||te(),g.db)if(w)Oe(g),g.db.close();else return x(g.db);var C=[g.name];w&&C.push(g.version);var T=h.open.apply(h,C);w&&(T.onupgradeneeded=function(L){var j=T.result;try{j.createObjectStore(g.storeName),L.oldVersion<=1&&j.createObjectStore(re)}catch($){if($.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 $}}),T.onerror=function(L){L.preventDefault(),I(T.error)},T.onsuccess=function(){var L=T.result;L.onversionchange=function(j){j.target.close()},x(L),Ke(g)}})}function st(g){return Je(g,!1)}function ke(g){return Je(g,!0)}function O(g,w){if(!g.db)return!0;var x=!g.db.objectStoreNames.contains(g.storeName),I=g.version<g.db.version,C=g.version>g.db.version;if(I&&(g.version!==w&&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||x){if(x){var T=g.db.version+1;T>g.version&&(g.version=T)}return!0}return!1}function D(g){return new b(function(w,x){var I=new FileReader;I.onerror=x,I.onloadend=function(C){var T=btoa(C.target.result||"");w({__local_forage_encoded_blob:!0,data:T,type:g.type})},I.readAsBinaryString(g)})}function y(g){var w=_e(atob(g.data));return m([w],{type:g.type})}function v(g){return g&&g.__local_forage_encoded_blob}function M(g){var w=this,x=w._initReady().then(function(){var I=ie[w._dbInfo.name];if(I&&I.dbReady)return I.dbReady});return N(x,g,g),x}function B(g){Oe(g);for(var w=ie[g.name],x=w.forages,I=0;I<x.length;I++){var C=x[I];C._dbInfo.db&&(C._dbInfo.db.close(),C._dbInfo.db=null)}return g.db=null,st(g).then(function(T){return g.db=T,O(g)?ke(g):T}).then(function(T){g.db=w.db=T;for(var L=0;L<x.length;L++)x[L]._dbInfo.db=T}).catch(function(T){throw He(g,T),T})}function W(g,w,x,I){I===void 0&&(I=1);try{var C=g.db.transaction(g.storeName,w);x(null,C)}catch(T){if(I>0&&(!g.db||T.name==="InvalidStateError"||T.name==="NotFoundError"))return b.resolve().then(function(){if(!g.db||T.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),ke(g)}).then(function(){return B(g).then(function(){W(g,w,x,I-1)})}).catch(x);x(T)}}function te(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ee(g){var w=this,x={db:null};if(g)for(var I in g)x[I]=g[I];var C=ie[x.name];C||(C=te(),ie[x.name]=C),C.forages.push(w),w._initReady||(w._initReady=w.ready,w.ready=M);var T=[];function L(){return b.resolve()}for(var j=0;j<C.forages.length;j++){var $=C.forages[j];$!==w&&T.push($._initReady().catch(L))}var H=C.forages.slice(0);return b.all(T).then(function(){return x.db=C.db,st(x)}).then(function(U){return x.db=U,O(x,w._defaultConfig.version)?ke(x):U}).then(function(U){x.db=C.db=U,w._dbInfo=x;for(var ae=0;ae<H.length;ae++){var Ce=H[ae];Ce!==w&&(Ce._dbInfo.db=x.db,Ce._dbInfo.version=x.version)}})}function K(g,w){var x=this;g=P(g);var I=new b(function(C,T){x.ready().then(function(){W(x._dbInfo,Me,function(L,j){if(L)return T(L);try{var $=j.objectStore(x._dbInfo.storeName),H=$.get(g);H.onsuccess=function(){var U=H.result;U===void 0&&(U=null),v(U)&&(U=y(U)),C(U)},H.onerror=function(){T(H.error)}}catch(U){T(U)}})}).catch(T)});return S(I,w),I}function le(g,w){var x=this,I=new b(function(C,T){x.ready().then(function(){W(x._dbInfo,Me,function(L,j){if(L)return T(L);try{var $=j.objectStore(x._dbInfo.storeName),H=$.openCursor(),U=1;H.onsuccess=function(){var ae=H.result;if(ae){var Ce=ae.value;v(Ce)&&(Ce=y(Ce));var qe=g(Ce,ae.key,U++);qe!==void 0?C(qe):ae.continue()}else C()},H.onerror=function(){T(H.error)}}catch(ae){T(ae)}})}).catch(T)});return S(I,w),I}function pe(g,w,x){var I=this;g=P(g);var C=new b(function(T,L){var j;I.ready().then(function(){return j=I._dbInfo,Ae.call(w)==="[object Blob]"?he(j.db).then(function($){return $?w:D(w)}):w}).then(function($){W(I._dbInfo,F,function(H,U){if(H)return L(H);try{var ae=U.objectStore(I._dbInfo.storeName);$===null&&($=void 0);var Ce=ae.put($,g);U.oncomplete=function(){$===void 0&&($=null),T($)},U.onabort=U.onerror=function(){var qe=Ce.error?Ce.error:Ce.transaction.error;L(qe)}}catch(qe){L(qe)}})}).catch(L)});return S(C,x),C}function xe(g,w){var x=this;g=P(g);var I=new b(function(C,T){x.ready().then(function(){W(x._dbInfo,F,function(L,j){if(L)return T(L);try{var $=j.objectStore(x._dbInfo.storeName),H=$.delete(g);j.oncomplete=function(){C()},j.onerror=function(){T(H.error)},j.onabort=function(){var U=H.error?H.error:H.transaction.error;T(U)}}catch(U){T(U)}})}).catch(T)});return S(I,w),I}function J(g){var w=this,x=new b(function(I,C){w.ready().then(function(){W(w._dbInfo,F,function(T,L){if(T)return C(T);try{var j=L.objectStore(w._dbInfo.storeName),$=j.clear();L.oncomplete=function(){I()},L.onabort=L.onerror=function(){var H=$.error?$.error:$.transaction.error;C(H)}}catch(H){C(H)}})}).catch(C)});return S(x,g),x}function oe(g){var w=this,x=new b(function(I,C){w.ready().then(function(){W(w._dbInfo,Me,function(T,L){if(T)return C(T);try{var j=L.objectStore(w._dbInfo.storeName),$=j.count();$.onsuccess=function(){I($.result)},$.onerror=function(){C($.error)}}catch(H){C(H)}})}).catch(C)});return S(x,g),x}function me(g,w){var x=this,I=new b(function(C,T){if(g<0){C(null);return}x.ready().then(function(){W(x._dbInfo,Me,function(L,j){if(L)return T(L);try{var $=j.objectStore(x._dbInfo.storeName),H=!1,U=$.openKeyCursor();U.onsuccess=function(){var ae=U.result;if(!ae){C(null);return}g===0||H?C(ae.key):(H=!0,ae.advance(g))},U.onerror=function(){T(U.error)}}catch(ae){T(ae)}})}).catch(T)});return S(I,w),I}function ce(g){var w=this,x=new b(function(I,C){w.ready().then(function(){W(w._dbInfo,Me,function(T,L){if(T)return C(T);try{var j=L.objectStore(w._dbInfo.storeName),$=j.openKeyCursor(),H=[];$.onsuccess=function(){var U=$.result;if(!U){I(H);return}H.push(U.key),U.continue()},$.onerror=function(){C($.error)}}catch(U){C(U)}})}).catch(C)});return S(x,g),x}function c(g,w){w=z.apply(this,arguments);var x=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||x.name,g.storeName=g.storeName||x.storeName);var I=this,C;if(!g.name)C=b.reject("Invalid arguments");else{var T=g.name===x.name&&I._dbInfo.db,L=T?b.resolve(I._dbInfo.db):st(g).then(function(j){var $=ie[g.name],H=$.forages;$.db=j;for(var U=0;U<H.length;U++)H[U]._dbInfo.db=j;return j});g.storeName?C=L.then(function(j){if(j.objectStoreNames.contains(g.storeName)){var $=j.version+1;Oe(g);var H=ie[g.name],U=H.forages;j.close();for(var ae=0;ae<U.length;ae++){var Ce=U[ae];Ce._dbInfo.db=null,Ce._dbInfo.version=$}var qe=new b(function($e,gt){var it=h.open(g.name,$);it.onerror=function(Jt){var xl=it.result;xl.close(),gt(Jt)},it.onupgradeneeded=function(){var Jt=it.result;Jt.deleteObjectStore(g.storeName)},it.onsuccess=function(){var Jt=it.result;Jt.close(),$e(Jt)}});return qe.then(function($e){H.db=$e;for(var gt=0;gt<U.length;gt++){var it=U[gt];it._dbInfo.db=$e,Ke(it._dbInfo)}}).catch(function($e){throw(He(g,$e)||b.resolve()).catch(function(){}),$e})}}):C=L.then(function(j){Oe(g);var $=ie[g.name],H=$.forages;j.close();for(var U=0;U<H.length;U++){var ae=H[U];ae._dbInfo.db=null}var Ce=new b(function(qe,$e){var gt=h.deleteDatabase(g.name);gt.onerror=function(){var it=gt.result;it&&it.close(),$e(gt.error)},gt.onblocked=function(){console.warn('dropInstance blocked for database "'+g.name+'" until all open connections are closed')},gt.onsuccess=function(){var it=gt.result;it&&it.close(),qe(it)}});return Ce.then(function(qe){$.db=qe;for(var $e=0;$e<H.length;$e++){var gt=H[$e];Ke(gt._dbInfo)}}).catch(function(qe){throw(He(g,qe)||b.resolve()).catch(function(){}),qe})})}return S(C,w),C}var f={_driver:"asyncStorage",_initStorage:ee,_support:_(),iterate:le,getItem:K,setItem:pe,removeItem:xe,clear:J,length:oe,key:me,keys:ce,dropInstance:c};function p(){return typeof openDatabase=="function"}var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="~~local_forage_type~",V=/^~~local_forage_type~([^~]+)~/,X="__lfsc__:",ne=X.length,Le="arbf",Se="blob",Ve="si08",Re="ui08",xt="uic8",Fn="si16",dt="si32",un="ur16",On="ui32",ir="fl32",zt="fl64",hn=ne+Le.length,Gd=Object.prototype.toString;function Yd(g){var w=g.length*.75,x=g.length,I,C=0,T,L,j,$;g[g.length-1]==="="&&(w--,g[g.length-2]==="="&&w--);var H=new ArrayBuffer(w),U=new Uint8Array(H);for(I=0;I<x;I+=4)T=E.indexOf(g[I]),L=E.indexOf(g[I+1]),j=E.indexOf(g[I+2]),$=E.indexOf(g[I+3]),U[C++]=T<<2|L>>4,U[C++]=(L&15)<<4|j>>2,U[C++]=(j&3)<<6|$&63;return H}function vl(g){var w=new Uint8Array(g),x="",I;for(I=0;I<w.length;I+=3)x+=E[w[I]>>2],x+=E[(w[I]&3)<<4|w[I+1]>>4],x+=E[(w[I+1]&15)<<2|w[I+2]>>6],x+=E[w[I+2]&63];return w.length%3===2?x=x.substring(0,x.length-1)+"=":w.length%3===1&&(x=x.substring(0,x.length-2)+"=="),x}function Fb(g,w){var x="";if(g&&(x=Gd.call(g)),g&&(x==="[object ArrayBuffer]"||g.buffer&&Gd.call(g.buffer)==="[object ArrayBuffer]")){var I,C=X;g instanceof ArrayBuffer?(I=g,C+=Le):(I=g.buffer,x==="[object Int8Array]"?C+=Ve:x==="[object Uint8Array]"?C+=Re:x==="[object Uint8ClampedArray]"?C+=xt:x==="[object Int16Array]"?C+=Fn:x==="[object Uint16Array]"?C+=un:x==="[object Int32Array]"?C+=dt:x==="[object Uint32Array]"?C+=On:x==="[object Float32Array]"?C+=ir:x==="[object Float64Array]"?C+=zt:w(new Error("Failed to get type for BinaryArray"))),w(C+vl(I))}else if(x==="[object Blob]"){var T=new FileReader;T.onload=function(){var L=k+g.type+"~"+vl(this.result);w(X+Se+L)},T.readAsArrayBuffer(g)}else try{w(JSON.stringify(g))}catch(L){console.error("Couldn't convert value into a JSON string: ",g),w(null,L)}}function Bb(g){if(g.substring(0,ne)!==X)return JSON.parse(g);var w=g.substring(hn),x=g.substring(ne,hn),I;if(x===Se&&V.test(w)){var C=w.match(V);I=C[1],w=w.substring(C[0].length)}var T=Yd(w);switch(x){case Le:return T;case Se:return m([T],{type:I});case Ve:return new Int8Array(T);case Re:return new Uint8Array(T);case xt:return new Uint8ClampedArray(T);case Fn:return new Int16Array(T);case un:return new Uint16Array(T);case dt:return new Int32Array(T);case On:return new Uint32Array(T);case ir:return new Float32Array(T);case zt:return new Float64Array(T);default:throw new Error("Unkown type: "+x)}}var yl={serialize:Fb,deserialize:Bb,stringToBuffer:Yd,bufferToString:vl};function Kd(g,w,x,I){g.executeSql("CREATE TABLE IF NOT EXISTS "+w.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],x,I)}function Ub(g){var w=this,x={db:null};if(g)for(var I in g)x[I]=typeof g[I]!="string"?g[I].toString():g[I];var C=new b(function(T,L){try{x.db=openDatabase(x.name,String(x.version),x.description,x.size)}catch(j){return L(j)}x.db.transaction(function(j){Kd(j,x,function(){w._dbInfo=x,T()},function($,H){L(H)})},L)});return x.serializer=yl,C}function or(g,w,x,I,C,T){g.executeSql(x,I,C,function(L,j){j.code===j.SYNTAX_ERR?L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[w.storeName],function($,H){H.rows.length?T($,j):Kd($,w,function(){$.executeSql(x,I,C,T)},T)},T):T(L,j)},T)}function Hb(g,w){var x=this;g=P(g);var I=new b(function(C,T){x.ready().then(function(){var L=x._dbInfo;L.db.transaction(function(j){or(j,L,"SELECT * FROM "+L.storeName+" WHERE key = ? LIMIT 1",[g],function($,H){var U=H.rows.length?H.rows.item(0).value:null;U&&(U=L.serializer.deserialize(U)),C(U)},function($,H){T(H)})})}).catch(T)});return S(I,w),I}function $b(g,w){var x=this,I=new b(function(C,T){x.ready().then(function(){var L=x._dbInfo;L.db.transaction(function(j){or(j,L,"SELECT * FROM "+L.storeName,[],function($,H){for(var U=H.rows,ae=U.length,Ce=0;Ce<ae;Ce++){var qe=U.item(Ce),$e=qe.value;if($e&&($e=L.serializer.deserialize($e)),$e=g($e,qe.key,Ce+1),$e!==void 0){C($e);return}}C()},function($,H){T(H)})})}).catch(T)});return S(I,w),I}function Jd(g,w,x,I){var C=this;g=P(g);var T=new b(function(L,j){C.ready().then(function(){w===void 0&&(w=null);var $=w,H=C._dbInfo;H.serializer.serialize(w,function(U,ae){ae?j(ae):H.db.transaction(function(Ce){or(Ce,H,"INSERT OR REPLACE INTO "+H.storeName+" (key, value) VALUES (?, ?)",[g,U],function(){L($)},function(qe,$e){j($e)})},function(Ce){if(Ce.code===Ce.QUOTA_ERR){if(I>0){L(Jd.apply(C,[g,$,x,I-1]));return}j(Ce)}})})}).catch(j)});return S(T,x),T}function zb(g,w,x){return Jd.apply(this,[g,w,x,1])}function qb(g,w){var x=this;g=P(g);var I=new b(function(C,T){x.ready().then(function(){var L=x._dbInfo;L.db.transaction(function(j){or(j,L,"DELETE FROM "+L.storeName+" WHERE key = ?",[g],function(){C()},function($,H){T(H)})})}).catch(T)});return S(I,w),I}function Wb(g){var w=this,x=new b(function(I,C){w.ready().then(function(){var T=w._dbInfo;T.db.transaction(function(L){or(L,T,"DELETE FROM "+T.storeName,[],function(){I()},function(j,$){C($)})})}).catch(C)});return S(x,g),x}function Zb(g){var w=this,x=new b(function(I,C){w.ready().then(function(){var T=w._dbInfo;T.db.transaction(function(L){or(L,T,"SELECT COUNT(key) as c FROM "+T.storeName,[],function(j,$){var H=$.rows.item(0).c;I(H)},function(j,$){C($)})})}).catch(C)});return S(x,g),x}function Gb(g,w){var x=this,I=new b(function(C,T){x.ready().then(function(){var L=x._dbInfo;L.db.transaction(function(j){or(j,L,"SELECT key FROM "+L.storeName+" WHERE id = ? LIMIT 1",[g+1],function($,H){var U=H.rows.length?H.rows.item(0).key:null;C(U)},function($,H){T(H)})})}).catch(T)});return S(I,w),I}function Yb(g){var w=this,x=new b(function(I,C){w.ready().then(function(){var T=w._dbInfo;T.db.transaction(function(L){or(L,T,"SELECT key FROM "+T.storeName,[],function(j,$){for(var H=[],U=0;U<$.rows.length;U++)H.push($.rows.item(U).key);I(H)},function(j,$){C($)})})}).catch(C)});return S(x,g),x}function Kb(g){return new b(function(w,x){g.transaction(function(I){I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(C,T){for(var L=[],j=0;j<T.rows.length;j++)L.push(T.rows.item(j).name);w({db:g,storeNames:L})},function(C,T){x(T)})},function(I){x(I)})})}function Jb(g,w){w=z.apply(this,arguments);var x=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||x.name,g.storeName=g.storeName||x.storeName);var I=this,C;return g.name?C=new b(function(T){var L;g.name===x.name?L=I._dbInfo.db:L=openDatabase(g.name,"","",0),g.storeName?T({db:L,storeNames:[g.storeName]}):T(Kb(L))}).then(function(T){return new b(function(L,j){T.db.transaction(function($){function H(qe){return new b(function($e,gt){$.executeSql("DROP TABLE IF EXISTS "+qe,[],function(){$e()},function(it,Jt){gt(Jt)})})}for(var U=[],ae=0,Ce=T.storeNames.length;ae<Ce;ae++)U.push(H(T.storeNames[ae]));b.all(U).then(function(){L()}).catch(function(qe){j(qe)})},function($){j($)})})}):C=b.reject("Invalid arguments"),S(C,w),C}var Xb={_driver:"webSQLStorage",_initStorage:Ub,_support:p(),iterate:$b,getItem:Hb,setItem:zb,removeItem:qb,clear:Wb,length:Zb,key:Gb,keys:Yb,dropInstance:Jb};function Qb(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Xd(g,w){var x=g.name+"/";return g.storeName!==w.storeName&&(x+=g.storeName+"/"),x}function ew(){var g="_localforage_support_test";try{return localStorage.setItem(g,!0),localStorage.removeItem(g),!1}catch{return!0}}function tw(){return!ew()||localStorage.length>0}function nw(g){var w=this,x={};if(g)for(var I in g)x[I]=g[I];return x.keyPrefix=Xd(g,w._defaultConfig),tw()?(w._dbInfo=x,x.serializer=yl,b.resolve()):b.reject()}function rw(g){var w=this,x=w.ready().then(function(){for(var I=w._dbInfo.keyPrefix,C=localStorage.length-1;C>=0;C--){var T=localStorage.key(C);T.indexOf(I)===0&&localStorage.removeItem(T)}});return S(x,g),x}function iw(g,w){var x=this;g=P(g);var I=x.ready().then(function(){var C=x._dbInfo,T=localStorage.getItem(C.keyPrefix+g);return T&&(T=C.serializer.deserialize(T)),T});return S(I,w),I}function ow(g,w){var x=this,I=x.ready().then(function(){for(var C=x._dbInfo,T=C.keyPrefix,L=T.length,j=localStorage.length,$=1,H=0;H<j;H++){var U=localStorage.key(H);if(U.indexOf(T)===0){var ae=localStorage.getItem(U);if(ae&&(ae=C.serializer.deserialize(ae)),ae=g(ae,U.substring(L),$++),ae!==void 0)return ae}}});return S(I,w),I}function sw(g,w){var x=this,I=x.ready().then(function(){var C=x._dbInfo,T;try{T=localStorage.key(g)}catch{T=null}return T&&(T=T.substring(C.keyPrefix.length)),T});return S(I,w),I}function aw(g){var w=this,x=w.ready().then(function(){for(var I=w._dbInfo,C=localStorage.length,T=[],L=0;L<C;L++){var j=localStorage.key(L);j.indexOf(I.keyPrefix)===0&&T.push(j.substring(I.keyPrefix.length))}return T});return S(x,g),x}function lw(g){var w=this,x=w.keys().then(function(I){return I.length});return S(x,g),x}function cw(g,w){var x=this;g=P(g);var I=x.ready().then(function(){var C=x._dbInfo;localStorage.removeItem(C.keyPrefix+g)});return S(I,w),I}function uw(g,w,x){var I=this;g=P(g);var C=I.ready().then(function(){w===void 0&&(w=null);var T=w;return new b(function(L,j){var $=I._dbInfo;$.serializer.serialize(w,function(H,U){if(U)j(U);else try{localStorage.setItem($.keyPrefix+g,H),L(T)}catch(ae){(ae.name==="QuotaExceededError"||ae.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(ae),j(ae)}})})});return S(C,x),C}function hw(g,w){if(w=z.apply(this,arguments),g=typeof g!="function"&&g||{},!g.name){var x=this.config();g.name=g.name||x.name,g.storeName=g.storeName||x.storeName}var I=this,C;return g.name?C=new b(function(T){g.storeName?T(Xd(g,I._defaultConfig)):T(g.name+"/")}).then(function(T){for(var L=localStorage.length-1;L>=0;L--){var j=localStorage.key(L);j.indexOf(T)===0&&localStorage.removeItem(j)}}):C=b.reject("Invalid arguments"),S(C,w),C}var dw={_driver:"localStorageWrapper",_initStorage:nw,_support:Qb(),iterate:ow,getItem:iw,setItem:uw,removeItem:cw,clear:rw,length:lw,key:sw,keys:aw,dropInstance:hw},fw=function(g,w){return g===w||typeof g=="number"&&typeof w=="number"&&isNaN(g)&&isNaN(w)},pw=function(g,w){for(var x=g.length,I=0;I<x;){if(fw(g[I],w))return!0;I++}return!1},Qd=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"},zi={},ef={},ii={INDEXEDDB:f,WEBSQL:Xb,LOCALSTORAGE:dw},gw=[ii.INDEXEDDB._driver,ii.WEBSQL._driver,ii.LOCALSTORAGE._driver],is=["dropInstance"],bl=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(is),mw={description:"",driver:gw.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function _w(g,w){g[w]=function(){var x=arguments;return g.ready().then(function(){return g[w].apply(g,x)})}}function wl(){for(var g=1;g<arguments.length;g++){var w=arguments[g];if(w)for(var x in w)w.hasOwnProperty(x)&&(Qd(w[x])?arguments[0][x]=w[x].slice():arguments[0][x]=w[x])}return arguments[0]}var vw=function(){function g(w){u(this,g);for(var x in ii)if(ii.hasOwnProperty(x)){var I=ii[x],C=I._driver;this[x]=C,zi[C]||this.defineDriver(I)}this._defaultConfig=wl({},mw),this._config=wl({},this._defaultConfig,w),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(w){if((typeof w>"u"?"undefined":l(w))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var x in w){if(x==="storeName"&&(w[x]=w[x].replace(/\W/g,"_")),x==="version"&&typeof w[x]!="number")return new Error("Database version must be a number.");this._config[x]=w[x]}return"driver"in w&&w.driver?this.setDriver(this._config.driver):!0}else return typeof w=="string"?this._config[w]:this._config},g.prototype.defineDriver=function(w,x,I){var C=new b(function(T,L){try{var j=w._driver,$=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!w._driver){L($);return}for(var H=bl.concat("_initStorage"),U=0,ae=H.length;U<ae;U++){var Ce=H[U],qe=!pw(is,Ce);if((qe||w[Ce])&&typeof w[Ce]!="function"){L($);return}}var $e=function(){for(var it=function(bw){return function(){var ww=new Error("Method "+bw+" is not implemented by the current driver"),tf=b.reject(ww);return S(tf,arguments[arguments.length-1]),tf}},Jt=0,xl=is.length;Jt<xl;Jt++){var El=is[Jt];w[El]||(w[El]=it(El))}};$e();var gt=function(it){zi[j]&&console.info("Redefining LocalForage driver: "+j),zi[j]=w,ef[j]=it,T()};"_support"in w?w._support&&typeof w._support=="function"?w._support().then(gt,L):gt(!!w._support):gt(!0)}catch(it){L(it)}});return N(C,x,I),C},g.prototype.driver=function(){return this._driver||null},g.prototype.getDriver=function(w,x,I){var C=zi[w]?b.resolve(zi[w]):b.reject(new Error("Driver not found."));return N(C,x,I),C},g.prototype.getSerializer=function(w){var x=b.resolve(yl);return N(x,w),x},g.prototype.ready=function(w){var x=this,I=x._driverSet.then(function(){return x._ready===null&&(x._ready=x._initDriver()),x._ready});return N(I,w,w),I},g.prototype.setDriver=function(w,x,I){var C=this;Qd(w)||(w=[w]);var T=this._getSupportedDrivers(w);function L(){C._config.driver=C.driver()}function j(U){return C._extend(U),L(),C._ready=C._initStorage(C._config),C._ready}function $(U){return function(){var ae=0;function Ce(){for(;ae<U.length;){var qe=U[ae];return ae++,C._dbInfo=null,C._ready=null,C.getDriver(qe).then(j).catch(Ce)}L();var $e=new Error("No available storage method found.");return C._driverSet=b.reject($e),C._driverSet}return Ce()}}var H=this._driverSet!==null?this._driverSet.catch(function(){return b.resolve()}):b.resolve();return this._driverSet=H.then(function(){var U=T[0];return C._dbInfo=null,C._ready=null,C.getDriver(U).then(function(ae){C._driver=ae._driver,L(),C._wrapLibraryMethodsWithReady(),C._initDriver=$(T)})}).catch(function(){L();var U=new Error("No available storage method found.");return C._driverSet=b.reject(U),C._driverSet}),N(this._driverSet,x,I),this._driverSet},g.prototype.supports=function(w){return!!ef[w]},g.prototype._extend=function(w){wl(this,w)},g.prototype._getSupportedDrivers=function(w){for(var x=[],I=0,C=w.length;I<C;I++){var T=w[I];this.supports(T)&&x.push(T)}return x},g.prototype._wrapLibraryMethodsWithReady=function(){for(var w=0,x=bl.length;w<x;w++)_w(this,bl[w])},g.prototype.createInstance=function(w){return new g(w)},g}(),yw=new vw;s.exports=yw},{3:3}]},{},[4])(4)})});function nm(e,t){return Object.is(e,t)}var vt=null,to=!1,Ju=1,nn=Symbol("SIGNAL");function Ie(e){let t=vt;return vt=e,t}function Fw(){return vt}function Bw(){return to}var Ri={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Xu(e){if(to)throw new Error("");if(vt===null)return;vt.consumerOnSignalRead(e);let t=vt.nextProducerIndex++;if(Oa(vt),t<vt.producerNode.length&&vt.producerNode[t]!==e&&uo(vt)){let n=vt.producerNode[t];Da(n,vt.producerIndexOfThis[t])}vt.producerNode[t]!==e&&(vt.producerNode[t]=e,vt.producerIndexOfThis[t]=uo(vt)?am(e,vt,t):0),vt.producerLastReadVersion[t]=e.version}function Uw(){Ju++}function rm(e){if(!(uo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ju)){if(!e.producerMustRecompute(e)&&!Ta(e)){sf(e);return}e.producerRecomputeValue(e),sf(e)}}function im(e){if(e.liveConsumerNode===void 0)return;let t=to;to=!0;try{for(let n of e.liveConsumerNode)n.dirty||sm(n)}finally{to=t}}function om(){return vt?.consumerAllowSignalWrites!==!1}function sm(e){e.dirty=!0,im(e),e.consumerMarkedDirty?.(e)}function sf(e){e.dirty=!1,e.lastCleanEpoch=Ju}function co(e){return e&&(e.nextProducerIndex=0),Ie(e)}function Ia(e,t){if(Ie(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(uo(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Da(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ta(e){Oa(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(rm(n),r!==n.version))return!0}return!1}function Ro(e){if(Oa(e),uo(e))for(let t=0;t<e.producerNode.length;t++)Da(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function am(e,t,n){if(lm(e),e.liveConsumerNode.length===0&&cm(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=am(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Da(e,t){if(lm(e),e.liveConsumerNode.length===1&&cm(e))for(let r=0;r<e.producerNode.length;r++)Da(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];Oa(i),i.producerIndexOfThis[r]=t}}function uo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Oa(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function lm(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function cm(e){return e.producerNode!==void 0}function Hw(e){let t=Object.create($w);t.computation=e;let n=()=>{if(rm(t),Xu(t),t.value===Cs)throw t.error;return t.value};return n[nn]=t,n}var Sl=Symbol("UNSET"),Cl=Symbol("COMPUTING"),Cs=Symbol("ERRORED"),$w=Ne(A({},Ri),{value:Sl,dirty:!0,error:null,equal:nm,kind:"computed",producerMustRecompute(e){return e.value===Sl||e.value===Cl},producerRecomputeValue(e){if(e.value===Cl)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Cl;let n=co(e),r,i=!1;try{r=e.computation(),Ie(null),i=t!==Sl&&t!==Cs&&r!==Cs&&e.equal(t,r)}catch(o){r=Cs,e.error=o}finally{Ia(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function zw(){throw new Error}var um=zw;function hm(e){um(e)}function qw(e){um=e}var Ww=null;function Zw(e){let t=Object.create(dm);t.value=e;let n=()=>(Xu(t),t.value);return n[nn]=t,n}function Qu(e,t){om()||hm(e),e.equal(e.value,t)||(e.value=t,Yw(e))}function Gw(e,t){om()||hm(e),Qu(e,t(e.value))}var dm=Ne(A({},Ri),{equal:nm,value:void 0,kind:"signal"});function Yw(e){e.version++,Uw(),im(e),Ww?.()}function Kw(e,t,n){let r=Object.create(Jw);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let i=l=>{r.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(Ro(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=pc)}let a=()=>{if(r.fn===null)return;if(Bw())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Ta(r))return;r.hasRun=!0;let l=co(r);try{r.cleanupFn(),r.cleanupFn=pc,r.fn(i)}finally{Ia(r,l)}};return r.ref={notify:()=>sm(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[nn]:r},r.ref}var pc=()=>{},Jw=Ne(A({},Ri),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:pc});function Ze(e){return typeof e=="function"}function fm(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Il=fm(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
|
|
11
11
|
${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
12
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function $s(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var bt=class mc{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(Ze(r))try{r()}catch(o){t=o instanceof Il?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{cf(o)}catch(s){t=t??[],s instanceof Il?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Il(t)}}add(t){var n;if(t&&t!==this)if(this.closed)cf(t);else{if(t instanceof mc){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&$s(n,t)}remove(t){let{_finalizers:n}=this;n&&$s(n,t),t instanceof mc&&t._removeParent(this)}};bt.EMPTY=(()=>{let e=new bt;return e.closed=!0,e})();var v_=bt.EMPTY;function y_(e){return e instanceof bt||e&&"closed"in e&&Ze(e.remove)&&Ze(e.add)&&Ze(e.unsubscribe)}function cf(e){Ze(e)?e():e.unsubscribe()}var Kr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zs={setTimeout(e,t,...n){let{delegate:r}=zs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=zs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function b_(e){zs.setTimeout(()=>{let{onUnhandledError:t}=Kr;if(t)t(e);else throw e})}function vc(){}var o1=th("C",void 0,void 0);function s1(e){return th("E",void 0,e)}function a1(e){return th("N",e,void 0)}function th(e,t,n){return{kind:e,value:t,error:n}}var Dr=null;function Ds(e){if(Kr.useDeprecatedSynchronousErrorHandling){let t=!Dr;if(t&&(Dr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Dr;if(Dr=null,n)throw r}}else e()}function l1(e){Kr.useDeprecatedSynchronousErrorHandling&&Dr&&(Dr.errorThrown=!0,Dr.error=e)}var nh=class extends bt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,y_(e)&&e.add(this)):this.destination=d1}static create(e,t,n){return new yc(e,t,n)}next(e){this.isStopped?Ol(a1(e),this):this._next(e)}error(e){this.isStopped?Ol(s1(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ol(o1,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},c1=Function.prototype.bind;function Tl(e,t){return c1.call(e,t)}var u1=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){ls(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){ls(n)}else ls(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){ls(t)}}},yc=class extends nh{constructor(e,t,n){super();let r;if(Ze(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&Kr.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Tl(e.next,i),error:e.error&&Tl(e.error,i),complete:e.complete&&Tl(e.complete,i)}):r=e}this.destination=new u1(r)}};function ls(e){Kr.useDeprecatedSynchronousErrorHandling?l1(e):b_(e)}function h1(e){throw e}function Ol(e,t){let{onStoppedNotification:n}=Kr;n&&zs.setTimeout(()=>n(e,t))}var d1={closed:!0,next:vc,error:h1,complete:vc},rh=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ka(e){return e}function f1(e){return e.length===0?ka:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var Et=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=g1(n)?n:new yc(n,r,i);return Ds(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=uf(r),new r((i,o)=>{let s=new yc({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[rh](){return this}pipe(...n){return f1(n)(this)}toPromise(n){return n=uf(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function uf(e){var t;return(t=e??Kr.Promise)!==null&&t!==void 0?t:Promise}function p1(e){return e&&Ze(e.next)&&Ze(e.error)&&Ze(e.complete)}function g1(e){return e&&e instanceof nh||p1(e)&&y_(e)}function _1(e){return Ze(e?.lift)}function ln(e){return t=>{if(_1(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Gt(e,t,n,r,i){return new m1(e,t,n,r,i)}var m1=class extends nh{constructor(e,t,n,r,i,o){super(e),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(a){e.error(a)}}:super._next,this._error=r?function(s){try{r(s)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},io={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=io;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=t(o=>{n=void 0,e(o)});return new bt(()=>n?.(i))},requestAnimationFrame(...e){let{delegate:t}=io;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=io;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0},v1=m_(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),ye=(()=>{class e extends Et{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new hf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new v1}next(n){Ds(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ds(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ds(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?v_:(this.currentObservers=null,o.push(n),new bt(()=>{this.currentObservers=null,$s(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new Et;return n.source=this,n}}return e.create=(t,n)=>new hf(t,n),e})(),hf=class extends ye{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:v_}},ih=class extends ye{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},oh={now(){return(oh.delegate||Date).now()},delegate:void 0},y1=class extends ye{constructor(e=1/0,t=1/0,n=oh){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;t||(n.push(e),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let o=0;o<i.length&&!e.closed;o+=n?1:2)e.next(i[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let o=t.now(),s=0;for(let a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}}},b1=class extends bt{constructor(e,t){super()}schedule(e,t=0){return this}},Ws={setInterval(e,t,...n){let{delegate:r}=Ws;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ws;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},w_=class extends b1{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;let r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return Ws.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&Ws.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r;try{this.work(e)}catch(i){n=!0,r=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,$s(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},bc=class E_{constructor(t,n=E_.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};bc.now=oh.now;var x_=class extends bc{constructor(e,t=bc.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},sh=new x_(w_),w1=sh,E1=class extends w_{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return n!==null&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=io.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);let{actions:i}=e;t!=null&&((r=i[i.length-1])===null||r===void 0?void 0:r.id)!==t&&(io.cancelAnimationFrame(t),e._scheduled=void 0)}},x1=class extends x_{flush(e){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:n}=this,r;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}},S1=new x1(E1),ah=new Et(e=>e.complete());function S_(e){return e&&Ze(e.schedule)}function C_(e){return e[e.length-1]}function Na(e){return S_(C_(e))?e.pop():void 0}function C1(e,t){return typeof C_(e)=="number"?e.pop():t}function I1(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(d){try{u(r.next(d))}catch(h){s(h)}}function l(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):i(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function df(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function fi(e){return this instanceof fi?(this.v=e,this):new fi(e)}function T1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(m){return function(w){return Promise.resolve(w).then(m,h)}}function a(m,w){r[m]&&(i[m]=function(C){return new Promise(function(A,P){o.push([m,C,A,P])>1||l(m,C)})},w&&(i[m]=w(i[m])))}function l(m,w){try{u(r[m](w))}catch(C){v(o[0][3],C)}}function u(m){m.value instanceof fi?Promise.resolve(m.value.v).then(d,h):v(o[0][2],m)}function d(m){l("next",m)}function h(m){l("throw",m)}function v(m,w){m(w),o.shift(),o.length&&l(o[0][0],o[0][1])}}function O1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof df=="function"?df(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}var lh=e=>e&&typeof e.length=="number"&&typeof e!="function";function I_(e){return Ze(e?.then)}function T_(e){return Ze(e[rh])}function O_(e){return Symbol.asyncIterator&&Ze(e?.[Symbol.asyncIterator])}function D_(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function D1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var R_=D1();function k_(e){return Ze(e?.[R_])}function N_(e){return T1(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield fi(t.read());if(r)return yield fi(void 0);yield yield fi(n)}}finally{t.releaseLock()}})}function P_(e){return Ze(e?.getReader)}function In(e){if(e instanceof Et)return e;if(e!=null){if(T_(e))return R1(e);if(lh(e))return k1(e);if(I_(e))return N1(e);if(O_(e))return A_(e);if(k_(e))return P1(e);if(P_(e))return A1(e)}throw D_(e)}function R1(e){return new Et(t=>{let n=e[rh]();if(Ze(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function k1(e){return new Et(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function N1(e){return new Et(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,b_)})}function P1(e){return new Et(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function A_(e){return new Et(t=>{L1(e,t).catch(n=>t.error(n))})}function A1(e){return A_(N_(e))}function L1(e,t){var n,r,i,o;return I1(this,void 0,void 0,function*(){try{for(n=O1(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function fr(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function L_(e,t=0){return ln((n,r)=>{n.subscribe(Gt(r,i=>fr(r,e,()=>r.next(i),t),()=>fr(r,e,()=>r.complete(),t),i=>fr(r,e,()=>r.error(i),t)))})}function M_(e,t=0){return ln((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function M1(e,t){return In(e).pipe(M_(t),L_(t))}function V1(e,t){return In(e).pipe(M_(t),L_(t))}function j1(e,t){return new Et(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function F1(e,t){return new Et(n=>{let r;return fr(n,t,()=>{r=e[R_](),fr(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>Ze(r?.return)&&r.return()})}function V_(e,t){if(!e)throw new Error("Iterable cannot be null");return new Et(n=>{fr(n,t,()=>{let r=e[Symbol.asyncIterator]();fr(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function B1(e,t){return V_(N_(e),t)}function U1(e,t){if(e!=null){if(T_(e))return M1(e,t);if(lh(e))return j1(e,t);if(I_(e))return V1(e,t);if(O_(e))return V_(e,t);if(k_(e))return F1(e,t);if(P_(e))return B1(e,t)}throw D_(e)}function Pa(e,t){return t?U1(e,t):In(e)}function ch(...e){let t=Na(e);return Pa(e,t)}function H1(e){return e instanceof Date&&!isNaN(e)}function Aa(e,t){return ln((n,r)=>{let i=0;n.subscribe(Gt(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:$1}=Array;function z1(e,t){return $1(t)?e(...t):e(t)}function W1(e){return Aa(t=>z1(e,t))}function q1(e,t,n,r,i,o,s,a){let l=[],u=0,d=0,h=!1,v=()=>{h&&!l.length&&!u&&t.complete()},m=C=>u<r?w(C):l.push(C),w=C=>{o&&t.next(C),u++;let A=!1;In(n(C,d++)).subscribe(Gt(t,P=>{i?.(P),o?m(P):t.next(P)},()=>{A=!0},void 0,()=>{if(A)try{for(u--;l.length&&u<r;){let P=l.shift();s?fr(t,s,()=>w(P)):w(P)}v()}catch(P){t.error(P)}}))};return e.subscribe(Gt(t,m,()=>{h=!0,v()})),()=>{a?.()}}function po(e,t,n=1/0){return Ze(t)?po((r,i)=>Aa((o,s)=>t(r,o,i,s))(In(e(r,i))),n):(typeof t=="number"&&(n=t),ln((r,i)=>q1(r,i,e,n)))}function j_(e=1/0){return po(ka,e)}function G1(){return j_(1)}function ff(...e){return G1()(Pa(e,Na(e)))}function Z1(e){return new Et(t=>{In(e()).subscribe(t)})}var Y1=["addListener","removeListener"],K1=["addEventListener","removeEventListener"],J1=["on","off"];function wc(e,t,n,r){if(Ze(n)&&(r=n,n=void 0),r)return wc(e,t,n).pipe(W1(r));let[i,o]=eE(e)?K1.map(s=>a=>e[s](t,a,n)):X1(e)?Y1.map(pf(e,t)):Q1(e)?J1.map(pf(e,t)):[];if(!i&&lh(e))return po(s=>wc(s,t,n))(In(e));if(!i)throw new TypeError("Invalid event target");return new Et(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return i(a),()=>o(a)})}function pf(e,t){return n=>r=>e[n](t,r)}function X1(e){return Ze(e.addListener)&&Ze(e.removeListener)}function Q1(e){return Ze(e.on)&&Ze(e.off)}function eE(e){return Ze(e.addEventListener)&&Ze(e.removeEventListener)}function F_(e=0,t,n=w1){let r=-1;return t!=null&&(S_(t)?n=t:r=t),new Et(i=>{let o=H1(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function tE(e=0,t=sh){return e<0&&(e=0),F_(e,e,t)}function La(...e){let t=Na(e),n=C1(e,1/0),r=e;return r.length?r.length===1?In(r[0]):j_(n)(Pa(r,t)):ah}function uh(e,t){return ln((n,r)=>{let i=0;n.subscribe(Gt(r,o=>e.call(t,o,i++)&&r.next(o)))})}function nE(e){return ln((t,n)=>{let r=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,r){r=!1;let u=i;i=null,n.next(u)}s&&n.complete()},l=()=>{o=null,s&&n.complete()};t.subscribe(Gt(n,u=>{r=!0,i=u,o||In(e(u)).subscribe(o=Gt(n,a,l))},()=>{s=!0,(!r||!o||o.closed)&&n.complete()}))})}function B_(e,t=sh){return nE(()=>F_(e,t))}function rE(e){return e<=0?()=>ah:ln((t,n)=>{let r=0;t.subscribe(Gt(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function iE(e,t=ka){return e=e??oE,ln((n,r)=>{let i,o=!0;n.subscribe(Gt(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function oE(e,t){return e===t}function sE(e){return uh((t,n)=>e<=n)}function U_(...e){let t=Na(e);return ln((n,r)=>{(t?ff(e,n,t):ff(e,n)).subscribe(r)})}function H_(e,t){return ln((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(Gt(r,l=>{i?.unsubscribe();let u=0,d=o++;In(e(l,d)).subscribe(i=Gt(r,h=>r.next(t?t(l,h,d,u++):h),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function yi(e){return ln((t,n)=>{In(e).subscribe(Gt(n,()=>n.complete(),vc)),!n.closed&&t.subscribe(n)})}function aE(e,t,n){let r=Ze(e)||t||n?{next:e,error:t,complete:n}:e;return r?ln((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(Gt(o,l=>{var u;(u=r.next)===null||u===void 0||u.call(r,l),o.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),o.complete()},l=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,l),o.error(l)},()=>{var l,u;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ka}var $_="https://g.co/ng/security#xss",Re=class extends Error{code;constructor(e,t){super(lE(e,t)),this.code=e}};function lE(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var z_=Symbol("InputSignalNode#UNSET"),cE=Le(L({},__),{transformFn:void 0,applyValueToInputSignal(e,t){eh(e,t)}});function W_(e,t){let n=Object.create(cE);n.value=e,n.transformFn=t?.transform;function r(){if(Qu(n),n.value===z_)throw new Re(-950,!1);return n.value}return r[nn]=n,r}function Lo(e){return{toString:e}.toString()}var cs="__parameters__";function uE(e){return function(...t){if(e){let n=e(...t);for(let r in n)this[r]=n[r]}}}function q_(e,t,n){return Lo(()=>{let r=uE(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(l,u,d){let h=l.hasOwnProperty(cs)?l[cs]:Object.defineProperty(l,cs,{value:[]})[cs];for(;h.length<=d;)h.push(null);return(h[d]=h[d]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var go=globalThis;function et(e){for(let t in e)if(e[t]===et)return t;throw Error("Could not find renamed property on target object.")}function hE(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function mn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(mn).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
13
|
-
`);return r>=0?n.slice(0,r):n}function
|
|
14
|
-
`+e.message,i,n,r),e[
|
|
15
|
-
`&&e.charAt(1)==
|
|
16
|
-
`)}`}var OE=tm(q_("Optional"),8),DE=tm(q_("SkipSelf"),4);function Lr(e,t){return e.hasOwnProperty(qs)?e[qs]:null}function RE(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function kE(e){return e.flat(Number.POSITIVE_INFINITY)}function ph(e,t){e.forEach(n=>Array.isArray(n)?ph(n,t):t(n))}function nm(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Zs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function NE(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function gh(e,t,n){let r=Vo(e,t);return r>=0?e[r|1]=n:(r=~r,NE(e,r,t,n)),r}function Dl(e,t){let n=Vo(e,t);if(n>=0)return e[n|1]}function Vo(e,t){return PE(e,t,1)}function PE(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var Mr={},Lt=[],Ys=new Se(""),rm=new Se("",-1),im=new Se(""),om=class{get(e,t=_o){if(t===_o){let n=new Error(`NullInjectorError: No provider for ${mn(e)}!`);throw n.name="NullInjectorError",n}return t}};function Vr(e){return e[gE]||null}function sm(e){return e[_E]||null}function am(e){return e[X_]||null}function AE(e){let t=Vr(e)||sm(e)||am(e);return t!==null&&t.standalone}function LE(e){return{\u0275providers:e}}function ME(...e){return{\u0275providers:lm(!0,e),\u0275fromNgModule:!0}}function lm(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return ph(t,s=>{let a=s;Ic(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&cm(i,o),n}function cm(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];_h(i,o=>{t(o,r)})}}function Ic(e,t,n,r){if(e=At(e),!e)return!1;let i=null,o=_f(e),s=!o&&Vr(e);if(!o&&!s){let l=e.ngModule;if(o=_f(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of l)Ic(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{ph(o.imports,d=>{Ic(d,t,n,r)&&(u||=[],u.push(d))})}finally{}u!==void 0&&cm(u,t)}if(!a){let u=Lr(i)||(()=>new i);t({provide:i,useFactory:u,deps:Lt},i),t({provide:im,useValue:i,multi:!0},i),t({provide:Ys,useValue:()=>Fe(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let u=e;_h(l,d=>{t(d,u)})}}else return!1;return i!==e&&e.providers!==void 0}function _h(e,t){for(let n of e)J_(n)&&(n=n.\u0275providers),Array.isArray(n)?_h(n,t):t(n)}var VE=et({provide:String,useValue:et});function um(e){return e!==null&&typeof e=="object"&&VE in e}function jE(e){return!!(e&&e.useExisting)}function FE(e){return!!(e&&e.useFactory)}function bi(e){return typeof e=="function"}function BE(e){return!!e.useClass}var mh=new Se(""),Rs={},UE={},Rl;function Va(){return Rl===void 0&&(Rl=new om),Rl}var Kn=class{},vh=class extends Kn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Oc(e,o=>this.processProvider(o)),this.records.set(rm,ai(void 0,this)),r.has("environment")&&this.records.set(Kn,ai(void 0,this));let i=this.records.get(mh);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(im,Lt,De.Self))}destroy(){Qi(this),this._destroyed=!0;let e=Oe(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Oe(e)}}onDestroy(e){return Qi(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Qi(this);let t=ar(this),n=Ut(void 0),r;try{return e()}finally{ar(t),Ut(n)}}get(e,t=_o,n=De.Default){if(Qi(this),e.hasOwnProperty(vf))return e[vf](this);n=Ma(n);let r,i=ar(this),o=Ut(void 0);try{if(!(n&De.SkipSelf)){let a=this.records.get(e);if(a===void 0){let l=qE(e)&&dh(e);l&&this.injectableDefInScope(l)?a=ai(Tc(e),Rs):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let s=n&De.Self?Va():this.parent;return t=n&De.Optional&&t===_o?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[Gs]=s[Gs]||[]).unshift(mn(e)),i)throw s;return IE(s,e,"R3InjectorError",this.source)}else throw s}finally{Ut(o),ar(i)}}resolveInjectorInitializers(){let e=Oe(null),t=ar(this),n=Ut(void 0),r;try{let i=this.get(Ys,Lt,De.Self);for(let o of i)o()}finally{ar(t),Ut(n),Oe(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(mn(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=At(e);let t=bi(e)?e:At(e&&e.provide),n=$E(e);if(!bi(e)&&e.multi===!0){let r=this.records.get(t);r||(r=ai(void 0,Rs,!0),r.factory=()=>Cc(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=Oe(null);try{return t.value===Rs&&(t.value=UE,t.value=t.factory()),typeof t.value=="object"&&t.value&&WE(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{Oe(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=At(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Tc(e){let t=dh(e),n=t!==null?t.factory:Lr(e);if(n!==null)return n;if(e instanceof Se)throw new Re(204,!1);if(e instanceof Function)return HE(e);throw new Re(204,!1)}function HE(e){if(e.length>0)throw new Re(204,!1);let t=fE(e);return t!==null?()=>t.factory(e):()=>new e}function $E(e){if(um(e))return ai(void 0,e.useValue);{let t=hm(e);return ai(t,Rs)}}function hm(e,t,n){let r;if(bi(e)){let i=At(e);return Lr(i)||Tc(i)}else if(um(e))r=()=>At(e.useValue);else if(FE(e))r=()=>e.useFactory(...Cc(e.deps||[]));else if(jE(e))r=()=>Fe(At(e.useExisting));else{let i=At(e&&(e.useClass||e.provide));if(zE(e))r=()=>new i(...Cc(e.deps));else return Lr(i)||Tc(i)}return r}function Qi(e){if(e.destroyed)throw new Re(205,!1)}function ai(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function zE(e){return!!e.deps}function WE(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function qE(e){return typeof e=="function"||typeof e=="object"&&e instanceof Se}function Oc(e,t){for(let n of e)Array.isArray(n)?Oc(n,t):n&&J_(n)?Oc(n.\u0275providers,t):t(n)}function dm(e,t){e instanceof vh&&Qi(e);let n,r=ar(e),i=Ut(void 0);try{return t()}finally{ar(r),Ut(i)}}function fm(){return Q_()!==void 0||xE()!=null}function ja(e){if(!fm())throw new Re(-203,!1)}function GE(e){return typeof e=="function"}var er=0,me=1,ge=2,kt=3,vn=4,Tn=5,mo=6,Ks=7,pt=8,vo=9,Jn=10,gt=11,yo=12,bf=13,ki=14,En=15,jr=16,li=17,Xn=18,jo=19,pm=20,pr=21,ks=22,Fr=23,qt=24,gi=25,ht=26,gm=1,Br=7,Js=8,wi=9,Rt=10;function Gn(e){return Array.isArray(e)&&typeof e[gm]=="object"}function tr(e){return Array.isArray(e)&&e[gm]===!0}function yh(e){return(e.flags&4)!==0}function Ni(e){return e.componentOffset>-1}function Fa(e){return(e.flags&1)===1}function Vn(e){return!!e.template}function Xs(e){return(e[ge]&512)!==0}function Fo(e){return(e[ge]&256)===256}var ZE=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function _m(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var mm=(()=>{let e=()=>vm;return e.ngInherit=!0,e})();function vm(e){return e.type.prototype.ngOnChanges&&(e.setInput=KE),YE}function YE(){let e=bm(this),t=e?.current;if(t){let n=e.previous;if(n===Mr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function KE(e,t,n,r,i){let o=this.declaredInputs[r],s=bm(e)||JE(e,{previous:Mr,current:null}),a=s.current||(s.current={}),l=s.previous,u=l[o];a[o]=new ZE(u&&u.currentValue,n,l===Mr),_m(e,t,i,n)}var ym="__ngSimpleChanges__";function bm(e){return e[ym]||null}function JE(e,t){return e[ym]=t}var XE=null,We=function(e,t=null,n){XE?.(e,t,n)},wm="svg",QE="math";function Zt(e){for(;Array.isArray(e);)e=e[er];return e}function Em(e,t){return Zt(t[e])}function Bn(e,t){return Zt(t[e.index])}function bh(e,t){return e.data[t]}function Ba(e,t){return e[t]}function on(e,t){let n=t[e];return Gn(n)?n:n[er]}function ex(e){return(e[ge]&4)===4}function wh(e){return(e[ge]&128)===128}function tx(e){return tr(e[kt])}function _r(e,t){return t==null?null:e[t]}function xm(e){e[li]=0}function Eh(e){e[ge]&1024||(e[ge]|=1024,wh(e)&&Pi(e))}function nx(e,t){for(;e>0;)t=t[ki],e--;return t}function Ua(e){return!!(e[ge]&9216||e[qt]?.dirty)}function Dc(e){e[Jn].changeDetectionScheduler?.notify(8),e[ge]&64&&(e[ge]|=1024),Ua(e)&&Pi(e)}function Pi(e){e[Jn].changeDetectionScheduler?.notify(0);let t=Ur(e);for(;t!==null&&!(t[ge]&8192||(t[ge]|=8192,!wh(t)));)t=Ur(t)}function Sm(e,t){if(Fo(e))throw new Re(911,!1);e[pr]===null&&(e[pr]=[]),e[pr].push(t)}function rx(e,t){if(e[pr]===null)return;let n=e[pr].indexOf(t);n!==-1&&e[pr].splice(n,1)}function Ur(e){let t=e[kt];return tr(t)?t[kt]:t}function Cm(e){return e[Ks]??=[]}function Im(e){return e.cleanup??=[]}function ix(e,t,n,r){let i=Cm(t);i.push(n),e.firstCreatePass&&Im(e).push(r,i.length-1)}var we={lFrame:Lm(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Rc=!1;function ox(){return we.lFrame.elementDepthCount}function sx(){we.lFrame.elementDepthCount++}function ax(){we.lFrame.elementDepthCount--}function xh(){return we.bindingsEnabled}function lx(){return we.skipHydrationRootTNode!==null}function cx(e){return we.skipHydrationRootTNode===e}function ux(){we.skipHydrationRootTNode=null}function be(){return we.lFrame.lView}function dt(){return we.lFrame.tView}function ct(e){return we.lFrame.contextLView=e,e[pt]}function ut(e){return we.lFrame.contextLView=null,e}function Yt(){let e=Tm();for(;e!==null&&e.type===64;)e=e.parent;return e}function Tm(){return we.lFrame.currentTNode}function hx(){let e=we.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function br(e,t){let n=we.lFrame;n.currentTNode=e,n.isParent=t}function Sh(){return we.lFrame.isParent}function Om(){we.lFrame.isParent=!1}function Dm(){return we.lFrame.contextLView}function Rm(){return Rc}function Qs(e){let t=Rc;return Rc=e,t}function Bo(){let e=we.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dx(e){return we.lFrame.bindingIndex=e}function Ai(){return we.lFrame.bindingIndex++}function km(e){let t=we.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function fx(){return we.lFrame.inI18n}function px(e,t){let n=we.lFrame;n.bindingIndex=n.bindingRootIndex=e,kc(t)}function gx(){return we.lFrame.currentDirectiveIndex}function kc(e){we.lFrame.currentDirectiveIndex=e}function _x(e){let t=we.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Nm(){return we.lFrame.currentQueryIndex}function Ch(e){we.lFrame.currentQueryIndex=e}function mx(e){let t=e[me];return t.type===2?t.declTNode:t.type===1?e[Tn]:null}function Pm(e,t,n){if(n&De.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&De.Host))&&(i=mx(o),!(i===null||(o=o[ki],i.type&10))););if(i===null)return!1;t=i,e=o}let r=we.lFrame=Am();return r.currentTNode=t,r.lView=e,!0}function Ih(e){let t=Am(),n=e[me];we.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Am(){let e=we.lFrame,t=e===null?null:e.child;return t===null?Lm(e):t}function Lm(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Mm(){let e=we.lFrame;return we.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Vm=Mm;function Th(){let e=Mm();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function vx(e){return(we.lFrame.contextLView=nx(e,we.lFrame.contextLView))[pt]}function nr(){return we.lFrame.selectedIndex}function Hr(e){we.lFrame.selectedIndex=e}function Ha(){let e=we.lFrame;return bh(e.tView,e.selectedIndex)}function mr(){we.lFrame.currentNamespace=wm}function ea(){yx()}function yx(){we.lFrame.currentNamespace=null}function bx(){return we.lFrame.currentNamespace}var jm=!0;function $a(){return jm}function za(e){jm=e}function wx(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=vm(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Oh(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:l,ngOnDestroy:u}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Ns(e,t,n){Fm(e,t,3,n)}function Ps(e,t,n,r){(e[ge]&3)===n&&Fm(e,t,n,r)}function kl(e,t){let n=e[ge];(n&3)===t&&(n&=16383,n+=1,e[ge]=n)}function Fm(e,t,n,r){let i=r!==void 0?e[li]&65535:0,o=r??-1,s=t.length-1,a=0;for(let l=i;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[li]+=65536),(a<o||o==-1)&&(Ex(e,n,t,l),e[li]=(e[li]&4294901760)+l+2),l++}function wf(e,t){We(4,e,t);let n=Oe(null);try{t.call(e)}finally{Oe(n),We(5,e,t)}}function Ex(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[ge]>>14<e[li]>>16&&(e[ge]&3)===t&&(e[ge]+=16384,wf(a,o)):wf(a,o)}var _i=-1,Uo=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function xx(e){return e instanceof Uo}function Sx(e){return(e.flags&8)!==0}function Cx(e){return(e.flags&16)!==0}function Ix(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];Ox(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function Tx(e){return e===3||e===4||e===6}function Ox(e){return e.charCodeAt(0)===64}function Ei(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Ef(e,n,i,null,t[++r]):Ef(e,n,i,null,null))}}return e}function Ef(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Nl={},Dx=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Ma(n);let r=this.injector.get(e,Nl,n);return r!==Nl||t===Nl?r:this.parentInjector.get(e,t,n)}};function Bm(e){return e!==_i}function ta(e){return e&32767}function Rx(e){return e>>16}function na(e,t){let n=Rx(e),r=t;for(;n>0;)r=r[ki],n--;return r}var Nc=!0;function ra(e){let t=Nc;return Nc=e,t}var kx=256,Um=kx-1,Hm=5,Nx=0,An={};function Px(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(oo)&&(r=n[oo]),r==null&&(r=n[oo]=Nx++);let i=r&Um,o=1<<i;t.data[e+(i>>Hm)]|=o}function ia(e,t){let n=$m(e,t);if(n!==-1)return n;let r=t[me];r.firstCreatePass&&(e.injectorIndex=t.length,Pl(r.data,e),Pl(t,null),Pl(r.blueprint,null));let i=Dh(e,t),o=e.injectorIndex;if(Bm(i)){let s=ta(i),a=na(i,t),l=a[me].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function Pl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $m(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Dh(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Ym(i),r===null)return _i;if(n++,i=i[ki],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _i}function Pc(e,t,n){Px(e,t,n)}function zm(e,t,n){if(n&De.Optional||e!==void 0)return e;fh(t,"NodeInjector")}function Wm(e,t,n,r){if(n&De.Optional&&r===void 0&&(r=null),(n&(De.Self|De.Host))===0){let i=e[vo],o=Ut(void 0);try{return i?i.get(t,r,n&De.Optional):em(t,r,n&De.Optional)}finally{Ut(o)}}return zm(r,t,n)}function qm(e,t,n,r=De.Default,i){if(e!==null){if(t[ge]&2048&&!(r&De.Self)){let s=Vx(e,t,n,r,An);if(s!==An)return s}let o=Gm(e,t,n,r,An);if(o!==An)return o}return Wm(t,n,r,i)}function Gm(e,t,n,r,i){let o=Lx(n);if(typeof o=="function"){if(!Pm(t,e,r))return r&De.Host?zm(i,n,r):Wm(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&De.Optional))fh(n);else return s}finally{Vm()}}else if(typeof o=="number"){let s=null,a=$m(e,t),l=_i,u=r&De.Host?t[En][Tn]:null;for((a===-1||r&De.SkipSelf)&&(l=a===-1?Dh(e,t):t[a+8],l===_i||!Sf(r,!1)?a=-1:(s=t[me],a=ta(l),t=na(l,t)));a!==-1;){let d=t[me];if(xf(o,a,d.data)){let h=Ax(a,t,n,s,r,u);if(h!==An)return h}l=t[a+8],l!==_i&&Sf(r,t[me].data[a+8]===u)&&xf(o,a,t)?(s=d,a=ta(l),t=na(l,t)):a=-1}}return i}function Ax(e,t,n,r,i,o){let s=t[me],a=s.data[e+8],l=r==null?Ni(a)&&Nc:r!=s&&(a.type&3)!==0,u=i&De.Host&&o===a,d=As(a,s,n,l,u);return d!==null?bo(t,s,d,a):An}function As(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,u=e.directiveEnd,d=o>>20,h=r?a:a+d,v=i?a+d:u;for(let m=h;m<v;m++){let w=s[m];if(m<l&&n===w||m>=l&&w.type===n)return m}if(i){let m=s[l];if(m&&Vn(m)&&m.type===n)return l}return null}function bo(e,t,n,r){let i=e[n],o=t.data;if(xx(i)){let s=i;s.resolving&&vE(mE(o[n]));let a=ra(s.canSeeViewProviders);s.resolving=!0;let l,u=s.injectImpl?Ut(s.injectImpl):null,d=Pm(e,r,De.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&wx(n,o[n],t)}finally{u!==null&&Ut(u),ra(a),s.resolving=!1,Vm()}}return i}function Lx(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(oo)?e[oo]:void 0;return typeof t=="number"?t>=0?t&Um:Mx:t}function xf(e,t,n){let r=1<<e;return!!(n[t+(e>>Hm)]&r)}function Sf(e,t){return!(e&De.Self)&&!(e&De.Host&&t)}var so=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return qm(this._tNode,this._lView,e,Ma(n),t)}};function Mx(){return new so(Yt(),be())}function Zm(e){return Lo(()=>{let t=e.prototype.constructor,n=t[qs]||Ac(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[qs]||Ac(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Ac(e){return Z_(e)?()=>{let t=Ac(At(e));return t&&t()}:Lr(e)}function Vx(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[ge]&2048&&!Xs(s);){let a=Gm(o,s,n,r|De.Self,An);if(a!==An)return a;let l=o.parent;if(!l){let u=s[pm];if(u){let d=u.get(n,An,r);if(d!==An)return d}l=Ym(s),s=s[ki]}o=l}return i}function Ym(e){let t=e[me],n=t.type;return n===2?t.declTNode:n===1?e[Tn]:null}function Cf(e,t=null,n=null,r){let i=jx(e,t,n,r);return i.resolveInjectorInitializers(),i}function jx(e,t=null,n=null,r,i=new Set){let o=[n||Lt,ME(e)];return r=r||(typeof e=="object"?void 0:mn(e)),new vh(o,t||Va(),r||null,i)}var Tt=class Km{static THROW_IF_NOT_FOUND=_o;static NULL=new om;static create(t,n){if(Array.isArray(t))return Cf({name:""},n,t,"");{let r=t.name??"";return Cf({name:r},t.parent,t.providers,r)}}static \u0275prov=fe({token:Km,providedIn:"any",factory:()=>Fe(rm)});static __NG_ELEMENT_ID__=-1},Fx=new Se("");Fx.__NG_ELEMENT_ID__=e=>{let t=Yt();if(t===null)throw new Re(204,!1);if(t.type&2)return t.value;if(e&De.Optional)return null;throw new Re(204,!1)};var Jm=!1,Ho=(()=>{class e{static __NG_ELEMENT_ID__=Bx;static __NG_ENV_ID__=n=>n}return e})(),Xm=class extends Ho{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return Sm(this._lView,e),()=>rx(this._lView,e)}};function Bx(){return new Xm(be())}var Jr=class{},Rh=new Se("",{providedIn:"root",factory:()=>!1}),Qm=new Se(""),kh=new Se(""),$o=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ih(!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=fe({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ux=class extends ye{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,fm()&&(this.destroyRef=N(Ho,{optional:!0})??void 0,this.pendingTasks=N($o,{optional:!0})??void 0)}emit(e){let t=Oe(null);try{super.next(e)}finally{Oe(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let a=e;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 e instanceof bt&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},Xe=Ux;function wo(...e){}function ev(e){let t,n;function r(){e=wo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function If(e){return queueMicrotask(()=>e()),()=>{e=wo}}var Nh="isAngularZone",oa=Nh+"_ID",Hx=0,Ye=class Lc{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Xe(!1);onMicrotaskEmpty=new Xe(!1);onStable=new Xe(!1);onError=new Xe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Jm}=t;if(typeof Zone>"u")throw new Re(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,Wx(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Nh)===!0}static assertInAngularZone(){if(!Lc.isInAngularZone())throw new Re(909,!1)}static assertNotInAngularZone(){if(Lc.isInAngularZone())throw new Re(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,$x,wo,wo);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},$x={};function Ph(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function zx(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ev(()=>{e.callbackScheduled=!1,Mc(e),e.isCheckStableRunning=!0,Ph(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Mc(e)}function Wx(e){let t=()=>{zx(e)},n=Hx++;e._inner=e._inner.fork({name:"angular",properties:{[Nh]:!0,[oa]:n,[oa+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(qx(l))return r.invokeTask(o,s,a,l);try{return Tf(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Of(e)}},onInvoke:(r,i,o,s,a,l,u)=>{try{return Tf(e),r.invoke(o,s,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Gx(l)&&t(),Of(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Mc(e),Ph(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Mc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Tf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Of(e){e._nesting--,Ph(e)}var tv=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Xe;onMicrotaskEmpty=new Xe;onStable=new Xe;onError=new Xe;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function qx(e){return nv(e,"__ignore_ng_zone__")}function Gx(e){return nv(e,"__scheduler_tick__")}function nv(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Xr=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Zx=new Se("",{providedIn:"root",factory:()=>{let e=N(Ye),t=N(Xr);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Df(e,t){return W_(e,t)}function Yx(e){return W_(z_,e)}var Kx=(Df.required=Yx,Df);function Jx(){return Li(Yt(),be())}function Li(e,t){return new Mt(Bn(e,t))}var Mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Jx}return e})();function Xx(e){return e instanceof Mt?e.nativeElement:e}function Mn(e,t){let n=e1(e),r=n[nn];return t?.equal&&(r.equal=t.equal),n.set=i=>eh(r,i),n.update=i=>t1(r,i),n.asReadonly=Qx.bind(n),n}function Qx(){let e=this[nn];if(e.readonlyFn===void 0){let t=()=>this();t[nn]=e,e.readonlyFn=t}return e.readonlyFn}function eS(){return this._results[Symbol.iterator]()}var tS=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ye}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=kE(e);(this._changesDetected=!RE(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=eS};function rv(e){return(e.flags&128)===128}var iv=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(iv||{}),Ah=new Map,nS=0;function rS(){return nS++}function iS(e){Ah.set(e[jo],e)}function ov(e){return Ah.get(e)||null}function Vc(e){Ah.delete(e[jo])}var oS=class{lViewId;nodeIndex;native;component;directives;localRefs;get lView(){return ov(this.lViewId)}constructor(e,t,n){this.lViewId=e,this.nodeIndex=t,this.native=n}};function sS(e){let t=Al(e);if(t){if(Gn(t)){let n=t,r,i,o;if(sv(e)){if(r=cS(n,e),r==-1)throw new Error("The provided component was not found in the application");i=e}else if(aS(e)){if(r=uS(n,e),r==-1)throw new Error("The provided directive was not found in the application");o=hS(r,n)}else if(r=kf(n,e),r==-1)return null;let s=Zt(n[r]),a=Al(s),l=a&&!Array.isArray(a)?a:Rf(n,r,s);if(i&&l.component===void 0&&(l.component=i,Ln(l.component,l)),o&&l.directives===void 0){l.directives=o;for(let u=0;u<o.length;u++)Ln(o[u],l)}Ln(l.native,l),t=l}}else{let n=e,r=n;for(;r=r.parentNode;){let i=Al(r);if(i){let o=Array.isArray(i)?i:i.lView;if(!o)return null;let s=kf(o,n);if(s>=0){let a=Zt(o[s]),l=Rf(o,s,a);Ln(a,l),t=l;break}}}}return t||null}function Rf(e,t,n){return new oS(e[jo],t,n)}var jc="__ngContext__";function Ln(e,t){Gn(t)?(e[jc]=t[jo],iS(t)):e[jc]=t}function Al(e){let t=e[jc];return typeof t=="number"?ov(t):t||null}function sv(e){return e&&e.constructor&&e.constructor.\u0275cmp}function aS(e){return e&&e.constructor&&e.constructor.\u0275dir}function kf(e,t){let n=e[me];for(let r=ht;r<n.bindingStartIndex;r++)if(Zt(e[r])===t)return r;return-1}function lS(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function cS(e,t){let n=e[me].components;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(on(i,e)[pt]===t)return i}else if(on(ht,e)[pt]===t)return ht;return-1}function uS(e,t){let n=e[me].firstChild;for(;n;){let r=n.directiveStart,i=n.directiveEnd;for(let o=r;o<i;o++)if(e[o]===t)return n.index;n=lS(n)}return-1}function hS(e,t){let n=t[me].data[e];if(n.directiveStart===0)return Lt;let r=[];for(let i=n.directiveStart;i<n.directiveEnd;i++){let o=t[i];sv(o)||r.push(o)}return r}function av(e){return cv(e[yo])}function lv(e){return cv(e[vn])}function cv(e){for(;e!==null&&!tr(e);)e=e[vn];return e}var Fc;function dS(e){Fc=e}function uv(){if(Fc!==void 0)return Fc;if(typeof document<"u")return document;throw new Re(210,!1)}var Lh=new Se("",{providedIn:"root",factory:()=>fS}),fS="ng",hv=new Se(""),Wa=new Se("",{providedIn:"platform",factory:()=>"unknown"}),pS=new Se(""),dv=new Se("",{providedIn:"root",factory:()=>uv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),gS="h",_S="b",fv=!1,mS=new Se("",{providedIn:"root",factory:()=>fv}),Mh=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Mh||{}),zo=new Se(""),Nf=new Set;function Qr(e){Nf.has(e)||(Nf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Vh=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=vS}return e})();function vS(){return new Vh(be(),Yt())}var ci=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ci||{}),pv=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=fe({token:e,providedIn:"root",factory:()=>new e})}return e})(),yS=[ci.EarlyRead,ci.Write,ci.MixedReadWrite,ci.Read],bS=(()=>{class e{ngZone=N(Ye);scheduler=N(Jr);errorHandler=N(Xr,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){N(zo,{optional:!0})}execute(){let n=this.sequences.size>0;n&&We(16),this.executing=!0;for(let r of yS)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&We(17)}register(n){let{view:r}=n;r!==void 0?((r[gi]??=[]).push(n),Pi(r),r[ge]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Mh.AFTER_NEXT_RENDER,n):n()}static \u0275prov=fe({token:e,providedIn:"root",factory:()=>new e})}return e})(),wS=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,n,r,i,o=null){this.impl=e,this.hooks=t,this.view=n,this.once=r,this.snapshot=o,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[gi];e&&(this.view[gi]=e.filter(t=>t!==this))}};function gv(e,t){!t?.injector&&ja(gv);let n=t?.injector??N(Tt);return Qr("NgAfterRender"),_v(e,n,t,!1)}function Wo(e,t){!t?.injector&&ja(Wo);let n=t?.injector??N(Tt);return Qr("NgAfterNextRender"),_v(e,n,t,!0)}function ES(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function _v(e,t,n,r){let i=t.get(pv);i.impl??=t.get(bS);let o=t.get(zo,null,{optional:!0}),s=n?.phase??ci.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(Ho):null,l=t.get(Vh,null,{optional:!0}),u=new wS(i.impl,ES(e,s),l?.view,r,a,o?.snapshot(null));return i.impl.register(u),u}var xS=()=>null;function mv(e,t,n=!1){return xS(e,t,n)}function vv(e,t){let n=e.contentQueries;if(n!==null){let r=Oe(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];Ch(o),a.contentQueries(2,t[s],s)}}}finally{Oe(r)}}}function Bc(e,t,n){Ch(0);let r=Oe(null);try{t(e,n)}finally{Oe(r)}}function jh(e,t,n){if(yh(t)){let r=Oe(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{Oe(r)}}}var qn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(qn||{}),us;function SS(){if(us===void 0&&(us=null,go.trustedTypes))try{us=go.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return us}function qa(e){return SS()?.createHTML(e)||e}var hs;function CS(){if(hs===void 0&&(hs=null,go.trustedTypes))try{hs=go.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return hs}function Pf(e){return CS()?.createHTML(e)||e}var ei=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${$_})`}},IS=class extends ei{getTypeName(){return"HTML"}},TS=class extends ei{getTypeName(){return"Style"}},OS=class extends ei{getTypeName(){return"Script"}},DS=class extends ei{getTypeName(){return"URL"}},RS=class extends ei{getTypeName(){return"ResourceURL"}};function Wn(e){return e instanceof ei?e.changingThisBreaksApplicationSecurity:e}function Tr(e,t){let n=kS(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${$_})`)}return n===t}function kS(e){return e instanceof ei&&e.getTypeName()||null}function NS(e){return new IS(e)}function PS(e){return new TS(e)}function AS(e){return new OS(e)}function LS(e){return new DS(e)}function MS(e){return new RS(e)}function VS(e){let t=new FS(e);return BS()?new jS(t):t}var jS=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(qa(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},FS=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=qa(e),t}};function BS(){try{return!!new window.DOMParser().parseFromString(qa(""),"text/html")}catch{return!1}}var US=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Fh(e){return e=String(e),e.match(US)?e:"unsafe:"+e}function rr(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function qo(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var yv=rr("area,br,col,hr,img,wbr"),bv=rr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wv=rr("rp,rt"),HS=qo(wv,bv),$S=qo(bv,rr("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")),zS=qo(wv,rr("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")),Af=qo(yv,$S,zS,HS),Ev=rr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),WS=rr("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"),qS=rr("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"),GS=qo(Ev,WS,qS),ZS=rr("script,style,template"),YS=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=XS(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=JS(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Lf(e).toLowerCase();if(!Af.hasOwnProperty(t))return this.sanitizedSomething=!0,!ZS.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!GS.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;Ev[s]&&(a=Fh(a)),this.buf.push(" ",o,'="',Mf(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Lf(e).toLowerCase();Af.hasOwnProperty(t)&&!yv.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Mf(e))}};function KS(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function JS(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw xv(t);return t}function XS(e){let t=e.firstChild;if(t&&KS(e,t))throw xv(t);return t}function Lf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function xv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var QS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eC=/([^\#-~ |!])/g;function Mf(e){return e.replace(/&/g,"&").replace(QS,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(eC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var ds;function Sv(e,t){let n=null;try{ds=ds||VS(e);let r=t?String(t):"";n=ds.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=ds.getInertBodyElement(r)}while(r!==o);let s=new YS().sanitizeChildren(Vf(n)||n);return qa(s)}finally{if(n){let r=Vf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Vf(e){return"content"in e&&tC(e)?e.content:null}function tC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var zn=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(zn||{});function Mi(e){let t=Cv();return t?Pf(t.sanitize(zn.HTML,e)||""):Tr(e,"HTML")?Pf(Wn(e)):Sv(uv(),Mo(e))}function cn(e){let t=Cv();return t?t.sanitize(zn.URL,e)||"":Tr(e,"URL")?Wn(e):Fh(Mo(e))}function Cv(){let e=be();return e&&e[Jn].sanitizer}var nC=/^>|^->|<!--|-->|--!>|<!-$/g,rC=/(<|>)/g,iC="\u200B$1\u200B";function oC(e){return e.replace(nC,t=>t.replace(rC,iC))}function sC(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Iv="ng-template";function aC(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&sC(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Bh(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Bh(e){return e.type===4&&e.value!==Iv}function lC(e,t,n){let r=e.type===4&&!n?Iv:e.value;return t===r}function cC(e,t,n){let r=4,i=e.attrs,o=i!==null?dC(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!dn(r)&&!dn(l))return!1;if(s&&dn(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!lC(e,l,n)||l===""&&t.length===1){if(dn(r))return!1;s=!0}}else if(r&8){if(i===null||!aC(e,i,l,n)){if(dn(r))return!1;s=!0}}else{let u=t[++a],d=uC(l,i,Bh(e),n);if(d===-1){if(dn(r))return!1;s=!0;continue}if(u!==""){let h;if(d>o?h="":h=i[d+1].toLowerCase(),r&2&&u!==h){if(dn(r))return!1;s=!0}}}}return dn(r)||s}function dn(e){return(e&1)===0}function uC(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return fC(t,e)}function hC(e,t,n=!1){for(let r=0;r<t.length;r++)if(cC(e,t[r],n))return!0;return!1}function dC(e){for(let t=0;t<e.length;t++){let n=e[t];if(Tx(n))return t}return e.length}function fC(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function jf(e,t){return e?":not("+t.trim()+")":t}function pC(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!dn(s)&&(t+=jf(o,i),i=""),r=s,o=o||!dn(r);n++}return i!==""&&(t+=jf(o,i)),t}function gC(e){return e.map(pC).join(",")}function _C(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!dn(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var On={};function mC(e,t){return e.createText(t)}function vC(e,t,n){e.setValue(t,n)}function yC(e,t){return e.createComment(oC(t))}function Tv(e,t,n){return e.createElement(t,n)}function sa(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Ov(e,t,n){e.appendChild(t,n)}function Ff(e,t,n,r,i){r!==null?sa(e,t,n,r,i):Ov(e,t,n)}function bC(e,t,n){e.removeChild(null,t,n)}function wC(e,t,n){e.setAttribute(t,"style",n)}function EC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Dv(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Ix(e,t,r),i!==null&&EC(e,t,i),o!==null&&wC(e,t,o)}function Uh(e,t,n,r,i,o,s,a,l,u,d){let h=ht+r,v=h+i,m=xC(h,v),w=typeof u=="function"?u():u;return m[me]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:v,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:l,consts:w,incompleteFirstPass:!1,ssrId:d}}function xC(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:On);return n}function SC(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Uh(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Hh(e,t,n,r,i,o,s,a,l,u,d){let h=t.blueprint.slice();return h[er]=i,h[ge]=r|4|128|8|64|1024,(u!==null||e&&e[ge]&2048)&&(h[ge]|=2048),xm(h),h[kt]=h[ki]=e,h[pt]=n,h[Jn]=s||e&&e[Jn],h[gt]=a||e&&e[gt],h[vo]=l||e&&e[vo]||null,h[Tn]=o,h[jo]=rS(),h[mo]=d,h[pm]=u,h[En]=t.type==2?e[En]:h,h}function CC(e,t,n){let r=Bn(t,e),i=SC(n),o=e[Jn].rendererFactory,s=$h(e,Hh(e,i,null,Rv(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function Rv(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function kv(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function $h(e,t){return e[yo]?e[bf][vn]=t:e[yo]=t,e[bf]=t,t}function Z(e=1){Nv(dt(),be(),nr()+e,!1)}function Nv(e,t,n,r){if(!r)if((t[ge]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ns(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ps(t,i,0,n)}Hr(n)}var Ga=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ga||{});function Uc(e,t,n,r){let i=Oe(null);try{let[o,s,a]=e.inputs[n],l=null;(s&Ga.SignalBased)!==0&&(l=t[o][nn]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,o):_m(t,l,o,r)}finally{Oe(i)}}function Pv(e,t,n,r,i){let o=nr(),s=r&2;try{Hr(-1),s&&t.length>ht&&Nv(e,t,ht,!1),We(s?2:0,i),n(r,i)}finally{Hr(o),We(s?3:1,i)}}function Za(e,t,n){kC(e,t,n),(n.flags&64)===64&&NC(e,t,n)}function zh(e,t,n=Bn){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function IC(e,t,n,r){let i=r.get(mS,fv)||n===qn.ShadowDom,o=e.selectRootElement(t,i);return TC(o),o}function TC(e){OC(e)}var OC=()=>null;function DC(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Wh(e,t,n,r,i,o,s,a){if(!a&&Gh(t,e,n,r,i)){Ni(t)&&RC(n,t.index);return}if(t.type&3){let l=Bn(t,n);r=DC(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)}else t.type&12}function RC(e,t){let n=on(t,e);n[ge]&16||(n[ge]|=64)}function kC(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Ni(n)&&CC(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||ia(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],l=bo(t,e,s,n);if(Ln(l,t),o!==null&&MC(t,s-r,l,a,n,o),Vn(a)){let u=on(n.index,t);u[pt]=bo(t,e,s,n)}}}function NC(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=gx();try{Hr(o);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];kc(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&PC(l,u)}}finally{Hr(-1),kc(s)}}function PC(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function qh(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];hC(t,o.selectors,!1)&&(r??=[],Vn(o)?r.unshift(o):r.push(o))}return r}function AC(e,t,n,r,i,o){let s=Bn(e,t);LC(t[gt],s,o,e.value,n,r,i)}function LC(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?Mo(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function MC(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],u=s[a+1];Uc(r,n,l,u)}}function Av(e,t){let n=e[vo],r=n?n.get(Xr,null):null;r&&r.handleError(t)}function Gh(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let u=s[l],d=s[l+1],h=t.data[u];Uc(h,n[u],d,i),a=!0}if(o)for(let l of o){let u=n[l],d=t.data[l];Uc(d,u,r,i),a=!0}return a}function VC(e,t){let n=on(t,e),r=n[me];jC(r,n);let i=n[er];i!==null&&n[mo]===null&&(n[mo]=mv(i,n[vo])),We(18),Zh(r,n,n[pt]),We(19,n[pt])}function jC(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Zh(e,t,n){Ih(t);try{let r=e.viewQuery;r!==null&&Bc(1,r,n);let i=e.template;i!==null&&Pv(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Xn]?.finishViewCreation(e),e.staticContentQueries&&vv(e,t),e.staticViewQueries&&Bc(2,e.viewQuery,n);let o=e.components;o!==null&&FC(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[ge]&=-5,Th()}}function FC(e,t){for(let n=0;n<t.length;n++)VC(e,t[n])}function Ya(e,t,n,r){let i=Oe(null);try{let o=t.tView,s=e[ge]&4096?4096:16,a=Hh(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[jr]=l;let u=e[Xn];return u!==null&&(a[Xn]=u.createEmbeddedView(o)),Zh(o,a,n),a}finally{Oe(i)}}function Eo(e,t){return!t||t.firstChild===null||rv(e)}var BC;function Yh(e,t){return BC(e,t)}var hr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(hr||{});function Lv(e){return(e.flags&32)===32}function ui(e,t,n,r,i){if(r!=null){let o,s=!1;tr(r)?o=r:Gn(r)&&(s=!0,r=r[er]);let a=Zt(r);e===0&&n!==null?i==null?Ov(t,n,a):sa(t,n,a,i||null,!0):e===1&&n!==null?sa(t,n,a,i||null,!0):e===2?bC(t,a,s):e===3&&t.destroyNode(a),o!=null&&XC(t,e,o,n,i)}}function UC(e,t){Mv(e,t),t[er]=null,t[Tn]=null}function HC(e,t,n,r,i,o){r[er]=i,r[Tn]=t,Xa(e,r,n,1,i,o)}function Mv(e,t){t[Jn].changeDetectionScheduler?.notify(9),Xa(e,t,t[gt],2,null,null)}function $C(e){let t=e[yo];if(!t)return Ll(e[me],e);for(;t;){let n=null;if(Gn(t))n=t[yo];else{let r=t[Rt];r&&(n=r)}if(!n){for(;t&&!t[vn]&&t!==e;)Gn(t)&&Ll(t[me],t),t=t[kt];t===null&&(t=e),Gn(t)&&Ll(t[me],t),n=t&&t[vn]}t=n}}function Kh(e,t){let n=e[wi],r=n.indexOf(t);n.splice(r,1)}function Ka(e,t){if(Fo(t))return;let n=t[gt];n.destroyNode&&Xa(e,t,n,3,null,null),$C(t)}function Ll(e,t){if(Fo(t))return;let n=Oe(null);try{t[ge]&=-129,t[ge]|=256,t[qt]&&Ao(t[qt]),WC(e,t),zC(e,t),t[me].type===1&&t[gt].destroy();let r=t[jr];if(r!==null&&tr(t[kt])){r!==t[kt]&&Kh(r,t);let i=t[Xn];i!==null&&i.detachView(e)}Vc(t)}finally{Oe(n)}}function zC(e,t){let n=e.cleanup,r=t[Ks];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&&(t[Ks]=null);let i=t[pr];if(i!==null){t[pr]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[Fr];if(o!==null){t[Fr]=null;for(let s of o)s.destroy()}}function WC(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Uo)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];We(4,a,l);try{l.call(a)}finally{We(5,a,l)}}else{We(4,i,o);try{o.call(i)}finally{We(5,i,o)}}}}}function qC(e,t,n){return GC(e,t.parent,n)}function GC(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[er];if(Ni(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===qn.None||i===qn.Emulated)return null}return Bn(r,n)}function ZC(e,t,n){return KC(e,t,n)}function YC(e,t,n){return e.type&40?Bn(e,n):null}var KC=YC,Bf;function Ja(e,t,n,r){let i=qC(e,r,t),o=t[gt],s=r.parent||t[Tn],a=ZC(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Ff(o,i,n[l],a,!1);else Ff(o,i,n,a,!1);Bf!==void 0&&Bf(o,r,t,n,i)}function eo(e,t){if(t!==null){let n=t.type;if(n&3)return Bn(t,e);if(n&4)return Hc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return eo(e,r);{let i=e[t.index];return tr(i)?Hc(-1,i):Zt(i)}}else{if(n&128)return eo(e,t.next);if(n&32)return Yh(t,e)()||Zt(e[t.index]);{let r=Vv(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Ur(e[En]);return eo(i,r)}else return eo(e,t.next)}}}return null}function Vv(e,t){if(t!==null){let n=e[En][Tn],r=t.projection;return n.projection[r]}return null}function Hc(e,t){let n=Rt+e+1;if(n<t.length){let r=t[n],i=r[me].firstChild;if(i!==null)return eo(r,i)}return t[Br]}function Jh(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&Ln(Zt(a),r),n.flags|=2),!Lv(n))if(l&8)Jh(e,t,n.child,r,i,o,!1),ui(t,e,i,a,o);else if(l&32){let u=Yh(n,r),d;for(;d=u();)ui(t,e,i,d,o);ui(t,e,i,a,o)}else l&16?JC(e,t,r,n,i,o):ui(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Xa(e,t,n,r,i,o){Jh(n,r,e.firstChild,t,i,o,!1)}function JC(e,t,n,r,i,o){let s=n[En],a=s[Tn].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];ui(t,e,i,u,o)}else{let l=a,u=s[kt];rv(r)&&(l.flags|=128),Jh(e,t,l,u,i,o,!0)}}function XC(e,t,n,r,i){let o=n[Br],s=Zt(n);o!==s&&ui(t,e,r,o,i);for(let a=Rt;a<n.length;a++){let l=n[a];Xa(l[me],l,e,t,r,o)}}function QC(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:hr.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=hr.Important),e.setStyle(n,r,i,o))}}function aa(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Zt(o)),tr(o)&&eI(o,r);let s=n.type;if(s&8)aa(e,t,n.child,r);else if(s&32){let a=Yh(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=Vv(t,n);if(Array.isArray(a))r.push(...a);else{let l=Ur(t[En]);aa(l[me],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function eI(e,t){for(let n=Rt;n<e.length;n++){let r=e[n],i=r[me].firstChild;i!==null&&aa(r[me],r,i,t)}e[Br]!==e[er]&&t.push(e[Br])}function jv(e){if(e[gi]!==null){for(let t of e[gi])t.impl.addSequence(t);e[gi].length=0}}var Fv=[];function tI(e){return e[qt]??nI(e)}function nI(e){let t=Fv.pop()??Object.create(iI);return t.lView=e,t}function rI(e){e.lView[qt]!==e&&(e.lView=null,Fv.push(e))}var iI=Le(L({},Ri),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Pi(e.lView)},consumerOnSignalRead(){this.lView[qt]=this}});function oI(e){let t=e[qt]??Object.create(sI);return t.lView=e,t}var sI=Le(L({},Ri),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ur(e.lView);for(;t&&!Bv(t[me]);)t=Ur(t);t&&Eh(t)},consumerOnSignalRead(){this.lView[qt]=this}});function Bv(e){return e.type!==2}function Uv(e){if(e[Fr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Fr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[ge]&8192)}}var aI=100;function Hv(e,t=!0,n=0){let r=e[Jn].rendererFactory,i=!1;i||r.begin?.();try{lI(e,n)}catch(o){throw t&&Av(e,o),o}finally{i||r.end?.()}}function lI(e,t){let n=Rm();try{Qs(!0),$c(e,t);let r=0;for(;Ua(e);){if(r===aI)throw new Re(103,!1);r++,$c(e,1)}}finally{Qs(n)}}function cI(e,t,n,r){if(Fo(t))return;let i=t[ge],o=!1,s=!1;Ih(t);let a=!0,l=null,u=null;o||(Bv(e)?(u=tI(t),l=ho(u)):qw()===null?(a=!1,u=oI(t),l=ho(u)):t[qt]&&(Ao(t[qt]),t[qt]=null));try{xm(t),dx(e.bindingStartIndex),n!==null&&Pv(e,t,n,2,r);let d=(i&3)===3;if(!o)if(d){let m=e.preOrderCheckHooks;m!==null&&Ns(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ps(t,m,0,null),kl(t,0)}if(s||uI(t),Uv(t),$v(t,0),e.contentQueries!==null&&vv(e,t),!o)if(d){let m=e.contentCheckHooks;m!==null&&Ns(t,m)}else{let m=e.contentHooks;m!==null&&Ps(t,m,1),kl(t,1)}dI(e,t);let h=e.components;h!==null&&Wv(t,h,0);let v=e.viewQuery;if(v!==null&&Bc(2,v,r),!o)if(d){let m=e.viewCheckHooks;m!==null&&Ns(t,m)}else{let m=e.viewHooks;m!==null&&Ps(t,m,2),kl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ks]){for(let m of t[ks])m();t[ks]=null}o||(jv(t),t[ge]&=-73)}catch(d){throw o||Pi(t),d}finally{u!==null&&(Ta(u,l),a&&rI(u)),Th()}}function $v(e,t){for(let n=av(e);n!==null;n=lv(n))for(let r=Rt;r<n.length;r++){let i=n[r];zv(i,t)}}function uI(e){for(let t=av(e);t!==null;t=lv(t)){if(!(t[ge]&2))continue;let n=t[wi];for(let r=0;r<n.length;r++){let i=n[r];Eh(i)}}}function hI(e,t,n){We(18);let r=on(t,e);zv(r,n),We(19,r[pt])}function zv(e,t){wh(e)&&$c(e,t)}function $c(e,t){let n=e[me],r=e[ge],i=e[qt],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&Oa(i)),o||=!1,i&&(i.dirty=!1),e[ge]&=-9217,o)cI(n,e,n.template,e[pt]);else if(r&8192){Uv(e),$v(e,1);let s=n.components;s!==null&&Wv(e,s,1),jv(e)}}function Wv(e,t,n){for(let r=0;r<t.length;r++)hI(e,t[r],n)}function dI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Hr(~i);else{let o=i,s=n[++r],a=n[++r];px(s,o);let l=t[o];We(24,l),a(2,l),We(25,l)}}}finally{Hr(-1)}}function Xh(e,t){let n=Rm()?64:1088;for(e[Jn].changeDetectionScheduler?.notify(t);e;){e[ge]|=n;let r=Ur(e);if(Xs(e)&&!r)return e;e=r}return null}function qv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Gv(e,t){let n=Rt+t;if(n<e.length)return e[n]}function Qa(e,t,n,r=!0){let i=t[me];if(fI(i,t,e,n),r){let s=Hc(n,e),a=t[gt],l=a.parentNode(e[Br]);l!==null&&HC(i,e[Tn],a,t,l,s)}let o=t[mo];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Zv(e,t){let n=xo(e,t);return n!==void 0&&Ka(n[me],n),n}function xo(e,t){if(e.length<=Rt)return;let n=Rt+t,r=e[n];if(r){let i=r[jr];i!==null&&i!==e&&Kh(i,r),t>0&&(e[n-1][vn]=r[vn]);let o=Zs(e,Rt+t);UC(r[me],r);let s=o[Xn];s!==null&&s.detachView(o[me]),r[kt]=null,r[vn]=null,r[ge]&=-129}return r}function fI(e,t,n,r){let i=Rt+r,o=n.length;r>0&&(n[i-1][vn]=t),r<o-Rt?(t[vn]=n[i],nm(n,Rt+r,t)):(n.push(t),t[vn]=null),t[kt]=n;let s=t[jr];s!==null&&n!==s&&Yv(s,t);let a=t[Xn];a!==null&&a.insertView(e),Dc(t),t[ge]|=128}function Yv(e,t){let n=e[wi],r=t[kt];if(Gn(r))e[ge]|=2;else{let i=r[kt][En];t[En]!==i&&(e[ge]|=2)}n===null?e[wi]=[t]:n.push(t)}var So=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[me];return aa(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[pt]}get dirty(){return!!(this._lView[ge]&9280)||!!this._lView[qt]?.dirty}set context(e){this._lView[pt]=e}get destroyed(){return Fo(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[kt];if(tr(e)){let t=e[Js],n=t?t.indexOf(this):-1;n>-1&&(xo(e,n),Zs(t,n))}this._attachedToViewContainer=!1}Ka(this._lView[me],this._lView)}onDestroy(e){Sm(this._lView,e)}markForCheck(){Xh(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Eh(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){Dc(this._lView),this._lView[ge]|=128}detectChanges(){this._lView[ge]|=1024,Hv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Xs(this._lView),t=this._lView[jr];t!==null&&!e&&Kh(t,this._lView),Mv(this._lView[me],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Re(902,!1);this._appRef=e;let t=Xs(this._lView),n=this._lView[jr];n!==null&&!t&&Yv(n,this._lView),Dc(this._lView)}},Co=(()=>{class e{static __NG_ELEMENT_ID__=_I}return e})(),pI=Co,gI=class extends pI{_declarationLView;_declarationTContainer;elementRef;constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){let r=Ya(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new So(r)}};function _I(){return el(Yt(),be())}function el(e,t){return e.type&4?new gI(t,e,Li(e,t)):null}function Go(e,t,n,r,i){let o=e.data[t];if(o===null)o=mI(e,t,n,r,i),fx()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=hx();o.injectorIndex=s===null?-1:s.injectorIndex}return br(o,!0),o}function mI(e,t,n,r,i){let o=Tm(),s=Sh(),a=s?o:o&&o.parent,l=e.data[t]=yI(e,a,n,t,r,i);return vI(e,l,o,s),l}function vI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function yI(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return lx()&&(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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var Z5=new RegExp(`^(\\d+)*(${_S}|${gS})*(.*)`),bI=()=>null;function Io(e,t){return bI(e,t)}var wI=class{},Kv=class{},EI=class{resolveComponentFactory(e){throw Error(`No component factory found for ${mn(e)}.`)}},Zo=class{static NULL=new EI},Dn=class{},Qh=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>xI()}return e})();function xI(){let e=be(),t=Yt(),n=on(t.index,e);return(Gn(n)?n:e)[gt]}var SI=(()=>{class e{static \u0275prov=fe({token:e,providedIn:"root",factory:()=>null})}return e})();function zc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=Ec(i,a);else if(o==2){let l=a,u=t[++s];r=Ec(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function wt(e,t=De.Default){let n=be();if(n===null)return Fe(e,t);let r=Yt();return qm(r,n,At(e),t)}function ed(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a,l=null,u=null,d=II(s);d===null?a=s:[a,l,u]=d,DI(e,t,n,a,o,l,u)}o!==null&&r!==null&&CI(n,r,o)}function CI(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new Re(-301,!1);r.push(t[i],o)}}function II(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Vn(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,TI(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function TI(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function OI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function DI(e,t,n,r,i,o,s){let a=r.length,l=!1;for(let v=0;v<a;v++){let m=r[v];!l&&Vn(m)&&(l=!0,OI(e,n,v)),Pc(ia(n,t),e,m.type)}LI(n,e.data.length,a);for(let v=0;v<a;v++){let m=r[v];m.providersResolver&&m.providersResolver(m)}let u=!1,d=!1,h=kv(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let v=0;v<a;v++){let m=r[v];if(n.mergedAttrs=Ei(n.mergedAttrs,m.hostAttrs),kI(e,n,t,h,m),AI(h,m,i),s!==null&&s.has(m)){let[C,A]=s.get(m);n.directiveToIndex.set(m.type,[h,C+n.directiveStart,A+n.directiveStart])}else(o===null||!o.has(m))&&n.directiveToIndex.set(m.type,h);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let w=m.type.prototype;!u&&(w.ngOnChanges||w.ngOnInit||w.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!d&&(w.ngOnChanges||w.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}RI(e,n,o)}function RI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Uf(0,t,i,r),Uf(1,t,i,r),$f(t,r,!1);else{let o=n.get(i);Hf(0,t,o,r),Hf(1,t,o,r),$f(t,r,!0)}}}function Uf(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),Jv(t,o)}}function Hf(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),Jv(t,s)}}function Jv(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function $f(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Bh(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let u=i[l];for(let d of u)if(d===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let u=o[l];for(let d=0;d<u.length;d+=2)if(u[d]===t){s??=[],s.push(u[d+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function kI(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=Lr(i.type,!0)),s=new Uo(o,Vn(i),wt);e.blueprint[r]=s,n[r]=s,NI(e,t,r,kv(e,n,i.hostVars,On),i)}function NI(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;PI(s)!=a&&s.push(a),s.push(n,r,o)}}function PI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function AI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Vn(t)&&(n[""]=e)}}function LI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Xv(e,t,n,r,i,o,s,a){let l=t.consts,u=_r(l,s),d=Go(t,e,2,r,u);return o&&ed(t,n,d,_r(l,a),i),d.mergedAttrs=Ei(d.mergedAttrs,d.attrs),d.attrs!==null&&zc(d,d.attrs,!1),d.mergedAttrs!==null&&zc(d,d.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,d),d}function Qv(e,t){Oh(e,t),yh(t)&&e.queries.elementEnd(t)}var MI=class extends Zo{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Vr(e);return new td(t,this.ngModule)}};function VI(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&Ga.SignalBased)!==0};return i&&(o.transform=i),o})}function jI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function FI(e,t,n){let r=t instanceof Kn?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Dx(n,r):n}function BI(e){let t=e.get(Dn,null);if(t===null)throw new Re(407,!1);let n=e.get(SI,null),r=e.get(Jr,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function UI(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Tv(t,n,n==="svg"?wm:n==="math"?QE:null)}var td=class extends Kv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return VI(this.componentDef.inputs)}get outputs(){return jI(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=gC(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){We(22);let i=Oe(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:_C(this.componentDef.selectors[0]),a=Uh(0,null,null,1,0,null,null,null,null,[s],null),l=FI(o,r||this.ngModule,e),u=BI(l),d=u.rendererFactory.createRenderer(null,o),h=n?IC(d,n,o.encapsulation,l):UI(o,d),v=Hh(null,a,null,512|Rv(o),null,null,u,d,l,null,mv(h,l,!0));v[ht]=h,Ih(v);let m=null;try{let w=Xv(ht,a,v,"#host",()=>[this.componentDef],!0,0);h&&(Dv(d,h,w),Ln(h,v)),Za(a,v,w),jh(a,w,v),Qv(a,w),t!==void 0&&$I(w,this.ngContentSelectors,t),m=on(w.index,v),v[pt]=m[pt],Zh(a,v,null)}catch(w){throw m!==null&&Vc(m),Vc(v),w}finally{We(23),Th()}return new HI(this.componentType,v)}finally{Oe(i)}}},HI=class extends wI{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=bh(t[me],ht),this.location=Li(this._tNode,t),this.instance=on(this._tNode.index,t)[pt],this.hostView=this.changeDetectorRef=new So(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Gh(n,r[me],r,e,t);this.previousInputValues.set(e,t);let o=on(n.index,r);Xh(o,1)}get injector(){return new so(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function $I(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Vi=(()=>{class e{static __NG_ELEMENT_ID__=zI}return e})();function zI(){let e=Yt();return ty(e,be())}var WI=Vi,ey=class extends WI{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Li(this._hostTNode,this._hostLView)}get injector(){return new so(this._hostTNode,this._hostLView)}get parentInjector(){let e=Dh(this._hostTNode,this._hostLView);if(Bm(e)){let t=na(e,this._hostLView),n=ta(e),r=t[me].data[n+8];return new so(r,t)}else return new so(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=zf(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let o=Io(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(t||{},i,o);return this.insertImpl(s,r,Eo(this._hostTNode,o)),s}createComponent(e,t,n,r,i){let o=e&&!GE(e),s;if(o)s=t;else{let m=t||{};s=m.index,n=m.injector,r=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let a=o?e:new td(Vr(e)),l=n||this.parentInjector;if(!i&&a.ngModule==null){let m=(o?l:this.parentInjector).get(Kn,null);m&&(i=m)}let u=Vr(a.componentType??{}),d=Io(this._lContainer,u?.id??null),h=d?.firstChild??null,v=a.create(l,r,h,i);return this.insertImpl(v.hostView,s,Eo(this._hostTNode,d)),v}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(tx(r)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let a=r[kt],l=new ey(a,a[Tn],a[kt]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),o=this._lContainer;return Qa(o,r,i,n),e.attachToViewContainerRef(),nm(Ml(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=zf(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=xo(this._lContainer,t);n&&(Zs(Ml(this._lContainer),t),Ka(n[me],n))}detach(e){let t=this._adjustIndex(e,-1),n=xo(this._lContainer,t);return n&&Zs(Ml(this._lContainer),t)!=null?new So(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function zf(e){return e[Js]}function Ml(e){return e[Js]||(e[Js]=[])}function ty(e,t){let n,r=t[e.index];return tr(r)?n=r:(n=qv(r,t,null,e),t[e.index]=n,$h(t,n)),GI(n,t,e,r),new ey(n,e,t)}function qI(e,t){let n=e[gt],r=n.createComment(""),i=Bn(t,e),o=n.parentNode(i);return sa(n,o,r,n.nextSibling(i),!1),r}var GI=KI,ZI=()=>!1;function YI(e,t,n){return ZI(e,t,n)}function KI(e,t,n,r){if(e[Br])return;let i;n.type&8?i=Zt(r):i=qI(t,n),e[Br]=i}var JI=class ny{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new ny(this.queryList)}setDirty(){this.queryList.setDirty()}},XI=class ry{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new ry(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)nd(t,n).matches!==null&&this.queries[n].setDirty()}},QI=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=cT(e):this.predicate=e}},eT=class iy{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new iy(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},tT=class oy{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new oy(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,nT(n,o)),this.matchTNodeWithReadOption(t,n,As(n,t,o,!1,!1))}else r===Co?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,As(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Mt||i===Vi||i===Co&&n.type&4)this.addMatch(n.index,-2);else{let o=As(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function nT(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function rT(e,t){return e.type&11?Li(e,t):e.type&4?el(e,t):null}function iT(e,t,n,r){return n===-1?rT(t,e):n===-2?oT(e,t,r):bo(e,e[me],n,t)}function oT(e,t,n){if(n===Mt)return Li(t,e);if(n===Co)return el(t,e);if(n===Vi)return ty(t,e)}function sy(e,t,n,r){let i=t[Xn].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let u=s[l];if(u<0)a.push(null);else{let d=o[u];a.push(iT(t,d,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function Wc(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=sy(e,t,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let u=o[a+1],d=t[-l];for(let h=Rt;h<d.length;h++){let v=d[h];v[jr]===v[kt]&&Wc(v[me],v,u,r)}if(d[wi]!==null){let h=d[wi];for(let v=0;v<h.length;v++){let m=h[v];Wc(m[me],m,u,r)}}}}}return r}function sT(e,t){return e[Xn].queries[t].queryList}function aT(e,t,n){let r=new tS((n&4)===4);return ix(e,t,r,r.destroy),(t[Xn]??=new XI).queries.push(new JI(r))-1}function lT(e,t,n){let r=dt();return r.firstCreatePass&&(uT(r,new QI(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),aT(r,be(),t)}function cT(e){return e.split(",").map(t=>t.trim())}function uT(e,t,n){e.queries===null&&(e.queries=new eT),e.queries.track(new tT(t,n))}function nd(e,t){return e.queries.getByIndex(t)}function hT(e,t){let n=e[me],r=nd(n,t);return r.crossesNgTemplate?Wc(n,e,t,[]):sy(n,e,r,t)}var To=class{},ay=class extends To{injector;componentFactoryResolver=new MI(this);instance=null;constructor(e){super();let t=new vh([...e.providers,{provide:To,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],e.parent||Va(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function dT(e,t,n=null){return new ay({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fT=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=lm(!1,n.type),i=r.length>0?dT([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=fe({token:e,providedIn:"environment",factory:()=>new e(Fe(Kn))})}return e})();function Nt(e){return Lo(()=>{let t=ly(e),n=Le(L({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===iv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(fT).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||qn.Emulated,styles:e.styles||Lt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Qr("NgStandalone"),cy(n);let r=e.dependencies;return n.directiveDefs=Wf(r,!1),n.pipeDefs=Wf(r,!0),n.id=vT(n),n})}function pT(e){return Vr(e)||sm(e)}function gT(e){return e!==null}function rd(e){return Lo(()=>({type:e.type,bootstrap:e.bootstrap||Lt,declarations:e.declarations||Lt,imports:e.imports||Lt,exports:e.exports||Lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function _T(e,t){if(e==null)return Mr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=Ga.None,l=null),n[o]=[r,a,l],t[o]=s}return n}function mT(e){if(e==null)return Mr;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Yo(e){return Lo(()=>{let t=ly(e);return cy(t),t})}function id(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ly(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Mr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Lt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_T(e.inputs,t),outputs:mT(e.outputs),debugInfo:null}}function cy(e){e.features?.forEach(t=>t(e))}function Wf(e,t){if(!e)return null;let n=t?am:pT;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(gT)}function vT(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function yT(e){return Object.getPrototypeOf(e.prototype).constructor}function ji(e){let t=yT(e.type),n=!0,r=[e];for(;t;){let i;if(Vn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Re(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Vl(e.inputs),s.declaredInputs=Vl(e.declaredInputs),s.outputs=Vl(e.outputs);let a=i.hostBindings;a&&ST(e,a);let l=i.viewQuery,u=i.contentQueries;if(l&&ET(e,l),u&&xT(e,u),bT(e,i),hE(e.outputs,i.outputs),Vn(i)&&i.data.animation){let d=e.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===ji&&(n=!1)}}t=Object.getPrototypeOf(t)}wT(r)}function bT(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function wT(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ei(i.hostAttrs,n=Ei(n,i.hostAttrs))}}function Vl(e){return e===Mr?{}:e===Lt?[]:e}function ET(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function xT(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function ST(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function uy(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function od(e,t,n){return e[t]=n}function sn(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function hy(e,t,n,r){let i=sn(e,t,n);return sn(e,t+1,r)||i}function CT(e,t,n,r,i){let o=hy(e,t,n,r);return sn(e,t+2,i)||o}function IT(e,t,n,r,i,o,s,a,l){let u=t.consts,d=Go(t,e,4,s||null,a||null);xh()&&ed(t,n,d,_r(u,l),qh),d.mergedAttrs=Ei(d.mergedAttrs,d.attrs),Oh(t,d);let h=d.tView=Uh(2,d,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,d),h.queries=t.queries.embeddedTView(d)),d}function qc(e,t,n,r,i,o,s,a,l,u){let d=n+ht,h=t.firstCreatePass?IT(d,t,e,r,i,o,s,a,l):t.data[d];br(h,!1);let v=TT(t,e,h,n);$a()&&Ja(t,e,v,h),Ln(v,e);let m=qv(v,e,v,h);return e[d]=m,$h(e,m),YI(m,h,e),Fa(h)&&Za(t,e,h),l!=null&&zh(e,h,u),h}function it(e,t,n,r,i,o,s,a){let l=be(),u=dt(),d=_r(u.consts,o);return qc(l,u,e,t,n,r,i,d,s,a),it}var TT=OT;function OT(e,t,n,r){return za(!0),t[gt].createComment("")}var DT=new Se(""),dy=(()=>{class e{static \u0275prov=fe({token:e,providedIn:"root",factory:()=>new fy})}return e})(),fy=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function py(e){return!!e&&typeof e.then=="function"}function RT(e){return!!e&&typeof e.subscribe=="function"}var kT=new Se(""),gy=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=N(kT,{optional:!0})??[];injector=N(Tt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=dm(this.injector,i);if(py(o))n.push(o);else if(RT(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),NT=new Se("");function PT(){Xw(()=>{throw new Re(600,!1)})}function AT(e){return e.isBoundToModule}var LT=10,vr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=N(Zx);afterRenderManager=N(pv);zonelessEnabled=N(Rh);rootEffectScheduler=N(dy);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ye;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=N($o).hasPendingTasks.pipe(Aa(n=>!n));constructor(){N(zo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=N(Kn);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){We(10);let i=n instanceof Kv;if(!this._injector.get(gy).done){let h=!i&&AE(n),v=!1;throw new Re(405,v)}let o;i?o=n:o=this._injector.get(Zo).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=AT(o)?void 0:this._injector.get(To),a=r||o.selector,l=o.create(Tt.NULL,[],a,s),u=l.location.nativeElement,d=l.injector.get(DT,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Ls(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),We(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){We(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Mh.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Re(101,!1);let n=Oe(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Oe(n),this.afterTick.next(),We(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Dn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<LT;)We(14),this.synchronizeOnce(),We(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)MT(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})=>Ua(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;Ls(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(NT,[]).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),()=>Ls(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Re(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ls(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function MT(e,t,n,r){!n&&!Ua(e)||Hv(e,t,n&&!r?0:1)}function Ko(e,t,n,r){let i=be(),o=Ai();if(sn(i,o,t)){let s=dt(),a=Ha();AC(a,i,e,t,n,r)}return Ko}function sd(e,t,n,r){return sn(e,Ai(),n)?t+Mo(n)+r:On}function fs(e,t){return e<<17|t<<2}function $r(e){return e>>17&32767}function VT(e){return(e&2)==2}function jT(e,t){return e&131071|t<<17}function Gc(e){return e|2}function xi(e){return(e&131068)>>2}function jl(e,t){return e&-131069|t<<2}function FT(e){return(e&1)===1}function Zc(e){return e|1}function BT(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=$r(s),l=xi(s);e[r]=n;let u=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||Vo(h,d)>0)&&(u=!0)}else d=n;if(i)if(l!==0){let h=$r(e[a+1]);e[r+1]=fs(h,a),h!==0&&(e[h+1]=jl(e[h+1],r)),e[a+1]=jT(e[a+1],r)}else e[r+1]=fs(a,0),a!==0&&(e[a+1]=jl(e[a+1],r)),a=r;else e[r+1]=fs(l,0),a===0?a=r:e[l+1]=jl(e[l+1],r),l=r;u&&(e[r+1]=Gc(e[r+1])),qf(e,d,r,!0),qf(e,d,r,!1),UT(t,d,e,r,o),s=fs(a,l),o?t.classBindings=s:t.styleBindings=s}function UT(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Vo(o,t)>=0&&(n[r+1]=Zc(n[r+1]))}function qf(e,t,n,r){let i=e[n+1],o=t===null,s=r?$r(i):xi(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],u=e[s+1];HT(l,t)&&(a=!0,e[s+1]=r?Zc(u):Gc(u)),s=r?$r(u):xi(u)}a&&(e[n+1]=r?Gc(i):Zc(i))}function HT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Vo(e,t)>=0:!1}var fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $T(e){return e.substring(fn.key,fn.keyEnd)}function zT(e){return WT(e),_y(e,my(e,0,fn.textEnd))}function _y(e,t){let n=fn.textEnd;return n===t?-1:(t=fn.keyEnd=qT(e,fn.key=t,n),my(e,t,n))}function WT(e){fn.key=0,fn.keyEnd=0,fn.value=0,fn.valueEnd=0,fn.textEnd=e.length}function my(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function qT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Me(e,t,n){let r=be(),i=Ai();if(sn(r,i,t)){let o=dt(),s=Ha();Wh(o,s,r,e,t,r[gt],n,!1)}return Me}function Yc(e,t,n,r,i){Gh(t,e,n,i?"class":"style",r)}function tl(e,t,n){return vy(e,t,n,!1),tl}function Jo(e,t){return vy(e,t,null,!0),Jo}function GT(e,t){for(let n=zT(t);n>=0;n=_y(t,n))gh(e,$T(t),!0)}function vy(e,t,n,r){let i=be(),o=dt(),s=km(2);if(o.firstUpdatePass&&by(o,e,s,r),t!==On&&sn(i,s,t)){let a=o.data[nr()];wy(o,a,i,i[gt],e,i[s+1]=tO(t,n),r,s)}}function ZT(e,t,n,r){let i=dt(),o=km(2);i.firstUpdatePass&&by(i,null,o,r);let s=be();if(n!==On&&sn(s,o,n)){let a=i.data[nr()];if(Ey(a,r)&&!yy(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=Ec(l,n||"")),Yc(i,a,s,n,r)}else eO(i,a,s,s[gt],s[o+1],s[o+1]=QT(e,t,n),r,o)}}function yy(e,t){return t>=e.expandoStartIndex}function by(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[nr()],s=yy(e,n);Ey(o,r)&&t===null&&!s&&(t=!1),t=YT(i,o,t,r),BT(i,o,t,n,s,r)}}function YT(e,t,n,r){let i=_x(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fl(null,e,t,n,r),n=Oo(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Fl(i,e,t,n,r),o===null){let a=KT(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Fl(null,e,t,a[1],r),a=Oo(a,t.attrs,r),JT(e,t,r,a))}else o=XT(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function KT(e,t,n){let r=n?t.classBindings:t.styleBindings;if(xi(r)!==0)return e[$r(r)]}function JT(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[$r(i)]=r}function XT(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Oo(r,s,n)}return Oo(r,t.attrs,n)}function Fl(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=Oo(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Oo(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),gh(e,s,n?!0:t[++o]))}return e===void 0?null:e}function QT(e,t,n){if(n==null||n==="")return Lt;let r=[],i=Wn(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else typeof i=="string"&&t(r,i);return r}function eO(e,t,n,r,i,o,s,a){i===On&&(i=Lt);let l=0,u=0,d=0<i.length?i[0]:null,h=0<o.length?o[0]:null;for(;d!==null||h!==null;){let v=l<i.length?i[l+1]:void 0,m=u<o.length?o[u+1]:void 0,w=null,C;d===h?(l+=2,u+=2,v!==m&&(w=h,C=m)):h===null||d!==null&&d<h?(l+=2,w=d):(u+=2,w=h,C=m),w!==null&&wy(e,t,n,r,w,C,s,a),d=l<i.length?i[l]:null,h=u<o.length?o[u]:null}}function wy(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let l=e.data,u=l[a+1],d=FT(u)?Gf(l,t,n,i,xi(u),s):void 0;if(!la(d)){la(o)||VT(u)&&(o=Gf(l,null,n,i,a,s));let h=Em(nr(),n);QC(r,s,h,i,o)}}function Gf(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let l=e[i],u=Array.isArray(l),d=u?l[1]:l,h=d===null,v=n[i+1];v===On&&(v=h?Lt:void 0);let m=h?Dl(v,r):d===r?v:void 0;if(u&&!la(m)&&(m=Dl(l,r)),la(m)&&(a=m,s))return a;let w=e[i+1];i=s?$r(w):xi(w)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=Dl(l,r))}return a}function la(e){return e!==void 0}function tO(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=mn(Wn(e)))),e}function Ey(e,t){return(e.flags&(t?8:16))!==0}function nO(e,t,n){let r=be(),i=sd(r,e,t,n);ZT(gh,GT,i,!0)}var rO=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function Bl(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function iO(e,t,n){let r,i,o=0,s=e.length-1,a;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let u=e.at(o),d=t[o],h=Bl(o,u,o,d,n);if(h!==0){h<0&&e.updateValue(o,d),o++;continue}let v=e.at(s),m=t[l],w=Bl(s,v,l,m,n);if(w!==0){w<0&&e.updateValue(s,m),s--,l--;continue}let C=n(o,u),A=n(s,v),P=n(o,d);if(Object.is(P,A)){let $=n(l,m);Object.is($,C)?(e.swap(o,s),e.updateValue(s,m),l--,s--):e.move(s,o),e.updateValue(o,d),o++;continue}if(r??=new Kf,i??=Yf(e,o,s,n),Kc(e,r,o,P))e.updateValue(o,d),o++,s++;else if(i.has(P))r.set(C,e.detach(o)),s--;else{let $=e.create(o,t[o]);e.attach(o,$),o++,s++}}for(;o<=l;)Zf(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),u=l.next();for(;!u.done&&o<=s;){let d=e.at(o),h=u.value,v=Bl(o,d,o,h,n);if(v!==0)v<0&&e.updateValue(o,h),o++,u=l.next();else{r??=new Kf,i??=Yf(e,o,s,n);let m=n(o,h);if(Kc(e,r,o,m))e.updateValue(o,h),o++,s++,u=l.next();else if(!i.has(m))e.attach(o,e.create(o,h)),o++,s++,u=l.next();else{let w=n(o,d);r.set(w,e.detach(o)),s--}}}for(;!u.done;)Zf(e,r,n,e.length,u.value),u=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Kc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Zf(e,t,n,r,i){if(Kc(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Yf(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Kf=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function rt(e,t){Qr("NgControlFlow");let n=be(),r=Ai(),i=n[r]!==On?n[r]:-1,o=i!==-1?ca(n,ht+i):void 0,s=0;if(sn(n,r,e)){let a=Oe(null);try{if(o!==void 0&&Zv(o,s),e!==-1){let l=ht+e,u=ca(n,l),d=Jc(n[me],l),h=Io(u,d.tView.ssrId),v=Ya(n,d,t,{dehydratedView:h});Qa(u,v,s,Eo(d,h))}}finally{Oe(a)}}else if(o!==void 0){let a=Gv(o,s);a!==void 0&&(a[pt]=t)}}var oO=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-Rt}};function Fi(e,t){return t}var sO=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function Vt(e,t,n,r,i,o,s,a,l,u,d,h,v){Qr("NgControlFlow");let m=be(),w=dt(),C=l!==void 0,A=be(),P=a?s.bind(A[En][pt]):s,$=new sO(C,P);A[ht+e]=$,qc(m,w,e+1,t,n,r,i,_r(w.consts,o)),C&&qc(m,w,e+2,l,u,d,h,_r(w.consts,v))}var aO=class extends rO{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-Rt}at(e){return this.getLView(e)[pt].$implicit}attach(e,t){let n=t[mo];this.needsIndexUpdate||=e!==this.length,Qa(this.lContainer,t,e,Eo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,lO(this.lContainer,e)}create(e,t){let n=Io(this.lContainer,this.templateTNode.tView.ssrId),r=Ya(this.hostLView,this.templateTNode,new oO(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Ka(e[me],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[pt].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[pt].$index=e}getLView(e){return cO(this.lContainer,e)}};function jt(e){let t=Oe(null),n=nr();try{let r=be(),i=r[me],o=r[n],s=n+1,a=ca(r,s);if(o.liveCollection===void 0){let u=Jc(i,s);o.liveCollection=new aO(a,r,u)}else o.liveCollection.reset();let l=o.liveCollection;if(iO(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let u=Ai(),d=l.length===0;if(sn(r,u,d)){let h=n+2,v=ca(r,h);if(d){let m=Jc(i,h),w=Io(v,m.tView.ssrId),C=Ya(r,m,void 0,{dehydratedView:w});Qa(v,C,0,Eo(m,w))}else Zv(v,0)}}}finally{Oe(t)}}function ca(e,t){return e[t]}function lO(e,t){return xo(e,t)}function cO(e,t){return Gv(e,t)}function Jc(e,t){return bh(e,t)}function Y(e,t,n,r){let i=be(),o=dt(),s=ht+e,a=i[gt],l=o.firstCreatePass?Xv(s,o,i,t,qh,xh(),n,r):o.data[s],u=uO(o,i,l,a,t,e);i[s]=u;let d=Fa(l);return br(l,!0),Dv(a,u,l),!Lv(l)&&$a()&&Ja(o,i,u,l),(ox()===0||d)&&Ln(u,i),sx(),d&&(Za(o,i,l),jh(o,l,i)),r!==null&&zh(i,l),Y}function K(){let e=Yt();Sh()?Om():(e=e.parent,br(e,!1));let t=e;cx(t)&&ux(),ax();let n=dt();return n.firstCreatePass&&Qv(n,t),t.classesWithoutHost!=null&&Sx(t)&&Yc(n,t,be(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Cx(t)&&Yc(n,t,be(),t.stylesWithoutHost,!1),K}function $e(e,t,n,r){return Y(e,t,n,r),K(),$e}var uO=(e,t,n,r,i,o)=>(za(!0),Tv(r,i,bx()));function hO(e,t,n,r,i){let o=t.consts,s=_r(o,r),a=Go(t,e,8,"ng-container",s);s!==null&&zc(a,s,!0);let l=_r(o,i);return xh()&&ed(t,n,a,l,qh),a.mergedAttrs=Ei(a.mergedAttrs,a.attrs),t.queries!==null&&t.queries.elementStart(t,a),a}function xy(e,t,n){let r=be(),i=dt(),o=e+ht,s=i.firstCreatePass?hO(o,i,r,t,n):i.data[o];br(s,!0);let a=dO(i,r,s,e);return r[o]=a,$a()&&Ja(i,r,a,s),Ln(a,r),Fa(s)&&(Za(i,r,s),jh(i,s,r)),n!=null&&zh(r,s),xy}function Sy(){let e=Yt(),t=dt();return Sh()?Om():(e=e.parent,br(e,!1)),t.firstCreatePass&&(Oh(t,e),yh(e)&&t.queries.elementEnd(e)),Sy}function ad(e,t,n){return xy(e,t,n),Sy(),ad}var dO=(e,t,n,r)=>(za(!0),yC(t[gt],""));function Ft(){return be()}function Cy(e,t,n){let r=be(),i=Ai();if(sn(r,i,t)){let o=dt(),s=Ha();Wh(o,s,r,e,t,r[gt],n,!0)}return Cy}var ua="en-US",fO=ua;function pO(e){typeof e=="string"&&(fO=e.toLowerCase().replace(/_/g,"-"))}var gO=(e,t,n)=>{};function ot(e,t,n,r){let i=be(),o=dt(),s=Yt();return mO(o,i,i[gt],s,e,t,r),ot}function _O(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Ks],l=i[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function mO(e,t,n,r,i,o,s){let a=Fa(r),l=e.firstCreatePass?Im(e):null,u=t[pt],d=Cm(t),h=!0;if(r.type&3||s){let v=Bn(r,t),m=s?s(v):v,w=d.length,C=s?P=>s(Zt(P[r.index])):r.index,A=null;if(!s&&a&&(A=_O(e,t,i,r.index)),A!==null){let P=A.__ngLastListenerFn__||A;P.__ngNextListenerFn__=o,A.__ngLastListenerFn__=o,h=!1}else{o=Qf(r,t,u,o),gO(v,i,o);let P=n.listen(m,i,o);d.push(o,P),l&&l.push(i,C,w,w+1)}}else o=Qf(r,t,u,o);if(h){let v=r.outputs?.[i],m=r.hostDirectiveOutputs?.[i];if(m&&m.length)for(let w=0;w<m.length;w+=2){let C=m[w],A=m[w+1];Jf(r,e,t,C,A,i,o,d,l)}if(v&&v.length)for(let w of v)Jf(r,e,t,w,i,i,o,d,l)}}function Jf(e,t,n,r,i,o,s,a,l){let u=n[r],d=t.data[r].outputs[i],h=u[d].subscribe(s),v=a.length;a.push(s,h),l&&l.push(o,e.index,v,-(v+1))}function Xf(e,t,n,r){let i=Oe(null);try{return We(6,t,n),n(r)!==!1}catch(o){return Av(e,o),!1}finally{We(7,t,n),Oe(i)}}function Qf(e,t,n,r){return function i(o){if(o===Function)return r;let s=Ni(e)?on(e.index,t):t;Xh(s,5);let a=Xf(t,n,r,o),l=i.__ngNextListenerFn__;for(;l;)a=Xf(t,n,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function ne(e=1){return vx(e)}function Bi(e,t,n){return Iy(e,"",t,"",n),Bi}function Iy(e,t,n,r,i){let o=be(),s=sd(o,t,n,r);if(s!==On){let a=dt(),l=Ha();Wh(a,l,o,e,s,o[gt],i,!1)}return Iy}function ha(e,t,n){lT(e,t,n)}function da(e){let t=be(),n=dt(),r=Nm();Ch(r+1);let i=nd(n,r);if(e.dirty&&ex(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=hT(t,r);e.reset(o,Xx),e.notifyOnChanges()}return!0}return!1}function fa(){return sT(be(),Nm())}function ld(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Zn(e){let t=Dm();return Ba(t,ht+e)}function Ke(e,t=""){let n=be(),r=dt(),i=e+ht,o=r.firstCreatePass?Go(r,i,1,t,null):r.data[i],s=vO(r,n,o,t,e);n[i]=s,$a()&&Ja(r,n,s,o),br(o,!1)}var vO=(e,t,n,r,i)=>(za(!0),mC(t[gt],r));function Ui(e){return xn("",e,""),Ui}function xn(e,t,n){let r=be(),i=sd(r,e,t,n);return i!==On&&yO(r,nr(),i),xn}function yO(e,t,n){let r=Em(t,e);vC(e[gt],r,n)}var Ty={};function Un(e){let t=dt(),n=be(),r=e+ht,i=Go(t,r,128,null,null);return br(i,!1),ld(t,n,r,Ty),Un}function zr(e){Qr("NgLet");let t=dt(),n=be(),r=nr();return ld(t,n,r,e),e}function rn(e){let t=Dm(),n=Ba(t,ht+e);if(n===Ty)throw new Re(314,!1);return n}function bO(e,t,n){let r=dt();if(r.firstCreatePass){let i=Vn(e);Xc(n,r.data,r.blueprint,i,!0),Xc(t,r.data,r.blueprint,i,!1)}}function Xc(e,t,n,r,i){if(e=At(e),Array.isArray(e))for(let o=0;o<e.length;o++)Xc(e[o],t,n,r,i);else{let o=dt(),s=be(),a=Yt(),l=bi(e)?e:At(e.provide),u=hm(e),d=a.providerIndexes&1048575,h=a.directiveStart,v=a.providerIndexes>>20;if(bi(e)||!e.multi){let m=new Uo(u,i,wt),w=Hl(l,t,i?d:d+v,h);w===-1?(Pc(ia(a,s),o,l),Ul(o,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[w]=m,s[w]=m)}else{let m=Hl(l,t,d+v,h),w=Hl(l,t,d,d+v),C=m>=0&&n[m],A=w>=0&&n[w];if(i&&!A||!i&&!C){Pc(ia(a,s),o,l);let P=xO(i?EO:wO,n.length,i,r,u);!i&&A&&(n[w].providerFactory=P),Ul(o,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=Oy(n[i?w:m],u,!i&&r);Ul(o,e,m>-1?m:w,P)}!i&&r&&A&&n[w].componentProviders++}}}function Ul(e,t,n,r){let i=bi(t),o=BE(t);if(i||o){let s=(o?At(t.useClass):t).prototype.ngOnDestroy;if(s){let a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=a.indexOf(n);l===-1?a.push(n,[r,s]):a[l+1].push(r,s)}else a.push(n,s)}}}function Oy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hl(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function wO(e,t,n,r){return Qc(this.multi,[])}function EO(e,t,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=bo(n,n[me],this.providerFactory.index,r);o=a.slice(0,s),Qc(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Qc(i,o);return o}function Qc(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function xO(e,t,n,r,i){let o=new Uo(e,n,wt);return o.multi=[],o.index=t,o.componentProviders=0,Oy(o,i,r&&!n),o}function SO(e,t=[]){return n=>{n.providersResolver=(r,i)=>bO(r,i?i(e):e,t)}}function Dy(e,t,n,r){return Ry(be(),Bo(),e,t,n,r)}function CO(e,t,n,r,i){return ky(be(),Bo(),e,t,n,r,i)}function IO(e,t,n,r,i,o){return TO(be(),Bo(),e,t,n,r,i,o)}function cd(e,t){let n=e[t];return n===On?void 0:n}function Ry(e,t,n,r,i,o){let s=t+n;return sn(e,s,i)?od(e,s+1,o?r.call(o,i):r(i)):cd(e,s+1)}function ky(e,t,n,r,i,o,s){let a=t+n;return hy(e,a,i,o)?od(e,a+2,s?r.call(s,i,o):r(i,o)):cd(e,a+2)}function TO(e,t,n,r,i,o,s,a){let l=t+n;return CT(e,l,i,o,s)?od(e,l+3,a?r.call(a,i,o,s):r(i,o,s)):cd(e,l+3)}function Sn(e,t){let n=dt(),r,i=e+ht;n.firstCreatePass?(r=OO(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Lr(r.type,!0)),s,a=Ut(wt);try{let l=ra(!1),u=o();return ra(l),ld(n,be(),i,u),u}finally{Ut(a)}}function OO(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function jn(e,t,n){let r=e+ht,i=be(),o=Ba(i,r);return Ny(i,r)?Ry(i,Bo(),t,o.transform,n,o):o.transform(n)}function DO(e,t,n,r){let i=e+ht,o=be(),s=Ba(o,i);return Ny(o,i)?ky(o,Bo(),t,s.transform,n,r,s):s.transform(n,r)}function Ny(e,t){return e[me].data[t].pure}function RO(e,t){return el(e,t)}var kO=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},ep=new kO("19.2.0"),NO=(()=>{class e{zone=N(Ye);changeDetectionScheduler=N(Jr);applicationRef=N(vr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function PO({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Ye(Le(L({},AO()),{scheduleInRootZone:n})),[{provide:Ye,useFactory:e},{provide:Ys,multi:!0,useFactory:()=>{let r=N(NO,{optional:!0});return()=>r.initialize()}},{provide:Ys,multi:!0,useFactory:()=>{let r=N(LO);return()=>{r.initialize()}}},t===!0?{provide:Qm,useValue:!0}:[],{provide:kh,useValue:n??Jm}]}function AO(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var LO=(()=>{class e{subscription=new bt;initialized=!1;zone=N(Ye);pendingTasks=N($o);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(()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Py=(()=>{class e{appRef=N(vr);taskService=N($o);ngZone=N(Ye);zonelessEnabled=N(Rh);tracing=N(zo,{optional:!0});disableScheduling=N(Qm,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new bt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(oa):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(N(kh,{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 tv||!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?If:ev;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(oa+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,If(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function MO(){return Qr("NgZoneless"),LE([{provide:Jr,useExisting:Py},{provide:Ye,useClass:tv},{provide:Rh,useValue:!0},{provide:kh,useValue:!1},[]])}function VO(){return typeof $localize<"u"&&$localize.locale||ua}var Ay=new Se("",{providedIn:"root",factory:()=>N(Ay,De.Optional|De.SkipSelf)||VO()}),eu=new Se(""),jO=new Se("");function Gi(e){return!e.moduleRef}function FO(e){let t=Gi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ye);return n.run(()=>{Gi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Xr,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Gi(e)){let o=()=>t.destroy(),s=e.platformInjector.get(eu);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(eu);s.add(o),e.moduleRef.onDestroy(()=>{Ls(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return UO(r,n,()=>{let o=t.get(gy);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Ay,ua);if(pO(s||ua),!t.get(jO,!0))return Gi(e)?t.get(vr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Gi(e)){let a=t.get(vr);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return BO(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function BO(e,t){let n=e.injector.get(vr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new Re(-403,!1);t.push(e)}function UO(e,t,n){try{let r=n();return py(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ms=null;function HO(e=[],t){return Tt.create({name:t,providers:[{provide:mh,useValue:"platform"},{provide:eu,useValue:new Set([()=>Ms=null])},...e]})}function $O(e=[]){if(Ms)return Ms;let t=HO(e);return Ms=t,PT(),zO(t),t}function zO(e){let t=e.get(hv,null);dm(e,()=>{t?.forEach(n=>n())})}var Xo=(()=>{class e{static __NG_ELEMENT_ID__=WO}return e})();function WO(e){return qO(Yt(),be(),(e&16)===16)}function qO(e,t,n){if(Ni(e)&&!n){let r=on(e.index,t);return new So(r,r)}else if(e.type&175){let r=t[En];return new So(r,t)}return null}var GO=class{constructor(){}supports(e){return e instanceof Map||uy(e)}create(){return new ZO}},ZO=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let t;for(t=this._mapHead;t!==null;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;t!==null;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;t!==null;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||uy(e)))throw new Re(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,n),this._appendAfter=t,t=t._next;else{let i=this._getOrCreateRecordForKey(r,n);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let n=t;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){let n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,t);let i=r._prev,o=r._next;return i&&(i._next=o),o&&(o._prev=i),r._next=null,r._prev=null,r}let n=new YO(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}},YO=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function tp(){return new Ly([new GO])}var Ly=(()=>{class e{static \u0275prov=fe({token:e,providedIn:"root",factory:tp});factories;constructor(n){this.factories=n}static create(n,r){if(r){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||tp()),deps:[[e,new DE,new OE]]}}find(n){let r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Re(901,!1)}}return e})();function KO(e){We(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=$O(r),o=[PO({}),{provide:Jr,useExisting:Py},...n||[]],s=new ay({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return FO({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{We(9)}}function JO(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function XO(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function QO(e){let t=Oe(null);try{return e()}finally{Oe(t)}}function np(e,t){let n=Yw(e);return t?.equal&&(n[nn].equal=t.equal),n}var eD=!1,tD=(()=>{class e extends fy{pendingTasks=N($o);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=fe({token:e,providedIn:"root",factory:()=>new e})}return e})(),nD=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(e,t,n,r,i,o){this.scheduler=e,this.effectFn=t,this.zone=n,this.injector=i,this.watcher=r1(s=>this.runEffect(s),()=>this.schedule(),o),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(t){this.injector.get(Xr,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function rD(){}function iD(e,t){!t?.injector&&ja(rD);let n=t?.injector??N(Tt),r=t?.manualCleanup!==!0?n.get(Ho):null,i=new nD(n.get(tD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),o=n.get(Xo,null,{optional:!0});return!o||!(o._lView[ge]&8)?i.watcher.notify():(o._lView[ks]??=[]).push(i.watcher.notify),i}var oD=eD,sD=class{[nn];constructor(e){this[nn]=e}destroy(){this[nn].destroy()}};function tu(e,t){if(oD)return iD(e,t);!t?.injector&&ja(tu);let n=t?.injector??N(Tt),r=t?.manualCleanup!==!0?n.get(Ho):null,i,o=n.get(Vh,null,{optional:!0}),s=n.get(Jr);return o!==null&&!t?.forceRoot?(i=cD(o.view,s,e),r instanceof Xm&&r._lView===o.view&&(r=null)):i=uD(e,n.get(dy),s),i.injector=n,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new sD(i)}var My=Le(L({},Ri),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:wo,run(){if(this.dirty=!1,this.hasRun&&!Oa(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=ho(this),n=Qs(!1);try{this.maybeCleanup(),this.fn(e)}finally{Qs(n),Ta(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),aD=Le(L({},My),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Ao(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),lD=Le(L({},My),{consumerMarkedDirty(){this.view[ge]|=8192,Pi(this.view),this.notifier.notify(13)},destroy(){Ao(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Fr]?.delete(this)}});function cD(e,t,n){let r=Object.create(lD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[Fr]??=new Set,e[Fr].add(r),r.consumerMarkedDirty(r),r}function uD(e,t,n){let r=Object.create(aD);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function Vy(e,t){let n=Vr(e),r=t.elementInjector||Va();return new td(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var hD={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function dD(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function fD(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var $l;function pD(e,t){if(!$l){let n=Element.prototype;$l=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?$l.call(e,t):!1}function gD(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[dD(r)]=[n,i]}),t}function _D(e,t){return t.get(Zo).resolveComponentFactory(e).inputs}function mD(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],l=vD(a,t,i);l!==-1&&r[l].push(a)}return r}function vD(e,t,n){let r=n;return fD(e)&&t.some((i,o)=>i!=="*"&&pD(e,i)?(r=o,!0):!1),r}var yD=10,bD=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Zo).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new wD(this.componentFactory,e,this.inputMap)}},wD=class{componentFactory;injector;inputMap;eventEmitters=new y1(1);events=this.eventEmitters.pipe(H_(e=>La(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(Ye),this.appRef=this.injector.get(vr),this.cdScheduler=t.get(Jr),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=hD.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},yD))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=Tt.create({providers:[],parent:this.injector}),n=mD(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new Et(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},ED=class extends HTMLElement{ngElementEventsSubscription=null};function xD(e,t){let n=_D(e,t.injector),r=t.strategyFactory||new bD(e,t.injector),i=gD(n);class o extends ED{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:u})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,u,d){let[h,v]=i[a];this.ngElementStrategy.setInputValue(h,u,v)}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 l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var jy=null;function ao(){return jy}function SD(e){jy??=e}var CD=class{},tt=new Se(""),Fy=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:()=>N(ID),providedIn:"platform"})}return e})(),ID=(()=>{class e extends Fy{_location;_history;_doc=N(tt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ao().getBaseHref(this._doc)}onPopState(n){let r=ao().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ao().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function By(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function rp(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Rr(e){return e&&e[0]!=="?"?`?${e}`:e}var ud=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:()=>N(OD),providedIn:"root"})}return e})(),TD=new Se(""),OD=(()=>{class e extends ud{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??N(tt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return By(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Rr(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Rr(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Rr(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(n){return new(n||e)(Fe(Fy),Fe(TD,8))};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Uy=(()=>{class e{_subject=new ye;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=kD(rp(ip(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Rr(r))}normalize(n){return e.stripTrailingSlash(RD(this._basePath,ip(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rr(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rr(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=Rr;static joinWithSlash=By;static stripTrailingSlash=rp;static \u0275fac=function(n){return new(n||e)(Fe(ud))};static \u0275prov=fe({token:e,factory:()=>DD(),providedIn:"root"})}return e})();function DD(){return new Uy(Fe(ud))}function RD(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function ip(e){return e.replace(/\/index.html$/,"")}function kD(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}function ND(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var zl=/\s+/,op=[],nl=(()=>{class e{_ngEl;_renderer;initialClasses=op;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(zl):op}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(zl):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(zl).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||e)(wt(Mt),wt(Qh))};static \u0275dir=Yo({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),PD=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,i){this._ngEl=n,this._differs=r,this._renderer=i}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[i,o]=n.split("."),s=i.indexOf("-")===-1?void 0:hr.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(n){return new(n||e)(wt(Mt),wt(Ly),wt(Qh))};static \u0275dir=Yo({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),AD=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(n,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(n){return new(n||e)(wt(Vi))};static \u0275dir=Yo({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[mm]})}return e})(),LD=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=rd({type:e});static \u0275inj=hh({})}return e})(),Hy="browser",MD="server";function VD(e){return e===Hy}function $y(e){return e===MD}var jD=class{},FD=class extends CD{supportsDOMEvents=!0},BD=class zy extends FD{static makeCurrent(){SD(new zy)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=UD();return n==null?null:HD(n)}resetBaseElement(){to=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ND(document.cookie,t)}},to=null;function UD(){return to=to||document.querySelector("base"),to?to.getAttribute("href"):null}function HD(e){return new URL(e,document.baseURI).pathname}var $D=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),nu=new Se(""),Wy=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new Re(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(Fe(nu),Fe(Ye))};static \u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),qy=class{_doc;constructor(e){this._doc=e}manager},Vs="ng-app-id";function sp(e){for(let t of e)t.remove()}function ap(e,t){let n=t.createElement("style");return n.textContent=e,n}function zD(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Vs}="${t}"],link[${Vs}="${t}"]`);if(i)for(let o of i)o.removeAttribute(Vs),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 ru(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Gy=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=$y(o),zD(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,ap);r?.forEach(i=>this.addUsage(i,this.external,ru))}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&&(sp(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])sp(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,ap(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,ru(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Vs,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(Fe(tt),Fe(Lh),Fe(dv,8),Fe(Wa))};static \u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),Wl={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"},hd=/%COMP%/g,Zy="%COMP%",WD=`_nghost-${Zy}`,qD=`_ngcontent-${Zy}`,GD=!0,ZD=new Se("",{providedIn:"root",factory:()=>GD});function YD(e){return qD.replace(hd,e)}function KD(e){return WD.replace(hd,e)}function Yy(e,t){return t.map(n=>n.replace(hd,e))}var lp=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,l,u=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.tracingService=d,this.platformIsServer=$y(a),this.defaultRenderer=new dd(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===qn.ShadowDom&&(r=Le(L({},r),{encapsulation:qn.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof up?i.applyToHost(n):i instanceof iu&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,v=this.tracingService;switch(r.encapsulation){case qn.Emulated:o=new up(l,u,r,this.appId,d,s,a,h,v);break;case qn.ShadowDom:return new JD(l,u,n,r,s,a,this.nonce,h,v);default:o=new iu(l,u,r,d,s,a,h,v);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(Fe(Wy),Fe(Gy),Fe(Lh),Fe(ZD),Fe(tt),Fe(Wa),Fe(Ye),Fe(dv),Fe(zo,8))};static \u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),dd=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Wl[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(cp(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(cp(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Re(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=Wl[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Wl[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(hr.DashCase|hr.Important)?e.style.setProperty(t,n,r&hr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&hr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=ao().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function cp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var JD=class extends dd{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Yy(r.id,u);for(let h of u){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=h,this.shadowRoot.appendChild(v)}let d=r.getExternalStyles?.();if(d)for(let h of d){let v=ru(h,i);s&&v.setAttribute("nonce",s),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},iu=class extends dd{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=l?Yy(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},up=class extends iu{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,a,l){let u=r+"-"+n.id;super(e,t,n,i,o,s,a,l,u),this.contentAttr=YD(u),this.hostAttr=KD(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},XD=(()=>{class e extends qy{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(Fe(tt))};static \u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),hp=["alt","control","meta","shift"],QD={"\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"},e2={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},t2=(()=>{class e extends qy{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ao().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=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),hp.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=QD[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"),hp.forEach(s=>{if(s!==i){let a=e2[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(Fe(tt))};static \u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();function n2(e){return KO(r2(e))}function r2(e){return{appProviders:[...l2,...e?.providers??[]],platformProviders:a2}}function i2(){BD.makeCurrent()}function o2(){return new Xr}function s2(){return dS(document),document}var a2=[{provide:Wa,useValue:Hy},{provide:hv,useValue:i2,multi:!0},{provide:tt,useFactory:s2,deps:[]}],l2=[{provide:mh,useValue:"root"},{provide:Xr,useFactory:o2,deps:[]},{provide:nu,useClass:XD,multi:!0,deps:[tt]},{provide:nu,useClass:t2,multi:!0,deps:[tt]},lp,Gy,Wy,{provide:Dn,useExisting:lp},{provide:jD,useClass:$D,deps:[]},[]],Ky=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=Fe(c2),r},providedIn:"root"})}return e})(),c2=(()=>{class e extends Ky{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case zn.NONE:return r;case zn.HTML:return Tr(r,"HTML")?Wn(r):Sv(this._doc,String(r)).toString();case zn.STYLE:return Tr(r,"Style")?Wn(r):r;case zn.SCRIPT:if(Tr(r,"Script"))return Wn(r);throw new Re(5200,!1);case zn.URL:return Tr(r,"URL")?Wn(r):Fh(String(r));case zn.RESOURCE_URL:if(Tr(r,"ResourceURL"))return Wn(r);throw new Re(5201,!1);default:throw new Re(5202,!1)}}bypassSecurityTrustHtml(n){return NS(n)}bypassSecurityTrustStyle(n){return PS(n)}bypassSecurityTrustScript(n){return AS(n)}bypassSecurityTrustUrl(n){return LS(n)}bypassSecurityTrustResourceUrl(n){return MS(n)}static \u0275fac=function(n){return new(n||e)(Fe(tt))};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),u2="9.11.0",St=class ou{static SDK_VERSION=u2;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_EXPERIMENT_START="CE Experiment Start";static EVENT_VIDEO_DIALOG_CLOSED="CE Video Dialog Closed";static EVENT_VIDEO_DIALOG_OPENED="CE Video Dialog Opened";static EVENT_VIDEO_CHANGE="CE Video Changed";static EVENT_LAST_VIDEO_ENDED="CE Last Video Ended";static EVENT_VIDEO_MUTED="CE Video Muted";static EVENT_VIDEO_UNMUTED="CE Video Unmuted";static EVENT_ADD_TO_CART_CLICKED="CE Add To Cart Clicked";static EVENT_VIEW_ITEM_CLICKED="CE View Item Clicked";static EVENT_MORE_ITEM_INFO_CLICKED="CE More Item Info Clicked";static EVENT_OPEN_CART_CLICKED="CE Open Cart Clicked";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_OPEN_CART="Open 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 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=ou.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");ou.SDK_VERSION_CODE=parseInt(t,10)}},Si={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",styleURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${St.SDK_VERSION}/dist/widget.min.css`,widgetURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${St.SDK_VERSION}/dist/widget.min.js`},en=Cn(jw()),pn=class{static log(...e){en.default.info(...e)}static debug(...e){en.default.debug(...e)}static error(...e){en.default.error(...e)}static warn(...e){en.default.warn(...e)}static info(...e){en.default.info(...e)}static trace(...e){en.default.trace(...e)}};function h2(e=St.LOG_PREFIX){en.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${St.SDK_VERSION}):`)}});let t=d2();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?en.default.setLevel(en.default[localStorage.cooeeLogLevel]):en.default.setLevel(Si.debug?en.default.TRACE:en.default.OFF)}function d2(){return new URL(location.href).searchParams?.get("cooee-debug")}var ps=Cn(i_()),f2={providers:[MO()]},p2={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Y5=Le(L({},p2),{"[class.ng-submitted]":"isSubmitted"}),g2=new Se("",{providedIn:"root",factory:()=>Jy}),Jy="always",_2=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=rd({type:e});static \u0275inj=hh({})}return e})(),m2=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:g2,useValue:n.callSetDisabledState??Jy}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=rd({type:e});static \u0275inj=hh({imports:[_2]})}return e})(),v2=(e,t,n)=>({"--option-color":e,"background-color":t,color:n}),Xy=(e,t)=>t.id;function y2(e,t){if(e&1&&(Y(0,"span",6),Ke(1),K()),e&2){ne();let n=rn(0);Z(),Ui(n)}}function b2(e,t){if(e&1){let n=Ft();Un(0),Y(1,"button",5),ot("click",function(){let r=ct(n).$implicit,i=ne().$implicit,o=ne();return ut(o.onOptionChange(i,r))}),it(2,y2,2,1,"span",6),K()}if(e&2){let n=t.$implicit,r=ne().$implicit,i=rn(1),o=ne(),s=zr(n.name);Z(),Jo("color-type",i)("selected",o.selectedOptions()[r.name]===s),Me("disabled",n.disabled)("ngStyle",IO(9,v2,i?s:"",i?s:"",i?"transparent":"")),Ko("data-value",s),Z(),rt(i?-1:2)}}function w2(e,t){if(e&1&&(Y(0,"div"),Un(1),Y(2,"div",1),Ke(3),K(),Y(4,"div",2),Ke(5),K(),Y(6,"div",3),Vt(7,b2,3,13,"button",4,Xy),K()()),e&2){let n=t.$implicit,r=ne();nO("option-group ",n.name.toLowerCase(),""),Z(),zr(n.name.toLowerCase().includes("color")),Z(2),xn("",n.name,":"),Z(2),Ui(r.selectedOptions()[n.name]),Z(2),jt(n.optionValues)}}var E2=class su{selectedVariant=new Xe;item=Kx.required();selectedOptions=Mn({});options=np(()=>{let t=this.item();return!t.options||t.vars.length===1?[]:t.options});matchedVariant=np(()=>{let t=this.item(),n=this.selectedOptions();return t.vars.find(r=>t.options.every(i=>n[i.name]===r.selectedOptions.find(o=>o.name===i.name)?.value))});constructor(){tu(()=>{let n=this.matchedVariant();n&&(this.item().setSelectedVariant(n),this.selectedVariant.emit(n))});let t=tu(()=>{let n=this.item();if(!n?.options)return;let r=L({},this.selectedOptions());n.options.forEach(i=>{let o=n.vars[0]?.selectedOptions.find(s=>s.name===i.name)?.value;o&&(r[i.name]=o)}),this.selectedOptions.set(r),t.destroy()})}onOptionChange(t,n){let r=L({},this.selectedOptions());r[t.name]=n.name,this.selectedOptions.set(r)}static \u0275fac=function(t){return new(t||su)};static \u0275cmp=Nt({type:su,selectors:[["cooee-item-options-picker"]],inputs:{item:[1,"item"]},outputs:{selectedVariant:"selectedVariant"},decls:2,vars:0,consts:[[3,"class"],[1,"name"],[1,"selected-value"],[1,"option-values"],[1,"option-value",3,"disabled","color-type","selected","ngStyle"],[1,"option-value",3,"click","disabled","ngStyle"],[1,"title"]],template:function(t,n){t&1&&Vt(0,w2,9,6,"div",0,Xy),t&2&&jt(n.options())},dependencies:[LD,PD,m2],styles:[`.option-group{display:flex;gap:8px;align-items:center}.option-group+.option-group{margin-top:8px}.option-values{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:8px}.option-value{padding:5px 10px;border:1px solid #ccc;cursor:pointer;border-radius:4px;min-width:32px;min-height:32px;text-align:center;position:relative;--selected-color: var(--option-color, var(--lc-color-button, rgb(var(--color-button, 0 0 0))))}.option-value.selected{box-shadow:#fff 0 0 0 2px,var(--selected-color) 0 0 0 4px}
|
|
17
|
-
`],encapsulation:3})},
|
|
18
|
-
`);for(let a=r;a<s.length;a++){let l=s[a];if(l.length>1024)continue;let u=
|
|
12
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function Us(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var bt=class gc{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(Ze(r))try{r()}catch(o){t=o instanceof Il?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{af(o)}catch(s){t=t??[],s instanceof Il?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Il(t)}}add(t){var n;if(t&&t!==this)if(this.closed)af(t);else{if(t instanceof gc){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Us(n,t)}remove(t){let{_finalizers:n}=this;n&&Us(n,t),t instanceof gc&&t._removeParent(this)}};bt.EMPTY=(()=>{let e=new bt;return e.closed=!0,e})();var pm=bt.EMPTY;function gm(e){return e instanceof bt||e&&"closed"in e&&Ze(e.remove)&&Ze(e.add)&&Ze(e.unsubscribe)}function af(e){Ze(e)?e():e.unsubscribe()}var Kr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Hs={setTimeout(e,t,...n){let{delegate:r}=Hs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Hs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function mm(e){Hs.setTimeout(()=>{let{onUnhandledError:t}=Kr;if(t)t(e);else throw e})}function mc(){}var Xw=eh("C",void 0,void 0);function Qw(e){return eh("E",void 0,e)}function e1(e){return eh("N",e,void 0)}function eh(e,t,n){return{kind:e,value:t,error:n}}var Or=null;function Is(e){if(Kr.useDeprecatedSynchronousErrorHandling){let t=!Or;if(t&&(Or={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Or;if(Or=null,n)throw r}}else e()}function t1(e){Kr.useDeprecatedSynchronousErrorHandling&&Or&&(Or.errorThrown=!0,Or.error=e)}var th=class extends bt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,gm(e)&&e.add(this)):this.destination=o1}static create(e,t,n){return new _c(e,t,n)}next(e){this.isStopped?Dl(e1(e),this):this._next(e)}error(e){this.isStopped?Dl(Qw(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Dl(Xw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},n1=Function.prototype.bind;function Tl(e,t){return n1.call(e,t)}var r1=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){ss(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){ss(n)}else ss(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){ss(t)}}},_c=class extends th{constructor(e,t,n){super();let r;if(Ze(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&Kr.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Tl(e.next,i),error:e.error&&Tl(e.error,i),complete:e.complete&&Tl(e.complete,i)}):r=e}this.destination=new r1(r)}};function ss(e){Kr.useDeprecatedSynchronousErrorHandling?t1(e):mm(e)}function i1(e){throw e}function Dl(e,t){let{onStoppedNotification:n}=Kr;n&&Hs.setTimeout(()=>n(e,t))}var o1={closed:!0,next:mc,error:i1,complete:mc},nh=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ka(e){return e}function s1(e){return e.length===0?ka:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var wt=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=l1(n)?n:new _c(n,r,i);return Is(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=lf(r),new r((i,o)=>{let s=new _c({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[nh](){return this}pipe(...n){return s1(n)(this)}toPromise(n){return n=lf(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function lf(e){var t;return(t=e??Kr.Promise)!==null&&t!==void 0?t:Promise}function a1(e){return e&&Ze(e.next)&&Ze(e.error)&&Ze(e.complete)}function l1(e){return e&&e instanceof th||a1(e)&&gm(e)}function c1(e){return Ze(e?.lift)}function ln(e){return t=>{if(c1(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Zt(e,t,n,r,i){return new u1(e,t,n,r,i)}var u1=class extends th{constructor(e,t,n,r,i,o){super(e),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(a){e.error(a)}}:super._next,this._error=r?function(s){try{r(s)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},no={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=no;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=t(o=>{n=void 0,e(o)});return new bt(()=>n?.(i))},requestAnimationFrame(...e){let{delegate:t}=no;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=no;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0},h1=fm(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),ve=(()=>{class e extends wt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new cf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new h1}next(n){Is(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Is(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Is(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?pm:(this.currentObservers=null,o.push(n),new bt(()=>{this.currentObservers=null,Us(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new wt;return n.source=this,n}}return e.create=(t,n)=>new cf(t,n),e})(),cf=class extends ve{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:pm}},rh=class extends ve{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},ih={now(){return(ih.delegate||Date).now()},delegate:void 0},d1=class extends ve{constructor(e=1/0,t=1/0,n=ih){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;t||(n.push(e),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let o=0;o<i.length&&!e.closed;o+=n?1:2)e.next(i[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let o=t.now(),s=0;for(let a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}}},f1=class extends bt{constructor(e,t){super()}schedule(e,t=0){return this}},$s={setInterval(e,t,...n){let{delegate:r}=$s;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=$s;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},_m=class extends f1{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;let r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return $s.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&$s.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r;try{this.work(e)}catch(i){n=!0,r=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Us(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},vc=class vm{constructor(t,n=vm.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};vc.now=ih.now;var ym=class extends vc{constructor(e,t=vc.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},oh=new ym(_m),p1=oh,g1=class extends _m{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return n!==null&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=no.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);let{actions:i}=e;t!=null&&((r=i[i.length-1])===null||r===void 0?void 0:r.id)!==t&&(no.cancelAnimationFrame(t),e._scheduled=void 0)}},m1=class extends ym{flush(e){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:n}=this,r;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}},_1=new m1(g1),sh=new wt(e=>e.complete());function bm(e){return e&&Ze(e.schedule)}function wm(e){return e[e.length-1]}function Ra(e){return bm(wm(e))?e.pop():void 0}function v1(e,t){return typeof wm(e)=="number"?e.pop():t}function y1(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(d){try{u(r.next(d))}catch(h){s(h)}}function l(d){try{u(r.throw(d))}catch(h){s(h)}}function u(d){d.done?o(d.value):i(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function uf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pi(e){return this instanceof pi?(this.v=e,this):new pi(e)}function b1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(m){return function(b){return Promise.resolve(b).then(m,h)}}function a(m,b){r[m]&&(i[m]=function(S){return new Promise(function(N,P){o.push([m,S,N,P])>1||l(m,S)})},b&&(i[m]=b(i[m])))}function l(m,b){try{u(r[m](b))}catch(S){_(o[0][3],S)}}function u(m){m.value instanceof pi?Promise.resolve(m.value.v).then(d,h):_(o[0][2],m)}function d(m){l("next",m)}function h(m){l("throw",m)}function _(m,b){m(b),o.shift(),o.length&&l(o[0][0],o[0][1])}}function w1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof uf=="function"?uf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}var ah=e=>e&&typeof e.length=="number"&&typeof e!="function";function xm(e){return Ze(e?.then)}function Em(e){return Ze(e[nh])}function Sm(e){return Symbol.asyncIterator&&Ze(e?.[Symbol.asyncIterator])}function Cm(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function x1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Im=x1();function Tm(e){return Ze(e?.[Im])}function Dm(e){return b1(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield pi(t.read());if(r)return yield pi(void 0);yield yield pi(n)}}finally{t.releaseLock()}})}function Om(e){return Ze(e?.getReader)}function Cn(e){if(e instanceof wt)return e;if(e!=null){if(Em(e))return E1(e);if(ah(e))return S1(e);if(xm(e))return C1(e);if(Sm(e))return km(e);if(Tm(e))return I1(e);if(Om(e))return T1(e)}throw Cm(e)}function E1(e){return new wt(t=>{let n=e[nh]();if(Ze(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function S1(e){return new wt(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function C1(e){return new wt(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,mm)})}function I1(e){return new wt(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function km(e){return new wt(t=>{D1(e,t).catch(n=>t.error(n))})}function T1(e){return km(Dm(e))}function D1(e,t){var n,r,i,o;return y1(this,void 0,void 0,function*(){try{for(n=w1(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function dr(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Rm(e,t=0){return ln((n,r)=>{n.subscribe(Zt(r,i=>dr(r,e,()=>r.next(i),t),()=>dr(r,e,()=>r.complete(),t),i=>dr(r,e,()=>r.error(i),t)))})}function Pm(e,t=0){return ln((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function O1(e,t){return Cn(e).pipe(Pm(t),Rm(t))}function k1(e,t){return Cn(e).pipe(Pm(t),Rm(t))}function R1(e,t){return new wt(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function P1(e,t){return new wt(n=>{let r;return dr(n,t,()=>{r=e[Im](),dr(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>Ze(r?.return)&&r.return()})}function Nm(e,t){if(!e)throw new Error("Iterable cannot be null");return new wt(n=>{dr(n,t,()=>{let r=e[Symbol.asyncIterator]();dr(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function N1(e,t){return Nm(Dm(e),t)}function A1(e,t){if(e!=null){if(Em(e))return O1(e,t);if(ah(e))return R1(e,t);if(xm(e))return k1(e,t);if(Sm(e))return Nm(e,t);if(Tm(e))return P1(e,t);if(Om(e))return N1(e,t)}throw Cm(e)}function Pa(e,t){return t?A1(e,t):Cn(e)}function lh(...e){let t=Ra(e);return Pa(e,t)}function M1(e){return e instanceof Date&&!isNaN(e)}function Na(e,t){return ln((n,r)=>{let i=0;n.subscribe(Zt(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:L1}=Array;function V1(e,t){return L1(t)?e(...t):e(t)}function j1(e){return Na(t=>V1(e,t))}function F1(e,t,n,r,i,o,s,a){let l=[],u=0,d=0,h=!1,_=()=>{h&&!l.length&&!u&&t.complete()},m=S=>u<r?b(S):l.push(S),b=S=>{o&&t.next(S),u++;let N=!1;Cn(n(S,d++)).subscribe(Zt(t,P=>{i?.(P),o?m(P):t.next(P)},()=>{N=!0},void 0,()=>{if(N)try{for(u--;l.length&&u<r;){let P=l.shift();s?dr(t,s,()=>b(P)):b(P)}_()}catch(P){t.error(P)}}))};return e.subscribe(Zt(t,m,()=>{h=!0,_()})),()=>{a?.()}}function ho(e,t,n=1/0){return Ze(t)?ho((r,i)=>Na((o,s)=>t(r,o,i,s))(Cn(e(r,i))),n):(typeof t=="number"&&(n=t),ln((r,i)=>F1(r,i,e,n)))}function Am(e=1/0){return ho(ka,e)}function B1(){return Am(1)}function hf(...e){return B1()(Pa(e,Ra(e)))}function U1(e){return new wt(t=>{Cn(e()).subscribe(t)})}var H1=["addListener","removeListener"],$1=["addEventListener","removeEventListener"],z1=["on","off"];function yc(e,t,n,r){if(Ze(n)&&(r=n,n=void 0),r)return yc(e,t,n).pipe(j1(r));let[i,o]=Z1(e)?$1.map(s=>a=>e[s](t,a,n)):q1(e)?H1.map(df(e,t)):W1(e)?z1.map(df(e,t)):[];if(!i&&ah(e))return ho(s=>yc(s,t,n))(Cn(e));if(!i)throw new TypeError("Invalid event target");return new wt(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return i(a),()=>o(a)})}function df(e,t){return n=>r=>e[n](t,r)}function q1(e){return Ze(e.addListener)&&Ze(e.removeListener)}function W1(e){return Ze(e.on)&&Ze(e.off)}function Z1(e){return Ze(e.addEventListener)&&Ze(e.removeEventListener)}function Mm(e=0,t,n=p1){let r=-1;return t!=null&&(bm(t)?n=t:r=t),new wt(i=>{let o=M1(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function G1(e=0,t=oh){return e<0&&(e=0),Mm(e,e,t)}function Aa(...e){let t=Ra(e),n=v1(e,1/0),r=e;return r.length?r.length===1?Cn(r[0]):Am(n)(Pa(r,t)):sh}function ch(e,t){return ln((n,r)=>{let i=0;n.subscribe(Zt(r,o=>e.call(t,o,i++)&&r.next(o)))})}function Y1(e){return ln((t,n)=>{let r=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,r){r=!1;let u=i;i=null,n.next(u)}s&&n.complete()},l=()=>{o=null,s&&n.complete()};t.subscribe(Zt(n,u=>{r=!0,i=u,o||Cn(e(u)).subscribe(o=Zt(n,a,l))},()=>{s=!0,(!r||!o||o.closed)&&n.complete()}))})}function Lm(e,t=oh){return Y1(()=>Mm(e,t))}function K1(e){return e<=0?()=>sh:ln((t,n)=>{let r=0;t.subscribe(Zt(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function J1(e,t=ka){return e=e??X1,ln((n,r)=>{let i,o=!0;n.subscribe(Zt(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function X1(e,t){return e===t}function Q1(e){return ch((t,n)=>e<=n)}function Vm(...e){let t=Ra(e);return ln((n,r)=>{(t?hf(e,n,t):hf(e,n)).subscribe(r)})}function jm(e,t){return ln((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(Zt(r,l=>{i?.unsubscribe();let u=0,d=o++;Cn(e(l,d)).subscribe(i=Zt(r,h=>r.next(t?t(l,h,d,u++):h),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function bi(e){return ln((t,n)=>{Cn(e).subscribe(Zt(n,()=>n.complete(),mc)),!n.closed&&t.subscribe(n)})}function ex(e,t,n){let r=Ze(e)||t||n?{next:e,error:t,complete:n}:e;return r?ln((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(Zt(o,l=>{var u;(u=r.next)===null||u===void 0||u.call(r,l),o.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),o.complete()},l=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,l),o.error(l)},()=>{var l,u;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ka}var Fm="https://g.co/ng/security#xss",De=class extends Error{code;constructor(e,t){super(tx(e,t)),this.code=e}};function tx(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Bm=Symbol("InputSignalNode#UNSET"),nx=Ne(A({},dm),{transformFn:void 0,applyValueToInputSignal(e,t){Qu(e,t)}});function Um(e,t){let n=Object.create(nx);n.value=e,n.transformFn=t?.transform;function r(){if(Xu(n),n.value===Bm)throw new De(-950,!1);return n.value}return r[nn]=n,r}function Po(e){return{toString:e}.toString()}var as="__parameters__";function rx(e){return function(...t){if(e){let n=e(...t);for(let r in n)this[r]=n[r]}}}function Hm(e,t,n){return Po(()=>{let r=rx(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(l,u,d){let h=l.hasOwnProperty(as)?l[as]:Object.defineProperty(l,as,{value:[]})[as];for(;h.length<=d;)h.push(null);return(h[d]=h[d]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var fo=globalThis;function et(e){for(let t in e)if(e[t]===et)return t;throw Error("Could not find renamed property on target object.")}function ix(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function mn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(mn).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
13
|
+
`);return r>=0?n.slice(0,r):n}function bc(e,t){return e?t?`${e} ${t}`:e:t||""}var ox=et({__forward_ref__:et});function $m(e){return e.__forward_ref__=$m,e.toString=function(){return mn(this())},e}function At(e){return zm(e)?e():e}function zm(e){return typeof e=="function"&&e.hasOwnProperty(ox)&&e.__forward_ref__===$m}function de(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function uh(e){return{providers:e.providers||[],imports:e.imports||[]}}function hh(e){return ff(e,qm)||ff(e,Wm)}function ff(e,t){return e.hasOwnProperty(t)?e[t]:null}function sx(e){return e&&(e[qm]||e[Wm])||null}function pf(e){return e&&(e.hasOwnProperty(gf)||e.hasOwnProperty(ax))?e[gf]:null}var qm=et({\u0275prov:et}),gf=et({\u0275inj:et}),Wm=et({ngInjectableDef:et}),ax=et({ngInjectorDef:et}),Ee=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=de({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Zm(e){return e&&!!e.\u0275providers}var lx=et({\u0275cmp:et}),cx=et({\u0275dir:et}),Gm=et({\u0275pipe:et}),zs=et({\u0275fac:et}),ro=et({__NG_ELEMENT_ID__:et}),mf=et({__NG_ENV_ID__:et});function No(e){return typeof e=="string"?e:e==null?"":String(e)}function ux(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():No(e)}function hx(e,t){throw new De(-200,e)}function dh(e,t){throw new De(-201,!1)}var Te=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Te||{}),wc;function Ym(){return wc}function Bt(e){let t=wc;return wc=e,t}function Km(e,t,n){let r=hh(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&Te.Optional)return null;if(t!==void 0)return t;dh(e,"Injector")}var dx={},po=dx,xc="__NG_DI_FLAG__",qs="ngTempTokenPath",fx="ngTokenPath",px=/\n/gm,gx="\u0275",_f="__source",gi;function mx(){return gi}function sr(e){let t=gi;return gi=e,t}function _x(e,t=Te.Default){if(gi===void 0)throw new De(-203,!1);return gi===null?Km(e,void 0,t):gi.get(e,t&Te.Optional?null:void 0,t)}function je(e,t=Te.Default){return(Ym()||_x)(At(e),t)}function R(e,t=Te.Default){return je(e,Ma(t))}function Ma(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ec(e){let t=[];for(let n=0;n<e.length;n++){let r=At(e[n]);if(Array.isArray(r)){if(r.length===0)throw new De(900,!1);let i,o=Te.Default;for(let s=0;s<r.length;s++){let a=r[s],l=vx(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}t.push(je(i,o))}else t.push(je(r))}return t}function Jm(e,t){return e[xc]=t,e.prototype[xc]=t,e}function vx(e){return e[xc]}function yx(e,t,n,r){let i=e[qs];throw t[_f]&&i.unshift(t[_f]),e.message=bx(`
|
|
14
|
+
`+e.message,i,n,r),e[fx]=i,e[qs]=null,e}function bx(e,t,n,r=null){e=e&&e.charAt(0)===`
|
|
15
|
+
`&&e.charAt(1)==gx?e.slice(2):e;let i=mn(t);if(Array.isArray(t))i=t.map(mn).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):mn(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(px,`
|
|
16
|
+
`)}`}var wx=Jm(Hm("Optional"),8),xx=Jm(Hm("SkipSelf"),4);function Mr(e,t){return e.hasOwnProperty(zs)?e[zs]:null}function Ex(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function Sx(e){return e.flat(Number.POSITIVE_INFINITY)}function fh(e,t){e.forEach(n=>Array.isArray(n)?fh(n,t):t(n))}function Xm(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ws(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Cx(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function La(e,t,n){let r=Ao(e,t);return r>=0?e[r|1]=n:(r=~r,Cx(e,r,t,n)),r}function Ol(e,t){let n=Ao(e,t);if(n>=0)return e[n|1]}function Ao(e,t){return Ix(e,t,1)}function Ix(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var Lr={},Mt=[],Zs=new Ee(""),Qm=new Ee("",-1),e_=new Ee(""),t_=class{get(e,t=po){if(t===po){let n=new Error(`NullInjectorError: No provider for ${mn(e)}!`);throw n.name="NullInjectorError",n}return t}};function Vr(e){return e[lx]||null}function n_(e){return e[cx]||null}function r_(e){return e[Gm]||null}function Tx(e){let t=Vr(e)||n_(e)||r_(e);return t!==null&&t.standalone}function Dx(e){return{\u0275providers:e}}function Ox(...e){return{\u0275providers:i_(!0,e),\u0275fromNgModule:!0}}function i_(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return fh(t,s=>{let a=s;Sc(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&o_(i,o),n}function o_(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];ph(i,o=>{t(o,r)})}}function Sc(e,t,n,r){if(e=At(e),!e)return!1;let i=null,o=pf(e),s=!o&&Vr(e);if(!o&&!s){let l=e.ngModule;if(o=pf(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of l)Sc(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{fh(o.imports,d=>{Sc(d,t,n,r)&&(u||=[],u.push(d))})}finally{}u!==void 0&&o_(u,t)}if(!a){let u=Mr(i)||(()=>new i);t({provide:i,useFactory:u,deps:Mt},i),t({provide:e_,useValue:i,multi:!0},i),t({provide:Zs,useValue:()=>je(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let u=e;ph(l,d=>{t(d,u)})}}else return!1;return i!==e&&e.providers!==void 0}function ph(e,t){for(let n of e)Zm(n)&&(n=n.\u0275providers),Array.isArray(n)?ph(n,t):t(n)}var kx=et({provide:String,useValue:et});function s_(e){return e!==null&&typeof e=="object"&&kx in e}function Rx(e){return!!(e&&e.useExisting)}function Px(e){return!!(e&&e.useFactory)}function wi(e){return typeof e=="function"}function Nx(e){return!!e.useClass}var gh=new Ee(""),Ts={},Ax={},kl;function Va(){return kl===void 0&&(kl=new t_),kl}var Gn=class{},mh=class extends Gn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Ic(e,o=>this.processProvider(o)),this.records.set(Qm,li(void 0,this)),r.has("environment")&&this.records.set(Gn,li(void 0,this));let i=this.records.get(gh);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(e_,Mt,Te.Self))}destroy(){Ji(this),this._destroyed=!0;let e=Ie(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ie(e)}}onDestroy(e){return Ji(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Ji(this);let t=sr(this),n=Bt(void 0),r;try{return e()}finally{sr(t),Bt(n)}}get(e,t=po,n=Te.Default){if(Ji(this),e.hasOwnProperty(mf))return e[mf](this);n=Ma(n);let r,i=sr(this),o=Bt(void 0);try{if(!(n&Te.SkipSelf)){let a=this.records.get(e);if(a===void 0){let l=Fx(e)&&hh(e);l&&this.injectableDefInScope(l)?a=li(Cc(e),Ts):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a)}let s=n&Te.Self?Va():this.parent;return t=n&Te.Optional&&t===po?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[qs]=s[qs]||[]).unshift(mn(e)),i)throw s;return yx(s,e,"R3InjectorError",this.source)}else throw s}finally{Bt(o),sr(i)}}resolveInjectorInitializers(){let e=Ie(null),t=sr(this),n=Bt(void 0),r;try{let i=this.get(Zs,Mt,Te.Self);for(let o of i)o()}finally{sr(t),Bt(n),Ie(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(mn(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=At(e);let t=wi(e)?e:At(e&&e.provide),n=Lx(e);if(!wi(e)&&e.multi===!0){let r=this.records.get(t);r||(r=li(void 0,Ts,!0),r.factory=()=>Ec(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=Ie(null);try{return t.value===Ts&&(t.value=Ax,t.value=t.factory()),typeof t.value=="object"&&t.value&&jx(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{Ie(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=At(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Cc(e){let t=hh(e),n=t!==null?t.factory:Mr(e);if(n!==null)return n;if(e instanceof Ee)throw new De(204,!1);if(e instanceof Function)return Mx(e);throw new De(204,!1)}function Mx(e){if(e.length>0)throw new De(204,!1);let t=sx(e);return t!==null?()=>t.factory(e):()=>new e}function Lx(e){if(s_(e))return li(void 0,e.useValue);{let t=a_(e);return li(t,Ts)}}function a_(e,t,n){let r;if(wi(e)){let i=At(e);return Mr(i)||Cc(i)}else if(s_(e))r=()=>At(e.useValue);else if(Px(e))r=()=>e.useFactory(...Ec(e.deps||[]));else if(Rx(e))r=()=>je(At(e.useExisting));else{let i=At(e&&(e.useClass||e.provide));if(Vx(e))r=()=>new i(...Ec(e.deps));else return Mr(i)||Cc(i)}return r}function Ji(e){if(e.destroyed)throw new De(205,!1)}function li(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Vx(e){return!!e.deps}function jx(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Fx(e){return typeof e=="function"||typeof e=="object"&&e instanceof Ee}function Ic(e,t){for(let n of e)Array.isArray(n)?Ic(n,t):n&&Zm(n)?Ic(n.\u0275providers,t):t(n)}function l_(e,t){e instanceof mh&&Ji(e);let n,r=sr(e),i=Bt(void 0);try{return t()}finally{sr(r),Bt(i)}}function c_(){return Ym()!==void 0||mx()!=null}function ja(e){if(!c_())throw new De(-203,!1)}function Bx(e){return typeof e=="function"}var Qn=0,ge=1,fe=2,Rt=3,_n=4,In=5,go=6,Gs=7,ft=8,mo=9,Yn=10,_t=11,_o=12,vf=13,Pi=14,wn=15,jr=16,ci=17,Kn=18,Mo=19,u_=20,fr=21,Ds=22,Fr=23,Wt=24,mi=25,ht=26,h_=1,Br=7,Ys=8,xi=9,kt=10;function zn(e){return Array.isArray(e)&&typeof e[h_]=="object"}function er(e){return Array.isArray(e)&&e[h_]===!0}function _h(e){return(e.flags&4)!==0}function Ni(e){return e.componentOffset>-1}function Fa(e){return(e.flags&1)===1}function Ln(e){return!!e.template}function Ks(e){return(e[fe]&512)!==0}function Lo(e){return(e[fe]&256)===256}var Ux=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function d_(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var f_=(()=>{let e=()=>p_;return e.ngInherit=!0,e})();function p_(e){return e.type.prototype.ngOnChanges&&(e.setInput=$x),Hx}function Hx(){let e=m_(this),t=e?.current;if(t){let n=e.previous;if(n===Lr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function $x(e,t,n,r,i){let o=this.declaredInputs[r],s=m_(e)||zx(e,{previous:Lr,current:null}),a=s.current||(s.current={}),l=s.previous,u=l[o];a[o]=new Ux(u&&u.currentValue,n,l===Lr),d_(e,t,i,n)}var g_="__ngSimpleChanges__";function m_(e){return e[g_]||null}function zx(e,t){return e[g_]=t}var qx=null,ze=function(e,t=null,n){qx?.(e,t,n)},__="svg",Wx="math";function Gt(e){for(;Array.isArray(e);)e=e[Qn];return e}function v_(e,t){return Gt(t[e])}function Vn(e,t){return Gt(t[e.index])}function vh(e,t){return e.data[t]}function Ba(e,t){return e[t]}function on(e,t){let n=t[e];return zn(n)?n:n[Qn]}function Zx(e){return(e[fe]&4)===4}function yh(e){return(e[fe]&128)===128}function Gx(e){return er(e[Rt])}function gr(e,t){return t==null?null:e[t]}function y_(e){e[ci]=0}function bh(e){e[fe]&1024||(e[fe]|=1024,yh(e)&&Ai(e))}function Yx(e,t){for(;e>0;)t=t[Pi],e--;return t}function Ua(e){return!!(e[fe]&9216||e[Wt]?.dirty)}function Tc(e){e[Yn].changeDetectionScheduler?.notify(8),e[fe]&64&&(e[fe]|=1024),Ua(e)&&Ai(e)}function Ai(e){e[Yn].changeDetectionScheduler?.notify(0);let t=Ur(e);for(;t!==null&&!(t[fe]&8192||(t[fe]|=8192,!yh(t)));)t=Ur(t)}function b_(e,t){if(Lo(e))throw new De(911,!1);e[fr]===null&&(e[fr]=[]),e[fr].push(t)}function Kx(e,t){if(e[fr]===null)return;let n=e[fr].indexOf(t);n!==-1&&e[fr].splice(n,1)}function Ur(e){let t=e[Rt];return er(t)?t[Rt]:t}function w_(e){return e[Gs]??=[]}function x_(e){return e.cleanup??=[]}function Jx(e,t,n,r){let i=w_(t);i.push(n),e.firstCreatePass&&x_(e).push(r,i.length-1)}var be={lFrame:R_(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Dc=!1;function Xx(){return be.lFrame.elementDepthCount}function Qx(){be.lFrame.elementDepthCount++}function eE(){be.lFrame.elementDepthCount--}function wh(){return be.bindingsEnabled}function tE(){return be.skipHydrationRootTNode!==null}function nE(e){return be.skipHydrationRootTNode===e}function rE(){be.skipHydrationRootTNode=null}function ye(){return be.lFrame.lView}function pt(){return be.lFrame.tView}function ct(e){return be.lFrame.contextLView=e,e[ft]}function ut(e){return be.lFrame.contextLView=null,e}function Yt(){let e=E_();for(;e!==null&&e.type===64;)e=e.parent;return e}function E_(){return be.lFrame.currentTNode}function iE(){let e=be.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function yr(e,t){let n=be.lFrame;n.currentTNode=e,n.isParent=t}function xh(){return be.lFrame.isParent}function S_(){be.lFrame.isParent=!1}function C_(){return be.lFrame.contextLView}function I_(){return Dc}function Js(e){let t=Dc;return Dc=e,t}function Vo(){let e=be.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function oE(e){return be.lFrame.bindingIndex=e}function jo(){return be.lFrame.bindingIndex++}function T_(e){let t=be.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function sE(){return be.lFrame.inI18n}function aE(e,t){let n=be.lFrame;n.bindingIndex=n.bindingRootIndex=e,Oc(t)}function lE(){return be.lFrame.currentDirectiveIndex}function Oc(e){be.lFrame.currentDirectiveIndex=e}function cE(e){let t=be.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function D_(){return be.lFrame.currentQueryIndex}function Eh(e){be.lFrame.currentQueryIndex=e}function uE(e){let t=e[ge];return t.type===2?t.declTNode:t.type===1?e[In]:null}function O_(e,t,n){if(n&Te.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&Te.Host))&&(i=uE(o),!(i===null||(o=o[Pi],i.type&10))););if(i===null)return!1;t=i,e=o}let r=be.lFrame=k_();return r.currentTNode=t,r.lView=e,!0}function Sh(e){let t=k_(),n=e[ge];be.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function k_(){let e=be.lFrame,t=e===null?null:e.child;return t===null?R_(e):t}function R_(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function P_(){let e=be.lFrame;return be.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var N_=P_;function Ch(){let e=P_();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function hE(e){return(be.lFrame.contextLView=Yx(e,be.lFrame.contextLView))[ft]}function tr(){return be.lFrame.selectedIndex}function Hr(e){be.lFrame.selectedIndex=e}function Ih(){let e=be.lFrame;return vh(e.tView,e.selectedIndex)}function mr(){be.lFrame.currentNamespace=__}function Xs(){dE()}function dE(){be.lFrame.currentNamespace=null}function fE(){return be.lFrame.currentNamespace}var A_=!0;function Ha(){return A_}function $a(e){A_=e}function pE(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=p_(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Th(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:a,ngAfterViewChecked:l,ngOnDestroy:u}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Os(e,t,n){M_(e,t,3,n)}function ks(e,t,n,r){(e[fe]&3)===n&&M_(e,t,n,r)}function Rl(e,t){let n=e[fe];(n&3)===t&&(n&=16383,n+=1,e[fe]=n)}function M_(e,t,n,r){let i=r!==void 0?e[ci]&65535:0,o=r??-1,s=t.length-1,a=0;for(let l=i;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[ci]+=65536),(a<o||o==-1)&&(gE(e,n,t,l),e[ci]=(e[ci]&4294901760)+l+2),l++}function yf(e,t){ze(4,e,t);let n=Ie(null);try{t.call(e)}finally{Ie(n),ze(5,e,t)}}function gE(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[fe]>>14<e[ci]>>16&&(e[fe]&3)===t&&(e[fe]+=16384,yf(a,o)):yf(a,o)}var _i=-1,Fo=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function mE(e){return e instanceof Fo}function _E(e){return(e.flags&8)!==0}function vE(e){return(e.flags&16)!==0}function yE(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];wE(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function bE(e){return e===3||e===4||e===6}function wE(e){return e.charCodeAt(0)===64}function Ei(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?bf(e,n,i,null,t[++r]):bf(e,n,i,null,null))}}return e}function bf(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Pl={},xE=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Ma(n);let r=this.injector.get(e,Pl,n);return r!==Pl||t===Pl?r:this.parentInjector.get(e,t,n)}};function L_(e){return e!==_i}function Qs(e){return e&32767}function EE(e){return e>>16}function ea(e,t){let n=EE(e),r=t;for(;n>0;)r=r[Pi],n--;return r}var kc=!0;function ta(e){let t=kc;return kc=e,t}var SE=256,V_=SE-1,j_=5,CE=0,Nn={};function IE(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ro)&&(r=n[ro]),r==null&&(r=n[ro]=CE++);let i=r&V_,o=1<<i;t.data[e+(i>>j_)]|=o}function na(e,t){let n=F_(e,t);if(n!==-1)return n;let r=t[ge];r.firstCreatePass&&(e.injectorIndex=t.length,Nl(r.data,e),Nl(t,null),Nl(r.blueprint,null));let i=Dh(e,t),o=e.injectorIndex;if(L_(i)){let s=Qs(i),a=ea(i,t),l=a[ge].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function Nl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function F_(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Dh(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=q_(i),r===null)return _i;if(n++,i=i[Pi],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _i}function Rc(e,t,n){IE(e,t,n)}function B_(e,t,n){if(n&Te.Optional||e!==void 0)return e;dh(t,"NodeInjector")}function U_(e,t,n,r){if(n&Te.Optional&&r===void 0&&(r=null),(n&(Te.Self|Te.Host))===0){let i=e[mo],o=Bt(void 0);try{return i?i.get(t,r,n&Te.Optional):Km(t,r,n&Te.Optional)}finally{Bt(o)}}return B_(r,t,n)}function H_(e,t,n,r=Te.Default,i){if(e!==null){if(t[fe]&2048&&!(r&Te.Self)){let s=kE(e,t,n,r,Nn);if(s!==Nn)return s}let o=$_(e,t,n,r,Nn);if(o!==Nn)return o}return U_(t,n,r,i)}function $_(e,t,n,r,i){let o=DE(n);if(typeof o=="function"){if(!O_(t,e,r))return r&Te.Host?B_(i,n,r):U_(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&Te.Optional))dh(n);else return s}finally{N_()}}else if(typeof o=="number"){let s=null,a=F_(e,t),l=_i,u=r&Te.Host?t[wn][In]:null;for((a===-1||r&Te.SkipSelf)&&(l=a===-1?Dh(e,t):t[a+8],l===_i||!xf(r,!1)?a=-1:(s=t[ge],a=Qs(l),t=ea(l,t)));a!==-1;){let d=t[ge];if(wf(o,a,d.data)){let h=TE(a,t,n,s,r,u);if(h!==Nn)return h}l=t[a+8],l!==_i&&xf(r,t[ge].data[a+8]===u)&&wf(o,a,t)?(s=d,a=Qs(l),t=ea(l,t)):a=-1}}return i}function TE(e,t,n,r,i,o){let s=t[ge],a=s.data[e+8],l=r==null?Ni(a)&&kc:r!=s&&(a.type&3)!==0,u=i&Te.Host&&o===a,d=Rs(a,s,n,l,u);return d!==null?vo(t,s,d,a):Nn}function Rs(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,u=e.directiveEnd,d=o>>20,h=r?a:a+d,_=i?a+d:u;for(let m=h;m<_;m++){let b=s[m];if(m<l&&n===b||m>=l&&b.type===n)return m}if(i){let m=s[l];if(m&&Ln(m)&&m.type===n)return l}return null}function vo(e,t,n,r){let i=e[n],o=t.data;if(mE(i)){let s=i;s.resolving&&hx(ux(o[n]));let a=ta(s.canSeeViewProviders);s.resolving=!0;let l,u=s.injectImpl?Bt(s.injectImpl):null,d=O_(e,r,Te.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&pE(n,o[n],t)}finally{u!==null&&Bt(u),ta(a),s.resolving=!1,N_()}}return i}function DE(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ro)?e[ro]:void 0;return typeof t=="number"?t>=0?t&V_:OE:t}function wf(e,t,n){let r=1<<e;return!!(n[t+(e>>j_)]&r)}function xf(e,t){return!(e&Te.Self)&&!(e&Te.Host&&t)}var io=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return H_(this._tNode,this._lView,e,Ma(n),t)}};function OE(){return new io(Yt(),ye())}function z_(e){return Po(()=>{let t=e.prototype.constructor,n=t[zs]||Pc(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[zs]||Pc(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Pc(e){return zm(e)?()=>{let t=Pc(At(e));return t&&t()}:Mr(e)}function kE(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[fe]&2048&&!Ks(s);){let a=$_(o,s,n,r|Te.Self,Nn);if(a!==Nn)return a;let l=o.parent;if(!l){let u=s[u_];if(u){let d=u.get(n,Nn,r);if(d!==Nn)return d}l=q_(s),s=s[Pi]}o=l}return i}function q_(e){let t=e[ge],n=t.type;return n===2?t.declTNode:n===1?e[In]:null}function Ef(e,t=null,n=null,r){let i=RE(e,t,n,r);return i.resolveInjectorInitializers(),i}function RE(e,t=null,n=null,r,i=new Set){let o=[n||Mt,Ox(e)];return r=r||(typeof e=="object"?void 0:mn(e)),new mh(o,t||Va(),r||null,i)}var Tt=class W_{static THROW_IF_NOT_FOUND=po;static NULL=new t_;static create(t,n){if(Array.isArray(t))return Ef({name:""},n,t,"");{let r=t.name??"";return Ef({name:r},t.parent,t.providers,r)}}static \u0275prov=de({token:W_,providedIn:"any",factory:()=>je(Qm)});static __NG_ELEMENT_ID__=-1},PE=new Ee("");PE.__NG_ELEMENT_ID__=e=>{let t=Yt();if(t===null)throw new De(204,!1);if(t.type&2)return t.value;if(e&Te.Optional)return null;throw new De(204,!1)};var Z_=!1,Bo=(()=>{class e{static __NG_ELEMENT_ID__=NE;static __NG_ENV_ID__=n=>n}return e})(),G_=class extends Bo{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return b_(this._lView,e),()=>Kx(this._lView,e)}};function NE(){return new G_(ye())}var Jr=class{},Oh=new Ee("",{providedIn:"root",factory:()=>!1}),Y_=new Ee(""),kh=new Ee(""),Uo=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new rh(!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=de({token:e,providedIn:"root",factory:()=>new e})}return e})(),AE=class extends ve{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,c_()&&(this.destroyRef=R(Bo,{optional:!0})??void 0,this.pendingTasks=R(Uo,{optional:!0})??void 0)}emit(e){let t=Ie(null);try{super.next(e)}finally{Ie(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let a=e;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 e instanceof bt&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},Xe=AE;function yo(...e){}function K_(e){let t,n;function r(){e=yo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Sf(e){return queueMicrotask(()=>e()),()=>{e=yo}}var Rh="isAngularZone",ra=Rh+"_ID",ME=0,Ge=class Nc{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Xe(!1);onMicrotaskEmpty=new Xe(!1);onStable=new Xe(!1);onError=new Xe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Z_}=t;if(typeof Zone>"u")throw new De(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,jE(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Rh)===!0}static assertInAngularZone(){if(!Nc.isInAngularZone())throw new De(909,!1)}static assertNotInAngularZone(){if(Nc.isInAngularZone())throw new De(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,LE,yo,yo);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},LE={};function Ph(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function VE(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){K_(()=>{e.callbackScheduled=!1,Ac(e),e.isCheckStableRunning=!0,Ph(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ac(e)}function jE(e){let t=()=>{VE(e)},n=ME++;e._inner=e._inner.fork({name:"angular",properties:{[Rh]:!0,[ra]:n,[ra+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(FE(l))return r.invokeTask(o,s,a,l);try{return Cf(e),r.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),If(e)}},onInvoke:(r,i,o,s,a,l,u)=>{try{return Cf(e),r.invoke(o,s,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!BE(l)&&t(),If(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ac(e),Ph(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ac(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Cf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function If(e){e._nesting--,Ph(e)}var J_=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Xe;onMicrotaskEmpty=new Xe;onStable=new Xe;onError=new Xe;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function FE(e){return X_(e,"__ignore_ng_zone__")}function BE(e){return X_(e,"__scheduler_tick__")}function X_(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Xr=class{_console=console;handleError(e){this._console.error("ERROR",e)}},UE=new Ee("",{providedIn:"root",factory:()=>{let e=R(Ge),t=R(Xr);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Tf(e,t){return Um(e,t)}function HE(e){return Um(Bm,e)}var $E=(Tf.required=HE,Tf);function zE(){return Mi(Yt(),ye())}function Mi(e,t){return new $t(Vn(e,t))}var $t=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=zE}return e})();function qE(e){return e instanceof $t?e.nativeElement:e}function Jn(e,t){let n=Zw(e),r=n[nn];return t?.equal&&(r.equal=t.equal),n.set=i=>Qu(r,i),n.update=i=>Gw(r,i),n.asReadonly=WE.bind(n),n}function WE(){let e=this[nn];if(e.readonlyFn===void 0){let t=()=>this();t[nn]=e,e.readonlyFn=t}return e.readonlyFn}function ZE(){return this._results[Symbol.iterator]()}var GE=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ve}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=Sx(e);(this._changesDetected=!Ex(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=ZE};function Q_(e){return(e.flags&128)===128}var ev=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ev||{}),Nh=new Map,YE=0;function KE(){return YE++}function JE(e){Nh.set(e[Mo],e)}function tv(e){return Nh.get(e)||null}function Mc(e){Nh.delete(e[Mo])}var XE=class{lViewId;nodeIndex;native;component;directives;localRefs;get lView(){return tv(this.lViewId)}constructor(e,t,n){this.lViewId=e,this.nodeIndex=t,this.native=n}};function QE(e){let t=Al(e);if(t){if(zn(t)){let n=t,r,i,o;if(nv(e)){if(r=nS(n,e),r==-1)throw new Error("The provided component was not found in the application");i=e}else if(eS(e)){if(r=rS(n,e),r==-1)throw new Error("The provided directive was not found in the application");o=iS(r,n)}else if(r=Of(n,e),r==-1)return null;let s=Gt(n[r]),a=Al(s),l=a&&!Array.isArray(a)?a:Df(n,r,s);if(i&&l.component===void 0&&(l.component=i,An(l.component,l)),o&&l.directives===void 0){l.directives=o;for(let u=0;u<o.length;u++)An(o[u],l)}An(l.native,l),t=l}}else{let n=e,r=n;for(;r=r.parentNode;){let i=Al(r);if(i){let o=Array.isArray(i)?i:i.lView;if(!o)return null;let s=Of(o,n);if(s>=0){let a=Gt(o[s]),l=Df(o,s,a);An(a,l),t=l;break}}}}return t||null}function Df(e,t,n){return new XE(e[Mo],t,n)}var Lc="__ngContext__";function An(e,t){zn(t)?(e[Lc]=t[Mo],JE(t)):e[Lc]=t}function Al(e){let t=e[Lc];return typeof t=="number"?tv(t):t||null}function nv(e){return e&&e.constructor&&e.constructor.\u0275cmp}function eS(e){return e&&e.constructor&&e.constructor.\u0275dir}function Of(e,t){let n=e[ge];for(let r=ht;r<n.bindingStartIndex;r++)if(Gt(e[r])===t)return r;return-1}function tS(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function nS(e,t){let n=e[ge].components;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(on(i,e)[ft]===t)return i}else if(on(ht,e)[ft]===t)return ht;return-1}function rS(e,t){let n=e[ge].firstChild;for(;n;){let r=n.directiveStart,i=n.directiveEnd;for(let o=r;o<i;o++)if(e[o]===t)return n.index;n=tS(n)}return-1}function iS(e,t){let n=t[ge].data[e];if(n.directiveStart===0)return Mt;let r=[];for(let i=n.directiveStart;i<n.directiveEnd;i++){let o=t[i];nv(o)||r.push(o)}return r}function rv(e){return ov(e[_o])}function iv(e){return ov(e[_n])}function ov(e){for(;e!==null&&!er(e);)e=e[_n];return e}var Vc;function oS(e){Vc=e}function sv(){if(Vc!==void 0)return Vc;if(typeof document<"u")return document;throw new De(210,!1)}var Ah=new Ee("",{providedIn:"root",factory:()=>sS}),sS="ng",av=new Ee(""),za=new Ee("",{providedIn:"platform",factory:()=>"unknown"}),aS=new Ee(""),lv=new Ee("",{providedIn:"root",factory:()=>sv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),lS="h",cS="b",cv=!1,uS=new Ee("",{providedIn:"root",factory:()=>cv}),Mh=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Mh||{}),Ho=new Ee(""),kf=new Set;function Qr(e){kf.has(e)||(kf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Lh=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=hS}return e})();function hS(){return new Lh(ye(),Yt())}var ui=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ui||{}),uv=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=de({token:e,providedIn:"root",factory:()=>new e})}return e})(),dS=[ui.EarlyRead,ui.Write,ui.MixedReadWrite,ui.Read],fS=(()=>{class e{ngZone=R(Ge);scheduler=R(Jr);errorHandler=R(Xr,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){R(Ho,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ze(16),this.executing=!0;for(let r of dS)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&ze(17)}register(n){let{view:r}=n;r!==void 0?((r[mi]??=[]).push(n),Ai(r),r[fe]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Mh.AFTER_NEXT_RENDER,n):n()}static \u0275prov=de({token:e,providedIn:"root",factory:()=>new e})}return e})(),pS=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,n,r,i,o=null){this.impl=e,this.hooks=t,this.view=n,this.once=r,this.snapshot=o,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[mi];e&&(this.view[mi]=e.filter(t=>t!==this))}};function hv(e,t){!t?.injector&&ja(hv);let n=t?.injector??R(Tt);return Qr("NgAfterRender"),dv(e,n,t,!1)}function $o(e,t){!t?.injector&&ja($o);let n=t?.injector??R(Tt);return Qr("NgAfterNextRender"),dv(e,n,t,!0)}function gS(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function dv(e,t,n,r){let i=t.get(uv);i.impl??=t.get(fS);let o=t.get(Ho,null,{optional:!0}),s=n?.phase??ui.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(Bo):null,l=t.get(Lh,null,{optional:!0}),u=new pS(i.impl,gS(e,s),l?.view,r,a,o?.snapshot(null));return i.impl.register(u),u}var mS=()=>null;function fv(e,t,n=!1){return mS(e,t,n)}function pv(e,t){let n=e.contentQueries;if(n!==null){let r=Ie(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];Eh(o),a.contentQueries(2,t[s],s)}}}finally{Ie(r)}}}function jc(e,t,n){Eh(0);let r=Ie(null);try{t(e,n)}finally{Ie(r)}}function Vh(e,t,n){if(_h(t)){let r=Ie(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{Ie(r)}}}var $n=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}($n||{}),ls;function _S(){if(ls===void 0&&(ls=null,fo.trustedTypes))try{ls=fo.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ls}function qa(e){return _S()?.createHTML(e)||e}var cs;function vS(){if(cs===void 0&&(cs=null,fo.trustedTypes))try{cs=fo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return cs}function Rf(e){return vS()?.createHTML(e)||e}var ei=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Fm})`}},yS=class extends ei{getTypeName(){return"HTML"}},bS=class extends ei{getTypeName(){return"Style"}},wS=class extends ei{getTypeName(){return"Script"}},xS=class extends ei{getTypeName(){return"URL"}},ES=class extends ei{getTypeName(){return"ResourceURL"}};function Hn(e){return e instanceof ei?e.changingThisBreaksApplicationSecurity:e}function Tr(e,t){let n=SS(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Fm})`)}return n===t}function SS(e){return e instanceof ei&&e.getTypeName()||null}function CS(e){return new yS(e)}function IS(e){return new bS(e)}function TS(e){return new wS(e)}function DS(e){return new xS(e)}function OS(e){return new ES(e)}function kS(e){let t=new PS(e);return NS()?new RS(t):t}var RS=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(qa(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},PS=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=qa(e),t}};function NS(){try{return!!new window.DOMParser().parseFromString(qa(""),"text/html")}catch{return!1}}var AS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function jh(e){return e=String(e),e.match(AS)?e:"unsafe:"+e}function nr(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function zo(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var gv=nr("area,br,col,hr,img,wbr"),mv=nr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_v=nr("rp,rt"),MS=zo(_v,mv),LS=zo(mv,nr("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")),VS=zo(_v,nr("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")),Pf=zo(gv,LS,VS,MS),vv=nr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jS=nr("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"),FS=nr("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"),BS=zo(vv,jS,FS),US=nr("script,style,template"),HS=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=qS(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=zS(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Nf(e).toLowerCase();if(!Pf.hasOwnProperty(t))return this.sanitizedSomething=!0,!US.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),o=i.name,s=o.toLowerCase();if(!BS.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let a=i.value;vv[s]&&(a=jh(a)),this.buf.push(" ",o,'="',Af(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Nf(e).toLowerCase();Pf.hasOwnProperty(t)&&!gv.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Af(e))}};function $S(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function zS(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw yv(t);return t}function qS(e){let t=e.firstChild;if(t&&$S(e,t))throw yv(t);return t}function Nf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function yv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var WS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ZS=/([^\#-~ |!])/g;function Af(e){return e.replace(/&/g,"&").replace(WS,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(ZS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var us;function bv(e,t){let n=null;try{us=us||kS(e);let r=t?String(t):"";n=us.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=us.getInertBodyElement(r)}while(r!==o);let s=new HS().sanitizeChildren(Mf(n)||n);return qa(s)}finally{if(n){let r=Mf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Mf(e){return"content"in e&&GS(e)?e.content:null}function GS(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Un=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Un||{});function ti(e){let t=wv();return t?Rf(t.sanitize(Un.HTML,e)||""):Tr(e,"HTML")?Rf(Hn(e)):bv(sv(),No(e))}function cn(e){let t=wv();return t?t.sanitize(Un.URL,e)||"":Tr(e,"URL")?Hn(e):jh(No(e))}function wv(){let e=ye();return e&&e[Yn].sanitizer}var YS=/^>|^->|<!--|-->|--!>|<!-$/g,KS=/(<|>)/g,JS="\u200B$1\u200B";function XS(e){return e.replace(YS,t=>t.replace(KS,JS))}function QS(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var xv="ng-template";function eC(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&QS(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Fh(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Fh(e){return e.type===4&&e.value!==xv}function tC(e,t,n){let r=e.type===4&&!n?xv:e.value;return t===r}function nC(e,t,n){let r=4,i=e.attrs,o=i!==null?oC(i):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!dn(r)&&!dn(l))return!1;if(s&&dn(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!tC(e,l,n)||l===""&&t.length===1){if(dn(r))return!1;s=!0}}else if(r&8){if(i===null||!eC(e,i,l,n)){if(dn(r))return!1;s=!0}}else{let u=t[++a],d=rC(l,i,Fh(e),n);if(d===-1){if(dn(r))return!1;s=!0;continue}if(u!==""){let h;if(d>o?h="":h=i[d+1].toLowerCase(),r&2&&u!==h){if(dn(r))return!1;s=!0}}}}return dn(r)||s}function dn(e){return(e&1)===0}function rC(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return sC(t,e)}function iC(e,t,n=!1){for(let r=0;r<t.length;r++)if(nC(e,t[r],n))return!0;return!1}function oC(e){for(let t=0;t<e.length;t++){let n=e[t];if(bE(n))return t}return e.length}function sC(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Lf(e,t){return e?":not("+t.trim()+")":t}function aC(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!dn(s)&&(t+=Lf(o,i),i=""),r=s,o=o||!dn(r);n++}return i!==""&&(t+=Lf(o,i)),t}function lC(e){return e.map(aC).join(",")}function cC(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!dn(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var Tn={};function uC(e,t){return e.createText(t)}function hC(e,t,n){e.setValue(t,n)}function dC(e,t){return e.createComment(XS(t))}function Ev(e,t,n){return e.createElement(t,n)}function ia(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Sv(e,t,n){e.appendChild(t,n)}function Vf(e,t,n,r,i){r!==null?ia(e,t,n,r,i):Sv(e,t,n)}function fC(e,t,n){e.removeChild(null,t,n)}function pC(e,t,n){e.setAttribute(t,"style",n)}function gC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Cv(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&yE(e,t,r),i!==null&&gC(e,t,i),o!==null&&pC(e,t,o)}function Bh(e,t,n,r,i,o,s,a,l,u,d){let h=ht+r,_=h+i,m=mC(h,_),b=typeof u=="function"?u():u;return m[ge]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:_,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:l,consts:b,incompleteFirstPass:!1,ssrId:d}}function mC(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Tn);return n}function _C(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Bh(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Uh(e,t,n,r,i,o,s,a,l,u,d){let h=t.blueprint.slice();return h[Qn]=i,h[fe]=r|4|128|8|64|1024,(u!==null||e&&e[fe]&2048)&&(h[fe]|=2048),y_(h),h[Rt]=h[Pi]=e,h[ft]=n,h[Yn]=s||e&&e[Yn],h[_t]=a||e&&e[_t],h[mo]=l||e&&e[mo]||null,h[In]=o,h[Mo]=KE(),h[go]=d,h[u_]=u,h[wn]=t.type==2?e[wn]:h,h}function vC(e,t,n){let r=Vn(t,e),i=_C(n),o=e[Yn].rendererFactory,s=Hh(e,Uh(e,i,null,Iv(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function Iv(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Tv(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Hh(e,t){return e[_o]?e[vf][_n]=t:e[_o]=t,e[vf]=t,t}function Z(e=1){Dv(pt(),ye(),tr()+e,!1)}function Dv(e,t,n,r){if(!r)if((t[fe]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Os(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ks(t,i,0,n)}Hr(n)}var Wa=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Wa||{});function Fc(e,t,n,r){let i=Ie(null);try{let[o,s,a]=e.inputs[n],l=null;(s&Wa.SignalBased)!==0&&(l=t[o][nn]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,o):d_(t,l,o,r)}finally{Ie(i)}}function Ov(e,t,n,r,i){let o=tr(),s=r&2;try{Hr(-1),s&&t.length>ht&&Dv(e,t,ht,!1),ze(s?2:0,i),n(r,i)}finally{Hr(o),ze(s?3:1,i)}}function Za(e,t,n){SC(e,t,n),(n.flags&64)===64&&CC(e,t,n)}function $h(e,t,n=Vn){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function yC(e,t,n,r){let i=r.get(uS,cv)||n===$n.ShadowDom,o=e.selectRootElement(t,i);return bC(o),o}function bC(e){wC(e)}var wC=()=>null;function xC(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function kv(e,t,n,r,i,o,s,a){if(!a&&qh(t,e,n,r,i)){Ni(t)&&EC(n,t.index);return}if(t.type&3){let l=Vn(t,n);r=xC(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(l,r,i)}else t.type&12}function EC(e,t){let n=on(t,e);n[fe]&16||(n[fe]|=64)}function SC(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Ni(n)&&vC(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||na(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],l=vo(t,e,s,n);if(An(l,t),o!==null&&OC(t,s-r,l,a,n,o),Ln(a)){let u=on(n.index,t);u[ft]=vo(t,e,s,n)}}}function CC(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=lE();try{Hr(o);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];Oc(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&IC(l,u)}}finally{Hr(-1),Oc(s)}}function IC(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function zh(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];iC(t,o.selectors,!1)&&(r??=[],Ln(o)?r.unshift(o):r.push(o))}return r}function TC(e,t,n,r,i,o){let s=Vn(e,t);DC(t[_t],s,o,e.value,n,r,i)}function DC(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?No(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function OC(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],u=s[a+1];Fc(r,n,l,u)}}function Rv(e,t){let n=e[mo],r=n?n.get(Xr,null):null;r&&r.handleError(t)}function qh(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let u=s[l],d=s[l+1],h=t.data[u];Fc(h,n[u],d,i),a=!0}if(o)for(let l of o){let u=n[l],d=t.data[l];Fc(d,u,r,i),a=!0}return a}function kC(e,t){let n=on(t,e),r=n[ge];RC(r,n);let i=n[Qn];i!==null&&n[go]===null&&(n[go]=fv(i,n[mo])),ze(18),Wh(r,n,n[ft]),ze(19,n[ft])}function RC(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Wh(e,t,n){Sh(t);try{let r=e.viewQuery;r!==null&&jc(1,r,n);let i=e.template;i!==null&&Ov(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Kn]?.finishViewCreation(e),e.staticContentQueries&&pv(e,t),e.staticViewQueries&&jc(2,e.viewQuery,n);let o=e.components;o!==null&&PC(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[fe]&=-5,Ch()}}function PC(e,t){for(let n=0;n<t.length;n++)kC(e,t[n])}function Ga(e,t,n,r){let i=Ie(null);try{let o=t.tView,s=e[fe]&4096?4096:16,a=Uh(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[jr]=l;let u=e[Kn];return u!==null&&(a[Kn]=u.createEmbeddedView(o)),Wh(o,a,n),a}finally{Ie(i)}}function bo(e,t){return!t||t.firstChild===null||Q_(e)}var NC;function Zh(e,t){return NC(e,t)}var ur=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ur||{});function Pv(e){return(e.flags&32)===32}function hi(e,t,n,r,i){if(r!=null){let o,s=!1;er(r)?o=r:zn(r)&&(s=!0,r=r[Qn]);let a=Gt(r);e===0&&n!==null?i==null?Sv(t,n,a):ia(t,n,a,i||null,!0):e===1&&n!==null?ia(t,n,a,i||null,!0):e===2?fC(t,a,s):e===3&&t.destroyNode(a),o!=null&&qC(t,e,o,n,i)}}function AC(e,t){Nv(e,t),t[Qn]=null,t[In]=null}function MC(e,t,n,r,i,o){r[Qn]=i,r[In]=t,Ja(e,r,n,1,i,o)}function Nv(e,t){t[Yn].changeDetectionScheduler?.notify(9),Ja(e,t,t[_t],2,null,null)}function LC(e){let t=e[_o];if(!t)return Ml(e[ge],e);for(;t;){let n=null;if(zn(t))n=t[_o];else{let r=t[kt];r&&(n=r)}if(!n){for(;t&&!t[_n]&&t!==e;)zn(t)&&Ml(t[ge],t),t=t[Rt];t===null&&(t=e),zn(t)&&Ml(t[ge],t),n=t&&t[_n]}t=n}}function Gh(e,t){let n=e[xi],r=n.indexOf(t);n.splice(r,1)}function Ya(e,t){if(Lo(t))return;let n=t[_t];n.destroyNode&&Ja(e,t,n,3,null,null),LC(t)}function Ml(e,t){if(Lo(t))return;let n=Ie(null);try{t[fe]&=-129,t[fe]|=256,t[Wt]&&Ro(t[Wt]),jC(e,t),VC(e,t),t[ge].type===1&&t[_t].destroy();let r=t[jr];if(r!==null&&er(t[Rt])){r!==t[Rt]&&Gh(r,t);let i=t[Kn];i!==null&&i.detachView(e)}Mc(t)}finally{Ie(n)}}function VC(e,t){let n=e.cleanup,r=t[Gs];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&&(t[Gs]=null);let i=t[fr];if(i!==null){t[fr]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[Fr];if(o!==null){t[Fr]=null;for(let s of o)s.destroy()}}function jC(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Fo)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];ze(4,a,l);try{l.call(a)}finally{ze(5,a,l)}}else{ze(4,i,o);try{o.call(i)}finally{ze(5,i,o)}}}}}function FC(e,t,n){return BC(e,t.parent,n)}function BC(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Qn];if(Ni(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===$n.None||i===$n.Emulated)return null}return Vn(r,n)}function UC(e,t,n){return $C(e,t,n)}function HC(e,t,n){return e.type&40?Vn(e,n):null}var $C=HC,jf;function Ka(e,t,n,r){let i=FC(e,r,t),o=t[_t],s=r.parent||t[In],a=UC(s,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Vf(o,i,n[l],a,!1);else Vf(o,i,n,a,!1);jf!==void 0&&jf(o,r,t,n,i)}function Xi(e,t){if(t!==null){let n=t.type;if(n&3)return Vn(t,e);if(n&4)return Bc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Xi(e,r);{let i=e[t.index];return er(i)?Bc(-1,i):Gt(i)}}else{if(n&128)return Xi(e,t.next);if(n&32)return Zh(t,e)()||Gt(e[t.index]);{let r=Av(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Ur(e[wn]);return Xi(i,r)}else return Xi(e,t.next)}}}return null}function Av(e,t){if(t!==null){let n=e[wn][In],r=t.projection;return n.projection[r]}return null}function Bc(e,t){let n=kt+e+1;if(n<t.length){let r=t[n],i=r[ge].firstChild;if(i!==null)return Xi(r,i)}return t[Br]}function Yh(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&An(Gt(a),r),n.flags|=2),!Pv(n))if(l&8)Yh(e,t,n.child,r,i,o,!1),hi(t,e,i,a,o);else if(l&32){let u=Zh(n,r),d;for(;d=u();)hi(t,e,i,d,o);hi(t,e,i,a,o)}else l&16?zC(e,t,r,n,i,o):hi(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Ja(e,t,n,r,i,o){Yh(n,r,e.firstChild,t,i,o,!1)}function zC(e,t,n,r,i,o){let s=n[wn],a=s[In].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];hi(t,e,i,u,o)}else{let l=a,u=s[Rt];Q_(r)&&(l.flags|=128),Yh(e,t,l,u,i,o,!0)}}function qC(e,t,n,r,i){let o=n[Br],s=Gt(n);o!==s&&hi(t,e,r,o,i);for(let a=kt;a<n.length;a++){let l=n[a];Ja(l[ge],l,e,t,r,o)}}function WC(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:ur.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=ur.Important),e.setStyle(n,r,i,o))}}function oa(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Gt(o)),er(o)&&ZC(o,r);let s=n.type;if(s&8)oa(e,t,n.child,r);else if(s&32){let a=Zh(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=Av(t,n);if(Array.isArray(a))r.push(...a);else{let l=Ur(t[wn]);oa(l[ge],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function ZC(e,t){for(let n=kt;n<e.length;n++){let r=e[n],i=r[ge].firstChild;i!==null&&oa(r[ge],r,i,t)}e[Br]!==e[Qn]&&t.push(e[Br])}function Mv(e){if(e[mi]!==null){for(let t of e[mi])t.impl.addSequence(t);e[mi].length=0}}var Lv=[];function GC(e){return e[Wt]??YC(e)}function YC(e){let t=Lv.pop()??Object.create(JC);return t.lView=e,t}function KC(e){e.lView[Wt]!==e&&(e.lView=null,Lv.push(e))}var JC=Ne(A({},Ri),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Ai(e.lView)},consumerOnSignalRead(){this.lView[Wt]=this}});function XC(e){let t=e[Wt]??Object.create(QC);return t.lView=e,t}var QC=Ne(A({},Ri),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ur(e.lView);for(;t&&!Vv(t[ge]);)t=Ur(t);t&&bh(t)},consumerOnSignalRead(){this.lView[Wt]=this}});function Vv(e){return e.type!==2}function jv(e){if(e[Fr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Fr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[fe]&8192)}}var eI=100;function Fv(e,t=!0,n=0){let r=e[Yn].rendererFactory,i=!1;i||r.begin?.();try{tI(e,n)}catch(o){throw t&&Rv(e,o),o}finally{i||r.end?.()}}function tI(e,t){let n=I_();try{Js(!0),Uc(e,t);let r=0;for(;Ua(e);){if(r===eI)throw new De(103,!1);r++,Uc(e,1)}}finally{Js(n)}}function nI(e,t,n,r){if(Lo(t))return;let i=t[fe],o=!1,s=!1;Sh(t);let a=!0,l=null,u=null;o||(Vv(e)?(u=GC(t),l=co(u)):Fw()===null?(a=!1,u=XC(t),l=co(u)):t[Wt]&&(Ro(t[Wt]),t[Wt]=null));try{y_(t),oE(e.bindingStartIndex),n!==null&&Ov(e,t,n,2,r);let d=(i&3)===3;if(!o)if(d){let m=e.preOrderCheckHooks;m!==null&&Os(t,m,null)}else{let m=e.preOrderHooks;m!==null&&ks(t,m,0,null),Rl(t,0)}if(s||rI(t),jv(t),Bv(t,0),e.contentQueries!==null&&pv(e,t),!o)if(d){let m=e.contentCheckHooks;m!==null&&Os(t,m)}else{let m=e.contentHooks;m!==null&&ks(t,m,1),Rl(t,1)}oI(e,t);let h=e.components;h!==null&&Hv(t,h,0);let _=e.viewQuery;if(_!==null&&jc(2,_,r),!o)if(d){let m=e.viewCheckHooks;m!==null&&Os(t,m)}else{let m=e.viewHooks;m!==null&&ks(t,m,2),Rl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ds]){for(let m of t[Ds])m();t[Ds]=null}o||(Mv(t),t[fe]&=-73)}catch(d){throw o||Ai(t),d}finally{u!==null&&(Ia(u,l),a&&KC(u)),Ch()}}function Bv(e,t){for(let n=rv(e);n!==null;n=iv(n))for(let r=kt;r<n.length;r++){let i=n[r];Uv(i,t)}}function rI(e){for(let t=rv(e);t!==null;t=iv(t)){if(!(t[fe]&2))continue;let n=t[xi];for(let r=0;r<n.length;r++){let i=n[r];bh(i)}}}function iI(e,t,n){ze(18);let r=on(t,e);Uv(r,n),ze(19,r[ft])}function Uv(e,t){yh(e)&&Uc(e,t)}function Uc(e,t){let n=e[ge],r=e[fe],i=e[Wt],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&Ta(i)),o||=!1,i&&(i.dirty=!1),e[fe]&=-9217,o)nI(n,e,n.template,e[ft]);else if(r&8192){jv(e),Bv(e,1);let s=n.components;s!==null&&Hv(e,s,1),Mv(e)}}function Hv(e,t,n){for(let r=0;r<t.length;r++)iI(e,t[r],n)}function oI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Hr(~i);else{let o=i,s=n[++r],a=n[++r];aE(s,o);let l=t[o];ze(24,l),a(2,l),ze(25,l)}}}finally{Hr(-1)}}function Kh(e,t){let n=I_()?64:1088;for(e[Yn].changeDetectionScheduler?.notify(t);e;){e[fe]|=n;let r=Ur(e);if(Ks(e)&&!r)return e;e=r}return null}function $v(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function zv(e,t){let n=kt+t;if(n<e.length)return e[n]}function Xa(e,t,n,r=!0){let i=t[ge];if(sI(i,t,e,n),r){let s=Bc(n,e),a=t[_t],l=a.parentNode(e[Br]);l!==null&&MC(i,e[In],a,t,l,s)}let o=t[go];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function qv(e,t){let n=wo(e,t);return n!==void 0&&Ya(n[ge],n),n}function wo(e,t){if(e.length<=kt)return;let n=kt+t,r=e[n];if(r){let i=r[jr];i!==null&&i!==e&&Gh(i,r),t>0&&(e[n-1][_n]=r[_n]);let o=Ws(e,kt+t);AC(r[ge],r);let s=o[Kn];s!==null&&s.detachView(o[ge]),r[Rt]=null,r[_n]=null,r[fe]&=-129}return r}function sI(e,t,n,r){let i=kt+r,o=n.length;r>0&&(n[i-1][_n]=t),r<o-kt?(t[_n]=n[i],Xm(n,kt+r,t)):(n.push(t),t[_n]=null),t[Rt]=n;let s=t[jr];s!==null&&n!==s&&Wv(s,t);let a=t[Kn];a!==null&&a.insertView(e),Tc(t),t[fe]|=128}function Wv(e,t){let n=e[xi],r=t[Rt];if(zn(r))e[fe]|=2;else{let i=r[Rt][wn];t[wn]!==i&&(e[fe]|=2)}n===null?e[xi]=[t]:n.push(t)}var xo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[ge];return oa(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[ft]}get dirty(){return!!(this._lView[fe]&9280)||!!this._lView[Wt]?.dirty}set context(e){this._lView[ft]=e}get destroyed(){return Lo(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Rt];if(er(e)){let t=e[Ys],n=t?t.indexOf(this):-1;n>-1&&(wo(e,n),Ws(t,n))}this._attachedToViewContainer=!1}Ya(this._lView[ge],this._lView)}onDestroy(e){b_(this._lView,e)}markForCheck(){Kh(this._cdRefInjectingView||this._lView,4)}markForRefresh(){bh(this._cdRefInjectingView||this._lView)}detach(){this._lView[fe]&=-129}reattach(){Tc(this._lView),this._lView[fe]|=128}detectChanges(){this._lView[fe]|=1024,Fv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new De(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ks(this._lView),t=this._lView[jr];t!==null&&!e&&Gh(t,this._lView),Nv(this._lView[ge],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new De(902,!1);this._appRef=e;let t=Ks(this._lView),n=this._lView[jr];n!==null&&!t&&Wv(n,this._lView),Tc(this._lView)}},Eo=(()=>{class e{static __NG_ELEMENT_ID__=cI}return e})(),aI=Eo,lI=class extends aI{_declarationLView;_declarationTContainer;elementRef;constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){let r=Ga(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new xo(r)}};function cI(){return Qa(Yt(),ye())}function Qa(e,t){return e.type&4?new lI(t,e,Mi(e,t)):null}function qo(e,t,n,r,i){let o=e.data[t];if(o===null)o=uI(e,t,n,r,i),sE()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=iE();o.injectorIndex=s===null?-1:s.injectorIndex}return yr(o,!0),o}function uI(e,t,n,r,i){let o=E_(),s=xh(),a=s?o:o&&o.parent,l=e.data[t]=dI(e,a,n,t,r,i);return hI(e,l,o,s),l}function hI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function dI(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return tE()&&(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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var H5=new RegExp(`^(\\d+)*(${cS}|${lS})*(.*)`),fI=()=>null;function So(e,t){return fI(e,t)}var pI=class{},Zv=class{},gI=class{resolveComponentFactory(e){throw Error(`No component factory found for ${mn(e)}.`)}},Wo=class{static NULL=new gI},Dn=class{},Jh=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>mI()}return e})();function mI(){let e=ye(),t=Yt(),n=on(t.index,e);return(zn(n)?n:e)[_t]}var _I=(()=>{class e{static \u0275prov=de({token:e,providedIn:"root",factory:()=>null})}return e})();function Hc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=bc(i,a);else if(o==2){let l=a,u=t[++s];r=bc(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Et(e,t=Te.Default){let n=ye();if(n===null)return je(e,t);let r=Yt();return H_(r,n,At(e),t)}function Xh(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a,l=null,u=null,d=yI(s);d===null?a=s:[a,l,u]=d,xI(e,t,n,a,o,l,u)}o!==null&&r!==null&&vI(n,r,o)}function vI(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new De(-301,!1);r.push(t[i],o)}}function yI(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Ln(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,bI(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function bI(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function wI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function xI(e,t,n,r,i,o,s){let a=r.length,l=!1;for(let _=0;_<a;_++){let m=r[_];!l&&Ln(m)&&(l=!0,wI(e,n,_)),Rc(na(n,t),e,m.type)}DI(n,e.data.length,a);for(let _=0;_<a;_++){let m=r[_];m.providersResolver&&m.providersResolver(m)}let u=!1,d=!1,h=Tv(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let _=0;_<a;_++){let m=r[_];if(n.mergedAttrs=Ei(n.mergedAttrs,m.hostAttrs),SI(e,n,t,h,m),TI(h,m,i),s!==null&&s.has(m)){let[S,N]=s.get(m);n.directiveToIndex.set(m.type,[h,S+n.directiveStart,N+n.directiveStart])}else(o===null||!o.has(m))&&n.directiveToIndex.set(m.type,h);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let b=m.type.prototype;!u&&(b.ngOnChanges||b.ngOnInit||b.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!d&&(b.ngOnChanges||b.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}EI(e,n,o)}function EI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Ff(0,t,i,r),Ff(1,t,i,r),Uf(t,r,!1);else{let o=n.get(i);Bf(0,t,o,r),Bf(1,t,o,r),Uf(t,r,!0)}}}function Ff(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),Gv(t,o)}}function Bf(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),Gv(t,s)}}function Gv(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Uf(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Fh(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let u=i[l];for(let d of u)if(d===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let u=o[l];for(let d=0;d<u.length;d+=2)if(u[d]===t){s??=[],s.push(u[d+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function SI(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=Mr(i.type,!0)),s=new Fo(o,Ln(i),Et);e.blueprint[r]=s,n[r]=s,CI(e,t,r,Tv(e,n,i.hostVars,Tn),i)}function CI(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;II(s)!=a&&s.push(a),s.push(n,r,o)}}function II(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function TI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ln(t)&&(n[""]=e)}}function DI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Yv(e,t,n,r,i,o,s,a){let l=t.consts,u=gr(l,s),d=qo(t,e,2,r,u);return o&&Xh(t,n,d,gr(l,a),i),d.mergedAttrs=Ei(d.mergedAttrs,d.attrs),d.attrs!==null&&Hc(d,d.attrs,!1),d.mergedAttrs!==null&&Hc(d,d.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,d),d}function Kv(e,t){Th(e,t),_h(t)&&e.queries.elementEnd(t)}var OI=class extends Wo{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Vr(e);return new Qh(t,this.ngModule)}};function kI(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&Wa.SignalBased)!==0};return i&&(o.transform=i),o})}function RI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function PI(e,t,n){let r=t instanceof Gn?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new xE(n,r):n}function NI(e){let t=e.get(Dn,null);if(t===null)throw new De(407,!1);let n=e.get(_I,null),r=e.get(Jr,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function AI(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Ev(t,n,n==="svg"?__:n==="math"?Wx:null)}var Qh=class extends Zv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return kI(this.componentDef.inputs)}get outputs(){return RI(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=lC(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){ze(22);let i=Ie(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:cC(this.componentDef.selectors[0]),a=Bh(0,null,null,1,0,null,null,null,null,[s],null),l=PI(o,r||this.ngModule,e),u=NI(l),d=u.rendererFactory.createRenderer(null,o),h=n?yC(d,n,o.encapsulation,l):AI(o,d),_=Uh(null,a,null,512|Iv(o),null,null,u,d,l,null,fv(h,l,!0));_[ht]=h,Sh(_);let m=null;try{let b=Yv(ht,a,_,"#host",()=>[this.componentDef],!0,0);h&&(Cv(d,h,b),An(h,_)),Za(a,_,b),Vh(a,b,_),Kv(a,b),t!==void 0&&LI(b,this.ngContentSelectors,t),m=on(b.index,_),_[ft]=m[ft],Wh(a,_,null)}catch(b){throw m!==null&&Mc(m),Mc(_),b}finally{ze(23),Ch()}return new MI(this.componentType,_)}finally{Ie(i)}}},MI=class extends pI{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=vh(t[ge],ht),this.location=Mi(this._tNode,t),this.instance=on(this._tNode.index,t)[ft],this.hostView=this.changeDetectorRef=new xo(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=qh(n,r[ge],r,e,t);this.previousInputValues.set(e,t);let o=on(n.index,r);Kh(o,1)}get injector(){return new io(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function LI(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Li=(()=>{class e{static __NG_ELEMENT_ID__=VI}return e})();function VI(){let e=Yt();return Xv(e,ye())}var jI=Li,Jv=class extends jI{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Mi(this._hostTNode,this._hostLView)}get injector(){return new io(this._hostTNode,this._hostLView)}get parentInjector(){let e=Dh(this._hostTNode,this._hostLView);if(L_(e)){let t=ea(e,this._hostLView),n=Qs(e),r=t[ge].data[n+8];return new io(r,t)}else return new io(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=Hf(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-kt}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let o=So(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(t||{},i,o);return this.insertImpl(s,r,bo(this._hostTNode,o)),s}createComponent(e,t,n,r,i){let o=e&&!Bx(e),s;if(o)s=t;else{let m=t||{};s=m.index,n=m.injector,r=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let a=o?e:new Qh(Vr(e)),l=n||this.parentInjector;if(!i&&a.ngModule==null){let m=(o?l:this.parentInjector).get(Gn,null);m&&(i=m)}let u=Vr(a.componentType??{}),d=So(this._lContainer,u?.id??null),h=d?.firstChild??null,_=a.create(l,r,h,i);return this.insertImpl(_.hostView,s,bo(this._hostTNode,d)),_}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(Gx(r)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let a=r[Rt],l=new Jv(a,a[In],a[Rt]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),o=this._lContainer;return Xa(o,r,i,n),e.attachToViewContainerRef(),Xm(Ll(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=Hf(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=wo(this._lContainer,t);n&&(Ws(Ll(this._lContainer),t),Ya(n[ge],n))}detach(e){let t=this._adjustIndex(e,-1),n=wo(this._lContainer,t);return n&&Ws(Ll(this._lContainer),t)!=null?new xo(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function Hf(e){return e[Ys]}function Ll(e){return e[Ys]||(e[Ys]=[])}function Xv(e,t){let n,r=t[e.index];return er(r)?n=r:(n=$v(r,t,null,e),t[e.index]=n,Hh(t,n)),BI(n,t,e,r),new Jv(n,e,t)}function FI(e,t){let n=e[_t],r=n.createComment(""),i=Vn(t,e),o=n.parentNode(i);return ia(n,o,r,n.nextSibling(i),!1),r}var BI=$I,UI=()=>!1;function HI(e,t,n){return UI(e,t,n)}function $I(e,t,n,r){if(e[Br])return;let i;n.type&8?i=Gt(r):i=FI(t,n),e[Br]=i}var zI=class Qv{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new Qv(this.queryList)}setDirty(){this.queryList.setDirty()}},qI=class ey{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new ey(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)ed(t,n).matches!==null&&this.queries[n].setDirty()}},WI=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=nT(e):this.predicate=e}},ZI=class ty{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new ty(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},GI=class ny{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new ny(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,YI(n,o)),this.matchTNodeWithReadOption(t,n,Rs(n,t,o,!1,!1))}else r===Eo?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Rs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===$t||i===Li||i===Eo&&n.type&4)this.addMatch(n.index,-2);else{let o=Rs(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function YI(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function KI(e,t){return e.type&11?Mi(e,t):e.type&4?Qa(e,t):null}function JI(e,t,n,r){return n===-1?KI(t,e):n===-2?XI(e,t,r):vo(e,e[ge],n,t)}function XI(e,t,n){if(n===$t)return Mi(t,e);if(n===Eo)return Qa(t,e);if(n===Li)return Xv(t,e)}function ry(e,t,n,r){let i=t[Kn].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let u=s[l];if(u<0)a.push(null);else{let d=o[u];a.push(JI(t,d,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function $c(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=ry(e,t,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let u=o[a+1],d=t[-l];for(let h=kt;h<d.length;h++){let _=d[h];_[jr]===_[Rt]&&$c(_[ge],_,u,r)}if(d[xi]!==null){let h=d[xi];for(let _=0;_<h.length;_++){let m=h[_];$c(m[ge],m,u,r)}}}}}return r}function QI(e,t){return e[Kn].queries[t].queryList}function eT(e,t,n){let r=new GE((n&4)===4);return Jx(e,t,r,r.destroy),(t[Kn]??=new qI).queries.push(new zI(r))-1}function tT(e,t,n){let r=pt();return r.firstCreatePass&&(rT(r,new WI(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),eT(r,ye(),t)}function nT(e){return e.split(",").map(t=>t.trim())}function rT(e,t,n){e.queries===null&&(e.queries=new ZI),e.queries.track(new GI(t,n))}function ed(e,t){return e.queries.getByIndex(t)}function iT(e,t){let n=e[ge],r=ed(n,t);return r.crossesNgTemplate?$c(n,e,t,[]):ry(n,e,r,t)}var Co=class{},iy=class extends Co{injector;componentFactoryResolver=new OI(this);instance=null;constructor(e){super();let t=new mh([...e.providers,{provide:Co,useValue:this},{provide:Wo,useValue:this.componentFactoryResolver}],e.parent||Va(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function oT(e,t,n=null){return new iy({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var sT=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=i_(!1,n.type),i=r.length>0?oT([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=de({token:e,providedIn:"environment",factory:()=>new e(je(Gn))})}return e})();function Pt(e){return Po(()=>{let t=oy(e),n=Ne(A({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ev.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(sT).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||$n.Emulated,styles:e.styles||Mt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Qr("NgStandalone"),sy(n);let r=e.dependencies;return n.directiveDefs=$f(r,!1),n.pipeDefs=$f(r,!0),n.id=hT(n),n})}function aT(e){return Vr(e)||n_(e)}function lT(e){return e!==null}function td(e){return Po(()=>({type:e.type,bootstrap:e.bootstrap||Mt,declarations:e.declarations||Mt,imports:e.imports||Mt,exports:e.exports||Mt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function cT(e,t){if(e==null)return Lr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=Wa.None,l=null),n[o]=[r,a,l],t[o]=s}return n}function uT(e){if(e==null)return Lr;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Zo(e){return Po(()=>{let t=oy(e);return sy(t),t})}function nd(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function oy(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Lr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Mt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cT(e.inputs,t),outputs:uT(e.outputs),debugInfo:null}}function sy(e){e.features?.forEach(t=>t(e))}function $f(e,t){if(!e)return null;let n=t?r_:aT;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(lT)}function hT(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function dT(e){return Object.getPrototypeOf(e.prototype).constructor}function br(e){let t=dT(e.type),n=!0,r=[e];for(;t;){let i;if(Ln(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new De(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Vl(e.inputs),s.declaredInputs=Vl(e.declaredInputs),s.outputs=Vl(e.outputs);let a=i.hostBindings;a&&_T(e,a);let l=i.viewQuery,u=i.contentQueries;if(l&&gT(e,l),u&&mT(e,u),fT(e,i),ix(e.outputs,i.outputs),Ln(i)&&i.data.animation){let d=e.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===br&&(n=!1)}}t=Object.getPrototypeOf(t)}pT(r)}function fT(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function pT(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ei(i.hostAttrs,n=Ei(n,i.hostAttrs))}}function Vl(e){return e===Lr?{}:e===Mt?[]:e}function gT(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function mT(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function _T(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function ay(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function rd(e,t,n){return e[t]=n}function xn(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ly(e,t,n,r){let i=xn(e,t,n);return xn(e,t+1,r)||i}function vT(e,t,n,r,i){let o=ly(e,t,n,r);return xn(e,t+2,i)||o}function yT(e,t,n,r,i,o,s,a,l){let u=t.consts,d=qo(t,e,4,s||null,a||null);wh()&&Xh(t,n,d,gr(u,l),zh),d.mergedAttrs=Ei(d.mergedAttrs,d.attrs),Th(t,d);let h=d.tView=Bh(2,d,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,d),h.queries=t.queries.embeddedTView(d)),d}function zc(e,t,n,r,i,o,s,a,l,u){let d=n+ht,h=t.firstCreatePass?yT(d,t,e,r,i,o,s,a,l):t.data[d];yr(h,!1);let _=bT(t,e,h,n);Ha()&&Ka(t,e,_,h),An(_,e);let m=$v(_,e,_,h);return e[d]=m,Hh(e,m),HI(m,h,e),Fa(h)&&Za(t,e,h),l!=null&&$h(e,h,u),h}function nt(e,t,n,r,i,o,s,a){let l=ye(),u=pt(),d=gr(u.consts,o);return zc(l,u,e,t,n,r,i,d,s,a),nt}var bT=wT;function wT(e,t,n,r){return $a(!0),t[_t].createComment("")}var xT=new Ee(""),cy=(()=>{class e{static \u0275prov=de({token:e,providedIn:"root",factory:()=>new uy})}return e})(),uy=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function hy(e){return!!e&&typeof e.then=="function"}function ET(e){return!!e&&typeof e.subscribe=="function"}var ST=new Ee(""),dy=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=R(ST,{optional:!0})??[];injector=R(Tt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=l_(this.injector,i);if(hy(o))n.push(o);else if(ET(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),CT=new Ee("");function IT(){qw(()=>{throw new De(600,!1)})}function TT(e){return e.isBoundToModule}var DT=10,_r=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=R(UE);afterRenderManager=R(uv);zonelessEnabled=R(Oh);rootEffectScheduler=R(cy);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ve;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=R(Uo).hasPendingTasks.pipe(Na(n=>!n));constructor(){R(Ho,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=R(Gn);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){ze(10);let i=n instanceof Zv;if(!this._injector.get(dy).done){let h=!i&&Tx(n),_=!1;throw new De(405,_)}let o;i?o=n:o=this._injector.get(Wo).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=TT(o)?void 0:this._injector.get(Co),a=r||o.selector,l=o.create(Tt.NULL,[],a,s),u=l.location.nativeElement,d=l.injector.get(xT,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Ps(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),ze(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ze(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Mh.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new De(101,!1);let n=Ie(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Ie(n),this.afterTick.next(),ze(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Dn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<DT;)ze(14),this.synchronizeOnce(),ze(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)OT(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})=>Ua(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;Ps(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(CT,[]).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),()=>Ps(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new De(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ps(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function OT(e,t,n,r){!n&&!Ua(e)||Fv(e,t,n&&!r?0:1)}function Go(e,t,n,r){let i=ye(),o=jo();if(xn(i,o,t)){let s=pt(),a=Ih();TC(a,i,e,t,n,r)}return Go}function id(e,t,n,r){return xn(e,jo(),n)?t+No(n)+r:Tn}function hs(e,t){return e<<17|t<<2}function $r(e){return e>>17&32767}function kT(e){return(e&2)==2}function RT(e,t){return e&131071|t<<17}function qc(e){return e|2}function Si(e){return(e&131068)>>2}function jl(e,t){return e&-131069|t<<2}function PT(e){return(e&1)===1}function Wc(e){return e|1}function NT(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=$r(s),l=Si(s);e[r]=n;let u=!1,d;if(Array.isArray(n)){let h=n;d=h[1],(d===null||Ao(h,d)>0)&&(u=!0)}else d=n;if(i)if(l!==0){let h=$r(e[a+1]);e[r+1]=hs(h,a),h!==0&&(e[h+1]=jl(e[h+1],r)),e[a+1]=RT(e[a+1],r)}else e[r+1]=hs(a,0),a!==0&&(e[a+1]=jl(e[a+1],r)),a=r;else e[r+1]=hs(l,0),a===0?a=r:e[l+1]=jl(e[l+1],r),l=r;u&&(e[r+1]=qc(e[r+1])),zf(e,d,r,!0),zf(e,d,r,!1),AT(t,d,e,r,o),s=hs(a,l),o?t.classBindings=s:t.styleBindings=s}function AT(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Ao(o,t)>=0&&(n[r+1]=Wc(n[r+1]))}function zf(e,t,n,r){let i=e[n+1],o=t===null,s=r?$r(i):Si(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],u=e[s+1];MT(l,t)&&(a=!0,e[s+1]=r?Wc(u):qc(u)),s=r?$r(u):Si(u)}a&&(e[n+1]=r?qc(i):Wc(i))}function MT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ao(e,t)>=0:!1}var fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function LT(e){return e.substring(fn.key,fn.keyEnd)}function VT(e){return jT(e),fy(e,py(e,0,fn.textEnd))}function fy(e,t){let n=fn.textEnd;return n===t?-1:(t=fn.keyEnd=FT(e,fn.key=t,n),py(e,t,n))}function jT(e){fn.key=0,fn.keyEnd=0,fn.value=0,fn.valueEnd=0,fn.textEnd=e.length}function py(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function FT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Pe(e,t,n){let r=ye(),i=jo();if(xn(r,i,t)){let o=pt(),s=Ih();kv(o,s,r,e,t,r[_t],n,!1)}return Pe}function Zc(e,t,n,r,i){qh(t,e,n,i?"class":"style",r)}function el(e,t,n){return my(e,t,n,!1),el}function Yo(e,t){return my(e,t,null,!0),Yo}function BT(e){_y(WT,gy,e,!0)}function gy(e,t){for(let n=VT(t);n>=0;n=fy(t,n))La(e,LT(t),!0)}function my(e,t,n,r){let i=ye(),o=pt(),s=T_(2);if(o.firstUpdatePass&&yy(o,e,s,r),t!==Tn&&xn(i,s,t)){let a=o.data[tr()];by(o,a,i,i[_t],e,i[s+1]=GT(t,n),r,s)}}function _y(e,t,n,r){let i=pt(),o=T_(2);i.firstUpdatePass&&yy(i,null,o,r);let s=ye();if(n!==Tn&&xn(s,o,n)){let a=i.data[tr()];if(wy(a,r)&&!vy(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=bc(l,n||"")),Zc(i,a,s,n,r)}else ZT(i,a,s,s[_t],s[o+1],s[o+1]=qT(e,t,n),r,o)}}function vy(e,t){return t>=e.expandoStartIndex}function yy(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[tr()],s=vy(e,n);wy(o,r)&&t===null&&!s&&(t=!1),t=UT(i,o,t,r),NT(i,o,t,n,s,r)}}function UT(e,t,n,r){let i=cE(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fl(null,e,t,n,r),n=Io(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Fl(i,e,t,n,r),o===null){let a=HT(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Fl(null,e,t,a[1],r),a=Io(a,t.attrs,r),$T(e,t,r,a))}else o=zT(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function HT(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Si(r)!==0)return e[$r(r)]}function $T(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[$r(i)]=r}function zT(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Io(r,s,n)}return Io(r,t.attrs,n)}function Fl(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=Io(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Io(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),La(e,s,n?!0:t[++o]))}return e===void 0?null:e}function qT(e,t,n){if(n==null||n==="")return Mt;let r=[],i=Hn(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else typeof i=="string"&&t(r,i);return r}function WT(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&La(e,r,n)}function ZT(e,t,n,r,i,o,s,a){i===Tn&&(i=Mt);let l=0,u=0,d=0<i.length?i[0]:null,h=0<o.length?o[0]:null;for(;d!==null||h!==null;){let _=l<i.length?i[l+1]:void 0,m=u<o.length?o[u+1]:void 0,b=null,S;d===h?(l+=2,u+=2,_!==m&&(b=h,S=m)):h===null||d!==null&&d<h?(l+=2,b=d):(u+=2,b=h,S=m),b!==null&&by(e,t,n,r,b,S,s,a),d=l<i.length?i[l]:null,h=u<o.length?o[u]:null}}function by(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let l=e.data,u=l[a+1],d=PT(u)?qf(l,t,n,i,Si(u),s):void 0;if(!sa(d)){sa(o)||kT(u)&&(o=qf(l,null,n,i,a,s));let h=v_(tr(),n);WC(r,s,h,i,o)}}function qf(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let l=e[i],u=Array.isArray(l),d=u?l[1]:l,h=d===null,_=n[i+1];_===Tn&&(_=h?Mt:void 0);let m=h?Ol(_,r):d===r?_:void 0;if(u&&!sa(m)&&(m=Ol(l,r)),sa(m)&&(a=m,s))return a;let b=e[i+1];i=s?$r(b):Si(b)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=Ol(l,r))}return a}function sa(e){return e!==void 0}function GT(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=mn(Hn(e)))),e}function wy(e,t){return(e.flags&(t?8:16))!==0}function YT(e,t,n){let r=ye(),i=id(r,e,t,n);_y(La,gy,i,!0)}var KT=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function Bl(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function JT(e,t,n){let r,i,o=0,s=e.length-1,a;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let u=e.at(o),d=t[o],h=Bl(o,u,o,d,n);if(h!==0){h<0&&e.updateValue(o,d),o++;continue}let _=e.at(s),m=t[l],b=Bl(s,_,l,m,n);if(b!==0){b<0&&e.updateValue(s,m),s--,l--;continue}let S=n(o,u),N=n(s,_),P=n(o,d);if(Object.is(P,N)){let z=n(l,m);Object.is(z,S)?(e.swap(o,s),e.updateValue(s,m),l--,s--):e.move(s,o),e.updateValue(o,d),o++;continue}if(r??=new Gf,i??=Zf(e,o,s,n),Gc(e,r,o,P))e.updateValue(o,d),o++,s++;else if(i.has(P))r.set(S,e.detach(o)),s--;else{let z=e.create(o,t[o]);e.attach(o,z),o++,s++}}for(;o<=l;)Wf(e,r,n,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),u=l.next();for(;!u.done&&o<=s;){let d=e.at(o),h=u.value,_=Bl(o,d,o,h,n);if(_!==0)_<0&&e.updateValue(o,h),o++,u=l.next();else{r??=new Gf,i??=Zf(e,o,s,n);let m=n(o,h);if(Gc(e,r,o,m))e.updateValue(o,h),o++,s++,u=l.next();else if(!i.has(m))e.attach(o,e.create(o,h)),o++,s++,u=l.next();else{let b=n(o,d);r.set(b,e.detach(o)),s--}}}for(;!u.done;)Wf(e,r,n,e.length,u.value),u=l.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(l=>{e.destroy(l)})}function Gc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Wf(e,t,n,r,i){if(Gc(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Zf(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Gf=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function tt(e,t){Qr("NgControlFlow");let n=ye(),r=jo(),i=n[r]!==Tn?n[r]:-1,o=i!==-1?aa(n,ht+i):void 0,s=0;if(xn(n,r,e)){let a=Ie(null);try{if(o!==void 0&&qv(o,s),e!==-1){let l=ht+e,u=aa(n,l),d=Yc(n[ge],l),h=So(u,d.tView.ssrId),_=Ga(n,d,t,{dehydratedView:h});Xa(u,_,s,bo(d,h))}}finally{Ie(a)}}else if(o!==void 0){let a=zv(o,s);a!==void 0&&(a[ft]=t)}}var XT=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-kt}};function Vi(e,t){return t}var QT=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function Lt(e,t,n,r,i,o,s,a,l,u,d,h,_){Qr("NgControlFlow");let m=ye(),b=pt(),S=l!==void 0,N=ye(),P=a?s.bind(N[wn][ft]):s,z=new QT(S,P);N[ht+e]=z,zc(m,b,e+1,t,n,r,i,gr(b.consts,o)),S&&zc(m,b,e+2,l,u,d,h,gr(b.consts,_))}var eD=class extends KT{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-kt}at(e){return this.getLView(e)[ft].$implicit}attach(e,t){let n=t[go];this.needsIndexUpdate||=e!==this.length,Xa(this.lContainer,t,e,bo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,tD(this.lContainer,e)}create(e,t){let n=So(this.lContainer,this.templateTNode.tView.ssrId),r=Ga(this.hostLView,this.templateTNode,new XT(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Ya(e[ge],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[ft].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[ft].$index=e}getLView(e){return nD(this.lContainer,e)}};function Vt(e){let t=Ie(null),n=tr();try{let r=ye(),i=r[ge],o=r[n],s=n+1,a=aa(r,s);if(o.liveCollection===void 0){let u=Yc(i,s);o.liveCollection=new eD(a,r,u)}else o.liveCollection.reset();let l=o.liveCollection;if(JT(l,e,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let u=jo(),d=l.length===0;if(xn(r,u,d)){let h=n+2,_=aa(r,h);if(d){let m=Yc(i,h),b=So(_,m.tView.ssrId),S=Ga(r,m,void 0,{dehydratedView:b});Xa(_,S,0,bo(m,b))}else qv(_,0)}}}finally{Ie(t)}}function aa(e,t){return e[t]}function tD(e,t){return wo(e,t)}function nD(e,t){return zv(e,t)}function Yc(e,t){return vh(e,t)}function G(e,t,n,r){let i=ye(),o=pt(),s=ht+e,a=i[_t],l=o.firstCreatePass?Yv(s,o,i,t,zh,wh(),n,r):o.data[s],u=rD(o,i,l,a,t,e);i[s]=u;let d=Fa(l);return yr(l,!0),Cv(a,u,l),!Pv(l)&&Ha()&&Ka(o,i,u,l),(Xx()===0||d)&&An(u,i),Qx(),d&&(Za(o,i,l),Vh(o,l,i)),r!==null&&$h(i,l),G}function Y(){let e=Yt();xh()?S_():(e=e.parent,yr(e,!1));let t=e;nE(t)&&rE(),eE();let n=pt();return n.firstCreatePass&&Kv(n,t),t.classesWithoutHost!=null&&_E(t)&&Zc(n,t,ye(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&vE(t)&&Zc(n,t,ye(),t.stylesWithoutHost,!1),Y}function Ue(e,t,n,r){return G(e,t,n,r),Y(),Ue}var rD=(e,t,n,r,i,o)=>($a(!0),Ev(r,i,fE()));function iD(e,t,n,r,i){let o=t.consts,s=gr(o,r),a=qo(t,e,8,"ng-container",s);s!==null&&Hc(a,s,!0);let l=gr(o,i);return wh()&&Xh(t,n,a,l,zh),a.mergedAttrs=Ei(a.mergedAttrs,a.attrs),t.queries!==null&&t.queries.elementStart(t,a),a}function xy(e,t,n){let r=ye(),i=pt(),o=e+ht,s=i.firstCreatePass?iD(o,i,r,t,n):i.data[o];yr(s,!0);let a=oD(i,r,s,e);return r[o]=a,Ha()&&Ka(i,r,a,s),An(a,r),Fa(s)&&(Za(i,r,s),Vh(i,s,r)),n!=null&&$h(r,s),xy}function Ey(){let e=Yt(),t=pt();return xh()?S_():(e=e.parent,yr(e,!1)),t.firstCreatePass&&(Th(t,e),_h(e)&&t.queries.elementEnd(e)),Ey}function od(e,t,n){return xy(e,t,n),Ey(),od}var oD=(e,t,n,r)=>($a(!0),dC(t[_t],""));function jt(){return ye()}var la="en-US",sD=la;function aD(e){typeof e=="string"&&(sD=e.toLowerCase().replace(/_/g,"-"))}var lD=(e,t,n)=>{};function ot(e,t,n,r){let i=ye(),o=pt(),s=Yt();return uD(o,i,i[_t],s,e,t,r),ot}function cD(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Gs],l=i[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function uD(e,t,n,r,i,o,s){let a=Fa(r),l=e.firstCreatePass?x_(e):null,u=t[ft],d=w_(t),h=!0;if(r.type&3||s){let _=Vn(r,t),m=s?s(_):_,b=d.length,S=s?P=>s(Gt(P[r.index])):r.index,N=null;if(!s&&a&&(N=cD(e,t,i,r.index)),N!==null){let P=N.__ngLastListenerFn__||N;P.__ngNextListenerFn__=o,N.__ngLastListenerFn__=o,h=!1}else{o=Jf(r,t,u,o),lD(_,i,o);let P=n.listen(m,i,o);d.push(o,P),l&&l.push(i,S,b,b+1)}}else o=Jf(r,t,u,o);if(h){let _=r.outputs?.[i],m=r.hostDirectiveOutputs?.[i];if(m&&m.length)for(let b=0;b<m.length;b+=2){let S=m[b],N=m[b+1];Yf(r,e,t,S,N,i,o,d,l)}if(_&&_.length)for(let b of _)Yf(r,e,t,b,i,i,o,d,l)}}function Yf(e,t,n,r,i,o,s,a,l){let u=n[r],d=t.data[r].outputs[i],h=u[d].subscribe(s),_=a.length;a.push(s,h),l&&l.push(o,e.index,_,-(_+1))}function Kf(e,t,n,r){let i=Ie(null);try{return ze(6,t,n),n(r)!==!1}catch(o){return Rv(e,o),!1}finally{ze(7,t,n),Ie(i)}}function Jf(e,t,n,r){return function i(o){if(o===Function)return r;let s=Ni(e)?on(e.index,t):t;Kh(s,5);let a=Kf(t,n,r,o),l=i.__ngNextListenerFn__;for(;l;)a=Kf(t,n,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Q(e=1){return hE(e)}function ji(e,t,n){return Sy(e,"",t,"",n),ji}function Sy(e,t,n,r,i){let o=ye(),s=id(o,t,n,r);if(s!==Tn){let a=pt(),l=Ih();kv(a,l,o,e,s,o[_t],i,!1)}return Sy}function ca(e,t,n){tT(e,t,n)}function ua(e){let t=ye(),n=pt(),r=D_();Eh(r+1);let i=ed(n,r);if(e.dirty&&Zx(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=iT(t,r);e.reset(o,qE),e.notifyOnChanges()}return!0}return!1}function ha(){return QI(ye(),D_())}function sd(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function qn(e){let t=C_();return Ba(t,ht+e)}function Ye(e,t=""){let n=ye(),r=pt(),i=e+ht,o=r.firstCreatePass?qo(r,i,1,t,null):r.data[i],s=hD(r,n,o,t,e);n[i]=s,Ha()&&Ka(r,n,s,o),yr(o,!1)}var hD=(e,t,n,r,i)=>($a(!0),uC(t[_t],r));function Fi(e){return En("",e,""),Fi}function En(e,t,n){let r=ye(),i=id(r,e,t,n);return i!==Tn&&dD(r,tr(),i),En}function dD(e,t,n){let r=v_(t,e);hC(e[_t],r,n)}var Cy={};function jn(e){let t=pt(),n=ye(),r=e+ht,i=qo(t,r,128,null,null);return yr(i,!1),sd(t,n,r,Cy),jn}function zr(e){Qr("NgLet");let t=pt(),n=ye(),r=tr();return sd(t,n,r,e),e}function rn(e){let t=C_(),n=Ba(t,ht+e);if(n===Cy)throw new De(314,!1);return n}function fD(e,t,n){let r=pt();if(r.firstCreatePass){let i=Ln(e);Kc(n,r.data,r.blueprint,i,!0),Kc(t,r.data,r.blueprint,i,!1)}}function Kc(e,t,n,r,i){if(e=At(e),Array.isArray(e))for(let o=0;o<e.length;o++)Kc(e[o],t,n,r,i);else{let o=pt(),s=ye(),a=Yt(),l=wi(e)?e:At(e.provide),u=a_(e),d=a.providerIndexes&1048575,h=a.directiveStart,_=a.providerIndexes>>20;if(wi(e)||!e.multi){let m=new Fo(u,i,Et),b=Hl(l,t,i?d:d+_,h);b===-1?(Rc(na(a,s),o,l),Ul(o,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[b]=m,s[b]=m)}else{let m=Hl(l,t,d+_,h),b=Hl(l,t,d,d+_),S=m>=0&&n[m],N=b>=0&&n[b];if(i&&!N||!i&&!S){Rc(na(a,s),o,l);let P=mD(i?gD:pD,n.length,i,r,u);!i&&N&&(n[b].providerFactory=P),Ul(o,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=Iy(n[i?b:m],u,!i&&r);Ul(o,e,m>-1?m:b,P)}!i&&r&&N&&n[b].componentProviders++}}}function Ul(e,t,n,r){let i=wi(t),o=Nx(t);if(i||o){let s=(o?At(t.useClass):t).prototype.ngOnDestroy;if(s){let a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=a.indexOf(n);l===-1?a.push(n,[r,s]):a[l+1].push(r,s)}else a.push(n,s)}}}function Iy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hl(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function pD(e,t,n,r){return Jc(this.multi,[])}function gD(e,t,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=vo(n,n[ge],this.providerFactory.index,r);o=a.slice(0,s),Jc(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Jc(i,o);return o}function Jc(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function mD(e,t,n,r,i){let o=new Fo(e,n,Et);return o.multi=[],o.index=t,o.componentProviders=0,Iy(o,i,r&&!n),o}function _D(e,t=[]){return n=>{n.providersResolver=(r,i)=>fD(r,i?i(e):e,t)}}function Ty(e,t,n,r){return Dy(ye(),Vo(),e,t,n,r)}function vD(e,t,n,r,i){return Oy(ye(),Vo(),e,t,n,r,i)}function yD(e,t,n,r,i,o){return bD(ye(),Vo(),e,t,n,r,i,o)}function ad(e,t){let n=e[t];return n===Tn?void 0:n}function Dy(e,t,n,r,i,o){let s=t+n;return xn(e,s,i)?rd(e,s+1,o?r.call(o,i):r(i)):ad(e,s+1)}function Oy(e,t,n,r,i,o,s){let a=t+n;return ly(e,a,i,o)?rd(e,a+2,s?r.call(s,i,o):r(i,o)):ad(e,a+2)}function bD(e,t,n,r,i,o,s,a){let l=t+n;return vT(e,l,i,o,s)?rd(e,l+3,a?r.call(a,i,o,s):r(i,o,s)):ad(e,l+3)}function sn(e,t){let n=pt(),r,i=e+ht;n.firstCreatePass?(r=wD(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Mr(r.type,!0)),s,a=Bt(Et);try{let l=ta(!1),u=o();return ta(l),sd(n,ye(),i,u),u}finally{Bt(a)}}function wD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Sn(e,t,n){let r=e+ht,i=ye(),o=Ba(i,r);return ky(i,r)?Dy(i,Vo(),t,o.transform,n,o):o.transform(n)}function xD(e,t,n,r){let i=e+ht,o=ye(),s=Ba(o,i);return ky(o,i)?Oy(o,Vo(),t,s.transform,n,r,s):s.transform(n,r)}function ky(e,t){return e[ge].data[t].pure}function ED(e,t){return Qa(e,t)}var SD=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},Xf=new SD("19.2.0"),CD=(()=>{class e{zone=R(Ge);changeDetectionScheduler=R(Jr);applicationRef=R(_r);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ID({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Ge(Ne(A({},TD()),{scheduleInRootZone:n})),[{provide:Ge,useFactory:e},{provide:Zs,multi:!0,useFactory:()=>{let r=R(CD,{optional:!0});return()=>r.initialize()}},{provide:Zs,multi:!0,useFactory:()=>{let r=R(DD);return()=>{r.initialize()}}},t===!0?{provide:Y_,useValue:!0}:[],{provide:kh,useValue:n??Z_}]}function TD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var DD=(()=>{class e{subscription=new bt;initialized=!1;zone=R(Ge);pendingTasks=R(Uo);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(()=>{Ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ry=(()=>{class e{appRef=R(_r);taskService=R(Uo);ngZone=R(Ge);zonelessEnabled=R(Oh);tracing=R(Ho,{optional:!0});disableScheduling=R(Y_,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new bt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ra):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(R(kh,{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 J_||!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?Sf:K_;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(ra+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,Sf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function OD(){return Qr("NgZoneless"),Dx([{provide:Jr,useExisting:Ry},{provide:Ge,useClass:J_},{provide:Oh,useValue:!0},{provide:kh,useValue:!1},[]])}function kD(){return typeof $localize<"u"&&$localize.locale||la}var Py=new Ee("",{providedIn:"root",factory:()=>R(Py,Te.Optional|Te.SkipSelf)||kD()}),Xc=new Ee(""),RD=new Ee("");function qi(e){return!e.moduleRef}function PD(e){let t=qi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ge);return n.run(()=>{qi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Xr,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),qi(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Xc);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Xc);s.add(o),e.moduleRef.onDestroy(()=>{Ps(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return AD(r,n,()=>{let o=t.get(dy);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Py,la);if(aD(s||la),!t.get(RD,!0))return qi(e)?t.get(_r):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(qi(e)){let a=t.get(_r);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return ND(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function ND(e,t){let n=e.injector.get(_r);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new De(-403,!1);t.push(e)}function AD(e,t,n){try{let r=n();return hy(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ns=null;function MD(e=[],t){return Tt.create({name:t,providers:[{provide:gh,useValue:"platform"},{provide:Xc,useValue:new Set([()=>Ns=null])},...e]})}function LD(e=[]){if(Ns)return Ns;let t=MD(e);return Ns=t,IT(),VD(t),t}function VD(e){let t=e.get(av,null);l_(e,()=>{t?.forEach(n=>n())})}var Ko=(()=>{class e{static __NG_ELEMENT_ID__=jD}return e})();function jD(e){return FD(Yt(),ye(),(e&16)===16)}function FD(e,t,n){if(Ni(e)&&!n){let r=on(e.index,t);return new xo(r,r)}else if(e.type&175){let r=t[wn];return new xo(r,t)}return null}var BD=class{constructor(){}supports(e){return e instanceof Map||ay(e)}create(){return new UD}},UD=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let t;for(t=this._mapHead;t!==null;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;t!==null;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;t!==null;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||ay(e)))throw new De(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,n),this._appendAfter=t,t=t._next;else{let i=this._getOrCreateRecordForKey(r,n);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let n=t;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){let n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,t);let i=r._prev,o=r._next;return i&&(i._next=o),o&&(o._prev=i),r._next=null,r._prev=null,r}let n=new HD(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}},HD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function Qf(){return new Ny([new BD])}var Ny=(()=>{class e{static \u0275prov=de({token:e,providedIn:"root",factory:Qf});factories;constructor(n){this.factories=n}static create(n,r){if(r){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Qf()),deps:[[e,new xx,new wx]]}}find(n){let r=this.factories.find(i=>i.supports(n));if(r)return r;throw new De(901,!1)}}return e})();function $D(e){ze(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=LD(r),o=[ID({}),{provide:Jr,useExisting:Ry},...n||[]],s=new iy({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return PD({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{ze(9)}}function zD(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function qD(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function WD(e){let t=Ie(null);try{return e()}finally{Ie(t)}}function ep(e,t){let n=Hw(e);return t?.equal&&(n[nn].equal=t.equal),n}var ZD=!1,GD=(()=>{class e extends uy{pendingTasks=R(Uo);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=de({token:e,providedIn:"root",factory:()=>new e})}return e})(),YD=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(e,t,n,r,i,o){this.scheduler=e,this.effectFn=t,this.zone=n,this.injector=i,this.watcher=Kw(s=>this.runEffect(s),()=>this.schedule(),o),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(t){this.injector.get(Xr,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function KD(){}function JD(e,t){!t?.injector&&ja(KD);let n=t?.injector??R(Tt),r=t?.manualCleanup!==!0?n.get(Bo):null,i=new YD(n.get(GD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),o=n.get(Ko,null,{optional:!0});return!o||!(o._lView[fe]&8)?i.watcher.notify():(o._lView[Ds]??=[]).push(i.watcher.notify),i}var XD=ZD,QD=class{[nn];constructor(e){this[nn]=e}destroy(){this[nn].destroy()}};function Qc(e,t){if(XD)return JD(e,t);!t?.injector&&ja(Qc);let n=t?.injector??R(Tt),r=t?.manualCleanup!==!0?n.get(Bo):null,i,o=n.get(Lh,null,{optional:!0}),s=n.get(Jr);return o!==null&&!t?.forceRoot?(i=n2(o.view,s,e),r instanceof G_&&r._lView===o.view&&(r=null)):i=r2(e,n.get(cy),s),i.injector=n,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new QD(i)}var Ay=Ne(A({},Ri),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:yo,run(){if(this.dirty=!1,this.hasRun&&!Ta(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=co(this),n=Js(!1);try{this.maybeCleanup(),this.fn(e)}finally{Js(n),Ia(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),e2=Ne(A({},Ay),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Ro(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),t2=Ne(A({},Ay),{consumerMarkedDirty(){this.view[fe]|=8192,Ai(this.view),this.notifier.notify(13)},destroy(){Ro(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Fr]?.delete(this)}});function n2(e,t,n){let r=Object.create(t2);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[Fr]??=new Set,e[Fr].add(r),r.consumerMarkedDirty(r),r}function r2(e,t,n){let r=Object.create(e2);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function My(e,t){let n=Vr(e),r=t.elementInjector||Va();return new Qh(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var i2={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function o2(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function s2(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var $l;function a2(e,t){if(!$l){let n=Element.prototype;$l=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?$l.call(e,t):!1}function l2(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[o2(r)]=[n,i]}),t}function c2(e,t){return t.get(Wo).resolveComponentFactory(e).inputs}function u2(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],l=h2(a,t,i);l!==-1&&r[l].push(a)}return r}function h2(e,t,n){let r=n;return s2(e)&&t.some((i,o)=>i!=="*"&&a2(e,i)?(r=o,!0):!1),r}var d2=10,f2=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Wo).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new p2(this.componentFactory,e,this.inputMap)}},p2=class{componentFactory;injector;inputMap;eventEmitters=new d1(1);events=this.eventEmitters.pipe(jm(e=>Aa(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(Ge),this.appRef=this.injector.get(_r),this.cdScheduler=t.get(Jr),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=i2.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},d2))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=Tt.create({providers:[],parent:this.injector}),n=u2(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new wt(o=>{let s=i.subscribe(a=>o.next({name:r,value:a}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},g2=class extends HTMLElement{ngElementEventsSubscription=null};function m2(e,t){let n=c2(e,t.injector),r=t.strategyFactory||new f2(e,t.injector),i=l2(n);class o extends g2{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:u})=>{if(!this.hasOwnProperty(l))return;let d=this[l];delete this[l],a.setInputValue(l,d,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,u,d){let[h,_]=i[a];this.ngElementStrategy.setInputValue(h,u,_)}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 l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var Ly=null;function oo(){return Ly}function _2(e){Ly??=e}var v2=class{},rt=new Ee(""),Vy=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:()=>R(y2),providedIn:"platform"})}return e})(),y2=(()=>{class e extends Vy{_location;_history;_doc=R(rt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return oo().getBaseHref(this._doc)}onPopState(n){let r=oo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=oo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function jy(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function tp(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function kr(e){return e&&e[0]!=="?"?`?${e}`:e}var ld=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:()=>R(w2),providedIn:"root"})}return e})(),b2=new Ee(""),w2=(()=>{class e extends ld{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??R(rt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return jy(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+kr(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+kr(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+kr(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(n){return new(n||e)(je(Vy),je(b2,8))};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fy=(()=>{class e{_subject=new ve;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=S2(tp(np(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+kr(r))}normalize(n){return e.stripTrailingSlash(E2(this._basePath,np(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kr(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kr(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=kr;static joinWithSlash=jy;static stripTrailingSlash=tp;static \u0275fac=function(n){return new(n||e)(je(ld))};static \u0275prov=de({token:e,factory:()=>x2(),providedIn:"root"})}return e})();function x2(){return new Fy(je(ld))}function E2(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function np(e){return e.replace(/\/index.html$/,"")}function S2(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}function C2(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var zl=/\s+/,rp=[],tl=(()=>{class e{_ngEl;_renderer;initialClasses=rp;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(zl):rp}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(zl):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(zl).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||e)(Et($t),Et(Jh))};static \u0275dir=Zo({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),I2=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,i){this._ngEl=n,this._differs=r,this._renderer=i}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[i,o]=n.split("."),s=i.indexOf("-")===-1?void 0:ur.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(n){return new(n||e)(Et($t),Et(Ny),Et(Jh))};static \u0275dir=Zo({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),T2=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(n,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(n){return new(n||e)(Et(Li))};static \u0275dir=Zo({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[f_]})}return e})(),D2=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=td({type:e});static \u0275inj=uh({})}return e})(),By="browser",O2="server";function k2(e){return e===By}function Uy(e){return e===O2}var R2=class{},P2=class extends v2{supportsDOMEvents=!0},N2=class Hy extends P2{static makeCurrent(){_2(new Hy)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=A2();return n==null?null:M2(n)}resetBaseElement(){Qi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return C2(document.cookie,t)}},Qi=null;function A2(){return Qi=Qi||document.querySelector("base"),Qi?Qi.getAttribute("href"):null}function M2(e){return new URL(e,document.baseURI).pathname}var L2=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac})}return e})(),eu=new Ee(""),$y=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new De(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(je(eu),je(Ge))};static \u0275prov=de({token:e,factory:e.\u0275fac})}return e})(),zy=class{_doc;constructor(e){this._doc=e}manager},As="ng-app-id";function ip(e){for(let t of e)t.remove()}function op(e,t){let n=t.createElement("style");return n.textContent=e,n}function V2(e,t,n,r){let i=e.head?.querySelectorAll(`style[${As}="${t}"],link[${As}="${t}"]`);if(i)for(let o of i)o.removeAttribute(As),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 tu(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var qy=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=Uy(o),V2(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,op);r?.forEach(i=>this.addUsage(i,this.external,tu))}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&&(ip(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ip(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,op(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,tu(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(As,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(je(rt),je(Ah),je(lv,8),je(za))};static \u0275prov=de({token:e,factory:e.\u0275fac})}return e})(),ql={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"},cd=/%COMP%/g,Wy="%COMP%",j2=`_nghost-${Wy}`,F2=`_ngcontent-${Wy}`,B2=!0,U2=new Ee("",{providedIn:"root",factory:()=>B2});function H2(e){return F2.replace(cd,e)}function $2(e){return j2.replace(cd,e)}function Zy(e,t){return t.map(n=>n.replace(cd,e))}var sp=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,l,u=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.tracingService=d,this.platformIsServer=Uy(a),this.defaultRenderer=new ud(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===$n.ShadowDom&&(r=Ne(A({},r),{encapsulation:$n.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof lp?i.applyToHost(n):i instanceof nu&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer,_=this.tracingService;switch(r.encapsulation){case $n.Emulated:o=new lp(l,u,r,this.appId,d,s,a,h,_);break;case $n.ShadowDom:return new z2(l,u,n,r,s,a,this.nonce,h,_);default:o=new nu(l,u,r,d,s,a,h,_);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(je($y),je(qy),je(Ah),je(U2),je(rt),je(za),je(Ge),je(lv),je(Ho,8))};static \u0275prov=de({token:e,factory:e.\u0275fac})}return e})(),ud=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(ql[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(ap(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(ap(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new De(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=ql[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=ql[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(ur.DashCase|ur.Important)?e.style.setProperty(t,n,r&ur.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&ur.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=oo().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function ap(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var z2=class extends ud{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Zy(r.id,u);for(let h of u){let _=document.createElement("style");s&&_.setAttribute("nonce",s),_.textContent=h,this.shadowRoot.appendChild(_)}let d=r.getExternalStyles?.();if(d)for(let h of d){let _=tu(h,i);s&&_.setAttribute("nonce",s),this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},nu=class extends ud{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,a,l){super(e,i,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=l?Zy(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},lp=class extends nu{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,a,l){let u=r+"-"+n.id;super(e,t,n,i,o,s,a,l,u),this.contentAttr=H2(u),this.hostAttr=$2(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},q2=(()=>{class e extends zy{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(je(rt))};static \u0275prov=de({token:e,factory:e.\u0275fac})}return e})(),cp=["alt","control","meta","shift"],W2={"\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"},Z2={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},G2=(()=>{class e extends zy{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oo().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=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),cp.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=W2[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"),cp.forEach(s=>{if(s!==i){let a=Z2[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(je(rt))};static \u0275prov=de({token:e,factory:e.\u0275fac})}return e})();function Y2(e){return $D(K2(e))}function K2(e){return{appProviders:[...tO,...e?.providers??[]],platformProviders:eO}}function J2(){N2.makeCurrent()}function X2(){return new Xr}function Q2(){return oS(document),document}var eO=[{provide:za,useValue:By},{provide:av,useValue:J2,multi:!0},{provide:rt,useFactory:Q2,deps:[]}],tO=[{provide:gh,useValue:"root"},{provide:Xr,useFactory:X2,deps:[]},{provide:eu,useClass:q2,multi:!0,deps:[rt]},{provide:eu,useClass:G2,multi:!0,deps:[rt]},sp,qy,$y,{provide:Dn,useExisting:sp},{provide:R2,useClass:L2,deps:[]},[]],Gy=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=je(nO),r},providedIn:"root"})}return e})(),nO=(()=>{class e extends Gy{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Un.NONE:return r;case Un.HTML:return Tr(r,"HTML")?Hn(r):bv(this._doc,String(r)).toString();case Un.STYLE:return Tr(r,"Style")?Hn(r):r;case Un.SCRIPT:if(Tr(r,"Script"))return Hn(r);throw new De(5200,!1);case Un.URL:return Tr(r,"URL")?Hn(r):jh(String(r));case Un.RESOURCE_URL:if(Tr(r,"ResourceURL"))return Hn(r);throw new De(5201,!1);default:throw new De(5202,!1)}}bypassSecurityTrustHtml(n){return CS(n)}bypassSecurityTrustStyle(n){return IS(n)}bypassSecurityTrustScript(n){return TS(n)}bypassSecurityTrustUrl(n){return DS(n)}bypassSecurityTrustResourceUrl(n){return OS(n)}static \u0275fac=function(n){return new(n||e)(je(rt))};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rO="9.12.0",St=class ru{static SDK_VERSION=rO;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_EXPERIMENT_START="CE Experiment Start";static EVENT_VIDEO_DIALOG_CLOSED="CE Video Dialog Closed";static EVENT_VIDEO_DIALOG_OPENED="CE Video Dialog Opened";static EVENT_VIDEO_CHANGE="CE Video Changed";static EVENT_LAST_VIDEO_ENDED="CE Last Video Ended";static EVENT_VIDEO_MUTED="CE Video Muted";static EVENT_VIDEO_UNMUTED="CE Video Unmuted";static EVENT_ADD_TO_CART_CLICKED="CE Add To Cart Clicked";static EVENT_VIEW_ITEM_CLICKED="CE View Item Clicked";static EVENT_MORE_ITEM_INFO_CLICKED="CE More Item Info Clicked";static EVENT_OPEN_CART_CLICKED="CE Open Cart Clicked";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_OPEN_CART="Open 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 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=ru.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");ru.SDK_VERSION_CODE=parseInt(t,10)}},Ci={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",styleURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${St.SDK_VERSION}/dist/widget.min.css`,widgetURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${St.SDK_VERSION}/dist/widget.min.js`},en=Ca(Vw()),Wn=class{static log(...e){en.default.info(...e)}static debug(...e){en.default.debug(...e)}static error(...e){en.default.error(...e)}static warn(...e){en.default.warn(...e)}static info(...e){en.default.info(...e)}static trace(...e){en.default.trace(...e)}};function iO(e=St.LOG_PREFIX){en.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${St.SDK_VERSION}):`)}});let t=oO();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?en.default.setLevel(en.default[localStorage.cooeeLogLevel]):en.default.setLevel(Ci.debug?en.default.TRACE:en.default.OFF)}function oO(){return new URL(location.href).searchParams?.get("cooee-debug")}var ds=Ca(tm()),sO={providers:[OD()]},aO={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},$5=Ne(A({},aO),{"[class.ng-submitted]":"isSubmitted"}),lO=new Ee("",{providedIn:"root",factory:()=>Yy}),Yy="always",cO=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=td({type:e});static \u0275inj=uh({})}return e})(),uO=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:lO,useValue:n.callSetDisabledState??Yy}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=td({type:e});static \u0275inj=uh({imports:[cO]})}return e})(),Rr=class{static SWIPER_CSS="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css";static injectScriptURL(e,t){if(!e)return;let n=document.createElement("script");n.id=t??"",n.src=e,Ci.mode==="local"&&(n.type="module"),document.head.appendChild(n)}static injectRawScript(e){if(!e)return;let t=document.createElement("script");t.id="cooee-app-script",t.innerHTML=e,document.head.appendChild(t)}static injectRawCSS(e,t=document.head){if(!e)return;let n=document.createElement("style");n.textContent=e,t.appendChild(n)}static injectSwiperCSS(e=document.head){this.injectStylesheet(this.SWIPER_CSS,e)}static injectStylesheet(e,t=document.head){if(!e)return;let n=document.createElement("link");n.rel="stylesheet",n.href=e,e===this.SWIPER_CSS&&(n.crossOrigin="anonymous",n.onload=r=>{let i=r.currentTarget?.sheet?.cssRules;if(i){for(let o of i)if(o.type==CSSRule.FONT_FACE_RULE){let s=e.split("/"),a=s.slice(0,s.length-1).join("/"),l=o.cssText;l=l.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,`url("${a}/$4")`);let u=document.createElement("style");u.appendChild(document.createTextNode(l)),document.head.appendChild(u)}}}),t.appendChild(n)}static async loadSwiperScript(){window.CooeeSDK.Swiper||(window.CooeeSDK.Swiper=(await import("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.mjs")).Swiper)}},nl=class iu{cooeeEvent=new Xe;cooeeCTA=new Xe;elementRef=R($t);_engagementTrigger=Jn(null);_triggerContext=Jn(null);constructor(){this.elementRef.nativeElement.update=this.update.bind(this)}get classes(){let t=["letscooee-widget"],n=this._engagementTrigger();return t.push(`widget-${n?.shortID}`),t}get triggerContext(){return this._triggerContext()}set triggerContext(t){this._triggerContext.set(t),this._engagementTrigger.set(t.triggerData),this.engagementTriggerReceived(t.triggerData)}get engagementTrigger(){return this._engagementTrigger()}ngOnInit(){Wn.debug("Init",this.constructor.name);let t=this.elementRef.nativeElement.shadowRoot;t&&(Rr.injectStylesheet(Ci.styleURL,t),Rr.injectRawCSS(window.CooeeSDK.config.website.commonCSS,t))}ngOnDestroy(){Wn.debug("Destroying",this.constructor.name)}sendEventToRenderer(t){this.cooeeEvent.emit(t)}executeCTAViaRenderer(t){this.cooeeCTA.emit(t)}static \u0275fac=function(t){return new(t||iu)};static \u0275cmp=Pt({type:iu,selectors:[["ng-component"]],hostVars:2,hostBindings:function(t,n){t&2&&BT(n.classes)},inputs:{triggerContext:"triggerContext"},outputs:{cooeeEvent:"cooeeEvent",cooeeCTA:"cooeeCTA"},decls:0,vars:0,template:function(t,n){},encapsulation:2})},hO=(e,t,n)=>({"--option-color":e,"background-color":t,color:n}),Ky=(e,t)=>t.id;function dO(e,t){if(e&1&&(G(0,"span",6),Ye(1),Y()),e&2){Q();let n=rn(0);Z(),Fi(n)}}function fO(e,t){if(e&1){let n=jt();jn(0),G(1,"button",5),ot("click",function(){let r=ct(n).$implicit,i=Q().$implicit,o=Q();return ut(o.onOptionChange(i,r))}),nt(2,dO,2,1,"span",6),Y()}if(e&2){let n=t.$implicit,r=Q().$implicit,i=rn(1),o=Q(),s=zr(n.name);Z(),Yo("color-type",i)("selected",o.selectedOptions()[r.name]===s),Pe("disabled",n.disabled)("ngStyle",yD(9,hO,i?s:"",i?s:"",i?"transparent":"")),Go("data-value",s),Z(),tt(i?-1:2)}}function pO(e,t){if(e&1&&(G(0,"div"),jn(1),G(2,"div",1),Ye(3),Y(),G(4,"div",2),Ye(5),Y(),G(6,"div",3),Lt(7,fO,3,13,"button",4,Ky),Y()()),e&2){let n=t.$implicit,r=Q();YT("option-group ",n.name.toLowerCase(),""),Z(),zr(n.name.toLowerCase().includes("color")),Z(2),En("",n.name,":"),Z(2),Fi(r.selectedOptions()[n.name]),Z(2),Vt(n.optionValues)}}var gO=class ou extends nl{selectedVariant=new Xe;item=$E.required();selectedOptions=Jn({});options=ep(()=>{let t=this.item();return!t.options||t.vars.length===1?[]:t.options});matchedVariant=ep(()=>{let t=this.item(),n=this.selectedOptions();return t.vars.find(r=>t.options.every(i=>n[i.name]===r.selectedOptions.find(o=>o.name===i.name)?.value))});constructor(){super(),Qc(()=>{let n=this.matchedVariant();n&&(this.item().setSelectedVariant(n),this.selectedVariant.emit(n))});let t=Qc(()=>{let n=this.item();if(!n?.options)return;let r=A({},this.selectedOptions());n.options.forEach(i=>{let o=n.vars[0]?.selectedOptions.find(s=>s.name===i.name)?.value;o&&(r[i.name]=o)}),this.selectedOptions.set(r),t.destroy()})}onOptionChange(t,n){let r=A({},this.selectedOptions());r[t.name]=n.name,this.selectedOptions.set(r)}engagementTriggerReceived(){}update(){}static \u0275fac=function(t){return new(t||ou)};static \u0275cmp=Pt({type:ou,selectors:[["cooee-item-options-picker"]],inputs:{item:[1,"item"]},outputs:{selectedVariant:"selectedVariant"},features:[br],decls:2,vars:0,consts:[[3,"class"],[1,"name"],[1,"selected-value"],[1,"option-values"],[1,"option-value",3,"disabled","color-type","selected","ngStyle"],[1,"option-value",3,"click","disabled","ngStyle"],[1,"title"]],template:function(t,n){t&1&&Lt(0,pO,9,6,"div",0,Ky),t&2&&Vt(n.options())},dependencies:[D2,I2,uO],styles:[`.option-group{display:flex;gap:8px;align-items:center}.option-group+.option-group{margin-top:8px}.option-values{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:8px}.selected-value{display:none}.option-value{padding:5px 10px;border:1px solid #ccc;cursor:pointer;border-radius:4px;min-width:32px;min-height:32px;text-align:center;position:relative;--selected-color: var(--option-color, var(--lc-color-button, rgb(var(--color-button, 0 0 0))))}.option-value.selected{box-shadow:#fff 0 0 0 2px,var(--selected-color) 0 0 0 4px}
|
|
17
|
+
`],encapsulation:3})},Jy=function(e){return e.SHOPIFY_CHECKOUT="shopify_checkout",e.THIRD_PARTY_CHECKOUT="third_party_checkout",e.CART_PAGE="cart_page",e.CART_DRAWER="cart_drawer",e}(Jy||{}),Mn=function(e){return e[e.NONE=0]="NONE",e[e.REJECT_POPUP=1]="REJECT_POPUP",e[e.ACCEPT_POPUP=2]="ACCEPT_POPUP",e[e.GO_TO_URL=4]="GO_TO_URL",e[e.SHARE=5]="SHARE",e[e.KEY_VALUE=100]="KEY_VALUE",e[e.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",e[e.ADD_TO_CART=102]="ADD_TO_CART",e[e.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",e[e.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",e[e.OPEN_CART=105]="OPEN_CART",e[e.SUBMIT_FORM=106]="SUBMIT_FORM",e[e.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",e[e.ADD_BUNDLE=108]="ADD_BUNDLE",e[e.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",e}(Mn||{}),Ms=function(e){return e.FREE_SHIPPING="FREE_SHIPPING",e.DISCOUNT="DISCOUNT",e.FREE_AUTO_GIFT="FREE_AUTO_GIFT",e.FREE_GIFT_SELECT="FREE_GIFT_SELECT",e.UI_ONLY="UI_ONLY",e}(Ms||{}),mO=class{id;mID;vID;vName;imageURL;name;link;quantity;price;finalPrice;constructor(e){this.id=e.id,this.mID=e.mID,this.vID=e.vID,this.vName=e.vName,this.imageURL=e.imageURL,this.name=e.name,this.link=e.link,this.quantity=e.quantity,this.price=e.price,this.finalPrice=e.finalPrice??e.price}},Xy=(e=>(e.CART_AMOUNT="CART_AMOUNT",e.ITEM_COUNT="ITEM_COUNT",e))(Xy||{}),Qy=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;currency;static get(){return window.CooeeSDK.config}update(e){return e??={},this.gaEnabled=e.gaEnabled,this.gaMeasurementID=e.gaMeasurementID,this.pixelPush=e.pixelPush,this.website=e.website??{},this.currencyCount=e.currencyCount??0,this.money=e.money,this.currency=e.currency,this.storefrontToken=e.storefrontToken,this.skipItemAttribute=e.skipItemAttribute,this}},e0=Object.prototype.toString;function hd(e){switch(e0.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return qr(e,Error)}}function Bi(e,t){return e0.call(e)===`[object ${t}]`}function t0(e){return Bi(e,"ErrorEvent")}function up(e){return Bi(e,"DOMError")}function _O(e){return Bi(e,"DOMException")}function Zn(e){return Bi(e,"String")}function dd(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function fd(e){return e===null||dd(e)||typeof e!="object"&&typeof e!="function"}function Ii(e){return Bi(e,"Object")}function rl(e){return typeof Event<"u"&&qr(e,Event)}function vO(e){return typeof Element<"u"&&qr(e,Element)}function yO(e){return Bi(e,"RegExp")}function il(e){return!!(e&&e.then&&typeof e.then=="function")}function bO(e){return Ii(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function qr(e,t){try{return e instanceof t}catch{return!1}}function n0(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function vi(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function hp(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let i=e[r];try{n0(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function wO(e,t,n=!1){return Zn(e)?yO(t)?t.test(e):Zn(t)?n?e===t:e.includes(t):!1:!1}function ol(e,t=[],n=!1){return t.some(r=>wO(e,r,n))}function xO(e,t,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!qr(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=EO(su(e,t,i,s.originalException,r,o.exception.values,a,0),n))}function su(e,t,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(qr(r[i],Error)){dp(s,a);let u=e(t,r[i]),d=l.length;fp(u,i,d,a),l=su(e,t,n,r[i],i,[u,...l],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(qr(u,Error)){dp(s,a);let h=e(t,u),_=l.length;fp(h,`errors[${d}]`,_,a),l=su(e,t,n,u,i,[h,...l],h,_)}}),l}function dp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=Ne(A(A({},e.mechanism),e.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:t})}function fp(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=Ne(A({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function EO(e,t){return e.map(n=>(n.value&&(n.value=vi(n.value,t)),n))}var Pr="8.18.0",Be=globalThis;function pd(e,t,n){let r=n||Be,i=r.__SENTRY__=r.__SENTRY__||{},o=i[Pr]=i[Pr]||{};return o[e]||(o[e]=t())}var gd=Be,SO=80;function r0(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,i=[],o=0,s=0,a=" > ",l=a.length,u,d=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||SO;for(;n&&o++<r&&(u=CO(n,d),!(u==="html"||o>1&&s+i.length*l+u.length>=h));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function CO(e,t){let n=e,r=[];if(!n||!n.tagName)return"";if(gd.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i&&i.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&Zn(s)){let a=s.split(/\s+/);for(let l of a)r.push(`.${l}`)}}let o=["aria-label","type","name","title","alt"];for(let s of o){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function IO(){try{return gd.document.location.href}catch{return""}}function TO(e){if(!gd.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}var Jo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,DO="Sentry Logger ",au=["debug","info","warn","error","log","assert","trace"],da={};function md(e){if(!("console"in Be))return e();let t=Be.console,n={},r=Object.keys(da);r.forEach(i=>{let o=da[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function OO(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Jo?au.forEach(n=>{t[n]=(...r)=>{e&&md(()=>{Be.console[n](`${DO}[${n}]:`,...r)})}}):au.forEach(n=>{t[n]=()=>{}}),t}var we=OO(),kO=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function RO(e){return e==="http"||e==="https"}function sl(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function PO(e){let t=kO.exec(e);if(!t){md(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",o="",s="",a=""]=t.slice(1),l="",u=a,d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){let h=u.match(/^\d+/);h&&(u=h[0])}return i0({host:o,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function i0(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function NO(e){if(!Jo)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(we.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?RO(r)?t&&isNaN(parseInt(t,10))?(we.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(we.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(we.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function AO(e){let t=typeof e=="string"?PO(e):i0(e);if(!(!t||!NO(t)))return t}var Rn=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function It(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i=="function"&&o0(i,r),e[t]=i}function Wr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Jo&&we.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function o0(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,Wr(e,"__sentry_original__",t)}catch{}}function _d(e){return e.__sentry_original__}function MO(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function s0(e){if(hd(e))return A({message:e.message,name:e.name,stack:e.stack},gp(e));if(rl(e)){let t=A({type:e.type,target:pp(e.target),currentTarget:pp(e.currentTarget)},gp(e));return typeof CustomEvent<"u"&&qr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function pp(e){try{return vO(e)?r0(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function gp(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function LO(e,t=40){let n=Object.keys(s0(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return vi(r,t);for(let i=n.length;i>0;i--){let o=n.slice(0,i).join(", ");if(!(o.length>t))return i===n.length?o:vi(o,t)}return""}function pn(e){return lu(e,new Map)}function lu(e,t){if(VO(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let i of Object.keys(e))typeof e[i]<"u"&&(r[i]=lu(e[i],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(i=>{r.push(lu(i,t))}),r}return e}function VO(e){if(!Ii(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}var Zr="?",mp=/\(error: (.*)\)/,_p=/captureMessage|captureException/;function jO(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
|
|
18
|
+
`);for(let a=r;a<s.length;a++){let l=s[a];if(l.length>1024)continue;let u=mp.test(l)?l.replace(mp,"$1"):l;if(!u.match(/\S*Error: /)){for(let d of t){let h=d(u);if(h){o.push(h);break}}if(o.length>=50+i)break}}return FO(o.slice(i))}}function FO(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(fs(t).function||"")&&t.pop(),t.reverse(),_p.test(fs(t).function||"")&&(t.pop(),_p.test(fs(t).function||"")&&t.pop()),t.slice(0,50).map(n=>Ne(A({},n),{filename:n.filename||fs(t).filename,function:n.function||Zr}))}function fs(e){return e[e.length-1]||{}}var Wl="<anonymous>";function vr(e){try{return!e||typeof e!="function"?Wl:e.name||Wl}catch{return Wl}}function vp(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var Ls={},yp={};function ni(e,t){Ls[e]=Ls[e]||[],Ls[e].push(t)}function ri(e,t){yp[e]||(t(),yp[e]=!0)}function vn(e,t){let n=e&&Ls[e];if(n)for(let r of n)try{r(t)}catch(i){Jo&&we.error(`Error while triggering instrumentation handler.
|
|
19
19
|
Type: ${e}
|
|
20
|
-
Name: ${
|
|
21
|
-
Error:`,i)}}function
|
|
20
|
+
Name: ${vr(r)}
|
|
21
|
+
Error:`,i)}}function BO(e){let t="console";ni(t,e),ri(t,UO)}function UO(){"console"in Be&&au.forEach(function(e){e in Be.console&&It(Be.console,e,function(t){return da[e]=t,function(...n){vn("console",{args:n,level:e});let r=da[e];r&&r.apply(Be.console,n)}})})}var cu=Be;function HO(){if(!("fetch"in cu))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function uu(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function $O(){if(typeof EdgeRuntime=="string")return!0;if(!HO())return!1;if(uu(cu.fetch))return!0;let e=!1,t=cu.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=uu(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Jo&&we.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var a0=1e3;function Xo(){return Date.now()/a0}function zO(){let{performance:e}=Be;if(!e||!e.now)return Xo;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/a0}var pr=zO(),ps,z5=(()=>{let{performance:e}=Be;if(!e||!e.now){ps="none";return}let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,s=e.timing&&e.timing.navigationStart,a=typeof s=="number"?Math.abs(s+n-r):t,l=a<t;return o||l?i<=a?(ps="timeOrigin",e.timeOrigin):(ps="navigationStart",s):(ps="dateNow",r)})();function qO(e){let t="fetch";ni(t,e),ri(t,WO)}function WO(){$O()&&It(Be,"fetch",function(e){return function(...t){let{method:n,url:r}=ZO(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:pr()*1e3};vn("fetch",A({},i));let o=new Error().stack;return e.apply(Be,t).then(s=>{let a=Ne(A({},i),{endTimestamp:pr()*1e3,response:s});return vn("fetch",a),s},s=>{let a=Ne(A({},i),{endTimestamp:pr()*1e3,error:s});throw vn("fetch",a),hd(s)&&s.stack===void 0&&(s.stack=o,Wr(s,"framesToPop",1)),s})}})}function hu(e,t){return!!e&&typeof e=="object"&&!!e[t]}function bp(e){return typeof e=="string"?e:e?hu(e,"url")?e.url:e.toString?e.toString():"":""}function ZO(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:bp(n),method:hu(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:bp(t),method:hu(t,"method")?String(t.method).toUpperCase():"GET"}}var gs=null;function GO(e){let t="error";ni(t,e),ri(t,YO)}function YO(){gs=Be.onerror,Be.onerror=function(e,t,n,r,i){return vn("error",{column:r,error:i,line:n,msg:e,url:t}),gs&&!gs.__SENTRY_LOADER__?gs.apply(this,arguments):!1},Be.onerror.__SENTRY_INSTRUMENTED__=!0}var ms=null;function KO(e){let t="unhandledrejection";ni(t,e),ri(t,JO)}function JO(){ms=Be.onunhandledrejection,Be.onunhandledrejection=function(e){return vn("unhandledrejection",e),ms&&!ms.__SENTRY_LOADER__?ms.apply(this,arguments):!0},Be.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function XO(){return"npm"}function QO(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function yn(){let e=Be,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function l0(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ar(e){let{message:t,event_id:n}=e;if(t)return t;let r=l0(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function du(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function To(e,t){let n=l0(e);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=A(A(A({},r),i),t),t&&"data"in t){let o=A(A({},i&&i.data),t.data);n.mechanism.data=o}}function wp(e){if(e&&e.__sentry_captured__)return!0;try{Wr(e,"__sentry_captured__",!0)}catch{}return!1}function ek(e){return Array.isArray(e)?e:[e]}function lr(e,t=100,n=1/0){try{return fu("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function c0(e,t=3,n=100*1024){let r=lr(e,t);return ik(r)>n?c0(e,t-1,n):r}function fu(e,t,n=1/0,r=1/0,i=QO()){let[o,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let a=tk(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(o(t))return"[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let m=u.toJSON();return fu("",m,l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},h=0,_=s0(t);for(let m in _){if(!Object.prototype.hasOwnProperty.call(_,m))continue;if(h>=r){d[m]="[MaxProperties ~]";break}let b=_[m];d[m]=fu(m,b,l-1,r,i),h++}return s(t),d}function tk(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(n0(t))return"[VueViewModel]";if(bO(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${vr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=nk(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function nk(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function rk(e){return~-encodeURI(e).split(/%..|./).length}function ik(e){return rk(JSON.stringify(e))}var Bn;(function(e){e[e.PENDING=0]="PENDING";let t=1;e[e.RESOLVED=t]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"})(Bn||(Bn={}));function Gr(e){return new Qo(t=>{t(e)})}function fa(e){return new Qo((t,n)=>{n(e)})}var Qo=class Cr{constructor(t){Cr.prototype.__init.call(this),Cr.prototype.__init2.call(this),Cr.prototype.__init3.call(this),Cr.prototype.__init4.call(this),this._state=Bn.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Cr((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Cr((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,t&&t()},s=>{o=!0,i=s,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Bn.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Bn.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Bn.PENDING){if(il(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Bn.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Bn.RESOLVED&&n[1](this._value),this._state===Bn.REJECTED&&n[2](this._value),n[0]=!0)})}}};function ok(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return fa(new Rn("Not adding Promise because buffer limit was reached."));let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new Qo((a,l)=>{let u=t.length;if(!u)return a(!0);let d=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(h=>{Gr(h).then(()=>{--u||(clearTimeout(d),a(!0))},l)})})}return{$:t,add:i,drain:o}}function Zl(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var sk=["fatal","error","warning","log","info","debug"];function ak(e){return e==="warn"?"warning":sk.includes(e)?e:"log"}var lk="sentry-",ck=/^sentry-/;function uk(e){let t=hk(e);if(!t)return;let n=Object.entries(t).reduce((r,[i,o])=>{if(i.match(ck)){let s=i.slice(lk.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function hk(e){if(!(!e||!Zn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=xp(n);return Object.entries(r).forEach(([i,o])=>{t[i]=o}),t},{}):xp(e)}function xp(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function es(e,t=[]){return[e,t]}function dk(e,t){let[n,r]=e;return[n,[...r,t]]}function Ep(e,t){let n=e[1];for(let r of n){let i=r[0].type;if(t(r,i))return!0}return!1}function pu(e){return Be.__SENTRY__&&Be.__SENTRY__.encodePolyfill?Be.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function fk(e){let[t,n]=e,r=JSON.stringify(t);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[pu(r),o]:r.push(typeof o=="string"?pu(o):o)}for(let o of n){let[s,a]=o;if(i(`
|
|
22
22
|
${JSON.stringify(s)}
|
|
23
|
-
`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(cr(a))}i(l)}}return typeof r=="string"?r:bR(r)}function bR(e){let t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}function wR(e){let t=typeof e.data=="string"?gu(e.data):e.data;return[gn({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var ER={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Ip(e){return ER[e]}function u0(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function xR(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return L(L(L({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:sl(r)}),i&&{trace:gn(L({},i))})}function SR(e,t,n){let r=[{type:"client_report"},{timestamp:n||es(),discarded_events:e}];return ns(t?{dsn:t}:{},[r])}function CR(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function IR(e,t){return e[t]||e.all||0}function TR(e,t,n=Date.now()){return IR(e,t)>n}function OR(e,{statusCode:t,headers:n},r=Date.now()){let i=L({},e),o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let a of o.trim().split(",")){let[l,u,,,d]=a.split(":",5),h=parseInt(l,10),v=(isNaN(h)?60:h)*1e3;if(!u)i.all=r+v;else for(let m of u.split(";"))m==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[m]=r+v):i[m]=r+v}else s?i.all=r+CR(s,r):t===429&&(i.all=r+60*1e3);return i}function Tp(){return{traceId:bn(),spanId:bn().substring(16)}}var ys=Ue;function DR(){let e=ys.chrome,t=e&&e.app&&e.app.runtime,n="history"in ys&&!!ys.history.pushState&&!!ys.history.replaceState;return!t&&n}var at=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function al(){return bd(Ue),Ue}function bd(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||kr,t[kr]=t[kr]||{}}function _u(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||gr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:bn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}var mu="_sentrySpan";function Op(e,t){t?qr(e,mu,t):delete e[mu]}function Dp(e){return e[mu]}var RR=100,kR=class h0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Tp()}clone(){let t=new h0;return t._breadcrumbs=[...this._breadcrumbs],t._tags=L({},this._tags),t._extra=L({},this._extra),t._contexts=L({},this._contexts),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata=L({},this._sdkProcessingMetadata),t._propagationContext=L({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,Op(t,Dp(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&_u(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags=L(L({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this._tags=Le(L({},this._tags),{[t]:n}),this._notifyScopeListeners(),this}setExtras(t){return this._extra=L(L({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=Le(L({},this._extra),{[t]:n}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t,[r,i]=n instanceof Qn?[n.getScopeData(),n.getRequestSession()]:Ci(n)?[t,t.requestSession]:[],{tags:o,extra:s,user:a,contexts:l,level:u,fingerprint:d=[],propagationContext:h}=r||{};return this._tags=L(L({},this._tags),o),this._extra=L(L({},this._extra),s),this._contexts=L(L({},this._contexts),l),a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),h&&(this._propagationContext=h),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Op(this,void 0),this._attachments=[],this._propagationContext=Tp(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:RR;if(r<=0)return this;let i=L({timestamp:es()},t),o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Dp(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=L(L({},this._sdkProcessingMetadata),t),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n&&n.event_id?n.event_id:bn();if(!this._client)return Ee.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(t,Le(L({originalException:t,syntheticException:i},n),{event_id:r}),this),r}captureMessage(t,n,r){let i=r&&r.event_id?r.event_id:bn();if(!this._client)return Ee.warn("No client configured on scope - will not capture message!"),i;let o=new Error(t);return this._client.captureMessage(t,n,Le(L({originalException:t,syntheticException:o},r),{event_id:i}),this),i}captureEvent(t,n){let r=n&&n.event_id?n.event_id:bn();return this._client?(this._client.captureEvent(t,Le(L({},n),{event_id:r}),this),r):(Ee.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}},Qn=kR;function NR(){return _d("defaultCurrentScope",()=>new Qn)}function PR(){return _d("defaultIsolationScope",()=>new Qn)}var AR=class{constructor(e,t){let n;e?n=e:n=new Qn;let r;t?r=t:r=new Qn,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(r){throw this._popScope(),r}return il(n)?n.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ii(){let e=al(),t=bd(e);return t.stack=t.stack||new AR(NR(),PR())}function LR(e){return Ii().withScope(e)}function MR(e,t){let n=Ii();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Rp(e){return Ii().withScope(()=>e(Ii().getIsolationScope()))}function VR(){return{withIsolationScope:Rp,withScope:LR,withSetScope:MR,withSetIsolationScope:(e,t)=>Rp(t),getCurrentScope:()=>Ii().getScope(),getIsolationScope:()=>Ii().getIsolationScope()}}function wd(e){let t=bd(e);return t.acs?t.acs:VR()}function Ed(){let e=al();return wd(e).getCurrentScope()}function d0(){let e=al();return wd(e).getIsolationScope()}function jR(){return _d("globalScope",()=>new Qn)}function FR(...e){let t=al(),n=wd(t);if(e.length===2){let[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Kt(){return Ed().getClient()}var BR="_sentryMetrics";function UR(e){let t=e[BR];if(!t)return;let n={};for(let[,[r,i]]of t)(n[r]||(n[r]=[])).push(gn(i));return n}var HR="sentry.source",$R="sentry.sample_rate",zR="sentry.op",WR="sentry.origin",qR=1;function GR(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=_a(e);return gn({parent_span_id:r,span_id:t,trace_id:n})}function kp(e){return typeof e=="number"?Np(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Np(e.getTime()):gr()}function Np(e){return e>9999999999?e/1e3:e}function _a(e){if(YR(e))return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(ZR(e)){let{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:l}=e;return gn({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:kp(i),timestamp:kp(s)||void 0,status:JR(l),op:r[zR],origin:r[WR],_metrics_summary:UR(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function ZR(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function YR(e){return typeof e.getSpanJSON=="function"}function KR(e){let{traceFlags:t}=e.spanContext();return t===qR}function JR(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var XR="_sentryRootSpan";function f0(e){return e[XR]||e}var p0="production",QR="_frozenDsc";function g0(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=gn({environment:n.environment||p0,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function ek(e){let t=Kt();if(!t)return{};let n=g0(_a(e).trace_id||"",t),r=f0(e),i=r[QR];if(i)return i;let o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&_R(s);if(a)return a;let l=_a(r),u=l.data||{},d=u[$R];d!=null&&(n.sample_rate=`${d}`);let h=u[HR],v=l.description;return h!=="url"&&v&&(n.transaction=v),n.sampled=String(KR(r)),t.emit("createDsc",n,r),n}function tk(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){at&&Ee.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function nk(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function rk(e,t,n,r){let i=u0(n),o=L(L({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:sl(t)}),s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ns(o,[s])}function ik(e,t,n,r){let i=u0(n),o=e.type&&e.type!=="replay_event"?e.type:"event";nk(e,n&&n.sdk);let s=xR(e,i,r,t);return delete e.sdkProcessingMetadata,ns(s,[[{type:o},e]])}function vu(e,t,n,r=0){return new ts((i,o)=>{let s=e[r];if(t===null||typeof s!="function")i(t);else{let a=s(L({},t),n);at&&s.id&&a===null&&Ee.log(`Event processor "${s.id}" dropped event`),il(a)?a.then(l=>vu(e,l,n,r+1).then(i)).then(null,o):vu(e,a,n,r+1).then(i).then(null,o)}})}function ok(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;sk(e,t),r&&ck(e,r),uk(e,n),ak(e,i),lk(e,o)}function Pp(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:h,propagationContext:v,transactionName:m,span:w}=t;Zi(e,"extra",n),Zi(e,"tags",r),Zi(e,"user",i),Zi(e,"contexts",o),Zi(e,"sdkProcessingMetadata",a),s&&(e.level=s),m&&(e.transactionName=m),w&&(e.span=w),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext=L(L({},e.propagationContext),v)}function Zi(e,t,n){if(n&&Object.keys(n).length){e[t]=L({},e[t]);for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function sk(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,l=gn(n);l&&Object.keys(l).length&&(e.extra=L(L({},l),e.extra));let u=gn(r);u&&Object.keys(u).length&&(e.tags=L(L({},u),e.tags));let d=gn(i);d&&Object.keys(d).length&&(e.user=L(L({},d),e.user));let h=gn(o);h&&Object.keys(h).length&&(e.contexts=L(L({},h),e.contexts)),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function ak(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function lk(e,t){e.sdkProcessingMetadata=L(L({},e.sdkProcessingMetadata),t)}function ck(e,t){e.contexts=L({trace:GR(t)},e.contexts),e.sdkProcessingMetadata=L({dynamicSamplingContext:ek(t)},e.sdkProcessingMetadata);let n=f0(t),r=_a(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function uk(e,t){e.fingerprint=e.fingerprint?sR(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function hk(e,t,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l=Le(L({},t),{event_id:t.event_id||n.event_id||bn(),timestamp:t.timestamp||es()}),u=n.integrations||e.integrations.map(C=>C.name);dk(l,e),gk(l,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&fk(l,e.stackParser);let d=mk(r,n.captureContext);n.mechanism&&Do(l,n.mechanism);let h=i?i.getEventProcessors():[],v=jR().getScopeData();if(o){let C=o.getScopeData();Pp(v,C)}if(d){let C=d.getScopeData();Pp(v,C)}let m=[...n.attachments||[],...v.attachments];m.length&&(n.attachments=m),ok(l,v);let w=[...h,...v.eventProcessors];return vu(w,l,n).then(C=>(C&&pk(C),typeof s=="number"&&s>0?_k(C,s,a):C))}function dk(e,t){let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:p0),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=mi(e.message,o));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=mi(s.value,o));let a=e.request;a&&a.url&&(a.url=mi(a.url,o))}var Ap=new WeakMap;function fk(e,t){let n=Ue._sentryDebugIds;if(!n)return;let r,i=Ap.get(t);i?r=i:(r=new Map,Ap.set(t,r));let o=Object.entries(n).reduce((s,[a,l])=>{let u,d=r.get(a);d?u=d:(u=t(a),r.set(a,u));for(let h=u.length-1;h>=0;h--){let v=u[h];if(v.filename){s[v.filename]=l;break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function pk(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function gk(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function _k(e,t,n){if(!e)return null;let r=L(L(L(L(L({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>L(L({},i),i.data&&{data:cr(i.data,t,n)}))}),e.user&&{user:cr(e.user,t,n)}),e.contexts&&{contexts:cr(e.contexts,t,n)}),e.extra&&{extra:cr(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=cr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>L(L({},i),i.data&&{data:cr(i.data,t,n)}))),r}function mk(e,t){if(!t)return e;let n=e?e.clone():new Qn;return n.update(t),n}function vk(e){if(e)return yk(e)?{captureContext:e}:wk(e)?{captureContext:e}:e}function yk(e){return e instanceof Qn||typeof e=="function"}var bk=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function wk(e){return Object.keys(e).some(t=>bk.includes(t))}function Ek(e,t){return Ed().captureException(e,vk(t))}function _0(e,t){return Ed().captureEvent(e,t)}var xk="7";function Sk(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Ck(e){return`${Sk(e)}${e.projectId}/envelope/`}function Ik(e,t){return U2(L({sentry_key:e.publicKey,sentry_version:xk},t&&{sentry_client:`${t.name}/${t.version}`}))}function Tk(e,t,n){return t||`${Ck(e)}?${Ik(e,n)}`}var Lp=[];function Ok(e,t){let n={};return t.forEach(r=>{r&&m0(e,r,n)}),n}function Mp(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function m0(e,t,n){if(n[t.name]){at&&Ee.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Lp.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Lp.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),i=Object.assign((o,s)=>r(o,s,e),{id:t.name});e.addEventProcessor(i)}at&&Ee.log(`Integration installed: ${t.name}`)}var Vp="Not capturing exception because it's already been captured.",Dk=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=B2(e.dsn):at&&Ee.warn("No DSN provided, client will not send events."),this._dsn){let t=Tk(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(Le(L({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){let r=bn();if(xp(e))return at&&Ee.log(Vp),r;let i=L({event_id:r},t);return this._process(this.eventFromException(e,i).then(o=>this._captureEvent(o,i,n))),i.event_id}captureMessage(e,t,n,r){let i=L({event_id:bn()},n),o=pd(e)?e:String(e),s=gd(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(a=>this._captureEvent(a,i,r))),i.event_id}captureEvent(e,t,n){let r=bn();if(t&&t.originalException&&xp(t.originalException))return at&&Ee.log(Vp),r;let i=L({event_id:r},t),o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||n)),i.event_id}captureSession(e){typeof e.release!="string"?at&&Ee.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),_u(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(r=>n&&r))):Zr(!0)}close(e){return this.flush(e).then(t=>(this.getOptions().enabled=!1,this.emit("close"),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];m0(this,e,this._integrations),t||Mp(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=ik(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of t.attachments||[])n=vR(n,wR(i));let r=this.sendEnvelope(n);r&&r.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let t=rk(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=`${e}:${t}`;at&&Ee.log(`Adding outcome: "${r}"`),this._outcomes[r]=(this._outcomes[r]||0)+1}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let r=n.indexOf(t);r>-1&&n.splice(r,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(r=>r(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,t=>(at&&Ee.error("Error while sending event:",t),t)):(at&&Ee.error("Transport disabled"),Zr({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Ok(this,e),Mp(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let s of i){let a=s.mechanism;if(a&&a.handled===!1){n=!0;break}}}let o=e.status==="ok";(o&&e.errors===0||o&&n)&&(_u(e,Le(L({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new ts(t=>{let n=0,r=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),t(!0)):(n+=r,e&&n>=e&&(clearInterval(i),t(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r=d0()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),hk(i,e,t,n,this,r).then(s=>{if(s===null)return s;let a=L(L({},r.getPropagationContext()),n?n.getPropagationContext():void 0);if(!(s.contexts&&s.contexts.trace)&&a){let{traceId:l,spanId:u,parentSpanId:d,dsc:h}=a;s.contexts=L({trace:gn({trace_id:l,span_id:u,parent_span_id:d})},s.contexts);let v=h||g0(l,this);s.sdkProcessingMetadata=L({dynamicSamplingContext:v},s.sdkProcessingMetadata)}return s})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(r=>r.event_id,r=>{if(at){let i=r;i.logLevel==="log"?Ee.log(i.message):Ee.warn(i)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=yu(e),s=v0(e),a=e.type||"error",l=`before send for type \`${a}\``,u=typeof i>"u"?void 0:tk(i);if(s&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),ga(new Nn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let d=a==="replay_event"?"replay":a,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,h).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",d,e),new Nn("An event processor returned `null`, will not send event.","log");if(t.data&&t.data.__sentry__===!0)return v;let m=kk(this,r,v,t);return Rk(m,l)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",d,e),yu(e)){let C=1+(e.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+C}throw new Nn(`${l} returned \`null\`, will not send event.`,"log")}let m=n&&n.getSession();!o&&m&&this._updateSessionFromEvent(m,v);let w=v.transaction_info;if(o&&w&&v.transaction!==e.transaction){let C="custom";v.transaction_info=Le(L({},w),{source:C})}return this.sendEvent(v,t),v}).then(null,v=>{throw v instanceof Nn?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),new Nn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
24
|
-
Reason: ${
|
|
25
|
-
Event: ${
|
|
26
|
-
Event: ${
|
|
27
|
-
Event: ${
|
|
28
|
-
Event: ${
|
|
29
|
-
Event: ${
|
|
30
|
-
Url: ${
|
|
31
|
-
Event: ${
|
|
32
|
-
Url: ${ma(e)}`),!0)}function Wk(e,t){return e.type||!t||!t.length?!1:Yk(e).some(n=>ol(n,t))}function qk(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;let n=e.transaction;return n?ol(n,t):!1}function Gk(e,t){if(!t||!t.length)return!1;let n=ma(e);return n?ol(n,t):!1}function Zk(e,t){if(!t||!t.length)return!0;let n=ma(e);return n?ol(n,t):!0}function Yk(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Kk(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Jk(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ma(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Jk(t):null}catch{return at&&Ee.error(`Cannot extract url for event ${lr(e)}`),null}}function Xk(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}var Qk="Dedupe",eN=()=>{let e;return{name:Qk,processEvent(t){if(t.type)return t;try{if(nN(t,e))return at&&Ee.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},tN=eN;function nN(e,t){return t?!!(rN(e,t)||iN(e,t)):!1}function rN(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!b0(e,t)||!y0(e,t))}function iN(e,t){let n=Up(t),r=Up(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!b0(e,t)||!y0(e,t))}function y0(e,t){let n=bp(e),r=bp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function b0(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Up(e){return e.exception&&e.exception.values&&e.exception.values[0]}var Ct=Ue,bu=0;function w0(){return bu>0}function oN(){bu++,setTimeout(()=>{bu--})}function Ti(e,t={},n){if(typeof e!="function")return e;try{let i=e.__sentry_wrapped__;if(i)return i;if(yd(e))return e}catch{return e}let r=function(){let i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let o=i.map(s=>Ti(s,t));return e.apply(this,o)}catch(o){throw oN(),FR(s=>{s.addEventProcessor(a=>(t.mechanism&&(fu(a,void 0,void 0),Do(a,t.mechanism)),a.extra=Le(L({},a.extra),{arguments:i}),a)),Ek(o)}),o}};try{for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}o0(r,e),qr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var hi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function xd(e,t){let n=Sd(e,t),r={type:t&&t.name,value:uN(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function sN(e,t,n,r){let i=Kt(),o=i&&i.getOptions().normalizeDepth,s=gN(t),a={__serialized__:c0(t,o)};if(s)return{exception:{values:[xd(e,s)]},extra:a};let l={exception:{values:[{type:rl(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:fN(t,{isUnhandledRejection:r})}]},extra:a};if(n){let u=Sd(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function Yl(e,t){return{exception:{values:[xd(e,t)]}}}function Sd(e,t){let n=t.stacktrace||t.stack||"",r=lN(t),i=cN(t);try{return e(n,r,i)}catch{}return[]}var aN=/Minified React error #\d+;/i;function lN(e){return e&&aN.test(e.message)?1:0}function cN(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function uN(e){let t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function hN(e,t,n,r){let i=n&&n.syntheticException||void 0,o=Cd(e,t,i,r);return Do(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Zr(o)}function dN(e,t,n="info",r,i){let o=r&&r.syntheticException||void 0,s=wu(e,t,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Zr(s)}function Cd(e,t,n,r,i){let o;if(t0(t)&&t.error)return Yl(e,t.error);if(dp(t)||x2(t)){let s=t;if("stack"in t)o=Yl(e,t);else{let a=s.name||(dp(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=wu(e,l,n,r),fu(o,l)}return"code"in s&&(o.tags=Le(L({},o.tags),{"DOMException.code":`${s.code}`})),o}return fd(t)?Yl(e,t):Ci(t)||rl(t)?(o=sN(e,t,n,i),Do(o,{synthetic:!0}),o):(o=wu(e,t,n,r),fu(o,`${t}`,void 0),Do(o,{synthetic:!0}),o)}function wu(e,t,n,r){let i={};if(r&&n){let o=Sd(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(pd(t)){let{__sentry_template_string__:o,__sentry_template_values__:s}=t;return i.logentry={message:o,params:s},i}return i.message=t,i}function fN(e,{isUnhandledRejection:t}){let n=H2(e),r=t?"promise rejection":"exception";return t0(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:rl(e)?`Event \`${pN(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function pN(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function gN(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}function _N(e,{metadata:t,tunnel:n,dsn:r}){let i=L(L({event_id:e.event_id,sent_at:new Date().toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:sl(r)}),o=mN(e);return ns(i,[o])}function mN(e){return[{type:"user_report"},e]}var vN=class extends Dk{constructor(e){let t=L({parentSpanIsAlwaysRootSpan:!0},e),n=Ct.SENTRY_SDK_SOURCE||iR();Ak(t,"browser",["browser"],n),super(t),t.sendClientReports&&Ct.document&&Ct.document.addEventListener("visibilitychange",()=>{Ct.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,t){return hN(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return dN(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){hi&&Ee.warn("SDK not enabled, will not capture user feedback.");return}let t=_N(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){hi&&Ee.log("No outcomes to send");return}if(!this._dsn){hi&&Ee.log("No dsn provided, will not send outcomes");return}hi&&Ee.log("Sending outcomes:",e);let t=SR(e,this._options.tunnel&&sl(this._dsn));this.sendEnvelope(t)}},yN=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dt=Ue,bN=1e3,Hp,Eu,xu;function wN(e){let t="dom";ti(t,e),ni(t,EN)}function EN(){if(!Dt.document)return;let e=yn.bind(null,"dom"),t=$p(e,!0);Dt.document.addEventListener("click",t,!1),Dt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=Dt[n]&&Dt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(It(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=u[o]=u[o]||{refCount:0};if(!d.handler){let h=$p(e);d.handler=h,i.call(this,o,h,a)}d.refCount++}catch{}return i.call(this,o,s,a)}}),It(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let l=this,u=l.__sentry_instrumentation_handlers__||{},d=u[o];d&&(d.refCount--,d.refCount<=0&&(i.call(this,o,d.handler,a),d.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function xN(e){if(e.type!==Eu)return!1;try{if(!e.target||e.target._sentryId!==xu)return!1}catch{}return!0}function SN(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function $p(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=CN(n);if(SN(n.type,r))return;qr(n,"_sentryCaptured",!0),r&&!r._sentryId&&qr(r,"_sentryId",bn());let i=n.type==="keypress"?"input":n.type;xN(n)||(e({event:n,name:i,global:t}),Eu=n.type,xu=r?r._sentryId:void 0),clearTimeout(Hp),Hp=Dt.setTimeout(()=>{xu=void 0,Eu=void 0},bN)}}function CN(e){try{return e.target}catch{return null}}var bs;function IN(e){let t="history";ti(t,e),ni(t,TN)}function TN(){if(!DR())return;let e=Dt.onpopstate;Dt.onpopstate=function(...n){let r=Dt.location.href,i=bs;if(bs=r,yn("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let o=bs,s=String(i);bs=s,yn("history",{from:o,to:s})}return n.apply(this,r)}}It(Dt.history,"pushState",t),It(Dt.history,"replaceState",t)}var Fs={};function ON(e){let t=Fs[e];if(t)return t;let n=Dt[e];if(hu(n))return Fs[e]=n.bind(Dt);let r=Dt.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(i)}catch(i){yN&&Ee.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(Fs[e]=n.bind(Dt))}function zp(e){Fs[e]=void 0}var no="__sentry_xhr_v3__";function DN(e){let t="xhr";ti(t,e),ni(t,RN)}function RN(){if(!Dt.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;It(e,"open",function(t){return function(...n){let r=gr()*1e3,i=Yn(n[0])?n[0].toUpperCase():void 0,o=kN(n[1]);if(!i||!o)return t.apply(this,n);this[no]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[no];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let l={endTimestamp:gr()*1e3,startTimestamp:r,xhr:this};yn("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?It(this,"onreadystatechange",function(a){return function(...l){return s(),a.apply(this,l)}}):this.addEventListener("readystatechange",s),It(this,"setRequestHeader",function(a){return function(...l){let[u,d]=l,h=this[no];return h&&Yn(u)&&Yn(d)&&(h.request_headers[u.toLowerCase()]=d),a.apply(this,l)}}),t.apply(this,n)}}),It(e,"send",function(t){return function(...n){let r=this[no];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let i={startTimestamp:gr()*1e3,xhr:this};return yn("xhr",i),t.apply(this,n)}})}function kN(e){if(Yn(e))return e;try{return e.toString()}catch{}}function NN(e,t=ON("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=L({body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);if(!t)return zp("fetch"),ga("No fetch implementation available");try{return t(e.url,a).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return zp("fetch"),n-=s,r--,ga(l)}}return Pk(e,i)}var PN=30,AN=50;function Su(e,t,n,r){let i={filename:e,function:t==="<anonymous>"?Gr:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var LN=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,MN=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,VN=/\((\S*)(?::(\d+))(?::(\d+))\)/,jN=e=>{let t=LN.exec(e);if(t){let[,r,i,o]=t;return Su(r,Gr,+i,+o)}let n=MN.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){let o=VN.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}let[r,i]=E0(n[1]||Gr,n[2]);return Su(i,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},FN=[PN,jN],BN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,UN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,HN=e=>{let t=BN.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=UN.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let n=t[3],r=t[1]||Gr;return[r,n]=E0(r,n),Su(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},$N=[AN,HN],zN=[FN,$N],WN=z2(...zN),E0=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Gr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ws=1024,qN="Breadcrumbs",GN=(e={})=>{let t=L({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:qN,setup(n){t.console&&q2(JN(n)),t.dom&&wN(KN(n,t.dom)),t.xhr&&DN(XN(n)),t.fetch&&J2(QN(n)),t.history&&IN(eP(n)),t.sentry&&n.on("beforeSendEvent",YN(n))}}},ZN=GN;function YN(e){return function(t){Kt()===e&&Yr({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:lr(t)},{event:t})}}function KN(e,t){return function(n){if(Kt()!==e)return;let r,i,o=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>ws&&(hi&&Ee.warn(`\`dom.maxStringLength\` cannot exceed ${ws}, but a value of ${s} was configured. Sentry will use ${ws} instead.`),s=ws),typeof o=="string"&&(o=[o]);try{let l=n.event,u=tP(l)?l.target:l;r=r0(u,{keyAttrs:o,maxStringLength:s}),i=P2(u)}catch{r="<unknown>"}if(r.length===0)return;let a={category:`ui.${n.name}`,message:r};i&&(a.data={"ui.component_name":i}),Yr(a,{event:n.event,name:n.name,global:n.global})}}function JN(e){return function(t){if(Kt()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:fR(t.level),message:fp(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)n.message=`Assertion failed: ${fp(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1);else return;Yr(n,{input:t.args,level:t.level})}}function XN(e){return function(t){if(Kt()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[no];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:l}=i,u={method:o,url:s,status_code:a},d={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r};Yr({category:"xhr",data:u,type:"http"},d)}}function QN(e){return function(t){if(Kt()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){let i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};Yr({category:"fetch",data:i,level:"error",type:"http"},o)}else{let i=t.response,o=Le(L({},t.fetchData),{status_code:i&&i.status}),s={input:t.args,response:i,startTimestamp:n,endTimestamp:r};Yr({category:"fetch",data:o,type:"http"},s)}}}function eP(e){return function(t){if(Kt()!==e)return;let n=t.from,r=t.to,i=Zl(Ct.location.href),o=n?Zl(n):void 0,s=Zl(r);(!o||!o.path)&&(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Yr({category:"navigation",data:{from:n,to:r}})}}function tP(e){return!!e&&!!e.target}var nP=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rP="BrowserApiErrors",iP=(e={})=>{let t=L({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e);return{name:rP,setupOnce(){t.setTimeout&&It(Ct,"setTimeout",Wp),t.setInterval&&It(Ct,"setInterval",Wp),t.requestAnimationFrame&&It(Ct,"requestAnimationFrame",sP),t.XMLHttpRequest&&"XMLHttpRequest"in Ct&&It(XMLHttpRequest.prototype,"send",aP);let n=t.eventTarget;n&&(Array.isArray(n)?n:nP).forEach(lP)}}},oP=iP;function Wp(e){return function(...t){let n=t[0];return t[0]=Ti(n,{mechanism:{data:{function:yr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function sP(e){return function(t){return e.apply(this,[Ti(t,{mechanism:{data:{function:"requestAnimationFrame",handler:yr(e)},handled:!1,type:"instrument"}})])}}function aP(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&It(n,r,function(i){let o={mechanism:{data:{function:r,handler:yr(i)},handled:!1,type:"instrument"}},s=yd(i);return s&&(o.mechanism.data.handler=yr(s)),Ti(i,o)})}),e.apply(this,t)}}function lP(e){let t=Ct,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(It(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=Ti(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:yr(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Ti(o,{mechanism:{data:{function:"addEventListener",handler:yr(o),target:e},handled:!1,type:"instrument"}}),s])}}),It(n,"removeEventListener",function(r){return function(i,o,s){let a=o;try{let l=a&&a.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,a,s)}}))}var cP="GlobalHandlers",uP=(e={})=>{let t=L({onerror:!0,onunhandledrejection:!0},e);return{name:cP,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(dP(n),qp("onerror")),t.onunhandledrejection&&(fP(n),qp("onunhandledrejection"))}}},hP=uP;function dP(e){eR(t=>{let{stackParser:n,attachStacktrace:r}=x0();if(Kt()!==e||w0())return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=_P(Cd(n,l||i,void 0,r,!1),o,s,a);u.level="error",_0(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function fP(e){nR(t=>{let{stackParser:n,attachStacktrace:r}=x0();if(Kt()!==e||w0())return;let i=pP(t),o=gd(i)?gP(i):Cd(n,i,void 0,r,!0);o.level="error",_0(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function pP(e){if(gd(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function gP(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function _P(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=Yn(t)&&t.length>0?t:N2();return l.length===0&&l.push({colno:u,filename:h,function:Gr,in_app:!0,lineno:d}),e}function qp(e){hi&&Ee.log(`Global Handler attached: ${e}`)}function x0(){let e=Kt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var mP=()=>({name:"HttpContext",preprocessEvent(e){if(!Ct.navigator&&!Ct.location&&!Ct.document)return;let t=e.request&&e.request.url||Ct.location&&Ct.location.href,{referrer:n}=Ct.document||{},{userAgent:r}=Ct.navigator||{},i=L(L(L({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),o=Le(L(L({},e.request),t&&{url:t}),{headers:i});e.request=o}}),vP="cause",yP=5,bP="LinkedErrors",wP=(e={})=>{let t=e.limit||yP,n=e.key||vP;return{name:bP,preprocessEvent(r,i,o){let s=o.getOptions();O2(xd,s.stackParser,s.maxValueLength,n,t,r,i)}}},EP=wP;function xP(e){return[Hk(),jk(),oP(),ZN(),hP(),EP(),tN(),mP()]}var SP=class extends Error{cause;constructor(e,t){super(e),this.cause=t}},CP=class S0{static INSTANCE;contexts={};tags;client;user;constructor(){this.init()}static getInstance(){return this.INSTANCE||(this.INSTANCE=new S0),this.INSTANCE}captureException(t,n,r){pn.error(t),this.getNewScope(n,r).captureException(t)}captureMessage(t,n,r,i){this.getNewScope(r,i).captureMessage(t,n??"error")}captureError(t,n,r,i){pn.error(t,n);let o=this.getNewScope(r,i),s=new SP(t,n);o.captureException(s)}setGlobalContext(t,n){this.contexts[t]=L({context:n},this.contexts[t])}setUser(t){this.user=t}setTags(t){this.tags=t}getNewScope(t,n){let r=new Qn;if(r.setClient(this.client),r.setUser(this.user),t?.triggerContext){let i=t.triggerContext;r.setExtras(i.triggerData.sentryContext()),delete t.triggerContext}return t&&r.setExtras(t),this.tags&&r.setTags(this.tags),n&&r.setTags(n),Object.keys(this.contexts).forEach(i=>{r.setContext(i,this.contexts[i])}),r.setTag("language",navigator.language),r.setTag("timezone",RP()),r}init(){let t=xP({}).filter(n=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(n.name));this.client=new vN({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:NN,stackParser:WN,integrations:t,environment:Si.mode,release:`web-sdk@${St.SDK_VERSION}`,debug:Si.debug}),this.client.init()}},Gp=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart";static MUTED="muted"},Zp=Cn(Bw());function C0(e){return Zp.default.createInstance({name:"lc",storeName:e,driver:Zp.default.LOCALSTORAGE})}var I0=class{static storage;static async get(e,t){return await this.storage?.getItem(e)??t}static set(e,t){return this.storage?.setItem(e,t)}static remove(e){return this.storage?.removeItem(e)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}},X5=class extends I0{static storeName="ses";static{this.storage=C0(this.storeName)}},Yp=class extends I0{static storeName="usr";static{this.storage=C0(this.storeName)}},IP=class{static format(e,t){let n=/{{\s*(\w+)\s*}}/;return t.replace(n,(r,i)=>{switch(i){case"amount":return this.formatWithDelimiters(e,2);case"amount_no_decimals":return this.formatWithDelimiters(e,0);case"amount_with_comma_separator":return this.formatWithDelimiters(e,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(e,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(e,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(e,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(e,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(e,2," ",".");default:return r}})}static formatWithDelimiters(e,t=2,n=",",r="."){if(isNaN(e)||e==null)return"0";let i=(e/100).toFixed(t).split("."),o=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),s=i[1]?r+i[1]:"";return o+s}},TP=class{id;mID;vID;vName;imageURL;name;link;quantity;price;finalPrice;constructor(e){this.id=e.id,this.mID=e.mID,this.vID=e.vID,this.vName=e.vName,this.imageURL=e.imageURL,this.name=e.name,this.link=e.link,this.quantity=e.quantity,this.price=e.price,this.finalPrice=e.finalPrice??e.price}},OP=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;locale;activeExperiment;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(e){this._currencyCode=e}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(e){this.currentItem=new TP(e)}};function Id(e,t){if(e==0&&t)return"Free";let n=OP.get(),r=Qy.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||pn.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=IP.format(e*100,s);else{let l;try{l=new Intl.NumberFormat(DP(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(u){return CP.getInstance().captureException(u,{currentCurrency:o,shopCurrency:i}),""}a=l.format(e),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))}return a}function DP(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}var Es;function RP(){if(Es)return Es;try{return Es=Intl.DateTimeFormat().resolvedOptions().timeZone,Es}catch{return""}}var ll=class Cu{transform(t){return t==null?null:Id(t)}static \u0275fac=function(t){return new(t||Cu)};static \u0275pipe=id({name:"cooeeCurrency",type:Cu,pure:!0})},kP=Cn(Uw()),NP=Object.prototype.toString,$i=Array.isArray||function(e){return NP.call(e)==="[object Array]"};function Td(e){return typeof e=="function"}function PP(e){return $i(e)?"array":typeof e}function Kl(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Kp(e,t){return e!=null&&typeof e=="object"&&t in e}function AP(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var LP=RegExp.prototype.test;function MP(e,t){return LP.call(e,t)}var VP=/\S/;function jP(e){return!MP(VP,e)}var FP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function BP(e){return String(e).replace(/[&<>"'`=\/]/g,function(t){return FP[t]})}var UP=/\s*/,HP=/\s+/,Jp=/\s*=/,$P=/\s*\}/,zP=/#|\^|\/|>|\{|&|=|!/;function WP(e,t){if(!e)return[];var n=!1,r=[],i=[],o=[],s=!1,a=!1,l="",u=0;function d(){if(s&&!a)for(;o.length;)delete i[o.pop()];else o=[];s=!1,a=!1}var h,v,m;function w(F){if(typeof F=="string"&&(F=F.split(HP,2)),!$i(F)||F.length!==2)throw new Error("Invalid tags: "+F);h=new RegExp(Kl(F[0])+"\\s*"),v=new RegExp("\\s*"+Kl(F[1])),m=new RegExp("\\s*"+Kl("}"+F[1]))}w(t||an.tags);for(var C=new rs(e),A,P,$,re,z,ie;!C.eos();){if(A=C.pos,$=C.scanUntil(h),$)for(var ke=0,Ne=$.length;ke<Ne;++ke)re=$.charAt(ke),jP(re)?(o.push(i.length),l+=re):(a=!0,n=!0,l+=" "),i.push(["text",re,A,A+1]),A+=1,re===`
|
|
33
|
-
`&&(d(),l="",u=0,n=!1);if(!
|
|
23
|
+
`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(lr(a))}i(l)}}return typeof r=="string"?r:pk(r)}function pk(e){let t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}function gk(e){let t=typeof e.data=="string"?pu(e.data):e.data;return[pn({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var mk={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Sp(e){return mk[e]}function u0(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function _k(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return A(A(A({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:sl(r)}),i&&{trace:pn(A({},i))})}function vk(e,t,n){let r=[{type:"client_report"},{timestamp:n||Xo(),discarded_events:e}];return es(t?{dsn:t}:{},[r])}function yk(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function bk(e,t){return e[t]||e.all||0}function wk(e,t,n=Date.now()){return bk(e,t)>n}function xk(e,{statusCode:t,headers:n},r=Date.now()){let i=A({},e),o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let a of o.trim().split(",")){let[l,u,,,d]=a.split(":",5),h=parseInt(l,10),_=(isNaN(h)?60:h)*1e3;if(!u)i.all=r+_;else for(let m of u.split(";"))m==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[m]=r+_):i[m]=r+_}else s?i.all=r+yk(s,r):t===429&&(i.all=r+60*1e3);return i}function Cp(){return{traceId:yn(),spanId:yn().substring(16)}}var _s=Be;function Ek(){let e=_s.chrome,t=e&&e.app&&e.app.runtime,n="history"in _s&&!!_s.history.pushState&&!!_s.history.replaceState;return!t&&n}var at=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function al(){return vd(Be),Be}function vd(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Pr,t[Pr]=t[Pr]||{}}function gu(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||pr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:yn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}var mu="_sentrySpan";function Ip(e,t){t?Wr(e,mu,t):delete e[mu]}function Tp(e){return e[mu]}var Sk=100,Ck=class h0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Cp()}clone(){let t=new h0;return t._breadcrumbs=[...this._breadcrumbs],t._tags=A({},this._tags),t._extra=A({},this._extra),t._contexts=A({},this._contexts),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata=A({},this._sdkProcessingMetadata),t._propagationContext=A({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,Ip(t,Tp(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&gu(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags=A(A({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this._tags=Ne(A({},this._tags),{[t]:n}),this._notifyScopeListeners(),this}setExtras(t){return this._extra=A(A({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=Ne(A({},this._extra),{[t]:n}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t,[r,i]=n instanceof Xn?[n.getScopeData(),n.getRequestSession()]:Ii(n)?[t,t.requestSession]:[],{tags:o,extra:s,user:a,contexts:l,level:u,fingerprint:d=[],propagationContext:h}=r||{};return this._tags=A(A({},this._tags),o),this._extra=A(A({},this._extra),s),this._contexts=A(A({},this._contexts),l),a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),h&&(this._propagationContext=h),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Ip(this,void 0),this._attachments=[],this._propagationContext=Cp(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:Sk;if(r<=0)return this;let i=A({timestamp:Xo()},t),o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Tp(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=A(A({},this._sdkProcessingMetadata),t),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n&&n.event_id?n.event_id:yn();if(!this._client)return we.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(t,Ne(A({originalException:t,syntheticException:i},n),{event_id:r}),this),r}captureMessage(t,n,r){let i=r&&r.event_id?r.event_id:yn();if(!this._client)return we.warn("No client configured on scope - will not capture message!"),i;let o=new Error(t);return this._client.captureMessage(t,n,Ne(A({originalException:t,syntheticException:o},r),{event_id:i}),this),i}captureEvent(t,n){let r=n&&n.event_id?n.event_id:yn();return this._client?(this._client.captureEvent(t,Ne(A({},n),{event_id:r}),this),r):(we.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}},Xn=Ck;function Ik(){return pd("defaultCurrentScope",()=>new Xn)}function Tk(){return pd("defaultIsolationScope",()=>new Xn)}var Dk=class{constructor(e,t){let n;e?n=e:n=new Xn;let r;t?r=t:r=new Xn,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(r){throw this._popScope(),r}return il(n)?n.then(r=>(this._popScope(),r),r=>{throw this._popScope(),r}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ti(){let e=al(),t=vd(e);return t.stack=t.stack||new Dk(Ik(),Tk())}function Ok(e){return Ti().withScope(e)}function kk(e,t){let n=Ti();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Dp(e){return Ti().withScope(()=>e(Ti().getIsolationScope()))}function Rk(){return{withIsolationScope:Dp,withScope:Ok,withSetScope:kk,withSetIsolationScope:(e,t)=>Dp(t),getCurrentScope:()=>Ti().getScope(),getIsolationScope:()=>Ti().getIsolationScope()}}function yd(e){let t=vd(e);return t.acs?t.acs:Rk()}function bd(){let e=al();return yd(e).getCurrentScope()}function d0(){let e=al();return yd(e).getIsolationScope()}function Pk(){return pd("globalScope",()=>new Xn)}function Nk(...e){let t=al(),n=yd(t);if(e.length===2){let[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Kt(){return bd().getClient()}var Ak="_sentryMetrics";function Mk(e){let t=e[Ak];if(!t)return;let n={};for(let[,[r,i]]of t)(n[r]||(n[r]=[])).push(pn(i));return n}var Lk="sentry.source",Vk="sentry.sample_rate",jk="sentry.op",Fk="sentry.origin",Bk=1;function Uk(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=pa(e);return pn({parent_span_id:r,span_id:t,trace_id:n})}function Op(e){return typeof e=="number"?kp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?kp(e.getTime()):pr()}function kp(e){return e>9999999999?e/1e3:e}function pa(e){if($k(e))return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(Hk(e)){let{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:l}=e;return pn({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Op(i),timestamp:Op(s)||void 0,status:qk(l),op:r[jk],origin:r[Fk],_metrics_summary:Mk(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Hk(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function $k(e){return typeof e.getSpanJSON=="function"}function zk(e){let{traceFlags:t}=e.spanContext();return t===Bk}function qk(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var Wk="_sentryRootSpan";function f0(e){return e[Wk]||e}var p0="production",Zk="_frozenDsc";function g0(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=pn({environment:n.environment||p0,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function Gk(e){let t=Kt();if(!t)return{};let n=g0(pa(e).trace_id||"",t),r=f0(e),i=r[Zk];if(i)return i;let o=r.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&uk(s);if(a)return a;let l=pa(r),u=l.data||{},d=u[Vk];d!=null&&(n.sample_rate=`${d}`);let h=u[Lk],_=l.description;return h!=="url"&&_&&(n.transaction=_),n.sampled=String(zk(r)),t.emit("createDsc",n,r),n}function Yk(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){at&&we.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function Kk(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Jk(e,t,n,r){let i=u0(n),o=A(A({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:sl(t)}),s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return es(o,[s])}function Xk(e,t,n,r){let i=u0(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Kk(e,n&&n.sdk);let s=_k(e,i,r,t);return delete e.sdkProcessingMetadata,es(s,[[{type:o},e]])}function _u(e,t,n,r=0){return new Qo((i,o)=>{let s=e[r];if(t===null||typeof s!="function")i(t);else{let a=s(A({},t),n);at&&s.id&&a===null&&we.log(`Event processor "${s.id}" dropped event`),il(a)?a.then(l=>_u(e,l,n,r+1).then(i)).then(null,o):_u(e,a,n,r+1).then(i).then(null,o)}})}function Qk(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;eR(e,t),r&&rR(e,r),iR(e,n),tR(e,i),nR(e,o)}function Rp(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:h,propagationContext:_,transactionName:m,span:b}=t;Wi(e,"extra",n),Wi(e,"tags",r),Wi(e,"user",i),Wi(e,"contexts",o),Wi(e,"sdkProcessingMetadata",a),s&&(e.level=s),m&&(e.transactionName=m),b&&(e.span=b),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext=A(A({},e.propagationContext),_)}function Wi(e,t,n){if(n&&Object.keys(n).length){e[t]=A({},e[t]);for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function eR(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t,l=pn(n);l&&Object.keys(l).length&&(e.extra=A(A({},l),e.extra));let u=pn(r);u&&Object.keys(u).length&&(e.tags=A(A({},u),e.tags));let d=pn(i);d&&Object.keys(d).length&&(e.user=A(A({},d),e.user));let h=pn(o);h&&Object.keys(h).length&&(e.contexts=A(A({},h),e.contexts)),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function tR(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function nR(e,t){e.sdkProcessingMetadata=A(A({},e.sdkProcessingMetadata),t)}function rR(e,t){e.contexts=A({trace:Uk(t)},e.contexts),e.sdkProcessingMetadata=A({dynamicSamplingContext:Gk(t)},e.sdkProcessingMetadata);let n=f0(t),r=pa(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function iR(e,t){e.fingerprint=e.fingerprint?ek(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function oR(e,t,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l=Ne(A({},t),{event_id:t.event_id||n.event_id||yn(),timestamp:t.timestamp||Xo()}),u=n.integrations||e.integrations.map(S=>S.name);sR(l,e),cR(l,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&aR(l,e.stackParser);let d=hR(r,n.captureContext);n.mechanism&&To(l,n.mechanism);let h=i?i.getEventProcessors():[],_=Pk().getScopeData();if(o){let S=o.getScopeData();Rp(_,S)}if(d){let S=d.getScopeData();Rp(_,S)}let m=[...n.attachments||[],..._.attachments];m.length&&(n.attachments=m),Qk(l,_);let b=[...h,..._.eventProcessors];return _u(b,l,n).then(S=>(S&&lR(S),typeof s=="number"&&s>0?uR(S,s,a):S))}function sR(e,t){let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:p0),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=vi(e.message,o));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=vi(s.value,o));let a=e.request;a&&a.url&&(a.url=vi(a.url,o))}var Pp=new WeakMap;function aR(e,t){let n=Be._sentryDebugIds;if(!n)return;let r,i=Pp.get(t);i?r=i:(r=new Map,Pp.set(t,r));let o=Object.entries(n).reduce((s,[a,l])=>{let u,d=r.get(a);d?u=d:(u=t(a),r.set(a,u));for(let h=u.length-1;h>=0;h--){let _=u[h];if(_.filename){s[_.filename]=l;break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function lR(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function cR(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function uR(e,t,n){if(!e)return null;let r=A(A(A(A(A({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>A(A({},i),i.data&&{data:lr(i.data,t,n)}))}),e.user&&{user:lr(e.user,t,n)}),e.contexts&&{contexts:lr(e.contexts,t,n)}),e.extra&&{extra:lr(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=lr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>A(A({},i),i.data&&{data:lr(i.data,t,n)}))),r}function hR(e,t){if(!t)return e;let n=e?e.clone():new Xn;return n.update(t),n}function dR(e){if(e)return fR(e)?{captureContext:e}:gR(e)?{captureContext:e}:e}function fR(e){return e instanceof Xn||typeof e=="function"}var pR=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function gR(e){return Object.keys(e).some(t=>pR.includes(t))}function mR(e,t){return bd().captureException(e,dR(t))}function m0(e,t){return bd().captureEvent(e,t)}var _R="7";function vR(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function yR(e){return`${vR(e)}${e.projectId}/envelope/`}function bR(e,t){return MO(A({sentry_key:e.publicKey,sentry_version:_R},t&&{sentry_client:`${t.name}/${t.version}`}))}function wR(e,t,n){return t||`${yR(e)}?${bR(e,n)}`}var Np=[];function xR(e,t){let n={};return t.forEach(r=>{r&&_0(e,r,n)}),n}function Ap(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function _0(e,t,n){if(n[t.name]){at&&we.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Np.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Np.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),i=Object.assign((o,s)=>r(o,s,e),{id:t.name});e.addEventProcessor(i)}at&&we.log(`Integration installed: ${t.name}`)}var Mp="Not capturing exception because it's already been captured.",ER=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=AO(e.dsn):at&&we.warn("No DSN provided, client will not send events."),this._dsn){let t=wR(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(Ne(A({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){let r=yn();if(wp(e))return at&&we.log(Mp),r;let i=A({event_id:r},t);return this._process(this.eventFromException(e,i).then(o=>this._captureEvent(o,i,n))),i.event_id}captureMessage(e,t,n,r){let i=A({event_id:yn()},n),o=dd(e)?e:String(e),s=fd(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(a=>this._captureEvent(a,i,r))),i.event_id}captureEvent(e,t,n){let r=yn();if(t&&t.originalException&&wp(t.originalException))return at&&we.log(Mp),r;let i=A({event_id:r},t),o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||n)),i.event_id}captureSession(e){typeof e.release!="string"?at&&we.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),gu(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(r=>n&&r))):Gr(!0)}close(e){return this.flush(e).then(t=>(this.getOptions().enabled=!1,this.emit("close"),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];_0(this,e,this._integrations),t||Ap(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Xk(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of t.attachments||[])n=dk(n,gk(i));let r=this.sendEnvelope(n);r&&r.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let t=Jk(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=`${e}:${t}`;at&&we.log(`Adding outcome: "${r}"`),this._outcomes[r]=(this._outcomes[r]||0)+1}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let r=n.indexOf(t);r>-1&&n.splice(r,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(r=>r(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,t=>(at&&we.error("Error while sending event:",t),t)):(at&&we.error("Transport disabled"),Gr({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=xR(this,e),Ap(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let s of i){let a=s.mechanism;if(a&&a.handled===!1){n=!0;break}}}let o=e.status==="ok";(o&&e.errors===0||o&&n)&&(gu(e,Ne(A({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new Qo(t=>{let n=0,r=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),t(!0)):(n+=r,e&&n>=e&&(clearInterval(i),t(!1)))},r)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r=d0()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),oR(i,e,t,n,this,r).then(s=>{if(s===null)return s;let a=A(A({},r.getPropagationContext()),n?n.getPropagationContext():void 0);if(!(s.contexts&&s.contexts.trace)&&a){let{traceId:l,spanId:u,parentSpanId:d,dsc:h}=a;s.contexts=A({trace:pn({trace_id:l,span_id:u,parent_span_id:d})},s.contexts);let _=h||g0(l,this);s.sdkProcessingMetadata=A({dynamicSamplingContext:_},s.sdkProcessingMetadata)}return s})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(r=>r.event_id,r=>{if(at){let i=r;i.logLevel==="log"?we.log(i.message):we.warn(i)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=vu(e),s=v0(e),a=e.type||"error",l=`before send for type \`${a}\``,u=typeof i>"u"?void 0:Yk(i);if(s&&typeof u=="number"&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),fa(new Rn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let d=a==="replay_event"?"replay":a,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,h).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",d,e),new Rn("An event processor returned `null`, will not send event.","log");if(t.data&&t.data.__sentry__===!0)return _;let m=CR(this,r,_,t);return SR(m,l)}).then(_=>{if(_===null){if(this.recordDroppedEvent("before_send",d,e),vu(e)){let S=1+(e.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+S}throw new Rn(`${l} returned \`null\`, will not send event.`,"log")}let m=n&&n.getSession();!o&&m&&this._updateSessionFromEvent(m,_);let b=_.transaction_info;if(o&&b&&_.transaction!==e.transaction){let S="custom";_.transaction_info=Ne(A({},b),{source:S})}return this.sendEvent(_,t),_}).then(null,_=>{throw _ instanceof Rn?_:(this.captureException(_,{data:{__sentry__:!0},originalException:_}),new Rn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
24
|
+
Reason: ${_}`))})}_process(e){this._numProcessing++,e.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([t,n])=>{let[r,i]=t.split(":");return{reason:r,category:i,quantity:n}})}};function SR(e,t){let n=`${t} must return \`null\` or a valid event.`;if(il(e))return e.then(r=>{if(!Ii(r)&&r!==null)throw new Rn(n);return r},r=>{throw new Rn(`${t} rejected with ${r}`)});if(!Ii(e)&&e!==null)throw new Rn(n);return e}function CR(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if(v0(n)&&i)return i(n,r);if(vu(n)){if(n.spans&&s){let a=[];for(let l of n.spans){let u=s(l);u?a.push(u):e.recordDroppedEvent("before_send","span")}n.spans=a}if(o)return o(n,r)}return n}function v0(e){return e.type===void 0}function vu(e){return e.type==="transaction"}var IR=64;function TR(e,t,n=ok(e.bufferSize||IR)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(Ep(s,(h,_)=>{let m=Sp(_);if(wk(r,m)){let b=Lp(h,_);e.recordDroppedEvent("ratelimit_backoff",m,b)}else a.push(h)}),a.length===0)return Gr({});let l=es(s[0],a),u=h=>{Ep(l,(_,m)=>{let b=Lp(_,m);e.recordDroppedEvent(h,Sp(m),b)})},d=()=>t({body:fk(l)}).then(h=>(h.statusCode!==void 0&&(h.statusCode<200||h.statusCode>=300)&&at&&we.warn(`Sentry responded with status code ${h.statusCode} to sent event.`),r=xk(r,h),h),h=>{throw u("network_error"),h});return n.add(d).then(h=>h,h=>{if(h instanceof Rn)return at&&we.error("Skipped sending event because buffer is full."),u("queue_overflow"),Gr({});throw h})}return{send:o,flush:i}}function Lp(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function DR(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Pr})),version:Pr}),e._metadata=i}var OR=100;function Yr(e,t){let n=Kt(),r=d0();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=OR}=n.getOptions();if(o<=0)return;let s=Xo(),a=A({timestamp:s},e),l=i?md(()=>i(a,t)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,o))}var Vp,kR="FunctionToString",jp=new WeakMap,RR=()=>({name:kR,setupOnce(){Vp=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=_d(this),n=jp.has(Kt())&&t!==void 0?t:this;return Vp.apply(n,e)}}catch{}},setup(e){jp.set(e,!0)}}),PR=RR,NR=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],AR="InboundFilters",MR=(e={})=>({name:AR,processEvent(t,n,r){let i=r.getOptions(),o=VR(e,i);return jR(t,o)?null:t}}),LR=MR;function VR(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:NR],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function jR(e,t){return t.ignoreInternal&&zR(e)?(at&&we.warn(`Event dropped due to being internal Sentry Error.
|
|
25
|
+
Event: ${ar(e)}`),!0):FR(e,t.ignoreErrors)?(at&&we.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
26
|
+
Event: ${ar(e)}`),!0):WR(e)?(at&&we.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
27
|
+
Event: ${ar(e)}`),!0):BR(e,t.ignoreTransactions)?(at&&we.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
28
|
+
Event: ${ar(e)}`),!0):UR(e,t.denyUrls)?(at&&we.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
29
|
+
Event: ${ar(e)}.
|
|
30
|
+
Url: ${ga(e)}`),!0):HR(e,t.allowUrls)?!1:(at&&we.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
31
|
+
Event: ${ar(e)}.
|
|
32
|
+
Url: ${ga(e)}`),!0)}function FR(e,t){return e.type||!t||!t.length?!1:$R(e).some(n=>ol(n,t))}function BR(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;let n=e.transaction;return n?ol(n,t):!1}function UR(e,t){if(!t||!t.length)return!1;let n=ga(e);return n?ol(n,t):!1}function HR(e,t){if(!t||!t.length)return!0;let n=ga(e);return n?ol(n,t):!0}function $R(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function zR(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function qR(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ga(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?qR(t):null}catch{return at&&we.error(`Cannot extract url for event ${ar(e)}`),null}}function WR(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}var ZR="Dedupe",GR=()=>{let e;return{name:ZR,processEvent(t){if(t.type)return t;try{if(KR(t,e))return at&&we.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},YR=GR;function KR(e,t){return t?!!(JR(e,t)||XR(e,t)):!1}function JR(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!b0(e,t)||!y0(e,t))}function XR(e,t){let n=Fp(t),r=Fp(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!b0(e,t)||!y0(e,t))}function y0(e,t){let n=vp(e),r=vp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function b0(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Fp(e){return e.exception&&e.exception.values&&e.exception.values[0]}var Ct=Be,yu=0;function w0(){return yu>0}function QR(){yu++,setTimeout(()=>{yu--})}function Di(e,t={},n){if(typeof e!="function")return e;try{let i=e.__sentry_wrapped__;if(i)return i;if(_d(e))return e}catch{return e}let r=function(){let i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let o=i.map(s=>Di(s,t));return e.apply(this,o)}catch(o){throw QR(),Nk(s=>{s.addEventProcessor(a=>(t.mechanism&&(du(a,void 0,void 0),To(a,t.mechanism)),a.extra=Ne(A({},a.extra),{arguments:i}),a)),mR(o)}),o}};try{for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}o0(r,e),Wr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var di=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function wd(e,t){let n=xd(e,t),r={type:t&&t.name,value:iP(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function eP(e,t,n,r){let i=Kt(),o=i&&i.getOptions().normalizeDepth,s=cP(t),a={__serialized__:c0(t,o)};if(s)return{exception:{values:[wd(e,s)]},extra:a};let l={exception:{values:[{type:rl(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:aP(t,{isUnhandledRejection:r})}]},extra:a};if(n){let u=xd(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function Gl(e,t){return{exception:{values:[wd(e,t)]}}}function xd(e,t){let n=t.stacktrace||t.stack||"",r=nP(t),i=rP(t);try{return e(n,r,i)}catch{}return[]}var tP=/Minified React error #\d+;/i;function nP(e){return e&&tP.test(e.message)?1:0}function rP(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function iP(e){let t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function oP(e,t,n,r){let i=n&&n.syntheticException||void 0,o=Ed(e,t,i,r);return To(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Gr(o)}function sP(e,t,n="info",r,i){let o=r&&r.syntheticException||void 0,s=bu(e,t,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Gr(s)}function Ed(e,t,n,r,i){let o;if(t0(t)&&t.error)return Gl(e,t.error);if(up(t)||_O(t)){let s=t;if("stack"in t)o=Gl(e,t);else{let a=s.name||(up(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=bu(e,l,n,r),du(o,l)}return"code"in s&&(o.tags=Ne(A({},o.tags),{"DOMException.code":`${s.code}`})),o}return hd(t)?Gl(e,t):Ii(t)||rl(t)?(o=eP(e,t,n,i),To(o,{synthetic:!0}),o):(o=bu(e,t,n,r),du(o,`${t}`,void 0),To(o,{synthetic:!0}),o)}function bu(e,t,n,r){let i={};if(r&&n){let o=xd(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(dd(t)){let{__sentry_template_string__:o,__sentry_template_values__:s}=t;return i.logentry={message:o,params:s},i}return i.message=t,i}function aP(e,{isUnhandledRejection:t}){let n=LO(e),r=t?"promise rejection":"exception";return t0(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:rl(e)?`Event \`${lP(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function lP(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function cP(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}function uP(e,{metadata:t,tunnel:n,dsn:r}){let i=A(A({event_id:e.event_id,sent_at:new Date().toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:sl(r)}),o=hP(e);return es(i,[o])}function hP(e){return[{type:"user_report"},e]}var dP=class extends ER{constructor(e){let t=A({parentSpanIsAlwaysRootSpan:!0},e),n=Ct.SENTRY_SDK_SOURCE||XO();DR(t,"browser",["browser"],n),super(t),t.sendClientReports&&Ct.document&&Ct.document.addEventListener("visibilitychange",()=>{Ct.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,t){return oP(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return sP(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){di&&we.warn("SDK not enabled, will not capture user feedback.");return}let t=uP(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){di&&we.log("No outcomes to send");return}if(!this._dsn){di&&we.log("No dsn provided, will not send outcomes");return}di&&we.log("Sending outcomes:",e);let t=vk(e,this._options.tunnel&&sl(this._dsn));this.sendEnvelope(t)}},fP=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ot=Be,pP=1e3,Bp,wu,xu;function gP(e){let t="dom";ni(t,e),ri(t,mP)}function mP(){if(!Ot.document)return;let e=vn.bind(null,"dom"),t=Up(e,!0);Ot.document.addEventListener("click",t,!1),Ot.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=Ot[n]&&Ot[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(It(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=u[o]=u[o]||{refCount:0};if(!d.handler){let h=Up(e);d.handler=h,i.call(this,o,h,a)}d.refCount++}catch{}return i.call(this,o,s,a)}}),It(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{let l=this,u=l.__sentry_instrumentation_handlers__||{},d=u[o];d&&(d.refCount--,d.refCount<=0&&(i.call(this,o,d.handler,a),d.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}function _P(e){if(e.type!==wu)return!1;try{if(!e.target||e.target._sentryId!==xu)return!1}catch{}return!0}function vP(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Up(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=yP(n);if(vP(n.type,r))return;Wr(n,"_sentryCaptured",!0),r&&!r._sentryId&&Wr(r,"_sentryId",yn());let i=n.type==="keypress"?"input":n.type;_P(n)||(e({event:n,name:i,global:t}),wu=n.type,xu=r?r._sentryId:void 0),clearTimeout(Bp),Bp=Ot.setTimeout(()=>{xu=void 0,wu=void 0},pP)}}function yP(e){try{return e.target}catch{return null}}var vs;function bP(e){let t="history";ni(t,e),ri(t,wP)}function wP(){if(!Ek())return;let e=Ot.onpopstate;Ot.onpopstate=function(...n){let r=Ot.location.href,i=vs;if(vs=r,vn("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let i=r.length>2?r[2]:void 0;if(i){let o=vs,s=String(i);vs=s,vn("history",{from:o,to:s})}return n.apply(this,r)}}It(Ot.history,"pushState",t),It(Ot.history,"replaceState",t)}var Vs={};function xP(e){let t=Vs[e];if(t)return t;let n=Ot[e];if(uu(n))return Vs[e]=n.bind(Ot);let r=Ot.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(i)}catch(i){fP&&we.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(Vs[e]=n.bind(Ot))}function Hp(e){Vs[e]=void 0}var eo="__sentry_xhr_v3__";function EP(e){let t="xhr";ni(t,e),ri(t,SP)}function SP(){if(!Ot.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;It(e,"open",function(t){return function(...n){let r=pr()*1e3,i=Zn(n[0])?n[0].toUpperCase():void 0,o=CP(n[1]);if(!i||!o)return t.apply(this,n);this[eo]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[eo];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let l={endTimestamp:pr()*1e3,startTimestamp:r,xhr:this};vn("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?It(this,"onreadystatechange",function(a){return function(...l){return s(),a.apply(this,l)}}):this.addEventListener("readystatechange",s),It(this,"setRequestHeader",function(a){return function(...l){let[u,d]=l,h=this[eo];return h&&Zn(u)&&Zn(d)&&(h.request_headers[u.toLowerCase()]=d),a.apply(this,l)}}),t.apply(this,n)}}),It(e,"send",function(t){return function(...n){let r=this[eo];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let i={startTimestamp:pr()*1e3,xhr:this};return vn("xhr",i),t.apply(this,n)}})}function CP(e){if(Zn(e))return e;try{return e.toString()}catch{}}function IP(e,t=xP("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=A({body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);if(!t)return Hp("fetch"),fa("No fetch implementation available");try{return t(e.url,a).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Hp("fetch"),n-=s,r--,fa(l)}}return TR(e,i)}var TP=30,DP=50;function Eu(e,t,n,r){let i={filename:e,function:t==="<anonymous>"?Zr:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var OP=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,kP=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,RP=/\((\S*)(?::(\d+))(?::(\d+))\)/,PP=e=>{let t=OP.exec(e);if(t){let[,r,i,o]=t;return Eu(r,Zr,+i,+o)}let n=kP.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){let o=RP.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}let[r,i]=x0(n[1]||Zr,n[2]);return Eu(i,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},NP=[TP,PP],AP=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,MP=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,LP=e=>{let t=AP.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=MP.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let n=t[3],r=t[1]||Zr;return[r,n]=x0(r,n),Eu(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},VP=[DP,LP],jP=[NP,VP],FP=jO(...jP),x0=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Zr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ys=1024,BP="Breadcrumbs",UP=(e={})=>{let t=A({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:BP,setup(n){t.console&&BO(qP(n)),t.dom&&gP(zP(n,t.dom)),t.xhr&&EP(WP(n)),t.fetch&&qO(ZP(n)),t.history&&bP(GP(n)),t.sentry&&n.on("beforeSendEvent",$P(n))}}},HP=UP;function $P(e){return function(t){Kt()===e&&Yr({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:ar(t)},{event:t})}}function zP(e,t){return function(n){if(Kt()!==e)return;let r,i,o=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>ys&&(di&&we.warn(`\`dom.maxStringLength\` cannot exceed ${ys}, but a value of ${s} was configured. Sentry will use ${ys} instead.`),s=ys),typeof o=="string"&&(o=[o]);try{let l=n.event,u=YP(l)?l.target:l;r=r0(u,{keyAttrs:o,maxStringLength:s}),i=TO(u)}catch{r="<unknown>"}if(r.length===0)return;let a={category:`ui.${n.name}`,message:r};i&&(a.data={"ui.component_name":i}),Yr(a,{event:n.event,name:n.name,global:n.global})}}function qP(e){return function(t){if(Kt()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:ak(t.level),message:hp(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)n.message=`Assertion failed: ${hp(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1);else return;Yr(n,{input:t.args,level:t.level})}}function WP(e){return function(t){if(Kt()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[eo];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:l}=i,u={method:o,url:s,status_code:a},d={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r};Yr({category:"xhr",data:u,type:"http"},d)}}function ZP(e){return function(t){if(Kt()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){let i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};Yr({category:"fetch",data:i,level:"error",type:"http"},o)}else{let i=t.response,o=Ne(A({},t.fetchData),{status_code:i&&i.status}),s={input:t.args,response:i,startTimestamp:n,endTimestamp:r};Yr({category:"fetch",data:o,type:"http"},s)}}}function GP(e){return function(t){if(Kt()!==e)return;let n=t.from,r=t.to,i=Zl(Ct.location.href),o=n?Zl(n):void 0,s=Zl(r);(!o||!o.path)&&(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Yr({category:"navigation",data:{from:n,to:r}})}}function YP(e){return!!e&&!!e.target}var KP=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],JP="BrowserApiErrors",XP=(e={})=>{let t=A({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e);return{name:JP,setupOnce(){t.setTimeout&&It(Ct,"setTimeout",$p),t.setInterval&&It(Ct,"setInterval",$p),t.requestAnimationFrame&&It(Ct,"requestAnimationFrame",eN),t.XMLHttpRequest&&"XMLHttpRequest"in Ct&&It(XMLHttpRequest.prototype,"send",tN);let n=t.eventTarget;n&&(Array.isArray(n)?n:KP).forEach(nN)}}},QP=XP;function $p(e){return function(...t){let n=t[0];return t[0]=Di(n,{mechanism:{data:{function:vr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function eN(e){return function(t){return e.apply(this,[Di(t,{mechanism:{data:{function:"requestAnimationFrame",handler:vr(e)},handled:!1,type:"instrument"}})])}}function tN(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&It(n,r,function(i){let o={mechanism:{data:{function:r,handler:vr(i)},handled:!1,type:"instrument"}},s=_d(i);return s&&(o.mechanism.data.handler=vr(s)),Di(i,o)})}),e.apply(this,t)}}function nN(e){let t=Ct,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(It(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=Di(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:vr(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Di(o,{mechanism:{data:{function:"addEventListener",handler:vr(o),target:e},handled:!1,type:"instrument"}}),s])}}),It(n,"removeEventListener",function(r){return function(i,o,s){let a=o;try{let l=a&&a.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,a,s)}}))}var rN="GlobalHandlers",iN=(e={})=>{let t=A({onerror:!0,onunhandledrejection:!0},e);return{name:rN,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(sN(n),zp("onerror")),t.onunhandledrejection&&(aN(n),zp("onunhandledrejection"))}}},oN=iN;function sN(e){GO(t=>{let{stackParser:n,attachStacktrace:r}=E0();if(Kt()!==e||w0())return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=uN(Ed(n,l||i,void 0,r,!1),o,s,a);u.level="error",m0(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function aN(e){KO(t=>{let{stackParser:n,attachStacktrace:r}=E0();if(Kt()!==e||w0())return;let i=lN(t),o=fd(i)?cN(i):Ed(n,i,void 0,r,!0);o.level="error",m0(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function lN(e){if(fd(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function cN(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function uN(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=Zn(t)&&t.length>0?t:IO();return l.length===0&&l.push({colno:u,filename:h,function:Zr,in_app:!0,lineno:d}),e}function zp(e){di&&we.log(`Global Handler attached: ${e}`)}function E0(){let e=Kt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var hN=()=>({name:"HttpContext",preprocessEvent(e){if(!Ct.navigator&&!Ct.location&&!Ct.document)return;let t=e.request&&e.request.url||Ct.location&&Ct.location.href,{referrer:n}=Ct.document||{},{userAgent:r}=Ct.navigator||{},i=A(A(A({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),o=Ne(A(A({},e.request),t&&{url:t}),{headers:i});e.request=o}}),dN="cause",fN=5,pN="LinkedErrors",gN=(e={})=>{let t=e.limit||fN,n=e.key||dN;return{name:pN,preprocessEvent(r,i,o){let s=o.getOptions();xO(wd,s.stackParser,s.maxValueLength,n,t,r,i)}}},mN=gN;function _N(e){return[LR(),PR(),QP(),HP(),oN(),mN(),YR(),hN()]}var vN=class extends Error{cause;constructor(e,t){super(e),this.cause=t}},yN=class S0{static INSTANCE;contexts={};tags;client;user;constructor(){this.init()}static getInstance(){return this.INSTANCE||(this.INSTANCE=new S0),this.INSTANCE}captureException(t,n,r){Wn.error(t),this.getNewScope(n,r).captureException(t)}captureMessage(t,n,r,i){this.getNewScope(r,i).captureMessage(t,n??"error")}captureError(t,n,r,i){Wn.error(t,n);let o=this.getNewScope(r,i),s=new vN(t,n);o.captureException(s)}setGlobalContext(t,n){this.contexts[t]=A({context:n},this.contexts[t])}setUser(t){this.user=t}setTags(t){this.tags=t}getNewScope(t,n){let r=new Xn;if(r.setClient(this.client),r.setUser(this.user),t?.triggerContext){let i=t.triggerContext;r.setExtras(i.triggerData.sentryContext()),delete t.triggerContext}return t&&r.setExtras(t),this.tags&&r.setTags(this.tags),n&&r.setTags(n),Object.keys(this.contexts).forEach(i=>{r.setContext(i,this.contexts[i])}),r.setTag("language",navigator.language),r.setTag("timezone",EN()),r}init(){let t=_N({}).filter(n=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(n.name));this.client=new dP({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:IP,stackParser:FP,integrations:t,environment:Ci.mode,release:`web-sdk@${St.SDK_VERSION}`,debug:Ci.debug}),this.client.init()}},qp=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart";static MUTED="muted"},Wp=Ca(jw());function C0(e){return Wp.default.createInstance({name:"lc",storeName:e,driver:Wp.default.LOCALSTORAGE})}var I0=class{static storage;static async get(e,t){return await this.storage?.getItem(e)??t}static set(e,t){return this.storage?.setItem(e,t)}static remove(e){return this.storage?.removeItem(e)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}},q5=class extends I0{static storeName="ses";static{this.storage=C0(this.storeName)}},Zp=class extends I0{static storeName="usr";static{this.storage=C0(this.storeName)}},bN=class{static format(e,t){let n=/{{\s*(\w+)\s*}}/;return t.replace(n,(r,i)=>{switch(i){case"amount":return this.formatWithDelimiters(e,2);case"amount_no_decimals":return this.formatWithDelimiters(e,0);case"amount_with_comma_separator":return this.formatWithDelimiters(e,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(e,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(e,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(e,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(e,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(e,2," ",".");default:return r}})}static formatWithDelimiters(e,t=2,n=",",r="."){if(isNaN(e)||e==null)return"0";let i=(e/100).toFixed(t).split("."),o=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),s=i[1]?r+i[1]:"";return o+s}},wN=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;locale;activeExperiment;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(e){this._currencyCode=e}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(e){this.currentItem=new mO(e)}};function Sd(e,t){if(e==0&&t)return"Free";let n=wN.get(),r=Qy.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||Wn.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=bN.format(e*100,s);else{let l;try{l=new Intl.NumberFormat(xN(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(u){return yN.getInstance().captureException(u,{currentCurrency:o,shopCurrency:i}),""}a=l.format(e),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))}return a}function xN(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}var bs;function EN(){if(bs)return bs;try{return bs=Intl.DateTimeFormat().resolvedOptions().timeZone,bs}catch{return""}}var ll=class Su{transform(t){return t==null?null:Sd(t)}static \u0275fac=function(t){return new(t||Su)};static \u0275pipe=nd({name:"cooeeCurrency",type:Su,pure:!0})},SN=(()=>{class e{static entityMap={'"':"""};static escapeHtml(n){return String(n).replace(/"/g,r=>e.entityMap[r])}}return e})(),CN=Object.prototype.toString,Ui=Array.isArray||function(e){return CN.call(e)==="[object Array]"};function Cd(e){return typeof e=="function"}function IN(e){return Ui(e)?"array":typeof e}function Yl(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Gp(e,t){return e!=null&&typeof e=="object"&&t in e}function TN(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var DN=RegExp.prototype.test;function ON(e,t){return DN.call(e,t)}var kN=/\S/;function RN(e){return!ON(kN,e)}var PN={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function NN(e){return String(e).replace(/[&<>"'`=\/]/g,function(t){return PN[t]})}var AN=/\s*/,MN=/\s+/,Yp=/\s*=/,LN=/\s*\}/,VN=/#|\^|\/|>|\{|&|=|!/;function jN(e,t){if(!e)return[];var n=!1,r=[],i=[],o=[],s=!1,a=!1,l="",u=0;function d(){if(s&&!a)for(;o.length;)delete i[o.pop()];else o=[];s=!1,a=!1}var h,_,m;function b(F){if(typeof F=="string"&&(F=F.split(MN,2)),!Ui(F)||F.length!==2)throw new Error("Invalid tags: "+F);h=new RegExp(Yl(F[0])+"\\s*"),_=new RegExp("\\s*"+Yl(F[1])),m=new RegExp("\\s*"+Yl("}"+F[1]))}b(t||an.tags);for(var S=new ts(e),N,P,z,re,q,ie;!S.eos();){if(N=S.pos,z=S.scanUntil(h),z)for(var Ae=0,Me=z.length;Ae<Me;++Ae)re=z.charAt(Ae),RN(re)?(o.push(i.length),l+=re):(a=!0,n=!0,l+=" "),i.push(["text",re,N,N+1]),N+=1,re===`
|
|
33
|
+
`&&(d(),l="",u=0,n=!1);if(!S.scan(h))break;if(s=!0,P=S.scan(VN)||"name",S.scan(AN),P==="="?(z=S.scanUntil(Yp),S.scan(Yp),S.scanUntil(_)):P==="{"?(z=S.scanUntil(m),S.scan(LN),S.scanUntil(_),P="&"):z=S.scanUntil(_),!S.scan(_))throw new Error("Unclosed tag at "+S.pos);if(P==">"?q=[P,z,N,S.pos,l,u,n]:q=[P,z,N,S.pos],u++,i.push(q),P==="#"||P==="^")r.push(q);else if(P==="/"){if(ie=r.pop(),!ie)throw new Error('Unopened section "'+z+'" at '+N);if(ie[1]!==z)throw new Error('Unclosed section "'+ie[1]+'" at '+N)}else P==="name"||P==="{"||P==="&"?a=!0:P==="="&&b(z)}if(d(),ie=r.pop(),ie)throw new Error('Unclosed section "'+ie[1]+'" at '+S.pos);return BN(FN(i))}function FN(e){for(var t=[],n,r,i=0,o=e.length;i<o;++i)n=e[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function BN(e){for(var t=[],n=t,r=[],i,o,s=0,a=e.length;s<a;++s)switch(i=e[s],i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":o=r.pop(),o[5]=i[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function ts(e){this.string=e,this.tail=e,this.pos=0}ts.prototype.eos=function(){return this.tail===""};ts.prototype.scan=function(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};ts.prototype.scanUntil=function(e){var t=this.tail.search(e),n;switch(t){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=n.length,n};function Oi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Oi.prototype.push=function(e){return new Oi(e,this)};Oi.prototype.lookup=function(e){var t=this.cache,n;if(t.hasOwnProperty(e))n=t[e];else{for(var r=this,i,o,s,a=!1;r;){if(e.indexOf(".")>0)for(i=r.view,o=e.split("."),s=0;i!=null&&s<o.length;)s===o.length-1&&(a=Gp(i,o[s])||TN(i,o[s])),i=i[o[s++]];else i=r.view[e],a=Gp(r.view,e);if(a){n=i;break}r=r.parent}t[e]=n}return Cd(n)&&(n=n.call(this.view)),n};function Ft(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Ft.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Ft.prototype.parse=function(e,t){var n=this.templateCache,r=e+":"+(t||an.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=jN(e,t),i&&n.set(r,o)),o};Ft.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),o=this.parse(e,i),s=t instanceof Oi?t:new Oi(t,void 0);return this.renderTokens(o,s,n,e,r)};Ft.prototype.renderTokens=function(e,t,n,r,i){for(var o="",s,a,l,u=0,d=e.length;u<d;++u)l=void 0,s=e[u],a=s[0],a==="#"?l=this.renderSection(s,t,n,r,i):a==="^"?l=this.renderInverted(s,t,n,r,i):a===">"?l=this.renderPartial(s,t,n,i):a==="&"?l=this.unescapedValue(s,t):a==="name"?l=this.escapedValue(s,t,i):a==="text"&&(l=this.rawValue(s)),l!==void 0&&(o+=l);return o};Ft.prototype.renderSection=function(e,t,n,r,i){var o=this,s="",a=t.lookup(e[1]);function l(h){return o.render(h,t,n,i)}if(a){if(Ui(a))for(var u=0,d=a.length;u<d;++u)s+=this.renderTokens(e[4],t.push(a[u]),n,r,i);else if(typeof a=="object"||typeof a=="string"||typeof a=="number")s+=this.renderTokens(e[4],t.push(a),n,r,i);else if(Cd(a)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");a=a.call(t.view,r.slice(e[3],e[5]),l),a!=null&&(s+=a)}else s+=this.renderTokens(e[4],t,n,r,i);return s}};Ft.prototype.renderInverted=function(e,t,n,r,i){var o=t.lookup(e[1]);if(!o||Ui(o)&&o.length===0)return this.renderTokens(e[4],t,n,r,i)};Ft.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split(`
|
|
34
34
|
`),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join(`
|
|
35
|
-
`)};
|
|
36
|
-
`);try{b=new Worker(URL.createObjectURL(new Blob([G])))}catch(te){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",te),null}U(b)}return b}}(),m={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(b,y){return y?y(b):b}function C(b){return b!=null}function A(b,y,M){return w(b&&C(b[y])?b[y]:m[y],M)}function P(b){return b<0?0:Math.floor(b)}function $(b,y){return Math.floor(Math.random()*(y-b))+b}function re(b){return parseInt(b,16)}function z(b){return b.map(ie)}function ie(b){var y=String(b).replace(/[^0-9a-f]/gi,"");return y.length<6&&(y=y[0]+y[0]+y[1]+y[1]+y[2]+y[2]),{r:re(y.substring(0,2)),g:re(y.substring(2,4)),b:re(y.substring(4,6))}}function ke(b){var y=A(b,"origin",Object);return y.x=A(y,"x",Number),y.y=A(y,"y",Number),y}function Ne(b){b.width=document.documentElement.clientWidth,b.height=document.documentElement.clientHeight}function F(b){var y=b.getBoundingClientRect();b.width=y.width,b.height=y.height}function pe(b){var y=document.createElement("canvas");return y.style.position="fixed",y.style.top="0px",y.style.left="0px",y.style.pointerEvents="none",y.style.zIndex=b,y}function ce(b,y,M,U,G,te,ee,J,ue){b.save(),b.translate(y,M),b.rotate(te),b.scale(U,G),b.arc(0,0,1,ee,J,ue),b.restore()}function he(b){var y=b.angle*(Math.PI/180),M=b.spread*(Math.PI/180);return{x:b.x,y:b.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:b.startVelocity*.5+Math.random()*b.startVelocity,angle2D:-y+(.5*M-Math.random()*M),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:b.color,shape:b.shape,tick:0,totalTicks:b.ticks,decay:b.decay,drift:b.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:b.gravity*3,ovalScalar:.6,scalar:b.scalar,flat:b.flat}}function Ce(b,y){y.x+=Math.cos(y.angle2D)*y.velocity+y.drift,y.y+=Math.sin(y.angle2D)*y.velocity+y.gravity,y.velocity*=y.decay,y.flat?(y.wobble=0,y.wobbleX=y.x+10*y.scalar,y.wobbleY=y.y+10*y.scalar,y.tiltSin=0,y.tiltCos=0,y.random=1):(y.wobble+=y.wobbleSpeed,y.wobbleX=y.x+10*y.scalar*Math.cos(y.wobble),y.wobbleY=y.y+10*y.scalar*Math.sin(y.wobble),y.tiltAngle+=.1,y.tiltSin=Math.sin(y.tiltAngle),y.tiltCos=Math.cos(y.tiltAngle),y.random=Math.random()+2);var M=y.tick++/y.totalTicks,U=y.x+y.random*y.tiltCos,G=y.y+y.random*y.tiltSin,te=y.wobbleX+y.random*y.tiltCos,ee=y.wobbleY+y.random*y.tiltSin;if(b.fillStyle="rgba("+y.color.r+", "+y.color.g+", "+y.color.b+", "+(1-M)+")",b.beginPath(),s&&y.shape.type==="path"&&typeof y.shape.path=="string"&&Array.isArray(y.shape.matrix))b.fill(Pe(y.shape.path,y.shape.matrix,y.x,y.y,Math.abs(te-U)*.1,Math.abs(ee-G)*.1,Math.PI/10*y.wobble));else if(y.shape.type==="bitmap"){var J=Math.PI/10*y.wobble,ue=Math.abs(te-U)*.1,_e=Math.abs(ee-G)*.1,xe=y.shape.bitmap.width*y.scalar,X=y.shape.bitmap.height*y.scalar,se=new DOMMatrix([Math.cos(J)*ue,Math.sin(J)*ue,-Math.sin(J)*_e,Math.cos(J)*_e,y.x,y.y]);se.multiplySelf(new DOMMatrix(y.shape.matrix));var ve=b.createPattern(d.transform(y.shape.bitmap),"no-repeat");ve.setTransform(se),b.globalAlpha=1-M,b.fillStyle=ve,b.fillRect(y.x-xe/2,y.y-X/2,xe,X),b.globalAlpha=1}else if(y.shape==="circle")b.ellipse?b.ellipse(y.x,y.y,Math.abs(te-U)*y.ovalScalar,Math.abs(ee-G)*y.ovalScalar,Math.PI/10*y.wobble,0,2*Math.PI):ce(b,y.x,y.y,Math.abs(te-U)*y.ovalScalar,Math.abs(ee-G)*y.ovalScalar,Math.PI/10*y.wobble,0,2*Math.PI);else if(y.shape==="star")for(var de=Math.PI/2*3,c=4*y.scalar,f=8*y.scalar,p=y.x,S=y.y,k=5,j=Math.PI/k;k--;)p=y.x+Math.cos(de)*f,S=y.y+Math.sin(de)*f,b.lineTo(p,S),de+=j,p=y.x+Math.cos(de)*c,S=y.y+Math.sin(de)*c,b.lineTo(p,S),de+=j;else b.moveTo(Math.floor(y.x),Math.floor(y.y)),b.lineTo(Math.floor(y.wobbleX),Math.floor(G)),b.lineTo(Math.floor(te),Math.floor(ee)),b.lineTo(Math.floor(U),Math.floor(y.wobbleY));return b.closePath(),b.fill(),y.tick<y.totalTicks}function ze(b,y,M,U,G){var te=y.slice(),ee=b.getContext("2d"),J,ue,_e=u(function(xe){function X(){J=ue=null,ee.clearRect(0,0,U.width,U.height),d.clear(),G(),xe()}function se(){r&&!(U.width===i.width&&U.height===i.height)&&(U.width=b.width=i.width,U.height=b.height=i.height),!U.width&&!U.height&&(M(b),U.width=b.width,U.height=b.height),ee.clearRect(0,0,U.width,U.height),te=te.filter(function(ve){return Ce(ee,ve)}),te.length?J=h.frame(se):X()}J=h.frame(se),ue=X});return{addFettis:function(xe){return te=te.concat(xe),_e},canvas:b,promise:_e,reset:function(){J&&h.cancel(J),ue&&ue()}}}function _(b,y){var M=!b,U=!!A(y||{},"resize"),G=!1,te=A(y,"disableForReducedMotion",Boolean),ee=o&&!!A(y||{},"useWorker"),J=ee?v():null,ue=M?Ne:F,_e=b&&J?!!b.__confetti_initialized:!1,xe=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,X;function se(de,c,f){for(var p=A(de,"particleCount",P),S=A(de,"angle",Number),k=A(de,"spread",Number),j=A(de,"startVelocity",Number),Q=A(de,"decay",Number),oe=A(de,"gravity",Number),Ve=A(de,"drift",Number),Ie=A(de,"colors",z),je=A(de,"ticks",Number),Ae=A(de,"shapes"),xt=A(de,"scalar"),Hn=!!A(de,"flat"),ft=ke(de),un=p,Rn=[],or=b.width*ft.x,zt=b.height*ft.y;un--;)Rn.push(he({x:or,y:zt,angle:S,spread:k,startVelocity:j,color:Ie[un%Ie.length],shape:Ae[$(0,Ae.length)],ticks:je,decay:Q,gravity:oe,drift:Ve,scalar:xt,flat:Hn}));return X?X.addFettis(Rn):(X=ze(b,Rn,ue,c,f),X.promise)}function ve(de){var c=te||A(de,"disableForReducedMotion",Boolean),f=A(de,"zIndex",Number);if(c&&xe)return u(function(j){j()});M&&X?b=X.canvas:M&&!b&&(b=pe(f),document.body.appendChild(b)),U&&!_e&&ue(b);var p={width:b.width,height:b.height};J&&!_e&&J.init(b),_e=!0,J&&(b.__confetti_initialized=!0);function S(){if(J){var j={getBoundingClientRect:function(){if(!M)return b.getBoundingClientRect()}};ue(j),J.postMessage({resize:{width:j.width,height:j.height}});return}p.width=p.height=null}function k(){X=null,U&&(G=!1,t.removeEventListener("resize",S)),M&&b&&(document.body.contains(b)&&document.body.removeChild(b),b=null,_e=!1)}return U&&!G&&(G=!0,t.addEventListener("resize",S,!1)),J?J.fire(de,p,k):se(de,p,k)}return ve.reset=function(){J&&J.reset(),X&&X.reset()},ve}var Je;function st(){return Je||(Je=_(null,{useWorker:!0,resize:!0})),Je}function Pe(b,y,M,U,G,te,ee){var J=new Path2D(b),ue=new Path2D;ue.addPath(J,new DOMMatrix(y));var _e=new Path2D;return _e.addPath(ue,new DOMMatrix([Math.cos(ee)*G,Math.sin(ee)*G,-Math.sin(ee)*te,Math.cos(ee)*te,M,U])),_e}function R(b){if(!s)throw new Error("path confetti are not supported in this browser");var y,M;typeof b=="string"?y=b:(y=b.path,M=b.matrix);var U=new Path2D(y),G=document.createElement("canvas"),te=G.getContext("2d");if(!M){for(var ee=1e3,J=ee,ue=ee,_e=0,xe=0,X,se,ve=0;ve<ee;ve+=2)for(var de=0;de<ee;de+=2)te.isPointInPath(U,ve,de,"nonzero")&&(J=Math.min(J,ve),ue=Math.min(ue,de),_e=Math.max(_e,ve),xe=Math.max(xe,de));X=_e-J,se=xe-ue;var c=10,f=Math.min(c/X,c/se);M=[f,0,0,f,-Math.round(X/2+J)*f,-Math.round(se/2+ue)*f]}return{type:"path",path:y,matrix:M}}function D(b){var y,M=1,U="#000000",G='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof b=="string"?y=b:(y=b.text,M="scalar"in b?b.scalar:M,G="fontFamily"in b?b.fontFamily:G,U="color"in b?b.color:U);var te=10*M,ee=""+te+"px "+G,J=new OffscreenCanvas(te,te),ue=J.getContext("2d");ue.font=ee;var _e=ue.measureText(y),xe=Math.ceil(_e.actualBoundingBoxRight+_e.actualBoundingBoxLeft),X=Math.ceil(_e.actualBoundingBoxAscent+_e.actualBoundingBoxDescent),se=2,ve=_e.actualBoundingBoxLeft+se,de=_e.actualBoundingBoxAscent+se;xe+=se+se,X+=se+se,J=new OffscreenCanvas(xe,X),ue=J.getContext("2d"),ue.font=ee,ue.fillStyle=U,ue.fillText(y,ve,de);var c=1/M;return{type:"bitmap",bitmap:J.transferToImageBitmap(),matrix:[c,0,0,c,-xe*c/2,-X*c/2]}}n.exports=function(){return st().apply(this,arguments)},n.exports.reset=function(){st().reset()},n.exports.create=_,n.exports.shapeFromPath=R,n.exports.shapeFromText=D})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Od,!1);var YP=Od.exports,Q5=Od.exports.create,KP=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(e=100){let t=[],n=Date.now()+2e3,r=()=>{t.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&e>0&&(requestAnimationFrame(r),e--)};r(),await Promise.all(t)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(e){Object.assign(e,this.DEFAULTS,e),e.particleCount=e.particleCount??this.DEFAULTS.colors.length,await YP(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},Nr=class{static SWIPER_CSS="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css";static injectScriptURL(e,t){if(!e)return;let n=document.createElement("script");n.id=t??"",n.src=e,Si.mode==="local"&&(n.type="module"),document.head.appendChild(n)}static injectRawScript(e){if(!e)return;let t=document.createElement("script");t.id="cooee-app-script",t.innerHTML=e,document.head.appendChild(t)}static injectRawCSS(e,t=document.head){if(!e)return;let n=document.createElement("style");n.textContent=e,t.appendChild(n)}static injectSwiperCSS(e=document.head){this.injectStylesheet(this.SWIPER_CSS,e)}static injectStylesheet(e,t=document.head){if(!e)return;let n=document.createElement("link");n.rel="stylesheet",n.href=e,e===this.SWIPER_CSS&&(n.crossOrigin="anonymous",n.onload=r=>{let i=r.currentTarget?.sheet?.cssRules;if(i){for(let o of i)if(o.type==CSSRule.FONT_FACE_RULE){let s=e.split("/"),a=s.slice(0,s.length-1).join("/"),l=o.cssText;l=l.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,`url("${a}/$4")`);let u=document.createElement("style");u.appendChild(document.createTextNode(l)),document.head.appendChild(u)}}}),t.appendChild(n)}static async loadSwiperScript(){window.CooeeSDK.Swiper||(window.CooeeSDK.Swiper=(await import("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.mjs")).Swiper)}},JP=(e,t)=>t.minValue;function XP(e,t){if(e&1&&(Y(0,"li",6)(1,"div",7),$e(2,"div",8),Sn(3,"cooeeCurrency"),Sn(4,"safeHtml"),$e(5,"img",9),Y(6,"div",10),Ke(7),K()()()),e&2){let n=t.$implicit,r=ne(2);tl("left",n.calculatedAlignment+"%"),Z(2),Me("innerHTML",jn(4,7,jn(3,5,n.minValue)),Mi),Z(3),Me("src",r.getIconURL(n),cn),Z(2),Ui(n.label)}}function QP(e,t){if(e&1&&(Un(0)(1),$e(2,"div",0),Sn(3,"cooeeDynamicVariables"),Sn(4,"safeHtml"),Y(5,"div",1)(6,"ul",2)(7,"div",3),$e(8,"div",4),K(),Vt(9,XP,8,9,"li",5,JP),K()()),e&2){let n=ne(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;Z(2),Me("innerHTML",jn(4,6,DO(3,3,i,n.localDynamicVariables())),Mi),Z(6),tl("width",r.cartValuePercentage+"%"),Z(),jt(r.milestones)}}var eA=class Ou{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables=Mn({});calculatedState=Mn({});_engagementTrigger=Mn(null);progressBarConfig;get id(){let t=this._engagementTrigger();return`${t?.objective.toLowerCase()}-${t?.shortID}`}set engagementTrigger(t){this._engagementTrigger.set(t),this.progressBarConfig=t.progressBarConfig}ngOnInit(){pn.debug("Init progressbar");let t=this.elementRef.nativeElement.shadowRoot;Nr.injectStylesheet(Si.styleURL,t),Nr.injectRawCSS(window.CooeeSDK.config.website.commonCSS,t),this.calculateMilestonesSilently()}ngOnDestroy(){pn.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===ql.MilestoneRewardType.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===ql.MilestoneRewardType.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===ql.MilestoneRewardType.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>pn.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){pn.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,i=r.milestones.at(-1),o=n.originalAmount,s=r.totalProgress??0;pn.debug("Cart value:",o,`, percentage: ${s}%`),this.celebrate(t,o);let a={milestonesReady:!0,cartValuePercentage:s,milestones:r.milestones},l=r.milestones.find(u=>u.minValue>o);if(l){this.localDynamicVariables.set({amount_left:Id(l.minValue-o)}),a.nextMilestone=l,this.calculatedState.set(a);return}a.lastMilestone=i,this.calculatedState.set(a)}celebrate(t,n){let r=[...t.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${t.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),this.progressBarConfig?.noConfetti||KP.realistic())}static \u0275fac=function(t){return new(t||Ou)(wt(Mt))};static \u0275cmp=Nt({type:Ou,selectors:[["cooee-progressbar"]],hostVars:1,hostBindings:function(t,n){t&2&&Cy("id",n.id)},inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[["id","lc-heading",1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text",3,"innerHTML"],[1,"lc:mt-4","lc:w-[95%]"],["id","lc-milestone-list",1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],["id","lc-untracked-path",1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],["id","lc-tracked-path",1,"lc:bg-green-700","lc:h-full","lc:block!"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],["id","lc-milestone-list-item",1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],["id","lc-milestone-value",1,"lc-milestone-value",3,"innerHTML"],["width","20","height","20","id","lc-milestone-icon","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],["id","lc-milestone-label",1,"lc="]],template:function(t,n){t&1&&it(0,QP,11,8),t&2&&rt(n.calculatedState().milestonesReady?0:-1)},dependencies:[ZP,cl,ll],styles:[`:host{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon{padding:5px;border-radius:1000px}.lc-progress-rail>div{transition:width .5s ease-in-out}
|
|
37
|
-
`],encapsulation:3})},
|
|
38
|
-
`),n=t.length===1?null:setInterval(()=>{this.featureSlider.update(r=>Le(L({},r),{previousIndex:r.currentIndex,currentIndex:(r.currentIndex+1)%r.features.length}))},3e3);this.featureSlider.set({intervalRef:n,currentIndex:0,features:t})}replaceVariables(t){return t?(0,tA.render)(t,this.currentItem.getTemplateVariables()):""}static \u0275fac=function(t){return new(t||Ru)};static \u0275cmp=Nt({type:Ru,selectors:[["cooee-sticky-atc"]],features:[ji],decls:7,vars:3,consts:[[1,"lc-wrapper"],[1,"lc-prices"],[1,"lc-button-wrapper"],["type","button",1,"lc-button","lc-button-atc",3,"click"],[1,"lc-features"],[1,"lc-sale-price"],[1,"lc-additional-text"],[1,"lc-compare-price"],[1,"lc-discount-label"],[1,"lc-feature",3,"ngClass"]],template:function(t,n){if(t&1){let r=Ft();Y(0,"div",0),it(1,oA,5,3,"div",1),Y(2,"div",2)(3,"button",3),ot("click",function(){return ct(r),ut(n.addToCart())}),Ke(4,"Add To Cart"),K(),Un(5),it(6,aA,3,0,"div",4),K()()}if(t&2){Z(),rt(n.selectedVariant()&&n.stickyATCConfig.showProductInfo?1:-1),Z(4);let r=zr(n.featureSlider());Z(),rt(r.features.length?6:-1)}},dependencies:[nl],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;padding:10px;background-color:#fff;width:100%;box-shadow:4px 0 10px #0006;line-height:normal}.lc-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:1100px;width:100%}.lc-prices[_ngcontent-%COMP%]{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px}@media (min-width: 768px){.lc-prices[_ngcontent-%COMP%]{gap:8px}}.lc-sale-price[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.lc-compare-price[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:red;text-decoration:line-through}.lc-discount-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:green}.lc-button-wrapper[_ngcontent-%COMP%]{flex:1 1 100%;display:flex;flex-direction:column;gap:4px;align-items:center}.lc-button[_ngcontent-%COMP%]{background-color:#000;color:#fff;opacity:1;cursor:pointer;pointer-events:auto;border-radius:4px;min-width:150px;width:100%;padding:8px}.lc-additional-text[_ngcontent-%COMP%], .lc-feature[_ngcontent-%COMP%]{font-size:12px;color:#666}.lc-features[_ngcontent-%COMP%]{position:relative;overflow:hidden;height:16px;text-align:center;width:100%}.lc-features[_ngcontent-%COMP%] .lc-feature[_ngcontent-%COMP%]{position:absolute;width:100%;opacity:0;transform:translateY(100%);transition:transform .5s ease,opacity .5s ease}.lc-features[_ngcontent-%COMP%] .lc-feature.enter[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);z-index:2}.lc-features[_ngcontent-%COMP%] .lc-feature.exit[_ngcontent-%COMP%]{opacity:0;transform:translateY(-100%);z-index:1}"]})},xs=Cn(Ww()),cA=Cn(Po()),D0,Qe,R0,k0,Or,Xp,N0,ku,P0,Dd,Nu,Pu,uA,Au={},A0=[],hA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Rd=Array.isArray;function dr(e,t){for(var n in t)e[n]=t[n];return e}function kd(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Jl(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++R0,__i:-1,__u:0};return i==null&&Qe.vnode!=null&&Qe.vnode(o),o}function Nd(e){return e.children}function lo(e,t){this.props=e,this.context=t}function Di(e,t){if(t==null)return e.__?Di(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Di(e):null}function L0(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return L0(e)}}function Qp(e){(!e.__d&&(e.__d=!0)&&Or.push(e)&&!va.__r++||Xp!==Qe.debounceRendering)&&((Xp=Qe.debounceRendering)||N0)(va)}function va(){var e,t,n,r,i,o,s,a;for(Or.sort(ku);e=Or.shift();)e.__d&&(t=Or.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=dr({},i)).__v=i.__v+1,Qe.vnode&&Qe.vnode(r),j0(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??Di(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,pA(s,r,a),r.__e!=o&&L0(r)),Or.length>t&&Or.sort(ku));va.__r=0}function M0(e,t,n,r,i,o,s,a,l,u,d){var h,v,m,w,C,A,P=r&&r.__k||A0,$=t.length;for(l=dA(n,t,P,l,$),h=0;h<$;h++)(m=n.__k[h])!=null&&(v=m.__i===-1?Au:P[m.__i]||Au,m.__i=h,A=j0(e,m,v,i,o,s,a,l,u,d),w=m.__e,m.ref&&v.ref!=m.ref&&(v.ref&&Pd(v.ref,null,m),d.push(m.ref,m.__c||w,m)),C==null&&w!=null&&(C=w),4&m.__u||v.__k===m.__k?l=V0(m,l,e):typeof m.type=="function"&&A!==void 0?l=A:w&&(l=w.nextSibling),m.__u&=-7);return n.__e=C,l}function dA(e,t,n,r,i){var o,s,a,l,u,d=n.length,h=d,v=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+v,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Jl(null,s,null,null,null):Rd(s)?Jl(Nd,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Jl(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=fA(s,n,l,h))!==-1&&(h--,(a=n[u])&&(a.__u|=2)),a==null||a.__v===null?(u==-1&&v--,typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?v--:u==l+1?v++:(u>l?v--:v++,s.__u|=4))):e.__k[o]=null;if(h)for(o=0;o<d;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Di(a)),F0(a,a));return r}function V0(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=V0(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Di(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function fA(e,t,n,r){var i,o,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&(2&l.__u)==0&&s==l.key&&a===l.type)return i;i--}if(o<t.length){if((l=t[o])&&(2&l.__u)==0&&s==l.key&&a===l.type)return o;o++}}return-1}function eg(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||hA.test(t)?n:n+"px"}function Ss(e,t,n,r,i){var o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||eg(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||eg(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(P0,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Dd,e.addEventListener(t,o?Pu:Nu,o)):e.removeEventListener(t,o?Pu:Nu,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function tg(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Dd++;else if(t.t<n.u)return;return n(Qe.event?Qe.event(t):t)}}}function j0(e,t,n,r,i,o,s,a,l,u){var d,h,v,m,w,C,A,P,$,re,z,ie,ke,Ne,F,pe,ce,he=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=Qe.__b)&&d(t);e:if(typeof he=="function")try{if(P=t.props,$="prototype"in he&&he.prototype.render,re=(d=he.contextType)&&r[d.__c],z=d?re?re.props.value:d.__:r,n.__c?A=(h=t.__c=n.__c).__=h.__E:($?t.__c=h=new he(P,z):(t.__c=h=new lo(P,z),h.constructor=he,h.render=_A),re&&re.sub(h),h.props=P,h.state||(h.state={}),h.context=z,h.__n=r,v=h.__d=!0,h.__h=[],h._sb=[]),$&&h.__s==null&&(h.__s=h.state),$&&he.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=dr({},h.__s)),dr(h.__s,he.getDerivedStateFromProps(P,h.__s))),m=h.props,w=h.state,h.__v=t,v)$&&he.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),$&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if($&&he.getDerivedStateFromProps==null&&P!==m&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(P,z),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(P,h.__s,z)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(h.props=P,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ce){Ce&&(Ce.__=t)}),ie=0;ie<h._sb.length;ie++)h.__h.push(h._sb[ie]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(P,h.__s,z),$&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(m,w,C)})}if(h.context=z,h.props=P,h.__P=e,h.__e=!1,ke=Qe.__r,Ne=0,$){for(h.state=h.__s,h.__d=!1,ke&&ke(t),d=h.render(h.props,h.state,h.context),F=0;F<h._sb.length;F++)h.__h.push(h._sb[F]);h._sb=[]}else do h.__d=!1,ke&&ke(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++Ne<25);h.state=h.__s,h.getChildContext!=null&&(r=dr(dr({},r),h.getChildContext())),$&&!v&&h.getSnapshotBeforeUpdate!=null&&(C=h.getSnapshotBeforeUpdate(m,w)),a=M0(e,Rd(pe=d!=null&&d.type===Nd&&d.key==null?d.props.children:d)?pe:[pe],t,n,r,i,o,s,a,l,u),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),A&&(h.__E=h.__=null)}catch(Ce){if(t.__v=null,l||o!=null)if(Ce.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else for(ce=o.length;ce--;)kd(o[ce]);else t.__e=n.__e,t.__k=n.__k;Qe.__e(Ce,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=gA(n.__e,t,n,r,i,o,s,l,u);return(d=Qe.diffed)&&d(t),128&t.__u?void 0:a}function pA(e,t,n){for(var r=0;r<n.length;r++)Pd(n[r],n[++r],n[++r]);Qe.__c&&Qe.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Qe.__e(o,i.__v)}})}function gA(e,t,n,r,i,o,s,a,l){var u,d,h,v,m,w,C,A=n.props,P=t.props,$=t.type;if($=="svg"?i="http://www.w3.org/2000/svg":$=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((m=o[u])&&"setAttribute"in m==!!$&&($?m.localName==$:m.nodeType==3)){e=m,o[u]=null;break}}if(e==null){if($==null)return document.createTextNode(P);e=document.createElementNS(i,$,P.is&&P),a&&(Qe.__m&&Qe.__m(t,o),a=!1),o=null}if($===null)A===P||a&&e.data===P||(e.data=P);else{if(o=o&&D0.call(e.childNodes),A=n.props||Au,!a&&o!=null)for(A={},u=0;u<e.attributes.length;u++)A[(m=e.attributes[u]).name]=m.value;for(u in A)if(m=A[u],u!="children"){if(u=="dangerouslySetInnerHTML")h=m;else if(!(u in P)){if(u=="value"&&"defaultValue"in P||u=="checked"&&"defaultChecked"in P)continue;Ss(e,u,null,m,i)}}for(u in P)m=P[u],u=="children"?v=m:u=="dangerouslySetInnerHTML"?d=m:u=="value"?w=m:u=="checked"?C=m:a&&typeof m!="function"||A[u]===m||Ss(e,u,m,A[u],i);if(d)a||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=""),M0(e,Rd(v)?v:[v],t,n,r,$=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Di(n,0),a,l),o!=null)for(u=o.length;u--;)kd(o[u]);a||(u="value",$=="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[u]||$=="progress"&&!w||$=="option"&&w!==A[u])&&Ss(e,u,w,A[u],i),u="checked",C!==void 0&&C!==e[u]&&Ss(e,u,C,A[u],i))}return e}function Pd(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){Qe.__e(i,n)}}function F0(e,t,n){var r,i;if(Qe.unmount&&Qe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Pd(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Qe.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&F0(r[i],t,n||typeof e.type!="function");n||kd(e.__e),e.__c=e.__=e.__e=void 0}function _A(e,t,n){return this.constructor(e,n)}D0=A0.slice,Qe={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},R0=0,k0=function(e){return e!=null&&e.constructor==null},lo.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=dr({},this.state),typeof e=="function"&&(e=e(dr({},n),this.props)),e&&dr(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Qp(this))},lo.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qp(this))},lo.prototype.render=Nd,Or=[],N0=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ku=function(e,t){return e.__v.__b-t.__v.__b},va.__r=0,P0=/(PointerCapture)$|Capture$/i,Dd=0,Nu=tg(!1),Pu=tg(!0),uA=0;var Lu,Wt,Xl,ng,rg=0,B0=[],yt=Qe,ig=yt.__b,og=yt.__r,sg=yt.diffed,ag=yt.__c,lg=yt.unmount,cg=yt.__;function mA(e,t){yt.__h&&yt.__h(Wt,e,rg||t),rg=0;var n=Wt.__H||(Wt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function U0(e,t){var n=mA(Lu++,7);return bA(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function vA(){for(var e;e=B0.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Bs),e.__H.__h.forEach(Mu),e.__H.__h=[]}catch(t){e.__H.__h=[],yt.__e(t,e.__v)}}yt.__b=function(e){Wt=null,ig&&ig(e)},yt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),cg&&cg(e,t)},yt.__r=function(e){og&&og(e),Lu=0;var t=(Wt=e.__c).__H;t&&(Xl===Wt?(t.__h=[],Wt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Bs),t.__h.forEach(Mu),t.__h=[],Lu=0)),Xl=Wt},yt.diffed=function(e){sg&&sg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(B0.push(t)!==1&&ng===yt.requestAnimationFrame||((ng=yt.requestAnimationFrame)||yA)(vA)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Xl=Wt=null},yt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Bs),n.__h=n.__h.filter(function(r){return!r.__||Mu(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],yt.__e(r,n.__v)}}),ag&&ag(e,t)},yt.unmount=function(e){lg&&lg(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Bs(r)}catch(i){t=i}}),n.__H=void 0,t&&yt.__e(t,n.__v))};var ug=typeof requestAnimationFrame=="function";function yA(e){var t,n=function(){clearTimeout(r),ug&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ug&&(t=requestAnimationFrame(n))}function Bs(e){var t=Wt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Wt=t}function Mu(e){var t=Wt;e.__c=e.__(),Wt=t}function bA(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}var wA=Symbol.for("preact-signals");function Ad(){if(vi>1)vi--;else{for(var e,t=!1;co!==void 0;){var n=co;for(co=void 0,Vu++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&z0(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(Vu=0,vi--,t)throw e}}var Ge=void 0,co=void 0,vi=0,Vu=0,ya=0;function H0(e){if(Ge!==void 0){var t=e.n;if(t===void 0||t.t!==Ge)return t={i:0,S:e,p:Ge.s,n:void 0,t:Ge,e:void 0,x:void 0,r:t},Ge.s!==void 0&&(Ge.s.n=t),Ge.s=t,e.n=t,32&Ge.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Ge.s,t.n=void 0,Ge.s.n=t,Ge.s=t),t}}function Ot(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Ot.prototype.brand=wA;Ot.prototype.h=function(){return!0};Ot.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Ot.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};Ot.prototype.subscribe=function(e){var t=this;return Md(function(){var n=t.value,r=Ge;Ge=void 0;try{e(n)}finally{Ge=r}})};Ot.prototype.valueOf=function(){return this.value};Ot.prototype.toString=function(){return this.value+""};Ot.prototype.toJSON=function(){return this.value};Ot.prototype.peek=function(){var e=Ge;Ge=void 0;try{return this.value}finally{Ge=e}};Object.defineProperty(Ot.prototype,"value",{get:function(){var e=H0(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Vu>100)throw new Error("Cycle detected");this.v=e,this.i++,ya++,vi++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ad()}}}});function $0(e){return new Ot(e)}function z0(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function W0(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function q0(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function zi(e){Ot.call(this,void 0),this.x=e,this.s=void 0,this.g=ya-1,this.f=4}(zi.prototype=new Ot).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ya))return!0;if(this.g=ya,this.f|=1,this.i>0&&!z0(this))return this.f&=-2,!0;var e=Ge;try{W0(this),Ge=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Ge=e,q0(this),this.f&=-2,!0};zi.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ot.prototype.S.call(this,e)};zi.prototype.U=function(e){if(this.t!==void 0&&(Ot.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};zi.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(zi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=H0(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function EA(e){return new zi(e)}function G0(e){var t=e.u;if(e.u=void 0,typeof t=="function"){vi++;var n=Ge;Ge=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Ld(e),r}finally{Ge=n,Ad()}}}function Ld(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,G0(e)}function xA(e){if(Ge!==this)throw new Error("Out-of-order effect");q0(this),Ge=e,this.f&=-2,8&this.f&&Ld(this),Ad()}function is(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}is.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};is.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,G0(this),W0(this),vi++;var e=Ge;return Ge=this,xA.bind(this,e)};is.prototype.N=function(){2&this.f||(this.f|=2,this.o=co,co=this)};is.prototype.d=function(){this.f|=8,1&this.f||Ld(this)};function Md(e){var t=new is(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Vd,Ql;function Wi(e,t){Qe[e]=t.bind(null,Qe[e]||function(){})}function ba(e){Ql&&Ql(),Ql=e&&e.S()}function Z0(e){var t=this,n=e.data,r=CA(n);r.value=n;var i=U0(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var s,a=t.__$u.S(),l=i.value;a(),k0(l)||((s=t.base)==null?void 0:s.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=l},EA(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}Z0.displayName="_st";Object.defineProperties(Ot.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Z0},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Wi("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var o=r[i];o instanceof Ot&&(n||(t.__np=n={}),n[i]=o,r[i]=o.peek())}}e(t)});Wi("__r",function(e,t){ba();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var o;return Md(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),Vd=r,ba(n),e(t)});Wi("__e",function(e,t,n,r){ba(),Vd=void 0,e(t,n,r)});Wi("diffed",function(e,t){ba(),Vd=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var o=n.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else n.U=o={};for(var l in r){var u=o[l],d=r[l];u===void 0?(u=SA(n,l,d,i),o[l]=u):u.o(d,i)}}}e(t)});function SA(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,o=$0(n);return{o:function(s,a){o.value=s,r=a},d:Md(function(){var s=o.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}Wi("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var o=r[i];o&&o.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)});Wi("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)});lo.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function CA(e){return U0(function(){return $0(e)},[])}var Y0=(e=>(e.SIMPLE="SIMPLE",e.SWIPER="SWIPER",e.STORY="STORY",e.FLOATING_POPUP="FLOATING_POPUP",e))(Y0||{}),K0=(e=>(e.ON="ON",e.OFF="OFF",e.ON_HOVER="ON_HOVER",e))(K0||{}),J0=(e=>(e.FIRST_ITEM="FIRST_ITEM",e.BADGE="BADGE",e.NONE="NONE",e))(J0||{});function IA(e,t){return t={exports:{}},e(t,t.exports),t.exports}var TA=kA,OA=PA,DA=MA,Pn=[],Qt=[],RA=typeof Uint8Array<"u"?Uint8Array:Array,ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(wr=0,hg=ec.length;wr<hg;++wr)Pn[wr]=ec[wr],Qt[ec.charCodeAt(wr)]=wr;var wr,hg;Qt[45]=62;Qt[95]=63;function X0(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function kA(e){var t=X0(e),n=t[0],r=t[1];return(n+r)*3/4-r}function NA(e,t,n){return(t+n)*3/4-n}function PA(e){var t,n=X0(e),r=n[0],i=n[1],o=new RA(NA(e,r,i)),s=0,a=i>0?r-4:r,l;for(l=0;l<a;l+=4)t=Qt[e.charCodeAt(l)]<<18|Qt[e.charCodeAt(l+1)]<<12|Qt[e.charCodeAt(l+2)]<<6|Qt[e.charCodeAt(l+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=Qt[e.charCodeAt(l)]<<2|Qt[e.charCodeAt(l+1)]>>4,o[s++]=t&255),i===1&&(t=Qt[e.charCodeAt(l)]<<10|Qt[e.charCodeAt(l+1)]<<4|Qt[e.charCodeAt(l+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function AA(e){return Pn[e>>18&63]+Pn[e>>12&63]+Pn[e>>6&63]+Pn[e&63]}function LA(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(AA(r));return i.join("")}function MA(e){for(var t,n=e.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(LA(e,s,s+o>a?a:s+o));return r===1?(t=e[n-1],i.push(Pn[t>>2]+Pn[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Pn[t>>10]+Pn[t>>4&63]+Pn[t<<2&63]+"=")),i.join("")}var tc={byteLength:TA,toByteArray:OA,fromByteArray:DA},VA=function(e,t,n,r,i){var o,s,a=i*8-r-1,l=(1<<a)-1,u=l>>1,d=-7,h=n?i-1:0,v=n?-1:1,m=e[t+h];for(h+=v,o=m&(1<<-d)-1,m>>=-d,d+=a;d>0;o=o*256+e[t+h],h+=v,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=r;d>0;s=s*256+e[t+h],h+=v,d-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-u}return(m?-1:1)*s*Math.pow(2,o-r)},jA=function(e,t,n,r,i,o){var s,a,l,u=o*8-i-1,d=(1<<u)-1,h=d>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:o-1,w=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=v/l:t+=v*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=d?(a=0,s=d):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+m]=a&255,m+=w,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+m]=s&255,m+=w,s/=256,u-=8);e[n+m-w]|=C*128},ii={read:VA,write:jA},ul=IA(function(e,t){var n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=P,t.INSPECT_MAX_BYTES=50;var r=2147483647;t.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var c=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(c,f),c.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(c){if(c>r)throw new RangeError('The value "'+c+'" is invalid for option "size"');var f=new Uint8Array(c);return Object.setPrototypeOf(f,s.prototype),f}function s(c,f,p){if(typeof c=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(c)}return a(c,f,p)}s.poolSize=8192;function a(c,f,p){if(typeof c=="string")return h(c,f);if(ArrayBuffer.isView(c))return m(c);if(c==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(c));if(se(c,ArrayBuffer)||c&&se(c.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(se(c,SharedArrayBuffer)||c&&se(c.buffer,SharedArrayBuffer)))return w(c,f,p);if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var S=c.valueOf&&c.valueOf();if(S!=null&&S!==c)return s.from(S,f,p);var k=C(c);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof c[Symbol.toPrimitive]=="function")return s.from(c[Symbol.toPrimitive]("string"),f,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(c))}s.from=function(c,f,p){return a(c,f,p)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(c){if(typeof c!="number")throw new TypeError('"size" argument must be of type number');if(c<0)throw new RangeError('The value "'+c+'" is invalid for option "size"')}function u(c,f,p){return l(c),c<=0?o(c):f!==void 0?typeof p=="string"?o(c).fill(f,p):o(c).fill(f):o(c)}s.alloc=function(c,f,p){return u(c,f,p)};function d(c){return l(c),o(c<0?0:A(c)|0)}s.allocUnsafe=function(c){return d(c)},s.allocUnsafeSlow=function(c){return d(c)};function h(c,f){if((typeof f!="string"||f==="")&&(f="utf8"),!s.isEncoding(f))throw new TypeError("Unknown encoding: "+f);var p=$(c,f)|0,S=o(p),k=S.write(c,f);return k!==p&&(S=S.slice(0,k)),S}function v(c){for(var f=c.length<0?0:A(c.length)|0,p=o(f),S=0;S<f;S+=1)p[S]=c[S]&255;return p}function m(c){if(se(c,Uint8Array)){var f=new Uint8Array(c);return w(f.buffer,f.byteOffset,f.byteLength)}return v(c)}function w(c,f,p){if(f<0||c.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(c.byteLength<f+(p||0))throw new RangeError('"length" is outside of buffer bounds');var S;return f===void 0&&p===void 0?S=new Uint8Array(c):p===void 0?S=new Uint8Array(c,f):S=new Uint8Array(c,f,p),Object.setPrototypeOf(S,s.prototype),S}function C(c){if(s.isBuffer(c)){var f=A(c.length)|0,p=o(f);return p.length===0||c.copy(p,0,0,f),p}if(c.length!==void 0)return typeof c.length!="number"||ve(c.length)?o(0):v(c);if(c.type==="Buffer"&&Array.isArray(c.data))return v(c.data)}function A(c){if(c>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return c|0}function P(c){return+c!=c&&(c=0),s.alloc(+c)}s.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==s.prototype},s.compare=function(c,f){if(se(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),se(f,Uint8Array)&&(f=s.from(f,f.offset,f.byteLength)),!s.isBuffer(c)||!s.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===f)return 0;for(var p=c.length,S=f.length,k=0,j=Math.min(p,S);k<j;++k)if(c[k]!==f[k]){p=c[k],S=f[k];break}return p<S?-1:S<p?1:0},s.isEncoding=function(c){switch(String(c).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(c,f){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return s.alloc(0);var p;if(f===void 0)for(f=0,p=0;p<c.length;++p)f+=c[p].length;var S=s.allocUnsafe(f),k=0;for(p=0;p<c.length;++p){var j=c[p];if(se(j,Uint8Array))k+j.length>S.length?s.from(j).copy(S,k):Uint8Array.prototype.set.call(S,j,k);else if(s.isBuffer(j))j.copy(S,k);else throw new TypeError('"list" argument must be an Array of Buffers');k+=j.length}return S};function $(c,f){if(s.isBuffer(c))return c.length;if(ArrayBuffer.isView(c)||se(c,ArrayBuffer))return c.byteLength;if(typeof c!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+babelHelpers.typeof(c));var p=c.length,S=arguments.length>2&&arguments[2]===!0;if(!S&&p===0)return 0;for(var k=!1;;)switch(f){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return J(c).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return xe(c).length;default:if(k)return S?-1:J(c).length;f=(""+f).toLowerCase(),k=!0}}s.byteLength=$;function re(c,f,p){var S=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,f>>>=0,p<=f))return"";for(c||(c="utf8");;)switch(c){case"hex":return R(this,f,p);case"utf8":case"utf-8":return ze(this,f,p);case"ascii":return st(this,f,p);case"latin1":case"binary":return Pe(this,f,p);case"base64":return Ce(this,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,f,p);default:if(S)throw new TypeError("Unknown encoding: "+c);c=(c+"").toLowerCase(),S=!0}}s.prototype._isBuffer=!0;function z(c,f,p){var S=c[f];c[f]=c[p],c[p]=S}s.prototype.swap16=function(){var c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<c;f+=2)z(this,f,f+1);return this},s.prototype.swap32=function(){var c=this.length;if(c%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<c;f+=4)z(this,f,f+3),z(this,f+1,f+2);return this},s.prototype.swap64=function(){var c=this.length;if(c%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<c;f+=8)z(this,f,f+7),z(this,f+1,f+6),z(this,f+2,f+5),z(this,f+3,f+4);return this},s.prototype.toString=function(){var c=this.length;return c===0?"":arguments.length===0?ze(this,0,c):re.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(c){if(!s.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:s.compare(this,c)===0},s.prototype.inspect=function(){var c="",f=t.INSPECT_MAX_BYTES;return c=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(c+=" ... "),"<Buffer "+c+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(c,f,p,S,k){if(se(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+babelHelpers.typeof(c));if(f===void 0&&(f=0),p===void 0&&(p=c?c.length:0),S===void 0&&(S=0),k===void 0&&(k=this.length),f<0||p>c.length||S<0||k>this.length)throw new RangeError("out of range index");if(S>=k&&f>=p)return 0;if(S>=k)return-1;if(f>=p)return 1;if(f>>>=0,p>>>=0,S>>>=0,k>>>=0,this===c)return 0;for(var j=k-S,Q=p-f,oe=Math.min(j,Q),Ve=this.slice(S,k),Ie=c.slice(f,p),je=0;je<oe;++je)if(Ve[je]!==Ie[je]){j=Ve[je],Q=Ie[je];break}return j<Q?-1:Q<j?1:0};function ie(c,f,p,S,k){if(c.length===0)return-1;if(typeof p=="string"?(S=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,ve(p)&&(p=k?0:c.length-1),p<0&&(p=c.length+p),p>=c.length){if(k)return-1;p=c.length-1}else if(p<0)if(k)p=0;else return-1;if(typeof f=="string"&&(f=s.from(f,S)),s.isBuffer(f))return f.length===0?-1:ke(c,f,p,S,k);if(typeof f=="number")return f=f&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(c,f,p):Uint8Array.prototype.lastIndexOf.call(c,f,p):ke(c,[f],p,S,k);throw new TypeError("val must be string, number or Buffer")}function ke(c,f,p,S,k){var j=1,Q=c.length,oe=f.length;if(S!==void 0&&(S=String(S).toLowerCase(),S==="ucs2"||S==="ucs-2"||S==="utf16le"||S==="utf-16le")){if(c.length<2||f.length<2)return-1;j=2,Q/=2,oe/=2,p/=2}function Ve(Hn,ft){return j===1?Hn[ft]:Hn.readUInt16BE(ft*j)}var Ie;if(k){var je=-1;for(Ie=p;Ie<Q;Ie++)if(Ve(c,Ie)===Ve(f,je===-1?0:Ie-je)){if(je===-1&&(je=Ie),Ie-je+1===oe)return je*j}else je!==-1&&(Ie-=Ie-je),je=-1}else for(p+oe>Q&&(p=Q-oe),Ie=p;Ie>=0;Ie--){for(var Ae=!0,xt=0;xt<oe;xt++)if(Ve(c,Ie+xt)!==Ve(f,xt)){Ae=!1;break}if(Ae)return Ie}return-1}s.prototype.includes=function(c,f,p){return this.indexOf(c,f,p)!==-1},s.prototype.indexOf=function(c,f,p){return ie(this,c,f,p,!0)},s.prototype.lastIndexOf=function(c,f,p){return ie(this,c,f,p,!1)};function Ne(c,f,p,S){p=Number(p)||0;var k=c.length-p;S?(S=Number(S),S>k&&(S=k)):S=k;var j=f.length;S>j/2&&(S=j/2);for(var Q=0;Q<S;++Q){var oe=parseInt(f.substr(Q*2,2),16);if(ve(oe))return Q;c[p+Q]=oe}return Q}function F(c,f,p,S){return X(J(f,c.length-p),c,p,S)}function pe(c,f,p,S){return X(ue(f),c,p,S)}function ce(c,f,p,S){return X(xe(f),c,p,S)}function he(c,f,p,S){return X(_e(f,c.length-p),c,p,S)}s.prototype.write=function(c,f,p,S){if(f===void 0)S="utf8",p=this.length,f=0;else if(p===void 0&&typeof f=="string")S=f,p=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(p)?(p=p>>>0,S===void 0&&(S="utf8")):(S=p,p=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var k=this.length-f;if((p===void 0||p>k)&&(p=k),c.length>0&&(p<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");S||(S="utf8");for(var j=!1;;)switch(S){case"hex":return Ne(this,c,f,p);case"utf8":case"utf-8":return F(this,c,f,p);case"ascii":case"latin1":case"binary":return pe(this,c,f,p);case"base64":return ce(this,c,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,c,f,p);default:if(j)throw new TypeError("Unknown encoding: "+S);S=(""+S).toLowerCase(),j=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ce(c,f,p){return f===0&&p===c.length?tc.fromByteArray(c):tc.fromByteArray(c.slice(f,p))}function ze(c,f,p){p=Math.min(c.length,p);for(var S=[],k=f;k<p;){var j=c[k],Q=null,oe=j>239?4:j>223?3:j>191?2:1;if(k+oe<=p){var Ve,Ie,je,Ae;switch(oe){case 1:j<128&&(Q=j);break;case 2:Ve=c[k+1],(Ve&192)===128&&(Ae=(j&31)<<6|Ve&63,Ae>127&&(Q=Ae));break;case 3:Ve=c[k+1],Ie=c[k+2],(Ve&192)===128&&(Ie&192)===128&&(Ae=(j&15)<<12|(Ve&63)<<6|Ie&63,Ae>2047&&(Ae<55296||Ae>57343)&&(Q=Ae));break;case 4:Ve=c[k+1],Ie=c[k+2],je=c[k+3],(Ve&192)===128&&(Ie&192)===128&&(je&192)===128&&(Ae=(j&15)<<18|(Ve&63)<<12|(Ie&63)<<6|je&63,Ae>65535&&Ae<1114112&&(Q=Ae))}}Q===null?(Q=65533,oe=1):Q>65535&&(Q-=65536,S.push(Q>>>10&1023|55296),Q=56320|Q&1023),S.push(Q),k+=oe}return Je(S)}var _=4096;function Je(c){var f=c.length;if(f<=_)return String.fromCharCode.apply(String,c);for(var p="",S=0;S<f;)p+=String.fromCharCode.apply(String,c.slice(S,S+=_));return p}function st(c,f,p){var S="";p=Math.min(c.length,p);for(var k=f;k<p;++k)S+=String.fromCharCode(c[k]&127);return S}function Pe(c,f,p){var S="";p=Math.min(c.length,p);for(var k=f;k<p;++k)S+=String.fromCharCode(c[k]);return S}function R(c,f,p){var S=c.length;(!f||f<0)&&(f=0),(!p||p<0||p>S)&&(p=S);for(var k="",j=f;j<p;++j)k+=de[c[j]];return k}function D(c,f,p){for(var S=c.slice(f,p),k="",j=0;j<S.length-1;j+=2)k+=String.fromCharCode(S[j]+S[j+1]*256);return k}s.prototype.slice=function(c,f){var p=this.length;c=~~c,f=f===void 0?p:~~f,c<0?(c+=p,c<0&&(c=0)):c>p&&(c=p),f<0?(f+=p,f<0&&(f=0)):f>p&&(f=p),f<c&&(f=c);var S=this.subarray(c,f);return Object.setPrototypeOf(S,s.prototype),S};function b(c,f,p){if(c%1!==0||c<0)throw new RangeError("offset is not uint");if(c+f>p)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(c,f,p){c=c>>>0,f=f>>>0,p||b(c,f,this.length);for(var S=this[c],k=1,j=0;++j<f&&(k*=256);)S+=this[c+j]*k;return S},s.prototype.readUintBE=s.prototype.readUIntBE=function(c,f,p){c=c>>>0,f=f>>>0,p||b(c,f,this.length);for(var S=this[c+--f],k=1;f>0&&(k*=256);)S+=this[c+--f]*k;return S},s.prototype.readUint8=s.prototype.readUInt8=function(c,f){return c=c>>>0,f||b(c,1,this.length),this[c]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(c,f){return c=c>>>0,f||b(c,2,this.length),this[c]|this[c+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(c,f){return c=c>>>0,f||b(c,2,this.length),this[c]<<8|this[c+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(c,f){return c=c>>>0,f||b(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(c,f){return c=c>>>0,f||b(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},s.prototype.readIntLE=function(c,f,p){c=c>>>0,f=f>>>0,p||b(c,f,this.length);for(var S=this[c],k=1,j=0;++j<f&&(k*=256);)S+=this[c+j]*k;return k*=128,S>=k&&(S-=Math.pow(2,8*f)),S},s.prototype.readIntBE=function(c,f,p){c=c>>>0,f=f>>>0,p||b(c,f,this.length);for(var S=f,k=1,j=this[c+--S];S>0&&(k*=256);)j+=this[c+--S]*k;return k*=128,j>=k&&(j-=Math.pow(2,8*f)),j},s.prototype.readInt8=function(c,f){return c=c>>>0,f||b(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},s.prototype.readInt16LE=function(c,f){c=c>>>0,f||b(c,2,this.length);var p=this[c]|this[c+1]<<8;return p&32768?p|4294901760:p},s.prototype.readInt16BE=function(c,f){c=c>>>0,f||b(c,2,this.length);var p=this[c+1]|this[c]<<8;return p&32768?p|4294901760:p},s.prototype.readInt32LE=function(c,f){return c=c>>>0,f||b(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},s.prototype.readInt32BE=function(c,f){return c=c>>>0,f||b(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},s.prototype.readFloatLE=function(c,f){return c=c>>>0,f||b(c,4,this.length),ii.read(this,c,!0,23,4)},s.prototype.readFloatBE=function(c,f){return c=c>>>0,f||b(c,4,this.length),ii.read(this,c,!1,23,4)},s.prototype.readDoubleLE=function(c,f){return c=c>>>0,f||b(c,8,this.length),ii.read(this,c,!0,52,8)},s.prototype.readDoubleBE=function(c,f){return c=c>>>0,f||b(c,8,this.length),ii.read(this,c,!1,52,8)};function y(c,f,p,S,k,j){if(!s.isBuffer(c))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>k||f<j)throw new RangeError('"value" argument is out of bounds');if(p+S>c.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(c,f,p,S){if(c=+c,f=f>>>0,p=p>>>0,!S){var k=Math.pow(2,8*p)-1;y(this,c,f,p,k,0)}var j=1,Q=0;for(this[f]=c&255;++Q<p&&(j*=256);)this[f+Q]=c/j&255;return f+p},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(c,f,p,S){if(c=+c,f=f>>>0,p=p>>>0,!S){var k=Math.pow(2,8*p)-1;y(this,c,f,p,k,0)}var j=p-1,Q=1;for(this[f+j]=c&255;--j>=0&&(Q*=256);)this[f+j]=c/Q&255;return f+p},s.prototype.writeUint8=s.prototype.writeUInt8=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,1,255,0),this[f]=c&255,f+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,2,65535,0),this[f]=c&255,this[f+1]=c>>>8,f+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,2,65535,0),this[f]=c>>>8,this[f+1]=c&255,f+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,4,4294967295,0),this[f+3]=c>>>24,this[f+2]=c>>>16,this[f+1]=c>>>8,this[f]=c&255,f+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,4,4294967295,0),this[f]=c>>>24,this[f+1]=c>>>16,this[f+2]=c>>>8,this[f+3]=c&255,f+4},s.prototype.writeIntLE=function(c,f,p,S){if(c=+c,f=f>>>0,!S){var k=Math.pow(2,8*p-1);y(this,c,f,p,k-1,-k)}var j=0,Q=1,oe=0;for(this[f]=c&255;++j<p&&(Q*=256);)c<0&&oe===0&&this[f+j-1]!==0&&(oe=1),this[f+j]=(c/Q>>0)-oe&255;return f+p},s.prototype.writeIntBE=function(c,f,p,S){if(c=+c,f=f>>>0,!S){var k=Math.pow(2,8*p-1);y(this,c,f,p,k-1,-k)}var j=p-1,Q=1,oe=0;for(this[f+j]=c&255;--j>=0&&(Q*=256);)c<0&&oe===0&&this[f+j+1]!==0&&(oe=1),this[f+j]=(c/Q>>0)-oe&255;return f+p},s.prototype.writeInt8=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,1,127,-128),c<0&&(c=255+c+1),this[f]=c&255,f+1},s.prototype.writeInt16LE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,2,32767,-32768),this[f]=c&255,this[f+1]=c>>>8,f+2},s.prototype.writeInt16BE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,2,32767,-32768),this[f]=c>>>8,this[f+1]=c&255,f+2},s.prototype.writeInt32LE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,4,2147483647,-2147483648),this[f]=c&255,this[f+1]=c>>>8,this[f+2]=c>>>16,this[f+3]=c>>>24,f+4},s.prototype.writeInt32BE=function(c,f,p){return c=+c,f=f>>>0,p||y(this,c,f,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[f]=c>>>24,this[f+1]=c>>>16,this[f+2]=c>>>8,this[f+3]=c&255,f+4};function M(c,f,p,S,k,j){if(p+S>c.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function U(c,f,p,S,k){return f=+f,p=p>>>0,k||M(c,f,p,4),ii.write(c,f,p,S,23,4),p+4}s.prototype.writeFloatLE=function(c,f,p){return U(this,c,f,!0,p)},s.prototype.writeFloatBE=function(c,f,p){return U(this,c,f,!1,p)};function G(c,f,p,S,k){return f=+f,p=p>>>0,k||M(c,f,p,8),ii.write(c,f,p,S,52,8),p+8}s.prototype.writeDoubleLE=function(c,f,p){return G(this,c,f,!0,p)},s.prototype.writeDoubleBE=function(c,f,p){return G(this,c,f,!1,p)},s.prototype.copy=function(c,f,p,S){if(!s.isBuffer(c))throw new TypeError("argument should be a Buffer");if(p||(p=0),!S&&S!==0&&(S=this.length),f>=c.length&&(f=c.length),f||(f=0),S>0&&S<p&&(S=p),S===p||c.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(p<0||p>=this.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("sourceEnd out of bounds");S>this.length&&(S=this.length),c.length-f<S-p&&(S=c.length-f+p);var k=S-p;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,p,S):Uint8Array.prototype.set.call(c,this.subarray(p,S),f),k},s.prototype.fill=function(c,f,p,S){if(typeof c=="string"){if(typeof f=="string"?(S=f,f=0,p=this.length):typeof p=="string"&&(S=p,p=this.length),S!==void 0&&typeof S!="string")throw new TypeError("encoding must be a string");if(typeof S=="string"&&!s.isEncoding(S))throw new TypeError("Unknown encoding: "+S);if(c.length===1){var k=c.charCodeAt(0);(S==="utf8"&&k<128||S==="latin1")&&(c=k)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(f<0||this.length<f||this.length<p)throw new RangeError("Out of range index");if(p<=f)return this;f=f>>>0,p=p===void 0?this.length:p>>>0,c||(c=0);var j;if(typeof c=="number")for(j=f;j<p;++j)this[j]=c;else{var Q=s.isBuffer(c)?c:s.from(c,S),oe=Q.length;if(oe===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(j=0;j<p-f;++j)this[j+f]=Q[j%oe]}return this};var te=/[^+/0-9A-Za-z-_]/g;function ee(c){if(c=c.split("=")[0],c=c.trim().replace(te,""),c.length<2)return"";for(;c.length%4!==0;)c=c+"=";return c}function J(c,f){f=f||1/0;for(var p,S=c.length,k=null,j=[],Q=0;Q<S;++Q){if(p=c.charCodeAt(Q),p>55295&&p<57344){if(!k){if(p>56319){(f-=3)>-1&&j.push(239,191,189);continue}else if(Q+1===S){(f-=3)>-1&&j.push(239,191,189);continue}k=p;continue}if(p<56320){(f-=3)>-1&&j.push(239,191,189),k=p;continue}p=(k-55296<<10|p-56320)+65536}else k&&(f-=3)>-1&&j.push(239,191,189);if(k=null,p<128){if((f-=1)<0)break;j.push(p)}else if(p<2048){if((f-=2)<0)break;j.push(p>>6|192,p&63|128)}else if(p<65536){if((f-=3)<0)break;j.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((f-=4)<0)break;j.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return j}function ue(c){for(var f=[],p=0;p<c.length;++p)f.push(c.charCodeAt(p)&255);return f}function _e(c,f){for(var p,S,k,j=[],Q=0;Q<c.length&&!((f-=2)<0);++Q)p=c.charCodeAt(Q),S=p>>8,k=p%256,j.push(k),j.push(S);return j}function xe(c){return tc.toByteArray(ee(c))}function X(c,f,p,S){for(var k=0;k<S&&!(k+p>=f.length||k>=c.length);++k)f[k+p]=c[k];return k}function se(c,f){return c instanceof f||c!=null&&c.constructor!=null&&c.constructor.name!=null&&c.constructor.name===f.name}function ve(c){return c!==c}var de=function(){for(var c="0123456789abcdef",f=new Array(256),p=0;p<16;++p)for(var S=p*16,k=0;k<16;++k)f[S+k]=c[p]+c[k];return f}()}),Be=ul.Buffer;ul.SlowBuffer;ul.INSPECT_MAX_BYTES;ul.kMaxLength;var ju=function(e,t){return ju=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},ju(e,t)};function hl(e,t){ju(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pr=function(e){hl(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONError"},enumerable:!1,configurable:!0}),t}(Error),lt=function(e){hl(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONTypeError"},enumerable:!1,configurable:!0}),t}(TypeError);function Cs(e){return e&&e.Math==Math&&e}function Q0(){return Cs(typeof globalThis=="object"&&globalThis)||Cs(typeof window=="object"&&window)||Cs(typeof self=="object"&&self)||Cs(typeof global=="object"&&global)||Function("return this")()}function FA(){var e=Q0();return typeof e.navigator=="object"&&e.navigator.product==="ReactNative"}var BA=function(e){var t=FA()?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.";console.warn(t);for(var n=Be.alloc(e),r=0;r<e;++r)n[r]=Math.floor(Math.random()*256);return n},UA=function(){{if(typeof window<"u"){var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues)return function(t){return e.getRandomValues(Be.alloc(t))}}return typeof global<"u"&&global.crypto&&global.crypto.getRandomValues?function(t){return global.crypto.getRandomValues(Be.alloc(t))}:BA}},eb=UA();function HA(e){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(e))}function jd(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}function $A(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function zA(e){return os(e)&&Object.prototype.toString.call(e)==="[object Date]"}function os(e){return typeof e=="object"&&e!==null}function dl(e,t){var n=!1;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(console.warn(t),n=!0),e.apply(this,i)}return r}function wa(e){if(ArrayBuffer.isView(e))return Be.from(e.buffer,e.byteOffset,e.byteLength);if(HA(e))return Be.from(e);throw new lt("Must use either Buffer or TypedArray")}var WA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i,tb=function(e){return typeof e=="string"&&WA.test(e)},Fu=function(e){if(!tb(e))throw new lt('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".');var t=e.replace(/-/g,"");return Be.from(t,"hex")},dg=function(e,t){return t===void 0&&(t=!0),t?e.toString("hex",0,4)+"-"+e.toString("hex",4,6)+"-"+e.toString("hex",6,8)+"-"+e.toString("hex",8,10)+"-"+e.toString("hex",10,16):e.toString("hex")},eV=Math.pow(2,63)-1,tV=-Math.pow(2,63),qA=Math.pow(2,53),GA=-Math.pow(2,53),nb=4,Ar=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);if(t!=null&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!(t instanceof ArrayBuffer)&&!Array.isArray(t))throw new lt("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");this.sub_type=n??e.BSON_BINARY_SUBTYPE_DEFAULT,t==null?(this.buffer=Be.alloc(e.BUFFER_SIZE),this.position=0):(typeof t=="string"?this.buffer=Be.from(t,"binary"):Array.isArray(t)?this.buffer=Be.from(t):this.buffer=wa(t),this.position=this.buffer.byteLength)}return e.prototype.put=function(t){if(typeof t=="string"&&t.length!==1)throw new lt("only accepts single character String");if(typeof t!="number"&&t.length!==1)throw new lt("only accepts single character Uint8Array or Array");var n;if(typeof t=="string"?n=t.charCodeAt(0):typeof t=="number"?n=t:n=t[0],n<0||n>255)throw new lt("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.length>this.position)this.buffer[this.position++]=n;else{var r=Be.alloc(e.BUFFER_SIZE+this.buffer.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r,this.buffer[this.position++]=n}},e.prototype.write=function(t,n){if(n=typeof n=="number"?n:this.position,this.buffer.length<n+t.length){var r=Be.alloc(this.buffer.length+t.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r}ArrayBuffer.isView(t)?(this.buffer.set(wa(t),n),this.position=n+t.byteLength>this.position?n+t.length:this.position):typeof t=="string"&&(this.buffer.write(t,n,t.length,"binary"),this.position=n+t.length>this.position?n+t.length:this.position)},e.prototype.read=function(t,n){return n=n&&n>0?n:this.position,this.buffer.slice(t,t+n)},e.prototype.value=function(t){return t=!!t,t&&this.buffer.length===this.position?this.buffer:t?this.buffer.slice(0,this.position):this.buffer.toString("binary",0,this.position)},e.prototype.length=function(){return this.position},e.prototype.toJSON=function(){return this.buffer.toString("base64")},e.prototype.toString=function(t){return this.buffer.toString(t)},e.prototype.toExtendedJSON=function(t){t=t||{};var n=this.buffer.toString("base64"),r=Number(this.sub_type).toString(16);return t.legacy?{$binary:n,$type:r.length===1?"0"+r:r}:{$binary:{base64:n,subType:r.length===1?"0"+r:r}}},e.prototype.toUUID=function(){if(this.sub_type===e.SUBTYPE_UUID)return new fg(this.buffer.slice(0,this.position));throw new Pr('Binary sub_type "'.concat(this.sub_type,'" is not supported for converting to UUID. Only "').concat(e.SUBTYPE_UUID,'" is currently supported.'))},e.fromExtendedJSON=function(t,n){n=n||{};var r,i;if("$binary"in t?n.legacy&&typeof t.$binary=="string"&&"$type"in t?(i=t.$type?parseInt(t.$type,16):0,r=Be.from(t.$binary,"base64")):typeof t.$binary!="string"&&(i=t.$binary.subType?parseInt(t.$binary.subType,16):0,r=Be.from(t.$binary.base64,"base64")):"$uuid"in t&&(i=4,r=Fu(t.$uuid)),!r)throw new lt("Unexpected Binary Extended JSON format ".concat(JSON.stringify(t)));return i===nb?new fg(r):new e(r,i)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.value(!0);return'new Binary(Buffer.from("'.concat(t.toString("hex"),'", "hex"), ').concat(this.sub_type,")")},e.BSON_BINARY_SUBTYPE_DEFAULT=0,e.BUFFER_SIZE=256,e.SUBTYPE_DEFAULT=0,e.SUBTYPE_FUNCTION=1,e.SUBTYPE_BYTE_ARRAY=2,e.SUBTYPE_UUID_OLD=3,e.SUBTYPE_UUID=4,e.SUBTYPE_MD5=5,e.SUBTYPE_ENCRYPTED=6,e.SUBTYPE_COLUMN=7,e.SUBTYPE_USER_DEFINED=128,e}();Object.defineProperty(Ar.prototype,"_bsontype",{value:"Binary"});var nc=16,fg=function(e){hl(t,e);function t(n){var r=this,i,o;if(n==null)i=t.generate();else if(n instanceof t)i=Be.from(n.buffer),o=n.__id;else if(ArrayBuffer.isView(n)&&n.byteLength===nc)i=wa(n);else if(typeof n=="string")i=Fu(n);else throw new lt("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");return r=e.call(this,i,nb)||this,r.__id=o,r}return Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer},set:function(n){this.buffer=n,t.cacheHexString&&(this.__id=dg(n))},enumerable:!1,configurable:!0}),t.prototype.toHexString=function(n){if(n===void 0&&(n=!0),t.cacheHexString&&this.__id)return this.__id;var r=dg(this.id,n);return t.cacheHexString&&(this.__id=r),r},t.prototype.toString=function(n){return n?this.id.toString(n):this.toHexString()},t.prototype.toJSON=function(){return this.toHexString()},t.prototype.equals=function(n){if(!n)return!1;if(n instanceof t)return n.id.equals(this.id);try{return new t(n).id.equals(this.id)}catch{return!1}},t.prototype.toBinary=function(){return new Ar(this.id,Ar.SUBTYPE_UUID)},t.generate=function(){var n=eb(nc);return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Be.from(n)},t.isValid=function(n){return n?n instanceof t?!0:typeof n=="string"?tb(n):jd(n)?n.length!==nc?!1:(n[6]&240)===64&&(n[8]&128)===128:!1:!1},t.createFromHexString=function(n){var r=Fu(n);return new t(r)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new UUID("'.concat(this.toHexString(),'")')},t}(Ar),fl=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);this.code=t,this.scope=n}return e.prototype.toJSON=function(){return{code:this.code,scope:this.scope}},e.prototype.toExtendedJSON=function(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}},e.fromExtendedJSON=function(t){return new e(t.$code,t.$scope)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.toJSON();return'new Code("'.concat(String(t.code),'"').concat(t.scope?", ".concat(JSON.stringify(t.scope)):"",")")},e}();Object.defineProperty(fl.prototype,"_bsontype",{value:"Code"});function ZA(e){return os(e)&&e.$id!=null&&typeof e.$ref=="string"&&(e.$db==null||typeof e.$db=="string")}var ko=function(){function e(t,n,r,i){if(!(this instanceof e))return new e(t,n,r,i);var o=t.split(".");o.length===2&&(r=o.shift(),t=o.shift()),this.collection=t,this.oid=n,this.db=r,this.fields=i||{}}return Object.defineProperty(e.prototype,"namespace",{get:function(){return this.collection},set:function(t){this.collection=t},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var t=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return this.db!=null&&(t.$db=this.db),t},e.prototype.toExtendedJSON=function(t){t=t||{};var n={$ref:this.collection,$id:this.oid};return t.legacy||(this.db&&(n.$db=this.db),n=Object.assign(n,this.fields)),n},e.fromExtendedJSON=function(t){var n=Object.assign({},t);return delete n.$ref,delete n.$id,delete n.$db,new e(t.$ref,t.$id,t.$db,n)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return'new DBRef("'.concat(this.namespace,'", new ObjectId("').concat(String(t),'")').concat(this.db?', "'.concat(this.db,'"'):"",")")},e}();Object.defineProperty(ko.prototype,"_bsontype",{value:"DBRef"});var Xt=void 0;try{Xt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var pg=65536,YA=1<<24,di=pg*pg,rb=di*di,gg=rb/2,_g={},mg={},ae=function(){function e(t,n,r){if(t===void 0&&(t=0),!(this instanceof e))return new e(t,n,r);typeof t=="bigint"?Object.assign(this,e.fromBigInt(t,!!n)):typeof t=="string"?Object.assign(this,e.fromString(t,!!n)):(this.low=t|0,this.high=n|0,this.unsigned=!!r),Object.defineProperty(this,"__isLong__",{value:!0,configurable:!1,writable:!1,enumerable:!1})}return e.fromBits=function(t,n,r){return new e(t,n,r)},e.fromInt=function(t,n){var r,i,o;return n?(t>>>=0,(o=0<=t&&t<256)&&(i=mg[t],i)?i:(r=e.fromBits(t,(t|0)<0?-1:0,!0),o&&(mg[t]=r),r)):(t|=0,(o=-128<=t&&t<128)&&(i=_g[t],i)?i:(r=e.fromBits(t,t<0?-1:0,!1),o&&(_g[t]=r),r))},e.fromNumber=function(t,n){if(isNaN(t))return n?e.UZERO:e.ZERO;if(n){if(t<0)return e.UZERO;if(t>=rb)return e.MAX_UNSIGNED_VALUE}else{if(t<=-gg)return e.MIN_VALUE;if(t+1>=gg)return e.MAX_VALUE}return t<0?e.fromNumber(-t,n).neg():e.fromBits(t%di|0,t/di|0,n)},e.fromBigInt=function(t,n){return e.fromString(t.toString(),n)},e.fromString=function(t,n,r){if(t.length===0)throw Error("empty string");if(t==="NaN"||t==="Infinity"||t==="+Infinity"||t==="-Infinity")return e.ZERO;if(typeof n=="number"?(r=n,n=!1):n=!!n,r=r||10,r<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw Error("interior hyphen");if(i===0)return e.fromString(t.substring(1),n,r).neg();for(var o=e.fromNumber(Math.pow(r,8)),s=e.ZERO,a=0;a<t.length;a+=8){var l=Math.min(8,t.length-a),u=parseInt(t.substring(a,a+l),r);if(l<8){var d=e.fromNumber(Math.pow(r,l));s=s.mul(d).add(e.fromNumber(u))}else s=s.mul(o),s=s.add(e.fromNumber(u))}return s.unsigned=n,s},e.fromBytes=function(t,n,r){return r?e.fromBytesLE(t,n):e.fromBytesBE(t,n)},e.fromBytesLE=function(t,n){return new e(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},e.fromBytesBE=function(t,n){return new e(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)},e.isLong=function(t){return os(t)&&t.__isLong__===!0},e.fromValue=function(t,n){return typeof t=="number"?e.fromNumber(t,n):typeof t=="string"?e.fromString(t,n):e.fromBits(t.low,t.high,typeof n=="boolean"?n:t.unsigned)},e.prototype.add=function(t){e.isLong(t)||(t=e.fromValue(t));var n=this.high>>>16,r=this.high&65535,i=this.low>>>16,o=this.low&65535,s=t.high>>>16,a=t.high&65535,l=t.low>>>16,u=t.low&65535,d=0,h=0,v=0,m=0;return m+=o+u,v+=m>>>16,m&=65535,v+=i+l,h+=v>>>16,v&=65535,h+=r+a,d+=h>>>16,h&=65535,d+=n+s,d&=65535,e.fromBits(v<<16|m,d<<16|h,this.unsigned)},e.prototype.and=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low&t.low,this.high&t.high,this.unsigned)},e.prototype.compare=function(t){if(e.isLong(t)||(t=e.fromValue(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},e.prototype.comp=function(t){return this.compare(t)},e.prototype.divide=function(t){if(e.isLong(t)||(t=e.fromValue(t)),t.isZero())throw Error("division by zero");if(Xt){if(!this.unsigned&&this.high===-2147483648&&t.low===-1&&t.high===-1)return this;var n=(this.unsigned?Xt.div_u:Xt.div_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,Xt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?e.UZERO:e.ZERO;var r,i,o;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return e.UZERO;if(t.gt(this.shru(1)))return e.UONE;o=e.UZERO}else{if(this.eq(e.MIN_VALUE)){if(t.eq(e.ONE)||t.eq(e.NEG_ONE))return e.MIN_VALUE;if(t.eq(e.MIN_VALUE))return e.ONE;var s=this.shr(1);return r=s.div(t).shl(1),r.eq(e.ZERO)?t.isNegative()?e.ONE:e.NEG_ONE:(i=this.sub(t.mul(r)),o=r.add(i.div(t)),o)}else if(t.eq(e.MIN_VALUE))return this.unsigned?e.UZERO:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();o=e.ZERO}for(i=this;i.gte(t);){r=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),l=a<=48?1:Math.pow(2,a-48),u=e.fromNumber(r),d=u.mul(t);d.isNegative()||d.gt(i);)r-=l,u=e.fromNumber(r,this.unsigned),d=u.mul(t);u.isZero()&&(u=e.ONE),o=o.add(u),i=i.sub(d)}return o},e.prototype.div=function(t){return this.divide(t)},e.prototype.equals=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.unsigned!==t.unsigned&&this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low},e.prototype.eq=function(t){return this.equals(t)},e.prototype.getHighBits=function(){return this.high},e.prototype.getHighBitsUnsigned=function(){return this.high>>>0},e.prototype.getLowBits=function(){return this.low},e.prototype.getLowBitsUnsigned=function(){return this.low>>>0},e.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(e.MIN_VALUE)?64:this.neg().getNumBitsAbs();var t=this.high!==0?this.high:this.low,n;for(n=31;n>0&&(t&1<<n)===0;n--);return this.high!==0?n+33:n+1},e.prototype.greaterThan=function(t){return this.comp(t)>0},e.prototype.gt=function(t){return this.greaterThan(t)},e.prototype.greaterThanOrEqual=function(t){return this.comp(t)>=0},e.prototype.gte=function(t){return this.greaterThanOrEqual(t)},e.prototype.ge=function(t){return this.greaterThanOrEqual(t)},e.prototype.isEven=function(){return(this.low&1)===0},e.prototype.isNegative=function(){return!this.unsigned&&this.high<0},e.prototype.isOdd=function(){return(this.low&1)===1},e.prototype.isPositive=function(){return this.unsigned||this.high>=0},e.prototype.isZero=function(){return this.high===0&&this.low===0},e.prototype.lessThan=function(t){return this.comp(t)<0},e.prototype.lt=function(t){return this.lessThan(t)},e.prototype.lessThanOrEqual=function(t){return this.comp(t)<=0},e.prototype.lte=function(t){return this.lessThanOrEqual(t)},e.prototype.modulo=function(t){if(e.isLong(t)||(t=e.fromValue(t)),Xt){var n=(this.unsigned?Xt.rem_u:Xt.rem_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,Xt.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))},e.prototype.mod=function(t){return this.modulo(t)},e.prototype.rem=function(t){return this.modulo(t)},e.prototype.multiply=function(t){if(this.isZero())return e.ZERO;if(e.isLong(t)||(t=e.fromValue(t)),Xt){var n=Xt.mul(this.low,this.high,t.low,t.high);return e.fromBits(n,Xt.get_high(),this.unsigned)}if(t.isZero())return e.ZERO;if(this.eq(e.MIN_VALUE))return t.isOdd()?e.MIN_VALUE:e.ZERO;if(t.eq(e.MIN_VALUE))return this.isOdd()?e.MIN_VALUE:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(e.TWO_PWR_24)&&t.lt(e.TWO_PWR_24))return e.fromNumber(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,i=this.high&65535,o=this.low>>>16,s=this.low&65535,a=t.high>>>16,l=t.high&65535,u=t.low>>>16,d=t.low&65535,h=0,v=0,m=0,w=0;return w+=s*d,m+=w>>>16,w&=65535,m+=o*d,v+=m>>>16,m&=65535,m+=s*u,v+=m>>>16,m&=65535,v+=i*d,h+=v>>>16,v&=65535,v+=o*u,h+=v>>>16,v&=65535,v+=s*l,h+=v>>>16,v&=65535,h+=r*d+i*u+o*l+s*a,h&=65535,e.fromBits(m<<16|w,h<<16|v,this.unsigned)},e.prototype.mul=function(t){return this.multiply(t)},e.prototype.negate=function(){return!this.unsigned&&this.eq(e.MIN_VALUE)?e.MIN_VALUE:this.not().add(e.ONE)},e.prototype.neg=function(){return this.negate()},e.prototype.not=function(){return e.fromBits(~this.low,~this.high,this.unsigned)},e.prototype.notEquals=function(t){return!this.equals(t)},e.prototype.neq=function(t){return this.notEquals(t)},e.prototype.ne=function(t){return this.notEquals(t)},e.prototype.or=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low|t.low,this.high|t.high,this.unsigned)},e.prototype.shiftLeft=function(t){return e.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?e.fromBits(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):e.fromBits(0,this.low<<t-32,this.unsigned)},e.prototype.shl=function(t){return this.shiftLeft(t)},e.prototype.shiftRight=function(t){return e.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?e.fromBits(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):e.fromBits(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},e.prototype.shr=function(t){return this.shiftRight(t)},e.prototype.shiftRightUnsigned=function(t){if(e.isLong(t)&&(t=t.toInt()),t&=63,t===0)return this;var n=this.high;if(t<32){var r=this.low;return e.fromBits(r>>>t|n<<32-t,n>>>t,this.unsigned)}else return t===32?e.fromBits(n,0,this.unsigned):e.fromBits(n>>>t-32,0,this.unsigned)},e.prototype.shr_u=function(t){return this.shiftRightUnsigned(t)},e.prototype.shru=function(t){return this.shiftRightUnsigned(t)},e.prototype.subtract=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.add(t.neg())},e.prototype.sub=function(t){return this.subtract(t)},e.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},e.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*di+(this.low>>>0):this.high*di+(this.low>>>0)},e.prototype.toBigInt=function(){return BigInt(this.toString())},e.prototype.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},e.prototype.toBytesLE=function(){var t=this.high,n=this.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]},e.prototype.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]},e.prototype.toSigned=function(){return this.unsigned?e.fromBits(this.low,this.high,!1):this},e.prototype.toString=function(t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(e.MIN_VALUE)){var n=e.fromNumber(t),r=this.div(n),i=r.mul(n).sub(this);return r.toString(t)+i.toInt().toString(t)}else return"-"+this.neg().toString(t);for(var o=e.fromNumber(Math.pow(t,6),this.unsigned),s=this,a="";;){var l=s.div(o),u=s.sub(l.mul(o)).toInt()>>>0,d=u.toString(t);if(s=l,s.isZero())return d+a;for(;d.length<6;)d="0"+d;a=""+d+a}},e.prototype.toUnsigned=function(){return this.unsigned?this:e.fromBits(this.low,this.high,!0)},e.prototype.xor=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low^t.low,this.high^t.high,this.unsigned)},e.prototype.eqz=function(){return this.isZero()},e.prototype.le=function(t){return this.lessThanOrEqual(t)},e.prototype.toExtendedJSON=function(t){return t&&t.relaxed?this.toNumber():{$numberLong:this.toString()}},e.fromExtendedJSON=function(t,n){var r=e.fromString(t.$numberLong);return n&&n.relaxed?r.toNumber():r},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new Long("'.concat(this.toString(),'"').concat(this.unsigned?", true":"",")")},e.TWO_PWR_24=e.fromInt(YA),e.MAX_UNSIGNED_VALUE=e.fromBits(-1,-1,!0),e.ZERO=e.fromInt(0),e.UZERO=e.fromInt(0,!0),e.ONE=e.fromInt(1),e.UONE=e.fromInt(1,!0),e.NEG_ONE=e.fromInt(-1),e.MAX_VALUE=e.fromBits(-1,2147483647,!1),e.MIN_VALUE=e.fromBits(0,-2147483648,!1),e}();Object.defineProperty(ae.prototype,"__isLong__",{value:!0});Object.defineProperty(ae.prototype,"_bsontype",{value:"Long"});var KA=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,JA=/^(\+|-)?(Infinity|inf)$/i,XA=/^(\+|-)?NaN$/i,Yi=6111,rc=-6176,vg=6176,QA=34,ic=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),yg=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),bg=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),eL=/^([-+])?(\d+)?$/,tL=31,wg=16383,nL=30,rL=31;function Eg(e){return!isNaN(parseInt(e,10))}function iL(e){var t=ae.fromNumber(1e9),n=ae.fromNumber(0);if(!e.parts[0]&&!e.parts[1]&&!e.parts[2]&&!e.parts[3])return{quotient:e,rem:n};for(var r=0;r<=3;r++)n=n.shiftLeft(32),n=n.add(new ae(e.parts[r],0)),e.parts[r]=n.div(t).low,n=n.modulo(t);return{quotient:e,rem:n}}function oL(e,t){if(!e&&!t)return{high:ae.fromNumber(0),low:ae.fromNumber(0)};var n=e.shiftRightUnsigned(32),r=new ae(e.getLowBits(),0),i=t.shiftRightUnsigned(32),o=new ae(t.getLowBits(),0),s=n.multiply(i),a=n.multiply(o),l=r.multiply(i),u=r.multiply(o);return s=s.add(a.shiftRightUnsigned(32)),a=new ae(a.getLowBits(),0).add(l).add(u.shiftRightUnsigned(32)),s=s.add(a.shiftRightUnsigned(32)),u=a.shiftLeft(32).add(new ae(u.getLowBits(),0)),{high:s,low:u}}function sL(e,t){var n=e.high>>>0,r=t.high>>>0;if(n<r)return!0;if(n===r){var i=e.low>>>0,o=t.low>>>0;if(i<o)return!0}return!1}function oi(e,t){throw new lt('"'.concat(e,'" is not a valid Decimal128 string - ').concat(t))}var Fd=function(){function e(t){if(!(this instanceof e))return new e(t);if(typeof t=="string")this.bytes=e.fromString(t).bytes;else if(jd(t)){if(t.byteLength!==16)throw new lt("Decimal128 must take a Buffer of 16 bytes");this.bytes=t}else throw new lt("Decimal128 must take a Buffer or string")}return e.fromString=function(t){var n=!1,r=!1,i=!1,o=0,s=0,a=0,l=0,u=0,d=[0],h=0,v=0,m=0,w=0,C=0,A=0,P=new ae(0,0),$=new ae(0,0),re=0,z=0;if(t.length>=7e3)throw new lt(""+t+" not a valid Decimal128 string");var ie=t.match(KA),ke=t.match(JA),Ne=t.match(XA);if(!ie&&!ke&&!Ne||t.length===0)throw new lt(""+t+" not a valid Decimal128 string");if(ie){var F=ie[2],pe=ie[4],ce=ie[5],he=ie[6];pe&&he===void 0&&oi(t,"missing exponent power"),pe&&F===void 0&&oi(t,"missing exponent base"),pe===void 0&&(ce||he)&&oi(t,"missing e before exponent")}if((t[z]==="+"||t[z]==="-")&&(n=t[z++]==="-"),!Eg(t[z])&&t[z]!=="."){if(t[z]==="i"||t[z]==="I")return new e(Be.from(n?yg:bg));if(t[z]==="N")return new e(Be.from(ic))}for(;Eg(t[z])||t[z]===".";){if(t[z]==="."){r&&oi(t,"contains multiple periods"),r=!0,z=z+1;continue}h<34&&(t[z]!=="0"||i)&&(i||(u=s),i=!0,d[v++]=parseInt(t[z],10),h=h+1),i&&(a=a+1),r&&(l=l+1),s=s+1,z=z+1}if(r&&!s)throw new lt(""+t+" not a valid Decimal128 string");if(t[z]==="e"||t[z]==="E"){var Ce=t.substr(++z).match(eL);if(!Ce||!Ce[2])return new e(Be.from(ic));C=parseInt(Ce[0],10),z=z+Ce[0].length}if(t[z])return new e(Be.from(ic));if(m=0,!h)m=0,w=0,d[0]=0,a=1,h=1,o=0;else if(w=h-1,o=a,o!==1)for(;d[u+o-1]===0;)o=o-1;for(C<=l&&l-C>16384?C=rc:C=C-l;C>Yi;){if(w=w+1,w-m>QA){var ze=d.join("");if(ze.match(/^0+$/)){C=Yi;break}oi(t,"overflow")}C=C-1}for(;C<rc||h<a;){if(w===0&&o<h){C=rc,o=0;break}if(h<a?a=a-1:w=w-1,C<Yi)C=C+1;else{var ze=d.join("");if(ze.match(/^0+$/)){C=Yi;break}oi(t,"overflow")}}if(w-m+1<o){var _=s;r&&(u=u+1,_=_+1),n&&(u=u+1,_=_+1);var Je=parseInt(t[u+w+1],10),st=0;if(Je>=5&&(st=1,Je===5)){for(st=d[w]%2===1?1:0,A=u+w+2;A<_;A++)if(parseInt(t[A],10)){st=1;break}}if(st){for(var Pe=w;Pe>=0;Pe--)if(++d[Pe]>9&&(d[Pe]=0,Pe===0))if(C<Yi)C=C+1,d[Pe]=1;else return new e(Be.from(n?yg:bg))}}if(P=ae.fromNumber(0),$=ae.fromNumber(0),o===0)P=ae.fromNumber(0),$=ae.fromNumber(0);else if(w-m<17){var Pe=m;for($=ae.fromNumber(d[Pe++]),P=new ae(0,0);Pe<=w;Pe++)$=$.multiply(ae.fromNumber(10)),$=$.add(ae.fromNumber(d[Pe]))}else{var Pe=m;for(P=ae.fromNumber(d[Pe++]);Pe<=w-17;Pe++)P=P.multiply(ae.fromNumber(10)),P=P.add(ae.fromNumber(d[Pe]));for($=ae.fromNumber(d[Pe++]);Pe<=w;Pe++)$=$.multiply(ae.fromNumber(10)),$=$.add(ae.fromNumber(d[Pe]))}var R=oL(P,ae.fromString("100000000000000000"));R.low=R.low.add($),sL(R.low,$)&&(R.high=R.high.add(ae.fromNumber(1))),re=C+vg;var D={low:ae.fromNumber(0),high:ae.fromNumber(0)};R.high.shiftRightUnsigned(49).and(ae.fromNumber(1)).equals(ae.fromNumber(1))?(D.high=D.high.or(ae.fromNumber(3).shiftLeft(61)),D.high=D.high.or(ae.fromNumber(re).and(ae.fromNumber(16383).shiftLeft(47))),D.high=D.high.or(R.high.and(ae.fromNumber(0x7fffffffffff)))):(D.high=D.high.or(ae.fromNumber(re&16383).shiftLeft(49)),D.high=D.high.or(R.high.and(ae.fromNumber(562949953421311)))),D.low=R.low,n&&(D.high=D.high.or(ae.fromString("9223372036854775808")));var b=Be.alloc(16);return z=0,b[z++]=D.low.low&255,b[z++]=D.low.low>>8&255,b[z++]=D.low.low>>16&255,b[z++]=D.low.low>>24&255,b[z++]=D.low.high&255,b[z++]=D.low.high>>8&255,b[z++]=D.low.high>>16&255,b[z++]=D.low.high>>24&255,b[z++]=D.high.low&255,b[z++]=D.high.low>>8&255,b[z++]=D.high.low>>16&255,b[z++]=D.high.low>>24&255,b[z++]=D.high.high&255,b[z++]=D.high.high>>8&255,b[z++]=D.high.high>>16&255,b[z++]=D.high.high>>24&255,new e(b)},e.prototype.toString=function(){for(var t,n=0,r=new Array(36),i=0;i<r.length;i++)r[i]=0;var o=0,s=!1,a,l={parts:[0,0,0,0]},u,d,h=[];o=0;var v=this.bytes,m=v[o++]|v[o++]<<8|v[o++]<<16|v[o++]<<24,w=v[o++]|v[o++]<<8|v[o++]<<16|v[o++]<<24,C=v[o++]|v[o++]<<8|v[o++]<<16|v[o++]<<24,A=v[o++]|v[o++]<<8|v[o++]<<16|v[o++]<<24;o=0;var P={low:new ae(m,w),high:new ae(C,A)};P.high.lessThan(ae.ZERO)&&h.push("-");var $=A>>26&tL;if($>>3===3){if($===nL)return h.join("")+"Infinity";if($===rL)return"NaN";t=A>>15&wg,a=8+(A>>14&1)}else a=A>>14&7,t=A>>17&wg;var re=t-vg;if(l.parts[0]=(A&16383)+((a&15)<<14),l.parts[1]=C,l.parts[2]=w,l.parts[3]=m,l.parts[0]===0&&l.parts[1]===0&&l.parts[2]===0&&l.parts[3]===0)s=!0;else for(d=3;d>=0;d--){var z=0,ie=iL(l);if(l=ie.quotient,z=ie.rem.low,!!z)for(u=8;u>=0;u--)r[d*9+u]=z%10,z=Math.floor(z/10)}if(s)n=1,r[o]=0;else for(n=36;!r[o];)n=n-1,o=o+1;var ke=n-1+re;if(ke>=34||ke<=-7||re>0){if(n>34)return h.push("".concat(0)),re>0?h.push("E+".concat(re)):re<0&&h.push("E".concat(re)),h.join("");h.push("".concat(r[o++])),n=n-1,n&&h.push(".");for(var i=0;i<n;i++)h.push("".concat(r[o++]));h.push("E"),ke>0?h.push("+".concat(ke)):h.push("".concat(ke))}else if(re>=0)for(var i=0;i<n;i++)h.push("".concat(r[o++]));else{var Ne=n+re;if(Ne>0)for(var i=0;i<Ne;i++)h.push("".concat(r[o++]));else h.push("0");for(h.push(".");Ne++<0;)h.push("0");for(var i=0;i<n-Math.max(Ne-1,0);i++)h.push("".concat(r[o++]))}return h.join("")},e.prototype.toJSON=function(){return{$numberDecimal:this.toString()}},e.prototype.toExtendedJSON=function(){return{$numberDecimal:this.toString()}},e.fromExtendedJSON=function(t){return e.fromString(t.$numberDecimal)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new Decimal128("'.concat(this.toString(),'")')},e}();Object.defineProperty(Fd.prototype,"_bsontype",{value:"Decimal128"});var pl=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=+t}return e.prototype.valueOf=function(){return this.value},e.prototype.toJSON=function(){return this.value},e.prototype.toString=function(t){return this.value.toString(t)},e.prototype.toExtendedJSON=function(t){return t&&(t.legacy||t.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-".concat(this.value.toFixed(1))}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}},e.fromExtendedJSON=function(t,n){var r=parseFloat(t.$numberDouble);return n&&n.relaxed?r:new e(r)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.toExtendedJSON();return"new Double(".concat(t.$numberDouble,")")},e}();Object.defineProperty(pl.prototype,"_bsontype",{value:"Double"});var gl=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=+t|0}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(t){return this.value.toString(t)},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(t){return t&&(t.relaxed||t.legacy)?this.value:{$numberInt:this.value.toString()}},e.fromExtendedJSON=function(t,n){return n&&n.relaxed?parseInt(t.$numberInt,10):new e(t.$numberInt)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new Int32(".concat(this.valueOf(),")")},e}();Object.defineProperty(gl.prototype,"_bsontype",{value:"Int32"});var Bd=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$maxKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MaxKey()"},e}();Object.defineProperty(Bd.prototype,"_bsontype",{value:"MaxKey"});var Ud=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$minKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MinKey()"},e}();Object.defineProperty(Ud.prototype,"_bsontype",{value:"MinKey"});var aL=new RegExp("^[0-9a-fA-F]{24}$"),Er=null,kn=Symbol("id"),$t=function(){function e(t){if(!(this instanceof e))return new e(t);var n;if(typeof t=="object"&&t&&"id"in t){if(typeof t.id!="string"&&!ArrayBuffer.isView(t.id))throw new lt("Argument passed in must have an id that is of type string or Buffer");"toHexString"in t&&typeof t.toHexString=="function"?n=Be.from(t.toHexString(),"hex"):n=t.id}else n=t;if(n==null||typeof n=="number")this[kn]=e.generate(typeof n=="number"?n:void 0);else if(ArrayBuffer.isView(n)&&n.byteLength===12)this[kn]=n instanceof Be?n:wa(n);else if(typeof n=="string")if(n.length===12){var r=Be.from(n);if(r.byteLength===12)this[kn]=r;else throw new lt("Argument passed in must be a string of 12 bytes")}else if(n.length===24&&aL.test(n))this[kn]=Be.from(n,"hex");else throw new lt("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new lt("Argument passed in does not match the accepted types");e.cacheHexString&&(this.__id=this.id.toString("hex"))}return Object.defineProperty(e.prototype,"id",{get:function(){return this[kn]},set:function(t){this[kn]=t,e.cacheHexString&&(this.__id=t.toString("hex"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"generationTime",{get:function(){return this.id.readInt32BE(0)},set:function(t){this.id.writeUInt32BE(t,0)},enumerable:!1,configurable:!0}),e.prototype.toHexString=function(){if(e.cacheHexString&&this.__id)return this.__id;var t=this.id.toString("hex");return e.cacheHexString&&!this.__id&&(this.__id=t),t},e.getInc=function(){return e.index=(e.index+1)%16777215},e.generate=function(t){typeof t!="number"&&(t=Math.floor(Date.now()/1e3));var n=e.getInc(),r=Be.alloc(12);return r.writeUInt32BE(t,0),Er===null&&(Er=eb(5)),r[4]=Er[0],r[5]=Er[1],r[6]=Er[2],r[7]=Er[3],r[8]=Er[4],r[11]=n&255,r[10]=n>>8&255,r[9]=n>>16&255,r},e.prototype.toString=function(t){return t?this.id.toString(t):this.toHexString()},e.prototype.toJSON=function(){return this.toHexString()},e.prototype.equals=function(t){if(t==null)return!1;if(t instanceof e)return this[kn][11]===t[kn][11]&&this[kn].equals(t[kn]);if(typeof t=="string"&&e.isValid(t)&&t.length===12&&jd(this.id))return t===Be.prototype.toString.call(this.id,"latin1");if(typeof t=="string"&&e.isValid(t)&&t.length===24)return t.toLowerCase()===this.toHexString();if(typeof t=="string"&&e.isValid(t)&&t.length===12)return Be.from(t).equals(this.id);if(typeof t=="object"&&"toHexString"in t&&typeof t.toHexString=="function"){var n=t.toHexString(),r=this.toHexString().toLowerCase();return typeof n=="string"&&n.toLowerCase()===r}return!1},e.prototype.getTimestamp=function(){var t=new Date,n=this.id.readUInt32BE(0);return t.setTime(Math.floor(n)*1e3),t},e.createPk=function(){return new e},e.createFromTime=function(t){var n=Be.from([0,0,0,0,0,0,0,0,0,0,0,0]);return n.writeUInt32BE(t,0),new e(n)},e.createFromHexString=function(t){if(typeof t>"u"||t!=null&&t.length!==24)throw new lt("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");return new e(Be.from(t,"hex"))},e.isValid=function(t){if(t==null)return!1;try{return new e(t),!0}catch{return!1}},e.prototype.toExtendedJSON=function(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}},e.fromExtendedJSON=function(t){return new e(t.$oid)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new ObjectId("'.concat(this.toHexString(),'")')},e.index=Math.floor(Math.random()*16777215),e}();Object.defineProperty($t.prototype,"generate",{value:dl(function(e){return $t.generate(e)},"Please use the static `ObjectId.generate(time)` instead")});Object.defineProperty($t.prototype,"getInc",{value:dl(function(){return $t.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty($t.prototype,"get_inc",{value:dl(function(){return $t.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty($t,"get_inc",{value:dl(function(){return $t.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty($t.prototype,"_bsontype",{value:"ObjectID"});function lL(e){return e.split("").sort().join("")}var No=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this.pattern=t,this.options=lL(n??""),this.pattern.indexOf("\0")!==-1)throw new Pr("BSON Regex patterns cannot contain null bytes, found: ".concat(JSON.stringify(this.pattern)));if(this.options.indexOf("\0")!==-1)throw new Pr("BSON Regex options cannot contain null bytes, found: ".concat(JSON.stringify(this.options)));for(var r=0;r<this.options.length;r++)if(!(this.options[r]==="i"||this.options[r]==="m"||this.options[r]==="x"||this.options[r]==="l"||this.options[r]==="s"||this.options[r]==="u"))throw new Pr("The regular expression option [".concat(this.options[r],"] is not supported"))}return e.parseOptions=function(t){return t?t.split("").sort().join(""):""},e.prototype.toExtendedJSON=function(t){return t=t||{},t.legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}},e.fromExtendedJSON=function(t){if("$regex"in t)if(typeof t.$regex!="string"){if(t.$regex._bsontype==="BSONRegExp")return t}else return new e(t.$regex,e.parseOptions(t.$options));if("$regularExpression"in t)return new e(t.$regularExpression.pattern,e.parseOptions(t.$regularExpression.options));throw new lt("Unexpected BSONRegExp EJSON object form: ".concat(JSON.stringify(t)))},e}();Object.defineProperty(No.prototype,"_bsontype",{value:"BSONRegExp"});var Hd=function(){function e(t){if(!(this instanceof e))return new e(t);this.value=t}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(){return this.value},e.prototype.inspect=function(){return'new BSONSymbol("'.concat(this.value,'")')},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(){return{$symbol:this.value}},e.fromExtendedJSON=function(t){return new e(t.$symbol)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e}();Object.defineProperty(Hd.prototype,"_bsontype",{value:"Symbol"});var cL=ae,ib=function(e){hl(t,e);function t(n,r){var i=this;return i instanceof t?(ae.isLong(n)?i=e.call(this,n.low,n.high,!0)||this:os(n)&&typeof n.t<"u"&&typeof n.i<"u"?i=e.call(this,n.i,n.t,!0)||this:i=e.call(this,n,r,!0)||this,Object.defineProperty(i,"_bsontype",{value:"Timestamp",writable:!1,configurable:!1,enumerable:!1}),i):new t(n,r)}return t.prototype.toJSON=function(){return{$timestamp:this.toString()}},t.fromInt=function(n){return new t(ae.fromInt(n,!0))},t.fromNumber=function(n){return new t(ae.fromNumber(n,!0))},t.fromBits=function(n,r){return new t(n,r)},t.fromString=function(n,r){return new t(ae.fromString(n,!0,r))},t.prototype.toExtendedJSON=function(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}},t.fromExtendedJSON=function(n){return new t(n.$timestamp)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new Timestamp({ t: ".concat(this.getHighBits(),", i: ").concat(this.getLowBits()," })")},t.MAX_VALUE=ae.MAX_UNSIGNED_VALUE,t}(cL);function uL(e){return os(e)&&Reflect.has(e,"_bsontype")&&typeof e._bsontype=="string"}var ob=2147483647,sb=-2147483648,ab=9223372036854776e3,lb=-9223372036854776e3,hL={$oid:$t,$binary:Ar,$uuid:Ar,$symbol:Hd,$numberInt:gl,$numberDecimal:Fd,$numberDouble:pl,$numberLong:ae,$minKey:Ud,$maxKey:Bd,$regex:No,$regularExpression:No,$timestamp:ib};function cb(e,t){if(t===void 0&&(t={}),typeof e=="number"){if(t.relaxed||t.legacy)return e;if(Math.floor(e)===e){if(e>=sb&&e<=ob)return new gl(e);if(e>=lb&&e<=ab)return ae.fromNumber(e)}return new pl(e)}if(e==null||typeof e!="object")return e;if(e.$undefined)return null;for(var n=Object.keys(e).filter(function(h){return h.startsWith("$")&&e[h]!=null}),r=0;r<n.length;r++){var i=hL[n[r]];if(i)return i.fromExtendedJSON(e,t)}if(e.$date!=null){var o=e.$date,s=new Date;return t.legacy?typeof o=="number"?s.setTime(o):typeof o=="string"&&s.setTime(Date.parse(o)):typeof o=="string"?s.setTime(Date.parse(o)):ae.isLong(o)?s.setTime(o.toNumber()):typeof o=="number"&&t.relaxed&&s.setTime(o),s}if(e.$code!=null){var a=Object.assign({},e);return e.$scope&&(a.$scope=cb(e.$scope)),fl.fromExtendedJSON(e)}if(ZA(e)||e.$dbPointer){var l=e.$ref?e:e.$dbPointer;if(l instanceof ko)return l;var u=Object.keys(l).filter(function(h){return h.startsWith("$")}),d=!0;if(u.forEach(function(h){["$ref","$id","$db"].indexOf(h)===-1&&(d=!1)}),d)return ko.fromExtendedJSON(l)}return e}function dL(e,t){return e.map(function(n,r){t.seenObjects.push({propertyName:"index ".concat(r),obj:null});try{return ur(n,t)}finally{t.seenObjects.pop()}})}function xg(e){var t=e.toISOString();return e.getUTCMilliseconds()!==0?t:t.slice(0,-5)+"Z"}function ur(e,t){if((typeof e=="object"||typeof e=="function")&&e!==null){var n=t.seenObjects.findIndex(function(P){return P.obj===e});if(n!==-1){var r=t.seenObjects.map(function(P){return P.propertyName}),i=r.slice(0,n).map(function(P){return"".concat(P," -> ")}).join(""),o=r[n],s=" -> "+r.slice(n+1,r.length-1).map(function(P){return"".concat(P," -> ")}).join(""),a=r[r.length-1],l=" ".repeat(i.length+o.length/2),u="-".repeat(s.length+(o.length+a.length)/2-1);throw new lt(`Converting circular structure to EJSON:
|
|
35
|
+
`)};Ft.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Cd(n)?n(e[1]):n[e[1]];if(o!=null){var s=e[6],a=e[5],l=e[4],u=o;a==0&&l&&(u=this.indentPartial(o,l,s));var d=this.parse(u,i);return this.renderTokens(d,t,n,u,r)}}};Ft.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(n!=null)return n};Ft.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||an.escape,i=t.lookup(e[1]);if(i!=null)return typeof i=="number"&&r===an.escape?String(i):r(i)};Ft.prototype.rawValue=function(e){return e[1]};Ft.prototype.getConfigTags=function(e){return Ui(e)?e:e&&typeof e=="object"?e.tags:void 0};Ft.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Ui(e))return e.escape};var an={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Do.templateCache=e},get templateCache(){return Do.templateCache}},Do=new Ft;an.clearCache=function(){return Do.clearCache()};an.parse=function(e,t){return Do.parse(e,t)};an.render=function(e,t,n,r){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+IN(e)+'" was given as the first argument for mustache#render(template, view, partials)');return Do.render(e,t,n,r)};an.escape=NN;an.Scanner=ts;an.Context=Oi;an.Writer=Ft;var T0=an;T0.escape=SN.escapeHtml;var UN=class Cu{transform(t,n){return t?T0.render(t,A({},n)):null}static \u0275fac=function(t){return new(t||Cu)};static \u0275pipe=nd({name:"cooeeDynamicVariables",type:Cu,pure:!0})},cl=class Iu{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(t){return new(t||Iu)(Et(Gy,16))};static \u0275pipe=nd({name:"safeHtml",type:Iu,pure:!0})},Id={};(function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=function(){if(!t.OffscreenCanvas)return!1;var y=new OffscreenCanvas(1,1),v=y.getContext("2d");v.fillRect(0,0,1,1);var M=y.transferToImageBitmap();try{v.createPattern(M,"no-repeat")}catch{return!1}return!0}();function l(){}function u(y){var v=n.exports.Promise,M=v!==void 0?v:t.Promise;return typeof M=="function"?new M(y):(y(l,l),null)}var d=function(y,v){return{transform:function(M){if(y)return M;if(v.has(M))return v.get(M);var B=new OffscreenCanvas(M.width,M.height),W=B.getContext("2d");return W.drawImage(M,0,0),v.set(M,B),B},clear:function(){v.clear()}}}(a,new Map),h=function(){var y=Math.floor(16.666666666666668),v,M,B={},W=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(v=function(te){var ee=Math.random();return B[ee]=requestAnimationFrame(function K(le){W===le||W+y-1<le?(W=le,delete B[ee],te()):B[ee]=requestAnimationFrame(K)}),ee},M=function(te){B[te]&&cancelAnimationFrame(B[te])}):(v=function(te){return setTimeout(te,y)},M=function(te){return clearTimeout(te)}),{frame:v,cancel:M}}(),_=function(){var y,v,M={};function B(W){function te(ee,K){W.postMessage({options:ee||{},callback:K})}W.init=function(ee){var K=ee.transferControlToOffscreen();W.postMessage({canvas:K},[K])},W.fire=function(ee,K,le){if(v)return te(ee,null),v;var pe=Math.random().toString(36).slice(2);return v=u(function(xe){function J(oe){oe.data.callback===pe&&(delete M[pe],W.removeEventListener("message",J),v=null,d.clear(),le(),xe())}W.addEventListener("message",J),te(ee,pe),M[pe]=J.bind(null,{data:{callback:pe}})}),v},W.reset=function(){W.postMessage({reset:!0});for(var ee in M)M[ee](),delete M[ee]}}return function(){if(y)return y;if(!r&&o){var W=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
|
|
36
|
+
`);try{y=new Worker(URL.createObjectURL(new Blob([W])))}catch(te){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",te),null}B(y)}return y}}(),m={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(y,v){return v?v(y):y}function S(y){return y!=null}function N(y,v,M){return b(y&&S(y[v])?y[v]:m[v],M)}function P(y){return y<0?0:Math.floor(y)}function z(y,v){return Math.floor(Math.random()*(v-y))+y}function re(y){return parseInt(y,16)}function q(y){return y.map(ie)}function ie(y){var v=String(y).replace(/[^0-9a-f]/gi,"");return v.length<6&&(v=v[0]+v[0]+v[1]+v[1]+v[2]+v[2]),{r:re(v.substring(0,2)),g:re(v.substring(2,4)),b:re(v.substring(4,6))}}function Ae(y){var v=N(y,"origin",Object);return v.x=N(v,"x",Number),v.y=N(v,"y",Number),v}function Me(y){y.width=document.documentElement.clientWidth,y.height=document.documentElement.clientHeight}function F(y){var v=y.getBoundingClientRect();y.width=v.width,y.height=v.height}function _e(y){var v=document.createElement("canvas");return v.style.position="fixed",v.style.top="0px",v.style.left="0px",v.style.pointerEvents="none",v.style.zIndex=y,v}function ue(y,v,M,B,W,te,ee,K,le){y.save(),y.translate(v,M),y.rotate(te),y.scale(B,W),y.arc(0,0,1,ee,K,le),y.restore()}function he(y){var v=y.angle*(Math.PI/180),M=y.spread*(Math.PI/180);return{x:y.x,y:y.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:y.startVelocity*.5+Math.random()*y.startVelocity,angle2D:-v+(.5*M-Math.random()*M),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:y.color,shape:y.shape,tick:0,totalTicks:y.ticks,decay:y.decay,drift:y.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:y.gravity*3,ovalScalar:.6,scalar:y.scalar,flat:y.flat}}function Oe(y,v){v.x+=Math.cos(v.angle2D)*v.velocity+v.drift,v.y+=Math.sin(v.angle2D)*v.velocity+v.gravity,v.velocity*=v.decay,v.flat?(v.wobble=0,v.wobbleX=v.x+10*v.scalar,v.wobbleY=v.y+10*v.scalar,v.tiltSin=0,v.tiltCos=0,v.random=1):(v.wobble+=v.wobbleSpeed,v.wobbleX=v.x+10*v.scalar*Math.cos(v.wobble),v.wobbleY=v.y+10*v.scalar*Math.sin(v.wobble),v.tiltAngle+=.1,v.tiltSin=Math.sin(v.tiltAngle),v.tiltCos=Math.cos(v.tiltAngle),v.random=Math.random()+2);var M=v.tick++/v.totalTicks,B=v.x+v.random*v.tiltCos,W=v.y+v.random*v.tiltSin,te=v.wobbleX+v.random*v.tiltCos,ee=v.wobbleY+v.random*v.tiltSin;if(y.fillStyle="rgba("+v.color.r+", "+v.color.g+", "+v.color.b+", "+(1-M)+")",y.beginPath(),s&&v.shape.type==="path"&&typeof v.shape.path=="string"&&Array.isArray(v.shape.matrix))y.fill(ke(v.shape.path,v.shape.matrix,v.x,v.y,Math.abs(te-B)*.1,Math.abs(ee-W)*.1,Math.PI/10*v.wobble));else if(v.shape.type==="bitmap"){var K=Math.PI/10*v.wobble,le=Math.abs(te-B)*.1,pe=Math.abs(ee-W)*.1,xe=v.shape.bitmap.width*v.scalar,J=v.shape.bitmap.height*v.scalar,oe=new DOMMatrix([Math.cos(K)*le,Math.sin(K)*le,-Math.sin(K)*pe,Math.cos(K)*pe,v.x,v.y]);oe.multiplySelf(new DOMMatrix(v.shape.matrix));var me=y.createPattern(d.transform(v.shape.bitmap),"no-repeat");me.setTransform(oe),y.globalAlpha=1-M,y.fillStyle=me,y.fillRect(v.x-xe/2,v.y-J/2,xe,J),y.globalAlpha=1}else if(v.shape==="circle")y.ellipse?y.ellipse(v.x,v.y,Math.abs(te-B)*v.ovalScalar,Math.abs(ee-W)*v.ovalScalar,Math.PI/10*v.wobble,0,2*Math.PI):ue(y,v.x,v.y,Math.abs(te-B)*v.ovalScalar,Math.abs(ee-W)*v.ovalScalar,Math.PI/10*v.wobble,0,2*Math.PI);else if(v.shape==="star")for(var ce=Math.PI/2*3,c=4*v.scalar,f=8*v.scalar,p=v.x,E=v.y,k=5,V=Math.PI/k;k--;)p=v.x+Math.cos(ce)*f,E=v.y+Math.sin(ce)*f,y.lineTo(p,E),ce+=V,p=v.x+Math.cos(ce)*c,E=v.y+Math.sin(ce)*c,y.lineTo(p,E),ce+=V;else y.moveTo(Math.floor(v.x),Math.floor(v.y)),y.lineTo(Math.floor(v.wobbleX),Math.floor(W)),y.lineTo(Math.floor(te),Math.floor(ee)),y.lineTo(Math.floor(B),Math.floor(v.wobbleY));return y.closePath(),y.fill(),v.tick<v.totalTicks}function Ke(y,v,M,B,W){var te=v.slice(),ee=y.getContext("2d"),K,le,pe=u(function(xe){function J(){K=le=null,ee.clearRect(0,0,B.width,B.height),d.clear(),W(),xe()}function oe(){r&&!(B.width===i.width&&B.height===i.height)&&(B.width=y.width=i.width,B.height=y.height=i.height),!B.width&&!B.height&&(M(y),B.width=y.width,B.height=y.height),ee.clearRect(0,0,B.width,B.height),te=te.filter(function(me){return Oe(ee,me)}),te.length?K=h.frame(oe):J()}K=h.frame(oe),le=J});return{addFettis:function(xe){return te=te.concat(xe),pe},canvas:y,promise:pe,reset:function(){K&&h.cancel(K),le&&le()}}}function He(y,v){var M=!y,B=!!N(v||{},"resize"),W=!1,te=N(v,"disableForReducedMotion",Boolean),ee=o&&!!N(v||{},"useWorker"),K=ee?_():null,le=M?Me:F,pe=y&&K?!!y.__confetti_initialized:!1,xe=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,J;function oe(ce,c,f){for(var p=N(ce,"particleCount",P),E=N(ce,"angle",Number),k=N(ce,"spread",Number),V=N(ce,"startVelocity",Number),X=N(ce,"decay",Number),ne=N(ce,"gravity",Number),Le=N(ce,"drift",Number),Se=N(ce,"colors",q),Ve=N(ce,"ticks",Number),Re=N(ce,"shapes"),xt=N(ce,"scalar"),Fn=!!N(ce,"flat"),dt=Ae(ce),un=p,On=[],ir=y.width*dt.x,zt=y.height*dt.y;un--;)On.push(he({x:ir,y:zt,angle:E,spread:k,startVelocity:V,color:Se[un%Se.length],shape:Re[z(0,Re.length)],ticks:Ve,decay:X,gravity:ne,drift:Le,scalar:xt,flat:Fn}));return J?J.addFettis(On):(J=Ke(y,On,le,c,f),J.promise)}function me(ce){var c=te||N(ce,"disableForReducedMotion",Boolean),f=N(ce,"zIndex",Number);if(c&&xe)return u(function(V){V()});M&&J?y=J.canvas:M&&!y&&(y=_e(f),document.body.appendChild(y)),B&&!pe&&le(y);var p={width:y.width,height:y.height};K&&!pe&&K.init(y),pe=!0,K&&(y.__confetti_initialized=!0);function E(){if(K){var V={getBoundingClientRect:function(){if(!M)return y.getBoundingClientRect()}};le(V),K.postMessage({resize:{width:V.width,height:V.height}});return}p.width=p.height=null}function k(){J=null,B&&(W=!1,t.removeEventListener("resize",E)),M&&y&&(document.body.contains(y)&&document.body.removeChild(y),y=null,pe=!1)}return B&&!W&&(W=!0,t.addEventListener("resize",E,!1)),K?K.fire(ce,p,k):oe(ce,p,k)}return me.reset=function(){K&&K.reset(),J&&J.reset()},me}var Je;function st(){return Je||(Je=He(null,{useWorker:!0,resize:!0})),Je}function ke(y,v,M,B,W,te,ee){var K=new Path2D(y),le=new Path2D;le.addPath(K,new DOMMatrix(v));var pe=new Path2D;return pe.addPath(le,new DOMMatrix([Math.cos(ee)*W,Math.sin(ee)*W,-Math.sin(ee)*te,Math.cos(ee)*te,M,B])),pe}function O(y){if(!s)throw new Error("path confetti are not supported in this browser");var v,M;typeof y=="string"?v=y:(v=y.path,M=y.matrix);var B=new Path2D(v),W=document.createElement("canvas"),te=W.getContext("2d");if(!M){for(var ee=1e3,K=ee,le=ee,pe=0,xe=0,J,oe,me=0;me<ee;me+=2)for(var ce=0;ce<ee;ce+=2)te.isPointInPath(B,me,ce,"nonzero")&&(K=Math.min(K,me),le=Math.min(le,ce),pe=Math.max(pe,me),xe=Math.max(xe,ce));J=pe-K,oe=xe-le;var c=10,f=Math.min(c/J,c/oe);M=[f,0,0,f,-Math.round(J/2+K)*f,-Math.round(oe/2+le)*f]}return{type:"path",path:v,matrix:M}}function D(y){var v,M=1,B="#000000",W='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof y=="string"?v=y:(v=y.text,M="scalar"in y?y.scalar:M,W="fontFamily"in y?y.fontFamily:W,B="color"in y?y.color:B);var te=10*M,ee=""+te+"px "+W,K=new OffscreenCanvas(te,te),le=K.getContext("2d");le.font=ee;var pe=le.measureText(v),xe=Math.ceil(pe.actualBoundingBoxRight+pe.actualBoundingBoxLeft),J=Math.ceil(pe.actualBoundingBoxAscent+pe.actualBoundingBoxDescent),oe=2,me=pe.actualBoundingBoxLeft+oe,ce=pe.actualBoundingBoxAscent+oe;xe+=oe+oe,J+=oe+oe,K=new OffscreenCanvas(xe,J),le=K.getContext("2d"),le.font=ee,le.fillStyle=B,le.fillText(v,me,ce);var c=1/M;return{type:"bitmap",bitmap:K.transferToImageBitmap(),matrix:[c,0,0,c,-xe*c/2,-J*c/2]}}n.exports=function(){return st().apply(this,arguments)},n.exports.reset=function(){st().reset()},n.exports.create=He,n.exports.shapeFromPath=O,n.exports.shapeFromText=D})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Id,!1);var HN=Id.exports,W5=Id.exports.create,$N=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(e=100){let t=[],n=Date.now()+2e3,r=()=>{t.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&e>0&&(requestAnimationFrame(r),e--)};r(),await Promise.all(t)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(e){Object.assign(e,this.DEFAULTS,e),e.particleCount=e.particleCount??this.DEFAULTS.colors.length,await HN(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},zN=(e,t)=>t.minValue;function qN(e,t){if(e&1&&(Ue(0,"div",7),sn(1,"safeHtml")),e&2){let n=Q().$implicit;Pe("innerHTML",Sn(1,1,n.minValue+" Products"),ti)}}function WN(e,t){if(e&1&&(Ue(0,"div",7),sn(1,"cooeeCurrency"),sn(2,"safeHtml")),e&2){let n=Q().$implicit;Pe("innerHTML",Sn(2,3,Sn(1,1,n.minValue)),ti)}}function ZN(e,t){if(e&1&&(G(0,"li",6)(1,"div"),nt(2,qN,2,3,"div",7)(3,WN,3,5,"div",7),Ue(4,"img",8),G(5,"div",9),Ye(6),Y()()()),e&2){let n=t.$implicit,r=Q(2);el("left",n.calculatedAlignment+"%"),Z(2),tt((r.progressBarConfig==null?null:r.progressBarConfig.rewardBasis)===r.RewardBasis.ITEM_COUNT?2:3),Z(2),Pe("src",r.getIconURL(n),cn),Z(2),Fi(n.label)}}function GN(e,t){if(e&1&&(jn(0)(1),Ue(2,"div",0),sn(3,"cooeeDynamicVariables"),sn(4,"safeHtml"),G(5,"div",1)(6,"ul",2)(7,"div",3),Ue(8,"div",4),Y(),Lt(9,ZN,7,5,"li",5,zN),Y()()),e&2){let n=Q(),r=n.calculatedState(),i=r.nextMilestone?r.nextMilestone.reachingText:r.lastMilestone.reachedText;Z(2),Pe("innerHTML",Sn(4,6,xD(3,3,i,n.localDynamicVariables())),ti),Z(6),el("width",r.cartValuePercentage+"%"),Z(),Vt(r.milestones)}}var YN=class Tu extends nl{cart;localDynamicVariables=Jn({});calculatedState=Jn({});progressBarConfig;RewardBasis=Xy;constructor(){super()}engagementTriggerReceived(t){this.progressBarConfig=t.progressBarConfig}ngOnInit(){super.ngOnInit(),this.calculateMilestonesSilently()}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===Ms.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===Ms.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===Ms.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Wn.error(t))}async calculateMilestones(){let t=this.engagementTrigger,n=this.progressBarConfig;if(!n?.milestones?.length){Wn.warn("Milestones not available in progress bar config",t);return}let r=await this.cart.getNormalisedCart(),i=n.milestones.at(-1),o=n?.reachedAmountOrCount??r.originalAmount,s=n.totalProgress??0;Wn.debug("Cart value:",o,`, percentage: ${s}%`),this.celebrate(t,o);let a={milestonesReady:!0,cartValuePercentage:s,milestones:n.milestones},l=n.milestones.find(u=>!u.reached);if(l){let u=Sd(l.minValue-o);if(n.rewardBasis==="ITEM_COUNT"){let d=l.minValue-o;u=`${d} ${d===1?"product":"products"}`}this.localDynamicVariables.set({amount_left:u}),a.nextMilestone=l,this.calculatedState.set(a);return}a.lastMilestone=i,this.calculatedState.set(a)}celebrate(t,n){let r=[...t.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${t.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),this.progressBarConfig?.noConfetti||$N.realistic())}static \u0275fac=function(t){return new(t||Tu)};static \u0275cmp=Pt({type:Tu,selectors:[["cooee-progressbar"]],inputs:{cart:"cart"},features:[br],decls:1,vars:1,consts:[[1,"heading",3,"innerHTML"],[1,"milestone-container"],[1,"milestone-list"],[1,"untracked-path"],[1,"tracked-path"],[1,"milestone-list-item",3,"left"],[1,"milestone-list-item"],[1,"milestone-value",3,"innerHTML"],["width","20","height","20","alt","milestone icon",1,"milestone-icon",3,"src"],[1,"milestone-label"]],template:function(t,n){t&1&&nt(0,GN,11,8),t&2&&tt(n.calculatedState().milestonesReady?0:-1)},dependencies:[UN,cl,ll],styles:[`:host{display:block;padding:10px;background:linear-gradient(0deg,rgba(var(--lc-color-primary),.1) 0%,transparent 100%)}.milestone-container{width:95%;margin:8px 0}.heading{font-weight:500;text-align:center;font-size:12px}.milestone-list{display:flex;align-items:center;position:relative;font-size:10px;font-weight:500}.untracked-path{width:100%;background-color:#e5e7eb;height:4px;position:absolute}.tracked-path{background-color:rgb(var(--lc-color-primary));height:100%;display:block;transition:width .5s ease-in-out}.milestone-list{padding:0;margin:0}.milestone-list-item{position:relative;display:flex;flex-direction:column;align-items:center;height:75px}.milestone-list-item>div{display:flex;flex-direction:column;align-items:center;justify-content:space-between;position:absolute;height:100%;width:100px}.milestone-icon{padding:5px;border-radius:1000px;background-color:rgb(var(--lc-color-primary))}
|
|
37
|
+
`],encapsulation:3})},KN=Ca(tm()),JN=(e,t)=>({enter:e,exit:t});function XN(e,t){if(e&1&&(G(0,"div",7),Ye(1),Y(),G(2,"div",8),Ye(3),Y()),e&2){let n=Q(2);Z(),En(" ",n.getCurrency(n.selectedVariant().price.cmp)," "),Z(2),En(" ",n.getDiscountPercentage(n.selectedVariant().price),"% off ")}}function QN(e,t){if(e&1&&(G(0,"div",6),Ye(1),Y()),e&2){let n=Q(2);Z(),En(" ",n.stickyATCConfig.leftText," ")}}function eA(e,t){if(e&1&&(G(0,"div",1)(1,"div",5),Ye(2),Y(),nt(3,XN,4,2)(4,QN,2,1,"div",6),Y()),e&2){let n=Q();Z(2),En(" ",n.getCurrency(n.selectedVariant().price.d)," "),Z(),tt(n.selectedVariant().price.cmp?3:-1),Z(),tt(n.stickyATCConfig.leftText?4:-1)}}function tA(e,t){if(e&1&&(G(0,"div",9),Ye(1),Y()),e&2){let n=t.$implicit,r=t.$index;Q(2);let i=rn(5);Pe("ngClass",vD(2,JN,r===i.currentIndex,r===i.previousIndex)),Z(),En(" ",n," ")}}function nA(e,t){if(e&1&&(G(0,"div",4),Lt(1,tA,2,5,"div",9,Vi),Y()),e&2){Q();let n=rn(5);Z(),Vt(n.features)}}var rA=class Du extends nl{currentItem;stickyATCConfig;selectedVariant=Jn(void 0);featureSlider=Jn({features:[],currentIndex:0});constructor(){super()}engagementTriggerReceived(t){this.stickyATCConfig=t.stickyATCConfig??{},this.currentItem=t.items[0],this.selectedVariant.set(this.currentItem.vars[0]),this.stickyATCConfig.leftText=this.replaceVariables(this.stickyATCConfig.leftText),this.stickyATCConfig.rightText=this.replaceVariables(this.stickyATCConfig.rightText),this.startFeatureRotation()}update(){}getCurrency(t){return Sd(t)}getDiscountPercentage(t){return((t.cmp-t.d)/t.cmp*100).toFixed(0)}async addToCart(){this.executeCTAViaRenderer({clickAction:{at:102},item:this.currentItem})}startFeatureRotation(){if(!this.stickyATCConfig.rightText)return;let t=this.stickyATCConfig.rightText.split(`
|
|
38
|
+
`),n=t.length===1?null:setInterval(()=>{this.featureSlider.update(r=>Ne(A({},r),{previousIndex:r.currentIndex,currentIndex:(r.currentIndex+1)%r.features.length}))},3e3);this.featureSlider.set({intervalRef:n,currentIndex:0,features:t})}replaceVariables(t){return t?(0,KN.render)(t,this.currentItem.getTemplateVariables()):""}static \u0275fac=function(t){return new(t||Du)};static \u0275cmp=Pt({type:Du,selectors:[["cooee-sticky-atc"]],features:[br],decls:7,vars:3,consts:[[1,"lc-wrapper"],[1,"lc-prices"],[1,"lc-button-wrapper"],["type","button",1,"lc-button","lc-button-atc",3,"click"],[1,"lc-features"],[1,"lc-sale-price"],[1,"lc-additional-text"],[1,"lc-compare-price"],[1,"lc-discount-label"],[1,"lc-feature",3,"ngClass"]],template:function(t,n){if(t&1){let r=jt();G(0,"div",0),nt(1,eA,5,3,"div",1),G(2,"div",2)(3,"button",3),ot("click",function(){return ct(r),ut(n.addToCart())}),Ye(4,"Add To Cart"),Y(),jn(5),nt(6,nA,3,0,"div",4),Y()()}if(t&2){Z(),tt(n.selectedVariant()&&n.stickyATCConfig.showProductInfo?1:-1),Z(4);let r=zr(n.featureSlider());Z(),tt(r.features.length?6:-1)}},dependencies:[tl],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;padding:10px;background-color:#fff;width:100%;box-shadow:4px 0 10px #0006;line-height:normal}.lc-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:1100px;width:100%}.lc-prices[_ngcontent-%COMP%]{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px}@media (min-width: 768px){.lc-prices[_ngcontent-%COMP%]{gap:8px}}.lc-sale-price[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.lc-compare-price[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:red;text-decoration:line-through}.lc-discount-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:green}.lc-button-wrapper[_ngcontent-%COMP%]{flex:1 1 100%;display:flex;flex-direction:column;gap:4px;align-items:center}.lc-button[_ngcontent-%COMP%]{background-color:#000;color:#fff;opacity:1;cursor:pointer;pointer-events:auto;border-radius:4px;min-width:150px;width:100%;padding:8px}.lc-additional-text[_ngcontent-%COMP%], .lc-feature[_ngcontent-%COMP%]{font-size:12px;color:#666}.lc-features[_ngcontent-%COMP%]{position:relative;overflow:hidden;height:16px;text-align:center;width:100%}.lc-features[_ngcontent-%COMP%] .lc-feature[_ngcontent-%COMP%]{position:absolute;width:100%;opacity:0;transform:translateY(100%);transition:transform .5s ease,opacity .5s ease}.lc-features[_ngcontent-%COMP%] .lc-feature.enter[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);z-index:2}.lc-features[_ngcontent-%COMP%] .lc-feature.exit[_ngcontent-%COMP%]{opacity:0;transform:translateY(-100%);z-index:1}"]})},D0,Qe,O0,k0,Dr,Kp,R0,Ou,P0,Td,ku,Ru,iA,Pu={},N0=[],oA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Dd=Array.isArray;function hr(e,t){for(var n in t)e[n]=t[n];return e}function Od(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Kl(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++O0,__i:-1,__u:0};return i==null&&Qe.vnode!=null&&Qe.vnode(o),o}function kd(e){return e.children}function so(e,t){this.props=e,this.context=t}function ki(e,t){if(t==null)return e.__?ki(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ki(e):null}function A0(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return A0(e)}}function Jp(e){(!e.__d&&(e.__d=!0)&&Dr.push(e)&&!ma.__r++||Kp!==Qe.debounceRendering)&&((Kp=Qe.debounceRendering)||R0)(ma)}function ma(){var e,t,n,r,i,o,s,a;for(Dr.sort(Ou);e=Dr.shift();)e.__d&&(t=Dr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=hr({},i)).__v=i.__v+1,Qe.vnode&&Qe.vnode(r),V0(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ki(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,lA(s,r,a),r.__e!=o&&A0(r)),Dr.length>t&&Dr.sort(Ou));ma.__r=0}function M0(e,t,n,r,i,o,s,a,l,u,d){var h,_,m,b,S,N,P=r&&r.__k||N0,z=t.length;for(l=sA(n,t,P,l,z),h=0;h<z;h++)(m=n.__k[h])!=null&&(_=m.__i===-1?Pu:P[m.__i]||Pu,m.__i=h,N=V0(e,m,_,i,o,s,a,l,u,d),b=m.__e,m.ref&&_.ref!=m.ref&&(_.ref&&Rd(_.ref,null,m),d.push(m.ref,m.__c||b,m)),S==null&&b!=null&&(S=b),4&m.__u||_.__k===m.__k?l=L0(m,l,e):typeof m.type=="function"&&N!==void 0?l=N:b&&(l=b.nextSibling),m.__u&=-7);return n.__e=S,l}function sA(e,t,n,r,i){var o,s,a,l,u,d=n.length,h=d,_=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+_,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Kl(null,s,null,null,null):Dd(s)?Kl(kd,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Kl(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=aA(s,n,l,h))!==-1&&(h--,(a=n[u])&&(a.__u|=2)),a==null||a.__v===null?(u==-1&&_--,typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?_--:u==l+1?_++:(u>l?_--:_++,s.__u|=4))):e.__k[o]=null;if(h)for(o=0;o<d;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=ki(a)),j0(a,a));return r}function L0(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=L0(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ki(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function aA(e,t,n,r){var i,o,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&(2&l.__u)==0&&s==l.key&&a===l.type)return i;i--}if(o<t.length){if((l=t[o])&&(2&l.__u)==0&&s==l.key&&a===l.type)return o;o++}}return-1}function Xp(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||oA.test(t)?n:n+"px"}function ws(e,t,n,r,i){var o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Xp(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Xp(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(P0,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Td,e.addEventListener(t,o?Ru:ku,o)):e.removeEventListener(t,o?Ru:ku,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Qp(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Td++;else if(t.t<n.u)return;return n(Qe.event?Qe.event(t):t)}}}function V0(e,t,n,r,i,o,s,a,l,u){var d,h,_,m,b,S,N,P,z,re,q,ie,Ae,Me,F,_e,ue,he=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=Qe.__b)&&d(t);e:if(typeof he=="function")try{if(P=t.props,z="prototype"in he&&he.prototype.render,re=(d=he.contextType)&&r[d.__c],q=d?re?re.props.value:d.__:r,n.__c?N=(h=t.__c=n.__c).__=h.__E:(z?t.__c=h=new he(P,q):(t.__c=h=new so(P,q),h.constructor=he,h.render=uA),re&&re.sub(h),h.props=P,h.state||(h.state={}),h.context=q,h.__n=r,_=h.__d=!0,h.__h=[],h._sb=[]),z&&h.__s==null&&(h.__s=h.state),z&&he.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=hr({},h.__s)),hr(h.__s,he.getDerivedStateFromProps(P,h.__s))),m=h.props,b=h.state,h.__v=t,_)z&&he.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),z&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(z&&he.getDerivedStateFromProps==null&&P!==m&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(P,q),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(P,h.__s,q)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(h.props=P,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Oe){Oe&&(Oe.__=t)}),ie=0;ie<h._sb.length;ie++)h.__h.push(h._sb[ie]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(P,h.__s,q),z&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(m,b,S)})}if(h.context=q,h.props=P,h.__P=e,h.__e=!1,Ae=Qe.__r,Me=0,z){for(h.state=h.__s,h.__d=!1,Ae&&Ae(t),d=h.render(h.props,h.state,h.context),F=0;F<h._sb.length;F++)h.__h.push(h._sb[F]);h._sb=[]}else do h.__d=!1,Ae&&Ae(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++Me<25);h.state=h.__s,h.getChildContext!=null&&(r=hr(hr({},r),h.getChildContext())),z&&!_&&h.getSnapshotBeforeUpdate!=null&&(S=h.getSnapshotBeforeUpdate(m,b)),a=M0(e,Dd(_e=d!=null&&d.type===kd&&d.key==null?d.props.children:d)?_e:[_e],t,n,r,i,o,s,a,l,u),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),N&&(h.__E=h.__=null)}catch(Oe){if(t.__v=null,l||o!=null)if(Oe.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else for(ue=o.length;ue--;)Od(o[ue]);else t.__e=n.__e,t.__k=n.__k;Qe.__e(Oe,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=cA(n.__e,t,n,r,i,o,s,l,u);return(d=Qe.diffed)&&d(t),128&t.__u?void 0:a}function lA(e,t,n){for(var r=0;r<n.length;r++)Rd(n[r],n[++r],n[++r]);Qe.__c&&Qe.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Qe.__e(o,i.__v)}})}function cA(e,t,n,r,i,o,s,a,l){var u,d,h,_,m,b,S,N=n.props,P=t.props,z=t.type;if(z=="svg"?i="http://www.w3.org/2000/svg":z=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((m=o[u])&&"setAttribute"in m==!!z&&(z?m.localName==z:m.nodeType==3)){e=m,o[u]=null;break}}if(e==null){if(z==null)return document.createTextNode(P);e=document.createElementNS(i,z,P.is&&P),a&&(Qe.__m&&Qe.__m(t,o),a=!1),o=null}if(z===null)N===P||a&&e.data===P||(e.data=P);else{if(o=o&&D0.call(e.childNodes),N=n.props||Pu,!a&&o!=null)for(N={},u=0;u<e.attributes.length;u++)N[(m=e.attributes[u]).name]=m.value;for(u in N)if(m=N[u],u!="children"){if(u=="dangerouslySetInnerHTML")h=m;else if(!(u in P)){if(u=="value"&&"defaultValue"in P||u=="checked"&&"defaultChecked"in P)continue;ws(e,u,null,m,i)}}for(u in P)m=P[u],u=="children"?_=m:u=="dangerouslySetInnerHTML"?d=m:u=="value"?b=m:u=="checked"?S=m:a&&typeof m!="function"||N[u]===m||ws(e,u,m,N[u],i);if(d)a||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=""),M0(e,Dd(_)?_:[_],t,n,r,z=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ki(n,0),a,l),o!=null)for(u=o.length;u--;)Od(o[u]);a||(u="value",z=="progress"&&b==null?e.removeAttribute("value"):b!==void 0&&(b!==e[u]||z=="progress"&&!b||z=="option"&&b!==N[u])&&ws(e,u,b,N[u],i),u="checked",S!==void 0&&S!==e[u]&&ws(e,u,S,N[u],i))}return e}function Rd(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){Qe.__e(i,n)}}function j0(e,t,n){var r,i;if(Qe.unmount&&Qe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Rd(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Qe.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&j0(r[i],t,n||typeof e.type!="function");n||Od(e.__e),e.__c=e.__=e.__e=void 0}function uA(e,t,n){return this.constructor(e,n)}D0=N0.slice,Qe={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},O0=0,k0=function(e){return e!=null&&e.constructor==null},so.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=hr({},this.state),typeof e=="function"&&(e=e(hr({},n),this.props)),e&&hr(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Jp(this))},so.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Jp(this))},so.prototype.render=kd,Dr=[],R0=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ou=function(e,t){return e.__v.__b-t.__v.__b},ma.__r=0,P0=/(PointerCapture)$|Capture$/i,Td=0,ku=Qp(!1),Ru=Qp(!0),iA=0;var Nu,qt,Jl,eg,tg=0,F0=[],yt=Qe,ng=yt.__b,rg=yt.__r,ig=yt.diffed,og=yt.__c,sg=yt.unmount,ag=yt.__;function hA(e,t){yt.__h&&yt.__h(qt,e,tg||t),tg=0;var n=qt.__H||(qt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function B0(e,t){var n=hA(Nu++,7);return pA(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function dA(){for(var e;e=F0.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(js),e.__H.__h.forEach(Au),e.__H.__h=[]}catch(t){e.__H.__h=[],yt.__e(t,e.__v)}}yt.__b=function(e){qt=null,ng&&ng(e)},yt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ag&&ag(e,t)},yt.__r=function(e){rg&&rg(e),Nu=0;var t=(qt=e.__c).__H;t&&(Jl===qt?(t.__h=[],qt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(js),t.__h.forEach(Au),t.__h=[],Nu=0)),Jl=qt},yt.diffed=function(e){ig&&ig(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(F0.push(t)!==1&&eg===yt.requestAnimationFrame||((eg=yt.requestAnimationFrame)||fA)(dA)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Jl=qt=null},yt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(js),n.__h=n.__h.filter(function(r){return!r.__||Au(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],yt.__e(r,n.__v)}}),og&&og(e,t)},yt.unmount=function(e){sg&&sg(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{js(r)}catch(i){t=i}}),n.__H=void 0,t&&yt.__e(t,n.__v))};var lg=typeof requestAnimationFrame=="function";function fA(e){var t,n=function(){clearTimeout(r),lg&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);lg&&(t=requestAnimationFrame(n))}function js(e){var t=qt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),qt=t}function Au(e){var t=qt;e.__c=e.__(),qt=t}function pA(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}var gA=Symbol.for("preact-signals");function Pd(){if(yi>1)yi--;else{for(var e,t=!1;ao!==void 0;){var n=ao;for(ao=void 0,Mu++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&$0(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(Mu=0,yi--,t)throw e}}var We=void 0,ao=void 0,yi=0,Mu=0,_a=0;function U0(e){if(We!==void 0){var t=e.n;if(t===void 0||t.t!==We)return t={i:0,S:e,p:We.s,n:void 0,t:We,e:void 0,x:void 0,r:t},We.s!==void 0&&(We.s.n=t),We.s=t,e.n=t,32&We.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=We.s,t.n=void 0,We.s.n=t,We.s=t),t}}function Dt(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Dt.prototype.brand=gA;Dt.prototype.h=function(){return!0};Dt.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Dt.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};Dt.prototype.subscribe=function(e){var t=this;return Ad(function(){var n=t.value,r=We;We=void 0;try{e(n)}finally{We=r}})};Dt.prototype.valueOf=function(){return this.value};Dt.prototype.toString=function(){return this.value+""};Dt.prototype.toJSON=function(){return this.value};Dt.prototype.peek=function(){var e=We;We=void 0;try{return this.value}finally{We=e}};Object.defineProperty(Dt.prototype,"value",{get:function(){var e=U0(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Mu>100)throw new Error("Cycle detected");this.v=e,this.i++,_a++,yi++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pd()}}}});function H0(e){return new Dt(e)}function $0(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function z0(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function q0(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Hi(e){Dt.call(this,void 0),this.x=e,this.s=void 0,this.g=_a-1,this.f=4}(Hi.prototype=new Dt).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===_a))return!0;if(this.g=_a,this.f|=1,this.i>0&&!$0(this))return this.f&=-2,!0;var e=We;try{z0(this),We=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return We=e,q0(this),this.f&=-2,!0};Hi.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Dt.prototype.S.call(this,e)};Hi.prototype.U=function(e){if(this.t!==void 0&&(Dt.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Hi.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Hi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=U0(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function mA(e){return new Hi(e)}function W0(e){var t=e.u;if(e.u=void 0,typeof t=="function"){yi++;var n=We;We=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Nd(e),r}finally{We=n,Pd()}}}function Nd(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,W0(e)}function _A(e){if(We!==this)throw new Error("Out-of-order effect");q0(this),We=e,this.f&=-2,8&this.f&&Nd(this),Pd()}function ns(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}ns.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};ns.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,W0(this),z0(this),yi++;var e=We;return We=this,_A.bind(this,e)};ns.prototype.N=function(){2&this.f||(this.f|=2,this.o=ao,ao=this)};ns.prototype.d=function(){this.f|=8,1&this.f||Nd(this)};function Ad(e){var t=new ns(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Md,Xl;function $i(e,t){Qe[e]=t.bind(null,Qe[e]||function(){})}function va(e){Xl&&Xl(),Xl=e&&e.S()}function Z0(e){var t=this,n=e.data,r=yA(n);r.value=n;var i=B0(function(){for(var o=t.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return t.__$u.c=function(){var s,a=t.__$u.S(),l=i.value;a(),k0(l)||((s=t.base)==null?void 0:s.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=l},mA(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}Z0.displayName="_st";Object.defineProperties(Dt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Z0},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});$i("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var o=r[i];o instanceof Dt&&(n||(t.__np=n={}),n[i]=o,r[i]=o.peek())}}e(t)});$i("__r",function(e,t){va();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var o;return Ad(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),Md=r,va(n),e(t)});$i("__e",function(e,t,n,r){va(),Md=void 0,e(t,n,r)});$i("diffed",function(e,t){va(),Md=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var o=n.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else n.U=o={};for(var l in r){var u=o[l],d=r[l];u===void 0?(u=vA(n,l,d,i),o[l]=u):u.o(d,i)}}}e(t)});function vA(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,o=H0(n);return{o:function(s,a){o.value=s,r=a},d:Ad(function(){var s=o.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}$i("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var o=r[i];o&&o.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)});$i("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)});so.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u,r=n&&n.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function yA(e){return B0(function(){return H0(e)},[])}var G0=(e=>(e.SIMPLE="SIMPLE",e.SWIPER="SWIPER",e.STORY="STORY",e.FLOATING_POPUP="FLOATING_POPUP",e))(G0||{}),Y0=(e=>(e.ON="ON",e.OFF="OFF",e.ON_HOVER="ON_HOVER",e))(Y0||{}),K0=(e=>(e.FIRST_ITEM="FIRST_ITEM",e.BADGE="BADGE",e.NONE="NONE",e))(K0||{});function bA(e,t){return t={exports:{}},e(t,t.exports),t.exports}var wA=CA,xA=TA,EA=kA,Pn=[],Qt=[],SA=typeof Uint8Array<"u"?Uint8Array:Array,Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(wr=0,cg=Ql.length;wr<cg;++wr)Pn[wr]=Ql[wr],Qt[Ql.charCodeAt(wr)]=wr;var wr,cg;Qt[45]=62;Qt[95]=63;function J0(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function CA(e){var t=J0(e),n=t[0],r=t[1];return(n+r)*3/4-r}function IA(e,t,n){return(t+n)*3/4-n}function TA(e){var t,n=J0(e),r=n[0],i=n[1],o=new SA(IA(e,r,i)),s=0,a=i>0?r-4:r,l;for(l=0;l<a;l+=4)t=Qt[e.charCodeAt(l)]<<18|Qt[e.charCodeAt(l+1)]<<12|Qt[e.charCodeAt(l+2)]<<6|Qt[e.charCodeAt(l+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=Qt[e.charCodeAt(l)]<<2|Qt[e.charCodeAt(l+1)]>>4,o[s++]=t&255),i===1&&(t=Qt[e.charCodeAt(l)]<<10|Qt[e.charCodeAt(l+1)]<<4|Qt[e.charCodeAt(l+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function DA(e){return Pn[e>>18&63]+Pn[e>>12&63]+Pn[e>>6&63]+Pn[e&63]}function OA(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(DA(r));return i.join("")}function kA(e){for(var t,n=e.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(OA(e,s,s+o>a?a:s+o));return r===1?(t=e[n-1],i.push(Pn[t>>2]+Pn[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Pn[t>>10]+Pn[t>>4&63]+Pn[t<<2&63]+"=")),i.join("")}var ec={byteLength:wA,toByteArray:xA,fromByteArray:EA},RA=function(e,t,n,r,i){var o,s,a=i*8-r-1,l=(1<<a)-1,u=l>>1,d=-7,h=n?i-1:0,_=n?-1:1,m=e[t+h];for(h+=_,o=m&(1<<-d)-1,m>>=-d,d+=a;d>0;o=o*256+e[t+h],h+=_,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=r;d>0;s=s*256+e[t+h],h+=_,d-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-u}return(m?-1:1)*s*Math.pow(2,o-r)},PA=function(e,t,n,r,i,o){var s,a,l,u=o*8-i-1,d=(1<<u)-1,h=d>>1,_=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:o-1,b=r?1:-1,S=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=_/l:t+=_*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=d?(a=0,s=d):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+m]=a&255,m+=b,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+m]=s&255,m+=b,s/=256,u-=8);e[n+m-b]|=S*128},oi={read:RA,write:PA},ul=bA(function(e,t){var n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=P,t.INSPECT_MAX_BYTES=50;var r=2147483647;t.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var c=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(c,f),c.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(c){if(c>r)throw new RangeError('The value "'+c+'" is invalid for option "size"');var f=new Uint8Array(c);return Object.setPrototypeOf(f,s.prototype),f}function s(c,f,p){if(typeof c=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(c)}return a(c,f,p)}s.poolSize=8192;function a(c,f,p){if(typeof c=="string")return h(c,f);if(ArrayBuffer.isView(c))return m(c);if(c==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(c));if(oe(c,ArrayBuffer)||c&&oe(c.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(c,SharedArrayBuffer)||c&&oe(c.buffer,SharedArrayBuffer)))return b(c,f,p);if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var E=c.valueOf&&c.valueOf();if(E!=null&&E!==c)return s.from(E,f,p);var k=S(c);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof c[Symbol.toPrimitive]=="function")return s.from(c[Symbol.toPrimitive]("string"),f,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(c))}s.from=function(c,f,p){return a(c,f,p)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(c){if(typeof c!="number")throw new TypeError('"size" argument must be of type number');if(c<0)throw new RangeError('The value "'+c+'" is invalid for option "size"')}function u(c,f,p){return l(c),c<=0?o(c):f!==void 0?typeof p=="string"?o(c).fill(f,p):o(c).fill(f):o(c)}s.alloc=function(c,f,p){return u(c,f,p)};function d(c){return l(c),o(c<0?0:N(c)|0)}s.allocUnsafe=function(c){return d(c)},s.allocUnsafeSlow=function(c){return d(c)};function h(c,f){if((typeof f!="string"||f==="")&&(f="utf8"),!s.isEncoding(f))throw new TypeError("Unknown encoding: "+f);var p=z(c,f)|0,E=o(p),k=E.write(c,f);return k!==p&&(E=E.slice(0,k)),E}function _(c){for(var f=c.length<0?0:N(c.length)|0,p=o(f),E=0;E<f;E+=1)p[E]=c[E]&255;return p}function m(c){if(oe(c,Uint8Array)){var f=new Uint8Array(c);return b(f.buffer,f.byteOffset,f.byteLength)}return _(c)}function b(c,f,p){if(f<0||c.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(c.byteLength<f+(p||0))throw new RangeError('"length" is outside of buffer bounds');var E;return f===void 0&&p===void 0?E=new Uint8Array(c):p===void 0?E=new Uint8Array(c,f):E=new Uint8Array(c,f,p),Object.setPrototypeOf(E,s.prototype),E}function S(c){if(s.isBuffer(c)){var f=N(c.length)|0,p=o(f);return p.length===0||c.copy(p,0,0,f),p}if(c.length!==void 0)return typeof c.length!="number"||me(c.length)?o(0):_(c);if(c.type==="Buffer"&&Array.isArray(c.data))return _(c.data)}function N(c){if(c>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return c|0}function P(c){return+c!=c&&(c=0),s.alloc(+c)}s.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==s.prototype},s.compare=function(c,f){if(oe(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),oe(f,Uint8Array)&&(f=s.from(f,f.offset,f.byteLength)),!s.isBuffer(c)||!s.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===f)return 0;for(var p=c.length,E=f.length,k=0,V=Math.min(p,E);k<V;++k)if(c[k]!==f[k]){p=c[k],E=f[k];break}return p<E?-1:E<p?1:0},s.isEncoding=function(c){switch(String(c).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(c,f){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return s.alloc(0);var p;if(f===void 0)for(f=0,p=0;p<c.length;++p)f+=c[p].length;var E=s.allocUnsafe(f),k=0;for(p=0;p<c.length;++p){var V=c[p];if(oe(V,Uint8Array))k+V.length>E.length?s.from(V).copy(E,k):Uint8Array.prototype.set.call(E,V,k);else if(s.isBuffer(V))V.copy(E,k);else throw new TypeError('"list" argument must be an Array of Buffers');k+=V.length}return E};function z(c,f){if(s.isBuffer(c))return c.length;if(ArrayBuffer.isView(c)||oe(c,ArrayBuffer))return c.byteLength;if(typeof c!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+babelHelpers.typeof(c));var p=c.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&p===0)return 0;for(var k=!1;;)switch(f){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return K(c).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return xe(c).length;default:if(k)return E?-1:K(c).length;f=(""+f).toLowerCase(),k=!0}}s.byteLength=z;function re(c,f,p){var E=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,f>>>=0,p<=f))return"";for(c||(c="utf8");;)switch(c){case"hex":return O(this,f,p);case"utf8":case"utf-8":return Ke(this,f,p);case"ascii":return st(this,f,p);case"latin1":case"binary":return ke(this,f,p);case"base64":return Oe(this,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,f,p);default:if(E)throw new TypeError("Unknown encoding: "+c);c=(c+"").toLowerCase(),E=!0}}s.prototype._isBuffer=!0;function q(c,f,p){var E=c[f];c[f]=c[p],c[p]=E}s.prototype.swap16=function(){var c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<c;f+=2)q(this,f,f+1);return this},s.prototype.swap32=function(){var c=this.length;if(c%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<c;f+=4)q(this,f,f+3),q(this,f+1,f+2);return this},s.prototype.swap64=function(){var c=this.length;if(c%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<c;f+=8)q(this,f,f+7),q(this,f+1,f+6),q(this,f+2,f+5),q(this,f+3,f+4);return this},s.prototype.toString=function(){var c=this.length;return c===0?"":arguments.length===0?Ke(this,0,c):re.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(c){if(!s.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:s.compare(this,c)===0},s.prototype.inspect=function(){var c="",f=t.INSPECT_MAX_BYTES;return c=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(c+=" ... "),"<Buffer "+c+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(c,f,p,E,k){if(oe(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+babelHelpers.typeof(c));if(f===void 0&&(f=0),p===void 0&&(p=c?c.length:0),E===void 0&&(E=0),k===void 0&&(k=this.length),f<0||p>c.length||E<0||k>this.length)throw new RangeError("out of range index");if(E>=k&&f>=p)return 0;if(E>=k)return-1;if(f>=p)return 1;if(f>>>=0,p>>>=0,E>>>=0,k>>>=0,this===c)return 0;for(var V=k-E,X=p-f,ne=Math.min(V,X),Le=this.slice(E,k),Se=c.slice(f,p),Ve=0;Ve<ne;++Ve)if(Le[Ve]!==Se[Ve]){V=Le[Ve],X=Se[Ve];break}return V<X?-1:X<V?1:0};function ie(c,f,p,E,k){if(c.length===0)return-1;if(typeof p=="string"?(E=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,me(p)&&(p=k?0:c.length-1),p<0&&(p=c.length+p),p>=c.length){if(k)return-1;p=c.length-1}else if(p<0)if(k)p=0;else return-1;if(typeof f=="string"&&(f=s.from(f,E)),s.isBuffer(f))return f.length===0?-1:Ae(c,f,p,E,k);if(typeof f=="number")return f=f&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(c,f,p):Uint8Array.prototype.lastIndexOf.call(c,f,p):Ae(c,[f],p,E,k);throw new TypeError("val must be string, number or Buffer")}function Ae(c,f,p,E,k){var V=1,X=c.length,ne=f.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(c.length<2||f.length<2)return-1;V=2,X/=2,ne/=2,p/=2}function Le(Fn,dt){return V===1?Fn[dt]:Fn.readUInt16BE(dt*V)}var Se;if(k){var Ve=-1;for(Se=p;Se<X;Se++)if(Le(c,Se)===Le(f,Ve===-1?0:Se-Ve)){if(Ve===-1&&(Ve=Se),Se-Ve+1===ne)return Ve*V}else Ve!==-1&&(Se-=Se-Ve),Ve=-1}else for(p+ne>X&&(p=X-ne),Se=p;Se>=0;Se--){for(var Re=!0,xt=0;xt<ne;xt++)if(Le(c,Se+xt)!==Le(f,xt)){Re=!1;break}if(Re)return Se}return-1}s.prototype.includes=function(c,f,p){return this.indexOf(c,f,p)!==-1},s.prototype.indexOf=function(c,f,p){return ie(this,c,f,p,!0)},s.prototype.lastIndexOf=function(c,f,p){return ie(this,c,f,p,!1)};function Me(c,f,p,E){p=Number(p)||0;var k=c.length-p;E?(E=Number(E),E>k&&(E=k)):E=k;var V=f.length;E>V/2&&(E=V/2);for(var X=0;X<E;++X){var ne=parseInt(f.substr(X*2,2),16);if(me(ne))return X;c[p+X]=ne}return X}function F(c,f,p,E){return J(K(f,c.length-p),c,p,E)}function _e(c,f,p,E){return J(le(f),c,p,E)}function ue(c,f,p,E){return J(xe(f),c,p,E)}function he(c,f,p,E){return J(pe(f,c.length-p),c,p,E)}s.prototype.write=function(c,f,p,E){if(f===void 0)E="utf8",p=this.length,f=0;else if(p===void 0&&typeof f=="string")E=f,p=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(p)?(p=p>>>0,E===void 0&&(E="utf8")):(E=p,p=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var k=this.length-f;if((p===void 0||p>k)&&(p=k),c.length>0&&(p<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");E||(E="utf8");for(var V=!1;;)switch(E){case"hex":return Me(this,c,f,p);case"utf8":case"utf-8":return F(this,c,f,p);case"ascii":case"latin1":case"binary":return _e(this,c,f,p);case"base64":return ue(this,c,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,c,f,p);default:if(V)throw new TypeError("Unknown encoding: "+E);E=(""+E).toLowerCase(),V=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(c,f,p){return f===0&&p===c.length?ec.fromByteArray(c):ec.fromByteArray(c.slice(f,p))}function Ke(c,f,p){p=Math.min(c.length,p);for(var E=[],k=f;k<p;){var V=c[k],X=null,ne=V>239?4:V>223?3:V>191?2:1;if(k+ne<=p){var Le,Se,Ve,Re;switch(ne){case 1:V<128&&(X=V);break;case 2:Le=c[k+1],(Le&192)===128&&(Re=(V&31)<<6|Le&63,Re>127&&(X=Re));break;case 3:Le=c[k+1],Se=c[k+2],(Le&192)===128&&(Se&192)===128&&(Re=(V&15)<<12|(Le&63)<<6|Se&63,Re>2047&&(Re<55296||Re>57343)&&(X=Re));break;case 4:Le=c[k+1],Se=c[k+2],Ve=c[k+3],(Le&192)===128&&(Se&192)===128&&(Ve&192)===128&&(Re=(V&15)<<18|(Le&63)<<12|(Se&63)<<6|Ve&63,Re>65535&&Re<1114112&&(X=Re))}}X===null?(X=65533,ne=1):X>65535&&(X-=65536,E.push(X>>>10&1023|55296),X=56320|X&1023),E.push(X),k+=ne}return Je(E)}var He=4096;function Je(c){var f=c.length;if(f<=He)return String.fromCharCode.apply(String,c);for(var p="",E=0;E<f;)p+=String.fromCharCode.apply(String,c.slice(E,E+=He));return p}function st(c,f,p){var E="";p=Math.min(c.length,p);for(var k=f;k<p;++k)E+=String.fromCharCode(c[k]&127);return E}function ke(c,f,p){var E="";p=Math.min(c.length,p);for(var k=f;k<p;++k)E+=String.fromCharCode(c[k]);return E}function O(c,f,p){var E=c.length;(!f||f<0)&&(f=0),(!p||p<0||p>E)&&(p=E);for(var k="",V=f;V<p;++V)k+=ce[c[V]];return k}function D(c,f,p){for(var E=c.slice(f,p),k="",V=0;V<E.length-1;V+=2)k+=String.fromCharCode(E[V]+E[V+1]*256);return k}s.prototype.slice=function(c,f){var p=this.length;c=~~c,f=f===void 0?p:~~f,c<0?(c+=p,c<0&&(c=0)):c>p&&(c=p),f<0?(f+=p,f<0&&(f=0)):f>p&&(f=p),f<c&&(f=c);var E=this.subarray(c,f);return Object.setPrototypeOf(E,s.prototype),E};function y(c,f,p){if(c%1!==0||c<0)throw new RangeError("offset is not uint");if(c+f>p)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(c,f,p){c=c>>>0,f=f>>>0,p||y(c,f,this.length);for(var E=this[c],k=1,V=0;++V<f&&(k*=256);)E+=this[c+V]*k;return E},s.prototype.readUintBE=s.prototype.readUIntBE=function(c,f,p){c=c>>>0,f=f>>>0,p||y(c,f,this.length);for(var E=this[c+--f],k=1;f>0&&(k*=256);)E+=this[c+--f]*k;return E},s.prototype.readUint8=s.prototype.readUInt8=function(c,f){return c=c>>>0,f||y(c,1,this.length),this[c]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(c,f){return c=c>>>0,f||y(c,2,this.length),this[c]|this[c+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(c,f){return c=c>>>0,f||y(c,2,this.length),this[c]<<8|this[c+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(c,f){return c=c>>>0,f||y(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(c,f){return c=c>>>0,f||y(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},s.prototype.readIntLE=function(c,f,p){c=c>>>0,f=f>>>0,p||y(c,f,this.length);for(var E=this[c],k=1,V=0;++V<f&&(k*=256);)E+=this[c+V]*k;return k*=128,E>=k&&(E-=Math.pow(2,8*f)),E},s.prototype.readIntBE=function(c,f,p){c=c>>>0,f=f>>>0,p||y(c,f,this.length);for(var E=f,k=1,V=this[c+--E];E>0&&(k*=256);)V+=this[c+--E]*k;return k*=128,V>=k&&(V-=Math.pow(2,8*f)),V},s.prototype.readInt8=function(c,f){return c=c>>>0,f||y(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},s.prototype.readInt16LE=function(c,f){c=c>>>0,f||y(c,2,this.length);var p=this[c]|this[c+1]<<8;return p&32768?p|4294901760:p},s.prototype.readInt16BE=function(c,f){c=c>>>0,f||y(c,2,this.length);var p=this[c+1]|this[c]<<8;return p&32768?p|4294901760:p},s.prototype.readInt32LE=function(c,f){return c=c>>>0,f||y(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},s.prototype.readInt32BE=function(c,f){return c=c>>>0,f||y(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},s.prototype.readFloatLE=function(c,f){return c=c>>>0,f||y(c,4,this.length),oi.read(this,c,!0,23,4)},s.prototype.readFloatBE=function(c,f){return c=c>>>0,f||y(c,4,this.length),oi.read(this,c,!1,23,4)},s.prototype.readDoubleLE=function(c,f){return c=c>>>0,f||y(c,8,this.length),oi.read(this,c,!0,52,8)},s.prototype.readDoubleBE=function(c,f){return c=c>>>0,f||y(c,8,this.length),oi.read(this,c,!1,52,8)};function v(c,f,p,E,k,V){if(!s.isBuffer(c))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>k||f<V)throw new RangeError('"value" argument is out of bounds');if(p+E>c.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(c,f,p,E){if(c=+c,f=f>>>0,p=p>>>0,!E){var k=Math.pow(2,8*p)-1;v(this,c,f,p,k,0)}var V=1,X=0;for(this[f]=c&255;++X<p&&(V*=256);)this[f+X]=c/V&255;return f+p},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(c,f,p,E){if(c=+c,f=f>>>0,p=p>>>0,!E){var k=Math.pow(2,8*p)-1;v(this,c,f,p,k,0)}var V=p-1,X=1;for(this[f+V]=c&255;--V>=0&&(X*=256);)this[f+V]=c/X&255;return f+p},s.prototype.writeUint8=s.prototype.writeUInt8=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,1,255,0),this[f]=c&255,f+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,2,65535,0),this[f]=c&255,this[f+1]=c>>>8,f+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,2,65535,0),this[f]=c>>>8,this[f+1]=c&255,f+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,4,4294967295,0),this[f+3]=c>>>24,this[f+2]=c>>>16,this[f+1]=c>>>8,this[f]=c&255,f+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,4,4294967295,0),this[f]=c>>>24,this[f+1]=c>>>16,this[f+2]=c>>>8,this[f+3]=c&255,f+4},s.prototype.writeIntLE=function(c,f,p,E){if(c=+c,f=f>>>0,!E){var k=Math.pow(2,8*p-1);v(this,c,f,p,k-1,-k)}var V=0,X=1,ne=0;for(this[f]=c&255;++V<p&&(X*=256);)c<0&&ne===0&&this[f+V-1]!==0&&(ne=1),this[f+V]=(c/X>>0)-ne&255;return f+p},s.prototype.writeIntBE=function(c,f,p,E){if(c=+c,f=f>>>0,!E){var k=Math.pow(2,8*p-1);v(this,c,f,p,k-1,-k)}var V=p-1,X=1,ne=0;for(this[f+V]=c&255;--V>=0&&(X*=256);)c<0&&ne===0&&this[f+V+1]!==0&&(ne=1),this[f+V]=(c/X>>0)-ne&255;return f+p},s.prototype.writeInt8=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,1,127,-128),c<0&&(c=255+c+1),this[f]=c&255,f+1},s.prototype.writeInt16LE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,2,32767,-32768),this[f]=c&255,this[f+1]=c>>>8,f+2},s.prototype.writeInt16BE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,2,32767,-32768),this[f]=c>>>8,this[f+1]=c&255,f+2},s.prototype.writeInt32LE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,4,2147483647,-2147483648),this[f]=c&255,this[f+1]=c>>>8,this[f+2]=c>>>16,this[f+3]=c>>>24,f+4},s.prototype.writeInt32BE=function(c,f,p){return c=+c,f=f>>>0,p||v(this,c,f,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[f]=c>>>24,this[f+1]=c>>>16,this[f+2]=c>>>8,this[f+3]=c&255,f+4};function M(c,f,p,E,k,V){if(p+E>c.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function B(c,f,p,E,k){return f=+f,p=p>>>0,k||M(c,f,p,4),oi.write(c,f,p,E,23,4),p+4}s.prototype.writeFloatLE=function(c,f,p){return B(this,c,f,!0,p)},s.prototype.writeFloatBE=function(c,f,p){return B(this,c,f,!1,p)};function W(c,f,p,E,k){return f=+f,p=p>>>0,k||M(c,f,p,8),oi.write(c,f,p,E,52,8),p+8}s.prototype.writeDoubleLE=function(c,f,p){return W(this,c,f,!0,p)},s.prototype.writeDoubleBE=function(c,f,p){return W(this,c,f,!1,p)},s.prototype.copy=function(c,f,p,E){if(!s.isBuffer(c))throw new TypeError("argument should be a Buffer");if(p||(p=0),!E&&E!==0&&(E=this.length),f>=c.length&&(f=c.length),f||(f=0),E>0&&E<p&&(E=p),E===p||c.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(p<0||p>=this.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("sourceEnd out of bounds");E>this.length&&(E=this.length),c.length-f<E-p&&(E=c.length-f+p);var k=E-p;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,p,E):Uint8Array.prototype.set.call(c,this.subarray(p,E),f),k},s.prototype.fill=function(c,f,p,E){if(typeof c=="string"){if(typeof f=="string"?(E=f,f=0,p=this.length):typeof p=="string"&&(E=p,p=this.length),E!==void 0&&typeof E!="string")throw new TypeError("encoding must be a string");if(typeof E=="string"&&!s.isEncoding(E))throw new TypeError("Unknown encoding: "+E);if(c.length===1){var k=c.charCodeAt(0);(E==="utf8"&&k<128||E==="latin1")&&(c=k)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(f<0||this.length<f||this.length<p)throw new RangeError("Out of range index");if(p<=f)return this;f=f>>>0,p=p===void 0?this.length:p>>>0,c||(c=0);var V;if(typeof c=="number")for(V=f;V<p;++V)this[V]=c;else{var X=s.isBuffer(c)?c:s.from(c,E),ne=X.length;if(ne===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(V=0;V<p-f;++V)this[V+f]=X[V%ne]}return this};var te=/[^+/0-9A-Za-z-_]/g;function ee(c){if(c=c.split("=")[0],c=c.trim().replace(te,""),c.length<2)return"";for(;c.length%4!==0;)c=c+"=";return c}function K(c,f){f=f||1/0;for(var p,E=c.length,k=null,V=[],X=0;X<E;++X){if(p=c.charCodeAt(X),p>55295&&p<57344){if(!k){if(p>56319){(f-=3)>-1&&V.push(239,191,189);continue}else if(X+1===E){(f-=3)>-1&&V.push(239,191,189);continue}k=p;continue}if(p<56320){(f-=3)>-1&&V.push(239,191,189),k=p;continue}p=(k-55296<<10|p-56320)+65536}else k&&(f-=3)>-1&&V.push(239,191,189);if(k=null,p<128){if((f-=1)<0)break;V.push(p)}else if(p<2048){if((f-=2)<0)break;V.push(p>>6|192,p&63|128)}else if(p<65536){if((f-=3)<0)break;V.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((f-=4)<0)break;V.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return V}function le(c){for(var f=[],p=0;p<c.length;++p)f.push(c.charCodeAt(p)&255);return f}function pe(c,f){for(var p,E,k,V=[],X=0;X<c.length&&!((f-=2)<0);++X)p=c.charCodeAt(X),E=p>>8,k=p%256,V.push(k),V.push(E);return V}function xe(c){return ec.toByteArray(ee(c))}function J(c,f,p,E){for(var k=0;k<E&&!(k+p>=f.length||k>=c.length);++k)f[k+p]=c[k];return k}function oe(c,f){return c instanceof f||c!=null&&c.constructor!=null&&c.constructor.name!=null&&c.constructor.name===f.name}function me(c){return c!==c}var ce=function(){for(var c="0123456789abcdef",f=new Array(256),p=0;p<16;++p)for(var E=p*16,k=0;k<16;++k)f[E+k]=c[p]+c[k];return f}()}),Fe=ul.Buffer;ul.SlowBuffer;ul.INSPECT_MAX_BYTES;ul.kMaxLength;var Lu=function(e,t){return Lu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Lu(e,t)};function hl(e,t){Lu(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Nr=function(e){hl(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONError"},enumerable:!1,configurable:!0}),t}(Error),lt=function(e){hl(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONTypeError"},enumerable:!1,configurable:!0}),t}(TypeError);function xs(e){return e&&e.Math==Math&&e}function X0(){return xs(typeof globalThis=="object"&&globalThis)||xs(typeof window=="object"&&window)||xs(typeof self=="object"&&self)||xs(typeof global=="object"&&global)||Function("return this")()}function NA(){var e=X0();return typeof e.navigator=="object"&&e.navigator.product==="ReactNative"}var AA=function(e){var t=NA()?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.";console.warn(t);for(var n=Fe.alloc(e),r=0;r<e;++r)n[r]=Math.floor(Math.random()*256);return n},MA=function(){{if(typeof window<"u"){var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues)return function(t){return e.getRandomValues(Fe.alloc(t))}}return typeof global<"u"&&global.crypto&&global.crypto.getRandomValues?function(t){return global.crypto.getRandomValues(Fe.alloc(t))}:AA}},Q0=MA();function LA(e){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(e))}function Ld(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}function VA(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function jA(e){return rs(e)&&Object.prototype.toString.call(e)==="[object Date]"}function rs(e){return typeof e=="object"&&e!==null}function dl(e,t){var n=!1;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(console.warn(t),n=!0),e.apply(this,i)}return r}function ya(e){if(ArrayBuffer.isView(e))return Fe.from(e.buffer,e.byteOffset,e.byteLength);if(LA(e))return Fe.from(e);throw new lt("Must use either Buffer or TypedArray")}var FA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i,eb=function(e){return typeof e=="string"&&FA.test(e)},Vu=function(e){if(!eb(e))throw new lt('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".');var t=e.replace(/-/g,"");return Fe.from(t,"hex")},ug=function(e,t){return t===void 0&&(t=!0),t?e.toString("hex",0,4)+"-"+e.toString("hex",4,6)+"-"+e.toString("hex",6,8)+"-"+e.toString("hex",8,10)+"-"+e.toString("hex",10,16):e.toString("hex")},Z5=Math.pow(2,63)-1,G5=-Math.pow(2,63),BA=Math.pow(2,53),UA=-Math.pow(2,53),tb=4,Ar=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);if(t!=null&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!(t instanceof ArrayBuffer)&&!Array.isArray(t))throw new lt("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");this.sub_type=n??e.BSON_BINARY_SUBTYPE_DEFAULT,t==null?(this.buffer=Fe.alloc(e.BUFFER_SIZE),this.position=0):(typeof t=="string"?this.buffer=Fe.from(t,"binary"):Array.isArray(t)?this.buffer=Fe.from(t):this.buffer=ya(t),this.position=this.buffer.byteLength)}return e.prototype.put=function(t){if(typeof t=="string"&&t.length!==1)throw new lt("only accepts single character String");if(typeof t!="number"&&t.length!==1)throw new lt("only accepts single character Uint8Array or Array");var n;if(typeof t=="string"?n=t.charCodeAt(0):typeof t=="number"?n=t:n=t[0],n<0||n>255)throw new lt("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.length>this.position)this.buffer[this.position++]=n;else{var r=Fe.alloc(e.BUFFER_SIZE+this.buffer.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r,this.buffer[this.position++]=n}},e.prototype.write=function(t,n){if(n=typeof n=="number"?n:this.position,this.buffer.length<n+t.length){var r=Fe.alloc(this.buffer.length+t.length);this.buffer.copy(r,0,0,this.buffer.length),this.buffer=r}ArrayBuffer.isView(t)?(this.buffer.set(ya(t),n),this.position=n+t.byteLength>this.position?n+t.length:this.position):typeof t=="string"&&(this.buffer.write(t,n,t.length,"binary"),this.position=n+t.length>this.position?n+t.length:this.position)},e.prototype.read=function(t,n){return n=n&&n>0?n:this.position,this.buffer.slice(t,t+n)},e.prototype.value=function(t){return t=!!t,t&&this.buffer.length===this.position?this.buffer:t?this.buffer.slice(0,this.position):this.buffer.toString("binary",0,this.position)},e.prototype.length=function(){return this.position},e.prototype.toJSON=function(){return this.buffer.toString("base64")},e.prototype.toString=function(t){return this.buffer.toString(t)},e.prototype.toExtendedJSON=function(t){t=t||{};var n=this.buffer.toString("base64"),r=Number(this.sub_type).toString(16);return t.legacy?{$binary:n,$type:r.length===1?"0"+r:r}:{$binary:{base64:n,subType:r.length===1?"0"+r:r}}},e.prototype.toUUID=function(){if(this.sub_type===e.SUBTYPE_UUID)return new hg(this.buffer.slice(0,this.position));throw new Nr('Binary sub_type "'.concat(this.sub_type,'" is not supported for converting to UUID. Only "').concat(e.SUBTYPE_UUID,'" is currently supported.'))},e.fromExtendedJSON=function(t,n){n=n||{};var r,i;if("$binary"in t?n.legacy&&typeof t.$binary=="string"&&"$type"in t?(i=t.$type?parseInt(t.$type,16):0,r=Fe.from(t.$binary,"base64")):typeof t.$binary!="string"&&(i=t.$binary.subType?parseInt(t.$binary.subType,16):0,r=Fe.from(t.$binary.base64,"base64")):"$uuid"in t&&(i=4,r=Vu(t.$uuid)),!r)throw new lt("Unexpected Binary Extended JSON format ".concat(JSON.stringify(t)));return i===tb?new hg(r):new e(r,i)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.value(!0);return'new Binary(Buffer.from("'.concat(t.toString("hex"),'", "hex"), ').concat(this.sub_type,")")},e.BSON_BINARY_SUBTYPE_DEFAULT=0,e.BUFFER_SIZE=256,e.SUBTYPE_DEFAULT=0,e.SUBTYPE_FUNCTION=1,e.SUBTYPE_BYTE_ARRAY=2,e.SUBTYPE_UUID_OLD=3,e.SUBTYPE_UUID=4,e.SUBTYPE_MD5=5,e.SUBTYPE_ENCRYPTED=6,e.SUBTYPE_COLUMN=7,e.SUBTYPE_USER_DEFINED=128,e}();Object.defineProperty(Ar.prototype,"_bsontype",{value:"Binary"});var tc=16,hg=function(e){hl(t,e);function t(n){var r=this,i,o;if(n==null)i=t.generate();else if(n instanceof t)i=Fe.from(n.buffer),o=n.__id;else if(ArrayBuffer.isView(n)&&n.byteLength===tc)i=ya(n);else if(typeof n=="string")i=Vu(n);else throw new lt("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");return r=e.call(this,i,tb)||this,r.__id=o,r}return Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer},set:function(n){this.buffer=n,t.cacheHexString&&(this.__id=ug(n))},enumerable:!1,configurable:!0}),t.prototype.toHexString=function(n){if(n===void 0&&(n=!0),t.cacheHexString&&this.__id)return this.__id;var r=ug(this.id,n);return t.cacheHexString&&(this.__id=r),r},t.prototype.toString=function(n){return n?this.id.toString(n):this.toHexString()},t.prototype.toJSON=function(){return this.toHexString()},t.prototype.equals=function(n){if(!n)return!1;if(n instanceof t)return n.id.equals(this.id);try{return new t(n).id.equals(this.id)}catch{return!1}},t.prototype.toBinary=function(){return new Ar(this.id,Ar.SUBTYPE_UUID)},t.generate=function(){var n=Q0(tc);return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Fe.from(n)},t.isValid=function(n){return n?n instanceof t?!0:typeof n=="string"?eb(n):Ld(n)?n.length!==tc?!1:(n[6]&240)===64&&(n[8]&128)===128:!1:!1},t.createFromHexString=function(n){var r=Vu(n);return new t(r)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new UUID("'.concat(this.toHexString(),'")')},t}(Ar),fl=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);this.code=t,this.scope=n}return e.prototype.toJSON=function(){return{code:this.code,scope:this.scope}},e.prototype.toExtendedJSON=function(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}},e.fromExtendedJSON=function(t){return new e(t.$code,t.$scope)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.toJSON();return'new Code("'.concat(String(t.code),'"').concat(t.scope?", ".concat(JSON.stringify(t.scope)):"",")")},e}();Object.defineProperty(fl.prototype,"_bsontype",{value:"Code"});function HA(e){return rs(e)&&e.$id!=null&&typeof e.$ref=="string"&&(e.$db==null||typeof e.$db=="string")}var Oo=function(){function e(t,n,r,i){if(!(this instanceof e))return new e(t,n,r,i);var o=t.split(".");o.length===2&&(r=o.shift(),t=o.shift()),this.collection=t,this.oid=n,this.db=r,this.fields=i||{}}return Object.defineProperty(e.prototype,"namespace",{get:function(){return this.collection},set:function(t){this.collection=t},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var t=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return this.db!=null&&(t.$db=this.db),t},e.prototype.toExtendedJSON=function(t){t=t||{};var n={$ref:this.collection,$id:this.oid};return t.legacy||(this.db&&(n.$db=this.db),n=Object.assign(n,this.fields)),n},e.fromExtendedJSON=function(t){var n=Object.assign({},t);return delete n.$ref,delete n.$id,delete n.$db,new e(t.$ref,t.$id,t.$db,n)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return'new DBRef("'.concat(this.namespace,'", new ObjectId("').concat(String(t),'")').concat(this.db?', "'.concat(this.db,'"'):"",")")},e}();Object.defineProperty(Oo.prototype,"_bsontype",{value:"DBRef"});var Xt=void 0;try{Xt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var dg=65536,$A=1<<24,fi=dg*dg,nb=fi*fi,fg=nb/2,pg={},gg={},se=function(){function e(t,n,r){if(t===void 0&&(t=0),!(this instanceof e))return new e(t,n,r);typeof t=="bigint"?Object.assign(this,e.fromBigInt(t,!!n)):typeof t=="string"?Object.assign(this,e.fromString(t,!!n)):(this.low=t|0,this.high=n|0,this.unsigned=!!r),Object.defineProperty(this,"__isLong__",{value:!0,configurable:!1,writable:!1,enumerable:!1})}return e.fromBits=function(t,n,r){return new e(t,n,r)},e.fromInt=function(t,n){var r,i,o;return n?(t>>>=0,(o=0<=t&&t<256)&&(i=gg[t],i)?i:(r=e.fromBits(t,(t|0)<0?-1:0,!0),o&&(gg[t]=r),r)):(t|=0,(o=-128<=t&&t<128)&&(i=pg[t],i)?i:(r=e.fromBits(t,t<0?-1:0,!1),o&&(pg[t]=r),r))},e.fromNumber=function(t,n){if(isNaN(t))return n?e.UZERO:e.ZERO;if(n){if(t<0)return e.UZERO;if(t>=nb)return e.MAX_UNSIGNED_VALUE}else{if(t<=-fg)return e.MIN_VALUE;if(t+1>=fg)return e.MAX_VALUE}return t<0?e.fromNumber(-t,n).neg():e.fromBits(t%fi|0,t/fi|0,n)},e.fromBigInt=function(t,n){return e.fromString(t.toString(),n)},e.fromString=function(t,n,r){if(t.length===0)throw Error("empty string");if(t==="NaN"||t==="Infinity"||t==="+Infinity"||t==="-Infinity")return e.ZERO;if(typeof n=="number"?(r=n,n=!1):n=!!n,r=r||10,r<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw Error("interior hyphen");if(i===0)return e.fromString(t.substring(1),n,r).neg();for(var o=e.fromNumber(Math.pow(r,8)),s=e.ZERO,a=0;a<t.length;a+=8){var l=Math.min(8,t.length-a),u=parseInt(t.substring(a,a+l),r);if(l<8){var d=e.fromNumber(Math.pow(r,l));s=s.mul(d).add(e.fromNumber(u))}else s=s.mul(o),s=s.add(e.fromNumber(u))}return s.unsigned=n,s},e.fromBytes=function(t,n,r){return r?e.fromBytesLE(t,n):e.fromBytesBE(t,n)},e.fromBytesLE=function(t,n){return new e(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},e.fromBytesBE=function(t,n){return new e(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)},e.isLong=function(t){return rs(t)&&t.__isLong__===!0},e.fromValue=function(t,n){return typeof t=="number"?e.fromNumber(t,n):typeof t=="string"?e.fromString(t,n):e.fromBits(t.low,t.high,typeof n=="boolean"?n:t.unsigned)},e.prototype.add=function(t){e.isLong(t)||(t=e.fromValue(t));var n=this.high>>>16,r=this.high&65535,i=this.low>>>16,o=this.low&65535,s=t.high>>>16,a=t.high&65535,l=t.low>>>16,u=t.low&65535,d=0,h=0,_=0,m=0;return m+=o+u,_+=m>>>16,m&=65535,_+=i+l,h+=_>>>16,_&=65535,h+=r+a,d+=h>>>16,h&=65535,d+=n+s,d&=65535,e.fromBits(_<<16|m,d<<16|h,this.unsigned)},e.prototype.and=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low&t.low,this.high&t.high,this.unsigned)},e.prototype.compare=function(t){if(e.isLong(t)||(t=e.fromValue(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},e.prototype.comp=function(t){return this.compare(t)},e.prototype.divide=function(t){if(e.isLong(t)||(t=e.fromValue(t)),t.isZero())throw Error("division by zero");if(Xt){if(!this.unsigned&&this.high===-2147483648&&t.low===-1&&t.high===-1)return this;var n=(this.unsigned?Xt.div_u:Xt.div_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,Xt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?e.UZERO:e.ZERO;var r,i,o;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return e.UZERO;if(t.gt(this.shru(1)))return e.UONE;o=e.UZERO}else{if(this.eq(e.MIN_VALUE)){if(t.eq(e.ONE)||t.eq(e.NEG_ONE))return e.MIN_VALUE;if(t.eq(e.MIN_VALUE))return e.ONE;var s=this.shr(1);return r=s.div(t).shl(1),r.eq(e.ZERO)?t.isNegative()?e.ONE:e.NEG_ONE:(i=this.sub(t.mul(r)),o=r.add(i.div(t)),o)}else if(t.eq(e.MIN_VALUE))return this.unsigned?e.UZERO:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();o=e.ZERO}for(i=this;i.gte(t);){r=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),l=a<=48?1:Math.pow(2,a-48),u=e.fromNumber(r),d=u.mul(t);d.isNegative()||d.gt(i);)r-=l,u=e.fromNumber(r,this.unsigned),d=u.mul(t);u.isZero()&&(u=e.ONE),o=o.add(u),i=i.sub(d)}return o},e.prototype.div=function(t){return this.divide(t)},e.prototype.equals=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.unsigned!==t.unsigned&&this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low},e.prototype.eq=function(t){return this.equals(t)},e.prototype.getHighBits=function(){return this.high},e.prototype.getHighBitsUnsigned=function(){return this.high>>>0},e.prototype.getLowBits=function(){return this.low},e.prototype.getLowBitsUnsigned=function(){return this.low>>>0},e.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(e.MIN_VALUE)?64:this.neg().getNumBitsAbs();var t=this.high!==0?this.high:this.low,n;for(n=31;n>0&&(t&1<<n)===0;n--);return this.high!==0?n+33:n+1},e.prototype.greaterThan=function(t){return this.comp(t)>0},e.prototype.gt=function(t){return this.greaterThan(t)},e.prototype.greaterThanOrEqual=function(t){return this.comp(t)>=0},e.prototype.gte=function(t){return this.greaterThanOrEqual(t)},e.prototype.ge=function(t){return this.greaterThanOrEqual(t)},e.prototype.isEven=function(){return(this.low&1)===0},e.prototype.isNegative=function(){return!this.unsigned&&this.high<0},e.prototype.isOdd=function(){return(this.low&1)===1},e.prototype.isPositive=function(){return this.unsigned||this.high>=0},e.prototype.isZero=function(){return this.high===0&&this.low===0},e.prototype.lessThan=function(t){return this.comp(t)<0},e.prototype.lt=function(t){return this.lessThan(t)},e.prototype.lessThanOrEqual=function(t){return this.comp(t)<=0},e.prototype.lte=function(t){return this.lessThanOrEqual(t)},e.prototype.modulo=function(t){if(e.isLong(t)||(t=e.fromValue(t)),Xt){var n=(this.unsigned?Xt.rem_u:Xt.rem_s)(this.low,this.high,t.low,t.high);return e.fromBits(n,Xt.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))},e.prototype.mod=function(t){return this.modulo(t)},e.prototype.rem=function(t){return this.modulo(t)},e.prototype.multiply=function(t){if(this.isZero())return e.ZERO;if(e.isLong(t)||(t=e.fromValue(t)),Xt){var n=Xt.mul(this.low,this.high,t.low,t.high);return e.fromBits(n,Xt.get_high(),this.unsigned)}if(t.isZero())return e.ZERO;if(this.eq(e.MIN_VALUE))return t.isOdd()?e.MIN_VALUE:e.ZERO;if(t.eq(e.MIN_VALUE))return this.isOdd()?e.MIN_VALUE:e.ZERO;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(e.TWO_PWR_24)&&t.lt(e.TWO_PWR_24))return e.fromNumber(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,i=this.high&65535,o=this.low>>>16,s=this.low&65535,a=t.high>>>16,l=t.high&65535,u=t.low>>>16,d=t.low&65535,h=0,_=0,m=0,b=0;return b+=s*d,m+=b>>>16,b&=65535,m+=o*d,_+=m>>>16,m&=65535,m+=s*u,_+=m>>>16,m&=65535,_+=i*d,h+=_>>>16,_&=65535,_+=o*u,h+=_>>>16,_&=65535,_+=s*l,h+=_>>>16,_&=65535,h+=r*d+i*u+o*l+s*a,h&=65535,e.fromBits(m<<16|b,h<<16|_,this.unsigned)},e.prototype.mul=function(t){return this.multiply(t)},e.prototype.negate=function(){return!this.unsigned&&this.eq(e.MIN_VALUE)?e.MIN_VALUE:this.not().add(e.ONE)},e.prototype.neg=function(){return this.negate()},e.prototype.not=function(){return e.fromBits(~this.low,~this.high,this.unsigned)},e.prototype.notEquals=function(t){return!this.equals(t)},e.prototype.neq=function(t){return this.notEquals(t)},e.prototype.ne=function(t){return this.notEquals(t)},e.prototype.or=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low|t.low,this.high|t.high,this.unsigned)},e.prototype.shiftLeft=function(t){return e.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?e.fromBits(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):e.fromBits(0,this.low<<t-32,this.unsigned)},e.prototype.shl=function(t){return this.shiftLeft(t)},e.prototype.shiftRight=function(t){return e.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?e.fromBits(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):e.fromBits(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},e.prototype.shr=function(t){return this.shiftRight(t)},e.prototype.shiftRightUnsigned=function(t){if(e.isLong(t)&&(t=t.toInt()),t&=63,t===0)return this;var n=this.high;if(t<32){var r=this.low;return e.fromBits(r>>>t|n<<32-t,n>>>t,this.unsigned)}else return t===32?e.fromBits(n,0,this.unsigned):e.fromBits(n>>>t-32,0,this.unsigned)},e.prototype.shr_u=function(t){return this.shiftRightUnsigned(t)},e.prototype.shru=function(t){return this.shiftRightUnsigned(t)},e.prototype.subtract=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.add(t.neg())},e.prototype.sub=function(t){return this.subtract(t)},e.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},e.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*fi+(this.low>>>0):this.high*fi+(this.low>>>0)},e.prototype.toBigInt=function(){return BigInt(this.toString())},e.prototype.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},e.prototype.toBytesLE=function(){var t=this.high,n=this.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]},e.prototype.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]},e.prototype.toSigned=function(){return this.unsigned?e.fromBits(this.low,this.high,!1):this},e.prototype.toString=function(t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(e.MIN_VALUE)){var n=e.fromNumber(t),r=this.div(n),i=r.mul(n).sub(this);return r.toString(t)+i.toInt().toString(t)}else return"-"+this.neg().toString(t);for(var o=e.fromNumber(Math.pow(t,6),this.unsigned),s=this,a="";;){var l=s.div(o),u=s.sub(l.mul(o)).toInt()>>>0,d=u.toString(t);if(s=l,s.isZero())return d+a;for(;d.length<6;)d="0"+d;a=""+d+a}},e.prototype.toUnsigned=function(){return this.unsigned?this:e.fromBits(this.low,this.high,!0)},e.prototype.xor=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low^t.low,this.high^t.high,this.unsigned)},e.prototype.eqz=function(){return this.isZero()},e.prototype.le=function(t){return this.lessThanOrEqual(t)},e.prototype.toExtendedJSON=function(t){return t&&t.relaxed?this.toNumber():{$numberLong:this.toString()}},e.fromExtendedJSON=function(t,n){var r=e.fromString(t.$numberLong);return n&&n.relaxed?r.toNumber():r},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new Long("'.concat(this.toString(),'"').concat(this.unsigned?", true":"",")")},e.TWO_PWR_24=e.fromInt($A),e.MAX_UNSIGNED_VALUE=e.fromBits(-1,-1,!0),e.ZERO=e.fromInt(0),e.UZERO=e.fromInt(0,!0),e.ONE=e.fromInt(1),e.UONE=e.fromInt(1,!0),e.NEG_ONE=e.fromInt(-1),e.MAX_VALUE=e.fromBits(-1,2147483647,!1),e.MIN_VALUE=e.fromBits(0,-2147483648,!1),e}();Object.defineProperty(se.prototype,"__isLong__",{value:!0});Object.defineProperty(se.prototype,"_bsontype",{value:"Long"});var zA=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,qA=/^(\+|-)?(Infinity|inf)$/i,WA=/^(\+|-)?NaN$/i,Zi=6111,nc=-6176,mg=6176,ZA=34,rc=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),_g=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),vg=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),GA=/^([-+])?(\d+)?$/,YA=31,yg=16383,KA=30,JA=31;function bg(e){return!isNaN(parseInt(e,10))}function XA(e){var t=se.fromNumber(1e9),n=se.fromNumber(0);if(!e.parts[0]&&!e.parts[1]&&!e.parts[2]&&!e.parts[3])return{quotient:e,rem:n};for(var r=0;r<=3;r++)n=n.shiftLeft(32),n=n.add(new se(e.parts[r],0)),e.parts[r]=n.div(t).low,n=n.modulo(t);return{quotient:e,rem:n}}function QA(e,t){if(!e&&!t)return{high:se.fromNumber(0),low:se.fromNumber(0)};var n=e.shiftRightUnsigned(32),r=new se(e.getLowBits(),0),i=t.shiftRightUnsigned(32),o=new se(t.getLowBits(),0),s=n.multiply(i),a=n.multiply(o),l=r.multiply(i),u=r.multiply(o);return s=s.add(a.shiftRightUnsigned(32)),a=new se(a.getLowBits(),0).add(l).add(u.shiftRightUnsigned(32)),s=s.add(a.shiftRightUnsigned(32)),u=a.shiftLeft(32).add(new se(u.getLowBits(),0)),{high:s,low:u}}function eM(e,t){var n=e.high>>>0,r=t.high>>>0;if(n<r)return!0;if(n===r){var i=e.low>>>0,o=t.low>>>0;if(i<o)return!0}return!1}function si(e,t){throw new lt('"'.concat(e,'" is not a valid Decimal128 string - ').concat(t))}var Vd=function(){function e(t){if(!(this instanceof e))return new e(t);if(typeof t=="string")this.bytes=e.fromString(t).bytes;else if(Ld(t)){if(t.byteLength!==16)throw new lt("Decimal128 must take a Buffer of 16 bytes");this.bytes=t}else throw new lt("Decimal128 must take a Buffer or string")}return e.fromString=function(t){var n=!1,r=!1,i=!1,o=0,s=0,a=0,l=0,u=0,d=[0],h=0,_=0,m=0,b=0,S=0,N=0,P=new se(0,0),z=new se(0,0),re=0,q=0;if(t.length>=7e3)throw new lt(""+t+" not a valid Decimal128 string");var ie=t.match(zA),Ae=t.match(qA),Me=t.match(WA);if(!ie&&!Ae&&!Me||t.length===0)throw new lt(""+t+" not a valid Decimal128 string");if(ie){var F=ie[2],_e=ie[4],ue=ie[5],he=ie[6];_e&&he===void 0&&si(t,"missing exponent power"),_e&&F===void 0&&si(t,"missing exponent base"),_e===void 0&&(ue||he)&&si(t,"missing e before exponent")}if((t[q]==="+"||t[q]==="-")&&(n=t[q++]==="-"),!bg(t[q])&&t[q]!=="."){if(t[q]==="i"||t[q]==="I")return new e(Fe.from(n?_g:vg));if(t[q]==="N")return new e(Fe.from(rc))}for(;bg(t[q])||t[q]===".";){if(t[q]==="."){r&&si(t,"contains multiple periods"),r=!0,q=q+1;continue}h<34&&(t[q]!=="0"||i)&&(i||(u=s),i=!0,d[_++]=parseInt(t[q],10),h=h+1),i&&(a=a+1),r&&(l=l+1),s=s+1,q=q+1}if(r&&!s)throw new lt(""+t+" not a valid Decimal128 string");if(t[q]==="e"||t[q]==="E"){var Oe=t.substr(++q).match(GA);if(!Oe||!Oe[2])return new e(Fe.from(rc));S=parseInt(Oe[0],10),q=q+Oe[0].length}if(t[q])return new e(Fe.from(rc));if(m=0,!h)m=0,b=0,d[0]=0,a=1,h=1,o=0;else if(b=h-1,o=a,o!==1)for(;d[u+o-1]===0;)o=o-1;for(S<=l&&l-S>16384?S=nc:S=S-l;S>Zi;){if(b=b+1,b-m>ZA){var Ke=d.join("");if(Ke.match(/^0+$/)){S=Zi;break}si(t,"overflow")}S=S-1}for(;S<nc||h<a;){if(b===0&&o<h){S=nc,o=0;break}if(h<a?a=a-1:b=b-1,S<Zi)S=S+1;else{var Ke=d.join("");if(Ke.match(/^0+$/)){S=Zi;break}si(t,"overflow")}}if(b-m+1<o){var He=s;r&&(u=u+1,He=He+1),n&&(u=u+1,He=He+1);var Je=parseInt(t[u+b+1],10),st=0;if(Je>=5&&(st=1,Je===5)){for(st=d[b]%2===1?1:0,N=u+b+2;N<He;N++)if(parseInt(t[N],10)){st=1;break}}if(st){for(var ke=b;ke>=0;ke--)if(++d[ke]>9&&(d[ke]=0,ke===0))if(S<Zi)S=S+1,d[ke]=1;else return new e(Fe.from(n?_g:vg))}}if(P=se.fromNumber(0),z=se.fromNumber(0),o===0)P=se.fromNumber(0),z=se.fromNumber(0);else if(b-m<17){var ke=m;for(z=se.fromNumber(d[ke++]),P=new se(0,0);ke<=b;ke++)z=z.multiply(se.fromNumber(10)),z=z.add(se.fromNumber(d[ke]))}else{var ke=m;for(P=se.fromNumber(d[ke++]);ke<=b-17;ke++)P=P.multiply(se.fromNumber(10)),P=P.add(se.fromNumber(d[ke]));for(z=se.fromNumber(d[ke++]);ke<=b;ke++)z=z.multiply(se.fromNumber(10)),z=z.add(se.fromNumber(d[ke]))}var O=QA(P,se.fromString("100000000000000000"));O.low=O.low.add(z),eM(O.low,z)&&(O.high=O.high.add(se.fromNumber(1))),re=S+mg;var D={low:se.fromNumber(0),high:se.fromNumber(0)};O.high.shiftRightUnsigned(49).and(se.fromNumber(1)).equals(se.fromNumber(1))?(D.high=D.high.or(se.fromNumber(3).shiftLeft(61)),D.high=D.high.or(se.fromNumber(re).and(se.fromNumber(16383).shiftLeft(47))),D.high=D.high.or(O.high.and(se.fromNumber(0x7fffffffffff)))):(D.high=D.high.or(se.fromNumber(re&16383).shiftLeft(49)),D.high=D.high.or(O.high.and(se.fromNumber(562949953421311)))),D.low=O.low,n&&(D.high=D.high.or(se.fromString("9223372036854775808")));var y=Fe.alloc(16);return q=0,y[q++]=D.low.low&255,y[q++]=D.low.low>>8&255,y[q++]=D.low.low>>16&255,y[q++]=D.low.low>>24&255,y[q++]=D.low.high&255,y[q++]=D.low.high>>8&255,y[q++]=D.low.high>>16&255,y[q++]=D.low.high>>24&255,y[q++]=D.high.low&255,y[q++]=D.high.low>>8&255,y[q++]=D.high.low>>16&255,y[q++]=D.high.low>>24&255,y[q++]=D.high.high&255,y[q++]=D.high.high>>8&255,y[q++]=D.high.high>>16&255,y[q++]=D.high.high>>24&255,new e(y)},e.prototype.toString=function(){for(var t,n=0,r=new Array(36),i=0;i<r.length;i++)r[i]=0;var o=0,s=!1,a,l={parts:[0,0,0,0]},u,d,h=[];o=0;var _=this.bytes,m=_[o++]|_[o++]<<8|_[o++]<<16|_[o++]<<24,b=_[o++]|_[o++]<<8|_[o++]<<16|_[o++]<<24,S=_[o++]|_[o++]<<8|_[o++]<<16|_[o++]<<24,N=_[o++]|_[o++]<<8|_[o++]<<16|_[o++]<<24;o=0;var P={low:new se(m,b),high:new se(S,N)};P.high.lessThan(se.ZERO)&&h.push("-");var z=N>>26&YA;if(z>>3===3){if(z===KA)return h.join("")+"Infinity";if(z===JA)return"NaN";t=N>>15&yg,a=8+(N>>14&1)}else a=N>>14&7,t=N>>17&yg;var re=t-mg;if(l.parts[0]=(N&16383)+((a&15)<<14),l.parts[1]=S,l.parts[2]=b,l.parts[3]=m,l.parts[0]===0&&l.parts[1]===0&&l.parts[2]===0&&l.parts[3]===0)s=!0;else for(d=3;d>=0;d--){var q=0,ie=XA(l);if(l=ie.quotient,q=ie.rem.low,!!q)for(u=8;u>=0;u--)r[d*9+u]=q%10,q=Math.floor(q/10)}if(s)n=1,r[o]=0;else for(n=36;!r[o];)n=n-1,o=o+1;var Ae=n-1+re;if(Ae>=34||Ae<=-7||re>0){if(n>34)return h.push("".concat(0)),re>0?h.push("E+".concat(re)):re<0&&h.push("E".concat(re)),h.join("");h.push("".concat(r[o++])),n=n-1,n&&h.push(".");for(var i=0;i<n;i++)h.push("".concat(r[o++]));h.push("E"),Ae>0?h.push("+".concat(Ae)):h.push("".concat(Ae))}else if(re>=0)for(var i=0;i<n;i++)h.push("".concat(r[o++]));else{var Me=n+re;if(Me>0)for(var i=0;i<Me;i++)h.push("".concat(r[o++]));else h.push("0");for(h.push(".");Me++<0;)h.push("0");for(var i=0;i<n-Math.max(Me-1,0);i++)h.push("".concat(r[o++]))}return h.join("")},e.prototype.toJSON=function(){return{$numberDecimal:this.toString()}},e.prototype.toExtendedJSON=function(){return{$numberDecimal:this.toString()}},e.fromExtendedJSON=function(t){return e.fromString(t.$numberDecimal)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new Decimal128("'.concat(this.toString(),'")')},e}();Object.defineProperty(Vd.prototype,"_bsontype",{value:"Decimal128"});var pl=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=+t}return e.prototype.valueOf=function(){return this.value},e.prototype.toJSON=function(){return this.value},e.prototype.toString=function(t){return this.value.toString(t)},e.prototype.toExtendedJSON=function(t){return t&&(t.legacy||t.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-".concat(this.value.toFixed(1))}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}},e.fromExtendedJSON=function(t,n){var r=parseFloat(t.$numberDouble);return n&&n.relaxed?r:new e(r)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){var t=this.toExtendedJSON();return"new Double(".concat(t.$numberDouble,")")},e}();Object.defineProperty(pl.prototype,"_bsontype",{value:"Double"});var gl=function(){function e(t){if(!(this instanceof e))return new e(t);t instanceof Number&&(t=t.valueOf()),this.value=+t|0}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(t){return this.value.toString(t)},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(t){return t&&(t.relaxed||t.legacy)?this.value:{$numberInt:this.value.toString()}},e.fromExtendedJSON=function(t,n){return n&&n.relaxed?parseInt(t.$numberInt,10):new e(t.$numberInt)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new Int32(".concat(this.valueOf(),")")},e}();Object.defineProperty(gl.prototype,"_bsontype",{value:"Int32"});var jd=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$maxKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MaxKey()"},e}();Object.defineProperty(jd.prototype,"_bsontype",{value:"MaxKey"});var Fd=function(){function e(){if(!(this instanceof e))return new e}return e.prototype.toExtendedJSON=function(){return{$minKey:1}},e.fromExtendedJSON=function(){return new e},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return"new MinKey()"},e}();Object.defineProperty(Fd.prototype,"_bsontype",{value:"MinKey"});var tM=new RegExp("^[0-9a-fA-F]{24}$"),xr=null,kn=Symbol("id"),Ht=function(){function e(t){if(!(this instanceof e))return new e(t);var n;if(typeof t=="object"&&t&&"id"in t){if(typeof t.id!="string"&&!ArrayBuffer.isView(t.id))throw new lt("Argument passed in must have an id that is of type string or Buffer");"toHexString"in t&&typeof t.toHexString=="function"?n=Fe.from(t.toHexString(),"hex"):n=t.id}else n=t;if(n==null||typeof n=="number")this[kn]=e.generate(typeof n=="number"?n:void 0);else if(ArrayBuffer.isView(n)&&n.byteLength===12)this[kn]=n instanceof Fe?n:ya(n);else if(typeof n=="string")if(n.length===12){var r=Fe.from(n);if(r.byteLength===12)this[kn]=r;else throw new lt("Argument passed in must be a string of 12 bytes")}else if(n.length===24&&tM.test(n))this[kn]=Fe.from(n,"hex");else throw new lt("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new lt("Argument passed in does not match the accepted types");e.cacheHexString&&(this.__id=this.id.toString("hex"))}return Object.defineProperty(e.prototype,"id",{get:function(){return this[kn]},set:function(t){this[kn]=t,e.cacheHexString&&(this.__id=t.toString("hex"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"generationTime",{get:function(){return this.id.readInt32BE(0)},set:function(t){this.id.writeUInt32BE(t,0)},enumerable:!1,configurable:!0}),e.prototype.toHexString=function(){if(e.cacheHexString&&this.__id)return this.__id;var t=this.id.toString("hex");return e.cacheHexString&&!this.__id&&(this.__id=t),t},e.getInc=function(){return e.index=(e.index+1)%16777215},e.generate=function(t){typeof t!="number"&&(t=Math.floor(Date.now()/1e3));var n=e.getInc(),r=Fe.alloc(12);return r.writeUInt32BE(t,0),xr===null&&(xr=Q0(5)),r[4]=xr[0],r[5]=xr[1],r[6]=xr[2],r[7]=xr[3],r[8]=xr[4],r[11]=n&255,r[10]=n>>8&255,r[9]=n>>16&255,r},e.prototype.toString=function(t){return t?this.id.toString(t):this.toHexString()},e.prototype.toJSON=function(){return this.toHexString()},e.prototype.equals=function(t){if(t==null)return!1;if(t instanceof e)return this[kn][11]===t[kn][11]&&this[kn].equals(t[kn]);if(typeof t=="string"&&e.isValid(t)&&t.length===12&&Ld(this.id))return t===Fe.prototype.toString.call(this.id,"latin1");if(typeof t=="string"&&e.isValid(t)&&t.length===24)return t.toLowerCase()===this.toHexString();if(typeof t=="string"&&e.isValid(t)&&t.length===12)return Fe.from(t).equals(this.id);if(typeof t=="object"&&"toHexString"in t&&typeof t.toHexString=="function"){var n=t.toHexString(),r=this.toHexString().toLowerCase();return typeof n=="string"&&n.toLowerCase()===r}return!1},e.prototype.getTimestamp=function(){var t=new Date,n=this.id.readUInt32BE(0);return t.setTime(Math.floor(n)*1e3),t},e.createPk=function(){return new e},e.createFromTime=function(t){var n=Fe.from([0,0,0,0,0,0,0,0,0,0,0,0]);return n.writeUInt32BE(t,0),new e(n)},e.createFromHexString=function(t){if(typeof t>"u"||t!=null&&t.length!==24)throw new lt("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");return new e(Fe.from(t,"hex"))},e.isValid=function(t){if(t==null)return!1;try{return new e(t),!0}catch{return!1}},e.prototype.toExtendedJSON=function(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}},e.fromExtendedJSON=function(t){return new e(t.$oid)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e.prototype.inspect=function(){return'new ObjectId("'.concat(this.toHexString(),'")')},e.index=Math.floor(Math.random()*16777215),e}();Object.defineProperty(Ht.prototype,"generate",{value:dl(function(e){return Ht.generate(e)},"Please use the static `ObjectId.generate(time)` instead")});Object.defineProperty(Ht.prototype,"getInc",{value:dl(function(){return Ht.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(Ht.prototype,"get_inc",{value:dl(function(){return Ht.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(Ht,"get_inc",{value:dl(function(){return Ht.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(Ht.prototype,"_bsontype",{value:"ObjectID"});function nM(e){return e.split("").sort().join("")}var ko=function(){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this.pattern=t,this.options=nM(n??""),this.pattern.indexOf("\0")!==-1)throw new Nr("BSON Regex patterns cannot contain null bytes, found: ".concat(JSON.stringify(this.pattern)));if(this.options.indexOf("\0")!==-1)throw new Nr("BSON Regex options cannot contain null bytes, found: ".concat(JSON.stringify(this.options)));for(var r=0;r<this.options.length;r++)if(!(this.options[r]==="i"||this.options[r]==="m"||this.options[r]==="x"||this.options[r]==="l"||this.options[r]==="s"||this.options[r]==="u"))throw new Nr("The regular expression option [".concat(this.options[r],"] is not supported"))}return e.parseOptions=function(t){return t?t.split("").sort().join(""):""},e.prototype.toExtendedJSON=function(t){return t=t||{},t.legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}},e.fromExtendedJSON=function(t){if("$regex"in t)if(typeof t.$regex!="string"){if(t.$regex._bsontype==="BSONRegExp")return t}else return new e(t.$regex,e.parseOptions(t.$options));if("$regularExpression"in t)return new e(t.$regularExpression.pattern,e.parseOptions(t.$regularExpression.options));throw new lt("Unexpected BSONRegExp EJSON object form: ".concat(JSON.stringify(t)))},e}();Object.defineProperty(ko.prototype,"_bsontype",{value:"BSONRegExp"});var Bd=function(){function e(t){if(!(this instanceof e))return new e(t);this.value=t}return e.prototype.valueOf=function(){return this.value},e.prototype.toString=function(){return this.value},e.prototype.inspect=function(){return'new BSONSymbol("'.concat(this.value,'")')},e.prototype.toJSON=function(){return this.value},e.prototype.toExtendedJSON=function(){return{$symbol:this.value}},e.fromExtendedJSON=function(t){return new e(t.$symbol)},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},e}();Object.defineProperty(Bd.prototype,"_bsontype",{value:"Symbol"});var rM=se,rb=function(e){hl(t,e);function t(n,r){var i=this;return i instanceof t?(se.isLong(n)?i=e.call(this,n.low,n.high,!0)||this:rs(n)&&typeof n.t<"u"&&typeof n.i<"u"?i=e.call(this,n.i,n.t,!0)||this:i=e.call(this,n,r,!0)||this,Object.defineProperty(i,"_bsontype",{value:"Timestamp",writable:!1,configurable:!1,enumerable:!1}),i):new t(n,r)}return t.prototype.toJSON=function(){return{$timestamp:this.toString()}},t.fromInt=function(n){return new t(se.fromInt(n,!0))},t.fromNumber=function(n){return new t(se.fromNumber(n,!0))},t.fromBits=function(n,r){return new t(n,r)},t.fromString=function(n,r){return new t(se.fromString(n,!0,r))},t.prototype.toExtendedJSON=function(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}},t.fromExtendedJSON=function(n){return new t(n.$timestamp)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new Timestamp({ t: ".concat(this.getHighBits(),", i: ").concat(this.getLowBits()," })")},t.MAX_VALUE=se.MAX_UNSIGNED_VALUE,t}(rM);function iM(e){return rs(e)&&Reflect.has(e,"_bsontype")&&typeof e._bsontype=="string"}var ib=2147483647,ob=-2147483648,sb=9223372036854776e3,ab=-9223372036854776e3,oM={$oid:Ht,$binary:Ar,$uuid:Ar,$symbol:Bd,$numberInt:gl,$numberDecimal:Vd,$numberDouble:pl,$numberLong:se,$minKey:Fd,$maxKey:jd,$regex:ko,$regularExpression:ko,$timestamp:rb};function lb(e,t){if(t===void 0&&(t={}),typeof e=="number"){if(t.relaxed||t.legacy)return e;if(Math.floor(e)===e){if(e>=ob&&e<=ib)return new gl(e);if(e>=ab&&e<=sb)return se.fromNumber(e)}return new pl(e)}if(e==null||typeof e!="object")return e;if(e.$undefined)return null;for(var n=Object.keys(e).filter(function(h){return h.startsWith("$")&&e[h]!=null}),r=0;r<n.length;r++){var i=oM[n[r]];if(i)return i.fromExtendedJSON(e,t)}if(e.$date!=null){var o=e.$date,s=new Date;return t.legacy?typeof o=="number"?s.setTime(o):typeof o=="string"&&s.setTime(Date.parse(o)):typeof o=="string"?s.setTime(Date.parse(o)):se.isLong(o)?s.setTime(o.toNumber()):typeof o=="number"&&t.relaxed&&s.setTime(o),s}if(e.$code!=null){var a=Object.assign({},e);return e.$scope&&(a.$scope=lb(e.$scope)),fl.fromExtendedJSON(e)}if(HA(e)||e.$dbPointer){var l=e.$ref?e:e.$dbPointer;if(l instanceof Oo)return l;var u=Object.keys(l).filter(function(h){return h.startsWith("$")}),d=!0;if(u.forEach(function(h){["$ref","$id","$db"].indexOf(h)===-1&&(d=!1)}),d)return Oo.fromExtendedJSON(l)}return e}function sM(e,t){return e.map(function(n,r){t.seenObjects.push({propertyName:"index ".concat(r),obj:null});try{return cr(n,t)}finally{t.seenObjects.pop()}})}function wg(e){var t=e.toISOString();return e.getUTCMilliseconds()!==0?t:t.slice(0,-5)+"Z"}function cr(e,t){if((typeof e=="object"||typeof e=="function")&&e!==null){var n=t.seenObjects.findIndex(function(P){return P.obj===e});if(n!==-1){var r=t.seenObjects.map(function(P){return P.propertyName}),i=r.slice(0,n).map(function(P){return"".concat(P," -> ")}).join(""),o=r[n],s=" -> "+r.slice(n+1,r.length-1).map(function(P){return"".concat(P," -> ")}).join(""),a=r[r.length-1],l=" ".repeat(i.length+o.length/2),u="-".repeat(s.length+(o.length+a.length)/2-1);throw new lt(`Converting circular structure to EJSON:
|
|
39
39
|
`+" ".concat(i).concat(o).concat(s).concat(a,`
|
|
40
|
-
`)+" ".concat(l,"\\").concat(u,"/"))}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return dL(e,t);if(e===void 0)return null;if(e instanceof Date||zA(e)){var d=e.getTime(),h=d>-1&&d<2534023188e5;return t.legacy?t.relaxed&&h?{$date:e.getTime()}:{$date:xg(e)}:t.relaxed&&h?{$date:xg(e)}:{$date:{$numberLong:e.getTime().toString()}}}if(typeof e=="number"&&(!t.relaxed||!isFinite(e))){if(Math.floor(e)===e){var v=e>=sb&&e<=ob,m=e>=lb&&e<=ab;if(v)return{$numberInt:e.toString()};if(m)return{$numberLong:e.toString()}}return{$numberDouble:e.toString()}}if(e instanceof RegExp||$A(e)){var w=e.flags;if(w===void 0){var C=e.toString().match(/[gimuy]*$/);C&&(w=C[0])}var A=new No(e.source,w);return A.toExtendedJSON(t)}return e!=null&&typeof e=="object"?pL(e,t):e}var fL={Binary:function(e){return new Ar(e.value(),e.sub_type)},Code:function(e){return new fl(e.code,e.scope)},DBRef:function(e){return new ko(e.collection||e.namespace,e.oid,e.db,e.fields)},Decimal128:function(e){return new Fd(e.bytes)},Double:function(e){return new pl(e.value)},Int32:function(e){return new gl(e.value)},Long:function(e){return ae.fromBits(e.low!=null?e.low:e.low_,e.low!=null?e.high:e.high_,e.low!=null?e.unsigned:e.unsigned_)},MaxKey:function(){return new Bd},MinKey:function(){return new Ud},ObjectID:function(e){return new $t(e)},ObjectId:function(e){return new $t(e)},BSONRegExp:function(e){return new No(e.pattern,e.options)},Symbol:function(e){return new Hd(e.value)},Timestamp:function(e){return ib.fromBits(e.low,e.high)}};function pL(e,t){if(e==null||typeof e!="object")throw new Pr("not an object instance");var n=e._bsontype;if(typeof n>"u"){var r={};for(var i in e){t.seenObjects.push({propertyName:i,obj:null});try{var o=ur(e[i],t);i==="__proto__"?Object.defineProperty(r,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):r[i]=o}finally{t.seenObjects.pop()}}return r}else if(uL(e)){var s=e;if(typeof s.toExtendedJSON!="function"){var a=fL[e._bsontype];if(!a)throw new lt("Unrecognized or invalid _bsontype: "+e._bsontype);s=a(s)}return n==="Code"&&s.scope?s=new fl(s.code,ur(s.scope,t)):n==="DBRef"&&s.oid&&(s=new ko(ur(s.collection,t),ur(s.oid,t),ur(s.db,t),ur(s.fields,t))),s.toExtendedJSON(t)}else throw new Pr("_bsontype must be a string, but was: "+typeof n)}var Sg;(function(e){function t(o,s){var a=Object.assign({},{relaxed:!0,legacy:!1},s);return typeof a.relaxed=="boolean"&&(a.strict=!a.relaxed),typeof a.strict=="boolean"&&(a.relaxed=!a.strict),JSON.parse(o,function(l,u){if(l.indexOf("\0")!==-1)throw new Pr("BSON Document field names cannot contain null bytes, found: ".concat(JSON.stringify(l)));return cb(u,a)})}e.parse=t;function n(o,s,a,l){a!=null&&typeof a=="object"&&(l=a,a=0),s!=null&&typeof s=="object"&&!Array.isArray(s)&&(l=s,s=void 0,a=0);var u=Object.assign({relaxed:!0,legacy:!1},l,{seenObjects:[{propertyName:"(root)",obj:null}]}),d=ur(o,u);return JSON.stringify(d,s,a)}e.stringify=n;function r(o,s){return s=s||{},JSON.parse(n(o,s))}e.serialize=r;function i(o,s){return s=s||{},t(JSON.stringify(o),s)}e.deserialize=i})(Sg||(Sg={}));var Cg,Ig=Q0();Ig.Map?Cg=Ig.Map:Cg=function(){function e(t){t===void 0&&(t=[]),this._keys=[],this._values={};for(var n=0;n<t.length;n++)if(t[n]!=null){var r=t[n],i=r[0],o=r[1];this._keys.push(i),this._values[i]={v:o,i:this._keys.length-1}}}return e.prototype.clear=function(){this._keys=[],this._values={}},e.prototype.delete=function(t){var n=this._values[t];return n==null?!1:(delete this._values[t],this._keys.splice(n.i,1),!0)},e.prototype.entries=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?[r,t._values[r].v]:void 0,done:r===void 0}}}},e.prototype.forEach=function(t,n){n=n||this;for(var r=0;r<this._keys.length;r++){var i=this._keys[r];t.call(n,this._values[i].v,i,n)}},e.prototype.get=function(t){return this._values[t]?this._values[t].v:void 0},e.prototype.has=function(t){return this._values[t]!=null},e.prototype.keys=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?r:void 0,done:r===void 0}}}},e.prototype.set=function(t,n){return this._values[t]?(this._values[t].v=n,this):(this._keys.push(t),this._values[t]={v:n,i:this._keys.length-1},this)},e.prototype.values=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?t._values[r].v:void 0,done:r===void 0}}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!1,configurable:!0}),e}();var nV=ae.fromNumber(qA),rV=ae.fromNumber(GA),oc=new Uint8Array(8),iV=new DataView(oc.buffer,oc.byteOffset,oc.byteLength),gL=1024*1024*17,oV=Be.alloc(gL),_L=class{triggerID;nudgeID;engagementID;contentID;shortID;contentType;variation;props;objective;onsiteDeliveryType;holdout;constructor(e){e=e||{},this.triggerID=e.id||e.triggerID,this.nudgeID=e.nudgeID,this.shortID=e.shortID,this.contentType=e.contentType,this.engagementID=e.engagementID,this.contentID=e.contentID,this.variation=e.variation,this.props=e.props,this.objective=e.objective,this.onsiteDeliveryType=e.onsiteDeliveryType,this.holdout=e.holdout}},sc=class{constructor(e,t={},n,r){this.name=e,this.properties=t,this.id=r?new $t(r):new $t,this.occurred=new Date,n&&(this.trigger=new _L(n)),this.newEvent=!r}trigger;items;videos;id;newEvent;cart;currentItem;deviceProps;landingPage;occurred;page;sessionID;sessionNumber;locale};function mL(e,t){e&1&&(mr(),$e(0,"path",3))}function vL(e,t){e&1&&(mr(),$e(0,"path",4))}var ub=class Bu{muted;videoEl;toggled=new Xe;toggleMute(t){t.stopPropagation(),t.preventDefault(),this.muted=!this.muted,this.videoEl.muted=this.muted,this.toggled.emit(this.muted),this.muted||this.videoEl.play()}static \u0275fac=function(t){return new(t||Bu)};static \u0275cmp=Nt({type:Bu,selectors:[["cooee-mute-toggle"]],inputs:{muted:"muted",videoEl:"videoEl"},outputs:{toggled:"toggled"},decls:5,vars:1,consts:[["type","button",1,"lc:bg-black/50",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"],["d","M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"]],template:function(t,n){t&1&&(Y(0,"button",0),ot("click",function(r){return n.toggleMute(r)}),mr(),Y(1,"svg",1),$e(2,"path",2),it(3,mL,1,0,":svg:path",3)(4,vL,1,0,":svg:path",4),K()()),t&2&&(Z(3),rt(n.muted?3:4))},styles:["button[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:100%}"]})},ac;function yL(){if(ac==null){let e=typeof document<"u"?document.head:null;ac=!!(e&&(e.createShadowRoot||e.attachShadow))}return ac}function _l(e){if(yL()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function lc(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function wn(e){return e.composedPath?e.composedPath()[0]:e.target}function hb(e){return e.buttons===0||e.detail===0}function db(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}function bL(e,t=0){return wL(e)?Number(e):arguments.length===2?t:0}function wL(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function _n(e){return e instanceof Mt?e.nativeElement:e}function Ht(e,t,n,r,i){let o=parseInt(ep.major),s=parseInt(ep.minor);return o>19||o===19&&s>0||o===0&&s===0?e.listen(t,n,r,i):(t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)})}var Is=new WeakMap,ml=(()=>{class e{_appRef;_injector=N(Tt);_environmentInjector=N(Kn);load(n){let r=this._appRef=this._appRef||this._injector.get(vr),i=Is.get(r);i||(i={loaders:new Set,refs:[]},Is.set(r,i),r.onDestroy(()=>{Is.get(r)?.refs.forEach(o=>o.destroy()),Is.delete(r)})),i.loaders.has(n)||(i.loaders.add(n),i.refs.push(Vy(n,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Uu;try{Uu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Uu=!1}var ir=(()=>{class e{_platformId=N(Wa);isBrowser=this._platformId?VD(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Uu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),EL=new Se("cdk-dir-doc",{providedIn:"root",factory:xL});function xL(){return N(tt)}var SL=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function CL(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?SL.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var Ea=(()=>{class e{value="ltr";change=new Xe;constructor(){let n=N(EL,{optional:!0});if(n){let r=n.body?n.body.dir:null,i=n.documentElement?n.documentElement.dir:null;this.value=CL(r||i||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xr;function IL(){if(xr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return xr=!1,xr;if("scrollBehavior"in document.documentElement.style)xr=!0;else{let e=Element.prototype.scrollTo;e?xr=!/\{\s*\[native code\]\s*\}/.test(e.toString()):xr=!1}}return xr}var TL=20,OL=(()=>{class e{_ngZone=N(Ye);_platform=N(ir);_renderer=N(Dn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new ye;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=TL){return this._platform.isBrowser?new Et(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=n>0?this._scrolled.pipe(B_(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):ch()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let i=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(uh(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_scrollableContainsElement(n,r){let i=_n(r),o=n.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),DL=20,$d=(()=>{class e{_platform=N(ir);_listeners;_viewportSize;_change=new ye;_document=N(tt,{optional:!0});constructor(){let n=N(Ye),r=N(Dn).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=o=>this._change.next(o);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),i=n.documentElement,o=i.getBoundingClientRect(),s=-o.top||n.body.scrollTop||r.scrollY||i.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:s,left:a}}change(n=DL){return n>0?this._change.pipe(B_(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cc={},fb=(()=>{class e{_appId=N(Lh);getId(n){return this._appId!=="ng"&&(n+=this._appId),cc.hasOwnProperty(n)||(cc[n]=0),`${n}${cc[n]++}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pb(e){return Array.isArray(e)?e:[e]}function gb(e){let t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),r=e.nodeName.toLowerCase();t.removeAttribute("id");for(let i=0;i<n.length;i++)n[i].removeAttribute("id");return r==="canvas"?Dg(e,t):(r==="input"||r==="select"||r==="textarea")&&Og(e,t),Tg("canvas",e,t,Dg),Tg("input, textarea, select",e,t,Og),t}function Tg(e,t,n,r){let i=t.querySelectorAll(e);if(i.length){let o=n.querySelectorAll(e);for(let s=0;s<i.length;s++)r(i[s],o[s])}}var RL=0;function Og(e,t){t.type!=="file"&&(t.value=e.value),t.type==="radio"&&t.name&&(t.name=`mat-clone-${t.name}-${RL++}`)}function Dg(e,t){let n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch{}}function zd(e){let t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Hu(e,t,n){let{top:r,bottom:i,left:o,right:s}=e;return n>=r&&n<=i&&t>=o&&t<=s}function uo(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function Rg(e,t,n,r){let{top:i,right:o,bottom:s,left:a,width:l,height:u}=e,d=l*t,h=u*t;return r>i-h&&r<s+h&&n>a-d&&n<o+d}var _b=class{_document;positions=new Map;constructor(e){this._document=e}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:zd(t)})})}handleScroll(e){let t=wn(e),n=this.positions.get(t);if(!n)return null;let r=n.scrollPosition,i,o;if(t===this._document){let l=this.getViewportScrollPosition();i=l.top,o=l.left}else i=t.scrollTop,o=t.scrollLeft;let s=r.top-i,a=r.left-o;return this.positions.forEach((l,u)=>{l.clientRect&&t!==u&&t.contains(u)&&uo(l.clientRect,s,a)}),r.top=i,r.left=o,{top:s,left:a}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function mb(e,t){let n=e.rootNodes;if(n.length===1&&n[0].nodeType===t.ELEMENT_NODE)return n[0];let r=t.createElement("div");return n.forEach(i=>r.appendChild(i)),r}function Wd(e,t,n){for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];i?e.setProperty(r,i,n?.has(r)?"important":""):e.removeProperty(r)}return e}function si(e,t){let n=t?"":"none";Wd(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function kg(e,t,n){Wd(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},n)}function xa(e,t){return t&&t!="none"?e+" "+t:e}function Ng(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=Sa(t.left,t.top)}function Sa(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function Pg(e){let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function kL(e){let t=getComputedStyle(e),n=uc(t,"transition-property"),r=n.find(a=>a==="transform"||a==="all");if(!r)return 0;let i=n.indexOf(r),o=uc(t,"transition-duration"),s=uc(t,"transition-delay");return Pg(o[i])+Pg(s[i])}function uc(e,t){return e.getPropertyValue(t).split(",").map(n=>n.trim())}var NL=new Set(["position"]),PL=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(e,t,n,r,i,o,s,a,l,u){this._document=e,this._rootElement=t,this._direction=n,this._initialDomRect=r,this._previewTemplate=i,this._previewClass=o,this._pickupPositionOnPage=s,this._initialTransform=a,this._zIndex=l,this._renderer=u}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),Ag(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return kL(this._preview)}addEventListener(e,t){return this._renderer.listen(this._preview,e,t)}_createPreview(){let e=this._previewTemplate,t=this._previewClass,n=e?e.template:null,r;if(n&&e){let i=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(n,e.context);o.detectChanges(),r=mb(o,this._document),this._previewEmbeddedView=o,e.matchSize?Ng(r,i):r.style.transform=Sa(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=gb(this._rootElement),Ng(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Wd(r.style,{"pointer-events":"none",margin:Ag(r)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},NL),si(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("popover","manual"),r.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(i=>r.classList.add(i)):r.classList.add(t)),r}};function Ag(e){return"showPopover"in e}var AL={passive:!0},Lg={passive:!1},LL={passive:!1,capture:!0},ML=800,Mg=new Set(["position"]),VL=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=Mn(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new ye;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=bt.EMPTY;_pointerUpSubscription=bt.EMPTY;_scrollSubscription=bt.EMPTY;_resizeSubscription=bt.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>si(t,e)))}_disabled=!1;beforeStarted=new ye;started=new ye;released=new ye;ended=new ye;entered=new ye;exited=new ye;dropped=new ye;moved=this._moveEvents;data;constrainPosition;constructor(e,t,n,r,i,o,s){this._config=t,this._document=n,this._ngZone=r,this._viewportRuler=i,this._dragDropRegistry=o,this._renderer=s,this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new _b(n),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(n=>_n(n)),this._handles.forEach(n=>si(n,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&t.add(n)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let t=_n(e);return t!==this._rootElement&&(this._removeRootElementListeners(),this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[Ht(this._renderer,t,"mousedown",this._pointerDown,Lg),Ht(this._renderer,t,"touchstart",this._pointerDown,AL),Ht(this._renderer,t,"dragstart",this._nativeDragStart,Lg)]),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?_n(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),si(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),si(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)};_pointerMove=e=>{let t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging()){let r=Math.abs(t.x-this._pickupPositionOnPage.x),i=Math.abs(t.y-this._pickupPositionOnPage.y);if(r+i>=this._config.dragStartThreshold){let o=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),s=this._dropContainer;if(!o){this._endDragSequence(e);return}(!s||!s.isDragging()&&!s.isReceiving())&&(e.cancelable&&e.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(e)))}return}e.cancelable&&e.preventDefault();let n=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,t);else{let r=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,i=this._activeTransform;i.x=n.x-r.x+this._passiveTransform.x,i.y=n.y-r.y+this._passiveTransform.y,this._applyRootElementTransform(i.x,i.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:e,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})};_pointerUp=e=>{this._endDragSequence(e)};_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){Ki(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),n=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=Ht(this._renderer,t,"selectstart",jL,LL)}),n){let r=this._rootElement,i=r.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(s,r),this._initialTransform=r.style.transform||"",this._preview=new PL(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(i,t)),kg(r,!1,Mg),this._document.body.appendChild(i.replaceChild(o,r)),this.started.next({source:this,event:e}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();let n=this.isDragging(),r=Ki(t),i=!r&&t.button!==0,o=this._rootElement,s=wn(t),a=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+ML>Date.now(),l=r?db(t):hb(t);if(s&&s.draggable&&t.type==="mousedown"&&t.preventDefault(),n||i||a||l)return;if(this._handles.length){let h=o.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=zd(this._boundaryElement));let u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);let d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){kg(this._rootElement,!0,Mg),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,n=t.getItemIndex(this),r=this._getPointerPositionOnPage(e),i=this._getDragDistance(r),o=t._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:i,dropPoint:r,event:e}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:i,dropPoint:r,event:e}),t.drop(this,n,this._initialIndex,this._initialContainer,o,i,r,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:r}){let i=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,e,t,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{let r=s=>{(!s||this._preview&&wn(s)===this._preview.element&&s.propertyName==="transform")&&(o(),n(),clearTimeout(i))},i=setTimeout(r,t*1.5),o=this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,t=e?e.template:null,n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=mb(this._placeholderRef,this._document)):n=gb(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t,n){let r=t===this._rootElement?null:t,i=r?r.getBoundingClientRect():e,o=Ki(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition(),a=o.pageX-i.left-s.left,l=o.pageY-i.top-s.top;return{x:i.left-e.left+a,y:i.top-e.top+l}}_getPointerPositionOnPage(e){let t=this._getViewportScrollPosition(),n=Ki(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,r=n.pageX-t.left,i=n.pageY-t.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=i,s.matrixTransform(o.inverse())}}return{x:r,y:i}}_getConstrainedPointerPosition(e){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:n,y:r}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||t==="x"?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(n=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:i,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,s=this._boundaryRect,{width:a,height:l}=this._getPreviewRect(),u=s.top+o,d=s.bottom-(l-o),h=s.left+i,v=s.right-(a-i);n=Vg(n,h,v),r=Vg(r,u,d)}return{x:n,y:r}}_updatePointerDirectionDelta(e){let{x:t,y:n}=e,r=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-i.x),s=Math.abs(n-i.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=t>i.x?1:-1,i.x=t),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>i.y?1:-1,i.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,si(this._rootElement,e))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(e=>e()),this._rootElementCleanups=void 0}_applyRootElementTransform(e,t){let n=1/this.scale,r=Sa(e*n,t*n),i=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=i.transform&&i.transform!="none"?i.transform:""),i.transform=xa(r,this._initialTransform)}_applyPreviewTransform(e,t){let n=this._previewTemplate?.template?void 0:this._initialTransform,r=Sa(e,t);this._preview.setTransform(xa(r,n))}_getDragDistance(e){let t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(e===0&&t===0||this.isDragging()||!this._boundaryElement)return;let n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(r.width===0&&r.height===0||n.width===0&&n.height===0)return;let i=r.left-n.left,o=n.right-r.right,s=r.top-n.top,a=n.bottom-r.bottom;r.width>n.width?(i>0&&(e+=i),o>0&&(e-=o)):e=0,r.height>n.height?(s>0&&(t+=s),a>0&&(t-=a)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){let t=this.dragStartDelay;return typeof t=="number"?t:Ki(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){let t=this._parentPositions.handleScroll(e);if(t){let n=wn(e);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&uo(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=_l(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){let n=this._previewContainer||"global";if(n==="parent")return e;if(n==="global"){let r=this._document;return t||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return _n(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=e=>{if(this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&e.preventDefault()}else this.disabled||e.preventDefault()};_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}};function Vg(e,t,n){return Math.max(t,Math.min(n,e))}function Ki(e){return e.type[0]==="t"}function jL(e){e.preventDefault()}function vb(e,t,n){let r=jg(t,e.length-1),i=jg(n,e.length-1);if(r===i)return;let o=e[r],s=i<r?-1:1;for(let a=r;a!==i;a+=s)e[a]=e[a+s];e[i]=o}function jg(e,t){return Math.max(0,Math.min(t,e))}var Fg=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(e){this._dragDropRegistry=e}_previousSwap={drag:null,delta:0,overlaps:!1};start(e){this.withItems(e)}sort(e,t,n,r){let i=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,r);if(o===-1&&i.length>0)return null;let s=this.orientation==="horizontal",a=i.findIndex(C=>C.drag===e),l=i[o],u=i[a].clientRect,d=l.clientRect,h=a>o?1:-1,v=this._getItemOffsetPx(u,d,h),m=this._getSiblingOffsetPx(a,i,h),w=i.slice();return vb(i,a,o),i.forEach((C,A)=>{if(w[A]===C)return;let P=C.drag===e,$=P?v:m,re=P?e.getPlaceholderElement():C.drag.getRootElement();C.offset+=$;let z=Math.round(C.offset*(1/C.drag.scale));s?(re.style.transform=xa(`translate3d(${z}px, 0, 0)`,C.initialTransform),uo(C.clientRect,0,$)):(re.style.transform=xa(`translate3d(0, ${z}px, 0)`,C.initialTransform),uo(C.clientRect,$,0))}),this._previousSwap.overlaps=Hu(d,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:a,currentIndex:o}}enter(e,t,n,r){let i=r==null||r<0?this._getItemIndexFromPointerPosition(e,t,n):r,o=this._activeDraggables,s=o.indexOf(e),a=e.getPlaceholderElement(),l=o[i];if(l===e&&(l=o[i+1]),!l&&(i==null||i===-1||i<o.length-1)&&this._shouldEnterAsFirstChild(t,n)&&(l=o[0]),s>-1&&o.splice(s,1),l&&!this._dragDropRegistry.isDragging(l)){let u=l.getRootElement();u.parentElement.insertBefore(a,u),o.splice(i,0,e)}else this._element.appendChild(a),o.push(e);a.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables?.forEach(e=>{let t=e.getRootElement();if(t){let n=this._itemPositions.find(r=>r.drag===e)?.initialTransform;t.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:n})=>{uo(n,e,t)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(e){this._element=e}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let n=t.getVisibleElement();return{drag:t,offset:0,initialTransform:n.style.transform||"",clientRect:zd(n)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_getItemOffsetPx(e,t,n){let r=this.orientation==="horizontal",i=r?t.left-e.left:t.top-e.top;return n===-1&&(i+=r?t.width-e.width:t.height-e.height),i}_getSiblingOffsetPx(e,t,n){let r=this.orientation==="horizontal",i=t[e].clientRect,o=t[e+n*-1],s=i[r?"width":"height"]*n;if(o){let a=r?"left":"top",l=r?"right":"bottom";n===-1?s-=o.clientRect[a]-i[l]:s+=i[a]-o.clientRect[l]}return s}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;let n=this._itemPositions,r=this.orientation==="horizontal";if(n[0].drag!==this._activeDraggables[0]){let i=n[n.length-1].clientRect;return r?e>=i.right:t>=i.bottom}else{let i=n[0].clientRect;return r?e<=i.left:t<=i.top}}_getItemIndexFromPointerPosition(e,t,n,r){let i=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:s,clientRect:a})=>{if(s===e)return!1;if(r){let l=i?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return i?t>=Math.floor(a.left)&&t<Math.floor(a.right):n>=Math.floor(a.top)&&n<Math.floor(a.bottom)});return o===-1||!this._sortPredicate(o,e)?-1:o}},FL=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(e,t){this._document=e,this._dragDropRegistry=t}start(e){let t=this._element.childNodes;this._relatedNodes=[];for(let n=0;n<t.length;n++){let r=t[n];this._relatedNodes.push([r,r.nextSibling])}this.withItems(e)}sort(e,t,n,r){let i=this._getItemIndexFromPointerPosition(e,t,n),o=this._previousSwap;if(i===-1||this._activeItems[i]===e)return null;let s=this._activeItems[i];if(o.drag===s&&o.overlaps&&o.deltaX===r.x&&o.deltaY===r.y)return null;let a=this.getItemIndex(e),l=e.getPlaceholderElement(),u=s.getRootElement();i>a?u.after(l):u.before(l),vb(this._activeItems,a,i);let d=this._getRootNode().elementFromPoint(t,n);return o.deltaX=r.x,o.deltaY=r.y,o.drag=s,o.overlaps=u===d||u.contains(d),{previousIndex:a,currentIndex:i}}enter(e,t,n,r){let i=r==null||r<0?this._getItemIndexFromPointerPosition(e,t,n):r;i===-1&&(i=this._getClosestItemIndexToPointer(e,t,n));let o=this._activeItems[i],s=this._activeItems.indexOf(e);s>-1&&this._activeItems.splice(s,1),o&&!this._dragDropRegistry.isDragging(o)?(this._activeItems.splice(i,0,e),o.getRootElement().before(e.getPlaceholderElement())):(this._activeItems.push(e),this._element.appendChild(e.getPlaceholderElement()))}withItems(e){this._activeItems=e.slice()}withSortPredicate(e){this._sortPredicate=e}reset(){let e=this._element,t=this._previousSwap;for(let n=this._relatedNodes.length-1;n>-1;n--){let[r,i]=this._relatedNodes[n];r.parentNode===e&&r.nextSibling!==i&&(i===null?e.appendChild(r):i.parentNode===e&&e.insertBefore(r,i))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(e){return this._activeItems.indexOf(e)}updateOnScroll(){this._activeItems.forEach(e=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(e){e!==this._element&&(this._element=e,this._rootNode=void 0)}_getItemIndexFromPointerPosition(e,t,n){let r=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(n)),i=r?this._activeItems.findIndex(o=>{let s=o.getRootElement();return r===s||s.contains(r)}):-1;return i===-1||!this._sortPredicate(i,e)?-1:i}_getRootNode(){return this._rootNode||(this._rootNode=_l(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(e,t,n){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let r=1/0,i=-1;for(let o=0;o<this._activeItems.length;o++){let s=this._activeItems[o];if(s!==e){let{x:a,y:l}=s.getRootElement().getBoundingClientRect(),u=Math.hypot(t-a,n-l);u<r&&(r=u,i=o)}}return i}},Bg=.05,yb=.05,tn=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e}(tn||{}),Pt=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e}(Pt||{}),BL=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new ye;entered=new ye;exited=new ye;dropped=new ye;sorted=new ye;receivingStarted=new ye;receivingStopped=new ye;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=bt.EMPTY;_verticalScrollDirection=tn.NONE;_horizontalScrollDirection=Pt.NONE;_scrollNode;_stopScrollTimers=new ye;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(e,t,n,r,i){this._dragDropRegistry=t,this._ngZone=r,this._viewportRuler=i;let o=this.element=_n(e);this._document=n,this.withOrientation("vertical").withElementContainer(o),t.registerDropContainer(this),this._parentPositions=new _b(n)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,n,r){this._draggingStarted(),r==null&&this.sortingDisabled&&(r=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,n,r,i,o,s,a={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:i,distance:o,dropPoint:s,event:a})}withItems(e){let t=this._draggables;return this._draggables=e,e.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(t.filter(n=>n.isDragging()).every(n=>e.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._direction=e,this._sortStrategy instanceof Fg&&(this._sortStrategy.direction=e),this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){if(e==="mixed")this._sortStrategy=new FL(this._document,this._dragDropRegistry);else{let t=new Fg(this._dragDropRegistry);t.direction=this._direction,t.orientation=e,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,n)=>this.sortPredicate(t,n,this)),this}withScrollableParents(e){let t=this._container;return this._scrollableElements=e.indexOf(t)===-1?[t,...e]:e.slice(),this}withElementContainer(e){if(e===this._container)return this;let t=_n(this.element),n=this._scrollableElements.indexOf(this._container),r=this._scrollableElements.indexOf(e);return n>-1&&this._scrollableElements.splice(n,1),r>-1&&this._scrollableElements.splice(r,1),this._sortStrategy&&this._sortStrategy.withElementContainer(e),this._cachedShadowRoot=null,this._scrollableElements.unshift(e),this._container=e,this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,r){if(this.sortingDisabled||!this._domRect||!Rg(this._domRect,Bg,t,n))return;let i=this._sortStrategy.sort(e,t,n,r);i&&this.sorted.next({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,r=tn.NONE,i=Pt.NONE;if(this._parentPositions.positions.forEach((o,s)=>{s===this._document||!o.clientRect||n||Rg(o.clientRect,Bg,e,t)&&([r,i]=UL(s,o.clientRect,this._direction,e,t),(r||i)&&(n=s))}),!r&&!i){let{width:o,height:s}=this._viewportRuler.getViewportSize(),a={width:o,height:s,top:0,right:o,bottom:s,left:0};r=bb(a,t),i=wb(a,e),n=window}n&&(r!==this._verticalScrollDirection||i!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=i,this._scrollNode=n,(r||i)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let e=this._container.style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),tE(0,S1).pipe(yi(this._stopScrollTimers)).subscribe(()=>{let e=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===tn.UP?e.scrollBy(0,-t):this._verticalScrollDirection===tn.DOWN&&e.scrollBy(0,t),this._horizontalScrollDirection===Pt.LEFT?e.scrollBy(-t,0):this._horizontalScrollDirection===Pt.RIGHT&&e.scrollBy(t,0)})};_isOverContainer(e,t){return this._domRect!=null&&Hu(this._domRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(r=>r._canReceive(e,t,n))}_canReceive(e,t,n){if(!this._domRect||!Hu(this._domRect,t,n)||!this.enterPredicate(e,this))return!1;let r=this._getShadowRoot().elementFromPoint(t,n);return r?r===this._container||this._container.contains(r):!1}_startReceiving(e,t){let n=this._activeSiblings;!n.has(e)&&t.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=_l(this._container);this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}};function bb(e,t){let{top:n,bottom:r,height:i}=e,o=i*yb;return t>=n-o&&t<=n+o?tn.UP:t>=r-o&&t<=r+o?tn.DOWN:tn.NONE}function wb(e,t){let{left:n,right:r,width:i}=e,o=i*yb;return t>=n-o&&t<=n+o?Pt.LEFT:t>=r-o&&t<=r+o?Pt.RIGHT:Pt.NONE}function UL(e,t,n,r,i){let o=bb(t,i),s=wb(t,r),a=tn.NONE,l=Pt.NONE;if(o){let u=e.scrollTop;o===tn.UP?u>0&&(a=tn.UP):e.scrollHeight-u>e.clientHeight&&(a=tn.DOWN)}if(s){let u=e.scrollLeft;n==="rtl"?s===Pt.RIGHT?u<0&&(l=Pt.RIGHT):e.scrollWidth+u>e.clientWidth&&(l=Pt.LEFT):s===Pt.LEFT?u>0&&(l=Pt.LEFT):e.scrollWidth-u>e.clientWidth&&(l=Pt.RIGHT)}return[a,l]}var Ji={capture:!0},hc={passive:!1,capture:!0},HL=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Nt({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(n,r){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
|
|
41
|
-
`],encapsulation:2,changeDetection:0})}return e})(),Eb=(()=>{class e{_ngZone=N(Ye);_document=N(tt);_styleLoader=N(ml);_renderer=N(Dn).createRenderer(null,null);_cleanupDocumentTouchmove;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Mn([]);_globalListeners;_draggingPredicate=n=>n.isDragging();_domNodesToDirectives=null;pointerMove=new ye;pointerUp=new ye;scroll=new ye;constructor(){}registerDropContainer(n){this._dropInstances.has(n)||this._dropInstances.add(n)}registerDragItem(n){this._dragInstances.add(n),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=Ht(this._renderer,this._document,"touchmove",this._persistentTouchmoveListener,hc)})}removeDropContainer(n){this._dropInstances.delete(n)}removeDragItem(n){this._dragInstances.delete(n),this.stopDragging(n),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(n,r){if(!(this._activeDragInstances().indexOf(n)>-1)&&(this._styleLoader.load(HL),this._activeDragInstances.update(i=>[...i,n]),this._activeDragInstances().length===1)){let i=r.type.startsWith("touch"),o=a=>this.pointerUp.next(a),s=[["scroll",a=>this.scroll.next(a),Ji],["selectstart",this._preventDefaultWhileDragging,hc]];i?s.push(["touchend",o,Ji],["touchcancel",o,Ji]):s.push(["mouseup",o,Ji]),i||s.push(["mousemove",a=>this.pointerMove.next(a),hc]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=s.map(([a,l,u])=>Ht(this._renderer,this._document,a,l,u))})}}stopDragging(n){this._activeDragInstances.update(r=>{let i=r.indexOf(n);return i>-1?(r.splice(i,1),[...r]):r}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(n){return this._activeDragInstances().indexOf(n)>-1}scrolled(n){let r=[this.scroll];return n&&n!==this._document&&r.push(new Et(i=>this._ngZone.runOutsideAngular(()=>{let o=Ht(this._renderer,n,"scroll",s=>{this._activeDragInstances().length&&i.next(s)},Ji);return()=>{o()}}))),La(...r)}registerDirectiveNode(n,r){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(n,r)}removeDirectiveNode(n){this._domNodesToDirectives?.delete(n)}getDragDirectiveForNode(n){return this._domNodesToDirectives?.get(n)||null}ngOnDestroy(){this._dragInstances.forEach(n=>this.removeDragItem(n)),this._dropInstances.forEach(n=>this.removeDropContainer(n)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=n=>{this._activeDragInstances().length>0&&n.preventDefault()};_persistentTouchmoveListener=n=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))};_clearGlobalListeners(){this._globalListeners?.forEach(n=>n()),this._globalListeners=void 0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$L={dragStartThreshold:5,pointerDirectionChangeThreshold:5},zL=(()=>{class e{_document=N(tt);_ngZone=N(Ye);_viewportRuler=N($d);_dragDropRegistry=N(Eb);_renderer=N(Dn).createRenderer(null,null);constructor(){}createDrag(n,r=$L){return new VL(n,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(n){return new BL(n,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ug=new Se("CDK_DRAG_PARENT"),WL=new Se("CdkDragHandle"),qL=new Se("CDK_DRAG_CONFIG"),GL=new Se("CdkDropList"),ZL=(()=>{class e{element=N(Mt);dropContainer=N(GL,{optional:!0,skipSelf:!0});_ngZone=N(Ye);_viewContainerRef=N(Vi);_dir=N(Ea,{optional:!0});_changeDetectorRef=N(Xo);_selfHandle=N(WL,{optional:!0,self:!0});_parentDrag=N(Ug,{optional:!0,skipSelf:!0});_dragDropRegistry=N(Eb);_destroyed=new ye;_handles=new ih([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(n){this._disabled=n,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new Xe;released=new Xe;ended=new Xe;entered=new Xe;exited=new Xe;dropped=new Xe;moved=new Et(n=>{let r=this._dragRef.moved.pipe(Aa(i=>({source:this,pointerPosition:i.pointerPosition,event:i.event,delta:i.delta,distance:i.distance}))).subscribe(n);return()=>{r.unsubscribe()}});_injector=N(Tt);constructor(){let n=this.dropContainer,r=N(qL,{optional:!0}),i=N(zL);this._dragRef=i.createDrag(this.element,{dragStartThreshold:r&&r.dragStartThreshold!=null?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&r.pointerDirectionChangeThreshold!=null?r.pointerDirectionChangeThreshold:5,zIndex:r?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),r&&this._assignDefaults(r),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this),n._dropListRef.beforeStarted.pipe(yi(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(n){this._dragRef.setFreeDragPosition(n)}ngAfterViewInit(){Wo(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(n){let r=n.rootElementSelector,i=n.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(n){let r=this._handles.getValue();r.push(n),this._handles.next(r)}_removeHandle(n){let r=this._handles.getValue(),i=r.indexOf(n);i>-1&&(r.splice(i,1),this._handles.next(r))}_setPreviewTemplate(n){this._previewTemplate=n}_resetPreviewTemplate(n){n===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(n){this._placeholderTemplate=n}_resetPlaceholderTemplate(n){n===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let n=this.element.nativeElement,r=n;this.rootElementSelector&&(r=n.closest!==void 0?n.closest(this.rootElementSelector):n.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||n)}_getBoundaryElement(){let n=this.boundaryElement;return n?typeof n=="string"?this.element.nativeElement.closest(n):_n(n):null}_syncInputs(n){n.beforeStarted.subscribe(()=>{if(!n.isDragging()){let r=this._dir,i=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;n.disabled=this.disabled,n.lockAxis=this.lockAxis,n.scale=this.scale,n.dragStartDelay=typeof i=="object"&&i?i:bL(i),n.constrainPosition=this.constrainPosition,n.previewClass=this.previewClass,n.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),r&&n.withDirection(r.value)}}),n.beforeStarted.pipe(rE(1)).subscribe(()=>{if(this._parentDrag){n.withParent(this._parentDrag._dragRef);return}let r=this.element.nativeElement.parentElement;for(;r;){let i=this._dragDropRegistry.getDragDirectiveForNode(r);if(i){n.withParent(i._dragRef);break}r=r.parentElement}})}_handleEvents(n){n.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),n.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),n.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),n.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),n.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),n.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(n){let{lockAxis:r,dragStartDelay:i,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:u,previewContainer:d}=n;this.disabled=l??!1,this.dragStartDelay=i||0,r&&(this.lockAxis=r),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),u&&(this.rootElementSelector=u),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(aE(n=>{let r=n.map(i=>i.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),H_(n=>La(...n.map(r=>r._stateChanges.pipe(U_(r))))),yi(this._destroyed)).subscribe(n=>{let r=this._dragRef,i=n.element.nativeElement;n.disabled?r.disableHandle(i):r.enableHandle(i)})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Yo({type:e,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(n,r){n&2&&Jo("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",JO],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",XO]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[SO([{provide:Ug,useExisting:e}]),mm]})}return e})(),YL=e=>({"lc:cursor-grab":e}),KL=(e,t)=>t.url;function JL(e,t){if(e&1&&$e(0,"source",11),e&2){let n=t.$implicit;Bi("type",n.mimeType),Me("src",n.url,cn)}}var XL=class $u{constructor(t){this.elementRef=t}video;closeClicked=new Xe;videoClicked=new Xe;isDragging=!1;ngOnInit(){let t=this.elementRef.nativeElement.parentElement.parentElement;t.style.zIndex="2147483647"}close(){this.closeClicked.emit()}onVideoClick(){if(this.isDragging){this.isDragging=!1;return}this.videoClicked.emit()}static \u0275fac=function(t){return new(t||$u)(wt(Mt))};static \u0275cmp=Nt({type:$u,selectors:[["cooee-draggable-video-popup"]],inputs:{video:"video"},outputs:{closeClicked:"closeClicked",videoClicked:"videoClicked"},decls:14,vars:5,consts:[["role","button","tabindex","0","cdkDrag","",1,"lc-popup-inner","lc:shadow-2xl","lc:rounded-lg","lc:flex","lc:justify-center","lc:items-center",3,"click","keyup","cdkDragMoved","ngClass","cdkDragBoundary"],[1,"lc-close-button","lc:absolute","lc:-top-3.5","lc:-right-3.5","lc:bg-black/50","lc:rounded-full","lc:w-8","lc:h-8","lc:border-none","lc:z-10","lc:flex","lc:justify-center","lc:items-center",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],[1,"lc-play-button"],[1,"lc-icon"],["viewBox","0 0 28.31 30"],["d","M19.15,1.29A1.24,1.24,0,0,0,17.82.15a1.36,1.36,0,0,0-.35.07,3.2,3.2,0,0,0-.65.46l-5.06,4.6a1.24,1.24,0,0,0,0,1.75l0,0a1.22,1.22,0,0,0,.89.39,1.25,1.25,0,0,0,.85-.32l3-2.78.17-.13v8l2.44,2.62ZM26.79,26.6l-7.64-7.93-2.5-2.58-6-6.34L8.9,8,5.23,4.15a1.17,1.17,0,0,0-1.66,0h0a1.18,1.18,0,0,0,0,1.66h0L6.1,8.47H3.32a2.94,2.94,0,0,0-2.45,3v7.16a3,3,0,0,0,2.86,3.08H8.07a.44.44,0,0,1,.33.13C9.7,23,11,24.19,12.26,25.36L17,29.7a1.24,1.24,0,0,0,2.17-1V22.21l5.95,6.15a1.2,1.2,0,0,0,1.67,0,1.17,1.17,0,0,0,.08-1.66Zm-10.14-.67-.18-.11L9.75,19.67a1.72,1.72,0,0,0-1.16-.45H4c-.48,0-.59-.11-.59-.61V11.55c0-.49,0-.6.59-.6H8.29l8.29,8.55ZM29.09,15.07A9.9,9.9,0,0,1,26.33,22l-.11.13a1.24,1.24,0,0,1-2-.28,1.29,1.29,0,0,1,.24-1.52h0a6.77,6.77,0,0,0,1.32-1.89,7.41,7.41,0,0,0-1.37-8.55,1.24,1.24,0,0,1-.08-1.75,1.33,1.33,0,0,1,.41-.29,1.19,1.19,0,0,1,1.34.2A8.88,8.88,0,0,1,28,10.36a10,10,0,0,1,1.17,4.17A3.35,3.35,0,0,1,29.09,15.07Z","transform","translate(-0.86 -0.14)","fill","#191919"],[1,"lc-text"],["loop","","preload","auto","playsinline","","autoplay","",1,"lc:rounded-lg","lc:w-full",3,"muted"],[3,"src","type"]],template:function(t,n){t&1&&(Y(0,"div",0),ot("click",function(){return n.onVideoClick()})("keyup",function(){return n.onVideoClick()})("cdkDragMoved",function(){return n.isDragging=!0}),Y(1,"button",1),ot("click",function(r){return r.stopPropagation(),n.close()}),mr(),Y(2,"svg",2),$e(3,"path",3)(4,"path",4),K()(),ea(),Y(5,"div",5)(6,"div",6),mr(),Y(7,"svg",7),$e(8,"path",8),K()(),ea(),Y(9,"div",9),Ke(10,"Tap to unmute"),K()(),Y(11,"video",10),Vt(12,JL,1,2,"source",11,KL),K()()),t&2&&(Me("ngClass",Dy(3,YL,n.isDragging))("cdkDragBoundary","body"),Z(11),Me("muted",!0),Z(),jt(n.video.sources))},dependencies:[nl,ZL],styles:["[_nghost-%COMP%]{position:fixed;display:block;right:24px;bottom:24px;max-width:150px}.lc-play-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1);transition:all .1s ease-in-out;z-index:999;flex-wrap:wrap;width:100%;max-width:130px;border-radius:5px;padding:5px 10px;background-color:#97979761;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.lc-play-button[_ngcontent-%COMP%] .lc-icon[_ngcontent-%COMP%]{width:14px;height:14px}.lc-play-button[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.lc-play-button[_ngcontent-%COMP%] .lc-text[_ngcontent-%COMP%]{font-size:11px;line-height:1;color:#fff;font-weight:400;margin-left:5px;text-align:center}"]})},qd=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},zu=class extends qd{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,t,n,r,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=i}},xb=class extends qd{templateRef;viewContainerRef;context;injector;constructor(e,t,n,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},QL=class extends qd{element;constructor(e){super(),this.element=e instanceof Mt?e.nativeElement:e}},Gd=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof zu)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof xb)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof QL)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},eM=class extends Gd{outletElement;_appRef;_defaultInjector;_document;constructor(e,t,n,r,i){super(),this.outletElement=e,this._appRef=n,this._defaultInjector=r,this._document=i}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,r=n.get(To,null,{optional:!0})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:r,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let n=this._appRef,r=e.injector||this._defaultInjector||Tt.NULL,i=r.get(Kn,n.injector);t=Vy(e.component,{elementInjector:r,environmentInjector:i,projectableNodes:e.projectableNodes||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(n);r!==-1&&t.remove(r)}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},Hg=(()=>{class e extends Gd{_moduleRef=N(To,{optional:!0});_document=N(tt);_viewContainerRef=N(Vi);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}attached=new Xe;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,i=r.createComponent(n.component,{index:r.length,injector:n.injector||r.injector,projectableNodes:n.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return r!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}attachDomPortal=n=>{let r=n.element;r.parentNode;let i=this._document.createComment("dom-portal");n.setAttachedHost(this),r.parentNode.insertBefore(i,r),this._getRootNode().appendChild(r),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(r,i)})};_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Yo({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ji]})}return e})(),Xi;function tM(){if(Xi==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Xi=!0}))}finally{Xi=Xi||!1}return Xi}function nM(e){return tM()?e:!!e.capture}var rM=new Se("cdk-input-modality-detector-options"),iM={ignoreKeys:[18,17,224,91,16]},Sb=650,dc={passive:!0,capture:!0},oM=(()=>{class e{_platform=N(ir);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ih(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=wn(n))};_onMousedown=n=>{Date.now()-this._lastTouchMs<Sb||(this._modality.next(hb(n)?"keyboard":"mouse"),this._mostRecentTarget=wn(n))};_onTouchstart=n=>{if(db(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=wn(n)};constructor(){let n=N(Ye),r=N(tt),i=N(rM,{optional:!0});if(this._options=L(L({},iM),i),this.modalityDetected=this._modality.pipe(sE(1)),this.modalityChanged=this.modalityDetected.pipe(iE()),this._platform.isBrowser){let o=N(Dn).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[Ht(o,r,"keydown",this._onKeydown,dc),Ht(o,r,"mousedown",this._onMousedown,dc),Ht(o,r,"touchstart",this._onTouchstart,dc)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n())}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Us=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(Us||{}),sM=new Se("cdk-focus-monitor-default-options"),Ts=nM({passive:!0,capture:!0}),aM=(()=>{class e{_ngZone=N(Ye);_platform=N(ir);_inputModalityDetector=N(oM);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=N(tt,{optional:!0});_stopInputModalityDetector=new ye;constructor(){let n=N(sM,{optional:!0});this._detectionMode=n?.detectionMode||Us.IMMEDIATE}_rootNodeFocusAndBlurListener=n=>{let r=wn(n);for(let i=r;i;i=i.parentElement)n.type==="focus"?this._onFocus(n,i):this._onBlur(n,i)};monitor(n,r=!1){let i=_n(n);if(!this._platform.isBrowser||i.nodeType!==1)return ch();let o=_l(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new ye,rootNode:o};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=_n(n),i=this._elementInfo.get(r);i&&(i.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(i))}focusVia(n,r,i){let o=_n(n),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,r,l)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(i))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Us.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===Us.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?Sb:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(n,r){let i=this._elementInfo.get(r),o=wn(n);!i||!i.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),i)}_onBlur(n,r){let i=this._elementInfo.get(r);!i||i.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(i,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,i=this._rootNodeFocusListenerCount.get(r)||0;i||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ts),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ts)}),this._rootNodeFocusListenerCount.set(r,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yi(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let i=this._rootNodeFocusListenerCount.get(r);i>1?this._rootNodeFocusListenerCount.set(r,i-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ts),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ts),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,i){this._setClasses(n,r),this._emitOrigin(i,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((i,o)=>{(o===n||i.checkChildren&&o.contains(n))&&r.push([o,i])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:i}=this._inputModalityDetector;if(i!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(r))return!0}return!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lM=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Nt({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
|
|
42
|
-
`],encapsulation:2,changeDetection:0})}return e})(),Cb=(()=>{class e{_platform=N(ir);constructor(){}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return uM(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=cM(vM(n));if(r&&($g(r)===-1||!this.isVisible(r)))return!1;let i=n.nodeName.toLowerCase(),o=$g(n);return n.hasAttribute("contenteditable")?o!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!_M(n)?!1:i==="audio"?n.hasAttribute("controls")?o!==-1:!1:i==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return mM(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cM(e){try{return e.frameElement}catch{return null}}function uM(e){return!!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function hM(e){let t=e.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function dM(e){return pM(e)&&e.type=="hidden"}function fM(e){return gM(e)&&e.hasAttribute("href")}function pM(e){return e.nodeName.toLowerCase()=="input"}function gM(e){return e.nodeName.toLowerCase()=="a"}function Ib(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return!1;let t=e.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function $g(e){if(!Ib(e))return null;let t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function _M(e){let t=e.nodeName.toLowerCase(),n=t==="input"&&e.type;return n==="text"||n==="password"||t==="select"||t==="textarea"}function mM(e){return dM(e)?!1:hM(e)||fM(e)||e.hasAttribute("contenteditable")||Ib(e)}function vM(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var yM=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,t,n,r,i=!1,o){this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._injector=o,i||this.attachAnchors()}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Wo(e,{injector:this._injector}):setTimeout(e)}},bM=(()=>{class e{_checker=N(Cb);_ngZone=N(Ye);_document=N(tt);_injector=N(Tt);constructor(){N(ml).load(lM)}create(n,r=!1){return new yM(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zg(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function mt(e){return e==null?"":typeof e=="string"?e:`${e}px`}function wM(e,...t){return t.length?t.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var Wg=IL(),EM=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,t){this._viewportRuler=e,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=mt(-this._previousScrollPosition.left),e.style.top=mt(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,r=t.style,i=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Wg&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Wg&&(n.scrollBehavior=i,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}},xM=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(uh(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Tb=class{enable(){}disable(){}attach(){}};function Wu(e,t){return t.some(n=>{let r=e.bottom<n.top,i=e.top>n.bottom,o=e.right<n.left,s=e.left>n.right;return r||i||o||s})}function qg(e,t){return t.some(n=>{let r=e.top<n.top,i=e.bottom>n.bottom,o=e.left<n.left,s=e.right>n.right;return r||i||o||s})}var SM=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Wu(t,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},CM=(()=>{class e{_scrollDispatcher=N(OL);_viewportRuler=N($d);_ngZone=N(Ye);_document=N(tt);constructor(){}noop=()=>new Tb;close=n=>new xM(this._scrollDispatcher,this._ngZone,this._viewportRuler,n);block=()=>new EM(this._viewportRuler,this._document);reposition=n=>new SM(this._scrollDispatcher,this._viewportRuler,this._ngZone,n);static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ob=class{positionStrategy;scrollStrategy=new Tb;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n])}}},IM=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}},Db=(()=>{class e{_attachedOverlays=[];_document=N(tt);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),TM=(()=>{class e extends Db{_ngZone=N(Ye);_renderer=N(Dn).createRenderer(null,null);_cleanupKeydown;add(n){super.add(n),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=n=>{let r=this._attachedOverlays;for(let i=r.length-1;i>-1;i--)if(r[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>r[i]._keydownEvents.next(n));break}};static \u0275fac=(()=>{let n;return function(r){return(n||(n=Zm(e)))(r||e)}})();static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OM=(()=>{class e extends Db{_platform=N(ir);_ngZone=N(Ye);_renderer=N(Dn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(n){if(super.add(n),!this._isAttached){let r=this._document.body,i={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[Ht(this._renderer,r,"pointerdown",this._pointerDownListener,i),Ht(this._renderer,r,"click",this._clickListener,i),Ht(this._renderer,r,"auxclick",this._clickListener,i),Ht(this._renderer,r,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(n=>n()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=n=>{this._pointerDownEventTarget=wn(n)};_clickListener=n=>{let r=wn(n),i=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){let a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(Gg(a.overlayElement,r)||Gg(a.overlayElement,i))break;let l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(n)):l.next(n)}};static \u0275fac=(()=>{let n;return function(r){return(n||(n=Zm(e)))(r||e)}})();static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Gg(e,t){let n=typeof ShadowRoot<"u"&&ShadowRoot,r=t;for(;r;){if(r===e)return!0;r=n&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var Rb=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Nt({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
|
43
|
-
`],encapsulation:2,changeDetection:0})}return e})(),Zd=(()=>{class e{_platform=N(ir);_containerElement;_document=N(tt);_styleLoader=N(ml);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||zg()){let i=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;o<i.length;o++)i[o].remove()}let r=this._document.createElement("div");r.classList.add(n),zg()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(Rb)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),DM=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,r){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",r)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Yd=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ye;_attachments=new ye;_detachments=new ye;_positionStrategy;_scrollStrategy;_locationChanges=bt.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new ye;_outsidePointerEvents=new ye;_renders=new ye;_afterRenderRef;_afterNextRenderRef;constructor(e,t,n,r,i,o,s,a,l,u=!1,d,h){this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._location=a,this._outsideClickDispatcher=l,this._animationsDisabled=u,this._injector=d,this._renderer=h,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=QO(()=>gv(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Wo(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=L(L({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Le(L({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=mt(this._config.width),e.height=mt(this._config.height),e.minWidth=mt(this._config.minWidth),e.minHeight=mt(this._config.minHeight),e.maxWidth=mt(this._config.maxWidth),e.maxHeight=mt(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new DM(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,t,n){let r=pb(t||[]).filter(i=>!!i);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(yi(La(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}},Zg="cdk-overlay-connected-position-bounding-box",RM=/([A-Za-z%]+)$/,kM=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new ye;_resizeSubscription=bt.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,r,i){this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Zg),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,r=this._containerRect,i=[],o;for(let s of this._preferredPositions){let a=this._getOriginPoint(e,r,s),l=this._getOverlayPoint(a,t,s),u=this._getOverlayFit(l,t,n,s);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,a);return}if(this._canFitWithFlexibleDimensions(u,l,n)){i.push({position:s,origin:a,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(a,s)});continue}(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:l,originPoint:a,position:s,overlayRect:t})}if(i.length){let s=null,a=-1;for(let l of i){let u=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);u>a&&(a=u,s=l)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Sr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Zg),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:s}t.left<0&&(r-=t.left);let i;return n.originY=="center"?i=e.top+e.height/2:i=n.originY=="top"?e.top:e.bottom,t.top<0&&(i-=t.top),{x:r,y:i}}_getOverlayPoint(e,t,n){let r;n.overlayX=="center"?r=-t.width/2:n.overlayX==="start"?r=this._isRtl()?-t.width:0:r=this._isRtl()?0:-t.width;let i;return n.overlayY=="center"?i=-t.height/2:i=n.overlayY=="top"?0:-t.height,{x:e.x+r,y:e.y+i}}_getOverlayFit(e,t,n,r){let i=Kg(t),{x:o,y:s}=e,a=this._getOffset(r,"x"),l=this._getOffset(r,"y");a&&(o+=a),l&&(s+=l);let u=0-o,d=o+i.width-n.width,h=0-s,v=s+i.height-n.height,m=this._subtractOverflows(i.width,u,d),w=this._subtractOverflows(i.height,h,v),C=m*w;return{visibleArea:C,isCompletelyWithinViewport:i.width*i.height===C,fitsInViewportVertically:w===i.height,fitsInViewportHorizontally:m==i.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let r=n.bottom-t.y,i=n.right-t.x,o=Yg(this._overlayRef.getConfig().minHeight),s=Yg(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportVertically||o!=null&&o<=r,l=e.fitsInViewportHorizontally||s!=null&&s<=i;return a&&l}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=Kg(t),i=this._viewportRect,o=Math.max(e.x+r.width-i.width,0),s=Math.max(e.y+r.height-i.height,0),a=Math.max(i.top-n.top-e.y,0),l=Math.max(i.left-n.left-e.x,0),u=0,d=0;return r.width<=i.width?u=l||-o:u=e.x<this._viewportMargin?i.left-n.left-e.x:0,r.height<=i.height?d=a||-s:d=e.y<this._viewportMargin?i.top-n.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!NM(this._lastScrollVisibility,n)){let r=new IM(e,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let i=0;i<t.length;i++)t[i].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,r=this._isRtl(),i,o,s;if(t.overlayY==="top")o=e.y,i=n.height-o+this._viewportMargin;else if(t.overlayY==="bottom")s=n.height-e.y+this._viewportMargin*2,i=n.height-s+this._viewportMargin;else{let v=Math.min(n.bottom-e.y+n.top,e.y),m=this._lastBoundingBoxSize.height;i=v*2,o=e.y-v,i>m&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-m/2)}let a=t.overlayX==="start"&&!r||t.overlayX==="end"&&r,l=t.overlayX==="end"&&!r||t.overlayX==="start"&&r,u,d,h;if(l)h=n.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(a)d=e.x,u=n.right-e.x;else{let v=Math.min(n.right-e.x+n.left,e.x),m=this._lastBoundingBoxSize.width;u=v*2,d=e.x-v,u>m&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-m/2)}return{top:o,left:d,bottom:s,right:h,width:u,height:i}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=mt(n.height),r.top=mt(n.top),r.bottom=mt(n.bottom),r.width=mt(n.width),r.left=mt(n.left),r.right=mt(n.right),t.overlayX==="center"?r.alignItems="center":r.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?r.justifyContent="center":r.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",i&&(r.maxHeight=mt(i)),o&&(r.maxWidth=mt(o))}this._lastBoundingBoxSize=n,Sr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Sr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Sr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){let n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Sr(n,this._getExactOverlayY(t,e,u)),Sr(n,this._getExactOverlayX(t,e,u))}else n.position="static";let s="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=mt(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=mt(o.maxWidth):i&&(n.maxWidth="")),Sr(this._pane.style,n)}_getExactOverlayY(e,t,n){let r={top:"",bottom:""},i=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(i.y+this._overlayRect.height)}px`}else r.top=mt(i.y);return r}_getExactOverlayX(e,t,n){let r={left:"",right:""},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(i.x+this._overlayRect.width)}px`}else r.left=mt(i.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qg(e,n),isOriginOutsideView:Wu(e,n),isOverlayClipped:qg(t,n),isOverlayOutsideView:Wu(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&pb(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Mt)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}};function Sr(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Yg(e){if(typeof e!="number"&&e!=null){let[t,n]=e.split(RM);return!n||n==="px"?parseFloat(t):null}return e||null}function Kg(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}function NM(e,t){return e===t?!0:e.isOriginClipped===t.isOriginClipped&&e.isOriginOutsideView===t.isOriginOutsideView&&e.isOverlayClipped===t.isOverlayClipped&&e.isOverlayOutsideView===t.isOverlayOutsideView}var Jg="cdk-global-overlay-wrapper",PM=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Jg),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:i,maxWidth:o,maxHeight:s}=n,a=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),l=(i==="100%"||i==="100vh")&&(!s||s==="100%"||s==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",v="",m="",w="";a?w="flex-start":u==="center"?(w="center",h?m=d:v=d):h?u==="left"||u==="end"?(w="flex-end",v=d):(u==="right"||u==="start")&&(w="flex-start",m=d):u==="left"||u==="start"?(w="flex-start",v=d):(u==="right"||u==="end")&&(w="flex-end",m=d),e.position=this._cssPosition,e.marginLeft=a?"0":v,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=a?"0":m,t.justifyContent=w,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(Jg),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},AM=(()=>{class e{_viewportRuler=N($d);_document=N(tt);_platform=N(ir);_overlayContainer=N(Zd);constructor(){}global(){return new PM}flexibleConnectedTo(n){return new kM(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kb=(()=>{class e{scrollStrategies=N(CM);_overlayContainer=N(Zd);_positionBuilder=N(AM);_keyboardDispatcher=N(TM);_injector=N(Tt);_ngZone=N(Ye);_document=N(tt);_directionality=N(Ea);_location=N(Uy);_outsideClickDispatcher=N(OM);_animationsModuleType=N(pS,{optional:!0});_idGenerator=N(fb);_renderer=N(Dn).createRenderer(null,null);_appRef;_styleLoader=N(ml);constructor(){}create(n){this._styleLoader.load(Rb);let r=this._createHostElement(),i=this._createPaneElement(r),o=this._createPortalOutlet(i),s=new Ob(n);return s.direction=s.direction||this._directionality.value,new Yd(o,r,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Kn),this._renderer)}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=this._idGenerator.getId("cdk-overlay-"),r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(vr)),new eM(n,null,this._appRef,this._injector,this._document)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function LM(e,t){}var Ca=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext},MM=(()=>{class e extends Gd{_elementRef=N(Mt);_focusTrapFactory=N(bM);_config;_interactivityChecker=N(Cb);_ngZone=N(Ye);_overlayRef=N(Yd);_focusMonitor=N(aM);_renderer=N(Qh);_platform=N(ir);_document=N(tt,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=N(Xo);_injector=N(Tt);_isDestroyed=!1;constructor(){super(),this._config=N(Ca,{optional:!0})||new Ca,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(n){this._ariaLabelledByQueue.push(n),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(n){let r=this._ariaLabelledByQueue.indexOf(n);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._contentAttached(),r}attachTemplatePortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._contentAttached(),r}attachDomPortal=n=>{this._portalOutlet.hasAttached();let r=this._portalOutlet.attachDomPortal(n);return this._contentAttached(),r};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),s(),n.removeAttribute("tabindex")},o=this._renderer.listen(n,"blur",i),s=this._renderer.listen(n,"mousedown",i)})),n.focus(r)}_focusByCssSelector(n,r){let i=this._elementRef.nativeElement.querySelector(n);i&&this._forceFocus(i,r)}_trapFocus(n){this._isDestroyed||Wo(()=>{let r=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||r.focus(n);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(n)||this._focusDialogContainer(n);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',n);break;default:this._focusByCssSelector(this._config.autoFocus,n);break}},{injector:this._injector})}_restoreFocus(){let n=this._config.restoreFocus,r=null;if(typeof n=="string"?r=this._document.querySelector(n):typeof n=="boolean"?r=n?this._elementFocusedBeforeDialogWasOpened:null:n&&(r=n),this._config.restoreFocus&&r&&typeof r.focus=="function"){let i=lc(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(n){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(n)}_containsFocus(){let n=this._elementRef.nativeElement,r=lc();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=lc()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Nt({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&ha(Hg,7),n&2){let i;da(i=fa())&&(r._portalOutlet=i.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&Ko("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[ji],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&it(0,LM,0,0,"ng-template",0)},dependencies:[Hg],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
|
|
44
|
-
`],encapsulation:2})}return e})(),
|
|
40
|
+
`)+" ".concat(l,"\\").concat(u,"/"))}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return sM(e,t);if(e===void 0)return null;if(e instanceof Date||jA(e)){var d=e.getTime(),h=d>-1&&d<2534023188e5;return t.legacy?t.relaxed&&h?{$date:e.getTime()}:{$date:wg(e)}:t.relaxed&&h?{$date:wg(e)}:{$date:{$numberLong:e.getTime().toString()}}}if(typeof e=="number"&&(!t.relaxed||!isFinite(e))){if(Math.floor(e)===e){var _=e>=ob&&e<=ib,m=e>=ab&&e<=sb;if(_)return{$numberInt:e.toString()};if(m)return{$numberLong:e.toString()}}return{$numberDouble:e.toString()}}if(e instanceof RegExp||VA(e)){var b=e.flags;if(b===void 0){var S=e.toString().match(/[gimuy]*$/);S&&(b=S[0])}var N=new ko(e.source,b);return N.toExtendedJSON(t)}return e!=null&&typeof e=="object"?lM(e,t):e}var aM={Binary:function(e){return new Ar(e.value(),e.sub_type)},Code:function(e){return new fl(e.code,e.scope)},DBRef:function(e){return new Oo(e.collection||e.namespace,e.oid,e.db,e.fields)},Decimal128:function(e){return new Vd(e.bytes)},Double:function(e){return new pl(e.value)},Int32:function(e){return new gl(e.value)},Long:function(e){return se.fromBits(e.low!=null?e.low:e.low_,e.low!=null?e.high:e.high_,e.low!=null?e.unsigned:e.unsigned_)},MaxKey:function(){return new jd},MinKey:function(){return new Fd},ObjectID:function(e){return new Ht(e)},ObjectId:function(e){return new Ht(e)},BSONRegExp:function(e){return new ko(e.pattern,e.options)},Symbol:function(e){return new Bd(e.value)},Timestamp:function(e){return rb.fromBits(e.low,e.high)}};function lM(e,t){if(e==null||typeof e!="object")throw new Nr("not an object instance");var n=e._bsontype;if(typeof n>"u"){var r={};for(var i in e){t.seenObjects.push({propertyName:i,obj:null});try{var o=cr(e[i],t);i==="__proto__"?Object.defineProperty(r,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):r[i]=o}finally{t.seenObjects.pop()}}return r}else if(iM(e)){var s=e;if(typeof s.toExtendedJSON!="function"){var a=aM[e._bsontype];if(!a)throw new lt("Unrecognized or invalid _bsontype: "+e._bsontype);s=a(s)}return n==="Code"&&s.scope?s=new fl(s.code,cr(s.scope,t)):n==="DBRef"&&s.oid&&(s=new Oo(cr(s.collection,t),cr(s.oid,t),cr(s.db,t),cr(s.fields,t))),s.toExtendedJSON(t)}else throw new Nr("_bsontype must be a string, but was: "+typeof n)}var xg;(function(e){function t(o,s){var a=Object.assign({},{relaxed:!0,legacy:!1},s);return typeof a.relaxed=="boolean"&&(a.strict=!a.relaxed),typeof a.strict=="boolean"&&(a.relaxed=!a.strict),JSON.parse(o,function(l,u){if(l.indexOf("\0")!==-1)throw new Nr("BSON Document field names cannot contain null bytes, found: ".concat(JSON.stringify(l)));return lb(u,a)})}e.parse=t;function n(o,s,a,l){a!=null&&typeof a=="object"&&(l=a,a=0),s!=null&&typeof s=="object"&&!Array.isArray(s)&&(l=s,s=void 0,a=0);var u=Object.assign({relaxed:!0,legacy:!1},l,{seenObjects:[{propertyName:"(root)",obj:null}]}),d=cr(o,u);return JSON.stringify(d,s,a)}e.stringify=n;function r(o,s){return s=s||{},JSON.parse(n(o,s))}e.serialize=r;function i(o,s){return s=s||{},t(JSON.stringify(o),s)}e.deserialize=i})(xg||(xg={}));var Eg,Sg=X0();Sg.Map?Eg=Sg.Map:Eg=function(){function e(t){t===void 0&&(t=[]),this._keys=[],this._values={};for(var n=0;n<t.length;n++)if(t[n]!=null){var r=t[n],i=r[0],o=r[1];this._keys.push(i),this._values[i]={v:o,i:this._keys.length-1}}}return e.prototype.clear=function(){this._keys=[],this._values={}},e.prototype.delete=function(t){var n=this._values[t];return n==null?!1:(delete this._values[t],this._keys.splice(n.i,1),!0)},e.prototype.entries=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?[r,t._values[r].v]:void 0,done:r===void 0}}}},e.prototype.forEach=function(t,n){n=n||this;for(var r=0;r<this._keys.length;r++){var i=this._keys[r];t.call(n,this._values[i].v,i,n)}},e.prototype.get=function(t){return this._values[t]?this._values[t].v:void 0},e.prototype.has=function(t){return this._values[t]!=null},e.prototype.keys=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?r:void 0,done:r===void 0}}}},e.prototype.set=function(t,n){return this._values[t]?(this._values[t].v=n,this):(this._keys.push(t),this._values[t]={v:n,i:this._keys.length-1},this)},e.prototype.values=function(){var t=this,n=0;return{next:function(){var r=t._keys[n++];return{value:r!==void 0?t._values[r].v:void 0,done:r===void 0}}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!1,configurable:!0}),e}();var Y5=se.fromNumber(BA),K5=se.fromNumber(UA),ic=new Uint8Array(8),J5=new DataView(ic.buffer,ic.byteOffset,ic.byteLength),cM=1024*1024*17,X5=Fe.alloc(cM),uM=class{triggerID;nudgeID;engagementID;contentID;shortID;contentType;variation;props;objective;onsiteDeliveryType;holdout;constructor(e){e=e||{},this.triggerID=e.id||e.triggerID,this.nudgeID=e.nudgeID,this.shortID=e.shortID,this.contentType=e.contentType,this.engagementID=e.engagementID,this.contentID=e.contentID,this.variation=e.variation,this.props=e.props,this.objective=e.objective,this.onsiteDeliveryType=e.onsiteDeliveryType,this.holdout=e.holdout}},oc=class{constructor(e,t={},n,r){this.name=e,this.properties=t,this.id=r?new Ht(r):new Ht,this.occurred=new Date,n&&(this.trigger=new uM(n)),this.newEvent=!r}trigger;items;videos;id;newEvent;cart;currentItem;deviceProps;landingPage;occurred;page;sessionID;sessionNumber;locale};function hM(e,t){e&1&&(mr(),Ue(0,"path",3))}function dM(e,t){e&1&&(mr(),Ue(0,"path",4))}var cb=class ju{muted;videoEl;toggled=new Xe;toggleMute(t){t.stopPropagation(),t.preventDefault(),this.muted=!this.muted,this.videoEl.muted=this.muted,this.toggled.emit(this.muted),this.muted||this.videoEl.play()}static \u0275fac=function(t){return new(t||ju)};static \u0275cmp=Pt({type:ju,selectors:[["cooee-mute-toggle"]],inputs:{muted:"muted",videoEl:"videoEl"},outputs:{toggled:"toggled"},decls:5,vars:1,consts:[["type","button",1,"lc:bg-black/50",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"],["d","M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"]],template:function(t,n){t&1&&(G(0,"button",0),ot("click",function(r){return n.toggleMute(r)}),mr(),G(1,"svg",1),Ue(2,"path",2),nt(3,hM,1,0,":svg:path",3)(4,dM,1,0,":svg:path",4),Y()()),t&2&&(Z(3),tt(n.muted?3:4))},styles:["button[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:100%}"]})},sc;function fM(){if(sc==null){let e=typeof document<"u"?document.head:null;sc=!!(e&&(e.createShadowRoot||e.attachShadow))}return sc}function ml(e){if(fM()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function ac(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function bn(e){return e.composedPath?e.composedPath()[0]:e.target}function ub(e){return e.buttons===0||e.detail===0}function hb(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}function pM(e,t=0){return gM(e)?Number(e):arguments.length===2?t:0}function gM(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function gn(e){return e instanceof $t?e.nativeElement:e}function Ut(e,t,n,r,i){let o=parseInt(Xf.major),s=parseInt(Xf.minor);return o>19||o===19&&s>0||o===0&&s===0?e.listen(t,n,r,i):(t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)})}var Es=new WeakMap,_l=(()=>{class e{_appRef;_injector=R(Tt);_environmentInjector=R(Gn);load(n){let r=this._appRef=this._appRef||this._injector.get(_r),i=Es.get(r);i||(i={loaders:new Set,refs:[]},Es.set(r,i),r.onDestroy(()=>{Es.get(r)?.refs.forEach(o=>o.destroy()),Es.delete(r)})),i.loaders.has(n)||(i.loaders.add(n),i.refs.push(My(n,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fu;try{Fu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fu=!1}var rr=(()=>{class e{_platformId=R(za);isBrowser=this._platformId?k2(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Fu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mM=new Ee("cdk-dir-doc",{providedIn:"root",factory:_M});function _M(){return R(rt)}var vM=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function yM(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?vM.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var ba=(()=>{class e{value="ltr";change=new Xe;constructor(){let n=R(mM,{optional:!0});if(n){let r=n.body?n.body.dir:null,i=n.documentElement?n.documentElement.dir:null;this.value=yM(r||i||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Er;function bM(){if(Er==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Er=!1,Er;if("scrollBehavior"in document.documentElement.style)Er=!0;else{let e=Element.prototype.scrollTo;e?Er=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Er=!1}}return Er}var wM=20,xM=(()=>{class e{_ngZone=R(Ge);_platform=R(rr);_renderer=R(Dn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new ve;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=wM){return this._platform.isBrowser?new wt(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=n>0?this._scrolled.pipe(Lm(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):lh()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let i=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(ch(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_scrollableContainsElement(n,r){let i=gn(r),o=n.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),EM=20,Ud=(()=>{class e{_platform=R(rr);_listeners;_viewportSize;_change=new ve;_document=R(rt,{optional:!0});constructor(){let n=R(Ge),r=R(Dn).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=o=>this._change.next(o);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),i=n.documentElement,o=i.getBoundingClientRect(),s=-o.top||n.body.scrollTop||r.scrollY||i.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:s,left:a}}change(n=EM){return n>0?this._change.pipe(Lm(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lc={},db=(()=>{class e{_appId=R(Ah);getId(n){return this._appId!=="ng"&&(n+=this._appId),lc.hasOwnProperty(n)||(lc[n]=0),`${n}${lc[n]++}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fb(e){return Array.isArray(e)?e:[e]}function pb(e){let t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),r=e.nodeName.toLowerCase();t.removeAttribute("id");for(let i=0;i<n.length;i++)n[i].removeAttribute("id");return r==="canvas"?Tg(e,t):(r==="input"||r==="select"||r==="textarea")&&Ig(e,t),Cg("canvas",e,t,Tg),Cg("input, textarea, select",e,t,Ig),t}function Cg(e,t,n,r){let i=t.querySelectorAll(e);if(i.length){let o=n.querySelectorAll(e);for(let s=0;s<i.length;s++)r(i[s],o[s])}}var SM=0;function Ig(e,t){t.type!=="file"&&(t.value=e.value),t.type==="radio"&&t.name&&(t.name=`mat-clone-${t.name}-${SM++}`)}function Tg(e,t){let n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch{}}function Hd(e){let t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Bu(e,t,n){let{top:r,bottom:i,left:o,right:s}=e;return n>=r&&n<=i&&t>=o&&t<=s}function lo(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function Dg(e,t,n,r){let{top:i,right:o,bottom:s,left:a,width:l,height:u}=e,d=l*t,h=u*t;return r>i-h&&r<s+h&&n>a-d&&n<o+d}var gb=class{_document;positions=new Map;constructor(e){this._document=e}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:Hd(t)})})}handleScroll(e){let t=bn(e),n=this.positions.get(t);if(!n)return null;let r=n.scrollPosition,i,o;if(t===this._document){let l=this.getViewportScrollPosition();i=l.top,o=l.left}else i=t.scrollTop,o=t.scrollLeft;let s=r.top-i,a=r.left-o;return this.positions.forEach((l,u)=>{l.clientRect&&t!==u&&t.contains(u)&&lo(l.clientRect,s,a)}),r.top=i,r.left=o,{top:s,left:a}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function mb(e,t){let n=e.rootNodes;if(n.length===1&&n[0].nodeType===t.ELEMENT_NODE)return n[0];let r=t.createElement("div");return n.forEach(i=>r.appendChild(i)),r}function $d(e,t,n){for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];i?e.setProperty(r,i,n?.has(r)?"important":""):e.removeProperty(r)}return e}function ai(e,t){let n=t?"":"none";$d(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function Og(e,t,n){$d(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},n)}function wa(e,t){return t&&t!="none"?e+" "+t:e}function kg(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=xa(t.left,t.top)}function xa(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function Rg(e){let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function CM(e){let t=getComputedStyle(e),n=cc(t,"transition-property"),r=n.find(a=>a==="transform"||a==="all");if(!r)return 0;let i=n.indexOf(r),o=cc(t,"transition-duration"),s=cc(t,"transition-delay");return Rg(o[i])+Rg(s[i])}function cc(e,t){return e.getPropertyValue(t).split(",").map(n=>n.trim())}var IM=new Set(["position"]),TM=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(e,t,n,r,i,o,s,a,l,u){this._document=e,this._rootElement=t,this._direction=n,this._initialDomRect=r,this._previewTemplate=i,this._previewClass=o,this._pickupPositionOnPage=s,this._initialTransform=a,this._zIndex=l,this._renderer=u}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),Pg(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return CM(this._preview)}addEventListener(e,t){return this._renderer.listen(this._preview,e,t)}_createPreview(){let e=this._previewTemplate,t=this._previewClass,n=e?e.template:null,r;if(n&&e){let i=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(n,e.context);o.detectChanges(),r=mb(o,this._document),this._previewEmbeddedView=o,e.matchSize?kg(r,i):r.style.transform=xa(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=pb(this._rootElement),kg(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return $d(r.style,{"pointer-events":"none",margin:Pg(r)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},IM),ai(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("popover","manual"),r.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(i=>r.classList.add(i)):r.classList.add(t)),r}};function Pg(e){return"showPopover"in e}var DM={passive:!0},Ng={passive:!1},OM={passive:!1,capture:!0},kM=800,Ag=new Set(["position"]),RM=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=Jn(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new ve;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=bt.EMPTY;_pointerUpSubscription=bt.EMPTY;_scrollSubscription=bt.EMPTY;_resizeSubscription=bt.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>ai(t,e)))}_disabled=!1;beforeStarted=new ve;started=new ve;released=new ve;ended=new ve;entered=new ve;exited=new ve;dropped=new ve;moved=this._moveEvents;data;constrainPosition;constructor(e,t,n,r,i,o,s){this._config=t,this._document=n,this._ngZone=r,this._viewportRuler=i,this._dragDropRegistry=o,this._renderer=s,this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new gb(n),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(n=>gn(n)),this._handles.forEach(n=>ai(n,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&t.add(n)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let t=gn(e);return t!==this._rootElement&&(this._removeRootElementListeners(),this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[Ut(this._renderer,t,"mousedown",this._pointerDown,Ng),Ut(this._renderer,t,"touchstart",this._pointerDown,DM),Ut(this._renderer,t,"dragstart",this._nativeDragStart,Ng)]),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?gn(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),ai(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),ai(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)};_pointerMove=e=>{let t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging()){let r=Math.abs(t.x-this._pickupPositionOnPage.x),i=Math.abs(t.y-this._pickupPositionOnPage.y);if(r+i>=this._config.dragStartThreshold){let o=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),s=this._dropContainer;if(!o){this._endDragSequence(e);return}(!s||!s.isDragging()&&!s.isReceiving())&&(e.cancelable&&e.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(e)))}return}e.cancelable&&e.preventDefault();let n=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,t);else{let r=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,i=this._activeTransform;i.x=n.x-r.x+this._passiveTransform.x,i.y=n.y-r.y+this._passiveTransform.y,this._applyRootElementTransform(i.x,i.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:e,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})};_pointerUp=e=>{this._endDragSequence(e)};_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){Gi(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),n=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=Ut(this._renderer,t,"selectstart",PM,OM)}),n){let r=this._rootElement,i=r.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(s,r),this._initialTransform=r.style.transform||"",this._preview=new TM(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(i,t)),Og(r,!1,Ag),this._document.body.appendChild(i.replaceChild(o,r)),this.started.next({source:this,event:e}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();let n=this.isDragging(),r=Gi(t),i=!r&&t.button!==0,o=this._rootElement,s=bn(t),a=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+kM>Date.now(),l=r?hb(t):ub(t);if(s&&s.draggable&&t.type==="mousedown"&&t.preventDefault(),n||i||a||l)return;if(this._handles.length){let h=o.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=Hd(this._boundaryElement));let u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);let d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){Og(this._rootElement,!0,Ag),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,n=t.getItemIndex(this),r=this._getPointerPositionOnPage(e),i=this._getDragDistance(r),o=t._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:i,dropPoint:r,event:e}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:i,dropPoint:r,event:e}),t.drop(this,n,this._initialIndex,this._initialContainer,o,i,r,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:r}){let i=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,e,t,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{let r=s=>{(!s||this._preview&&bn(s)===this._preview.element&&s.propertyName==="transform")&&(o(),n(),clearTimeout(i))},i=setTimeout(r,t*1.5),o=this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,t=e?e.template:null,n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=mb(this._placeholderRef,this._document)):n=pb(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t,n){let r=t===this._rootElement?null:t,i=r?r.getBoundingClientRect():e,o=Gi(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition(),a=o.pageX-i.left-s.left,l=o.pageY-i.top-s.top;return{x:i.left-e.left+a,y:i.top-e.top+l}}_getPointerPositionOnPage(e){let t=this._getViewportScrollPosition(),n=Gi(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,r=n.pageX-t.left,i=n.pageY-t.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=i,s.matrixTransform(o.inverse())}}return{x:r,y:i}}_getConstrainedPointerPosition(e){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:n,y:r}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||t==="x"?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(n=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:i,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,s=this._boundaryRect,{width:a,height:l}=this._getPreviewRect(),u=s.top+o,d=s.bottom-(l-o),h=s.left+i,_=s.right-(a-i);n=Mg(n,h,_),r=Mg(r,u,d)}return{x:n,y:r}}_updatePointerDirectionDelta(e){let{x:t,y:n}=e,r=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-i.x),s=Math.abs(n-i.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=t>i.x?1:-1,i.x=t),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>i.y?1:-1,i.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,ai(this._rootElement,e))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(e=>e()),this._rootElementCleanups=void 0}_applyRootElementTransform(e,t){let n=1/this.scale,r=xa(e*n,t*n),i=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=i.transform&&i.transform!="none"?i.transform:""),i.transform=wa(r,this._initialTransform)}_applyPreviewTransform(e,t){let n=this._previewTemplate?.template?void 0:this._initialTransform,r=xa(e,t);this._preview.setTransform(wa(r,n))}_getDragDistance(e){let t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(e===0&&t===0||this.isDragging()||!this._boundaryElement)return;let n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(r.width===0&&r.height===0||n.width===0&&n.height===0)return;let i=r.left-n.left,o=n.right-r.right,s=r.top-n.top,a=n.bottom-r.bottom;r.width>n.width?(i>0&&(e+=i),o>0&&(e-=o)):e=0,r.height>n.height?(s>0&&(t+=s),a>0&&(t-=a)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){let t=this.dragStartDelay;return typeof t=="number"?t:Gi(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){let t=this._parentPositions.handleScroll(e);if(t){let n=bn(e);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&lo(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=ml(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){let n=this._previewContainer||"global";if(n==="parent")return e;if(n==="global"){let r=this._document;return t||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return gn(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=e=>{if(this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&e.preventDefault()}else this.disabled||e.preventDefault()};_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}};function Mg(e,t,n){return Math.max(t,Math.min(n,e))}function Gi(e){return e.type[0]==="t"}function PM(e){e.preventDefault()}function _b(e,t,n){let r=Lg(t,e.length-1),i=Lg(n,e.length-1);if(r===i)return;let o=e[r],s=i<r?-1:1;for(let a=r;a!==i;a+=s)e[a]=e[a+s];e[i]=o}function Lg(e,t){return Math.max(0,Math.min(t,e))}var Vg=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(e){this._dragDropRegistry=e}_previousSwap={drag:null,delta:0,overlaps:!1};start(e){this.withItems(e)}sort(e,t,n,r){let i=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,n,r);if(o===-1&&i.length>0)return null;let s=this.orientation==="horizontal",a=i.findIndex(S=>S.drag===e),l=i[o],u=i[a].clientRect,d=l.clientRect,h=a>o?1:-1,_=this._getItemOffsetPx(u,d,h),m=this._getSiblingOffsetPx(a,i,h),b=i.slice();return _b(i,a,o),i.forEach((S,N)=>{if(b[N]===S)return;let P=S.drag===e,z=P?_:m,re=P?e.getPlaceholderElement():S.drag.getRootElement();S.offset+=z;let q=Math.round(S.offset*(1/S.drag.scale));s?(re.style.transform=wa(`translate3d(${q}px, 0, 0)`,S.initialTransform),lo(S.clientRect,0,z)):(re.style.transform=wa(`translate3d(0, ${q}px, 0)`,S.initialTransform),lo(S.clientRect,z,0))}),this._previousSwap.overlaps=Bu(d,t,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:a,currentIndex:o}}enter(e,t,n,r){let i=r==null||r<0?this._getItemIndexFromPointerPosition(e,t,n):r,o=this._activeDraggables,s=o.indexOf(e),a=e.getPlaceholderElement(),l=o[i];if(l===e&&(l=o[i+1]),!l&&(i==null||i===-1||i<o.length-1)&&this._shouldEnterAsFirstChild(t,n)&&(l=o[0]),s>-1&&o.splice(s,1),l&&!this._dragDropRegistry.isDragging(l)){let u=l.getRootElement();u.parentElement.insertBefore(a,u),o.splice(i,0,e)}else this._element.appendChild(a),o.push(e);a.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables?.forEach(e=>{let t=e.getRootElement();if(t){let n=this._itemPositions.find(r=>r.drag===e)?.initialTransform;t.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:n})=>{lo(n,e,t)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(e){this._element=e}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let n=t.getVisibleElement();return{drag:t,offset:0,initialTransform:n.style.transform||"",clientRect:Hd(n)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_getItemOffsetPx(e,t,n){let r=this.orientation==="horizontal",i=r?t.left-e.left:t.top-e.top;return n===-1&&(i+=r?t.width-e.width:t.height-e.height),i}_getSiblingOffsetPx(e,t,n){let r=this.orientation==="horizontal",i=t[e].clientRect,o=t[e+n*-1],s=i[r?"width":"height"]*n;if(o){let a=r?"left":"top",l=r?"right":"bottom";n===-1?s-=o.clientRect[a]-i[l]:s+=i[a]-o.clientRect[l]}return s}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;let n=this._itemPositions,r=this.orientation==="horizontal";if(n[0].drag!==this._activeDraggables[0]){let i=n[n.length-1].clientRect;return r?e>=i.right:t>=i.bottom}else{let i=n[0].clientRect;return r?e<=i.left:t<=i.top}}_getItemIndexFromPointerPosition(e,t,n,r){let i=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:s,clientRect:a})=>{if(s===e)return!1;if(r){let l=i?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return i?t>=Math.floor(a.left)&&t<Math.floor(a.right):n>=Math.floor(a.top)&&n<Math.floor(a.bottom)});return o===-1||!this._sortPredicate(o,e)?-1:o}},NM=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(e,t){this._document=e,this._dragDropRegistry=t}start(e){let t=this._element.childNodes;this._relatedNodes=[];for(let n=0;n<t.length;n++){let r=t[n];this._relatedNodes.push([r,r.nextSibling])}this.withItems(e)}sort(e,t,n,r){let i=this._getItemIndexFromPointerPosition(e,t,n),o=this._previousSwap;if(i===-1||this._activeItems[i]===e)return null;let s=this._activeItems[i];if(o.drag===s&&o.overlaps&&o.deltaX===r.x&&o.deltaY===r.y)return null;let a=this.getItemIndex(e),l=e.getPlaceholderElement(),u=s.getRootElement();i>a?u.after(l):u.before(l),_b(this._activeItems,a,i);let d=this._getRootNode().elementFromPoint(t,n);return o.deltaX=r.x,o.deltaY=r.y,o.drag=s,o.overlaps=u===d||u.contains(d),{previousIndex:a,currentIndex:i}}enter(e,t,n,r){let i=r==null||r<0?this._getItemIndexFromPointerPosition(e,t,n):r;i===-1&&(i=this._getClosestItemIndexToPointer(e,t,n));let o=this._activeItems[i],s=this._activeItems.indexOf(e);s>-1&&this._activeItems.splice(s,1),o&&!this._dragDropRegistry.isDragging(o)?(this._activeItems.splice(i,0,e),o.getRootElement().before(e.getPlaceholderElement())):(this._activeItems.push(e),this._element.appendChild(e.getPlaceholderElement()))}withItems(e){this._activeItems=e.slice()}withSortPredicate(e){this._sortPredicate=e}reset(){let e=this._element,t=this._previousSwap;for(let n=this._relatedNodes.length-1;n>-1;n--){let[r,i]=this._relatedNodes[n];r.parentNode===e&&r.nextSibling!==i&&(i===null?e.appendChild(r):i.parentNode===e&&e.insertBefore(r,i))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(e){return this._activeItems.indexOf(e)}updateOnScroll(){this._activeItems.forEach(e=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(e){e!==this._element&&(this._element=e,this._rootNode=void 0)}_getItemIndexFromPointerPosition(e,t,n){let r=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(n)),i=r?this._activeItems.findIndex(o=>{let s=o.getRootElement();return r===s||s.contains(r)}):-1;return i===-1||!this._sortPredicate(i,e)?-1:i}_getRootNode(){return this._rootNode||(this._rootNode=ml(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(e,t,n){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let r=1/0,i=-1;for(let o=0;o<this._activeItems.length;o++){let s=this._activeItems[o];if(s!==e){let{x:a,y:l}=s.getRootElement().getBoundingClientRect(),u=Math.hypot(t-a,n-l);u<r&&(r=u,i=o)}}return i}},jg=.05,vb=.05,tn=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e}(tn||{}),Nt=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e}(Nt||{}),AM=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new ve;entered=new ve;exited=new ve;dropped=new ve;sorted=new ve;receivingStarted=new ve;receivingStopped=new ve;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=bt.EMPTY;_verticalScrollDirection=tn.NONE;_horizontalScrollDirection=Nt.NONE;_scrollNode;_stopScrollTimers=new ve;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(e,t,n,r,i){this._dragDropRegistry=t,this._ngZone=r,this._viewportRuler=i;let o=this.element=gn(e);this._document=n,this.withOrientation("vertical").withElementContainer(o),t.registerDropContainer(this),this._parentPositions=new gb(n)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,n,r){this._draggingStarted(),r==null&&this.sortingDisabled&&(r=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,n,r,i,o,s,a={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:i,distance:o,dropPoint:s,event:a})}withItems(e){let t=this._draggables;return this._draggables=e,e.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(t.filter(n=>n.isDragging()).every(n=>e.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._direction=e,this._sortStrategy instanceof Vg&&(this._sortStrategy.direction=e),this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){if(e==="mixed")this._sortStrategy=new NM(this._document,this._dragDropRegistry);else{let t=new Vg(this._dragDropRegistry);t.direction=this._direction,t.orientation=e,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,n)=>this.sortPredicate(t,n,this)),this}withScrollableParents(e){let t=this._container;return this._scrollableElements=e.indexOf(t)===-1?[t,...e]:e.slice(),this}withElementContainer(e){if(e===this._container)return this;let t=gn(this.element),n=this._scrollableElements.indexOf(this._container),r=this._scrollableElements.indexOf(e);return n>-1&&this._scrollableElements.splice(n,1),r>-1&&this._scrollableElements.splice(r,1),this._sortStrategy&&this._sortStrategy.withElementContainer(e),this._cachedShadowRoot=null,this._scrollableElements.unshift(e),this._container=e,this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,r){if(this.sortingDisabled||!this._domRect||!Dg(this._domRect,jg,t,n))return;let i=this._sortStrategy.sort(e,t,n,r);i&&this.sorted.next({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,r=tn.NONE,i=Nt.NONE;if(this._parentPositions.positions.forEach((o,s)=>{s===this._document||!o.clientRect||n||Dg(o.clientRect,jg,e,t)&&([r,i]=MM(s,o.clientRect,this._direction,e,t),(r||i)&&(n=s))}),!r&&!i){let{width:o,height:s}=this._viewportRuler.getViewportSize(),a={width:o,height:s,top:0,right:o,bottom:s,left:0};r=yb(a,t),i=bb(a,e),n=window}n&&(r!==this._verticalScrollDirection||i!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=i,this._scrollNode=n,(r||i)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let e=this._container.style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),G1(0,_1).pipe(bi(this._stopScrollTimers)).subscribe(()=>{let e=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===tn.UP?e.scrollBy(0,-t):this._verticalScrollDirection===tn.DOWN&&e.scrollBy(0,t),this._horizontalScrollDirection===Nt.LEFT?e.scrollBy(-t,0):this._horizontalScrollDirection===Nt.RIGHT&&e.scrollBy(t,0)})};_isOverContainer(e,t){return this._domRect!=null&&Bu(this._domRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(r=>r._canReceive(e,t,n))}_canReceive(e,t,n){if(!this._domRect||!Bu(this._domRect,t,n)||!this.enterPredicate(e,this))return!1;let r=this._getShadowRoot().elementFromPoint(t,n);return r?r===this._container||this._container.contains(r):!1}_startReceiving(e,t){let n=this._activeSiblings;!n.has(e)&&t.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=ml(this._container);this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}};function yb(e,t){let{top:n,bottom:r,height:i}=e,o=i*vb;return t>=n-o&&t<=n+o?tn.UP:t>=r-o&&t<=r+o?tn.DOWN:tn.NONE}function bb(e,t){let{left:n,right:r,width:i}=e,o=i*vb;return t>=n-o&&t<=n+o?Nt.LEFT:t>=r-o&&t<=r+o?Nt.RIGHT:Nt.NONE}function MM(e,t,n,r,i){let o=yb(t,i),s=bb(t,r),a=tn.NONE,l=Nt.NONE;if(o){let u=e.scrollTop;o===tn.UP?u>0&&(a=tn.UP):e.scrollHeight-u>e.clientHeight&&(a=tn.DOWN)}if(s){let u=e.scrollLeft;n==="rtl"?s===Nt.RIGHT?u<0&&(l=Nt.RIGHT):e.scrollWidth+u>e.clientWidth&&(l=Nt.LEFT):s===Nt.LEFT?u>0&&(l=Nt.LEFT):e.scrollWidth-u>e.clientWidth&&(l=Nt.RIGHT)}return[a,l]}var Yi={capture:!0},uc={passive:!1,capture:!0},LM=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pt({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(n,r){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
|
|
41
|
+
`],encapsulation:2,changeDetection:0})}return e})(),wb=(()=>{class e{_ngZone=R(Ge);_document=R(rt);_styleLoader=R(_l);_renderer=R(Dn).createRenderer(null,null);_cleanupDocumentTouchmove;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Jn([]);_globalListeners;_draggingPredicate=n=>n.isDragging();_domNodesToDirectives=null;pointerMove=new ve;pointerUp=new ve;scroll=new ve;constructor(){}registerDropContainer(n){this._dropInstances.has(n)||this._dropInstances.add(n)}registerDragItem(n){this._dragInstances.add(n),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=Ut(this._renderer,this._document,"touchmove",this._persistentTouchmoveListener,uc)})}removeDropContainer(n){this._dropInstances.delete(n)}removeDragItem(n){this._dragInstances.delete(n),this.stopDragging(n),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(n,r){if(!(this._activeDragInstances().indexOf(n)>-1)&&(this._styleLoader.load(LM),this._activeDragInstances.update(i=>[...i,n]),this._activeDragInstances().length===1)){let i=r.type.startsWith("touch"),o=a=>this.pointerUp.next(a),s=[["scroll",a=>this.scroll.next(a),Yi],["selectstart",this._preventDefaultWhileDragging,uc]];i?s.push(["touchend",o,Yi],["touchcancel",o,Yi]):s.push(["mouseup",o,Yi]),i||s.push(["mousemove",a=>this.pointerMove.next(a),uc]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=s.map(([a,l,u])=>Ut(this._renderer,this._document,a,l,u))})}}stopDragging(n){this._activeDragInstances.update(r=>{let i=r.indexOf(n);return i>-1?(r.splice(i,1),[...r]):r}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(n){return this._activeDragInstances().indexOf(n)>-1}scrolled(n){let r=[this.scroll];return n&&n!==this._document&&r.push(new wt(i=>this._ngZone.runOutsideAngular(()=>{let o=Ut(this._renderer,n,"scroll",s=>{this._activeDragInstances().length&&i.next(s)},Yi);return()=>{o()}}))),Aa(...r)}registerDirectiveNode(n,r){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(n,r)}removeDirectiveNode(n){this._domNodesToDirectives?.delete(n)}getDragDirectiveForNode(n){return this._domNodesToDirectives?.get(n)||null}ngOnDestroy(){this._dragInstances.forEach(n=>this.removeDragItem(n)),this._dropInstances.forEach(n=>this.removeDropContainer(n)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=n=>{this._activeDragInstances().length>0&&n.preventDefault()};_persistentTouchmoveListener=n=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))};_clearGlobalListeners(){this._globalListeners?.forEach(n=>n()),this._globalListeners=void 0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),VM={dragStartThreshold:5,pointerDirectionChangeThreshold:5},jM=(()=>{class e{_document=R(rt);_ngZone=R(Ge);_viewportRuler=R(Ud);_dragDropRegistry=R(wb);_renderer=R(Dn).createRenderer(null,null);constructor(){}createDrag(n,r=VM){return new RM(n,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(n){return new AM(n,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fg=new Ee("CDK_DRAG_PARENT"),FM=new Ee("CdkDragHandle"),BM=new Ee("CDK_DRAG_CONFIG"),UM=new Ee("CdkDropList"),HM=(()=>{class e{element=R($t);dropContainer=R(UM,{optional:!0,skipSelf:!0});_ngZone=R(Ge);_viewContainerRef=R(Li);_dir=R(ba,{optional:!0});_changeDetectorRef=R(Ko);_selfHandle=R(FM,{optional:!0,self:!0});_parentDrag=R(Fg,{optional:!0,skipSelf:!0});_dragDropRegistry=R(wb);_destroyed=new ve;_handles=new rh([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(n){this._disabled=n,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new Xe;released=new Xe;ended=new Xe;entered=new Xe;exited=new Xe;dropped=new Xe;moved=new wt(n=>{let r=this._dragRef.moved.pipe(Na(i=>({source:this,pointerPosition:i.pointerPosition,event:i.event,delta:i.delta,distance:i.distance}))).subscribe(n);return()=>{r.unsubscribe()}});_injector=R(Tt);constructor(){let n=this.dropContainer,r=R(BM,{optional:!0}),i=R(jM);this._dragRef=i.createDrag(this.element,{dragStartThreshold:r&&r.dragStartThreshold!=null?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&r.pointerDirectionChangeThreshold!=null?r.pointerDirectionChangeThreshold:5,zIndex:r?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),r&&this._assignDefaults(r),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this),n._dropListRef.beforeStarted.pipe(bi(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(n){this._dragRef.setFreeDragPosition(n)}ngAfterViewInit(){$o(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(n){let r=n.rootElementSelector,i=n.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(n){let r=this._handles.getValue();r.push(n),this._handles.next(r)}_removeHandle(n){let r=this._handles.getValue(),i=r.indexOf(n);i>-1&&(r.splice(i,1),this._handles.next(r))}_setPreviewTemplate(n){this._previewTemplate=n}_resetPreviewTemplate(n){n===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(n){this._placeholderTemplate=n}_resetPlaceholderTemplate(n){n===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let n=this.element.nativeElement,r=n;this.rootElementSelector&&(r=n.closest!==void 0?n.closest(this.rootElementSelector):n.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||n)}_getBoundaryElement(){let n=this.boundaryElement;return n?typeof n=="string"?this.element.nativeElement.closest(n):gn(n):null}_syncInputs(n){n.beforeStarted.subscribe(()=>{if(!n.isDragging()){let r=this._dir,i=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;n.disabled=this.disabled,n.lockAxis=this.lockAxis,n.scale=this.scale,n.dragStartDelay=typeof i=="object"&&i?i:pM(i),n.constrainPosition=this.constrainPosition,n.previewClass=this.previewClass,n.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),r&&n.withDirection(r.value)}}),n.beforeStarted.pipe(K1(1)).subscribe(()=>{if(this._parentDrag){n.withParent(this._parentDrag._dragRef);return}let r=this.element.nativeElement.parentElement;for(;r;){let i=this._dragDropRegistry.getDragDirectiveForNode(r);if(i){n.withParent(i._dragRef);break}r=r.parentElement}})}_handleEvents(n){n.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),n.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),n.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),n.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),n.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),n.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(n){let{lockAxis:r,dragStartDelay:i,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:u,previewContainer:d}=n;this.disabled=l??!1,this.dragStartDelay=i||0,r&&(this.lockAxis=r),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),u&&(this.rootElementSelector=u),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(ex(n=>{let r=n.map(i=>i.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),jm(n=>Aa(...n.map(r=>r._stateChanges.pipe(Vm(r))))),bi(this._destroyed)).subscribe(n=>{let r=this._dragRef,i=n.element.nativeElement;n.disabled?r.disableHandle(i):r.enableHandle(i)})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Zo({type:e,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(n,r){n&2&&Yo("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",zD],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",qD]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[_D([{provide:Fg,useExisting:e}]),f_]})}return e})(),$M=e=>({"lc:cursor-grab":e}),zM=(e,t)=>t.url;function qM(e,t){if(e&1&&Ue(0,"source",11),e&2){let n=t.$implicit;ji("type",n.mimeType),Pe("src",n.url,cn)}}var WM=class Uu{constructor(t){this.elementRef=t}video;closeClicked=new Xe;videoClicked=new Xe;isDragging=!1;ngOnInit(){let t=this.elementRef.nativeElement.parentElement.parentElement;t.style.zIndex="2147483647"}close(){this.closeClicked.emit()}onVideoClick(){if(this.isDragging){this.isDragging=!1;return}this.videoClicked.emit()}static \u0275fac=function(t){return new(t||Uu)(Et($t))};static \u0275cmp=Pt({type:Uu,selectors:[["cooee-draggable-video-popup"]],inputs:{video:"video"},outputs:{closeClicked:"closeClicked",videoClicked:"videoClicked"},decls:14,vars:5,consts:[["role","button","tabindex","0","cdkDrag","",1,"lc-popup-inner","lc:shadow-2xl","lc:rounded-lg","lc:flex","lc:justify-center","lc:items-center",3,"click","keyup","cdkDragMoved","ngClass","cdkDragBoundary"],[1,"lc-close-button","lc:absolute","lc:-top-3.5","lc:-right-3.5","lc:bg-black/50","lc:rounded-full","lc:w-8","lc:h-8","lc:border-none","lc:z-10","lc:flex","lc:justify-center","lc:items-center",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],[1,"lc-play-button"],[1,"lc-icon"],["viewBox","0 0 28.31 30"],["d","M19.15,1.29A1.24,1.24,0,0,0,17.82.15a1.36,1.36,0,0,0-.35.07,3.2,3.2,0,0,0-.65.46l-5.06,4.6a1.24,1.24,0,0,0,0,1.75l0,0a1.22,1.22,0,0,0,.89.39,1.25,1.25,0,0,0,.85-.32l3-2.78.17-.13v8l2.44,2.62ZM26.79,26.6l-7.64-7.93-2.5-2.58-6-6.34L8.9,8,5.23,4.15a1.17,1.17,0,0,0-1.66,0h0a1.18,1.18,0,0,0,0,1.66h0L6.1,8.47H3.32a2.94,2.94,0,0,0-2.45,3v7.16a3,3,0,0,0,2.86,3.08H8.07a.44.44,0,0,1,.33.13C9.7,23,11,24.19,12.26,25.36L17,29.7a1.24,1.24,0,0,0,2.17-1V22.21l5.95,6.15a1.2,1.2,0,0,0,1.67,0,1.17,1.17,0,0,0,.08-1.66Zm-10.14-.67-.18-.11L9.75,19.67a1.72,1.72,0,0,0-1.16-.45H4c-.48,0-.59-.11-.59-.61V11.55c0-.49,0-.6.59-.6H8.29l8.29,8.55ZM29.09,15.07A9.9,9.9,0,0,1,26.33,22l-.11.13a1.24,1.24,0,0,1-2-.28,1.29,1.29,0,0,1,.24-1.52h0a6.77,6.77,0,0,0,1.32-1.89,7.41,7.41,0,0,0-1.37-8.55,1.24,1.24,0,0,1-.08-1.75,1.33,1.33,0,0,1,.41-.29,1.19,1.19,0,0,1,1.34.2A8.88,8.88,0,0,1,28,10.36a10,10,0,0,1,1.17,4.17A3.35,3.35,0,0,1,29.09,15.07Z","transform","translate(-0.86 -0.14)","fill","#191919"],[1,"lc-text"],["loop","","preload","auto","playsinline","","autoplay","",1,"lc:rounded-lg","lc:w-full",3,"muted"],[3,"src","type"]],template:function(t,n){t&1&&(G(0,"div",0),ot("click",function(){return n.onVideoClick()})("keyup",function(){return n.onVideoClick()})("cdkDragMoved",function(){return n.isDragging=!0}),G(1,"button",1),ot("click",function(r){return r.stopPropagation(),n.close()}),mr(),G(2,"svg",2),Ue(3,"path",3)(4,"path",4),Y()(),Xs(),G(5,"div",5)(6,"div",6),mr(),G(7,"svg",7),Ue(8,"path",8),Y()(),Xs(),G(9,"div",9),Ye(10,"Tap to unmute"),Y()(),G(11,"video",10),Lt(12,qM,1,2,"source",11,zM),Y()()),t&2&&(Pe("ngClass",Ty(3,$M,n.isDragging))("cdkDragBoundary","body"),Z(11),Pe("muted",!0),Z(),Vt(n.video.sources))},dependencies:[tl,HM],styles:["[_nghost-%COMP%]{position:fixed;display:block;right:24px;bottom:24px;max-width:150px}.lc-play-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1);transition:all .1s ease-in-out;z-index:999;flex-wrap:wrap;width:100%;max-width:130px;border-radius:5px;padding:5px 10px;background-color:#97979761;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.lc-play-button[_ngcontent-%COMP%] .lc-icon[_ngcontent-%COMP%]{width:14px;height:14px}.lc-play-button[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.lc-play-button[_ngcontent-%COMP%] .lc-text[_ngcontent-%COMP%]{font-size:11px;line-height:1;color:#fff;font-weight:400;margin-left:5px;text-align:center}"]})},zd=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Hu=class extends zd{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,t,n,r,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=i}},xb=class extends zd{templateRef;viewContainerRef;context;injector;constructor(e,t,n,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},ZM=class extends zd{element;constructor(e){super(),this.element=e instanceof $t?e.nativeElement:e}},qd=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Hu)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof xb)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof ZM)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},GM=class extends qd{outletElement;_appRef;_defaultInjector;_document;constructor(e,t,n,r,i){super(),this.outletElement=e,this._appRef=n,this._defaultInjector=r,this._document=i}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,r=n.get(Co,null,{optional:!0})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:r,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let n=this._appRef,r=e.injector||this._defaultInjector||Tt.NULL,i=r.get(Gn,n.injector);t=My(e.component,{elementInjector:r,environmentInjector:i,projectableNodes:e.projectableNodes||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(n);r!==-1&&t.remove(r)}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},Bg=(()=>{class e extends qd{_moduleRef=R(Co,{optional:!0});_document=R(rt);_viewContainerRef=R(Li);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}attached=new Xe;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,i=r.createComponent(n.component,{index:r.length,injector:n.injector||r.injector,projectableNodes:n.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return r!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}attachDomPortal=n=>{let r=n.element;r.parentNode;let i=this._document.createComment("dom-portal");n.setAttachedHost(this),r.parentNode.insertBefore(i,r),this._getRootNode().appendChild(r),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(r,i)})};_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Zo({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[br]})}return e})(),Ki;function YM(){if(Ki==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ki=!0}))}finally{Ki=Ki||!1}return Ki}function KM(e){return YM()?e:!!e.capture}var JM=new Ee("cdk-input-modality-detector-options"),XM={ignoreKeys:[18,17,224,91,16]},Eb=650,hc={passive:!0,capture:!0},QM=(()=>{class e{_platform=R(rr);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new rh(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=bn(n))};_onMousedown=n=>{Date.now()-this._lastTouchMs<Eb||(this._modality.next(ub(n)?"keyboard":"mouse"),this._mostRecentTarget=bn(n))};_onTouchstart=n=>{if(hb(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=bn(n)};constructor(){let n=R(Ge),r=R(rt),i=R(JM,{optional:!0});if(this._options=A(A({},XM),i),this.modalityDetected=this._modality.pipe(Q1(1)),this.modalityChanged=this.modalityDetected.pipe(J1()),this._platform.isBrowser){let o=R(Dn).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[Ut(o,r,"keydown",this._onKeydown,hc),Ut(o,r,"mousedown",this._onMousedown,hc),Ut(o,r,"touchstart",this._onTouchstart,hc)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n())}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fs=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(Fs||{}),eL=new Ee("cdk-focus-monitor-default-options"),Ss=KM({passive:!0,capture:!0}),tL=(()=>{class e{_ngZone=R(Ge);_platform=R(rr);_inputModalityDetector=R(QM);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=R(rt,{optional:!0});_stopInputModalityDetector=new ve;constructor(){let n=R(eL,{optional:!0});this._detectionMode=n?.detectionMode||Fs.IMMEDIATE}_rootNodeFocusAndBlurListener=n=>{let r=bn(n);for(let i=r;i;i=i.parentElement)n.type==="focus"?this._onFocus(n,i):this._onBlur(n,i)};monitor(n,r=!1){let i=gn(n);if(!this._platform.isBrowser||i.nodeType!==1)return lh();let o=ml(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new ve,rootNode:o};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=gn(n),i=this._elementInfo.get(r);i&&(i.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(i))}focusVia(n,r,i){let o=gn(n),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,r,l)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(i))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Fs.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===Fs.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?Eb:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(n,r){let i=this._elementInfo.get(r),o=bn(n);!i||!i.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),i)}_onBlur(n,r){let i=this._elementInfo.get(r);!i||i.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(i,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,i=this._rootNodeFocusListenerCount.get(r)||0;i||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ss),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ss)}),this._rootNodeFocusListenerCount.set(r,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(bi(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let i=this._rootNodeFocusListenerCount.get(r);i>1?this._rootNodeFocusListenerCount.set(r,i-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ss),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ss),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,i){this._setClasses(n,r),this._emitOrigin(i,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((i,o)=>{(o===n||i.checkChildren&&o.contains(n))&&r.push([o,i])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:i}=this._inputModalityDetector;if(i!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(r))return!0}return!1}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nL=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pt({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
|
|
42
|
+
`],encapsulation:2,changeDetection:0})}return e})(),Sb=(()=>{class e{_platform=R(rr);constructor(){}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return iL(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=rL(dL(n));if(r&&(Ug(r)===-1||!this.isVisible(r)))return!1;let i=n.nodeName.toLowerCase(),o=Ug(n);return n.hasAttribute("contenteditable")?o!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!uL(n)?!1:i==="audio"?n.hasAttribute("controls")?o!==-1:!1:i==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return hL(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rL(e){try{return e.frameElement}catch{return null}}function iL(e){return!!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function oL(e){let t=e.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function sL(e){return lL(e)&&e.type=="hidden"}function aL(e){return cL(e)&&e.hasAttribute("href")}function lL(e){return e.nodeName.toLowerCase()=="input"}function cL(e){return e.nodeName.toLowerCase()=="a"}function Cb(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return!1;let t=e.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function Ug(e){if(!Cb(e))return null;let t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function uL(e){let t=e.nodeName.toLowerCase(),n=t==="input"&&e.type;return n==="text"||n==="password"||t==="select"||t==="textarea"}function hL(e){return sL(e)?!1:oL(e)||aL(e)||e.hasAttribute("contenteditable")||Cb(e)}function dL(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var fL=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,t,n,r,i=!1,o){this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._injector=o,i||this.attachAnchors()}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?$o(e,{injector:this._injector}):setTimeout(e)}},pL=(()=>{class e{_checker=R(Sb);_ngZone=R(Ge);_document=R(rt);_injector=R(Tt);constructor(){R(_l).load(nL)}create(n,r=!1){return new fL(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hg(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function mt(e){return e==null?"":typeof e=="string"?e:`${e}px`}function gL(e,...t){return t.length?t.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var $g=bM(),mL=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,t){this._viewportRuler=e,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=mt(-this._previousScrollPosition.left),e.style.top=mt(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,r=t.style,i=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),$g&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),$g&&(n.scrollBehavior=i,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}},_L=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(ch(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Ib=class{enable(){}disable(){}attach(){}};function $u(e,t){return t.some(n=>{let r=e.bottom<n.top,i=e.top>n.bottom,o=e.right<n.left,s=e.left>n.right;return r||i||o||s})}function zg(e,t){return t.some(n=>{let r=e.top<n.top,i=e.bottom>n.bottom,o=e.left<n.left,s=e.right>n.right;return r||i||o||s})}var vL=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();$u(t,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},yL=(()=>{class e{_scrollDispatcher=R(xM);_viewportRuler=R(Ud);_ngZone=R(Ge);_document=R(rt);constructor(){}noop=()=>new Ib;close=n=>new _L(this._scrollDispatcher,this._ngZone,this._viewportRuler,n);block=()=>new mL(this._viewportRuler,this._document);reposition=n=>new vL(this._scrollDispatcher,this._viewportRuler,this._ngZone,n);static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Tb=class{positionStrategy;scrollStrategy=new Ib;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n])}}},bL=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}},Db=(()=>{class e{_attachedOverlays=[];_document=R(rt);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wL=(()=>{class e extends Db{_ngZone=R(Ge);_renderer=R(Dn).createRenderer(null,null);_cleanupKeydown;add(n){super.add(n),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=n=>{let r=this._attachedOverlays;for(let i=r.length-1;i>-1;i--)if(r[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>r[i]._keydownEvents.next(n));break}};static \u0275fac=(()=>{let n;return function(r){return(n||(n=z_(e)))(r||e)}})();static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xL=(()=>{class e extends Db{_platform=R(rr);_ngZone=R(Ge);_renderer=R(Dn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(n){if(super.add(n),!this._isAttached){let r=this._document.body,i={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[Ut(this._renderer,r,"pointerdown",this._pointerDownListener,i),Ut(this._renderer,r,"click",this._clickListener,i),Ut(this._renderer,r,"auxclick",this._clickListener,i),Ut(this._renderer,r,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(n=>n()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=n=>{this._pointerDownEventTarget=bn(n)};_clickListener=n=>{let r=bn(n),i=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){let a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(qg(a.overlayElement,r)||qg(a.overlayElement,i))break;let l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(n)):l.next(n)}};static \u0275fac=(()=>{let n;return function(r){return(n||(n=z_(e)))(r||e)}})();static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qg(e,t){let n=typeof ShadowRoot<"u"&&ShadowRoot,r=t;for(;r;){if(r===e)return!0;r=n&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var Ob=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pt({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
|
43
|
+
`],encapsulation:2,changeDetection:0})}return e})(),Wd=(()=>{class e{_platform=R(rr);_containerElement;_document=R(rt);_styleLoader=R(_l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||Hg()){let i=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;o<i.length;o++)i[o].remove()}let r=this._document.createElement("div");r.classList.add(n),Hg()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(Ob)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),EL=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,r){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",r)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Zd=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ve;_attachments=new ve;_detachments=new ve;_positionStrategy;_scrollStrategy;_locationChanges=bt.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new ve;_outsidePointerEvents=new ve;_renders=new ve;_afterRenderRef;_afterNextRenderRef;constructor(e,t,n,r,i,o,s,a,l,u=!1,d,h){this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._location=a,this._outsideClickDispatcher=l,this._animationsDisabled=u,this._injector=d,this._renderer=h,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=WD(()=>hv(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=$o(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=A(A({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Ne(A({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=mt(this._config.width),e.height=mt(this._config.height),e.minWidth=mt(this._config.minWidth),e.minHeight=mt(this._config.minHeight),e.maxWidth=mt(this._config.maxWidth),e.maxHeight=mt(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new EL(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,t,n){let r=fb(t||[]).filter(i=>!!i);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(bi(Aa(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}},Wg="cdk-overlay-connected-position-bounding-box",SL=/([A-Za-z%]+)$/,CL=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new ve;_resizeSubscription=bt.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,r,i){this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Wg),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,r=this._containerRect,i=[],o;for(let s of this._preferredPositions){let a=this._getOriginPoint(e,r,s),l=this._getOverlayPoint(a,t,s),u=this._getOverlayFit(l,t,n,s);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,a);return}if(this._canFitWithFlexibleDimensions(u,l,n)){i.push({position:s,origin:a,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(a,s)});continue}(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:l,originPoint:a,position:s,overlayRect:t})}if(i.length){let s=null,a=-1;for(let l of i){let u=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);u>a&&(a=u,s=l)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Sr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Wg),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:s}t.left<0&&(r-=t.left);let i;return n.originY=="center"?i=e.top+e.height/2:i=n.originY=="top"?e.top:e.bottom,t.top<0&&(i-=t.top),{x:r,y:i}}_getOverlayPoint(e,t,n){let r;n.overlayX=="center"?r=-t.width/2:n.overlayX==="start"?r=this._isRtl()?-t.width:0:r=this._isRtl()?0:-t.width;let i;return n.overlayY=="center"?i=-t.height/2:i=n.overlayY=="top"?0:-t.height,{x:e.x+r,y:e.y+i}}_getOverlayFit(e,t,n,r){let i=Gg(t),{x:o,y:s}=e,a=this._getOffset(r,"x"),l=this._getOffset(r,"y");a&&(o+=a),l&&(s+=l);let u=0-o,d=o+i.width-n.width,h=0-s,_=s+i.height-n.height,m=this._subtractOverflows(i.width,u,d),b=this._subtractOverflows(i.height,h,_),S=m*b;return{visibleArea:S,isCompletelyWithinViewport:i.width*i.height===S,fitsInViewportVertically:b===i.height,fitsInViewportHorizontally:m==i.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let r=n.bottom-t.y,i=n.right-t.x,o=Zg(this._overlayRef.getConfig().minHeight),s=Zg(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportVertically||o!=null&&o<=r,l=e.fitsInViewportHorizontally||s!=null&&s<=i;return a&&l}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=Gg(t),i=this._viewportRect,o=Math.max(e.x+r.width-i.width,0),s=Math.max(e.y+r.height-i.height,0),a=Math.max(i.top-n.top-e.y,0),l=Math.max(i.left-n.left-e.x,0),u=0,d=0;return r.width<=i.width?u=l||-o:u=e.x<this._viewportMargin?i.left-n.left-e.x:0,r.height<=i.height?d=a||-s:d=e.y<this._viewportMargin?i.top-n.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!IL(this._lastScrollVisibility,n)){let r=new bL(e,n);this._positionChanges.next(r)}this._lastScrollVisibility=n}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,r=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let i=0;i<t.length;i++)t[i].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,r=this._isRtl(),i,o,s;if(t.overlayY==="top")o=e.y,i=n.height-o+this._viewportMargin;else if(t.overlayY==="bottom")s=n.height-e.y+this._viewportMargin*2,i=n.height-s+this._viewportMargin;else{let _=Math.min(n.bottom-e.y+n.top,e.y),m=this._lastBoundingBoxSize.height;i=_*2,o=e.y-_,i>m&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-m/2)}let a=t.overlayX==="start"&&!r||t.overlayX==="end"&&r,l=t.overlayX==="end"&&!r||t.overlayX==="start"&&r,u,d,h;if(l)h=n.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(a)d=e.x,u=n.right-e.x;else{let _=Math.min(n.right-e.x+n.left,e.x),m=this._lastBoundingBoxSize.width;u=_*2,d=e.x-_,u>m&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-m/2)}return{top:o,left:d,bottom:s,right:h,width:u,height:i}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=mt(n.height),r.top=mt(n.top),r.bottom=mt(n.bottom),r.width=mt(n.width),r.left=mt(n.left),r.right=mt(n.right),t.overlayX==="center"?r.alignItems="center":r.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?r.justifyContent="center":r.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",i&&(r.maxHeight=mt(i)),o&&(r.maxWidth=mt(o))}this._lastBoundingBoxSize=n,Sr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Sr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Sr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){let n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Sr(n,this._getExactOverlayY(t,e,u)),Sr(n,this._getExactOverlayX(t,e,u))}else n.position="static";let s="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=mt(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=mt(o.maxWidth):i&&(n.maxWidth="")),Sr(this._pane.style,n)}_getExactOverlayY(e,t,n){let r={top:"",bottom:""},i=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(i.y+this._overlayRect.height)}px`}else r.top=mt(i.y);return r}_getExactOverlayX(e,t,n){let r={left:"",right:""},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(i.x+this._overlayRect.width)}px`}else r.left=mt(i.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zg(e,n),isOriginOutsideView:$u(e,n),isOverlayClipped:zg(t,n),isOverlayOutsideView:$u(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&fb(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof $t)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}};function Sr(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Zg(e){if(typeof e!="number"&&e!=null){let[t,n]=e.split(SL);return!n||n==="px"?parseFloat(t):null}return e||null}function Gg(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}function IL(e,t){return e===t?!0:e.isOriginClipped===t.isOriginClipped&&e.isOriginOutsideView===t.isOriginOutsideView&&e.isOverlayClipped===t.isOverlayClipped&&e.isOverlayOutsideView===t.isOverlayOutsideView}var Yg="cdk-global-overlay-wrapper",TL=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Yg),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:i,maxWidth:o,maxHeight:s}=n,a=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),l=(i==="100%"||i==="100vh")&&(!s||s==="100%"||s==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",_="",m="",b="";a?b="flex-start":u==="center"?(b="center",h?m=d:_=d):h?u==="left"||u==="end"?(b="flex-end",_=d):(u==="right"||u==="start")&&(b="flex-start",m=d):u==="left"||u==="start"?(b="flex-start",_=d):(u==="right"||u==="end")&&(b="flex-end",m=d),e.position=this._cssPosition,e.marginLeft=a?"0":_,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=a?"0":m,t.justifyContent=b,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(Yg),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},DL=(()=>{class e{_viewportRuler=R(Ud);_document=R(rt);_platform=R(rr);_overlayContainer=R(Wd);constructor(){}global(){return new TL}flexibleConnectedTo(n){return new CL(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kb=(()=>{class e{scrollStrategies=R(yL);_overlayContainer=R(Wd);_positionBuilder=R(DL);_keyboardDispatcher=R(wL);_injector=R(Tt);_ngZone=R(Ge);_document=R(rt);_directionality=R(ba);_location=R(Fy);_outsideClickDispatcher=R(xL);_animationsModuleType=R(aS,{optional:!0});_idGenerator=R(db);_renderer=R(Dn).createRenderer(null,null);_appRef;_styleLoader=R(_l);constructor(){}create(n){this._styleLoader.load(Ob);let r=this._createHostElement(),i=this._createPaneElement(r),o=this._createPortalOutlet(i),s=new Tb(n);return s.direction=s.direction||this._directionality.value,new Zd(o,r,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Gn),this._renderer)}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=this._idGenerator.getId("cdk-overlay-"),r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(_r)),new GM(n,null,this._appRef,this._injector,this._document)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function OL(e,t){}var Ea=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext},kL=(()=>{class e extends qd{_elementRef=R($t);_focusTrapFactory=R(pL);_config;_interactivityChecker=R(Sb);_ngZone=R(Ge);_overlayRef=R(Zd);_focusMonitor=R(tL);_renderer=R(Jh);_platform=R(rr);_document=R(rt,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=R(Ko);_injector=R(Tt);_isDestroyed=!1;constructor(){super(),this._config=R(Ea,{optional:!0})||new Ea,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(n){this._ariaLabelledByQueue.push(n),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(n){let r=this._ariaLabelledByQueue.indexOf(n);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._contentAttached(),r}attachTemplatePortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._contentAttached(),r}attachDomPortal=n=>{this._portalOutlet.hasAttached();let r=this._portalOutlet.attachDomPortal(n);return this._contentAttached(),r};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),s(),n.removeAttribute("tabindex")},o=this._renderer.listen(n,"blur",i),s=this._renderer.listen(n,"mousedown",i)})),n.focus(r)}_focusByCssSelector(n,r){let i=this._elementRef.nativeElement.querySelector(n);i&&this._forceFocus(i,r)}_trapFocus(n){this._isDestroyed||$o(()=>{let r=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||r.focus(n);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(n)||this._focusDialogContainer(n);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',n);break;default:this._focusByCssSelector(this._config.autoFocus,n);break}},{injector:this._injector})}_restoreFocus(){let n=this._config.restoreFocus,r=null;if(typeof n=="string"?r=this._document.querySelector(n):typeof n=="boolean"?r=n?this._elementFocusedBeforeDialogWasOpened:null:n&&(r=n),this._config.restoreFocus&&r&&typeof r.focus=="function"){let i=ac(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(n){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(n)}_containsFocus(){let n=this._elementRef.nativeElement,r=ac();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ac()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pt({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&ca(Bg,7),n&2){let i;ua(i=ha())&&(r._portalOutlet=i.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&Go("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[br],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&nt(0,OL,0,0,"ng-template",0)},dependencies:[Bg],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
|
|
44
|
+
`],encapsulation:2})}return e})(),Bs=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new ve;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,t){this.overlayRef=e,this.config=t,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!gL(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this.containerInstance){let n=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},RL=new Ee("DialogScrollStrategy",{providedIn:"root",factory:()=>{let e=R(kb);return()=>e.scrollStrategies.block()}}),Rb=new Ee("DialogData"),PL=new Ee("DefaultDialogConfig"),NL=(()=>{class e{_overlay=R(kb);_injector=R(Tt);_defaultOptions=R(PL,{optional:!0});_parentDialog=R(e,{optional:!0,skipSelf:!0});_overlayContainer=R(Wd);_idGenerator=R(db);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ve;_afterOpenedAtThisLevel=new ve;_ariaHiddenElements=new Map;_scrollStrategy=R(RL);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=U1(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vm(void 0)));constructor(){}open(n,r){let i=this._defaultOptions||new Ea;r=A(A({},i),r),r.id=r.id||this._idGenerator.getId("cdk-dialog-"),r.id&&this.getDialogById(r.id);let o=this._getOverlayConfig(r),s=this._overlay.create(o),a=new Bs(s,r),l=this._attachContainer(s,a,r);return a.containerInstance=l,this._attachDialogContent(n,a,l,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){dc(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){dc(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),dc(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new Tb({positionStrategy:n.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,width:n.width,height:n.height,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}_attachContainer(n,r,i){let o=i.injector||i.viewContainerRef?.injector,s=[{provide:Ea,useValue:i},{provide:Bs,useValue:r},{provide:Zd,useValue:n}],a;i.container?typeof i.container=="function"?a=i.container:(a=i.container.type,s.push(...i.container.providers(i))):a=kL;let l=new Hu(a,i.viewContainerRef,Tt.create({parent:o||this._injector,providers:s}));return n.attach(l).instance}_attachDialogContent(n,r,i,o){if(n instanceof Eo){let s=this._createInjector(o,r,i,void 0),a={$implicit:o.data,dialogRef:r};o.templateContext&&(a=A(A({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new xb(n,null,a,s))}else{let s=this._createInjector(o,r,i,this._injector),a=i.attachComponentPortal(new Hu(n,o.viewContainerRef,s));r.componentRef=a,r.componentInstance=a.instance}}_createInjector(n,r,i,o){let s=n.injector||n.viewContainerRef?.injector,a=[{provide:Rb,useValue:n.data},{provide:Bs,useValue:r}];return n.providers&&(typeof n.providers=="function"?a.push(...n.providers(r,n,i)):a.push(...n.providers)),n.direction&&(!s||!s.get(ba,null,{optional:!0}))&&a.push({provide:ba,useValue:{value:n.direction,change:lh()}}),Tt.create({parent:s||o,providers:a})}_removeOpenDialog(n,r){let i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let n=this._overlayContainer.getContainerElement();if(n.parentElement){let r=n.parentElement.children;for(let i=r.length-1;i>-1;i--){let o=r[i];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||e)};static \u0275prov=de({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dc(e,t){let n=e.length;for(;n--;)t(e[n])}var AL=class{lastWidth;lastHeight;resizeTimeout=null;debounceDelay=200;onResizeCallback;constructor(e){this.onResizeCallback=e,this.lastWidth=window.innerWidth,this.lastHeight=window.innerHeight,window.addEventListener("resize",this.debouncedResize),window.addEventListener("orientationchange",this.handleImmediateResize)}destroy(){window.removeEventListener("resize",this.debouncedResize),window.removeEventListener("orientationchange",this.handleImmediateResize)}handleImmediateResize=()=>{this.triggerResize()};debouncedResize=()=>{this.resizeTimeout!==null&&clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.triggerResize()},this.debounceDelay)};triggerResize(){let e=window.innerWidth,t=window.innerHeight;(t!==this.lastHeight||e!==this.lastWidth)&&(this.onResizeCallback(),this.lastWidth=e,this.lastHeight=t)}},ML=Gm;function LL(e){return!!e[ML]}var VL=Symbol("__destroy"),Pb=Symbol("__decoratorApplied");function Nb(e){return typeof e=="string"?Symbol(`__destroy__${e}`):VL}function jL(e){e.prototype[Pb]=!0}function Ab(e,t){e[t]||(e[t]=new ve)}function Mb(e,t){e[t]&&(e[t].next(),e[t].complete(),e[t]=null)}function Lb(e){e instanceof bt&&e.unsubscribe()}function FL(e){Array.isArray(e)&&e.forEach(Lb)}function Vb(e,t){return function(){if(e&&e.call(this),Mb(this,Nb()),t.arrayName&&FL(this[t.arrayName]),t.checkProperties)for(let n in this)t.blackList?.includes(n)||Lb(this[n])}}function BL(e,t){e.prototype.ngOnDestroy=Vb(e.prototype.ngOnDestroy,t)}function UL(e,t){let n=e.\u0275pipe;n.onDestroy=Vb(n.onDestroy,t)}function HL(e={}){return t=>{LL(t)?UL(t,e):BL(t,e),jL(t)}}var Kg=7,Jg=Symbol("CheckerHasBeenSet");function $L(e,t){e[Jg]||zL()||(Xg(()=>Pa(Promise.resolve()).pipe(ho(()=>{let n;try{n=QE(e)}catch{n=null}let r=n?.lView;if(r==null)return sh;let i=r[Kg]||(r[Kg]=[]),o=new ve;return i.push(function(){Xg(()=>{o.next(),o.complete()})}),o}),ho(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(qL(e))})),e[Jg]=!0)}function zL(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"}function Xg(e){let t=fo.Zone;return t&&typeof t.root?.run=="function"?t.root.run(e):e()}function qL(e){return`
|
|
45
45
|
The ${e.constructor.name} still has subscriptions that haven't been unsubscribed.
|
|
46
46
|
This may happen if the class extends another class decorated with @UntilDestroy().
|
|
47
47
|
The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().
|
|
@@ -78,5 +78,5 @@ Url: ${ma(e)}`),!0)}function Wk(e,t){return e.type||!t||!t.length?!1:Yk(e).some(
|
|
|
78
78
|
super.ngOnDestroy();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`}var qu=!1;function XM(e,t,n){let r=e[t];if(qu&&typeof r!="function")throw new Error(`${e.constructor.name} is using untilDestroyed but doesn't implement ${t}`);Lb(e,n),e[t]=function(){r.apply(this,arguments),Mb(this,n),e[t]=r}}function QM(e,t){return n=>{let r=Ab(t);typeof t=="string"?XM(e,t,r):(qu&&e5(e),Lb(e,r));let i=e[r];return qu&&YM(e,i),n.pipe(yi(i))}}function e5(e){let t=Object.getPrototypeOf(e);if(!(Pb in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}var t5=class Gu{engagementTrigger;isMobile=window.CooeeSDK.uaParser.getDevice().type==="mobile";ngOnInit(){this.engagementTrigger=this.triggerContext?.triggerData}static \u0275fac=function(t){return new(t||Gu)};static \u0275cmp=Nt({type:Gu,selectors:[["cooee-base-video"]],inputs:{triggerContext:"triggerContext"},decls:0,vars:0,template:function(t,n){},encapsulation:2})},pc=Cn(Po()),n5=e=>({active:e}),r5=(e,t)=>t.mID;function i5(e,t){if(e&1&&$e(0,"img",9),e&2){let n=t.$implicit,r=ne(2);Me("src",n.url,cn)("alt",r.selectedItem.name)}}function o5(e,t){if(e&1&&Vt(0,i5,1,2,"img",9,Fi),e&2){let n=ne();jt(n.selectedItem.imgs)}}function s5(e,t){if(e&1&&$e(0,"img",9),e&2){let n=ne();Me("src",n.selectedItem.imageURL,cn)("alt",n.selectedItem.name)}}function a5(e,t){if(e&1){let n=Ft();Y(0,"a",18),ot("click",function(r){let i=ct(n).$implicit;return ne(2).changeItem(i),r.stopPropagation(),ut(r.preventDefault())}),$e(1,"img",19),K()}if(e&2){let n=t.$implicit,r=ne(2);Z(),Me("src",n.imageURL,cn)("alt",n.name)("ngClass",Dy(3,n5,n.mID===r.selectedItem.mID+""))}}function l5(e,t){if(e&1&&(Y(0,"span",16),Ke(1,"Selected Product"),K(),Y(2,"div",8),Vt(3,a5,2,5,"a",17,Fi),K()),e&2){let n=ne();Z(3),jt(n.items)}}function c5(e,t){if(e&1){let n=Ft();Y(0,"a",23),ot("click",function(r){let i=ct(n).$implicit,o=ne(2);return ut(o.changeVariant(r,i))}),Y(1,"span",24),Ke(2),K()()}if(e&2){let n=t.$implicit,r=ne(2);Jo("lc-selected-variant",(r.selectedVariant==null?null:r.selectedVariant.mID)===n.mID),Z(2),Ui(n.name)}}function u5(e,t){if(e&1&&(Y(0,"span",20),Ke(1,"Select Variant"),K(),Y(2,"div",21),Vt(3,c5,3,3,"a",22,r5),K()),e&2){let n=ne();Z(3),jt(n.selectedItem.vars)}}function h5(e,t){if(e&1&&(Y(0,"div",25),Ke(1,"Description"),K(),$e(2,"div",26),Sn(3,"safeHtml")),e&2){let n=ne();Z(2),Me("innerHTML",jn(3,1,n.selectedItem.desc),Mi)}}function d5(e,t){e&1&&Ke(0," Open Cart ")}function f5(e,t){e&1&&Ke(0," Add To Cart ")}var p5=class Zu{selectedItem;items;closeModel=new Xe;performCTA=new Xe;atcClicked=!1;selectedVariant=null;ClickActionType=pc.ClickActionType;ngOnInit(){this.updateSelectedVariant()}closeDialog(){this.closeModel.emit()}clickAddToCart(t){this.performCTA.emit({item:t,cta:this.atcClicked?pc.ClickActionType.OPEN_CART:pc.ClickActionType.ADD_TO_CART}),this.atcClicked=!0}async changeItem(t){this.selectedItem=t,this.updateSelectedVariant()}changeVariant(t,n){t.stopPropagation(),t.preventDefault(),this.selectedVariant=n,this.selectedItem.selectedOrFirstVariant.value=this.selectedVariant}updateSelectedVariant(){this.selectedVariant=this.selectedItem.selectedOrFirstVariant.value}static \u0275fac=function(t){return new(t||Zu)};static \u0275cmp=Nt({type:Zu,selectors:[["cooee-product-modal"]],inputs:{selectedItem:"selectedItem",items:"items"},outputs:{closeModel:"closeModel",performCTA:"performCTA"},decls:27,vars:11,consts:[[1,"lc-card-wrapper"],[1,"lc-card-header"],[1,"lc-header"],[1,"lc-close-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","fill","#000"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],[1,"lc-card-content"],[1,"lc-image-strip"],[1,"w-28","h-28","object-contain",3,"src","alt"],[1,"lc-inner-body"],[1,"lc-item-name"],[1,"lc-item-price",3,"innerHTML"],[1,"lc-card-footer"],[1,"lc-cta-button",3,"click"],[1,"lc-more-info-button",3,"click"],[1,"lc-selected-product-title"],["href","#"],["href","#",3,"click"],[1,"product-selector",3,"src","alt","ngClass"],[1,"lc-selected-variant-title"],[1,"lc-variant-list"],["href","#",1,"lc-variant",3,"lc-selected-variant"],["href","#",1,"lc-variant",3,"click"],[1,"truncate","max-w-[200px]"],[1,"lc-description-title"],[1,"lc-description",3,"innerHTML"]],template:function(t,n){t&1&&(Y(0,"div",0)(1,"div",1)(2,"div",2),Ke(3,"Shop Now"),K(),Y(4,"button",3),ot("click",function(){return n.closeDialog()}),mr(),Y(5,"svg",4),$e(6,"path",5)(7,"path",6),K()()(),ea(),Y(8,"div",7)(9,"div",8),it(10,o5,2,0)(11,s5,1,2,"img",9),K(),Y(12,"div",10)(13,"div",11),Ke(14),K(),$e(15,"span",12),Sn(16,"cooeeCurrency"),Sn(17,"safeHtml"),it(18,l5,5,0)(19,u5,5,0)(20,h5,4,3),K()(),Y(21,"div",13)(22,"button",14),ot("click",function(){return n.clickAddToCart(n.selectedItem)}),it(23,d5,1,0)(24,f5,1,0),K(),Y(25,"button",15),ot("click",function(){return n.performCTA.emit({item:n.selectedItem,cta:n.ClickActionType.GO_TO_PRODUCT})}),Ke(26," More Info "),K()()()),t&2&&(Z(10),rt(n.selectedItem.imgs!=null&&n.selectedItem.imgs.length?10:11),Z(4),Ui(n.selectedItem.name),Z(),Me("innerHTML",jn(17,9,jn(16,7,n.selectedVariant==null||n.selectedVariant.price==null?null:n.selectedVariant.price.d)),Mi),Z(3),rt(n.items.length>1?18:-1),Z(),rt(n.selectedItem.vars[0]!=null&&n.selectedItem.vars[0].name!=="Default Title"?19:-1),Z(),rt(n.selectedItem.desc?20:-1),Z(3),rt(n.atcClicked?23:24))},dependencies:[cl,ll,nl],styles:["[_nghost-%COMP%]{display:block;background:#fff}.lc-card-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;height:100%;overflow:auto}.lc-card-header[_ngcontent-%COMP%]{display:var(--header-display, flex);flex-direction:row;justify-content:space-between;align-items:center;padding:8px 16px;border-bottom:1px solid var(--lc-color-gray-300)}.lc-header[_ngcontent-%COMP%]{font-size:24px;font-weight:500;color:#000}.lc-close-button[_ngcontent-%COMP%]{background:transparent;border:none;width:36px;height:36px}.lc-close-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000000b3}.lc-card-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overscroll-behavior:contain}.lc-inner-body[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:column;gap:8px}.lc-image-strip[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:auto;gap:.5rem;flex-wrap:nowrap}.lc-image-strip[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto;height:200px}.lc-image-strip[_ngcontent-%COMP%] .product-selector[_ngcontent-%COMP%]{height:100px;flex-shrink:0;padding:2px}.lc-image-strip[_ngcontent-%COMP%] .product-selector.active[_ngcontent-%COMP%]{border:red solid 1px}.lc-item-name[_ngcontent-%COMP%]{font-size:20px;font-weight:600;line-height:normal;color:#000}.lc-item-price[_ngcontent-%COMP%]{font-size:18px;font-weight:500;color:#000}.lc-variant-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.5rem;width:100%}.lc-variant[_ngcontent-%COMP%]{padding:4px 8px;border-radius:4px;background-color:#f3f4f6;color:#1f2937;font-size:12px;cursor:pointer;border:1px solid #e5e7eb;display:flex;align-items:center;gap:4px;text-decoration:none}.lc-selected-variant[_ngcontent-%COMP%]{border:1px solid black;color:#000}.lc-description-title[_ngcontent-%COMP%], .lc-selected-product-title[_ngcontent-%COMP%], .lc-selected-variant-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin-top:8px;line-height:normal;color:#000}.lc-description[_ngcontent-%COMP%]{line-height:normal;color:#000}.lc-card-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:12px;background-color:#0000004d;box-shadow:0 4px 6px #52525b4d;gap:12px}.lc-cta-button[_ngcontent-%COMP%], .lc-more-info-button[_ngcontent-%COMP%]{width:50%;padding:12px;border:none;border-radius:.5rem;font-weight:600;display:flex;justify-content:center;cursor:pointer;font-size:16px}.lc-cta-button[_ngcontent-%COMP%]{background-color:#000;color:#fff}.lc-more-info-button[_ngcontent-%COMP%]{background-color:#fff;color:#000}"]})},g5=class Yu{width;static \u0275fac=function(t){return new(t||Yu)};static \u0275cmp=Nt({type:Yu,selectors:[["cooee-video-progress-bar"]],inputs:{width:"width"},decls:5,vars:2,consts:[[1,"lc:absolute","lc:top-1","lc:w-full","lc:z-10"],[1,"lc:px-2"],[1,"lc:h-1","lc:w-full","lc:bg-gray-700","lc:mb-2"],[1,"lc:h-1","lc:bg-pink-500"]],template:function(t,n){t&1&&(Y(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),$e(4,"div"),K()()()()),t&2&&(Z(3),tl("width",n.width,"%"))},encapsulation:2})},t_=Cn(Po());function _5(e,t){e&1&&Ke(0," Open Cart ")}function m5(e,t){e&1&&Ke(0," Add To Cart ")}var v5=class Ku{item;performCTA=new Xe;atcClicked=!1;clickAddToCart(t){t.stopPropagation(),this.performCTA.emit({item:this.item,cta:this.atcClicked?t_.ClickActionType.OPEN_CART:t_.ClickActionType.ADD_TO_CART}),this.atcClicked=!0}static \u0275fac=function(t){return new(t||Ku)};static \u0275cmp=Nt({type:Ku,selectors:[["cooee-product-card"]],inputs:{item:"item"},outputs:{performCTA:"performCTA"},decls:13,vars:11,consts:[[1,"lc-item-card"],[1,"lc-card-content"],[1,"lc-item-image",3,"alt","src"],[1,"lc-product-details"],[1,"lc-item-name"],[1,"lc-item-price",3,"innerHTML"],[1,"lc-cta-button",3,"click"]],template:function(t,n){if(t&1){let r=Ft();Y(0,"div",0)(1,"div",1),$e(2,"img",2),Y(3,"div",3)(4,"div",4),Ke(5),K(),Un(6),$e(7,"div",5),Sn(8,"cooeeCurrency"),Sn(9,"safeHtml"),K()(),Y(10,"button",6),ot("click",function(i){return ct(r),ut(n.clickAddToCart(i))}),it(11,_5,1,0)(12,m5,1,0),K()()}if(t&2){Z(2),Bi("alt",n.item.name),Me("src",n.item.imageURL,cn),Z(3),xn(" ",n.item.name," ");let r=n.item.selectedOrFirstVariant.value.price.d;Z(2),Me("innerHTML",jn(9,9,jn(8,7,r)),Mi),Z(3),Jo("atc-clicked",n.atcClicked),Z(),rt(n.atcClicked?11:12)}},dependencies:[ll,cl],styles:["[_nghost-%COMP%]{display:block;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background-color:#ffffff80;border-radius:7px;cursor:pointer}.lc-item-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:8px}.lc-card-content[_ngcontent-%COMP%]{display:flex;gap:8px;width:100%;align-items:start}.lc-item-image[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:cover;box-sizing:border-box;border-radius:7px}.lc-product-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.5px;font-size:10.5px}.lc-item-name[_ngcontent-%COMP%]{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:normal;color:#000}.lc-item-price[_ngcontent-%COMP%]{font-size:16px;line-height:normal;color:#000}.lc-cta-button[_ngcontent-%COMP%]{padding:12px 8px;border:none;border-radius:8px;width:100%;background:#000;text-align:center;font-weight:500;cursor:pointer;color:#fff;font-size:16px}.lc-cta-button.atc-clicked[_ngcontent-%COMP%]{background:#000}"]})},y5=["swiperContainer"],b5=["videoEl"],w5=(e,t)=>t.url,E5=(e,t)=>t.mID;function x5(e,t){if(e&1&&$e(0,"source",14),e&2){let n=t.$implicit;Bi("type",n.mimeType),Me("src",n.url,cn)}}function S5(e,t){e&1&&ad(0)}function C5(e,t){if(e&1){let n=Ft();$e(0,"cooee-video-progress-bar",17),Y(1,"div",18)(2,"cooee-mute-toggle",19),ot("toggled",function(){ct(n);let r=ne(2);return ut(r.toggleMute())}),K(),it(3,S5,1,0,"ng-container",10),K()}if(e&2){let n=ne().$index,r=Zn(4),i=ne(),o=Zn(11);Me("width",i.videoProgress[n]||0),Z(2),Me("muted",i.muted)("videoEl",r),Z(),Me("ngTemplateOutlet",o)}}function I5(e,t){if(e&1){let n=Ft();Y(0,"cooee-product-card",22),ot("performCTA",function(r){ct(n);let i=ne(2).$implicit,o=ne();return ut(o.performClickToAction(r,i))})("click",function(){let r=ct(n).$implicit,i=ne(2).$implicit,o=ne();return ut(o.productCardClicked(r,i))}),K()}if(e&2){let n=t.$implicit;Me("item",n)}}function T5(e,t){if(e&1&&(Y(0,"div",15)(1,"div",20),Vt(2,I5,1,1,"cooee-product-card",21,E5),K()()),e&2){let n=ne().$implicit;Z(2),jt(n.items)}}function O5(e,t){if(e&1){let n=Ft();Y(0,"cooee-product-modal",23),ot("performCTA",function(r){ct(n);let i=ne(2);return ut(i.performClickToAction(r,i.selectedVideo))})("closeModel",function(){ct(n);let r=ne(2);return ut(r.productModalClosed())}),K()}if(e&2){let n=ne(2);Me("selectedItem",n.selectedItem)("items",n.selectedVideo.items)}}function D5(e,t){if(e&1){let n=Ft();Y(0,"div",6)(1,"div",11)(2,"div",12)(3,"video",13,2),ot("timeupdate",function(r){let i=ct(n).$index,o=ne();return ut(o.updateProgress(r,i))})("click",function(){let r=ct(n).$index,i=ne();return ut(i.currentIndex===r&&i.toggleMute())})("ended",function(){ct(n);let r=Zn(4),i=ne();return ut(i.onVideoEnded(r))}),Vt(5,x5,1,2,"source",14,w5),K(),it(7,C5,4,4)(8,T5,4,0,"div",15),K(),it(9,O5,1,2,"cooee-product-modal",16),K()()}if(e&2){let n=t.$implicit,r=t.$index,i=ne();Z(3),Me("ngClass",i.viewTemplateClassName)("autoplay",i.currentIndex===r)("muted",i.muted)("poster",n.thumbnail,cn),Ko("data-video-id",n.id),Z(2),jt(n.sources),Z(2),rt(i.currentIndex===r?7:-1),Z(),rt(n.items.length&&i.currentIndex===r?8:-1),Z(),rt(i.selectedItem&&i.currentIndex===r?9:-1)}}function R5(e,t){e&1&&ad(0)}function k5(e,t){if(e&1){let n=Ft();Y(0,"button",24),ot("click",function(){ct(n);let r=ne();return ut(r.close())}),mr(),Y(1,"svg",25),$e(2,"path",26)(3,"path",27),K()()}}var Ir=class extends t5{constructor(e,t,n,r){super(),this.cdr=e,this.elementRef=t,this.dialogRef=n,this.data=r,this.videos=r.videos,this.currentIndex=r.currentIndex,this.triggerContext=r.triggerContext}videos=[];currentIndex=0;swiperContainerRef;videoElements;muted=!1;videoProgress=[];selectedItem=null;selectedVideo;swiperInstance;detailPopupTemplate;viewTemplateClassName="lc-video-only-view";resizeDebouncer=new BM(this.onResize.bind(this));onResize(){this.swiperInstance?.destroy?.(),this.reInitSwiper()}ngOnInit(){super.ngOnInit(),this.detailPopupTemplate=this.engagementTrigger?.content?.videoConfig?.detailPopup.template??"VIDEO_ONLY_VIEW";let e=this.elementRef.nativeElement.shadowRoot,t=Qy.get().website.commonCSS;switch(Nr.injectRawCSS(t,e),Nr.injectStylesheet(Si.styleURL,e),Nr.injectSwiperCSS(e),this.detailPopupTemplate){case"PRODUCT_DETAIL_VIEW":this.selectItemForDetailView(),this.viewTemplateClassName="lc-product-detail-view";break;case"VIDEO_ONLY_VIEW":this.viewTemplateClassName="lc-video-only-view";break}}ngAfterViewInit(){wc(this.getCurrentVideoElement(),"loadeddata").pipe(QM(this)).subscribe(()=>{this.initSwiper()})}ngOnDestroy(){this.swiperInstance?.destroy?.(),this.resizeDebouncer.destroy()}close(e=this.videos[this.currentIndex],t=this.currentIndex){let n=this.getCurrentVideoElement();this.dialogRef.close({lastVideo:e,lastVideoIndex:t,lastVideoDuration:n?.currentTime})}performClickToAction(e,t){this.data.onCTAPerformed({cta:e.cta,item:e.item,video:t})}getCurrentVideoElement(){return this.videoElements.get(this.currentIndex)?.nativeElement}moveToNextVideo(){this.swiperInstance.slideTo(this.currentIndex+1)}productModalClosed(){this.selectedItem=null,this.selectedVideo=void 0,this.swiperInstance.enable()}pauseAll(){this.videoElements.forEach(e=>e.nativeElement.pause())}async toggleMute(){this.muted=!this.muted,this.videoElements.forEach(t=>t.nativeElement.muted=this.muted);let e=[this.muted?St.EVENT_VIDEO_MUTED:St.EVENT_VIDEO_UNMUTED,{current:this.currentVideoProps()},{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(e),await Yp.set(Gp.MUTED,this.muted),this.cdr.detectChanges()}playActiveVideo(){this.pauseAll();let e=this.getCurrentVideoElement();e&&(e.currentTime=1,e.play().then(async()=>{this.muted=await Yp.get(Gp.MUTED,!1),e.muted=this.muted}))}onVideoEnded(e){if(this.currentIndex<this.videos.length-1)this.selectedItem?(e.currentTime=0,e.play()):this.moveToNextVideo();else{let t=this.getPreviousVideoDataForEvent(),n=[St.EVENT_LAST_VIDEO_ENDED,{previous:t},{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(n),e.currentTime=0,e.play()}}updateProgress(e,t){let n=e.target;this.videoProgress[t]=n.currentTime/n.duration*100,this.cdr.detectChanges()}onSlideChange(e){let t=this.getPreviousVideoDataForEvent();this.currentIndex=e.realIndex,this.playActiveVideo(),this.detailPopupTemplate==="PRODUCT_DETAIL_VIEW"?this.selectItemForDetailView():(this.selectedItem=null,delete this.selectedVideo);let n=this.currentVideoProps(),r={previous:t,current:n},i=[St.EVENT_VIDEO_CHANGE,r,{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(i)}productCardClicked(e,t){let n={videoID:t.id,videoIndex:this.currentIndex},r=[St.EVENT_MORE_ITEM_INFO_CLICKED,{current:n},{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(r),this.selectedItem=e,this.selectedVideo=t,this.swiperInstance.disable()}reInitSwiper(){this.initSwiper(),this.selectedItem&&this.swiperInstance.disable()}initSwiper(){let e=this.isMobile?1:"auto",t=0;this.detailPopupTemplate==="PRODUCT_DETAIL_VIEW"&&(e="auto",t=10),this.swiperInstance=new window.CooeeSDK.Swiper(this.swiperContainerRef.nativeElement,{direction:this.isMobile?"vertical":"horizontal",effect:this.isMobile?"slide":"coverflow",slidesPerView:e,initialSlide:this.currentIndex,centeredSlides:!0,spaceBetween:t,coverflowEffect:{rotate:0,stretch:0,depth:400,modifier:1,slideShadows:!1},navigation:{nextEl:this.swiperContainerRef.nativeElement.querySelector(".swiper-button-next"),prevEl:this.swiperContainerRef.nativeElement.querySelector(".swiper-button-prev")}}),this.swiperInstance.on("slideChange",n=>{this.onSlideChange(n),this.cdr.detectChanges()}),this.playActiveVideo()}currentVideoProps(){return{videoID:this.videos[this.currentIndex].id,videoIndex:this.currentIndex}}getPreviousVideoDataForEvent(){let e=this.currentVideoProps(),t=this.videoElements.find(r=>r.nativeElement.dataset.videoId===this.videos[this.currentIndex].id)?.nativeElement;e.playedTillMS=Math.ceil(t?.currentTime*1e3);let n=t?.duration*1e3;return e.playedTillPercent=+(e.playedTillMS/n).toFixed(4),e}selectItemForDetailView(){this.selectedVideo=this.videos[this.currentIndex],this.selectedItem=this.isMobile?null:this.selectedVideo?.items?.[0]??null}};af(Ir,"\u0275fac",function(e){return new(e||Ir)(wt(Xo),wt(Mt),wt(Hs),wt(Nb))}),af(Ir,"\u0275cmp",Nt({type:Ir,selectors:[["cooee-video-swiper-dialog"]],viewQuery:function(e,t){if(e&1&&(ha(y5,5),ha(b5,5)),e&2){let n;da(n=fa())&&(t.swiperContainerRef=n.first),da(n=fa())&&(t.videoElements=n)}},inputs:{videos:"videos",currentIndex:"currentIndex"},features:[ji],decls:12,vars:2,consts:[["swiperContainer",""],["closeButtonTemplate",""],["videoEl",""],[1,"lc-shadow-inner",3,"ngClass"],[1,"swiper-container"],[1,"swiper-wrapper"],[1,"swiper-slide"],[1,"swiper-button-prev"],[1,"swiper-button-next"],[1,"lc-desktop-controls"],[4,"ngTemplateOutlet"],[1,"lc-video-modal-row"],[1,"lc-video-container"],["playsinline","","preload","metadata",1,"lc-video-el",3,"timeupdate","click","ended","ngClass","autoplay","muted","poster"],[3,"src","type"],[1,"lc-card-container"],[3,"selectedItem","items"],[3,"width"],[1,"lc-video-controls"],[3,"toggled","muted","videoEl"],[1,"lc-card-scroll"],[3,"item"],[3,"performCTA","click","item"],[3,"performCTA","closeModel","selectedItem","items"],[1,"lc-close-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],template:function(e,t){if(e&1&&(Y(0,"div",3)(1,"div",4,0)(3,"div",5),Vt(4,D5,10,8,"div",6,Fi),K(),$e(6,"div",7)(7,"div",8),K(),Y(8,"div",9),it(9,R5,1,0,"ng-container",10),K()(),it(10,k5,4,0,"ng-template",null,1,RO)),e&2){let n=Zn(11);Me("ngClass",t.viewTemplateClassName),Z(4),jt(t.videos),Z(5),Me("ngTemplateOutlet",n)}},dependencies:[v5,p5,ub,g5,AD,nl],styles:[`:host{display:flex}.lc-shadow-inner{position:relative;width:100vw;height:100vh;display:flex}@media (min-width: 768px){.lc-shadow-inner{background-color:color-mix(in oklab,#000 70%,transparent);justify-content:center;align-items:center}}.swiper-container{--swiper-navigation-size: 50px;--swiper-navigation-color: white;width:100dvw;height:100dvh}.lc-product-detail-view .swiper-container{align-items:center}@media (min-width: 768px){.swiper-container{width:100%;height:100%;max-width:90vw;max-height:90vh}}.swiper-wrapper{max-height:100%}.lc-product-detail-view .swiper-wrapper{align-items:center}@media (max-width: 768px){.swiper-button-prev,.swiper-button-next{display:none!important}}.swiper-slide{position:relative;display:flex;align-items:center;visibility:hidden}.lc-product-detail-view .swiper-slide{width:40vw!important;height:70vh!important}@media (min-width: 768px){.lc-product-detail-view .swiper-slide{min-width:650px!important}}@media (max-width: 768px){.lc-product-detail-view .swiper-slide{width:100%!important;height:100%!important}}@media (min-width: 768px){.lc-video-only-view .swiper-slide{width:fit-content!important}}@media (min-width: 768px){.swiper-slide{border-radius:12px;overflow:hidden}}.swiper-slide.swiper-slide-active,.swiper-slide.swiper-slide-prev,.swiper-slide.swiper-slide-next{visibility:visible}video{height:100%}.lc-product-detail-view video{width:100%;object-fit:cover;z-index:-1}.lc-desktop-controls{position:absolute;top:2rem;right:4rem;z-index:10;display:flex;gap:.5rem}@media (max-width: 768px){.lc-desktop-controls{display:none}}.lc-video-controls{position:absolute;top:1rem;z-index:10;right:.5rem;display:flex;gap:.25rem}.lc-video-controls .lc-close-button{display:block}@media (min-width: 768px){.lc-video-controls .lc-close-button{display:none}}.lc-close-button{border:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;background:#00000080;border-radius:100%}.lc-close-button svg{width:100%;height:100%}@media (min-width: 768px){.lc-close-button{width:48px;height:48px}}.lc-product-detail-view .lc-video-container{height:100%;position:relative}@media (min-width: 768px){.lc-product-detail-view .lc-video-container{width:50%}}.lc-video-only-view .lc-video-container{height:100%}.lc-card-container{position:absolute;bottom:12px;z-index:10;width:100%;padding-inline:12px;box-sizing:border-box}.lc-product-detail-view .lc-card-container{display:none}@media (max-width: 768px){.lc-product-detail-view .lc-card-container{display:block}}.lc-card-scroll{display:flex;overflow-x:auto;gap:12px;width:100%;scrollbar-width:none}.lc-card-scroll::-webkit-scrollbar{display:none}.lc-card-scroll cooee-product-card{flex:0 0 auto;width:80%;max-width:300px}.lc-card-scroll:has(>cooee-product-card:only-child) cooee-product-card{width:100%;max-width:none}.lc-product-detail-view .lc-video-modal-row{display:flex;justify-content:center;height:100%;width:100%}.lc-video-only-view .lc-video-modal-row{display:block;height:100%}.lc-product-detail-view cooee-product-modal{--header-display: none;width:50%;flex:1}@media (max-width: 768px){.lc-product-detail-view cooee-product-modal{--header-display: flex;width:100%;height:70dvh;position:absolute;bottom:0;z-index:2147483646}}.lc-video-only-view cooee-product-modal{width:100%;height:70dvh;z-index:2147483646;bottom:0;position:absolute}
|
|
82
|
-
`],encapsulation:3})),Ir=Vw([ZM()],Ir);var N5=["videoEl"],Fb=(e,t)=>t.url;function P5(e,t){if(e&1&&(Y(0,"div",1),Ke(1),K()),e&2){let n=ne();Z(),xn(" ",n.videoConfig.heading," ")}}function A5(e,t){if(e&1&&$e(0,"source",7),e&2){let n=t.$implicit;Bi("type",n.mimeType),Me("src",n.url,cn)}}function L5(e,t){if(e&1){let n=Ft();Y(0,"cooee-mute-toggle",12),ot("toggled",function(r){ct(n),ne();let i=Zn(5),o=ne(2);return ut(o.onMuteToggled(r,i))}),K()}if(e&2){ne();let n=Zn(5);Me("muted",n.muted)("videoEl",n)}}function M5(e,t){if(e&1&&$e(0,"img",13),e&2){ne(2);let n=rn(0);Me("src",n.imageURL,cn)("alt",n.name)}}function V5(e,t){if(e&1&&(Y(0,"div",10),it(1,M5,1,2,"img",13),Y(2,"div",14)(3,"span",15),Ke(4),K(),Un(5),$e(6,"span",16),Sn(7,"cooeeCurrency"),Sn(8,"safeHtml"),K()()),e&2){ne();let n=rn(0),r=ne(2);Z(),rt(r.showImage?1:-1),Z(3),xn(" ",n.name," ");let i=n.selectedOrFirstVariant.value.price.d;Z(2),Me("innerHTML",jn(8,5,jn(7,3,i)),Mi)}}function j5(e,t){if(e&1){let n=Ft();Y(0,"button",17),ot("click",function(){ct(n);let r=ne().$implicit,i=rn(0),o=ne(2);return ut(o.addToCartClicked(r,i))}),Ke(1," Add to cart "),K()}}function F5(e,t){if(e&1){let n=Ft();Un(0)(1),Y(2,"div",4)(3,"a",5),ot("click",function(r){let i=ct(n),o=i.$implicit,s=i.$index,a=Zn(5),l=ne(2);return ut(l.onVideoTap(r,o,s,a))}),Y(4,"video",6,0),ot("mouseenter",function(){ct(n);let r=Zn(5);ne(2);let i=rn(2);return ut(i&&r.play())})("mouseleave",function(){ct(n);let r=Zn(5);ne(2);let i=rn(2);return ut(i&&r.pause())}),Vt(6,A5,1,2,"source",7,Fb),K(),Y(8,"div",8),it(9,L5,1,2,"cooee-mute-toggle",9),K(),it(10,V5,9,7,"div",10),K(),it(11,j5,2,0,"button",11),K()}if(e&2){let n=t.$implicit,r=ne(2),i=rn(1),o=zr(n.items[0])&&r.videoConfig.footerContent==r.VideoConfigFooterContent.FIRST_ITEM;Z(4),Me("poster",n.thumbnail,cn)("muted",!0),Ko("autoplay",i||null),Z(2),jt(n.sources),Z(3),rt(r.videoConfig.showMuteButton?9:-1),Z(),rt(o?10:-1),Z(),rt(o?11:-1)}}function B5(e,t){if(e&1&&(Y(0,"div",2),Vt(1,F5,12,7,"div",4,Fi),K()),e&2){let n=ne();Z(),jt(n.videos)}}function U5(e,t){if(e&1&&$e(0,"source",7),e&2){let n=t.$implicit;Bi("type",n.mimeType),Me("src",n.url,cn)}}function H5(e,t){if(e&1){let n=Ft();Y(0,"div",18),mr(),Y(1,"svg",19),$e(2,"circle",20)(3,"circle",21),K(),ea(),Y(4,"div",22)(5,"video",23),ot("click",function(r){let i=ct(n),o=i.$implicit,s=i.$index,a=ne(2);return ut(a.onVideoTap(r,o,s))}),Vt(6,U5,1,2,"source",7,Fb),K()()()}if(e&2){let n=t.$implicit;Z(5),Me("muted",!0),Z(),jt(n.sources)}}function $5(e,t){if(e&1&&(Y(0,"div",3),Vt(1,H5,8,1,"div",18,Fi),K()),e&2){let n=ne();Z(),jt(n.videos)}}function z5(e,t){if(e&1){let n=Ft();Y(0,"cooee-draggable-video-popup",25),ot("videoClicked",function(){ct(n),ne();let r=rn(0),i=ne();return ut(i.onPopupVideoClicked(r,0))})("closeClicked",function(){ct(n);let r=ne(2);return ut(r.onPopupVideoClosed())}),K()}if(e&2){ne();let n=rn(0);Me("video",n)}}function W5(e,t){if(e&1&&(Un(0),it(1,z5,1,1,"cooee-draggable-video-popup",24)),e&2){let n=ne();zr(n.videos[0]),Z(),rt(n.hidePopupVideo?-1:1)}}var q5=class Ju extends O0{constructor(t,n){super(),this.dialog=t,this.cdr=n}videoElements;videos;VideoConfigTemplate=Y0;VideoConfigFooterContent=J0;VideoConfigAutoPlay=K0;isMobile=window.CooeeSDK.uaParser.getDevice().type==="mobile";hidePopupVideo;videoConfig;showImage;dialogRef=null;ngOnInit(){super.ngOnInit(),Nr.loadSwiperScript(),this.showImage=this.videoConfig.detailPopup.template==="PRODUCT_DETAIL_VIEW"}ngAfterViewInit(){this.playFirstVideo()}engagementTriggerReceived(t){this.videoConfig=t.content?.videoConfig,this.videos=this.videoConfig.videos}sendTriggerClicked(t,n){let r=new sc(St.EVENT_TRIGGER_CLICKED,{},this.triggerContext?.triggerData);r.videos=[t.id],n&&(r.items=[n]),this.sendEventToRenderer(r)}onVideoTap(t,n,r,i){t?.stopPropagation(),t?.preventDefault();let o=n.items?.[0];if(this.sendTriggerClicked(n,o?.toEmbed()),this.videoConfig.footerContent!=="FIRST_ITEM"){i&&(i.muted=!1,i.play(),this.onMuteToggled(!1,i));return}Nr.loadSwiperScript().then(()=>this.openDialog(n,r))}async performCTA(t){let n,r=this.triggerContext;if(t.cta===xs.ClickActionType.ADD_TO_CART)n=St.EVENT_ADD_TO_CART_CLICKED;else if(t.cta===xs.ClickActionType.GO_TO_PRODUCT)n=St.EVENT_VIEW_ITEM_CLICKED;else if(t.cta===xs.ClickActionType.OPEN_CART)n=St.EVENT_OPEN_CART_CLICKED,r.triggerData.redirectBehaviour=cA.RedirectBehaviour.CART_DRAWER;else{pn.warn(`Unsupported CTA type: ${t.cta}`);return}let i={at:t.cta},o={videoID:t.video.id};this.sendEvent(n,{current:o},t.video,t.item),this.executeCTAViaRenderer({clickAction:i,embeddedItem:t.item.toEmbed()})}addToCartClicked(t,n){this.performCTA({cta:xs.ClickActionType.ADD_TO_CART,item:n,video:t})}onPopupVideoClicked(t,n){this.hidePopupVideo=!0,this.onVideoTap(null,t,n),this.dialogRef?.closed.subscribe(()=>{this.hidePopupVideo=!1,this.cdr.detectChanges()})}onPopupVideoClosed(){this.hidePopupVideo=!0;let t=(new Date().getTime()-this.triggerContext.startTime.getTime())/1e3;this.sendEvent(St.EVENT_TRIGGER_CLOSED,{duration:t})}update(){}onMuteToggled(t,n){t||this.videoElements.forEach(r=>{r.nativeElement!==n&&(r.nativeElement.muted=!0,r.nativeElement.pause())})}playFirstVideo(){this.videoConfig.autoPlay==="ON_HOVER"&&this.isMobile&&this.videoElements.first?.nativeElement.play()}sendEvent(t,n,r,i){let o=new sc(t,n,this.engagementTrigger);r&&(o.videos=[r.id]),i&&(o.items=[i.toEmbed()]),this.sendEventToRenderer(o)}openDialog(t,n){let r={videos:this.videos,currentIndex:n,triggerContext:this.triggerContext,onCTAPerformed:o=>this.performCTA(o)};this.dialogRef&&this.dialogRef.close(),this.dialogRef=this.dialog.open(Ir,{width:"100vw",height:"100vh",data:r});let i={videoID:t.id,videoIndex:n};this.sendEvent(St.EVENT_VIDEO_DIALOG_OPENED,{current:i},t),this.dialogRef.closed.subscribe(o=>{if(!o)return;let s=o.lastVideoDuration*1e3,a={videoID:o.lastVideo.id,videoIndex:o.lastVideoIndex,playedTillMS:s,playedTillPercent:s/t.durationMS},l=new sc(St.EVENT_VIDEO_DIALOG_CLOSED,{current:a},this.triggerContext?.triggerData);l.videos=[o.lastVideo.id],this.sendEventToRenderer(l),this.dialogRef=null})}static \u0275fac=function(t){return new(t||Ju)(wt(FM),wt(Xo))};static \u0275cmp=Nt({type:Ju,selectors:[["cooee-shoppable-videos"]],viewQuery:function(t,n){if(t&1&&ha(N5,5),t&2){let r;da(r=fa())&&(n.videoElements=r)}},features:[ji],decls:7,vars:4,consts:[["videoEl",""],["id","lc-heading-text",1,"lc-heading-text","lc:mb-2","lc:text-lg","lc:text-center","lc:font-bold"],[1,"lc-video-list"],[1,"lc-video-stories","lc:flex","lc:overflow-auto","lc:m-3","lc:gap-3","lc:justify-center","lc:items-center"],[1,"lc-video-card"],["href","",1,"lc-video-wrapper","lc:rounded-lg",3,"click"],["width","100%","playsinline","","loop","","preload","metadata",1,"lc:rounded-lg","lc:transition-transform","lc:duration-300",3,"mouseenter","mouseleave","poster","muted"],[3,"src","type"],[1,"lc-video-controls"],[3,"muted","videoEl"],["id","lc-single-product",1,"lc-single-product"],["id","lc-cta-button","type","button",1,"lc-cta-button","lc:rounded","lc:w-full","lc:h-auto","lc:text-center","lc:font-normal","lc:cursor-pointer","lc:bg-black","lc:z-4","lc:p-4","lc:text-xl"],[3,"toggled","muted","videoEl"],[1,"lc-item-image",3,"src","alt"],[1,"lc-item-details"],[1,"lc-item-name","lc:line-clamp-1"],[1,"lc-item-price",3,"innerHTML"],["id","lc-cta-button","type","button",1,"lc-cta-button","lc:rounded","lc:w-full","lc:h-auto","lc:text-center","lc:font-normal","lc:cursor-pointer","lc:bg-black","lc:z-4","lc:p-4","lc:text-xl",3,"click"],[1,"lc-video-story","lc:relative","lc:w-20","lc:h-20","lc:cursor-pointer"],["viewBox","0 0 100 100",1,"lc:absolute","lc:top-0","lc:left-0","lc:w-full","lc:h-full"],["cx","50","cy","50","r","48","fill","none","stroke-width","4",1,"lc:stroke-gray-300"],["id","lc-video-story-circle","cx","50","cy","50","r","48","fill","none","stroke-width","4","stroke-linecap","round","stroke-dasharray","301.6","stroke-dashoffset","301.6",1,"lc:stroke-blue-500"],[1,"lc:w-full","lc:h-full","lc:rounded-full","lc:overflow-hidden"],["autoplay","","loop","",1,"lc:w-full","lc:h-full","lc:object-cover","lc:rounded-full",3,"click","muted"],[3,"video"],[3,"videoClicked","closeClicked","video"]],template:function(t,n){if(t&1&&(Un(0)(1)(2),it(3,P5,2,1,"div",1)(4,B5,3,0,"div",2)(5,$5,3,0,"div",3)(6,W5,2,2)),t&2){let r=n.videoConfig.template;Z(),zr(!n.videoConfig.autoPlay||n.videoConfig.autoPlay===n.VideoConfigAutoPlay.ON),Z(),zr(n.videoConfig.autoPlay===n.VideoConfigAutoPlay.ON_HOVER),Z(),rt(n.videoConfig.heading?3:-1),Z(),rt(r===n.VideoConfigTemplate.SIMPLE||r===n.VideoConfigTemplate.SWIPER?4:r===n.VideoConfigTemplate.STORY?5:r===n.VideoConfigTemplate.FLOATING_POPUP?6:-1)}},dependencies:[ll,XL,cl,ub],styles:["[_nghost-%COMP%]{display:block}.lc-video-list[_ngcontent-%COMP%]{display:flex;overflow-x:auto;gap:24px;margin:8px;align-items:center;scroll-snap-type:x mandatory;scroll-behavior:smooth}@media (min-width: 768px){.lc-video-list[_ngcontent-%COMP%]{justify-content:center}}.lc-video-wrapper[_ngcontent-%COMP%]{position:relative}.lc-video-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.5px;scroll-snap-align:center;min-width:200px;max-width:300px}.lc-video-card[_ngcontent-%COMP%] video[_ngcontent-%COMP%]:hover{scale:1.1}.lc-cta-button[_ngcontent-%COMP%]{color:#fff}.lc-video-controls[_ngcontent-%COMP%]{position:absolute;bottom:8px;z-index:10;right:8px;display:flex;gap:8px}.lc-single-product[_ngcontent-%COMP%]{display:flex;margin:.25rem 0;gap:.25rem;align-items:center}.lc-single-product[_ngcontent-%COMP%] .lc-item-image[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:.5rem}.lc-single-product[_ngcontent-%COMP%] .lc-item-details[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.25rem;font-size:14px;line-height:normal}.lc-single-product[_ngcontent-%COMP%] .lc-item-details[_ngcontent-%COMP%] .lc-item-name[_ngcontent-%COMP%]{color:#000;font-weight:600}.lc-single-product[_ngcontent-%COMP%] .lc-item-details[_ngcontent-%COMP%] .lc-item-price[_ngcontent-%COMP%]{color:#000}"]})};h2("CooeeWidgetSDK");(async()=>{let e=await n2(f2),t=(n,r)=>{let i=xD(n,{injector:e.injector});customElements.define(r,i)};t(lA,"cooee-sticky-atc"),t(eA,"cooee-progressbar"),t(q5,"cooee-shoppable-videos"),t(E2,"cooee-product-options-picker"),ps.filters.define("default",function(n){return n??""}),ps.defaultConfig.defaultFilter="default",ps.defaultConfig.useWith=!0,ps.defaultConfig.autoTrim="slurp"})();})();
|
|
81
|
+
`}var zu=!1;function WL(e,t,n){let r=e[t];if(zu&&typeof r!="function")throw new Error(`${e.constructor.name} is using untilDestroyed but doesn't implement ${t}`);Ab(e,n),e[t]=function(){r.apply(this,arguments),Mb(this,n),e[t]=r}}function ZL(e,t){return n=>{let r=Nb(t);typeof t=="string"?WL(e,t,r):(zu&&GL(e),Ab(e,r));let i=e[r];return zu&&$L(e,i),n.pipe(bi(i))}}function GL(e){let t=Object.getPrototypeOf(e);if(!(Pb in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}var YL=class qu{engagementTrigger;isMobile=window.CooeeSDK.uaParser.getDevice().type==="mobile";ngOnInit(){this.engagementTrigger=this.triggerContext?.triggerData}static \u0275fac=function(t){return new(t||qu)};static \u0275cmp=Pt({type:qu,selectors:[["cooee-base-video"]],inputs:{triggerContext:"triggerContext"},decls:0,vars:0,template:function(t,n){},encapsulation:2})},KL=e=>({active:e}),JL=(e,t)=>t.mID;function XL(e,t){if(e&1&&Ue(0,"img",9),e&2){let n=t.$implicit,r=Q(2);Pe("src",n.url,cn)("alt",r.selectedItem.name)}}function QL(e,t){if(e&1&&Lt(0,XL,1,2,"img",9,Vi),e&2){let n=Q();Vt(n.selectedItem.imgs)}}function e5(e,t){if(e&1&&Ue(0,"img",9),e&2){let n=Q();Pe("src",n.selectedItem.imageURL,cn)("alt",n.selectedItem.name)}}function t5(e,t){if(e&1){let n=jt();G(0,"a",18),ot("click",function(r){let i=ct(n).$implicit;return Q(2).changeItem(i),r.stopPropagation(),ut(r.preventDefault())}),Ue(1,"img",19),Y()}if(e&2){let n=t.$implicit,r=Q(2);Z(),Pe("src",n.imageURL,cn)("alt",n.name)("ngClass",Ty(3,KL,n.mID===r.selectedItem.mID+""))}}function n5(e,t){if(e&1&&(G(0,"span",16),Ye(1,"Selected Product"),Y(),G(2,"div",8),Lt(3,t5,2,5,"a",17,Vi),Y()),e&2){let n=Q();Z(3),Vt(n.items)}}function r5(e,t){if(e&1){let n=jt();G(0,"a",23),ot("click",function(r){let i=ct(n).$implicit,o=Q(2);return ut(o.changeVariant(r,i))}),G(1,"span",24),Ye(2),Y()()}if(e&2){let n=t.$implicit,r=Q(2);Yo("lc-selected-variant",(r.selectedVariant==null?null:r.selectedVariant.mID)===n.mID),Z(2),Fi(n.name)}}function i5(e,t){if(e&1&&(G(0,"span",20),Ye(1,"Select Variant"),Y(),G(2,"div",21),Lt(3,r5,3,3,"a",22,JL),Y()),e&2){let n=Q();Z(3),Vt(n.selectedItem.vars)}}function o5(e,t){if(e&1&&(G(0,"div",25),Ye(1,"Description"),Y(),Ue(2,"div",26),sn(3,"safeHtml")),e&2){let n=Q();Z(2),Pe("innerHTML",Sn(3,1,n.selectedItem.desc),ti)}}function s5(e,t){e&1&&Ye(0," Open Cart ")}function a5(e,t){e&1&&Ye(0," Add To Cart ")}var l5=class Wu{selectedItem;items;closeModel=new Xe;performCTA=new Xe;atcClicked=!1;selectedVariant=null;ClickActionType=Mn;ngOnInit(){this.updateSelectedVariant()}closeDialog(){this.closeModel.emit()}clickAddToCart(t){this.performCTA.emit({item:t,cta:this.atcClicked?Mn.OPEN_CART:Mn.ADD_TO_CART}),this.atcClicked=!0}async changeItem(t){this.selectedItem=t,this.updateSelectedVariant()}changeVariant(t,n){t.stopPropagation(),t.preventDefault(),this.selectedVariant=n,this.selectedItem.selectedOrFirstVariant.value=this.selectedVariant}updateSelectedVariant(){this.selectedVariant=this.selectedItem.selectedOrFirstVariant.value}static \u0275fac=function(t){return new(t||Wu)};static \u0275cmp=Pt({type:Wu,selectors:[["cooee-product-modal"]],inputs:{selectedItem:"selectedItem",items:"items"},outputs:{closeModel:"closeModel",performCTA:"performCTA"},decls:27,vars:11,consts:[[1,"lc-card-wrapper"],[1,"lc-card-header"],[1,"lc-header"],[1,"lc-close-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","fill","#000"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],[1,"lc-card-content"],[1,"lc-image-strip"],[1,"w-28","h-28","object-contain",3,"src","alt"],[1,"lc-inner-body"],[1,"lc-item-name"],[1,"lc-item-price",3,"innerHTML"],[1,"lc-card-footer"],[1,"lc-cta-button",3,"click"],[1,"lc-more-info-button",3,"click"],[1,"lc-selected-product-title"],["href","#"],["href","#",3,"click"],[1,"product-selector",3,"src","alt","ngClass"],[1,"lc-selected-variant-title"],[1,"lc-variant-list"],["href","#",1,"lc-variant",3,"lc-selected-variant"],["href","#",1,"lc-variant",3,"click"],[1,"truncate","max-w-[200px]"],[1,"lc-description-title"],[1,"lc-description",3,"innerHTML"]],template:function(t,n){t&1&&(G(0,"div",0)(1,"div",1)(2,"div",2),Ye(3,"Shop Now"),Y(),G(4,"button",3),ot("click",function(){return n.closeDialog()}),mr(),G(5,"svg",4),Ue(6,"path",5)(7,"path",6),Y()()(),Xs(),G(8,"div",7)(9,"div",8),nt(10,QL,2,0)(11,e5,1,2,"img",9),Y(),G(12,"div",10)(13,"div",11),Ye(14),Y(),Ue(15,"span",12),sn(16,"cooeeCurrency"),sn(17,"safeHtml"),nt(18,n5,5,0)(19,i5,5,0)(20,o5,4,3),Y()(),G(21,"div",13)(22,"button",14),ot("click",function(){return n.clickAddToCart(n.selectedItem)}),nt(23,s5,1,0)(24,a5,1,0),Y(),G(25,"button",15),ot("click",function(){return n.performCTA.emit({item:n.selectedItem,cta:n.ClickActionType.GO_TO_PRODUCT})}),Ye(26," More Info "),Y()()()),t&2&&(Z(10),tt(n.selectedItem.imgs!=null&&n.selectedItem.imgs.length?10:11),Z(4),Fi(n.selectedItem.name),Z(),Pe("innerHTML",Sn(17,9,Sn(16,7,n.selectedVariant==null||n.selectedVariant.price==null?null:n.selectedVariant.price.d)),ti),Z(3),tt(n.items.length>1?18:-1),Z(),tt(n.selectedItem.vars[0]!=null&&n.selectedItem.vars[0].name!=="Default Title"?19:-1),Z(),tt(n.selectedItem.desc?20:-1),Z(3),tt(n.atcClicked?23:24))},dependencies:[cl,ll,tl],styles:["[_nghost-%COMP%]{display:block;background:#fff}.lc-card-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;height:100%;overflow:auto}.lc-card-header[_ngcontent-%COMP%]{display:var(--header-display, flex);flex-direction:row;justify-content:space-between;align-items:center;padding:8px 16px;border-bottom:1px solid var(--lc-color-gray-300)}.lc-header[_ngcontent-%COMP%]{font-size:24px;font-weight:500;color:#000}.lc-close-button[_ngcontent-%COMP%]{background:transparent;border:none;width:36px;height:36px}.lc-close-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000000b3}.lc-card-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overscroll-behavior:contain}.lc-inner-body[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:column;gap:8px}.lc-image-strip[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:auto;gap:.5rem;flex-wrap:nowrap}.lc-image-strip[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto;height:200px}.lc-image-strip[_ngcontent-%COMP%] .product-selector[_ngcontent-%COMP%]{height:100px;flex-shrink:0;padding:2px}.lc-image-strip[_ngcontent-%COMP%] .product-selector.active[_ngcontent-%COMP%]{border:red solid 1px}.lc-item-name[_ngcontent-%COMP%]{font-size:20px;font-weight:600;line-height:normal;color:#000}.lc-item-price[_ngcontent-%COMP%]{font-size:18px;font-weight:500;color:#000}.lc-variant-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.5rem;width:100%}.lc-variant[_ngcontent-%COMP%]{padding:4px 8px;border-radius:4px;background-color:#f3f4f6;color:#1f2937;font-size:12px;cursor:pointer;border:1px solid #e5e7eb;display:flex;align-items:center;gap:4px;text-decoration:none}.lc-selected-variant[_ngcontent-%COMP%]{border:1px solid black;color:#000}.lc-description-title[_ngcontent-%COMP%], .lc-selected-product-title[_ngcontent-%COMP%], .lc-selected-variant-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin-top:8px;line-height:normal;color:#000}.lc-description[_ngcontent-%COMP%]{line-height:normal;color:#000}.lc-card-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:12px;background-color:#0000004d;box-shadow:0 4px 6px #52525b4d;gap:12px}.lc-cta-button[_ngcontent-%COMP%], .lc-more-info-button[_ngcontent-%COMP%]{width:50%;padding:12px;border:none;border-radius:.5rem;font-weight:600;display:flex;justify-content:center;cursor:pointer;font-size:16px}.lc-cta-button[_ngcontent-%COMP%]{background-color:#000;color:#fff}.lc-more-info-button[_ngcontent-%COMP%]{background-color:#fff;color:#000}"]})},c5=class Zu{width;static \u0275fac=function(t){return new(t||Zu)};static \u0275cmp=Pt({type:Zu,selectors:[["cooee-video-progress-bar"]],inputs:{width:"width"},decls:5,vars:2,consts:[[1,"lc:absolute","lc:top-1","lc:w-full","lc:z-10"],[1,"lc:px-2"],[1,"lc:h-1","lc:w-full","lc:bg-gray-700","lc:mb-2"],[1,"lc:h-1","lc:bg-pink-500"]],template:function(t,n){t&1&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),Ue(4,"div"),Y()()()()),t&2&&(Z(3),el("width",n.width,"%"))},encapsulation:2})};function u5(e,t){e&1&&Ye(0," Open Cart ")}function h5(e,t){e&1&&Ye(0," Add To Cart ")}var d5=class Gu{item;performCTA=new Xe;atcClicked=!1;clickAddToCart(t){t.stopPropagation(),this.performCTA.emit({item:this.item,cta:this.atcClicked?Mn.OPEN_CART:Mn.ADD_TO_CART}),this.atcClicked=!0}static \u0275fac=function(t){return new(t||Gu)};static \u0275cmp=Pt({type:Gu,selectors:[["cooee-product-card"]],inputs:{item:"item"},outputs:{performCTA:"performCTA"},decls:13,vars:11,consts:[[1,"lc-item-card"],[1,"lc-card-content"],[1,"lc-item-image",3,"alt","src"],[1,"lc-product-details"],[1,"lc-item-name"],[1,"lc-item-price",3,"innerHTML"],[1,"lc-cta-button",3,"click"]],template:function(t,n){if(t&1){let r=jt();G(0,"div",0)(1,"div",1),Ue(2,"img",2),G(3,"div",3)(4,"div",4),Ye(5),Y(),jn(6),Ue(7,"div",5),sn(8,"cooeeCurrency"),sn(9,"safeHtml"),Y()(),G(10,"button",6),ot("click",function(i){return ct(r),ut(n.clickAddToCart(i))}),nt(11,u5,1,0)(12,h5,1,0),Y()()}if(t&2){Z(2),ji("alt",n.item.name),Pe("src",n.item.imageURL,cn),Z(3),En(" ",n.item.name," ");let r=n.item.selectedOrFirstVariant.value.price.d;Z(2),Pe("innerHTML",Sn(9,9,Sn(8,7,r)),ti),Z(3),Yo("atc-clicked",n.atcClicked),Z(),tt(n.atcClicked?11:12)}},dependencies:[ll,cl],styles:["[_nghost-%COMP%]{display:block;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background-color:#ffffff80;border-radius:7px;cursor:pointer}.lc-item-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:8px}.lc-card-content[_ngcontent-%COMP%]{display:flex;gap:8px;width:100%;align-items:start}.lc-item-image[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:cover;box-sizing:border-box;border-radius:7px}.lc-product-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.5px;font-size:10.5px}.lc-item-name[_ngcontent-%COMP%]{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:normal;color:#000}.lc-item-price[_ngcontent-%COMP%]{font-size:16px;line-height:normal;color:#000}.lc-cta-button[_ngcontent-%COMP%]{padding:12px 8px;border:none;border-radius:8px;width:100%;background:#000;text-align:center;font-weight:500;cursor:pointer;color:#fff;font-size:16px}.lc-cta-button.atc-clicked[_ngcontent-%COMP%]{background:#000}"]})},f5=["swiperContainer"],p5=["videoEl"],g5=(e,t)=>t.url,m5=(e,t)=>t.mID;function _5(e,t){if(e&1&&Ue(0,"source",14),e&2){let n=t.$implicit;ji("type",n.mimeType),Pe("src",n.url,cn)}}function v5(e,t){e&1&&od(0)}function y5(e,t){if(e&1){let n=jt();Ue(0,"cooee-video-progress-bar",17),G(1,"div",18)(2,"cooee-mute-toggle",19),ot("toggled",function(){ct(n);let r=Q(2);return ut(r.toggleMute())}),Y(),nt(3,v5,1,0,"ng-container",10),Y()}if(e&2){let n=Q().$index,r=qn(4),i=Q(),o=qn(11);Pe("width",i.videoProgress[n]||0),Z(2),Pe("muted",i.muted)("videoEl",r),Z(),Pe("ngTemplateOutlet",o)}}function b5(e,t){if(e&1){let n=jt();G(0,"cooee-product-card",22),ot("performCTA",function(r){ct(n);let i=Q(2).$implicit,o=Q();return ut(o.performClickToAction(r,i))})("click",function(){let r=ct(n).$implicit,i=Q(2).$implicit,o=Q();return ut(o.productCardClicked(r,i))}),Y()}if(e&2){let n=t.$implicit;Pe("item",n)}}function w5(e,t){if(e&1&&(G(0,"div",15)(1,"div",20),Lt(2,b5,1,1,"cooee-product-card",21,m5),Y()()),e&2){let n=Q().$implicit;Z(2),Vt(n.items)}}function x5(e,t){if(e&1){let n=jt();G(0,"cooee-product-modal",23),ot("performCTA",function(r){ct(n);let i=Q(2);return ut(i.performClickToAction(r,i.selectedVideo))})("closeModel",function(){ct(n);let r=Q(2);return ut(r.productModalClosed())}),Y()}if(e&2){let n=Q(2);Pe("selectedItem",n.selectedItem)("items",n.selectedVideo.items)}}function E5(e,t){if(e&1){let n=jt();G(0,"div",6)(1,"div",11)(2,"div",12)(3,"video",13,2),ot("timeupdate",function(r){let i=ct(n).$index,o=Q();return ut(o.updateProgress(r,i))})("click",function(){let r=ct(n).$index,i=Q();return ut(i.currentIndex===r&&i.toggleMute())})("ended",function(){ct(n);let r=qn(4),i=Q();return ut(i.onVideoEnded(r))}),Lt(5,_5,1,2,"source",14,g5),Y(),nt(7,y5,4,4)(8,w5,4,0,"div",15),Y(),nt(9,x5,1,2,"cooee-product-modal",16),Y()()}if(e&2){let n=t.$implicit,r=t.$index,i=Q();Z(3),Pe("ngClass",i.viewTemplateClassName)("autoplay",i.currentIndex===r)("muted",i.muted)("poster",n.thumbnail,cn),Go("data-video-id",n.id),Z(2),Vt(n.sources),Z(2),tt(i.currentIndex===r?7:-1),Z(),tt(n.items.length&&i.currentIndex===r?8:-1),Z(),tt(i.selectedItem&&i.currentIndex===r?9:-1)}}function S5(e,t){e&1&&od(0)}function C5(e,t){if(e&1){let n=jt();G(0,"button",24),ot("click",function(){ct(n);let r=Q();return ut(r.close())}),mr(),G(1,"svg",25),Ue(2,"path",26)(3,"path",27),Y()()}}var Ir=class extends YL{constructor(e,t,n,r){super(),this.cdr=e,this.elementRef=t,this.dialogRef=n,this.data=r,this.videos=r.videos,this.currentIndex=r.currentIndex,this.triggerContext=r.triggerContext}videos=[];currentIndex=0;swiperContainerRef;videoElements;muted=!1;videoProgress=[];selectedItem=null;selectedVideo;swiperInstance;detailPopupTemplate;viewTemplateClassName="lc-video-only-view";resizeDebouncer=new AL(this.onResize.bind(this));onResize(){this.swiperInstance?.destroy?.(),this.reInitSwiper()}ngOnInit(){super.ngOnInit(),this.detailPopupTemplate=this.engagementTrigger?.content?.videoConfig?.detailPopup.template??"VIDEO_ONLY_VIEW";let e=this.elementRef.nativeElement.shadowRoot,t=Qy.get().website.commonCSS;switch(Rr.injectRawCSS(t,e),Rr.injectStylesheet(Ci.styleURL,e),Rr.injectSwiperCSS(e),this.detailPopupTemplate){case"PRODUCT_DETAIL_VIEW":this.selectItemForDetailView(),this.viewTemplateClassName="lc-product-detail-view";break;case"VIDEO_ONLY_VIEW":this.viewTemplateClassName="lc-video-only-view";break}}ngAfterViewInit(){yc(this.getCurrentVideoElement(),"loadeddata").pipe(ZL(this)).subscribe(()=>{this.initSwiper()})}ngOnDestroy(){this.swiperInstance?.destroy?.(),this.resizeDebouncer.destroy()}close(e=this.videos[this.currentIndex],t=this.currentIndex){let n=this.getCurrentVideoElement();this.dialogRef.close({lastVideo:e,lastVideoIndex:t,lastVideoDuration:n?.currentTime})}performClickToAction(e,t){this.data.onCTAPerformed({cta:e.cta,item:e.item,video:t})}getCurrentVideoElement(){return this.videoElements.get(this.currentIndex)?.nativeElement}moveToNextVideo(){this.swiperInstance.slideTo(this.currentIndex+1)}productModalClosed(){this.selectedItem=null,this.selectedVideo=void 0,this.swiperInstance.enable()}pauseAll(){this.videoElements.forEach(e=>e.nativeElement.pause())}async toggleMute(){this.muted=!this.muted,this.videoElements.forEach(t=>t.nativeElement.muted=this.muted);let e=[this.muted?St.EVENT_VIDEO_MUTED:St.EVENT_VIDEO_UNMUTED,{current:this.currentVideoProps()},{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(e),await Zp.set(qp.MUTED,this.muted),this.cdr.detectChanges()}playActiveVideo(){this.pauseAll();let e=this.getCurrentVideoElement();e&&(e.currentTime=1,e.play().then(async()=>{this.muted=await Zp.get(qp.MUTED,!1),e.muted=this.muted}))}onVideoEnded(e){if(this.currentIndex<this.videos.length-1)this.selectedItem?(e.currentTime=0,e.play()):this.moveToNextVideo();else{let t=this.getPreviousVideoDataForEvent(),n=[St.EVENT_LAST_VIDEO_ENDED,{previous:t},{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(n),e.currentTime=0,e.play()}}updateProgress(e,t){let n=e.target;this.videoProgress[t]=n.currentTime/n.duration*100,this.cdr.detectChanges()}onSlideChange(e){let t=this.getPreviousVideoDataForEvent();this.currentIndex=e.realIndex,this.playActiveVideo(),this.detailPopupTemplate==="PRODUCT_DETAIL_VIEW"?this.selectItemForDetailView():(this.selectedItem=null,delete this.selectedVideo);let n=this.currentVideoProps(),r={previous:t,current:n},i=[St.EVENT_VIDEO_CHANGE,r,{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(i)}productCardClicked(e,t){let n={videoID:t.id,videoIndex:this.currentIndex},r=[St.EVENT_MORE_ITEM_INFO_CLICKED,{current:n},{triggerData:this.engagementTrigger}];window.CooeeSDK.events.push(r),this.selectedItem=e,this.selectedVideo=t,this.swiperInstance.disable()}reInitSwiper(){this.initSwiper(),this.selectedItem&&this.swiperInstance.disable()}initSwiper(){let e=this.isMobile?1:"auto",t=0;this.detailPopupTemplate==="PRODUCT_DETAIL_VIEW"&&(e="auto",t=10),this.swiperInstance=new window.CooeeSDK.Swiper(this.swiperContainerRef.nativeElement,{direction:this.isMobile?"vertical":"horizontal",effect:this.isMobile?"slide":"coverflow",slidesPerView:e,initialSlide:this.currentIndex,centeredSlides:!0,spaceBetween:t,coverflowEffect:{rotate:0,stretch:0,depth:400,modifier:1,slideShadows:!1},navigation:{nextEl:this.swiperContainerRef.nativeElement.querySelector(".swiper-button-next"),prevEl:this.swiperContainerRef.nativeElement.querySelector(".swiper-button-prev")}}),this.swiperInstance.on("slideChange",n=>{this.onSlideChange(n),this.cdr.detectChanges()}),this.playActiveVideo()}currentVideoProps(){return{videoID:this.videos[this.currentIndex].id,videoIndex:this.currentIndex}}getPreviousVideoDataForEvent(){let e=this.currentVideoProps(),t=this.videoElements.find(r=>r.nativeElement.dataset.videoId===this.videos[this.currentIndex].id)?.nativeElement;e.playedTillMS=Math.ceil(t?.currentTime*1e3);let n=t?.duration*1e3;return e.playedTillPercent=+(e.playedTillMS/n).toFixed(4),e}selectItemForDetailView(){this.selectedVideo=this.videos[this.currentIndex],this.selectedItem=this.isMobile?null:this.selectedVideo?.items?.[0]??null}};of(Ir,"\u0275fac",function(e){return new(e||Ir)(Et(Ko),Et($t),Et(Bs),Et(Rb))}),of(Ir,"\u0275cmp",Pt({type:Ir,selectors:[["cooee-video-swiper-dialog"]],viewQuery:function(e,t){if(e&1&&(ca(f5,5),ca(p5,5)),e&2){let n;ua(n=ha())&&(t.swiperContainerRef=n.first),ua(n=ha())&&(t.videoElements=n)}},inputs:{videos:"videos",currentIndex:"currentIndex"},features:[br],decls:12,vars:2,consts:[["swiperContainer",""],["closeButtonTemplate",""],["videoEl",""],[1,"lc-shadow-inner",3,"ngClass"],[1,"swiper-container"],[1,"swiper-wrapper"],[1,"swiper-slide"],[1,"swiper-button-prev"],[1,"swiper-button-next"],[1,"lc-desktop-controls"],[4,"ngTemplateOutlet"],[1,"lc-video-modal-row"],[1,"lc-video-container"],["playsinline","","preload","metadata",1,"lc-video-el",3,"timeupdate","click","ended","ngClass","autoplay","muted","poster"],[3,"src","type"],[1,"lc-card-container"],[3,"selectedItem","items"],[3,"width"],[1,"lc-video-controls"],[3,"toggled","muted","videoEl"],[1,"lc-card-scroll"],[3,"item"],[3,"performCTA","click","item"],[3,"performCTA","closeModel","selectedItem","items"],[1,"lc-close-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"]],template:function(e,t){if(e&1&&(G(0,"div",3)(1,"div",4,0)(3,"div",5),Lt(4,E5,10,8,"div",6,Vi),Y(),Ue(6,"div",7)(7,"div",8),Y(),G(8,"div",9),nt(9,S5,1,0,"ng-container",10),Y()(),nt(10,C5,4,0,"ng-template",null,1,ED)),e&2){let n=qn(11);Pe("ngClass",t.viewTemplateClassName),Z(4),Vt(t.videos),Z(5),Pe("ngTemplateOutlet",n)}},dependencies:[d5,l5,cb,c5,T2,tl],styles:[`:host{display:flex}.lc-shadow-inner{position:relative;width:100vw;height:100vh;display:flex}@media (min-width: 768px){.lc-shadow-inner{background-color:color-mix(in oklab,#000 70%,transparent);justify-content:center;align-items:center}}.swiper-container{--swiper-navigation-size: 50px;--swiper-navigation-color: white;width:100dvw;height:100dvh}.lc-product-detail-view .swiper-container{align-items:center}@media (min-width: 768px){.swiper-container{width:100%;height:100%;max-width:90vw;max-height:90vh}}.swiper-wrapper{max-height:100%}.lc-product-detail-view .swiper-wrapper{align-items:center}@media (max-width: 768px){.swiper-button-prev,.swiper-button-next{display:none!important}}.swiper-slide{position:relative;display:flex;align-items:center;visibility:hidden}.lc-product-detail-view .swiper-slide{width:40vw!important;height:70vh!important}@media (min-width: 768px){.lc-product-detail-view .swiper-slide{min-width:650px!important}}@media (max-width: 768px){.lc-product-detail-view .swiper-slide{width:100%!important;height:100%!important}}@media (min-width: 768px){.lc-video-only-view .swiper-slide{width:fit-content!important}}@media (min-width: 768px){.swiper-slide{border-radius:12px;overflow:hidden}}.swiper-slide.swiper-slide-active,.swiper-slide.swiper-slide-prev,.swiper-slide.swiper-slide-next{visibility:visible}video{height:100%}.lc-product-detail-view video{width:100%;object-fit:cover;z-index:-1}.lc-desktop-controls{position:absolute;top:2rem;right:4rem;z-index:10;display:flex;gap:.5rem}@media (max-width: 768px){.lc-desktop-controls{display:none}}.lc-video-controls{position:absolute;top:1rem;z-index:10;right:.5rem;display:flex;gap:.25rem}.lc-video-controls .lc-close-button{display:block}@media (min-width: 768px){.lc-video-controls .lc-close-button{display:none}}.lc-close-button{border:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;background:#00000080;border-radius:100%}.lc-close-button svg{width:100%;height:100%}@media (min-width: 768px){.lc-close-button{width:48px;height:48px}}.lc-product-detail-view .lc-video-container{height:100%;position:relative}@media (min-width: 768px){.lc-product-detail-view .lc-video-container{width:50%}}.lc-video-only-view .lc-video-container{height:100%}.lc-card-container{position:absolute;bottom:12px;z-index:10;width:100%;padding-inline:12px;box-sizing:border-box}.lc-product-detail-view .lc-card-container{display:none}@media (max-width: 768px){.lc-product-detail-view .lc-card-container{display:block}}.lc-card-scroll{display:flex;overflow-x:auto;gap:12px;width:100%;scrollbar-width:none}.lc-card-scroll::-webkit-scrollbar{display:none}.lc-card-scroll cooee-product-card{flex:0 0 auto;width:80%;max-width:300px}.lc-card-scroll:has(>cooee-product-card:only-child) cooee-product-card{width:100%;max-width:none}.lc-product-detail-view .lc-video-modal-row{display:flex;justify-content:center;height:100%;width:100%}.lc-video-only-view .lc-video-modal-row{display:block;height:100%}.lc-product-detail-view cooee-product-modal{--header-display: none;width:50%;flex:1}@media (max-width: 768px){.lc-product-detail-view cooee-product-modal{--header-display: flex;width:100%;height:70dvh;position:absolute;bottom:0;z-index:2147483646}}.lc-video-only-view cooee-product-modal{width:100%;height:70dvh;z-index:2147483646;bottom:0;position:absolute}
|
|
82
|
+
`],encapsulation:3})),Ir=Lw([HL()],Ir);var I5=["videoEl"],jb=(e,t)=>t.url;function T5(e,t){if(e&1&&(G(0,"div",1),Ye(1),Y()),e&2){let n=Q();Z(),En(" ",n.videoConfig.heading," ")}}function D5(e,t){if(e&1&&Ue(0,"source",7),e&2){let n=t.$implicit;ji("type",n.mimeType),Pe("src",n.url,cn)}}function O5(e,t){if(e&1){let n=jt();G(0,"cooee-mute-toggle",12),ot("toggled",function(r){ct(n),Q();let i=qn(5),o=Q(2);return ut(o.onMuteToggled(r,i))}),Y()}if(e&2){Q();let n=qn(5);Pe("muted",n.muted)("videoEl",n)}}function k5(e,t){if(e&1&&Ue(0,"img",13),e&2){Q(2);let n=rn(0);Pe("src",n.imageURL,cn)("alt",n.name)}}function R5(e,t){if(e&1&&(G(0,"div",10),nt(1,k5,1,2,"img",13),G(2,"div",14)(3,"span",15),Ye(4),Y(),jn(5),Ue(6,"span",16),sn(7,"cooeeCurrency"),sn(8,"safeHtml"),Y()()),e&2){Q();let n=rn(0),r=Q(2);Z(),tt(r.showImage?1:-1),Z(3),En(" ",n.name," ");let i=n.selectedOrFirstVariant.value.price.d;Z(2),Pe("innerHTML",Sn(8,5,Sn(7,3,i)),ti)}}function P5(e,t){if(e&1){let n=jt();G(0,"button",17),ot("click",function(){ct(n);let r=Q().$implicit,i=rn(0),o=Q(2);return ut(o.addToCartClicked(r,i))}),Ye(1," Add to cart "),Y()}}function N5(e,t){if(e&1){let n=jt();jn(0)(1),G(2,"div",4)(3,"a",5),ot("click",function(r){let i=ct(n),o=i.$implicit,s=i.$index,a=qn(5),l=Q(2);return ut(l.onVideoTap(r,o,s,a))}),G(4,"video",6,0),ot("mouseenter",function(){ct(n);let r=qn(5);Q(2);let i=rn(2);return ut(i&&r.play())})("mouseleave",function(){ct(n);let r=qn(5);Q(2);let i=rn(2);return ut(i&&r.pause())}),Lt(6,D5,1,2,"source",7,jb),Y(),G(8,"div",8),nt(9,O5,1,2,"cooee-mute-toggle",9),Y(),nt(10,R5,9,7,"div",10),Y(),nt(11,P5,2,0,"button",11),Y()}if(e&2){let n=t.$implicit,r=Q(2),i=rn(1),o=zr(n.items[0])&&r.videoConfig.footerContent==r.VideoConfigFooterContent.FIRST_ITEM;Z(4),Pe("poster",n.thumbnail,cn)("muted",!0),Go("autoplay",i||null),Z(2),Vt(n.sources),Z(3),tt(r.videoConfig.showMuteButton?9:-1),Z(),tt(o?10:-1),Z(),tt(o?11:-1)}}function A5(e,t){if(e&1&&(G(0,"div",2),Lt(1,N5,12,7,"div",4,Vi),Y()),e&2){let n=Q();Z(),Vt(n.videos)}}function M5(e,t){if(e&1&&Ue(0,"source",7),e&2){let n=t.$implicit;ji("type",n.mimeType),Pe("src",n.url,cn)}}function L5(e,t){if(e&1){let n=jt();G(0,"div",18),mr(),G(1,"svg",19),Ue(2,"circle",20)(3,"circle",21),Y(),Xs(),G(4,"div",22)(5,"video",23),ot("click",function(r){let i=ct(n),o=i.$implicit,s=i.$index,a=Q(2);return ut(a.onVideoTap(r,o,s))}),Lt(6,M5,1,2,"source",7,jb),Y()()()}if(e&2){let n=t.$implicit;Z(5),Pe("muted",!0),Z(),Vt(n.sources)}}function V5(e,t){if(e&1&&(G(0,"div",3),Lt(1,L5,8,1,"div",18,Vi),Y()),e&2){let n=Q();Z(),Vt(n.videos)}}function j5(e,t){if(e&1){let n=jt();G(0,"cooee-draggable-video-popup",25),ot("videoClicked",function(){ct(n),Q();let r=rn(0),i=Q();return ut(i.onPopupVideoClicked(r,0))})("closeClicked",function(){ct(n);let r=Q(2);return ut(r.onPopupVideoClosed())}),Y()}if(e&2){Q();let n=rn(0);Pe("video",n)}}function F5(e,t){if(e&1&&(jn(0),nt(1,j5,1,1,"cooee-draggable-video-popup",24)),e&2){let n=Q();zr(n.videos[0]),Z(),tt(n.hidePopupVideo?-1:1)}}var B5=class Yu extends nl{constructor(t,n){super(),this.dialog=t,this.cdr=n}videoElements;videos;VideoConfigTemplate=G0;VideoConfigFooterContent=K0;VideoConfigAutoPlay=Y0;isMobile=window.CooeeSDK.uaParser.getDevice().type==="mobile";hidePopupVideo;videoConfig;showImage;dialogRef=null;ngOnInit(){super.ngOnInit(),Rr.loadSwiperScript(),this.showImage=this.videoConfig.detailPopup.template==="PRODUCT_DETAIL_VIEW"}ngAfterViewInit(){this.playFirstVideo()}engagementTriggerReceived(t){this.videoConfig=t.content?.videoConfig,this.videos=this.videoConfig.videos}sendTriggerClicked(t,n){let r=new oc(St.EVENT_TRIGGER_CLICKED,{},this.triggerContext?.triggerData);r.videos=[t.id],n&&(r.items=[n]),this.sendEventToRenderer(r)}onVideoTap(t,n,r,i){t?.stopPropagation(),t?.preventDefault();let o=n.items?.[0];if(this.sendTriggerClicked(n,o?.toEmbed()),this.videoConfig.footerContent!=="FIRST_ITEM"){i&&(i.muted=!1,i.play(),this.onMuteToggled(!1,i));return}Rr.loadSwiperScript().then(()=>this.openDialog(n,r))}async performCTA(t){let n,r=this.triggerContext;if(t.cta===Mn.ADD_TO_CART)n=St.EVENT_ADD_TO_CART_CLICKED;else if(t.cta===Mn.GO_TO_PRODUCT)n=St.EVENT_VIEW_ITEM_CLICKED;else if(t.cta===Mn.OPEN_CART)n=St.EVENT_OPEN_CART_CLICKED,r.triggerData.redirectBehaviour=Jy.CART_DRAWER;else{Wn.warn(`Unsupported CTA type: ${t.cta}`);return}let i={at:t.cta},o={videoID:t.video.id};this.sendEvent(n,{current:o},t.video,t.item),this.executeCTAViaRenderer({clickAction:i,embeddedItem:t.item.toEmbed()})}addToCartClicked(t,n){this.performCTA({cta:Mn.ADD_TO_CART,item:n,video:t})}onPopupVideoClicked(t,n){this.hidePopupVideo=!0,this.onVideoTap(null,t,n),this.dialogRef?.closed.subscribe(()=>{this.hidePopupVideo=!1,this.cdr.detectChanges()})}onPopupVideoClosed(){this.hidePopupVideo=!0;let t=(new Date().getTime()-this.triggerContext.startTime.getTime())/1e3;this.sendEvent(St.EVENT_TRIGGER_CLOSED,{duration:t})}update(){}onMuteToggled(t,n){t||this.videoElements.forEach(r=>{r.nativeElement!==n&&(r.nativeElement.muted=!0,r.nativeElement.pause())})}playFirstVideo(){this.videoConfig.autoPlay==="ON_HOVER"&&this.isMobile&&this.videoElements.first?.nativeElement.play()}sendEvent(t,n,r,i){let o=new oc(t,n,this.engagementTrigger);r&&(o.videos=[r.id]),i&&(o.items=[i.toEmbed()]),this.sendEventToRenderer(o)}openDialog(t,n){let r={videos:this.videos,currentIndex:n,triggerContext:this.triggerContext,onCTAPerformed:o=>this.performCTA(o)};this.dialogRef&&this.dialogRef.close(),this.dialogRef=this.dialog.open(Ir,{width:"100vw",height:"100vh",data:r});let i={videoID:t.id,videoIndex:n};this.sendEvent(St.EVENT_VIDEO_DIALOG_OPENED,{current:i},t),this.dialogRef.closed.subscribe(o=>{if(!o)return;let s=o.lastVideoDuration*1e3,a={videoID:o.lastVideo.id,videoIndex:o.lastVideoIndex,playedTillMS:s,playedTillPercent:s/t.durationMS},l=new oc(St.EVENT_VIDEO_DIALOG_CLOSED,{current:a},this.triggerContext?.triggerData);l.videos=[o.lastVideo.id],this.sendEventToRenderer(l),this.dialogRef=null})}static \u0275fac=function(t){return new(t||Yu)(Et(NL),Et(Ko))};static \u0275cmp=Pt({type:Yu,selectors:[["cooee-shoppable-videos"]],viewQuery:function(t,n){if(t&1&&ca(I5,5),t&2){let r;ua(r=ha())&&(n.videoElements=r)}},features:[br],decls:7,vars:4,consts:[["videoEl",""],["id","lc-heading-text",1,"lc-heading-text","lc:mb-2","lc:text-lg","lc:text-center","lc:font-bold"],[1,"lc-video-list"],[1,"lc-video-stories","lc:flex","lc:overflow-auto","lc:m-3","lc:gap-3","lc:justify-center","lc:items-center"],[1,"lc-video-card"],["href","",1,"lc-video-wrapper","lc:rounded-lg",3,"click"],["width","100%","playsinline","","loop","","preload","metadata",1,"lc:rounded-lg","lc:transition-transform","lc:duration-300",3,"mouseenter","mouseleave","poster","muted"],[3,"src","type"],[1,"lc-video-controls"],[3,"muted","videoEl"],["id","lc-single-product",1,"lc-single-product"],["id","lc-cta-button","type","button",1,"lc-cta-button","lc:w-full","lc:h-auto","lc:text-center","lc:z-4","lc:p-4"],[3,"toggled","muted","videoEl"],[1,"lc-item-image",3,"src","alt"],[1,"lc-item-details"],[1,"lc-item-name","lc:line-clamp-1"],[1,"lc-item-price",3,"innerHTML"],["id","lc-cta-button","type","button",1,"lc-cta-button","lc:w-full","lc:h-auto","lc:text-center","lc:z-4","lc:p-4",3,"click"],[1,"lc-video-story","lc:relative","lc:w-20","lc:h-20","lc:cursor-pointer"],["viewBox","0 0 100 100",1,"lc:absolute","lc:top-0","lc:left-0","lc:w-full","lc:h-full"],["cx","50","cy","50","r","48","fill","none","stroke-width","4",1,"lc:stroke-gray-300"],["id","lc-video-story-circle","cx","50","cy","50","r","48","fill","none","stroke-width","4","stroke-linecap","round","stroke-dasharray","301.6","stroke-dashoffset","301.6",1,"lc:stroke-blue-500"],[1,"lc:w-full","lc:h-full","lc:rounded-full","lc:overflow-hidden"],["autoplay","","loop","",1,"lc:w-full","lc:h-full","lc:object-cover","lc:rounded-full",3,"click","muted"],[3,"video"],[3,"videoClicked","closeClicked","video"]],template:function(t,n){if(t&1&&(jn(0)(1)(2),nt(3,T5,2,1,"div",1)(4,A5,3,0,"div",2)(5,V5,3,0,"div",3)(6,F5,2,2)),t&2){let r=n.videoConfig.template;Z(),zr(!n.videoConfig.autoPlay||n.videoConfig.autoPlay===n.VideoConfigAutoPlay.ON),Z(),zr(n.videoConfig.autoPlay===n.VideoConfigAutoPlay.ON_HOVER),Z(),tt(n.videoConfig.heading?3:-1),Z(),tt(r===n.VideoConfigTemplate.SIMPLE||r===n.VideoConfigTemplate.SWIPER?4:r===n.VideoConfigTemplate.STORY?5:r===n.VideoConfigTemplate.FLOATING_POPUP?6:-1)}},dependencies:[ll,WM,cl,cb],styles:["[_nghost-%COMP%]{display:block}.lc-video-list[_ngcontent-%COMP%]{display:flex;overflow-x:auto;gap:24px;margin:8px;align-items:center;scroll-snap-type:x mandatory;scroll-behavior:smooth}@media (min-width: 768px){.lc-video-list[_ngcontent-%COMP%]{justify-content:center}}.lc-video-wrapper[_ngcontent-%COMP%]{position:relative}.lc-video-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.5px;scroll-snap-align:center;min-width:200px;max-width:300px}.lc-video-card[_ngcontent-%COMP%] video[_ngcontent-%COMP%]:hover{scale:1.1}.lc-cta-button[_ngcontent-%COMP%]{cursor:pointer;background:rgb(var(--lc-color-button));color:rgb(var(--lc-color-button-text));border-radius:var(--lc-button-radius)}.lc-video-controls[_ngcontent-%COMP%]{position:absolute;bottom:8px;z-index:10;right:8px;display:flex;gap:8px}.lc-single-product[_ngcontent-%COMP%]{display:flex;margin:.25rem 0;gap:.25rem;align-items:center}.lc-single-product[_ngcontent-%COMP%] .lc-item-image[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:.5rem}.lc-single-product[_ngcontent-%COMP%] .lc-item-details[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.25rem;font-size:14px;line-height:normal}.lc-single-product[_ngcontent-%COMP%] .lc-item-details[_ngcontent-%COMP%] .lc-item-name[_ngcontent-%COMP%]{color:#000;font-weight:600}.lc-single-product[_ngcontent-%COMP%] .lc-item-details[_ngcontent-%COMP%] .lc-item-price[_ngcontent-%COMP%]{color:#000}"]})};iO("CooeeWidgetSDK");(async()=>{let e=await Y2(sO),t=(n,r)=>{let i=m2(n,{injector:e.injector});customElements.define(r,i)};t(rA,"cooee-sticky-atc"),t(YN,"cooee-progressbar"),t(B5,"cooee-shoppable-videos"),t(gO,"cooee-product-options-picker"),ds.filters.define("default",function(n){return n??""}),ds.defaultConfig.defaultFilter="default",ds.defaultConfig.useWith=!0,ds.defaultConfig.autoTrim="slurp"})();})();
|