import{b as Gt,e as et}from"./chunk-SUAR6DZL.js";import{$ as gr,Ca as ca,Db as vr,Ea as la,Fa as ua,Ga as hi,Ha as da,Ia as pa,K as $s,Ka as ha,L as j,M as De,Ma as ma,Mb as an,N as Ws,O as hr,Pa as fa,Qa as ga,Ra as _a,Sa as va,T as Hs,Ta as ya,U as Ks,Ua as Sa,W as ce,Wa as on,X as Ys,Xb as cn,Y as Qs,Yb as Me,Z as mr,_ as fr,aa as Js,b as Fs,ba as Xs,ca as Zs,cb as he,da as ea,db as Bt,e as Ds,ea as ta,eb as mi,f as Bs,fa as ia,ga as na,gb as fi,ha as ra,i as L,ib as Vt,jb as ba,k as di,kb as Be,l as Y,nb as Ia,q as qs,r as rn,ra as oa,s as zs,w as js,wb as sn,x as Gs,xa as aa}from"./chunk-FGANBIAX.js";import{$ as ct,$b as Qi,B as ji,Ba as ps,Ca as ye,Cc as Ut,Dc as Lt,Eb as O,Fb as U,G as ni,Gb as Se,Ia as Ce,J as at,Ja as lt,Jb as Ki,Jc as Cs,Ka as $i,Lb as _s,Mc as ws,Na as hs,Ne as Ca,Ob as pt,Oc as Es,Pc as ks,Q as is,Qa as ms,Qb as Yi,Rb as vs,Sb as ys,Sd as pi,U as ns,Ua as fs,Uc as xs,Va as At,Wd as _r,X as rs,Yb as Rt,Yc as Ts,Z as os,Zb as Nt,_ as ss,_b as Mt,a as Xo,aa as as,ab as P,ad as Zi,ba as cs,bb as q,bc as K,bd as oi,c as Ie,cc as Oe,db as gs,dc as Qe,de as sa,f as Bi,g as ae,ga as ar,gb as ut,gd as si,ha as ls,hb as Z,ia as R,ic as lr,j as Zo,ja as J,jc as Ji,jd as pe,k as es,kb as Wi,m as ts,ma as us,n as or,na as H,o as sr,oa as w,p as zi,pa as cr,pb as Ye,pd as Ps,q as ve,qa as de,qc as ie,r as Pt,ra as Ke,rc as ne,sa as X,sb as we,sd as en,tb as W,td as As,ub as Ot,uc as Ss,v as ti,va as ds,vb as dt,vc as bs,wc as Is,x as ii,xb as Hi,ya as ri,za as Gi,zc as Xi}from"./chunk-B7KEFMHR.js";import{A as pr,B as nn,C as Vs,a as Os,b as Rs,c as Re,d as Ns,e as ai,f as Ms,g as Je,h as ht,i as ci,j as mt,k as Ne,l as ur,m as dr,n as Us,o as li,p as ee,q as Ee,r as ui,s as Ft,t as ke,u as ft,v as Dt,w as Ls,x as Xe,y as tn,z as B}from"./chunk-74S4SBUH.js";import{b as wa}from"./chunk-YWAMULJU.js";import{b as gt,c as ln,d as Ea,e as un,f as qt,g as xa,h as jt,i as Da,j as Ba}from"./chunk-IOK2KLQS.js";import{c as Fa,d as mn,f as fn}from"./chunk-GYIMFW3X.js";import{a as yr,b as ka,c as dn,d as Sr,e as pn,f as zt,g as hn,h as Ta,i as Pa,j as Aa,k as Oa,l as Ra,m as Na,n as Ma,o as Ze,q as Ua,r as La}from"./chunk-OQXUASAH.js";import{a as Ae,b as T,c as ei,d as Vi,e as qi,f as k,g as x,h as _e,m as Q}from"./chunk-SJ725M6E.js";import{a as $,b as Fe,f as ad,g as cd,h as ld,j as y}from"./chunk-3EYC4JTX.js";var uu=ad((cu,lu)=>{(function(i){if(typeof cu=="object")lu.exports=i();else if(typeof define=="function"&&define.amd)define(i);else{var e;try{e=window}catch{e=self}e.SparkMD5=i()}})(function(i){"use strict";var e=function(g,f){return g+f&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function t(g,f,l,c,p,d){return f=e(e(f,g),e(c,d)),e(f<<p|f>>>32-p,l)}function r(g,f){var l=g[0],c=g[1],p=g[2],d=g[3];l+=(c&p|~c&d)+f[0]-680876936|0,l=(l<<7|l>>>25)+c|0,d+=(l&c|~l&p)+f[1]-389564586|0,d=(d<<12|d>>>20)+l|0,p+=(d&l|~d&c)+f[2]+606105819|0,p=(p<<17|p>>>15)+d|0,c+=(p&d|~p&l)+f[3]-1044525330|0,c=(c<<22|c>>>10)+p|0,l+=(c&p|~c&d)+f[4]-176418897|0,l=(l<<7|l>>>25)+c|0,d+=(l&c|~l&p)+f[5]+1200080426|0,d=(d<<12|d>>>20)+l|0,p+=(d&l|~d&c)+f[6]-1473231341|0,p=(p<<17|p>>>15)+d|0,c+=(p&d|~p&l)+f[7]-45705983|0,c=(c<<22|c>>>10)+p|0,l+=(c&p|~c&d)+f[8]+1770035416|0,l=(l<<7|l>>>25)+c|0,d+=(l&c|~l&p)+f[9]-1958414417|0,d=(d<<12|d>>>20)+l|0,p+=(d&l|~d&c)+f[10]-42063|0,p=(p<<17|p>>>15)+d|0,c+=(p&d|~p&l)+f[11]-1990404162|0,c=(c<<22|c>>>10)+p|0,l+=(c&p|~c&d)+f[12]+1804603682|0,l=(l<<7|l>>>25)+c|0,d+=(l&c|~l&p)+f[13]-40341101|0,d=(d<<12|d>>>20)+l|0,p+=(d&l|~d&c)+f[14]-1502002290|0,p=(p<<17|p>>>15)+d|0,c+=(p&d|~p&l)+f[15]+1236535329|0,c=(c<<22|c>>>10)+p|0,l+=(c&d|p&~d)+f[1]-165796510|0,l=(l<<5|l>>>27)+c|0,d+=(l&p|c&~p)+f[6]-1069501632|0,d=(d<<9|d>>>23)+l|0,p+=(d&c|l&~c)+f[11]+643717713|0,p=(p<<14|p>>>18)+d|0,c+=(p&l|d&~l)+f[0]-373897302|0,c=(c<<20|c>>>12)+p|0,l+=(c&d|p&~d)+f[5]-701558691|0,l=(l<<5|l>>>27)+c|0,d+=(l&p|c&~p)+f[10]+38016083|0,d=(d<<9|d>>>23)+l|0,p+=(d&c|l&~c)+f[15]-660478335|0,p=(p<<14|p>>>18)+d|0,c+=(p&l|d&~l)+f[4]-405537848|0,c=(c<<20|c>>>12)+p|0,l+=(c&d|p&~d)+f[9]+568446438|0,l=(l<<5|l>>>27)+c|0,d+=(l&p|c&~p)+f[14]-1019803690|0,d=(d<<9|d>>>23)+l|0,p+=(d&c|l&~c)+f[3]-187363961|0,p=(p<<14|p>>>18)+d|0,c+=(p&l|d&~l)+f[8]+1163531501|0,c=(c<<20|c>>>12)+p|0,l+=(c&d|p&~d)+f[13]-1444681467|0,l=(l<<5|l>>>27)+c|0,d+=(l&p|c&~p)+f[2]-51403784|0,d=(d<<9|d>>>23)+l|0,p+=(d&c|l&~c)+f[7]+1735328473|0,p=(p<<14|p>>>18)+d|0,c+=(p&l|d&~l)+f[12]-1926607734|0,c=(c<<20|c>>>12)+p|0,l+=(c^p^d)+f[5]-378558|0,l=(l<<4|l>>>28)+c|0,d+=(l^c^p)+f[8]-2022574463|0,d=(d<<11|d>>>21)+l|0,p+=(d^l^c)+f[11]+1839030562|0,p=(p<<16|p>>>16)+d|0,c+=(p^d^l)+f[14]-35309556|0,c=(c<<23|c>>>9)+p|0,l+=(c^p^d)+f[1]-1530992060|0,l=(l<<4|l>>>28)+c|0,d+=(l^c^p)+f[4]+1272893353|0,d=(d<<11|d>>>21)+l|0,p+=(d^l^c)+f[7]-155497632|0,p=(p<<16|p>>>16)+d|0,c+=(p^d^l)+f[10]-1094730640|0,c=(c<<23|c>>>9)+p|0,l+=(c^p^d)+f[13]+681279174|0,l=(l<<4|l>>>28)+c|0,d+=(l^c^p)+f[0]-358537222|0,d=(d<<11|d>>>21)+l|0,p+=(d^l^c)+f[3]-722521979|0,p=(p<<16|p>>>16)+d|0,c+=(p^d^l)+f[6]+76029189|0,c=(c<<23|c>>>9)+p|0,l+=(c^p^d)+f[9]-640364487|0,l=(l<<4|l>>>28)+c|0,d+=(l^c^p)+f[12]-421815835|0,d=(d<<11|d>>>21)+l|0,p+=(d^l^c)+f[15]+530742520|0,p=(p<<16|p>>>16)+d|0,c+=(p^d^l)+f[2]-995338651|0,c=(c<<23|c>>>9)+p|0,l+=(p^(c|~d))+f[0]-198630844|0,l=(l<<6|l>>>26)+c|0,d+=(c^(l|~p))+f[7]+1126891415|0,d=(d<<10|d>>>22)+l|0,p+=(l^(d|~c))+f[14]-1416354905|0,p=(p<<15|p>>>17)+d|0,c+=(d^(p|~l))+f[5]-57434055|0,c=(c<<21|c>>>11)+p|0,l+=(p^(c|~d))+f[12]+1700485571|0,l=(l<<6|l>>>26)+c|0,d+=(c^(l|~p))+f[3]-1894986606|0,d=(d<<10|d>>>22)+l|0,p+=(l^(d|~c))+f[10]-1051523|0,p=(p<<15|p>>>17)+d|0,c+=(d^(p|~l))+f[1]-2054922799|0,c=(c<<21|c>>>11)+p|0,l+=(p^(c|~d))+f[8]+1873313359|0,l=(l<<6|l>>>26)+c|0,d+=(c^(l|~p))+f[15]-30611744|0,d=(d<<10|d>>>22)+l|0,p+=(l^(d|~c))+f[6]-1560198380|0,p=(p<<15|p>>>17)+d|0,c+=(d^(p|~l))+f[13]+1309151649|0,c=(c<<21|c>>>11)+p|0,l+=(p^(c|~d))+f[4]-145523070|0,l=(l<<6|l>>>26)+c|0,d+=(c^(l|~p))+f[11]-1120210379|0,d=(d<<10|d>>>22)+l|0,p+=(l^(d|~c))+f[2]+718787259|0,p=(p<<15|p>>>17)+d|0,c+=(d^(p|~l))+f[9]-343485551|0,c=(c<<21|c>>>11)+p|0,g[0]=l+g[0]|0,g[1]=c+g[1]|0,g[2]=p+g[2]|0,g[3]=d+g[3]|0}function o(g){var f=[],l;for(l=0;l<64;l+=4)f[l>>2]=g.charCodeAt(l)+(g.charCodeAt(l+1)<<8)+(g.charCodeAt(l+2)<<16)+(g.charCodeAt(l+3)<<24);return f}function s(g){var f=[],l;for(l=0;l<64;l+=4)f[l>>2]=g[l]+(g[l+1]<<8)+(g[l+2]<<16)+(g[l+3]<<24);return f}function a(g){var f=g.length,l=[1732584193,-271733879,-1732584194,271733878],c,p,d,V,N,F;for(c=64;c<=f;c+=64)r(l,o(g.substring(c-64,c)));for(g=g.substring(c-64),p=g.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=0;c<p;c+=1)d[c>>2]|=g.charCodeAt(c)<<(c%4<<3);if(d[c>>2]|=128<<(c%4<<3),c>55)for(r(l,d),c=0;c<16;c+=1)d[c]=0;return V=f*8,V=V.toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(V[2],16),F=parseInt(V[1],16)||0,d[14]=N,d[15]=F,r(l,d),l}function u(g){var f=g.length,l=[1732584193,-271733879,-1732584194,271733878],c,p,d,V,N,F;for(c=64;c<=f;c+=64)r(l,s(g.subarray(c-64,c)));for(g=c-64<f?g.subarray(c-64):new Uint8Array(0),p=g.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=0;c<p;c+=1)d[c>>2]|=g[c]<<(c%4<<3);if(d[c>>2]|=128<<(c%4<<3),c>55)for(r(l,d),c=0;c<16;c+=1)d[c]=0;return V=f*8,V=V.toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(V[2],16),F=parseInt(V[1],16)||0,d[14]=N,d[15]=F,r(l,d),l}function h(g){var f="",l;for(l=0;l<4;l+=1)f+=n[g>>l*8+4&15]+n[g>>l*8&15];return f}function m(g){var f;for(f=0;f<g.length;f+=1)g[f]=h(g[f]);return g.join("")}m(a("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(e=function(g,f){var l=(g&65535)+(f&65535),c=(g>>16)+(f>>16)+(l>>16);return c<<16|l&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function g(f,l){return f=f|0||0,f<0?Math.max(f+l,0):Math.min(f,l)}ArrayBuffer.prototype.slice=function(f,l){var c=this.byteLength,p=g(f,c),d=c,V,N,F,M;return l!==i&&(d=g(l,c)),p>d?new ArrayBuffer(0):(V=d-p,N=new ArrayBuffer(V),F=new Uint8Array(N),M=new Uint8Array(this,p,V),F.set(M),N)}}();function S(g){return/[\u0080-\uFFFF]/.test(g)&&(g=unescape(encodeURIComponent(g))),g}function v(g,f){var l=g.length,c=new ArrayBuffer(l),p=new Uint8Array(c),d;for(d=0;d<l;d+=1)p[d]=g.charCodeAt(d);return f?p:c}function _(g){return String.fromCharCode.apply(null,new Uint8Array(g))}function b(g,f,l){var c=new Uint8Array(g.byteLength+f.byteLength);return c.set(new Uint8Array(g)),c.set(new Uint8Array(f),g.byteLength),l?c:c.buffer}function E(g){var f=[],l=g.length,c;for(c=0;c<l-1;c+=2)f.push(parseInt(g.substr(c,2),16));return String.fromCharCode.apply(String,f)}function I(){this.reset()}return I.prototype.append=function(g){return this.appendBinary(S(g)),this},I.prototype.appendBinary=function(g){this._buff+=g,this._length+=g.length;var f=this._buff.length,l;for(l=64;l<=f;l+=64)r(this._hash,o(this._buff.substring(l-64,l)));return this._buff=this._buff.substring(l-64),this},I.prototype.end=function(g){var f=this._buff,l=f.length,c,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d;for(c=0;c<l;c+=1)p[c>>2]|=f.charCodeAt(c)<<(c%4<<3);return this._finish(p,l),d=m(this._hash),g&&(d=E(d)),this.reset(),d},I.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},I.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},I.prototype.setState=function(g){return this._buff=g.buff,this._length=g.length,this._hash=g.hash,this},I.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},I.prototype._finish=function(g,f){var l=f,c,p,d;if(g[l>>2]|=128<<(l%4<<3),l>55)for(r(this._hash,g),l=0;l<16;l+=1)g[l]=0;c=this._length*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),p=parseInt(c[2],16),d=parseInt(c[1],16)||0,g[14]=p,g[15]=d,r(this._hash,g)},I.hash=function(g,f){return I.hashBinary(S(g),f)},I.hashBinary=function(g,f){var l=a(g),c=m(l);return f?E(c):c},I.ArrayBuffer=function(){this.reset()},I.ArrayBuffer.prototype.append=function(g){var f=b(this._buff.buffer,g,!0),l=f.length,c;for(this._length+=g.byteLength,c=64;c<=l;c+=64)r(this._hash,s(f.subarray(c-64,c)));return this._buff=c-64<l?new Uint8Array(f.buffer.slice(c-64)):new Uint8Array(0),this},I.ArrayBuffer.prototype.end=function(g){var f=this._buff,l=f.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p,d;for(p=0;p<l;p+=1)c[p>>2]|=f[p]<<(p%4<<3);return this._finish(c,l),d=m(this._hash),g&&(d=E(d)),this.reset(),d},I.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},I.ArrayBuffer.prototype.getState=function(){var g=I.prototype.getState.call(this);return g.buff=_(g.buff),g},I.ArrayBuffer.prototype.setState=function(g){return g.buff=v(g.buff,!0),I.prototype.setState.call(this,g)},I.ArrayBuffer.prototype.destroy=I.prototype.destroy,I.ArrayBuffer.prototype._finish=I.prototype._finish,I.ArrayBuffer.hash=function(g,f){var l=u(new Uint8Array(g)),c=m(l);return f?E(c):c},I})});Q();var $t=function(i){return i.MM="Millimeters (mm)",i.CM="Centimeters(cm)",i.INCH="Inch",i}($t||{}),ud=function(i){return i._2d="2D",i._3d="3D",i.notSupported="Not Supported",i}(ud||{}),dd=function(i){return i.HOME_DELIVERY="home delivery",i.PICKUP_DIRECTLY="pickup directly",i}(dd||{});var xe=Object.create(null);xe.open="0";xe.close="1";xe.ping="2";xe.pong="3";xe.message="4";xe.upgrade="5";xe.noop="6";var gi=Object.create(null);Object.keys(xe).forEach(i=>{gi[xe[i]]=i});var _i={type:"error",data:"parser error"};var za=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ja=typeof ArrayBuffer=="function",Ga=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer,vi=({type:i,data:e},n,t)=>za&&e instanceof Blob?n?t(e):Va(e,t):ja&&(e instanceof ArrayBuffer||Ga(e))?n?t(e):Va(new Blob([e]),t):t(xe[i]+(e||"")),Va=(i,e)=>{let n=new FileReader;return n.onload=function(){let t=n.result.split(",")[1];e("b"+(t||""))},n.readAsDataURL(i)};function qa(i){return i instanceof Uint8Array?i:i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}var br;function $a(i,e){if(za&&i.data instanceof Blob)return i.data.arrayBuffer().then(qa).then(e);if(ja&&(i.data instanceof ArrayBuffer||Ga(i.data)))return e(qa(i.data));vi(i,!1,n=>{br||(br=new TextEncoder),e(br.encode(n))})}var Wa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<Wa.length;i++)yi[Wa.charCodeAt(i)]=i;var Ha=i=>{let e=i.length*.75,n=i.length,t,r=0,o,s,a,u;i[i.length-1]==="="&&(e--,i[i.length-2]==="="&&e--);let h=new ArrayBuffer(e),m=new Uint8Array(h);for(t=0;t<n;t+=4)o=yi[i.charCodeAt(t)],s=yi[i.charCodeAt(t+1)],a=yi[i.charCodeAt(t+2)],u=yi[i.charCodeAt(t+3)],m[r++]=o<<2|s>>4,m[r++]=(s&15)<<4|a>>2,m[r++]=(a&3)<<6|u&63;return h};var pd=typeof ArrayBuffer=="function",Si=(i,e)=>{if(typeof i!="string")return{type:"message",data:Ka(i,e)};let n=i.charAt(0);return n==="b"?{type:"message",data:hd(i.substring(1),e)}:gi[n]?i.length>1?{type:gi[n],data:i.substring(1)}:{type:gi[n]}:_i},hd=(i,e)=>{if(pd){let n=Ha(i);return Ka(n,e)}else return{base64:!0,data:i}},Ka=(i,e)=>{switch(e){case"blob":return i instanceof Blob?i:new Blob([i]);case"arraybuffer":default:return i instanceof ArrayBuffer?i:i.buffer}};var Ya="",Qa=(i,e)=>{let n=i.length,t=new Array(n),r=0;i.forEach((o,s)=>{vi(o,!1,a=>{t[s]=a,++r===n&&e(t.join(Ya))})})},Ja=(i,e)=>{let n=i.split(Ya),t=[];for(let r=0;r<n.length;r++){let o=Si(n[r],e);if(t.push(o),o.type==="error")break}return t};function Xa(){return new TransformStream({transform(i,e){$a(i,n=>{let t=n.length,r;if(t<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,t);else if(t<65536){r=new Uint8Array(3);let o=new DataView(r.buffer);o.setUint8(0,126),o.setUint16(1,t)}else{r=new Uint8Array(9);let o=new DataView(r.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(t))}i.data&&typeof i.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(n)})}})}var Ir;function gn(i){return i.reduce((e,n)=>e+n.length,0)}function _n(i,e){if(i[0].length===e)return i.shift();let n=new Uint8Array(e),t=0;for(let r=0;r<e;r++)n[r]=i[0][t++],t===i[0].length&&(i.shift(),t=0);return i.length&&t<i[0].length&&(i[0]=i[0].slice(t)),n}function Za(i,e){Ir||(Ir=new TextDecoder);let n=[],t=0,r=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(t===0){if(gn(n)<1)break;let u=_n(n,1);o=(u[0]&128)===128,r=u[0]&127,r<126?t=3:r===126?t=1:t=2}else if(t===1){if(gn(n)<2)break;let u=_n(n,2);r=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),t=3}else if(t===2){if(gn(n)<8)break;let u=_n(n,8),h=new DataView(u.buffer,u.byteOffset,u.length),m=h.getUint32(0);if(m>Math.pow(2,21)-1){a.enqueue(_i);break}r=m*Math.pow(2,32)+h.getUint32(4),t=3}else{if(gn(n)<r)break;let u=_n(n,r);a.enqueue(Si(o?u:Ir.decode(u),e)),t=0}if(r===0||r>i){a.enqueue(_i);break}}}})}var Cr=4;function z(i){if(i)return md(i)}function md(i){for(var e in z.prototype)i[e]=z.prototype[e];return i}z.prototype.on=z.prototype.addEventListener=function(i,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(e),this};z.prototype.once=function(i,e){function n(){this.off(i,n),e.apply(this,arguments)}return n.fn=e,this.on(i,n),this};z.prototype.off=z.prototype.removeListener=z.prototype.removeAllListeners=z.prototype.removeEventListener=function(i,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+i];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var t,r=0;r<n.length;r++)if(t=n[r],t===e||t.fn===e){n.splice(r,1);break}return n.length===0&&delete this._callbacks["$"+i],this};z.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+i],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(n){n=n.slice(0);for(var t=0,r=n.length;t<r;++t)n[t].apply(this,e)}return this};z.prototype.emitReserved=z.prototype.emit;z.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]};z.prototype.hasListeners=function(i){return!!this.listeners(i).length};var re=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function vn(i,...e){return e.reduce((n,t)=>(i.hasOwnProperty(t)&&(n[t]=i[t]),n),{})}var fd=re.setTimeout,gd=re.clearTimeout;function Ve(i,e){e.useNativeTimers?(i.setTimeoutFn=fd.bind(re),i.clearTimeoutFn=gd.bind(re)):(i.setTimeoutFn=re.setTimeout.bind(re),i.clearTimeoutFn=re.clearTimeout.bind(re))}var _d=1.33;function ec(i){return typeof i=="string"?vd(i):Math.ceil((i.byteLength||i.size)*_d)}function vd(i){let e=0,n=0;for(let t=0,r=i.length;t<r;t++)e=i.charCodeAt(t),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(t++,n+=4);return n}function tc(i){let e="";for(let n in i)i.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(i[n]));return e}function ic(i){let e={},n=i.split("&");for(let t=0,r=n.length;t<r;t++){let o=n[t].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}var yn=class extends Error{constructor(e,n,t){super(e),this.description=n,this.context=t,this.type="TransportError"}},qe=class extends z{constructor(e){super(),this.writable=!1,Ve(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,t){return super.emitReserved("error",new yn(e,n,t)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let n=Si(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let n=tc(e);return n.length?"?"+n:""}};var sc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),wr=64,yd={},nc=0,Sn=0,rc;function oc(i){let e="";do e=sc[i%wr]+e,i=Math.floor(i/wr);while(i>0);return e}function bn(){let i=oc(+new Date);return i!==rc?(nc=0,rc=i):i+"."+oc(nc++)}for(;Sn<wr;Sn++)yd[sc[Sn]]=Sn;var ac=!1;try{ac=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var cc=ac;function Er(i){let e=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||cc))return new XMLHttpRequest}catch{}if(!e)try{return new re[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Sd(){}var bd=function(){return new Er({xdomain:!1}).responseType!=null}(),Cn=class extends qe{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}let n=e&&e.forceBase64;this.supportsBinary=bd&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",function(){--t||n()})),this.writable||(t++,this.once("drain",function(){--t||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=t=>{if(this.readyState==="opening"&&t.type==="open"&&this.onOpen(),t.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};Ja(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Qa(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=bn()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new In(this.uri(),e)}doWrite(e,n){let t=this.request({method:"POST",data:e});t.on("success",n),t.on("error",(r,o)=>{this.onError("xhr post error",r,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,t)=>{this.onError("xhr poll error",n,t)}),this.pollXhr=e}},In=(()=>{class i extends z{constructor(n,t){super(),Ve(this,t),this.opts=t,this.method=t.method||"GET",this.uri=n,this.data=t.data!==void 0?t.data:null,this.create()}create(){var n;let t=vn(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let r=this.xhr=new Er(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(n=this.opts.cookieJar)===null||n===void 0||n.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=i.requestsCount++,i.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Sd,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete i.requests[this.index],this.xhr=null}}onLoad(){let n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}return i.requestsCount=0,i.requests={},i})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lc);else if(typeof addEventListener=="function"){let i="onpagehide"in re?"pagehide":"unload";addEventListener(i,lc,!1)}}function lc(){for(let i in In.requests)In.requests.hasOwnProperty(i)&&In.requests[i].abort()}var _t=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),bi=re.WebSocket||re.MozWebSocket,wn=!0,uc="arraybuffer";var dc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",En=class extends qe{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),n=this.opts.protocols,t=dc?{}:vn(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(t.headers=this.opts.extraHeaders);try{this.ws=wn&&!dc?n?new bi(e,n):new bi(e):new bi(e,n,t)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){let t=e[n],r=n===e.length-1;vi(t,this.supportsBinary,o=>{let s={};wn||(t.options&&(s.compress=t.options.compress),this.opts.perMessageDeflate&&(typeof o=="string"?Buffer.byteLength(o):o.length)<this.opts.perMessageDeflate.threshold&&(s.compress=!1));try{wn?this.ws.send(o):this.ws.send(o,s)}catch{}r&&_t(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=bn()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!bi}};var kn=class extends qe{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let n=Za(Number.MAX_SAFE_INTEGER,this.socket.binaryType),t=e.readable.pipeThrough(n).getReader(),r=Xa();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();let o=()=>{t.read().then(({done:a,value:u})=>{a||(this.onPacket(u),o())}).catch(a=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){let t=e[n],r=n===e.length-1;this.writer.write(t).then(()=>{r&&_t(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}};var kr={websocket:En,webtransport:kn,polling:Cn};var Id=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Cd=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Wt(i){if(i.length>2e3)throw"URI too long";let e=i,n=i.indexOf("["),t=i.indexOf("]");n!=-1&&t!=-1&&(i=i.substring(0,n)+i.substring(n,t).replace(/:/g,";")+i.substring(t,i.length));let r=Id.exec(i||""),o={},s=14;for(;s--;)o[Cd[s]]=r[s]||"";return n!=-1&&t!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=wd(o,o.path),o.queryKey=Ed(o,o.query),o}function wd(i,e){let n=/\/{2,9}/g,t=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&t.splice(0,1),e.slice(-1)=="/"&&t.splice(t.length-1,1),t}function Ed(i,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,r,o){r&&(n[r]=o)}),n}var xn=(()=>{class i extends z{constructor(n,t={}){super(),this.binaryType=uc,this.writeBuffer=[],n&&typeof n=="object"&&(t=n,n=null),n?(n=Wt(n),t.hostname=n.host,t.secure=n.protocol==="https"||n.protocol==="wss",t.port=n.port,n.query&&(t.query=n.query)):t.host&&(t.hostname=Wt(t.host).host),Ve(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ic(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(n){let t=Object.assign({},this.opts.query);t.EIO=Cr,t.transport=n,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new kr[n](r)}open(){let n;if(this.opts.rememberUpgrade&&i.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch{this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(n){let t=this.createTransport(n),r=!1;i.priorWebsocketSuccess=!1;let o=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",v=>{if(!r)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;i.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(S(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let _=new Error("probe error");_.transport=t.name,this.emitReserved("upgradeError",_)}}))};function s(){r||(r=!0,S(),t.close(),t=null)}let a=v=>{let _=new Error("probe error: "+v);_.transport=t.name,s(),this.emitReserved("upgradeError",_)};function u(){a("transport closed")}function h(){a("socket closed")}function m(v){t&&v.name!==t.name&&s()}let S=()=>{t.removeListener("open",o),t.removeListener("error",a),t.removeListener("close",u),this.off("close",h),this.off("upgrading",m)};t.once("open",o),t.once("error",a),t.once("close",u),this.once("close",h),this.once("upgrading",m),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",i.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let n=0,t=this.upgrades.length;for(;n<t;n++)this.probe(this.upgrades[n])}}onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),this.resetPingTimeout(),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=new Error("server error");t.code=n.data,this.onError(t);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this.upgrades=this.filterUpgrades(n.upgrades),this.pingInterval=n.pingInterval,this.pingTimeout=n.pingTimeout,this.maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let n=this.getWritablePackets();this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(t+=ec(o)),r>0&&t>this.maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}write(n,t,r){return this.sendPacket("message",n,t,r),this}send(n,t,r){return this.sendPacket("message",n,t,r),this}sendPacket(n,t,r,o){if(typeof t=="function"&&(o=t,t=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let s={type:n,data:t,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let n=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),n()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():n()}):this.upgrading?r():n()),this}onError(n){i.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){let t=[],r=0,o=n.length;for(;r<o;r++)~this.transports.indexOf(n[r])&&t.push(n[r]);return t}}return i.protocol=Cr,i})();var C_=xn.protocol;function pc(i,e="",n){let t=i;n=n||typeof location<"u"&&location,i==null&&(i=n.protocol+"//"+n.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=n.protocol+i:i=n.host+i),/^(https?|wss?):\/\//.test(i)||(typeof n<"u"?i=n.protocol+"//"+i:i="https://"+i),t=Wt(i)),t.port||(/^(http|ws)$/.test(t.protocol)?t.port="80":/^(http|ws)s$/.test(t.protocol)&&(t.port="443")),t.path=t.path||"/";let o=t.host.indexOf(":")!==-1?"["+t.host+"]":t.host;return t.id=t.protocol+"://"+o+":"+t.port+e,t.href=t.protocol+"://"+o+(n&&n.port===t.port?"":":"+t.port),t}var Rr={};cd(Rr,{Decoder:()=>Ar,Encoder:()=>Pr,PacketType:()=>A,protocol:()=>_c});var kd=typeof ArrayBuffer=="function",xd=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i.buffer instanceof ArrayBuffer,hc=Object.prototype.toString,Td=typeof Blob=="function"||typeof Blob<"u"&&hc.call(Blob)==="[object BlobConstructor]",Pd=typeof File=="function"||typeof File<"u"&&hc.call(File)==="[object FileConstructor]";function Ci(i){return kd&&(i instanceof ArrayBuffer||xd(i))||Td&&i instanceof Blob||Pd&&i instanceof File}function Ii(i,e){if(!i||typeof i!="object")return!1;if(Array.isArray(i)){for(let n=0,t=i.length;n<t;n++)if(Ii(i[n]))return!0;return!1}if(Ci(i))return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return Ii(i.toJSON(),!0);for(let n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&Ii(i[n]))return!0;return!1}function mc(i){let e=[],n=i.data,t=i;return t.data=xr(n,e),t.attachments=e.length,{packet:t,buffers:e}}function xr(i,e){if(!i)return i;if(Ci(i)){let n={_placeholder:!0,num:e.length};return e.push(i),n}else if(Array.isArray(i)){let n=new Array(i.length);for(let t=0;t<i.length;t++)n[t]=xr(i[t],e);return n}else if(typeof i=="object"&&!(i instanceof Date)){let n={};for(let t in i)Object.prototype.hasOwnProperty.call(i,t)&&(n[t]=xr(i[t],e));return n}return i}function fc(i,e){return i.data=Tr(i.data,e),delete i.attachments,i}function Tr(i,e){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<e.length)return e[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let n=0;n<i.length;n++)i[n]=Tr(i[n],e);else if(typeof i=="object")for(let n in i)Object.prototype.hasOwnProperty.call(i,n)&&(i[n]=Tr(i[n],e));return i}var Ad=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],_c=5,A=function(i){return i[i.CONNECT=0]="CONNECT",i[i.DISCONNECT=1]="DISCONNECT",i[i.EVENT=2]="EVENT",i[i.ACK=3]="ACK",i[i.CONNECT_ERROR=4]="CONNECT_ERROR",i[i.BINARY_EVENT=5]="BINARY_EVENT",i[i.BINARY_ACK=6]="BINARY_ACK",i}(A||{}),Pr=class{constructor(e){this.replacer=e}encode(e){return(e.type===A.EVENT||e.type===A.ACK)&&Ii(e)?this.encodeAsBinary({type:e.type===A.EVENT?A.BINARY_EVENT:A.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===A.BINARY_EVENT||e.type===A.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){let n=mc(e),t=this.encodeAsString(n.packet),r=n.buffers;return r.unshift(t),r}};function gc(i){return Object.prototype.toString.call(i)==="[object Object]"}var Ar=class i extends z{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);let t=n.type===A.BINARY_EVENT;t||n.type===A.BINARY_ACK?(n.type=t?A.EVENT:A.ACK,this.reconstructor=new Or(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Ci(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0,t={type:Number(e.charAt(0))};if(A[t.type]===void 0)throw new Error("unknown packet type "+t.type);if(t.type===A.BINARY_EVENT||t.type===A.BINARY_ACK){let o=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);let s=e.substring(o,n);if(s!=Number(s)||e.charAt(n)!=="-")throw new Error("Illegal attachments");t.attachments=Number(s)}if(e.charAt(n+1)==="/"){let o=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););t.nsp=e.substring(o,n)}else t.nsp="/";let r=e.charAt(n+1);if(r!==""&&Number(r)==r){let o=n+1;for(;++n;){let s=e.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===e.length)break}t.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){let o=this.tryParse(e.substr(n));if(i.isPayloadValid(t.type,o))t.data=o;else throw new Error("invalid payload")}return t}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case A.CONNECT:return gc(n);case A.DISCONNECT:return n===void 0;case A.CONNECT_ERROR:return typeof n=="string"||gc(n);case A.EVENT:case A.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Ad.indexOf(n[0])===-1);case A.ACK:case A.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Or=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let n=fc(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function fe(i,e,n){return i.on(e,n),function(){i.off(e,n)}}var Od=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ht=class extends z{constructor(e,n,t){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,t&&t.auth&&(this.auth=t.auth),this._opts=Object.assign({},t),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[fe(e,"open",this.onopen.bind(this)),fe(e,"packet",this.onpacket.bind(this)),fe(e,"error",this.onerror.bind(this)),fe(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(Od.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let t={type:A.EVENT,data:n};if(t.options={},t.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let s=this.ids++,a=n.pop();this._registerAckCallback(s,a),t.id=s}let r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(t),this.packet(t)):this.sendBuffer.push(t)),this.flags={},this}_registerAckCallback(e,n){var t;let r=(t=this.flags.timeout)!==null&&t!==void 0?t:this._opts.ackTimeout;if(r===void 0){this.acks[e]=n;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},r),s=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...n){return new Promise((t,r)=>{let o=(s,a)=>s?r(s):t(a);o.withError=!0,n.push(o),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let t={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...o)=>t!==this._queue[0]?void 0:(r!==null?t.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(r)):(this._queue.shift(),n&&n(null,...o)),t.pending=!1,this._drainQueue())),this._queue.push(t),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:A.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case A.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case A.EVENT:case A.BINARY_EVENT:this.onevent(e);break;case A.ACK:case A.BINARY_ACK:this.onack(e);break;case A.DISCONNECT:this.ondisconnect();break;case A.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let t of n)t.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,t=!1;return function(...r){t||(t=!0,n.packet({type:A.ACK,id:e,data:r}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:A.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let n=this._anyListeners;for(let t=0;t<n.length;t++)if(e===n[t])return n.splice(t,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let n=this._anyOutgoingListeners;for(let t=0;t<n.length;t++)if(e===n[t])return n.splice(t,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let t of n)t.apply(this,e.data)}}};function vt(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}vt.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*i);i=Math.floor(e*10)&1?i+n:i-n}return Math.min(i,this.max)|0};vt.prototype.reset=function(){this.attempts=0};vt.prototype.setMin=function(i){this.ms=i};vt.prototype.setMax=function(i){this.max=i};vt.prototype.setJitter=function(i){this.jitter=i};var Kt=class extends z{constructor(e,n){var t;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ve(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((t=n.randomizationFactor)!==null&&t!==void 0?t:.5),this.backoff=new vt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let r=n.parser||Rr;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new xn(this.uri,this.opts);let n=this.engine,t=this;this._readyState="opening",this.skipReconnect=!1;let r=fe(n,"open",function(){t.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},s=fe(n,"error",o);if(this._timeout!==!1){let a=this._timeout,u=this.setTimeoutFn(()=>{r(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(r),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(fe(e,"ping",this.onping.bind(this)),fe(e,"data",this.ondata.bind(this)),fe(e,"error",this.onerror.bind(this)),fe(e,"close",this.onclose.bind(this)),fe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){_t(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let t=this.nsps[e];return t?this._autoConnect&&!t.active&&t.connect():(t=new Ht(this,e,n),this.nsps[e]=t),t}_destroy(e){let n=Object.keys(this.nsps);for(let t of n)if(this.nsps[t].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let t=0;t<n.length;t++)this.engine.write(n[t],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let t=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},n);this.opts.autoUnref&&t.unref(),this.subs.push(()=>{this.clearTimeoutFn(t)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var wi={};function Ei(i,e){typeof i=="object"&&(e=i,i=void 0),e=e||{};let n=pc(i,e.path||"/socket.io"),t=n.source,r=n.id,o=n.path,s=wi[r]&&o in wi[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s,u;return a?u=new Kt(t,e):(wi[r]||(wi[r]=new Kt(t,e)),u=wi[r]),n.query&&!e.query&&(e.query=n.queryKey),u.socket(n.path,e)}Object.assign(Ei,{Manager:Kt,Socket:Ht,io:Ei,connect:Ei});var Rd=ls;function Nd(i){return!!i[Rd]}var Md=Symbol("__destroy"),bc=Symbol("__decoratorApplied");function Ic(i){return typeof i=="string"?Symbol(`__destroy__${i}`):Md}function Ud(i){i.prototype[bc]=!0}function Cc(i,e){i[e]||(i[e]=new Bi)}function wc(i,e){i[e]&&(i[e].next(),i[e].complete(),i[e]=null)}function Ec(i){i instanceof Xo&&i.unsubscribe()}function Ld(i){Array.isArray(i)&&i.forEach(Ec)}function kc(i,e){return function(){if(i&&i.call(this),wc(this,Ic()),e.arrayName&&Ld(this[e.arrayName]),e.checkProperties)for(let n in this)e.blackList?.includes(n)||Ec(this[n])}}function Fd(i,e){i.prototype.ngOnDestroy=kc(i.prototype.ngOnDestroy,e)}function Dd(i,e){let n=i.\u0275pipe;n.onDestroy=kc(n.onDestroy,e)}function Tn(i={}){return e=>{Nd(e)?Dd(e,i):Fd(e,i),Ud(e)}}var vc=7,yc=Symbol("CheckerHasBeenSet");function Bd(i,e){i[yc]||Vd()||(Sc(()=>zi(Promise.resolve()).pipe(ii(()=>{let n;try{n=hs(i)}catch{n=null}let t=n?.lView;if(t==null)return ts;let r=t[vc]||(t[vc]=[]),o=new Bi;return r.push(function(){Sc(()=>{o.next(),o.complete()})}),o}),ii(()=>Promise.resolve())).subscribe(()=>{(e.observed??e.observers.length>0)&&console.warn(qd(i))})),i[yc]=!0)}function Vd(){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 Sc(i){let e=us.Zone;return!!e&&typeof e.root?.run=="function"?e.root.run(i):i()}function qd(i){return`
  The ${i.constructor.name} still has subscriptions that haven't been unsubscribed.
  This may happen if the class extends another class decorated with @UntilDestroy().
  The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().
  Let's look at the following example:
  @UntilDestroy()
  @Directive()
  export abstract class BaseDirective {}
  @Component({ template: '' })
  export class ConcreteComponent extends BaseDirective implements OnDestroy {
    constructor() {
      super();
      someObservable$.pipe(untilDestroyed(this)).subscribe();
    }
    ngOnDestroy(): void {
      // Some logic here...
    }
  }
  The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()
  on the ConcreteComponent, but not on the BaseDirective.
  One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:
  @UntilDestroy()
  @Directive()
  export abstract class BaseDirective {
    ngOnDestroy(): void {}
  }
  @Component({ template: '' })
  export class ConcreteComponent extends BaseDirective implements OnDestroy {
    constructor() {
      super();
      someObservable$.pipe(untilDestroyed(this)).subscribe();
    }
    ngOnDestroy(): void {
      // Some logic here...
      super.ngOnDestroy();
    }
  }
  `}var Nr=!1;function zd(i,e,n){let t=i[e];if(Nr&&typeof t!="function")throw new Error(`${i.constructor.name} is using untilDestroyed but doesn't implement ${e}`);Cc(i,n),i[e]=function(){t.apply(this,arguments),wc(this,n),i[e]=t}}function xc(i,e){return n=>{let t=Ic(e);typeof e=="string"?zd(i,e,t):(Nr&&jd(i),Cc(i,t));let r=i[t];return Nr&&Bd(i,r),n.pipe(as(r))}}function jd(i){let e=Object.getPrototypeOf(i);if(!(bc in e))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}var Tc=(()=>{let e=class e{constructor(){this.socket=Ei(di)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}on(t,r){this.socket.on(t,r)}emit(t,r){this.data={topic:t,Socketdata:r},this.socket.emit("requests",this.data)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var An=(()=>{let e=class e{constructor(t,r,o){this.http=t,this.instantQuoteService=r,this.socketIOService=o,this.svgData=new ae([]),this.svgDocument=new ae(null),this.currentEditedSvg="",this.processes=new ae([]),this.files=new Map,this.files$=new ae(null),this.geometryData=new ae(null),this.baseImageData=new ae(null),this.DFMImageData=new ae(null),this.instantQuoteService.instantQuote$.subscribe(s=>{this.instantQuote=s,this.currentIndex=s.currentModelIndex}),this.socketConnect()}getSvgByURL(t){let r=new si().set("Content-Type","application/json");return this.http.get(t,{headers:r,responseType:"text"})}getUnitString(t){return t=="Millimeters"?$t.MM:t=="Centimeters"?$t.CM:t=="Inches"?$t.INCH:$t.MM}getUnprocessedSvgByURL(t,r){return this.http.post(di+"/view_svg_raw",{url:t,filename:r},{responseType:"text"})}postDxfToServer(t,r){let o=new si({"Content-Type":"application/json",Accept:"application/json"});return this.http.post(di+"/dfm_check",{url:t,filename:r},{headers:o})}addFile(t,r){this.files.set(t,r),this.files$.next(this.files)}clear(){this.currentEditedSvg=""}setSvgDocument(t){this.svgDocument.next(t)}getSvgDocument(){return this.svgDocument}setProcesses(t){this.processes.next(t)}isCurrentEditedSvg(t){return this.currentEditedSvg==t}setSvgData(t,r){this.currentEditedSvg=r,this.svgData.next(t)}getSvgData(){return this.svgData}saveSvgColored(t,r,o,s){s.setAttribute("style","background-color: #e3eaf1;");let a=new XMLSerializer().serializeToString(s),u={url:t,filename:r,processes:o,svg:a};return this.socketIOService.emit("getColoredSVG",u),new Ie(h=>{this.socketIOService.on("coloredSVG",m=>{this.baseImageData.next(m),h.next(m)})})}saveFiles(){this.files$.getValue().forEach(t=>{this.addProcessToSvg(t.fileLink,t.fileName,t.svgElement,t.processes)})}addProcessToSvg(t,r,o,s){let a=o,u=20;s.forEach(h=>{let m=h.process,S=h.color;var v=document.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("x","10"),v.setAttribute("y",u.toString()),v.setAttribute("width","5"),v.setAttribute("height","5"),v.setAttribute("fill",S);var _=document.createElementNS("http://www.w3.org/2000/svg","text");_.setAttribute("x","20"),_.setAttribute("y",(u+5).toString()),_.setAttribute("fill",S),_.textContent=m,a.children[0].appendChild(v),a.children[0].appendChild(_),u+=50}),this.saveSvgColored(t,r,this.processes.getValue(),a).subscribe(h=>{this.instantQuote.uploadedModels.find(m=>m.fileName==r).dfmData.coloredSvg=h.file,this.instantQuoteService.setQuote(this.instantQuote)})}scaleFile(t,r,o){this.socketIOService.emit("scale_file",{fileLink:t,fileName:r,scale:o}),this.socketIOService.on("scaledData",s=>{this.instantQuote.uploadedModels.find(a=>a.fileName==r).dfmData.scaledFile=s.scaledData.file,this.instantQuoteService.setQuote(this.instantQuote)})}socketConnect(){this.socketIOService.connect()}sendFileToSocket(t){return this.socketIOService.emit("dfm_check",t),new Ie(r=>{this.socketIOService.on("dfm_check",o=>{this.baseImageData.next(o),r.next(o)})})}listenForGeometry(){return new Ie(t=>{this.socketIOService.on("geometry",r=>{this.instantQuote.currentModel.coordinates.x_index=r.geometry.width,this.instantQuote.currentModel.coordinates.y_index=r.geometry.height,this.instantQuoteService.setQuote(this.instantQuote),this.geometryData.next(r),t.next(r)})})}listenForBaseImage(){return new Ie(t=>{this.socketIOService.on("view_svg_raw",r=>{this.baseImageData.next(r),t.next(r)})})}listenForDFMImage(){return new Ie(t=>{this.socketIOService.on("view_svg_checked",r=>{this.DFMImageData.next(r),t.next(r)})})}unsubscribeFromObservable(){}};e.\u0275fac=function(r){return new(r||e)(w(pe),w(et),w(Tc))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Hd="firebase",Kd="9.23.0";B(Hd,Kd,"app");var Mr="@firebase/remote-config",Oc="0.4.4";var Yd="remote-config";var Qd={"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"},me=new Ne("remoteconfig","Remote Config",Qd);function Jd(i){let e=ee(i);return e._initializePromise||(e._initializePromise=e._storageCache.loadFromStorage().then(()=>{e._isInitializationComplete=!0})),e._initializePromise}var Ur=class{constructor(e,n,t,r){this.client=e,this.storage=n,this.storageCache=t,this.logger=r}isCachedDataFresh(e,n){if(!n)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let t=Date.now()-n,r=t<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${t}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${r}.`),r}fetch(e){return y(this,null,function*(){let[n,t]=yield Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(t&&this.isCachedDataFresh(e.cacheMaxAgeMillis,n))return t;e.eTag=t&&t.eTag;let r=yield this.client.fetch(e),o=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return r.status===200&&o.push(this.storage.setLastSuccessfulFetchResponse(r)),yield Promise.all(o),r})}};function Xd(i=navigator){return i.languages&&i.languages[0]||i.language}var Lr=class{constructor(e,n,t,r,o,s){this.firebaseInstallations=e,this.sdkVersion=n,this.namespace=t,this.projectId=r,this.apiKey=o,this.appId=s}fetch(e){return y(this,null,function*(){let[n,t]=yield Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),o=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`,s={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},a={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:t,app_id:this.appId,language_code:Xd()},u={method:"POST",headers:s,body:JSON.stringify(a)},h=fetch(o,u),m=new Promise((I,g)=>{e.signal.addEventListener(()=>{let f=new Error("The operation was aborted.");f.name="AbortError",g(f)})}),S;try{yield Promise.race([h,m]),S=yield h}catch(I){let g="fetch-client-network";throw I?.name==="AbortError"&&(g="fetch-timeout"),me.create(g,{originalErrorMessage:I?.message})}let v=S.status,_=S.headers.get("ETag")||void 0,b,E;if(S.status===200){let I;try{I=yield S.json()}catch(g){throw me.create("fetch-client-parse",{originalErrorMessage:g?.message})}b=I.entries,E=I.state}if(E==="INSTANCE_STATE_UNSPECIFIED"?v=500:E==="NO_CHANGE"?v=304:(E==="NO_TEMPLATE"||E==="EMPTY_CONFIG")&&(b={}),v!==304&&v!==200)throw me.create("fetch-status",{httpStatus:v});return{status:v,eTag:_,config:b}})}};function Zd(i,e){return new Promise((n,t)=>{let r=Math.max(e-Date.now(),0),o=setTimeout(n,r);i.addEventListener(()=>{clearTimeout(o),t(me.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function ep(i){if(!(i instanceof mt)||!i.customData)return!1;let e=Number(i.customData.httpStatus);return e===429||e===500||e===503||e===504}var Fr=class{constructor(e,n){this.client=e,this.storage=n}fetch(e){return y(this,null,function*(){let n=(yield this.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(e,n)})}attemptFetch(r,o){return y(this,arguments,function*(e,{throttleEndTimeMillis:n,backoffCount:t}){yield Zd(e.signal,n);try{let s=yield this.client.fetch(e);return yield this.storage.deleteThrottleMetadata(),s}catch(s){if(!ep(s))throw s;let a={throttleEndTimeMillis:Date.now()+li(t),backoffCount:t+1};return yield this.storage.setThrottleMetadata(a),this.attemptFetch(e,a)}})}};var tp=60*1e3,ip=12*60*60*1e3,Dr=class{constructor(e,n,t,r,o){this.app=e,this._client=n,this._storageCache=t,this._storage=r,this._logger=o,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:tp,minimumFetchIntervalMillis:ip},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}};function On(i,e){let n=i.target.error||void 0;return me.create(e,{originalErrorMessage:n&&n?.message})}var yt="app_namespace_store",np="firebase_remote_config",rp=1;function op(){return new Promise((i,e)=>{try{let n=indexedDB.open(np,rp);n.onerror=t=>{e(On(t,"storage-open"))},n.onsuccess=t=>{i(t.target.result)},n.onupgradeneeded=t=>{let r=t.target.result;switch(t.oldVersion){case 0:r.createObjectStore(yt,{keyPath:"compositeKey"})}}}catch(n){e(me.create("storage-open",{originalErrorMessage:n?.message}))}})}var Br=class{constructor(e,n,t,r=op()){this.appId=e,this.appName=n,this.namespace=t,this.openDbPromise=r}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(e){return y(this,null,function*(){let n=yield this.openDbPromise;return new Promise((t,r)=>{let s=n.transaction([yt],"readonly").objectStore(yt),a=this.createCompositeKey(e);try{let u=s.get(a);u.onerror=h=>{r(On(h,"storage-get"))},u.onsuccess=h=>{let m=h.target.result;t(m?m.value:void 0)}}catch(u){r(me.create("storage-get",{originalErrorMessage:u?.message}))}})})}set(e,n){return y(this,null,function*(){let t=yield this.openDbPromise;return new Promise((r,o)=>{let a=t.transaction([yt],"readwrite").objectStore(yt),u=this.createCompositeKey(e);try{let h=a.put({compositeKey:u,value:n});h.onerror=m=>{o(On(m,"storage-set"))},h.onsuccess=()=>{r()}}catch(h){o(me.create("storage-set",{originalErrorMessage:h?.message}))}})})}delete(e){return y(this,null,function*(){let n=yield this.openDbPromise;return new Promise((t,r)=>{let s=n.transaction([yt],"readwrite").objectStore(yt),a=this.createCompositeKey(e);try{let u=s.delete(a);u.onerror=h=>{r(On(h,"storage-delete"))},u.onsuccess=()=>{t()}}catch(u){r(me.create("storage-delete",{originalErrorMessage:u?.message}))}})})}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}};var Vr=class{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){return y(this,null,function*(){let e=this.storage.getLastFetchStatus(),n=this.storage.getLastSuccessfulFetchTimestampMillis(),t=this.storage.getActiveConfig(),r=yield e;r&&(this.lastFetchStatus=r);let o=yield n;o&&(this.lastSuccessfulFetchTimestampMillis=o);let s=yield t;s&&(this.activeConfig=s)})}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}};function sp(){ke(new Ee(Yd,i,"PUBLIC").setMultipleInstances(!0)),B(Mr,Oc),B(Mr,Oc,"esm2017");function i(e,{instanceIdentifier:n}){let t=e.getProvider("app").getImmediate(),r=e.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw me.create("registration-window");if(!Je())throw me.create("indexed-db-unavailable");let{projectId:o,apiKey:s,appId:a}=t.options;if(!o)throw me.create("registration-project-id");if(!s)throw me.create("registration-api-key");if(!a)throw me.create("registration-app-id");n=n||"firebase";let u=new Br(a,t.name,n),h=new Vr(u),m=new Ft(Mr);m.logLevel=ui.ERROR;let S=new Lr(r,Dt,n,o,s,a),v=new Fr(S,u),_=new Ur(v,u,h,m),b=new Dr(t,_,h,u,m);return Jd(b),b}}function Rc(){return y(this,null,function*(){if(!Je())return!1;try{return yield ht()}catch{return!1}})}sp();var ap="/firebase-messaging-sw.js",cp="/firebase-cloud-messaging-push-scope",Dc="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",lp="https://fcmregistrations.googleapis.com/v1",Bc="google.c.a.c_id",up="google.c.a.c_l",dp="google.c.a.ts",pp="google.c.a.e";var Rn=function(i){return i.PUSH_RECEIVED="push-received",i.NOTIFICATION_CLICKED="notification-clicked",i}(Rn||{});function ze(i){let e=new Uint8Array(i);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function hp(i){let e="=".repeat((4-i.length%4)%4),n=(i+e).replace(/\-/g,"+").replace(/_/g,"/"),t=atob(n),r=new Uint8Array(t.length);for(let o=0;o<t.length;++o)r[o]=t.charCodeAt(o);return r}var qr="fcm_token_details_db",mp=5,Nc="fcm_token_object_Store";function fp(i){return y(this,null,function*(){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(o=>o.name).includes(qr))return null;let e=null;return(yield pr(qr,mp,{upgrade:(t,r,o,s)=>y(this,null,function*(){var a;if(r<2||!t.objectStoreNames.contains(Nc))return;let u=s.objectStore(Nc),h=yield u.index("fcmSenderId").get(i);if(yield u.clear(),!!h){if(r===2){let m=h;if(!m.auth||!m.p256dh||!m.endpoint)return;e={token:m.fcmToken,createTime:(a=m.createTime)!==null&&a!==void 0?a:Date.now(),subscriptionOptions:{auth:m.auth,p256dh:m.p256dh,endpoint:m.endpoint,swScope:m.swScope,vapidKey:typeof m.vapidKey=="string"?m.vapidKey:ze(m.vapidKey)}}}else if(r===3){let m=h;e={token:m.fcmToken,createTime:m.createTime,subscriptionOptions:{auth:ze(m.auth),p256dh:ze(m.p256dh),endpoint:m.endpoint,swScope:m.swScope,vapidKey:ze(m.vapidKey)}}}else if(r===4){let m=h;e={token:m.fcmToken,createTime:m.createTime,subscriptionOptions:{auth:ze(m.auth),p256dh:ze(m.p256dh),endpoint:m.endpoint,swScope:m.swScope,vapidKey:ze(m.vapidKey)}}}}})})).close(),yield nn(qr),yield nn("fcm_vapid_details_db"),yield nn("undefined"),gp(e)?e:null})}function gp(i){if(!i||!i.subscriptionOptions)return!1;let{subscriptionOptions:e}=i;return typeof i.createTime=="number"&&i.createTime>0&&typeof i.token=="string"&&i.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}var _p="firebase-messaging-database",vp=1,St="firebase-messaging-store",zr=null;function $r(){return zr||(zr=pr(_p,vp,{upgrade:(i,e)=>{switch(e){case 0:i.createObjectStore(St)}}})),zr}function Vc(i){return y(this,null,function*(){let e=Hr(i),t=yield(yield $r()).transaction(St).objectStore(St).get(e);if(t)return t;{let r=yield fp(i.appConfig.senderId);if(r)return yield Wr(i,r),r}})}function Wr(i,e){return y(this,null,function*(){let n=Hr(i),r=(yield $r()).transaction(St,"readwrite");return yield r.objectStore(St).put(e,n),yield r.done,e})}function yp(i){return y(this,null,function*(){let e=Hr(i),t=(yield $r()).transaction(St,"readwrite");yield t.objectStore(St).delete(e),yield t.done})}function Hr({appConfig:i}){return i.appId}var Sp={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},te=new Ne("messaging","Messaging",Sp);function bp(i,e){return y(this,null,function*(){let n=yield Yr(i),t=zc(e),r={method:"POST",headers:n,body:JSON.stringify(t)},o;try{o=yield(yield fetch(Kr(i.appConfig),r)).json()}catch(s){throw te.create("token-subscribe-failed",{errorInfo:s?.toString()})}if(o.error){let s=o.error.message;throw te.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw te.create("token-subscribe-no-token");return o.token})}function Ip(i,e){return y(this,null,function*(){let n=yield Yr(i),t=zc(e.subscriptionOptions),r={method:"PATCH",headers:n,body:JSON.stringify(t)},o;try{o=yield(yield fetch(`${Kr(i.appConfig)}/${e.token}`,r)).json()}catch(s){throw te.create("token-update-failed",{errorInfo:s?.toString()})}if(o.error){let s=o.error.message;throw te.create("token-update-failed",{errorInfo:s})}if(!o.token)throw te.create("token-update-no-token");return o.token})}function qc(i,e){return y(this,null,function*(){let t={method:"DELETE",headers:yield Yr(i)};try{let o=yield(yield fetch(`${Kr(i.appConfig)}/${e}`,t)).json();if(o.error){let s=o.error.message;throw te.create("token-unsubscribe-failed",{errorInfo:s})}}catch(r){throw te.create("token-unsubscribe-failed",{errorInfo:r?.toString()})}})}function Kr({projectId:i}){return`${lp}/projects/${i}/registrations`}function Yr(n){return y(this,arguments,function*({appConfig:i,installations:e}){let t=yield e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":i.apiKey,"x-goog-firebase-installations-auth":`FIS ${t}`})})}function zc({p256dh:i,auth:e,endpoint:n,vapidKey:t}){let r={web:{endpoint:n,auth:e,p256dh:i}};return t!==Dc&&(r.web.applicationPubKey=t),r}var Cp=7*24*60*60*1e3;function wp(i){return y(this,null,function*(){let e=yield kp(i.swRegistration,i.vapidKey),n={vapidKey:i.vapidKey,swScope:i.swRegistration.scope,endpoint:e.endpoint,auth:ze(e.getKey("auth")),p256dh:ze(e.getKey("p256dh"))},t=yield Vc(i.firebaseDependencies);if(t){if(xp(t.subscriptionOptions,n))return Date.now()>=t.createTime+Cp?Ep(i,{token:t.token,createTime:Date.now(),subscriptionOptions:n}):t.token;try{yield qc(i.firebaseDependencies,t.token)}catch(r){console.warn(r)}return Mc(i.firebaseDependencies,n)}else return Mc(i.firebaseDependencies,n)})}function jc(i){return y(this,null,function*(){let e=yield Vc(i.firebaseDependencies);e&&(yield qc(i.firebaseDependencies,e.token),yield yp(i.firebaseDependencies));let n=yield i.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0})}function Ep(i,e){return y(this,null,function*(){try{let n=yield Ip(i.firebaseDependencies,e),t=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return yield Wr(i.firebaseDependencies,t),n}catch(n){throw yield jc(i),n}})}function Mc(i,e){return y(this,null,function*(){let t={token:yield bp(i,e),createTime:Date.now(),subscriptionOptions:e};return yield Wr(i,t),t.token})}function kp(i,e){return y(this,null,function*(){let n=yield i.pushManager.getSubscription();return n||i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:hp(e)})})}function xp(i,e){let n=e.vapidKey===i.vapidKey,t=e.endpoint===i.endpoint,r=e.auth===i.auth,o=e.p256dh===i.p256dh;return n&&t&&r&&o}function Uc(i){let e={from:i.from,collapseKey:i.collapse_key,messageId:i.fcmMessageId};return Tp(e,i),Pp(e,i),Ap(e,i),e}function Tp(i,e){if(!e.notification)return;i.notification={};let n=e.notification.title;n&&(i.notification.title=n);let t=e.notification.body;t&&(i.notification.body=t);let r=e.notification.image;r&&(i.notification.image=r);let o=e.notification.icon;o&&(i.notification.icon=o)}function Pp(i,e){e.data&&(i.data=e.data)}function Ap(i,e){var n,t,r,o,s;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;i.fcmOptions={};let a=(r=(t=e.fcmOptions)===null||t===void 0?void 0:t.link)!==null&&r!==void 0?r:(o=e.notification)===null||o===void 0?void 0:o.click_action;a&&(i.fcmOptions.link=a);let u=(s=e.fcmOptions)===null||s===void 0?void 0:s.analytics_label;u&&(i.fcmOptions.analyticsLabel=u)}function Op(i){return typeof i=="object"&&!!i&&Bc in i}Gc("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");Gc("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function Gc(i,e){let n=[];for(let t=0;t<i.length;t++)n.push(i.charAt(t)),t<e.length&&n.push(e.charAt(t));return n.join("")}function Rp(i){if(!i||!i.options)throw jr("App Configuration Object");if(!i.name)throw jr("App Name");let e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=i;for(let t of e)if(!n[t])throw jr(t);return{appName:i.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function jr(i){return te.create("missing-app-config-values",{valueName:i})}var Gr=class{constructor(e,n,t){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let r=Rp(e);this.firebaseDependencies={app:e,appConfig:r,installations:n,analyticsProvider:t}}_delete(){return Promise.resolve()}};function $c(i){return y(this,null,function*(){try{i.swRegistration=yield navigator.serviceWorker.register(ap,{scope:cp}),i.swRegistration.update().catch(()=>{})}catch(e){throw te.create("failed-service-worker-registration",{browserErrorMessage:e?.message})}})}function Np(i,e){return y(this,null,function*(){if(!e&&!i.swRegistration&&(yield $c(i)),!(!e&&i.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw te.create("invalid-sw-registration");i.swRegistration=e}})}function Mp(i,e){return y(this,null,function*(){e?i.vapidKey=e:i.vapidKey||(i.vapidKey=Dc)})}function Wc(i,e){return y(this,null,function*(){if(!navigator)throw te.create("only-available-in-window");if(Notification.permission==="default"&&(yield Notification.requestPermission()),Notification.permission!=="granted")throw te.create("permission-blocked");return yield Mp(i,e?.vapidKey),yield Np(i,e?.serviceWorkerRegistration),wp(i)})}function Up(i,e,n){return y(this,null,function*(){let t=Lp(e);(yield i.firebaseDependencies.analyticsProvider.get()).logEvent(t,{message_id:n[Bc],message_name:n[up],message_time:n[dp],message_device_time:Math.floor(Date.now()/1e3)})})}function Lp(i){switch(i){case Rn.NOTIFICATION_CLICKED:return"notification_open";case Rn.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Fp(i,e){return y(this,null,function*(){let n=e.data;if(!n.isFirebaseMessaging)return;i.onMessageHandler&&n.messageType===Rn.PUSH_RECEIVED&&(typeof i.onMessageHandler=="function"?i.onMessageHandler(Uc(n)):i.onMessageHandler.next(Uc(n)));let t=n.data;Op(t)&&t[pp]==="1"&&(yield Up(i,n.messageType,t))})}var Lc="@firebase/messaging",Fc="0.12.4";var Dp=i=>{let e=new Gr(i.getProvider("app").getImmediate(),i.getProvider("installations-internal").getImmediate(),i.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>Fp(e,n)),e},Bp=i=>{let e=i.getProvider("messaging").getImmediate();return{getToken:t=>Wc(e,t)}};function Vp(){ke(new Ee("messaging",Dp,"PUBLIC")),ke(new Ee("messaging-internal",Bp,"PRIVATE")),B(Lc,Fc),B(Lc,Fc,"esm2017")}function Qr(){return y(this,null,function*(){try{yield ht()}catch{return!1}return typeof window<"u"&&Je()&&ci()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})}function qp(i){return y(this,null,function*(){if(!navigator)throw te.create("only-available-in-window");return i.swRegistration||(yield $c(i)),jc(i)})}function zp(i,e){if(!navigator)throw te.create("only-available-in-window");return i.onMessageHandler=e,()=>{i.onMessageHandler=null}}function Hc(i=Xe()){return Qr().then(e=>{if(!e)throw te.create("unsupported-browser")},e=>{throw te.create("indexed-db-unsupported")}),ft(ee(i),"messaging").getImmediate()}function Kc(i,e){return y(this,null,function*(){return i=ee(i),Wc(i,e)})}function Yc(i){return i=ee(i),qp(i)}function Qc(i,e){return i=ee(i),zp(i,e)}Vp();var Nn="analytics",jp="firebase_id",Gp="origin",$p=60*1e3,Wp="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",no="https://www.googletagmanager.com/gtag/js";var le=new Ft("@firebase/analytics");var Hp={"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},ge=new Ne("analytics","Analytics",Hp);function Kp(i){if(!i.startsWith(no)){let e=ge.create("invalid-gtag-resource",{gtagURL:i});return le.warn(e.message),""}return i}function nl(i){return Promise.all(i.map(e=>e.catch(n=>n)))}function Yp(i,e){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(i,e)),n}function Qp(i,e){let n=Yp("firebase-js-sdk-policy",{createScriptURL:Kp}),t=document.createElement("script"),r=`${no}?l=${i}&id=${e}`;t.src=n?n?.createScriptURL(r):r,t.async=!0,document.head.appendChild(t)}function Jp(i){let e=[];return Array.isArray(window[i])?e=window[i]:window[i]=e,e}function Xp(i,e,n,t,r,o){return y(this,null,function*(){let s=t[r];try{if(s)yield e[s];else{let u=(yield nl(n)).find(h=>h.measurementId===r);u&&(yield e[u.appId])}}catch(a){le.error(a)}i("config",r,o)})}function Zp(i,e,n,t,r){return y(this,null,function*(){try{let o=[];if(r&&r.send_to){let s=r.send_to;Array.isArray(s)||(s=[s]);let a=yield nl(n);for(let u of s){let h=a.find(S=>S.measurementId===u),m=h&&e[h.appId];if(m)o.push(m);else{o=[];break}}}o.length===0&&(o=Object.values(e)),yield Promise.all(o),i("event",t,r||{})}catch(o){le.error(o)}})}function eh(i,e,n,t){function r(o,...s){return y(this,null,function*(){try{if(o==="event"){let[a,u]=s;yield Zp(i,e,n,a,u)}else if(o==="config"){let[a,u]=s;yield Xp(i,e,n,t,a,u)}else if(o==="consent"){let[a]=s;i("consent","update",a)}else if(o==="get"){let[a,u,h]=s;i("get",a,u,h)}else if(o==="set"){let[a]=s;i("set",a)}else i(o,...s)}catch(a){le.error(a)}})}return r}function th(i,e,n,t,r){let o=function(...s){window[t].push(arguments)};return window[r]&&typeof window[r]=="function"&&(o=window[r]),window[r]=eh(o,i,e,n),{gtagCore:o,wrappedGtag:window[r]}}function ih(i){let e=window.document.getElementsByTagName("script");for(let n of Object.values(e))if(n.src&&n.src.includes(no)&&n.src.includes(i))return n;return null}var nh=30,rh=1e3,Xr=class{constructor(e={},n=rh){this.throttleMetadata=e,this.intervalMillis=n}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,n){this.throttleMetadata[e]=n}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}},rl=new Xr;function oh(i){return new Headers({Accept:"application/json","x-goog-api-key":i})}function sh(i){return y(this,null,function*(){var e;let{appId:n,apiKey:t}=i,r={method:"GET",headers:oh(t)},o=Wp.replace("{app-id}",n),s=yield fetch(o,r);if(s.status!==200&&s.status!==304){let a="";try{let u=yield s.json();!((e=u.error)===null||e===void 0)&&e.message&&(a=u.error.message)}catch{}throw ge.create("config-fetch-failed",{httpStatus:s.status,responseMessage:a})}return s.json()})}function ah(t){return y(this,arguments,function*(i,e=rl,n){let{appId:r,apiKey:o,measurementId:s}=i.options;if(!r)throw ge.create("no-app-id");if(!o){if(s)return{measurementId:s,appId:r};throw ge.create("no-api-key")}let a=e.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},u=new Zr;return setTimeout(()=>y(this,null,function*(){u.abort()}),n!==void 0?n:$p),ol({appId:r,apiKey:o,measurementId:s},a,u,e)})}function ol(o,s,a){return y(this,arguments,function*(i,{throttleEndTimeMillis:e,backoffCount:n},t,r=rl){var u;let{appId:h,measurementId:m}=i;try{yield ch(t,e)}catch(S){if(m)return le.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${m} provided in the "measurementId" field in the local Firebase config. [${S?.message}]`),{appId:h,measurementId:m};throw S}try{let S=yield sh(i);return r.deleteThrottleMetadata(h),S}catch(S){let v=S;if(!lh(v)){if(r.deleteThrottleMetadata(h),m)return le.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${m} provided in the "measurementId" field in the local Firebase config. [${v?.message}]`),{appId:h,measurementId:m};throw S}let _=Number((u=v?.customData)===null||u===void 0?void 0:u.httpStatus)===503?li(n,r.intervalMillis,nh):li(n,r.intervalMillis),b={throttleEndTimeMillis:Date.now()+_,backoffCount:n+1};return r.setThrottleMetadata(h,b),le.debug(`Calling attemptFetch again in ${_} millis`),ol(i,b,t,r)}})}function ch(i,e){return new Promise((n,t)=>{let r=Math.max(e-Date.now(),0),o=setTimeout(n,r);i.addEventListener(()=>{clearTimeout(o),t(ge.create("fetch-throttle",{throttleEndTimeMillis:e}))})})}function lh(i){if(!(i instanceof mt)||!i.customData)return!1;let e=Number(i.customData.httpStatus);return e===429||e===500||e===503||e===504}var Zr=class{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}};var eo;function uh(i,e,n,t,r){return y(this,null,function*(){if(r&&r.global){i("event",n,t);return}else{let o=yield e,s=Object.assign(Object.assign({},t),{send_to:o});i("event",n,s)}})}function dh(i,e,n,t){return y(this,null,function*(){if(t&&t.global)return i("set",{user_id:n}),Promise.resolve();{let r=yield e;i("config",r,{update:!0,user_id:n})}})}var to;function ph(i){to=i}function hh(i){eo=i}function mh(){return y(this,null,function*(){if(Je())try{yield ht()}catch(i){return le.warn(ge.create("indexeddb-unavailable",{errorInfo:i?.toString()}).message),!1}else return le.warn(ge.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0})}function fh(i,e,n,t,r,o,s){return y(this,null,function*(){var a;let u=ah(i);u.then(_=>{n[_.measurementId]=_.appId,i.options.measurementId&&_.measurementId!==i.options.measurementId&&le.warn(`The measurement ID in the local Firebase config (${i.options.measurementId}) does not match the measurement ID fetched from the server (${_.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(_=>le.error(_)),e.push(u);let h=mh().then(_=>{if(_)return t.getId()}),[m,S]=yield Promise.all([u,h]);ih(o)||Qp(o,m.measurementId),to&&(r("consent","default",to),ph(void 0)),r("js",new Date);let v=(a=s?.config)!==null&&a!==void 0?a:{};return v[Gp]="firebase",v.update=!0,S!=null&&(v[jp]=S),r("config",m.measurementId,v),eo&&(r("set",eo),hh(void 0)),m.measurementId})}var io=class{constructor(e){this.app=e}_delete(){return delete Yt[this.app.options.appId],Promise.resolve()}},Yt={},Jc=[],Xc={},Jr="dataLayer",gh="gtag",Zc,ro,el=!1;function _h(){let i=[];if(ai()&&i.push("This is a browser extension environment."),ci()||i.push("Cookies are not available."),i.length>0){let e=i.map((t,r)=>`(${r+1}) ${t}`).join(" "),n=ge.create("invalid-analytics-context",{errorInfo:e});le.warn(n.message)}}function vh(i,e,n){_h();let t=i.options.appId;if(!t)throw ge.create("no-app-id");if(!i.options.apiKey)if(i.options.measurementId)le.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${i.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw ge.create("no-api-key");if(Yt[t]!=null)throw ge.create("already-exists",{id:t});if(!el){Jp(Jr);let{wrappedGtag:o,gtagCore:s}=th(Yt,Jc,Xc,Jr,gh);ro=o,Zc=s,el=!0}return Yt[t]=fh(i,Jc,Xc,e,Zc,Jr,n),new io(i)}function sl(i=Xe()){i=ee(i);let e=ft(i,Nn);return e.isInitialized()?e.getImmediate():al(i)}function al(i,e={}){let n=ft(i,Nn);if(n.isInitialized()){let r=n.getImmediate();if(ur(e,n.getOptions()))return r;throw ge.create("already-initialized")}return n.initialize({options:e})}function cl(){return y(this,null,function*(){if(ai()||!ci()||!Je())return!1;try{return yield ht()}catch{return!1}})}function ll(i,e,n){i=ee(i),dh(ro,Yt[i.app.options.appId],e,n).catch(t=>le.error(t))}function oo(i,e,n,t){i=ee(i),uh(ro,Yt[i.app.options.appId],e,n,t).catch(r=>le.error(r))}var tl="@firebase/analytics",il="0.10.0";function yh(){ke(new Ee(Nn,(e,{options:n})=>{let t=e.getProvider("app").getImmediate(),r=e.getProvider("installations-internal").getImmediate();return vh(t,r,n)},"PUBLIC")),ke(new Ee("analytics-internal",i,"PRIVATE")),B(tl,il),B(tl,il,"esm2017");function i(e){try{let n=e.getProvider(Nn).getImmediate();return{logEvent:(t,r,o)=>oo(n,t,r,o)}}catch(n){throw ge.create("interop-component-reg-failed",{reason:n})}}}yh();var be=new bs("7.5.0"),so="__angularfire_symbol__analyticsIsSupportedValue",ao="__angularfire_symbol__analyticsIsSupported",ul="__angularfire_symbol__remoteConfigIsSupportedValue",dl="__angularfire_symbol__remoteConfigIsSupported",co="__angularfire_symbol__messagingIsSupportedValue",lo="__angularfire_symbol__messagingIsSupported";globalThis[ao]||(globalThis[ao]=cl().then(i=>globalThis[so]=i).catch(()=>globalThis[so]=!1));globalThis[lo]||(globalThis[lo]=Qr().then(i=>globalThis[co]=i).catch(()=>globalThis[co]=!1));globalThis[dl]||(globalThis[dl]=Rc().then(i=>globalThis[ul]=i).catch(()=>globalThis[ul]=!1));var pl=i=>`The APP_INITIALIZER that is "making" isSupported() sync for the sake of convenient DI has not resolved in this
context. Rather than injecting ${i} in the constructor, first ensure that ${i} is supported by calling
\`await isSupported()\`, then retrieve the instance from the injector manually \`injector.get(${i})\`.`,xi={async:()=>globalThis[lo],sync:()=>{let i=globalThis[co];if(i===void 0)throw new Error(pl("Messaging"));return i}};var Ti={async:()=>globalThis[ao],sync:()=>{let i=globalThis[so];if(i===void 0)throw new Error(pl("Analytics"));return i}};function It(i,e,n){if(e){if(e.length===1)return e[0];let o=e.filter(s=>s.app===n);if(o.length===1)return o[0]}return n.container.getProvider(i).getImmediate({optional:!0})}var Ct=(i,e)=>{let n=e?[e]:tn(),t=[];return n.forEach(r=>{r.container.getProvider(i).instances.forEach(s=>{t.includes(s)||t.push(s)})}),t};function Qt(){}var Mn=class{constructor(e,n=es){this.zone=e,this.delegate=n}now(){return this.delegate.now()}schedule(e,n,t){let r=this.zone,o=function(s){r.runGuarded(()=>{e.apply(this,[s])})};return this.delegate.schedule(o,n,t)}},uo=class{constructor(e){this.zone=e,this.task=null}call(e,n){let t=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Qt,{},Qt,Qt)),n.pipe(cs({next:t,complete:t,error:t})).subscribe(e).add(t)}unscheduleTask(){setTimeout(()=>{this.task!=null&&this.task.state==="scheduled"&&(this.task.invoke(),this.task=null)},10)}},je=(()=>{class i{constructor(n){this.ngZone=n,this.outsideAngular=n.runOutsideAngular(()=>new Mn(Zone.current)),this.insideAngular=n.run(()=>new Mn(Zone.current,Zo)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return i.\u0275fac=function(n){return new(n||i)(w(Z))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ki(){let i=globalThis.\u0275AngularFireScheduler;if(!i)throw new Error(`Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using
provideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).`);return i}function Sh(i){return ki().ngZone.runOutsideAngular(()=>i())}function bt(i){return ki().ngZone.run(()=>i())}function bh(i){let e=ki();return Ih(ki())(i)}function Ih(i){return function(n){return n=n.lift(new uo(i.ngZone)),n.pipe(sr(i.outsideAngular),or(i.insideAngular))}}var Ch=(i,e)=>function(){let t=arguments;return e&&setTimeout(()=>{e.state==="scheduled"&&e.invoke()},10),bt(()=>i.apply(void 0,t))},ue=(i,e)=>function(){let n,t=arguments;for(let o=0;o<arguments.length;o++)typeof t[o]=="function"&&(e&&(n||(n=bt(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Qt,{},Qt,Qt)))),t[o]=Ch(t[o],n));let r=Sh(()=>i.apply(this,t));if(!e)if(r instanceof Ie){let o=ki();return r.pipe(sr(o.outsideAngular),or(o.insideAngular))}else return bt(()=>r);return r instanceof Ie?r.pipe(bh):r instanceof Promise?bt(()=>new Promise((o,s)=>r.then(a=>bt(()=>o(a)),a=>bt(()=>s(a))))):typeof r=="function"&&n?function(){return setTimeout(()=>{n&&n.state==="scheduled"&&n.invoke()},10),r.apply(this,arguments)}:bt(()=>r)};var Te=class{constructor(e){return e}},Ge=class{constructor(){return tn()}};function wh(i){return i&&i.length===1?i[0]:new Te(Xe())}var po=new H("angularfire2._apps"),Eh={provide:Te,useFactory:wh,deps:[[new ye,po]]},kh={provide:Ge,deps:[[new ye,po]]};function xh(i){return(e,n)=>{let t=e.runOutsideAngular(()=>i(n));return new Te(t)}}var Th=(()=>{class i{constructor(n){B("angularfire",be.full,"core"),B("angularfire",be.full,"app"),B("angular",Is.full,n.toString())}}return i.\u0275fac=function(n){return new(n||i)(w(lt))},i.\u0275mod=X({type:i}),i.\u0275inj=J({providers:[Eh,kh]}),i})();function hl(i,...e){return{ngModule:Th,providers:[{provide:po,useFactory:xh(i),multi:!0,deps:[Z,Ce,je,...e]}]}}var ml=ue(Ls,!0);Q();Q();function Il(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}var Cl=Il,wl=new Ne("auth","Firebase",Il());var Fn=new Ft("@firebase/auth");function Ph(i,...e){Fn.logLevel<=ui.WARN&&Fn.warn(`Auth (${Dt}): ${i}`,...e)}function Ln(i,...e){Fn.logLevel<=ui.ERROR&&Fn.error(`Auth (${Dt}): ${i}`,...e)}function fl(i,...e){throw wo(i,...e)}function Co(i,...e){return wo(i,...e)}function Ah(i,e,n){let t=Object.assign(Object.assign({},Cl()),{[e]:n});return new Ne("auth","Firebase",t).create(e,{appName:i.name})}function wo(i,...e){if(typeof i!="string"){let n=e[0],t=[...e.slice(1)];return t[0]&&(t[0].appName=i.name),i._errorFactory.create(n,...t)}return wl.create(i,...e)}function D(i,e,...n){if(!i)throw wo(e,...n)}function Pi(i){let e="INTERNAL ASSERTION FAILED: "+i;throw Ln(e),new Error(e)}function Dn(i,e){i||Pi(e)}function Oh(){return gl()==="http:"||gl()==="https:"}function gl(){var i;return typeof self<"u"&&((i=self.location)===null||i===void 0?void 0:i.protocol)||null}function Rh(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(Oh()||ai()||"connection"in navigator)?navigator.onLine:!0}function Nh(){if(typeof navigator>"u")return null;let i=navigator;return i.languages&&i.languages[0]||i.language||null}var Et=class{constructor(e,n){this.shortDelay=e,this.longDelay=n,Dn(n>e,"Short delay should be less than long delay!"),this.isMobile=Ns()||Ms()}get(){return Rh()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function Mh(i,e){Dn(i.emulator,"Emulator should always be set here");let{url:n}=i.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}var Bn=class{static initialize(e,n,t){this.fetchImpl=e,n&&(this.headersImpl=n),t&&(this.responseImpl=t)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;Pi("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;Pi("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;Pi("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}};var Uh={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};var Lh=new Et(3e4,6e4);function Fh(i,e){return i.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:i.tenantId}):e}function Eo(o,s,a,u){return y(this,arguments,function*(i,e,n,t,r={}){return El(i,r,()=>y(this,null,function*(){let h={},m={};t&&(e==="GET"?m=t:h={body:JSON.stringify(t)});let S=dr(Object.assign({key:i.config.apiKey},m)).slice(1),v=yield i._getAdditionalHeaders();return v["Content-Type"]="application/json",i.languageCode&&(v["X-Firebase-Locale"]=i.languageCode),Bn.fetch()(kl(i,i.config.apiHost,n,S),Object.assign({method:e,headers:v,referrerPolicy:"no-referrer"},h))}))})}function El(i,e,n){return y(this,null,function*(){i._canInitEmulator=!1;let t=Object.assign(Object.assign({},Uh),e);try{let r=new fo(i),o=yield Promise.race([n(),r.promise]);r.clearNetworkTimeout();let s=yield o.json();if("needConfirmation"in s)throw Un(i,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{let a=o.ok?s.errorMessage:s.error.message,[u,h]=a.split(" : ");if(u==="FEDERATED_USER_ID_ALREADY_LINKED")throw Un(i,"credential-already-in-use",s);if(u==="EMAIL_EXISTS")throw Un(i,"email-already-in-use",s);if(u==="USER_DISABLED")throw Un(i,"user-disabled",s);let m=t[u]||u.toLowerCase().replace(/[_\s]+/g,"-");if(h)throw Ah(i,m,h);fl(i,m)}}catch(r){if(r instanceof mt)throw r;fl(i,"network-request-failed",{message:String(r)})}})}function kl(i,e,n,t){let r=`${e}${n}?${t}`;return i.config.emulator?Mh(i.config,r):`${i.config.apiScheme}://${r}`}var fo=class{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,t)=>{this.timer=setTimeout(()=>t(Co(this.auth,"network-request-failed")),Lh.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}};function Un(i,e,n){let t={appName:i.name};n.email&&(t.email=n.email),n.phoneNumber&&(t.phoneNumber=n.phoneNumber);let r=Co(i,e,t);return r.customData._tokenResponse=n,r}function Dh(i,e){return y(this,null,function*(){return Eo(i,"POST","/v1/accounts:delete",e)})}function Bh(i,e){return y(this,null,function*(){return Eo(i,"POST","/v1/accounts:lookup",e)})}function Ai(i){if(i)try{let e=new Date(Number(i));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function ko(i,e=!1){return y(this,null,function*(){let n=ee(i),t=yield n.getIdToken(e),r=xl(t);D(r&&r.exp&&r.auth_time&&r.iat,n.auth,"internal-error");let o=typeof r.firebase=="object"?r.firebase:void 0,s=o?.sign_in_provider;return{claims:r,token:t,authTime:Ai(ho(r.auth_time)),issuedAtTime:Ai(ho(r.iat)),expirationTime:Ai(ho(r.exp)),signInProvider:s||null,signInSecondFactor:o?.sign_in_second_factor||null}})}function ho(i){return Number(i)*1e3}function xl(i){let[e,n,t]=i.split(".");if(e===void 0||n===void 0||t===void 0)return Ln("JWT malformed, contained fewer than 3 sections"),null;try{let r=Os(n);return r?JSON.parse(r):(Ln("Failed to decode base64 JWT payload"),null)}catch(r){return Ln("Caught error parsing JWT payload as JSON",r?.toString()),null}}function Vh(i){let e=xl(i);return D(e,"internal-error"),D(typeof e.exp<"u","internal-error"),D(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}function go(i,e,n=!1){return y(this,null,function*(){if(n)return e;try{return yield e}catch(t){throw t instanceof mt&&qh(t)&&i.auth.currentUser===i&&(yield i.auth.signOut()),t}})}function qh({code:i}){return i==="auth/user-disabled"||i==="auth/user-token-expired"}var _o=class{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){let t=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),t}else{this.errorBackoff=3e4;let r=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){if(!this.isRunning)return;let n=this.getInterval(e);this.timerId=setTimeout(()=>y(this,null,function*(){yield this.iteration()}),n)}iteration(){return y(this,null,function*(){try{yield this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()})}};var Vn=class{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Ai(this.lastLoginAt),this.creationTime=Ai(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};function qn(i){return y(this,null,function*(){var e;let n=i.auth,t=yield i.getIdToken(),r=yield go(i,Bh(n,{idToken:t}));D(r?.users.length,n,"internal-error");let o=r.users[0];i._notifyReloadListener(o);let s=!((e=o.providerUserInfo)===null||e===void 0)&&e.length?jh(o.providerUserInfo):[],a=zh(i.providerData,s),u=i.isAnonymous,h=!(i.email&&o.passwordHash)&&!a?.length,m=u?h:!1,S={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new Vn(o.createdAt,o.lastLoginAt),isAnonymous:m};Object.assign(i,S)})}function xo(i){return y(this,null,function*(){let e=ee(i);yield qn(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})}function zh(i,e){return[...i.filter(t=>!e.some(r=>r.providerId===t.providerId)),...e]}function jh(i){return i.map(e=>{var{providerId:n}=e,t=ei(e,["providerId"]);return{providerId:n,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}})}function Gh(i,e){return y(this,null,function*(){let n=yield El(i,{},()=>y(this,null,function*(){let t=dr({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:r,apiKey:o}=i.config,s=kl(i,r,"/v1/token",`key=${o}`),a=yield i._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",Bn.fetch()(s,{method:"POST",headers:a,body:t})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}})}var zn=class i{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){D(e.idToken,"internal-error"),D(typeof e.idToken<"u","internal-error"),D(typeof e.refreshToken<"u","internal-error");let n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):Vh(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}getToken(e,n=!1){return y(this,null,function*(){return D(!this.accessToken||this.refreshToken,e,"user-token-expired"),!n&&this.accessToken&&!this.isExpired?this.accessToken:this.refreshToken?(yield this.refresh(e,this.refreshToken),this.accessToken):null})}clearRefreshToken(){this.refreshToken=null}refresh(e,n){return y(this,null,function*(){let{accessToken:t,refreshToken:r,expiresIn:o}=yield Gh(e,n);this.updateTokensAndExpiration(t,r,Number(o))})}updateTokensAndExpiration(e,n,t){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+t*1e3}static fromJSON(e,n){let{refreshToken:t,accessToken:r,expirationTime:o}=n,s=new i;return t&&(D(typeof t=="string","internal-error",{appName:e}),s.refreshToken=t),r&&(D(typeof r=="string","internal-error",{appName:e}),s.accessToken=r),o&&(D(typeof o=="number","internal-error",{appName:e}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new i,this.toJSON())}_performRefresh(){return Pi("not implemented")}};function tt(i,e){D(typeof i=="string"||typeof i>"u","internal-error",{appName:e})}var jn=class i{constructor(e){var{uid:n,auth:t,stsTokenManager:r}=e,o=ei(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new _o(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=t,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new Vn(o.createdAt||void 0,o.lastLoginAt||void 0)}getIdToken(e){return y(this,null,function*(){let n=yield go(this,this.stsTokenManager.getToken(this.auth,e));return D(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,yield this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n})}getIdTokenResult(e){return ko(this,e)}reload(){return xo(this)}_assign(e){this!==e&&(D(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let n=new i(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){D(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e,n=!1){return y(this,null,function*(){let t=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),t=!0),n&&(yield qn(this)),yield this.auth._persistUserIfCurrent(this),t&&this.auth._notifyListenersIfCurrent(this)})}delete(){return y(this,null,function*(){let e=yield this.getIdToken();return yield go(this,Dh(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()})}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var t,r,o,s,a,u,h,m;let S=(t=n.displayName)!==null&&t!==void 0?t:void 0,v=(r=n.email)!==null&&r!==void 0?r:void 0,_=(o=n.phoneNumber)!==null&&o!==void 0?o:void 0,b=(s=n.photoURL)!==null&&s!==void 0?s:void 0,E=(a=n.tenantId)!==null&&a!==void 0?a:void 0,I=(u=n._redirectEventId)!==null&&u!==void 0?u:void 0,g=(h=n.createdAt)!==null&&h!==void 0?h:void 0,f=(m=n.lastLoginAt)!==null&&m!==void 0?m:void 0,{uid:l,emailVerified:c,isAnonymous:p,providerData:d,stsTokenManager:V}=n;D(l&&V,e,"internal-error");let N=zn.fromJSON(this.name,V);D(typeof l=="string",e,"internal-error"),tt(S,e.name),tt(v,e.name),D(typeof c=="boolean",e,"internal-error"),D(typeof p=="boolean",e,"internal-error"),tt(_,e.name),tt(b,e.name),tt(E,e.name),tt(I,e.name),tt(g,e.name),tt(f,e.name);let F=new i({uid:l,auth:e,email:v,emailVerified:c,displayName:S,isAnonymous:p,photoURL:b,phoneNumber:_,tenantId:E,stsTokenManager:N,createdAt:g,lastLoginAt:f});return d&&Array.isArray(d)&&(F.providerData=d.map(M=>Object.assign({},M))),I&&(F._redirectEventId=I),F}static _fromIdTokenResponse(e,n,t=!1){return y(this,null,function*(){let r=new zn;r.updateFromServerResponse(n);let o=new i({uid:n.localId,auth:e,stsTokenManager:r,isAnonymous:t});return yield qn(o),o})}};var _l=new Map;function wt(i){Dn(i instanceof Function,"Expected a class definition");let e=_l.get(i);return e?(Dn(e instanceof i,"Instance stored in cache mismatched with class"),e):(e=new i,_l.set(i,e),e)}var $h=(()=>{class i{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return y(this,null,function*(){return!0})}_set(n,t){return y(this,null,function*(){this.storage[n]=t})}_get(n){return y(this,null,function*(){let t=this.storage[n];return t===void 0?null:t})}_remove(n){return y(this,null,function*(){delete this.storage[n]})}_addListener(n,t){}_removeListener(n,t){}}return i.type="NONE",i})(),vo=$h;function mo(i,e,n){return`firebase:${i}:${e}:${n}`}var Gn=class i{constructor(e,n,t){this.persistence=e,this.auth=n,this.userKey=t;let{config:r,name:o}=this.auth;this.fullUserKey=mo(this.userKey,r.apiKey,o),this.fullPersistenceKey=mo("persistence",r.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){return y(this,null,function*(){let e=yield this.persistence._get(this.fullUserKey);return e?jn._fromJSON(this.auth,e):null})}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){return y(this,null,function*(){if(this.persistence===e)return;let n=yield this.getCurrentUser();if(yield this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)})}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,n,t="authUser"){return y(this,null,function*(){if(!n.length)return new i(wt(vo),e,t);let r=(yield Promise.all(n.map(h=>y(this,null,function*(){if(yield h._isAvailable())return h})))).filter(h=>h),o=r[0]||wt(vo),s=mo(t,e.config.apiKey,e.name),a=null;for(let h of n)try{let m=yield h._get(s);if(m){let S=jn._fromJSON(e,m);h!==o&&(a=S),o=h;break}}catch{}let u=r.filter(h=>h._shouldAllowMigration);return!o._shouldAllowMigration||!u.length?new i(o,e,t):(o=u[0],a&&(yield o._set(s,a.toJSON())),yield Promise.all(n.map(h=>y(this,null,function*(){if(h!==o)try{yield h._remove(s)}catch{}}))),new i(o,e,t))})}};function vl(i){let e=i.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(Yh(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(Wh(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(Jh(e))return"Blackberry";if(Xh(e))return"Webos";if(Hh(e))return"Safari";if((e.includes("chrome/")||Kh(e))&&!e.includes("edge/"))return"Chrome";if(Qh(e))return"Android";{let n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,t=i.match(n);if(t?.length===2)return t[1]}return"Other"}function Wh(i=Re()){return/firefox\//i.test(i)}function Hh(i=Re()){let e=i.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Kh(i=Re()){return/crios\//i.test(i)}function Yh(i=Re()){return/iemobile/i.test(i)}function Qh(i=Re()){return/android/i.test(i)}function Jh(i=Re()){return/blackberry/i.test(i)}function Xh(i=Re()){return/webos/i.test(i)}function Tl(i,e=[]){let n;switch(i){case"Browser":n=vl(Re());break;case"Worker":n=`${vl(Re())}-${i}`;break;default:n=i}let t=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Dt}/${t}`}function Pl(i,e){return y(this,null,function*(){return Eo(i,"GET","/v2/recaptchaConfig",Fh(i,e))})}function yl(i){return i!==void 0&&i.enterprise!==void 0}var $n=class{constructor(e){if(this.siteKey="",this.emailPasswordEnabled=!1,e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.emailPasswordEnabled=e.recaptchaEnforcementState.some(n=>n.provider==="EMAIL_PASSWORD_PROVIDER"&&n.enforcementState!=="OFF")}};function Zh(){var i,e;return(e=(i=document.getElementsByTagName("head"))===null||i===void 0?void 0:i[0])!==null&&e!==void 0?e:document}function em(i){return new Promise((e,n)=>{let t=document.createElement("script");t.setAttribute("src",i),t.onload=e,t.onerror=r=>{let o=Co("internal-error");o.customData=r,n(o)},t.type="text/javascript",t.charset="UTF-8",Zh().appendChild(t)})}function tm(i){return`__${i}${Math.floor(Math.random()*1e6)}`}var im="https://www.google.com/recaptcha/enterprise.js?render=",nm="recaptcha-enterprise",rm="NO_RECAPTCHA",yo=class{constructor(e){this.type=nm,this.auth=Al(e)}verify(e="verify",n=!1){return y(this,null,function*(){function t(o){return y(this,null,function*(){if(!n){if(o.tenantId==null&&o._agentRecaptchaConfig!=null)return o._agentRecaptchaConfig.siteKey;if(o.tenantId!=null&&o._tenantRecaptchaConfigs[o.tenantId]!==void 0)return o._tenantRecaptchaConfigs[o.tenantId].siteKey}return new Promise((s,a)=>y(this,null,function*(){Pl(o,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(u=>{if(u.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{let h=new $n(u);return o.tenantId==null?o._agentRecaptchaConfig=h:o._tenantRecaptchaConfigs[o.tenantId]=h,s(h.siteKey)}}).catch(u=>{a(u)})}))})}function r(o,s,a){let u=window.grecaptcha;yl(u)?u.enterprise.ready(()=>{u.enterprise.execute(o,{action:e}).then(h=>{s(h)}).catch(()=>{s(rm)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((o,s)=>{t(this.auth).then(a=>{if(!n&&yl(window.grecaptcha))r(a,o,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}em(im+a).then(()=>{r(a,o,s)}).catch(u=>{s(u)})}}).catch(a=>{s(a)})})})}};var So=class{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){let t=o=>new Promise((s,a)=>{try{let u=e(o);s(u)}catch(u){a(u)}});t.onAbort=n,this.queue.push(t);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}runMiddleware(e){return y(this,null,function*(){if(this.auth.currentUser===e)return;let n=[];try{for(let t of this.queue)yield t(e),t.onAbort&&n.push(t.onAbort)}catch(t){n.reverse();for(let r of n)try{r()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:t?.message})}})}};var bo=class{constructor(e,n,t,r){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=t,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Wn(this),this.idTokenSubscription=new Wn(this),this.beforeStateQueue=new So(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=wl,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=wt(n)),this._initializationPromise=this.queue(()=>y(this,null,function*(){var t,r;if(!this._deleted&&(this.persistenceManager=yield Gn.create(this,e),!this._deleted)){if(!((t=this._popupRedirectResolver)===null||t===void 0)&&t._shouldInitProactively)try{yield this._popupRedirectResolver._initialize(this)}catch{}yield this.initializeCurrentUser(n),this.lastNotifiedUid=((r=this.currentUser)===null||r===void 0?void 0:r.uid)||null,!this._deleted&&(this._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){return y(this,null,function*(){if(this._deleted)return;let e=yield this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),yield this.currentUser.getIdToken();return}yield this._updateCurrentUser(e,!0)}})}initializeCurrentUser(e){return y(this,null,function*(){var n;let t=yield this.assertedPersistence.getCurrentUser(),r=t,o=!1;if(e&&this.config.authDomain){yield this.getOrInitRedirectPersistenceManager();let s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=r?._redirectEventId,u=yield this.tryRedirectSignIn(e);(!s||s===a)&&u?.user&&(r=u.user,o=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(o)try{yield this.beforeStateQueue.runMiddleware(r)}catch(s){r=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return D(this._popupRedirectResolver,this,"argument-error"),yield this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)})}tryRedirectSignIn(e){return y(this,null,function*(){let n=null;try{n=yield this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{yield this._setRedirectUser(null)}return n})}reloadAndSetCurrentUserOrClear(e){return y(this,null,function*(){try{yield qn(e)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)})}useDeviceLanguage(){this.languageCode=Nh()}_delete(){return y(this,null,function*(){this._deleted=!0})}updateCurrentUser(e){return y(this,null,function*(){let n=e?ee(e):null;return n&&D(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))})}_updateCurrentUser(e,n=!1){return y(this,null,function*(){if(!this._deleted)return e&&D(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||(yield this.beforeStateQueue.runMiddleware(e)),this.queue(()=>y(this,null,function*(){yield this.directlySetCurrentUser(e),this.notifyAuthListeners()}))})}signOut(){return y(this,null,function*(){return yield this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&(yield this._setRedirectUser(null)),this._updateCurrentUser(null,!0)})}setPersistence(e){return this.queue(()=>y(this,null,function*(){yield this.assertedPersistence.setPersistence(wt(e))}))}initializeRecaptchaConfig(){return y(this,null,function*(){let e=yield Pl(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),n=new $n(e);this.tenantId==null?this._agentRecaptchaConfig=n:this._tenantRecaptchaConfigs[this.tenantId]=n,n.emailPasswordEnabled&&new yo(this).verify()})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new Ne("auth","Firebase",e())}onAuthStateChanged(e,n,t){return this.registerStateListener(this.authStateSubscription,e,n,t)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,t){return this.registerStateListener(this.idTokenSubscription,e,n,t)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}_setRedirectUser(e,n){return y(this,null,function*(){let t=yield this.getOrInitRedirectPersistenceManager(n);return e===null?t.removeCurrentUser():t.setCurrentUser(e)})}getOrInitRedirectPersistenceManager(e){return y(this,null,function*(){if(!this.redirectPersistenceManager){let n=e&&wt(e)||this._popupRedirectResolver;D(n,this,"argument-error"),this.redirectPersistenceManager=yield Gn.create(this,[wt(n._redirectPersistence)],"redirectUser"),this.redirectUser=yield this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager})}_redirectUserForId(e){return y(this,null,function*(){var n,t;return this._isInitialized&&(yield this.queue(()=>y(this,null,function*(){}))),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((t=this.redirectUser)===null||t===void 0?void 0:t._redirectEventId)===e?this.redirectUser:null})}_persistUserIfCurrent(e){return y(this,null,function*(){if(e===this.currentUser)return this.queue(()=>y(this,null,function*(){return this.directlySetCurrentUser(e)}))})}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let t=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==t&&(this.lastNotifiedUid=t,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,t,r){if(this._deleted)return()=>{};let o=typeof n=="function"?n:n.next.bind(n),s=this._isInitialized?Promise.resolve():this._initializationPromise;return D(s,this,"internal-error"),s.then(()=>o(this.currentUser)),typeof n=="function"?e.addObserver(n,t,r):e.addObserver(n)}directlySetCurrentUser(e){return y(this,null,function*(){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?yield this.assertedPersistence.setCurrentUser(e):yield this.assertedPersistence.removeCurrentUser()})}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return D(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Tl(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){return y(this,null,function*(){var e;let n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);let t=yield(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader();t&&(n["X-Firebase-Client"]=t);let r=yield this._getAppCheckToken();return r&&(n["X-Firebase-AppCheck"]=r),n})}_getAppCheckToken(){return y(this,null,function*(){var e;let n=yield(e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken();return n?.error&&Ph(`Error while retrieving App Check token: ${n.error}`),n?.token})}};function Al(i){return ee(i)}var Wn=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=Us(n=>this.observer=n)}get next(){return D(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}};function om(i,e){let n=e?.persistence||[],t=(Array.isArray(n)?n:[n]).map(wt);e?.errorMap&&i._updateErrorMap(e.errorMap),i._initializeWithPersistence(t,e?.popupRedirectResolver)}function Hn(i,e,n,t){return ee(i).onAuthStateChanged(e,n,t)}var xy=tm("rcb"),Ty=new Et(3e4,6e4);var Py=new Et(2e3,1e4);var Ay=10*60*1e3;var Oy=new Et(3e4,6e4);var Ry=new Et(5e3,15e3);var Ny=encodeURIComponent("fac");var Sl="@firebase/auth",bl="0.23.2";var Io=class{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}getToken(e){return y(this,null,function*(){return this.assertAuthConfigured(),yield this.auth._initializationPromise,this.auth.currentUser?{accessToken:yield this.auth.currentUser.getIdToken(e)}:null})}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let n=this.auth.onIdTokenChanged(t=>{e(t?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){D(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function sm(i){switch(i){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function am(i){ke(new Ee("auth",(e,{options:n})=>{let t=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=t.options;D(s&&!s.includes(":"),"invalid-api-key",{appName:t.name});let u={apiKey:s,authDomain:a,clientPlatform:i,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Tl(i)},h=new bo(t,r,o,u);return om(h,n),h},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,t)=>{e.getProvider("auth-internal").initialize()})),ke(new Ee("auth-internal",e=>{let n=Al(e.getProvider("auth").getImmediate());return(t=>new Io(t))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),B(Sl,bl,sm(i)),B(Sl,bl,"esm2017")}var cm=5*60,My=Rs("authIdTokenMaxAge")||cm;am("Browser");function Nl(i){return new Ie(function(e){var n=Hn(i,e.next.bind(e),e.error.bind(e),e.complete.bind(e));return{unsubscribe:n}})}var Kn=class{constructor(e){return e}};var Ml=ue(Nl,!0);var $e=class{constructor(e){return e}},Fl="analytics",Po=class{constructor(){return Ct(Fl)}};var Dl=Ti.async,Bl=ue(sl,!0);var Oo=ue(oo,!0);var Ro=ue(ll,!0);var Vl=(()=>{class i{constructor(n,t,r){this.disposables=[],B("angularfire",be.full,"user-tracking");let o;this.initialized=t.runOutsideAngular(()=>new Promise(s=>{o=s})),Dl().then(()=>{let s=r.get($e);s?this.disposables=[Ml(n).subscribe(a=>{Ro(s,a?.uid),o()})]:o()})}ngOnDestroy(){this.disposables.forEach(n=>n.unsubscribe())}}return i.\u0275fac=function(n){return new(n||i)(w(Kn),w(Z),w(Ce))},i.\u0275prov=R({token:i,factory:i.\u0275fac}),i})(),nf="firebase_event_origin",rf="firebase_previous_class",of="firebase_previous_id",sf="firebase_previous_screen",af="firebase_screen_class",Ul="firebase_screen_id",cf="firebase_screen",Ao="outlet",lf="page_path",uf="page_title",Oi="screen_class",Ll="screen_name",df="screen_view",pf="auto",hf="#",mf=Math.floor(Math.random()*(Math.pow(2,32)-1))-Math.pow(2,31),To={},ff=i=>{let e=[i[Oi],i[Ao]].join(hf);if(To.hasOwnProperty(e))return To[e];{let n=mf++;return To[e]=n,n}},gf=(i,e,n)=>i.events.pipe(ni(r=>r instanceof Fs)).pipe(ct(r=>{var o;let a=((o=i.parseUrl(i.url.replace(/(?:\().+(?:\))/g,_=>_.replace("://",":///"))).root.children[r.snapshot.outlet])===null||o===void 0?void 0:o.toString())||"",u=i.routerState.root.children.map(_=>_).find(_=>_.outlet===r.snapshot.outlet);if(!u)return ve(null);let h=u;for(;h.firstChild;)h=h.firstChild;let m=h.pathFromRoot.map(_=>{var b;return(b=_.routeConfig)===null||b===void 0?void 0:b.path}).filter(_=>_).join("/")||"/",S={[Ll]:m,[lf]:`/${a}`,[nf]:pf,[cf]:m,[Ao]:r.snapshot.outlet};e&&(S[uf]=e.getTitle());let v=u.component;if(v){if(v===Ds){let _=r.snapshot;for(;_.firstChild;)_=_.firstChild;v=_.component}}else v=r.snapshot.component;if(typeof v=="string")return ve(Object.assign(Object.assign({},S),{[Oi]:v}));if(v){let _=n.resolveComponentFactory(v);return ve(Object.assign(Object.assign({},S),{[Oi]:_.selector}))}return ve(null)}),ni(r=>!!r),ti(r=>Object.assign({[af]:r[Oi],[Ul]:ff(r)},r)),ns(r=>r[Ao]),ii(r=>r.pipe(is((o,s)=>JSON.stringify(o)===JSON.stringify(s)),ss(void 0),rs(),ti(([o,s])=>o?Object.assign({[rf]:o[Oi],[sf]:o[Ll],[of]:o[Ul]},s):s)))),_f=(()=>{class i{constructor(n,t,r,o,s,a){B("angularfire",be.full,"screen-tracking"),Dl().then(()=>{let u=a.get($e);!n||!u||o.runOutsideAngular(()=>{this.disposable=gf(n,t,r).pipe(ct(h=>k(this,void 0,void 0,function*(){return s&&(yield s.initialized),Oo(u,df,h)}))).subscribe()})})}ngOnDestroy(){this.disposable&&this.disposable.unsubscribe()}}return i.\u0275fac=function(n){return new(n||i)(w(Bs,8),w(Ps,8),w(fs),w(Z),w(Vl,8),w(Ce))},i.\u0275prov=R({token:i,factory:i.\u0275fac}),i})(),No=new H("angularfire2.analytics-instances");function vf(i,e){if(!Ti.sync())return null;let n=It(Fl,i,e);return n&&new $e(n)}function yf(i){return(e,n)=>{if(!Ti.sync())return null;let t=e.runOutsideAngular(()=>i(n));return new $e(t)}}var Sf={provide:Po,deps:[[new ye,No]]},bf={provide:$e,useFactory:vf,deps:[[new ye,No],Te]},If=(()=>{class i{constructor(n,t){B("angularfire",be.full,"analytics")}}return i.\u0275fac=function(n){return new(n||i)(w(_f,8),w(Vl,8))},i.\u0275mod=X({type:i}),i.\u0275inj=J({providers:[bf,Sf,{provide:Xi,useValue:Ti.async,multi:!0}]}),i})();function ql(i,...e){return{ngModule:If,providers:[{provide:No,useFactory:yf(i),multi:!0,deps:[Z,Ce,je,Ge,...e]}]}}var Ri=class{constructor(e){return e}},zl="messaging",Mo=class{constructor(){return Ct(zl)}};var Uo=new H("angularfire2.messaging-instances");function wf(i,e){if(!xi.sync())return null;let n=It(zl,i,e);return n&&new Ri(n)}function Ef(i){return(e,n)=>{if(!xi.sync())return null;let t=e.runOutsideAngular(()=>i(n));return new Ri(t)}}var kf={provide:Mo,deps:[[new ye,Uo]]},xf={provide:Ri,useFactory:wf,deps:[[new ye,Uo],Te]},Tf=(()=>{class i{constructor(){B("angularfire",be.full,"fcm")}}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=X({type:i}),i.\u0275inj=J({providers:[xf,kf,{provide:Xi,useValue:xi.async,multi:!0}]}),i})();function jl(i,...e){return{ngModule:Tf,providers:[{provide:Uo,useFactory:Ef(i),multi:!0,deps:[Z,Ce,je,Ge,...e]}]}}var r1=xi.async,Gl=ue(Yc,!0),Jt=ue(Hc,!0),$l=ue(Kc,!0),Wl=ue(Qc,!1);var Ni=class{constructor(e){return e}},Hl="performance",Lo=class{constructor(){return Ct(Hl)}};var Fo=new H("angularfire2.performance-instances");function Pf(i,e,n){if(!oi(n))return null;let t=It(Hl,i,e);return t&&new Ni(t)}function Af(i){return(e,n,t)=>{if(!oi(n))return null;let r=e.runOutsideAngular(()=>i(t));return new Ni(r)}}var Of={provide:Lo,deps:[[new ye,Fo]]},Rf={provide:Ni,useFactory:Pf,deps:[[new ye,Fo],Te,lt]},Nf=(()=>{class i{constructor(){B("angularfire",be.full,"perf")}}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=X({type:i}),i.\u0275inj=J({providers:[Rf,Of]}),i})();function Kl(i,...e){return{ngModule:Nf,providers:[{provide:Fo,useFactory:Af(i),multi:!0,deps:[Z,lt,Ce,je,Ge,...e]}]}}var Yl=ue(Vs,!0);var w1=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=X({type:e}),e.\u0275inj=J({imports:[Zi,hl(()=>ml(qs)),ql(()=>Bl()),Kl(()=>Yl()),jl(()=>Jt())]});let i=e;return i})();var Ue=function(i){return i.success="success",i.fail="fail",i}(Ue||{}),Yn=function(i){return i.from_device="from_device",i}(Yn||{}),C=function(i){return i.login="login",i.sign_up="sign_up",i.select_content="select_content",i.exception="exception",i.button_click="button_click",i.sign_up_step_complete="sign_up_step_complete",i.quote_request_start="quote_request_start",i.quote_request_complete="quote_request_complete",i.contact_manufacturer="contact_manufacturer",i.order_load="order_load",i.quote_load="quote_load",i.checkout_init_payment="checkout_init_payment",i.checkout_finalize_payment="checkout_finalize_payment",i.update_account_information="update_account_information",i.change_password="change_password",i.quote_select_manufacturer="quote_select_manufacturer",i.quote_unselect_manufacturer="quote_unselect_manufacturer",i.instant_quote_form_sample_file_selected="iq_form_sample_file_selected",i.instant_quote_form_file_selected="iq_form_file_selected",i.instant_quote_form_file_deleted="iq_form_file_deleted",i.instant_quote_form_file_uploaded="iq_form_file_uploaded",i.instant_quote_form_settings_confirmed="iq_form_settings_confirmed",i.instant_quote_form_process_confirmed="iq_form_process_confirmed",i.instant_quote_form_material_confirmed="iq_form_material_confirmed",i.instant_quote_form_step3_confirmed="iq_form_step3_confirmed",i.instant_quote_form_express_manufacturer_selected="iq_form_express_manufacturer_selected",i.instant_quote_form_manual_manufacturer_selected="iq_form_manual_manufacturer_selected",i.instant_quote_form_checkout_selected="iq_form_checkout_selected",i.instant_quote_form_validated="iq_form_validated",i.step_1="on_step_one",i.step_2="on_step_two",i.step_3="on_step_three",i.step_4="on_step_four",i.step_5="on_step_five",i.email_entrance="email_inset",i.company_name_entrance="company_name_insert",i.zip_code_entrance="zip_code_insert",i.password_entrance="password_insert",i.confirm_password_entrance="confirm_password_insert",i}(C||{}),Mf=Object.values(C),Ql=Mf.filter(i=>i.length>40);Ql.length&&console.warn("[Firebase service]: these events have long names: "+Ql.join(", "));var Jl=(()=>{let e=class e{constructor(t){this.analytics=t}setFirebaseUserId(t){try{Ro(this.analytics,t)}catch(r){console.warn(r)}}logFirebaseEvent(t,r,o){try{Oo(this.analytics,t,r,o)}catch(s){console.warn(s)}}};e.\u0275fac=function(r){return new(r||e)(w($e))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();Q();Q();function it(i){return typeof i=="string"}function Qn(i){return typeof i=="number"}function kt(i){return typeof i=="function"}function Pe(i){return Object.prototype.toString.call(i).slice(8,-1).toLowerCase()==="object"}function Lf(i){var e,n,t,r=(t=(n=(e=i.userId)!==null&&e!==void 0?e:i.anonymousId)!==null&&n!==void 0?n:i.groupId)!==null&&t!==void 0?t:i.previousId;return it(r)}var Mi=function(i){Ae(e,i);function e(n,t){var r=i.call(this,t)||this;return r.field=n,r}return e}(Error);function Xt(i){var e,n=i&&i.event&&i.event.type,t=i.event;if(t===void 0)throw new Mi("event","Event is missing");if(!it(n))throw new Mi("event","Event is not a string");if(n==="track"&&!it(t.event))throw new Mi("event","Event is not a string");var r=(e=t.properties)!==null&&e!==void 0?e:t.traits;if(n!=="alias"&&!Pe(r))throw new Mi("properties","properties is not an object");if(!Lf(t))throw new Mi("userId","Missing userId or anonymousId");return i}var Xl={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:Xt,identify:Xt,page:Xt,alias:Xt,group:Xt,screen:Xt};function Zl(i,e,n,t){var r,o=[i,e,n,t],s=Pe(i)?i.event:i;if(!s||!it(s))throw new Error("Event missing");var a=Pe(i)?(r=i.properties)!==null&&r!==void 0?r:{}:Pe(e)?e:{},u={};kt(n)||(u=n??{}),Pe(i)&&!kt(e)&&(u=e??{});var h=o.find(kt);return[s,a,u,h]}function Do(i,e,n,t,r){var o,s,a=null,u=null,h=[i,e,n,t,r],m=h.filter(it);m[0]!==void 0&&m[1]!==void 0&&(a=m[0],u=m[1]),m.length===1&&(a=null,u=m[0]);var S=h.find(kt),v=h.filter(function(E){return u===null?Pe(E):Pe(E)||E===null}),_=(o=v[0])!==null&&o!==void 0?o:{},b=(s=v[1])!==null&&s!==void 0?s:{};return[a,u,_,b,S]}var Bo=function(i){return function(){for(var e,n,t,r,o,s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var u=null;u=(t=(e=s.find(it))!==null&&e!==void 0?e:(n=s.find(Qn))===null||n===void 0?void 0:n.toString())!==null&&t!==void 0?t:i.id();var h=s.filter(function(_){return u===null?Pe(_):Pe(_)||_===null}),m=(r=h[0])!==null&&r!==void 0?r:{},S=(o=h[1])!==null&&o!==void 0?o:{},v=s.find(kt);return[u,m,S,v]}};function eu(i,e,n,t){Qn(i)&&(i=i.toString()),Qn(e)&&(e=e.toString());var r=[i,e,n,t],o=r.filter(it),s=o[0],a=s===void 0?i:s,u=o[1],h=u===void 0?null:u,m=r.filter(Pe)[0],S=m===void 0?{}:m,v=r.find(kt);return[a,h,S,v]}Q();Q();function tu(i,e){var n={};return i.forEach(function(t){var r,o=void 0;if(typeof e=="string"){var s=t[e];o=typeof s!="string"?JSON.stringify(s):s}else e instanceof Function&&(o=e(t));o!==void 0&&(n[o]=_e(_e([],(r=n[o])!==null&&r!==void 0?r:[],!0),[t],!1))}),n}var iu=function(i){return typeof i=="object"&&i!==null&&"then"in i&&typeof i.then=="function"};var nu=function(){var i,e,n=0;return{done:function(){return i},run:function(t){var r=t();return iu(r)&&(++n===1&&(i=new Promise(function(o){return e=o})),r.finally(function(){return--n===0&&e()})),r}}};function ru(){return typeof window<"u"}function Ff(){return ru()?window.navigator.onLine:!0}function ou(){return!Ff()}var su=function(i){Ae(e,i);function e(n){var t=i.call(this)||this;return t.criticalTasks=nu(),t.plugins=[],t.failedInitializations=[],t.flushing=!1,t.queue=n,t.queue.on(Ea,function(){t.scheduleFlush(0)}),t}return e.prototype.register=function(n,t,r){return k(this,void 0,void 0,function(){var o=this;return x(this,function(s){switch(s.label){case 0:return[4,Promise.resolve(t.load(n,r)).then(function(){o.plugins.push(t)}).catch(function(a){if(t.type==="destination"){o.failedInitializations.push(t.name),console.warn(t.name,a),n.log("warn","Failed to load destination",{plugin:t.name,error:a});return}throw a})];case 1:return s.sent(),[2]}})})},e.prototype.deregister=function(n,t,r){return k(this,void 0,void 0,function(){var o;return x(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(n,r))]:[3,2];case 1:s.sent(),s.label=2;case 2:return this.plugins=this.plugins.filter(function(a){return a.name!==t.name}),[3,4];case 3:return o=s.sent(),n.log("warn","Failed to unload destination",{plugin:t.name,error:o}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(n){return k(this,void 0,void 0,function(){var t;return x(this,function(r){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.push(n),t=this.subscribeToDelivery(n),this.scheduleFlush(0),[2,t]})})},e.prototype.subscribeToDelivery=function(n){return k(this,void 0,void 0,function(){var t=this;return x(this,function(r){return[2,new Promise(function(o){var s=function(a,u){a.isSame(n)&&(t.off("flush",s),o(a))};t.on("flush",s)})]})})},e.prototype.dispatchSingle=function(n){return k(this,void 0,void 0,function(){var t=this;return x(this,function(r){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.updateAttempts(n),n.attempts=1,[2,this.deliver(n).catch(function(o){var s=t.enqueuRetry(o,n);return s?t.subscribeToDelivery(n):(n.setFailedDelivery({reason:o}),n)})]})})},e.prototype.isEmpty=function(){return this.queue.length===0},e.prototype.scheduleFlush=function(n){var t=this;n===void 0&&(n=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},n))},e.prototype.deliver=function(n){return k(this,void 0,void 0,function(){var t,r,o,s;return x(this,function(a){switch(a.label){case 0:return[4,this.criticalTasks.done()];case 1:a.sent(),t=Date.now(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.flushOne(n)];case 3:return n=a.sent(),r=Date.now()-t,this.emit("delivery_success",n),n.stats.gauge("delivered",r),n.log("debug","Delivered",n.event),[2,n];case 4:throw o=a.sent(),s=o,n.log("error","Failed to deliver",s),this.emit("delivery_failure",n,s),n.stats.increment("delivery_failed"),o;case 5:return[2]}})})},e.prototype.enqueuRetry=function(n,t){var r=!(n instanceof dn)||n.retry;return r?this.queue.pushWithBackoff(t):!1},e.prototype.flush=function(){return k(this,void 0,void 0,function(){var n,t,r;return x(this,function(o){switch(o.label){case 0:if(this.queue.length===0||ou())return[2,[]];if(n=this.queue.pop(),!n)return[2,[]];n.attempts=this.queue.getAttempts(n),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(n)];case 2:return n=o.sent(),this.emit("flush",n,!0),[3,4];case 3:return t=o.sent(),r=this.enqueuRetry(t,n),r||(n.setFailedDelivery({reason:t}),this.emit("flush",n,!1)),[2,[]];case 4:return[2,[n]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(n){var t=this.plugins.filter(function(_){var b,E,I;if(_.type!=="destination"&&_.name!=="Customer.io Data Pipelines")return!0;var g=void 0;return(b=_.alternativeNames)===null||b===void 0||b.forEach(function(f){n[f]!==void 0&&(g=n[f])}),(I=(E=n[_.name])!==null&&E!==void 0?E:g)!==null&&I!==void 0?I:(_.name==="Customer.io Data Pipelines"?!0:n.All)!==!1}),r=tu(t,"type"),o=r.before,s=o===void 0?[]:o,a=r.enrichment,u=a===void 0?[]:a,h=r.destination,m=h===void 0?[]:h,S=r.after,v=S===void 0?[]:S;return{before:s,enrichment:u,destinations:m,after:v}},e.prototype.flushOne=function(n){var t,r;return k(this,void 0,void 0,function(){var o,s,a,u,h,m,b,S,v,_,b,E,I,g,f;return x(this,function(l){switch(l.label){case 0:if(!this.isReady())throw new Error("Not ready");n.attempts>1&&this.emit("delivery_retry",n),o=this.availableExtensions((t=n.event.integrations)!==null&&t!==void 0?t:{}),s=o.before,a=o.enrichment,u=0,h=s,l.label=1;case 1:return u<h.length?(m=h[u],[4,xa(n,m)]):[3,4];case 2:b=l.sent(),b instanceof Sr&&(n=b),this.emit("message_enriched",n,m),l.label=3;case 3:return u++,[3,1];case 4:S=0,v=a,l.label=5;case 5:return S<v.length?(_=v[S],[4,qt(n,_)]):[3,8];case 6:b=l.sent(),b instanceof Sr&&(n=b),this.emit("message_enriched",n,_),l.label=7;case 7:return S++,[3,5];case 8:return E=this.availableExtensions((r=n.event.integrations)!==null&&r!==void 0?r:{}),I=E.destinations,g=E.after,[4,new Promise(function(c,p){setTimeout(function(){var d=I.map(function(V){return qt(n,V)});Promise.all(d).then(c).catch(p)},0)})];case 9:return l.sent(),n.stats.increment("message_delivered"),this.emit("message_delivered",n),f=g.map(function(c){return qt(n,c)}),[4,Promise.all(f)];case 10:return l.sent(),[2,n]}})})},e}(ln);Q();var Df=function(i,e){var n=Date.now()-i;return Math.max((e??300)-n,0)};function au(i,e,n,t){return k(this,void 0,void 0,function(){var r,o;return x(this,function(s){switch(s.label){case 0:return n.emit("dispatch_start",i),r=Date.now(),e.isEmpty()?[4,e.dispatchSingle(i)]:[3,2];case 1:return o=s.sent(),[3,4];case 2:return[4,e.dispatch(i)];case 3:o=s.sent(),s.label=4;case 4:return t?.callback?[4,wa(o,t.callback,Df(r,t.timeout))]:[3,6];case 5:o=s.sent(),s.label=6;case 6:return t?.debug&&o.flush(),[2,o]}})})}Q();var du=ld(uu()),pu=function(){function i(e){this.user=e}return i.prototype.track=function(e,n,t,r){return this.normalize(T(T({},this.baseEvent()),{event:e,type:"track",properties:n,options:T({},t),integrations:T({},r)}))},i.prototype.page=function(e,n,t,r,o){var s,a={type:"page",properties:T({},t),options:T({},r),integrations:T({},o)};return e!==null&&(a.category=e,a.properties=(s=a.properties)!==null&&s!==void 0?s:{},a.properties.category=e),n!==null&&(a.name=n),this.normalize(T(T({},this.baseEvent()),a))},i.prototype.screen=function(e,n,t,r,o){var s={type:"screen",properties:T({},t),options:T({},r),integrations:T({},o)};return e!==null&&(s.category=e),n!==null&&(s.name=n),this.normalize(T(T({},this.baseEvent()),s))},i.prototype.identify=function(e,n,t,r){return this.normalize(T(T({},this.baseEvent()),{type:"identify",userId:e,traits:n,options:T({},t),integrations:T({},r)}))},i.prototype.group=function(e,n,t,r){return this.normalize(T(T({},this.baseEvent()),{type:"group",traits:n,options:T({},t),integrations:T({},r),groupId:e}))},i.prototype.alias=function(e,n,t,r){var o={userId:e,type:"alias",options:T({},t),integrations:T({},r)};return n!==null&&(o.previousId=n),e===void 0?this.normalize(T(T({},o),this.baseEvent())):this.normalize(T(T({},this.baseEvent()),o))},i.prototype.baseEvent=function(){var e={integrations:{},options:{}},n=this.user;return n.id()&&(e.userId=n.id()),n.anonymousId()&&(e.anonymousId=n.anonymousId()),e},i.prototype.context=function(e){var n,t,r,o=["integrations","anonymousId","timestamp","userId"],s=(n=e.options)!==null&&n!==void 0?n:{};delete s.integrations;var a=Object.keys(s),u=(r=(t=e.options)===null||t===void 0?void 0:t.context)!==null&&r!==void 0?r:{},h={};return a.forEach(function(m){m!=="context"&&(o.includes(m)?yr(h,m,s[m]):yr(u,m,s[m]))}),[u,h]},i.prototype.normalize=function(e){var n,t,r;!((n=e.options)===null||n===void 0)&&n.anonymousId&&this.user.anonymousId(e.options.anonymousId);var o=Object.keys((t=e.integrations)!==null&&t!==void 0?t:{}).reduce(function(E,I){var g,f;return T(T({},E),(g={},g[I]=!!(!((f=e.integrations)===null||f===void 0)&&f[I]),g))},{}),s=T(T({},o),(r=e.options)===null||r===void 0?void 0:r.integrations),a=this.context(e),u=a[0],h=a[1],m=e.options,S=ei(e,["options"]),v=T(T(T({timestamp:new Date},S),{context:u,integrations:s}),h),_="ajs-next-"+du.default.hash(JSON.stringify(v)+ka()),b=T(T({},v),{messageId:_});return b},i}();Q();var hu=function(i){Ae(e,i);function e(n){return i.call(this,n??new jt(4,"event-queue"))||this}return e}(su);var nt="This is being deprecated and will be not be available in future releases of Analytics JS",Vo=pn(),qo=Vo?.analytics;function Bf(i,e){i===void 0&&(i=!1),e===void 0&&(e=!1);var n=i?4:1,t=e?new un(n,[]):new jt(n,"event-queue");return new hu(t)}function Le(){console.warn(nt)}var mu=function(i){Ae(e,i);function e(n,t,r,o,s){var a=this,u,h,m;a=i.call(this)||this,a._debug=!1,a.initialized=!1,a.user=function(){return a._user},a.init=a.initialize.bind(a),a.log=Le,a.addIntegrationMiddleware=Le,a.listeners=Le,a.addEventListener=Le,a.removeAllListeners=Le,a.removeListener=Le,a.removeEventListener=Le,a.hasListeners=Le,a.add=Le,a.addIntegration=Le;var S=t?.cookie,v=(u=t?.disableClientPersistence)!==null&&u!==void 0?u:!1;return a.settings=n,a.settings.timeout=(h=a.settings.timeout)!==null&&h!==void 0?h:300,a.queue=r??Bf(t?.retryQueue,v),a._universalStorage=new Pa(v?["memory"]:["localStorage","cookie","memory"],Aa(S)),a._user=o??new Oa(v?T(T({},t?.user),{persist:!1}):t?.user,S).load(),a._group=s??new Ra(v?T(T({},t?.group),{persist:!1}):t?.group,S).load(),a.eventFactory=new pu(a._user),a.integrations=(m=t?.integrations)!==null&&m!==void 0?m:{},a.options=t??{},Ta(a),a}return Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o,s,a,u,h,m=this;return x(this,function(S){return r=Zl.apply(void 0,n),o=r[0],s=r[1],a=r[2],u=r[3],h=this.eventFactory.track(o,s,a,this.integrations),[2,this._dispatch(h,u).then(function(v){return m.emit("track",o,v.event.properties,v.event.options),v})]})})},e.prototype.page=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o,s,a,u,h,m,S=this;return x(this,function(v){return r=Do.apply(void 0,n),o=r[0],s=r[1],a=r[2],u=r[3],h=r[4],m=this.eventFactory.page(o,s,a,u,this.integrations),[2,this._dispatch(m,h).then(function(_){return S.emit("page",o,s,_.event.properties,_.event.options),_})]})})},e.prototype.identify=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o,s,a,u,h,m=this;return x(this,function(S){return r=Bo(this._user).apply(void 0,n),o=r[0],s=r[1],a=r[2],u=r[3],this._user.identify(o,s),h=this.eventFactory.identify(this._user.id(),this._user.traits(),a,this.integrations),[2,this._dispatch(h,u).then(function(v){return m.emit("identify",v.event.userId,v.event.traits,v.event.options),v})]})})},e.prototype.group=function(){for(var n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length===0)return this._group;var o=Bo(this._group).apply(void 0,t),s=o[0],a=o[1],u=o[2],h=o[3];this._group.identify(s,a);var m=this._group.id(),S=this._group.traits(),v=this.eventFactory.group(m,S,u,this.integrations);return this._dispatch(v,h).then(function(_){return n.emit("group",_.event.groupId,_.event.traits,_.event.options),_})},e.prototype.alias=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o,s,a,u,h,m=this;return x(this,function(S){return r=eu.apply(void 0,n),o=r[0],s=r[1],a=r[2],u=r[3],h=this.eventFactory.alias(o,s,a,this.integrations),[2,this._dispatch(h,u).then(function(v){return m.emit("alias",o,s,v.event.options),v})]})})},e.prototype.screen=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o,s,a,u,h,m,S=this;return x(this,function(v){return r=Do.apply(void 0,n),o=r[0],s=r[1],a=r[2],u=r[3],h=r[4],m=this.eventFactory.screen(o,s,a,u,this.integrations),[2,this._dispatch(m,h).then(function(_){return S.emit("screen",o,s,_.event.properties,_.event.options),_})]})})},e.prototype.trackClick=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o;return x(this,function(s){switch(s.label){case 0:return[4,import("./chunk-LPEOW326.js")];case 1:return r=s.sent(),[2,(o=r.link).call.apply(o,_e([this],n,!1))]}})})},e.prototype.trackLink=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o;return x(this,function(s){switch(s.label){case 0:return[4,import("./chunk-LPEOW326.js")];case 1:return r=s.sent(),[2,(o=r.link).call.apply(o,_e([this],n,!1))]}})})},e.prototype.trackSubmit=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o;return x(this,function(s){switch(s.label){case 0:return[4,import("./chunk-LPEOW326.js")];case 1:return r=s.sent(),[2,(o=r.form).call.apply(o,_e([this],n,!1))]}})})},e.prototype.trackForm=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o;return x(this,function(s){switch(s.label){case 0:return[4,import("./chunk-LPEOW326.js")];case 1:return r=s.sent(),[2,(o=r.form).call.apply(o,_e([this],n,!1))]}})})},e.prototype.register=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o,s=this;return x(this,function(a){switch(a.label){case 0:return r=Ze.system(),o=n.map(function(u){return s.queue.register(r,u,s)}),[4,Promise.all(o)];case 1:return a.sent(),[2,r]}})})},e.prototype.deregister=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return k(this,void 0,void 0,function(){var r,o,s=this;return x(this,function(a){switch(a.label){case 0:return r=Ze.system(),o=n.map(function(u){var h=s.queue.plugins.find(function(m){return m.name===u});if(h)return s.queue.deregister(r,h,s);r.log("warn","plugin ".concat(u," not found"))}),[4,Promise.all(o)];case 1:return a.sent(),[2,r]}})})},e.prototype.debug=function(n){return n===!1&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=n,this},e.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},e.prototype.timeout=function(n){this.settings.timeout=n},e.prototype._dispatch=function(n,t){return k(this,void 0,void 0,function(){var r;return x(this,function(o){return r=new Ze(n),gt()&&!this.options.retryQueue?[2,r]:[2,au(r,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},e.prototype.addSourceMiddleware=function(n){return k(this,void 0,void 0,function(){var t=this;return x(this,function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run(function(){return k(t,void 0,void 0,function(){var o,s,a;return x(this,function(u){switch(u.label){case 0:return[4,import("./chunk-YLXWSGWU.js")];case 1:return o=u.sent().sourceMiddlewarePlugin,s={},this.queue.plugins.forEach(function(h){if(h.type==="destination")return s[h.name]=!0}),a=o(n,s),[4,this.register(a)];case 2:return u.sent(),[2]}})})})];case 1:return r.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=this.queue.plugins.filter(function(s){return s.name.toLowerCase()===n.toLowerCase()});return o.forEach(function(s){s.addMiddleware.apply(s,t)}),Promise.resolve(this)},e.prototype.setAnonymousId=function(n){return this._user.anonymousId(n)},e.prototype.queryString=function(n){return k(this,void 0,void 0,function(){var t;return x(this,function(r){switch(r.label){case 0:return this.options.useQueryString===!1?[2,[]]:[4,import("./chunk-2GH6EXHX.js")];case 1:return t=r.sent().queryString,[2,t(this,n)]}})})},e.prototype.use=function(n){return n(this),this},e.prototype.ready=function(n){return n===void 0&&(n=function(t){return t}),k(this,void 0,void 0,function(){return x(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(r){return r.ready?r.ready():Promise.resolve()})).then(function(r){return n(r),r})]})})},e.prototype.noConflict=function(){return console.warn(nt),window.analytics=qo??this,this},e.prototype.normalize=function(n){return console.warn(nt),this.eventFactory.normalize(n)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(nt),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return hn},enumerable:!1,configurable:!0}),e.prototype.initialize=function(n,t){return k(this,void 0,void 0,function(){return x(this,function(r){return console.warn(nt),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(n){return k(this,void 0,void 0,function(){return x(this,function(t){switch(t.label){case 0:return console.warn(nt),[4,this.page({path:n})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var n;return console.warn(nt),(n=this._plugins)!==null&&n!==void 0?n:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){console.warn(nt);var n=this.queue.plugins.filter(function(t){return t.type==="destination"}).reduce(function(t,r){var o="".concat(r.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),s=window[o];if(!s)return t;var a=s.Integration;return a?(t[r.name]=a,t):(t[r.name]=s,t)},{});return n},enumerable:!1,configurable:!0}),e.prototype.push=function(n){var t=this,r=n.shift();r&&!t[r]||t[r].apply(this,n)},e}(ln);Q();function zo(){return typeof process>"u"||!process.env?{}:process.env}var fu=function(){var i,e,n=new Promise(function(t,r){i=t,e=r});return{resolve:i,reject:e,promise:n}};function gu(){var i=document.getElementsByTagName("link"),e="";return Array.prototype.slice.call(i).forEach(function(n){n.getAttribute("rel")==="canonical"&&(e=n.getAttribute("href"))}),e}function Vf(){var i=gu();if(!i)return window.location.pathname;var e=document.createElement("a");e.href=i;var n=e.pathname.startsWith("/")?e.pathname:"/"+e.pathname;return n}function qf(i){i===void 0&&(i="");var e=gu();if(e)return e.includes("?")?e:"".concat(e).concat(i);var n=window.location.href,t=n.indexOf("#");return t===-1?n:n.slice(0,t)}function _u(){return{path:Vf(),referrer:document.referrer,search:location.search,title:document.title,url:qf(location.search)}}function Ui(i){var e,n=i.event;n.context=n.context||{};var t=_u(),r=(e=n.properties)!==null&&e!==void 0?e:{};return Object.keys(t).forEach(function(o){r[o]&&(t[o]=r[o])}),n.context.page&&(t=Object.assign({},t,n.context.page)),n.context=Object.assign({},n.context,{page:t}),i.event=n,i}var vu={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:function(i){return i.event.properties=Object.assign({},_u(),i.event.properties),i.event.name&&(i.event.properties.name=i.event.name),Ui(i)},alias:Ui,track:Ui,identify:Ui,group:Ui};Q();var zf=function(){function i(e,n){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=n,this.name=e,this.type=n.type,this.alternativeNames.push(n.name)}return i.prototype.addMiddleware=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.type==="destination"&&(e=this.middleware).push.apply(e,n)},i.prototype.transform=function(e){return k(this,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:return[4,La(this.name,e.event,this.middleware)];case 1:return n=t.sent(),n===null&&e.cancel(new dn({retry:!1,reason:"dropped by destination middleware"})),[2,new Ze(n)]}})})},i.prototype._createMethod=function(e){var n=this;return function(t){return k(n,void 0,void 0,function(){var r;return x(this,function(o){switch(o.label){case 0:return this.action[e]?(r=t,this.type!=="destination"?[3,2]:[4,this.transform(t)]):[2,t];case 1:r=o.sent(),o.label=2;case 2:return[4,this.action[e](r)];case 3:return o.sent(),[2,t]}})})}},i.prototype.isLoaded=function(){return this.action.isLoaded()},i.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},i.prototype.load=function(e,n){return this.action.load(e,n)},i.prototype.unload=function(e,n){var t,r;return(r=(t=this.action).unload)===null||r===void 0?void 0:r.call(t,e,n)},i}();function jf(i){if(!Array.isArray(i))throw new Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];return i.forEach(function(n){e.forEach(function(t){var r;if(n[t]===void 0)throw new Error("Plugin: ".concat((r=n.name)!==null&&r!==void 0?r:"unknown"," missing required function ").concat(t))})}),!0}function Gf(i,e){var n=i[e.creationName],t=i[e.name];return i.All===!1&&!n&&!t||n===!1||t===!1}function yu(i,e,n,t,r){var o,s,a;return k(this,void 0,void 0,function(){var u,h,m,S,v=this;return x(this,function(_){switch(_.label){case 0:return u=[],h=mn(),m=(s=(o=i.middlewareSettings)===null||o===void 0?void 0:o.routingRules)!==null&&s!==void 0?s:[],S=((a=i.remotePlugins)!==null&&a!==void 0?a:[]).map(function(b){return k(v,void 0,void 0,function(){var E,I,g,f,l,c,p,d,V,N,F;return x(this,function(M){switch(M.label){case 0:if(Gf(e,b))return[2];M.label=1;case 1:if(M.trys.push([1,12,,13]),E=new RegExp("https://cdp.customer.io"),!t)return[3,7];I=b.url.split("/"),g=I[I.length-2],f=b.url.replace(g,btoa(g).replace(/=/g,"")),M.label=2;case 2:return M.trys.push([2,4,,6]),[4,fn(f.replace(E,h))];case 3:return M.sent(),[3,6];case 4:return l=M.sent(),[4,fn(b.url.replace(E,h))];case 5:return M.sent(),[3,6];case 6:return[3,9];case 7:return[4,fn(b.url.replace(E,h))];case 8:M.sent(),M.label=9;case 9:return c=b.libraryName,typeof window[c]!="function"?[3,11]:(p=window[c],[4,p(T(T({},b.settings),n[b.name]))]);case 10:d=M.sent(),V=Array.isArray(d)?d:[d],jf(V),N=m.filter(function(st){return st.destinationName===b.creationName}),V.forEach(function(st){var Zt=new zf(b.creationName,st);N.length&&r&&st.type==="destination"&&Zt.addMiddleware(r),u.push(Zt)}),M.label=11;case 11:return[3,13];case 12:return F=M.sent(),console.warn("Failed to load Remote Plugin",F),[3,13];case 13:return[2]}})})}),[4,Promise.all(S)];case 1:return _.sent(),[2,u.filter(Boolean)]}})})}Q();Q();var Su=function(i){var e=!1;window.addEventListener("pagehide",function(){e||(e=!0,i())}),document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){if(e)return;e=!0,i()}else e=!1})};var $f=500;function bu(i){var e=encodeURI(JSON.stringify(i)).split(/%..|./).length-1;return e/1024}function Wf(i){return bu(i)>=$f-50}function Hf(i){var e=[],n=0;return i.forEach(function(t){var r=bu(e[n]);r>=64&&n++,e[n]?e[n].push(t):e[n]=[t]}),e}function jo(i,e){var n,t,r=[],o=!1,s=(n=e?.size)!==null&&n!==void 0?n:10,a=(t=e?.timeout)!==null&&t!==void 0?t:5e3;function u(_){var b;if(_.length!==0){var E=(b=_[0])===null||b===void 0?void 0:b.writeKey;return zt("".concat(i,"/b"),{keepalive:o,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:_,writeKey:E})})}}function h(){return k(this,void 0,void 0,function(){var _;return x(this,function(b){return r.length?(_=r,r=[],[2,u(_)]):[2]})})}var m;function S(){m||(m=setTimeout(function(){m=void 0,h().catch(console.error)},a))}Su(function(){if(o=!0,r.length){var _=Hf(r).map(u);Promise.all(_).catch(console.error)}});function v(_,b){return k(this,void 0,void 0,function(){var E;return x(this,function(I){return r.push(b),E=r.length>=s||Wf(r),[2,E||o?h():S()]})})}return{dispatch:v}}function Iu(i){function e(n,t){return zt(n,{keepalive:i?.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(t)})}return{dispatch:e}}Q();function Kf(i,e){return k(this,void 0,void 0,function(){var n,t=this;return x(this,function(r){switch(r.label){case 0:return n=[],gt()?[2,e]:[4,Ba(function(){return e.length>0&&!gt()},function(){return k(t,void 0,void 0,function(){var o,s,a;return x(this,function(u){switch(u.label){case 0:return o=e.pop(),o?[4,qt(o,i)]:[2];case 1:return s=u.sent(),a=s instanceof Ze,a||n.push(o),[2]}})})})];case 1:return r.sent(),n.map(function(o){return e.pushWithBackoff(o)}),[2,e]}})})}function xt(i,e,n,t){var r=this;i||setTimeout(function(){return k(r,void 0,void 0,function(){var o,s;return x(this,function(a){switch(a.label){case 0:return o=!0,[4,Kf(n,e)];case 1:return s=a.sent(),o=!1,e.todo>0&&t(o,s,n,t),[2]}})})},Math.random()*5e3)}function Yf(i,e){var n,t,r,o,s=i.user();return e.previousId=(r=(t=(n=e.previousId)!==null&&n!==void 0?n:e.from)!==null&&t!==void 0?t:s.id())!==null&&r!==void 0?r:s.anonymousId(),e.userId=(o=e.userId)!==null&&o!==void 0?o:e.to,delete e.from,delete e.to,e}function Cu(i,e,n){var t,r;window.addEventListener("pagehide",function(){o.push.apply(o,Array.from(s)),s.clear()});var o=i.options.disableClientPersistence?new un(i.queue.queue.maxAttempts,[]):new jt(i.queue.queue.maxAttempts,"dest-Customer.io-Data-Pipelines"),s=new Set,a=!1,u=(t=e?.apiHost)!==null&&t!==void 0?t:"cdp.customer.io/v1",h=(r=e?.protocol)!==null&&r!==void 0?r:"https",m="".concat(h,"://").concat(u),S=e?.deliveryStrategy,v=S?.strategy==="batching"?jo(m,S.config):Iu(S?.config);function _(E){return k(this,void 0,void 0,function(){var I,g;return x(this,function(f){return gt()?(o.push(E),xt(a,o,b,xt),[2,E]):(s.add(E),I=E.event.type.charAt(0),g=Ua(E.event).json(),E.event.type==="track"&&delete g.traits,E.event.type==="alias"&&(g=Yf(i,g)),[2,v.dispatch("".concat(m,"/").concat(I),Na(i,g,e,n)).then(function(){return E}).catch(function(){return o.pushWithBackoff(E),xt(a,o,b,xt),E}).finally(function(){s.delete(E)})])})})}var b={name:"Customer.io Data Pipelines",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:_,identify:_,page:_,alias:_,group:_,screen:_};return o.todo&&xt(a,o,b,xt),b}Q();var wu=function(i){return typeof i=="object"&&i!==null&&"then"in i&&typeof i.then=="function"};var Eu=function(i,e,n){n.getCalls(i).forEach(function(t){Go(e,t).catch(console.error)})},ku=function(i,e){return k(void 0,void 0,void 0,function(){var n,t,r;return x(this,function(o){switch(o.label){case 0:n=0,t=e.getCalls("addSourceMiddleware"),o.label=1;case 1:return n<t.length?(r=t[n],[4,Go(i,r).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},xu=Eu.bind(void 0,"on"),Tu=Eu.bind(void 0,"setAnonymousId"),Pu=function(i,e){e.toArray().forEach(function(n){setTimeout(function(){Go(i,n).catch(console.error)},0)})},Qf=function(){function i(){this._value={}}return i.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},i.prototype.getCalls=function(e){var n;return(n=this._value[e])!==null&&n!==void 0?n:[]},i.prototype.push=function(){for(var e=this,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.forEach(function(r){e._value[r.method]?e._value[r.method].push(r):e._value[r.method]=[r]}),this},i.prototype.clear=function(){return this._value={},this},i}();function Go(i,e){return k(this,void 0,void 0,function(){var n,t;return x(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e.called?[2,void 0]:(e.called=!0,n=i[e.method].apply(i,e.args),wu(n)?[4,n]:[3,2]);case 1:r.sent(),r.label=2;case 2:return e.resolve(n),[3,4];case 3:return t=r.sent(),e.reject(t),[3,4];case 4:return[2]}})})}var Au=function(){function i(e){var n=this;this._preInitBuffer=new Qf,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=hn,this._promise=e(this._preInitBuffer),this._promise.then(function(t){var r=t[0],o=t[1];n.instance=r,n.ctx=o}).catch(function(){})}return i.prototype.then=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return(e=this._promise).then.apply(e,n)},i.prototype.catch=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return(e=this._promise).catch.apply(e,n)},i.prototype.finally=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return(e=this._promise).finally.apply(e,n)},i.prototype._createMethod=function(e){var n=this;return function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n.instance){var s=(t=n.instance)[e].apply(t,r);return Promise.resolve(s)}return new Promise(function(a,u){n._preInitBuffer.push({method:e,args:r,resolve:a,reject:u,called:!1})})}},i.prototype._createChainableMethod=function(e){var n=this;return function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n.instance?((t=n.instance)[e].apply(t,r),n):(n._preInitBuffer.push({method:e,args:r,resolve:function(){},reject:console.error,called:!1}),n)}},i}();function Jf(i){var e=i[0],n=i.slice(1);return{method:e,resolve:function(){},reject:console.error,args:n,called:!1}}var Xf=function(i){return i.map(Jf)},Jn=function(){var i=window.analytics;if(!Array.isArray(i))return[];var e=i.splice(0,i.length);return Xf(e)};var $o,Ou,Zf=pn(),Ru=($o=(Ou=Zf).__INSPECTOR__)!==null&&$o!==void 0?$o:Ou.__INSPECTOR__={},Nu=function(i){var e;return(e=Ru.attach)===null||e===void 0?void 0:e.call(Ru,i)};function eg(i,e){var n=e??mn();return zt("".concat(n,"/v1/projects/").concat(i,"/settings")).then(function(t){return t.ok?t.json():t.text().then(function(r){throw new Error(r)})}).catch(function(t){throw console.error(t.message),t})}function tg(i){return zo().NODE_ENV!=="test"&&Object.keys(i.integrations).length>1}function ig(i){var e,n,t;return zo().NODE_ENV!=="test"&&((t=(n=(e=i.middlewareSettings)===null||e===void 0?void 0:e.routingRules)===null||n===void 0?void 0:n.length)!==null&&t!==void 0?t:0)>0}function ng(i,e){e.push.apply(e,Jn()),Tu(i,e),xu(i,e)}function rg(i,e){return k(this,void 0,void 0,function(){return x(this,function(n){switch(n.label){case 0:return e.push.apply(e,Jn()),[4,ku(i,e)];case 1:return n.sent(),e.push.apply(e,Jn()),Pu(i,e),e.clear(),[2]}})})}function og(i,e,n,t,r,o){var s,a,u,h;return k(this,void 0,void 0,function(){var m,S,v,_,b,E,I,g,f,l,c,p,d,V=this;return x(this,function(N){switch(N.label){case 0:return ig(i)?[4,import("./chunk-BRM5OV4G.js").then(function(F){return F.tsubMiddleware(i.middlewareSettings.routingRules)})]:[3,2];case 1:return S=N.sent(),[3,3];case 2:S=void 0,N.label=3;case 3:return m=S,tg(i)||o.length>0?[4,import("./chunk-JY4WZIWK.js").then(function(F){return F.ajsDestinations(i,e.integrations,n,m,o)})]:[3,5];case 4:return _=N.sent(),[3,6];case 5:_=[],N.label=6;case 6:return v=_,i.legacyVideoPluginsEnabled?[4,import("./chunk-PG74WJSV.js").then(function(F){return F.loadLegacyVideoPlugins(e)})]:[3,8];case 7:N.sent(),N.label=8;case 8:return!((s=n.plan)===null||s===void 0)&&s.track?[4,import("./chunk-S2XXIEBD.js").then(function(F){var M;return F.schemaFilter((M=n.plan)===null||M===void 0?void 0:M.track,i)})]:[3,10];case 9:return E=N.sent(),[3,11];case 10:E=void 0,N.label=11;case 11:return b=E,I=Da(i,t),[4,yu(i,e.integrations,I,t.obfuscate,m).catch(function(){return[]})];case 12:return g=N.sent(),!((a=t.integrations)===null||a===void 0)&&a["Customer.io In-App Plugin"]?[4,import("./chunk-2O73EUEW.js").then(function(F){var M;return F.InAppPlugin((M=t.integrations)===null||M===void 0?void 0:M["Customer.io In-App Plugin"])})]:[3,14];case 13:return l=N.sent(),[3,15];case 14:l=void 0,N.label=15;case 15:return f=l,c=_e(_e(_e([Xl,vu],r,!0),v,!0),g,!0),b&&c.push(b),f&&c.push(f),p=((u=n.integrations)===null||u===void 0?void 0:u.All)===!1&&!n.integrations["Customer.io Data Pipelines"]||n.integrations&&n.integrations["Customer.io Data Pipelines"]===!1,p||c.push(Cu(e,I["Customer.io Data Pipelines"],i.integrations)),[4,e.register.apply(e,c)];case 16:return d=N.sent(),Object.entries((h=i.enabledMiddleware)!==null&&h!==void 0?h:{}).some(function(F){var M=F[1];return M})?[4,import("./chunk-SDZUSJTG.js").then(function(F){var M=F.remoteMiddlewares;return k(V,void 0,void 0,function(){var st,Zt;return x(this,function(Jo){switch(Jo.label){case 0:return[4,M(d,i,t.obfuscate)];case 1:return st=Jo.sent(),Zt=st.map(function(sd){return e.addSourceMiddleware(sd)}),[2,Promise.all(Zt)]}})})})]:[3,18];case 17:N.sent(),N.label=18;case 18:return[2,d]}})})}function sg(i,e,n){var t,r,o,s,a,u,h;return e===void 0&&(e={}),k(this,void 0,void 0,function(){var m,S,v,_,b,E,I,g,f,l,c;return x(this,function(p){switch(p.label){case 0:return i.cdnURL&&Fa(i.cdnURL),(t=i.cdnSettings)!==null&&t!==void 0?(S=t,[3,3]):[3,1];case 1:return[4,eg(i.writeKey,i.cdnURL)];case 2:S=p.sent(),p.label=3;case 3:return m=S,v=(o=(r=m.integrations["Customer.io Data Pipelines"])===null||r===void 0?void 0:r.retryQueue)!==null&&o!==void 0?o:!0,_=T({retryQueue:v},e),b=new mu(i,_),Nu(b),E=(s=i.plugins)!==null&&s!==void 0?s:[],I=(a=i.classicIntegrations)!==null&&a!==void 0?a:[],Ma.initRemoteMetrics(m.metrics),ng(b,n),[4,og(m,b,_,e,E,I)];case 4:return g=p.sent(),f=(u=window.location.search)!==null&&u!==void 0?u:"",l=(h=window.location.hash)!==null&&h!==void 0?h:"",c=f.length?f:l.replace(/(?=#).*(?=\?)/,""),c.includes("ajs_")?[4,b.queryString(c).catch(console.error)]:[3,6];case 5:p.sent(),p.label=6;case 6:return b.initialized=!0,b.emit("initialize",i,e),e.initialPageview&&b.page().catch(console.error),[4,rg(b,n)];case 7:return p.sent(),[2,[b,g]]}})})}var Mu=function(i){Ae(e,i);function e(){var n=this,t=fu(),r=t.promise,o=t.resolve;return n=i.call(this,function(s){return r.then(function(a){var u=a[0],h=a[1];return sg(u,h,s)})})||this,n._resolveLoadStart=function(s,a){return o([s,a])},n}return e.prototype.load=function(n,t){return t===void 0&&(t={}),this._resolveLoadStart(n,t),this},e.load=function(n,t){return t===void 0&&(t={}),new e().load(n,t)},e.standalone=function(n,t){return e.load({writeKey:n},t).then(function(r){return r[0]})},e}(Au);var Uu=(()=>{let e=class e{constructor(){this.analytics=Mu.load({cdnURL:Gs,writeKey:js})}setCustomerIOUserId(t){try{this.analytics.identify(t,{created_at:new Date().getTime(),email:t})}catch(r){console.warn(r)}}logCustomerIOEvent(t,r){try{this.analytics.track(t,r)}catch(o){console.warn(o)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Xn=(()=>{let e=class e{constructor(t,r,o){this.location=t,this.firebaseService=r,this.customerIOService=o,this.location.onUrlChange((s,a)=>{a&&a.navigationId==1||this.logPageView()})}logButtonClick(t){this.firebaseService.logFirebaseEvent(C.button_click,{button_id:t}),this.customerIOService.logCustomerIOEvent(C.button_click,{button_id:t})}logClickedFacebookSignIn(){this.logButtonClick("facebook_login")}logClickedGoogleSignIn(){this.logButtonClick("google_login")}logClickedFormSignIn(t){this.firebaseService.setFirebaseUserId(t),this.logButtonClick("form_login")}logClickedResetPassword(){this.logButtonClick("reset_password")}logLoginFailed(t){this.firebaseService.logFirebaseEvent(C.login,{method:t,status:Ue.fail}),this.customerIOService.logCustomerIOEvent(C.login,{method:t,status:Ue.fail})}logFormSignInFailed(t){this.firebaseService.setFirebaseUserId(t),this.customerIOService.setCustomerIOUserId(t),this.logLoginFailed("form")}logFacebookSignInFailed(){this.logLoginFailed("facebook")}logGoogleSignInFailed(){this.logLoginFailed("google")}logSignInSuccesseful(t,r){this.firebaseService.setFirebaseUserId(r),this.firebaseService.logFirebaseEvent(C.login,{method:t,status:Ue.success}),this.customerIOService.setCustomerIOUserId(r),this.customerIOService.logCustomerIOEvent(C.login,{method:t,status:Ue.success})}logFacebookSignInSuccesseful(t){this.logSignInSuccesseful("facebook",t)}logGoogleSignInSuccesseful(t){this.logSignInSuccesseful("google",t)}logFormSignInSuccesseful(t){this.logSignInSuccesseful("form",t)}logSignUpCompletedStep1(t,r){this.firebaseService.setFirebaseUserId(r),this.firebaseService.logFirebaseEvent(C.sign_up_step_complete,{step:1,account_type:t}),this.customerIOService.setCustomerIOUserId(r),this.customerIOService.logCustomerIOEvent(C.sign_up_step_complete,{step:1,account_type:t})}logSignUpCompletedStep(t,r){this.firebaseService.logFirebaseEvent(C.sign_up_step_complete,{step:r,account_type:t}),this.customerIOService.logCustomerIOEvent(C.sign_up_step_complete,{step:r,account_type:t})}logSignUpGoBack(t,r){this.logButtonClick(`sign_up_${t}_go_back_to_${r}`)}logSelect(t,r){this.firebaseService.logFirebaseEvent(C.select_content,{content_type:t,item_id:r}),this.customerIOService.logCustomerIOEvent(C.select_content,{content_type:t,item_id:r})}logSelectMaterial(t){this.logSelect("material",t)}logSignUpStartAsClient(){this.logButtonClick("sign_up_client")}logSignUpStartAsManufacturer(){this.logButtonClick("sign_up_manufacturer")}logSignUpSuccessfull(t,r,o){this.firebaseService.setFirebaseUserId(o),this.firebaseService.logFirebaseEvent(C.sign_up,{method:r,status:Ue.success,account_type:t}),this.customerIOService.setCustomerIOUserId(o),this.customerIOService.logCustomerIOEvent(C.sign_up,{method:r,status:Ue.success,account_type:t})}logSignUpFailed(t,r){this.firebaseService.logFirebaseEvent(C.sign_up,{method:r,status:Ue.fail,account_type:t}),this.customerIOService.logCustomerIOEvent(C.sign_up,{method:r,status:Ue.fail,account_type:t})}logException(t,r){this.firebaseService.logFirebaseEvent(C.exception,{description:t,fatal:r}),this.customerIOService.logCustomerIOEvent(C.exception,{description:t,fatal:r})}logQuoteRequestStarted(t){this.firebaseService.logFirebaseEvent(C.quote_request_start,{manufacturer_id:t}),this.customerIOService.logCustomerIOEvent(C.quote_request_start,{manufacturer_id:t})}logQuoteRequestCompleted(t){this.firebaseService.logFirebaseEvent(C.quote_request_complete,{manufacturer_id:t}),this.customerIOService.logCustomerIOEvent(C.quote_request_complete,{manufacturer_id:t})}logContactManufacturer(t,r){this.firebaseService.logFirebaseEvent(C.contact_manufacturer,{manufacturer_id:t,manufacturer_profile_name:r}),this.customerIOService.logCustomerIOEvent(C.contact_manufacturer,{manufacturer_id:t,manufacturer_profile_name:r})}logOrderLoad(t){this.firebaseService.logFirebaseEvent(C.order_load,{type:t}),this.customerIOService.logCustomerIOEvent(C.order_load,{type:t})}logQuoteLoad(t){this.firebaseService.logFirebaseEvent(C.quote_load,{type:t}),this.customerIOService.logCustomerIOEvent(C.quote_load,{type:t})}logCheckoutInitPayment(){this.firebaseService.logFirebaseEvent(C.checkout_init_payment),this.customerIOService.logCustomerIOEvent(C.checkout_init_payment)}logCheckoutFinalizePayment(){this.firebaseService.logFirebaseEvent(C.checkout_finalize_payment),this.customerIOService.logCustomerIOEvent(C.checkout_finalize_payment)}logUpdateAccountInfos(t){this.firebaseService.logFirebaseEvent(C.update_account_information,{account_type:t}),this.customerIOService.logCustomerIOEvent(C.update_account_information,{account_type:t})}logChangePassword(t){this.firebaseService.logFirebaseEvent(C.change_password,{account_type:t}),this.customerIOService.logCustomerIOEvent(C.change_password,{account_type:t})}logPageView(){this.firebaseService.logFirebaseEvent("page_view",{page_title:window.document.title,page_location:window.location.href,page_path:window.location.pathname}),this.customerIOService.logCustomerIOEvent("page_view",{page_title:window.document.title,page_location:window.location.href,page_path:window.location.pathname})}logQuoteSelectManufacturer(t){this.firebaseService.logFirebaseEvent(C.quote_select_manufacturer,{maunfacturer_id:t}),this.customerIOService.logCustomerIOEvent(C.quote_select_manufacturer,{maunfacturer_id:t})}logQuoteUnselectManufacturer(t){this.firebaseService.logFirebaseEvent(C.quote_unselect_manufacturer,{maunfacturer_id:t}),this.customerIOService.logCustomerIOEvent(C.quote_unselect_manufacturer,{maunfacturer_id:t})}logIQFileSelected(){this.firebaseService.logFirebaseEvent(C.instant_quote_form_file_selected,{method:Yn.from_device}),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_file_selected,{method:Yn.from_device})}logIQSampleFileSelected(){this.firebaseService.logFirebaseEvent(C.instant_quote_form_sample_file_selected),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_sample_file_selected)}logIQStep1Confirmed(t){this.firebaseService.logFirebaseEvent(C.instant_quote_form_process_confirmed,{name:t}),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_process_confirmed,{name:t})}logIQStep2Confirmed(t,r){this.firebaseService.logFirebaseEvent(C.instant_quote_form_material_confirmed,{id:t,name:r}),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_material_confirmed,{id:t,name:r})}logIQStep3Confirmed(){this.firebaseService.logFirebaseEvent(C.instant_quote_form_step3_confirmed),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_step3_confirmed)}logIQStep4ConfirmedManual(){this.firebaseService.logFirebaseEvent(C.instant_quote_form_manual_manufacturer_selected),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_manual_manufacturer_selected)}logIQStep4ConfirmedExpress(){this.firebaseService.logFirebaseEvent(C.instant_quote_form_express_manufacturer_selected),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_express_manufacturer_selected)}logIQManufacturerConfirmed(){this.firebaseService.logFirebaseEvent(C.instant_quote_form_checkout_selected),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_checkout_selected)}logIQDeliveryFormConfirmed(){this.firebaseService.logFirebaseEvent(C.instant_quote_form_validated),this.customerIOService.logCustomerIOEvent(C.instant_quote_form_validated)}logSelectThickness(t){this.logSelect("thickness",t)}logSelectTolerance(t){this.logSelect("tolerance",t)}};e.\u0275fac=function(r){return new(r||e)(w(ws),w(Jl),w(Uu))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var cg="BFt1O-LbZEsooLCfWsFFgaWhLX7g8AhxZJhD5FzLHBmNbdmmlP0-dhIaTBDK_wCPBTWqW08OYjWiytkugDx5F0E",Li="notificationOn",DI=(()=>{let e=class e{constructor(t,r,o,s){this.locationStrategy=t,this.toaster=r,this.crud=o,this.browserStorageService=s,this.isPushNotificationEnabled=new ae(!1),this.isPushNotificationEnabled$=this.isPushNotificationEnabled.asObservable(),this.userWantsPushNotification=!1;try{this.messageSubscription=Wl(Jt(),a=>{this.toaster.info(a.notification?.body,a.notification?.title,{closeButton:!0,newestOnTop:!0,disableTimeOut:!0}).onTap.subscribe(()=>{a.fcmOptions?.link&&(window.location.href=a.fcmOptions.link)})}),this.isPushNotificationEnabled.next(this.browserStorageService.localStorage.getItem(Li)==="true")}catch(a){console.log(a)}}ngOnDestroy(){this.messageSubscription?.()}isNotificationAccepted(){try{return Notification?.permission==="granted"}catch(t){console.error(t)}return!1}isPushNotificationAccepted(){return this.isNotificationAccepted()&&this.userWantsPushNotification}getServiceWorker(){return y(this,null,function*(){let r=(yield navigator.serviceWorker.getRegistrations()).filter(o=>o.active?.state==="activated").filter(o=>o.active?.scriptURL.includes("firebase-messaging-sw.js"));return r?.length<1?yield navigator.serviceWorker.register(this.locationStrategy.getBaseHref()+"firebase-messaging-sw.js"):r[0]})}unsubscribe(){return y(this,null,function*(){return this.getServiceWorker().then(()=>Gl(Jt())).catch(console.warn)})}askForNotification(){return y(this,null,function*(){try{let t=Jt();if(t){let r=yield this.getServiceWorker();return Notification?.requestPermission().then(()=>$l(t,{vapidKey:cg,serviceWorkerRegistration:r}))}}catch(t){console.error(t)}return null})}savePushNotificationsState(t,r){return new Promise((s,a)=>{if(Notification.permission==="denied"&&a(),Notification.permission==="default"||Notification.permission==="granted"){r?this.askForNotification().then(u=>{u&&(this.saveToken(t,u),this.isPushNotificationEnabled.next(!0),this.browserStorageService.localStorage.setItem(Li,"true"),s())}).catch(()=>{this.isPushNotificationEnabled.next(!1),this.browserStorageService.localStorage.setItem(Li,"false"),a()}):this.unsubscribe().then(()=>this.saveToken(t,"")).then(()=>this.isPushNotificationEnabled.next(!1)).then(()=>this.browserStorageService.localStorage.setItem(Li,"false")).then(()=>s());return}})}togglePushNotification(t){this.isPushNotificationAccepted()?this.unsubscribe().then(()=>this.saveToken(t,"")).then(()=>this.isPushNotificationEnabled.next(!1)):this.askForNotification().then(r=>{r&&(this.saveToken(t,r),this.isPushNotificationEnabled.next(!0))}).catch(()=>{this.saveToken(t,""),this.isPushNotificationEnabled.next(!1)}),this.userWantsPushNotification=!this.userWantsPushNotification,this.browserStorageService.localStorage.setItem(Li,""+this.userWantsPushNotification)}saveToken(t,r){this.crud.post(L+j+De+ra,Fe($({},t),{newToken:r})).subscribe()}};e.\u0275fac=function(r){return new(r||e)(w(Cs),w(an),w(Ia),w(he))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var dg=new H("recaptcha-language"),pg=new H("recaptcha-base-url"),hg=new H("recaptcha-nonce-tag"),mg=new H("recaptcha-settings"),fg=new H("recaptcha-v3-site-key"),gg=new H("recaptcha-loader-options");function _g(i,e,n,{url:t,lang:r,nonce:o}={}){window.ng2recaptchaloaded=()=>{n(grecaptcha)};let s=document.createElement("script");s.innerHTML="";let{url:a,nonce:u}=e(new URL(t||"https://www.google.com/recaptcha/api.js"));a.searchParams.set("render",i==="explicit"?i:i.key),a.searchParams.set("onload","ng2recaptchaloaded"),a.searchParams.set("trustedtypes","true"),r&&a.searchParams.set("hl",r),s.src=a.href;let h=u||o;h&&s.setAttribute("nonce",h),s.async=!0,s.defer=!0,document.head.appendChild(s)}function vg({v3SiteKey:i,onBeforeLoad:e,onLoaded:n}){let t=i?{key:i}:"explicit";Du.loadScript(t,e,n)}var Du={loadScript:_g,newLoadScript:vg};function yg(i){return i.asObservable().pipe(ni(e=>e!==null))}var Bu=(()=>{let e=class e{constructor(t,r,o,s,a,u){this.platformId=t,this.language=r,this.baseUrl=o,this.nonce=s,this.v3SiteKey=a,this.options=u;let h=this.init();this.ready=h?yg(h):ve()}init(){if(e.ready)return e.ready;if(!oi(this.platformId))return;let t=new ae(null);return e.ready=t,Du.newLoadScript({v3SiteKey:this.v3SiteKey,onBeforeLoad:r=>{if(this.options?.onBeforeLoad)return this.options.onBeforeLoad(r);let o=new URL(this.baseUrl??r);return this.language&&o.searchParams.set("hl",this.language),{url:o,nonce:this.nonce}},onLoaded:r=>{let o=r;this.options?.onLoaded&&(o=this.options.onLoaded(r)),t.next(o)}}),t}};e.ready=null,e.\u0275fac=function(r){return new(r||e)(w(lt),w(dg,8),w(pg,8),w(hg,8),w(fg,8),w(gg,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),Sg=0,cC=(()=>{let e=class e{constructor(t,r,o,s){this.elementRef=t,this.loader=r,this.zone=o,this.id=`ngrecaptcha-${Sg++}`,this.errorMode="default",this.resolved=new ut,this.error=new ut,this.errored=new ut,s&&(this.siteKey=s.siteKey,this.theme=s.theme,this.type=s.type,this.size=s.size,this.badge=s.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(t=>{t!=null&&t.render instanceof Function&&(this.grecaptcha=t,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){this.size==="invisible"&&(this.widget!=null?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){this.widget!=null&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset())}get __unsafe_widgetValue(){return this.widget!=null?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}onError(t){this.error.emit(t),this.errored.emit(t)}captchaResponseCallback(t){this.resolved.emit(t)}grecaptchaReset(){this.widget!=null&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){let t={badge:this.badge,callback:r=>{this.zone.run(()=>this.captchaResponseCallback(r))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};this.errorMode==="handled"&&(t["error-callback"]=(...r)=>{this.zone.run(()=>this.onError(r))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,t),this.executeRequested===!0&&(this.executeRequested=!1,this.execute())}};e.\u0275fac=function(r){return new(r||e)(q(At),q(Bu),q(Z),q(mg,8))},e.\u0275cmp=Ke({type:e,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(r,o){r&2&&we("id",o.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex",badge:"badge",errorMode:"errorMode"},outputs:{resolved:"resolved",error:"error",errored:"errored"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(r,o){},encapsulation:2});let i=e;return i})(),bg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=X({type:e}),e.\u0275inj=J({});let i=e;return i})(),lC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=X({type:e}),e.\u0275inj=J({providers:[Bu],imports:[bg]});let i=e;return i})();var Tg=["determinateSpinner"];function Pg(i,e){if(i&1&&(ri(),O(0,"svg",11),Se(1,"circle",12),U()),i&2){let n=Yi();we("viewBox",n._viewBox()),P(),Ot("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeCircumference()/2,"px")("stroke-width",n._circleStrokeWidth(),"%"),we("r",n._circleRadius())}}var Ag=new H("mat-progress-spinner-default-options",{providedIn:"root",factory:Og});function Og(){return{diameter:Wu}}var Wu=100,Rg=10,GC=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}constructor(t,r,o){this._elementRef=t,this._defaultColor="primary",this._value=0,this._diameter=Wu,this._noopAnimations=r==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=t.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_circleRadius(){return(this.diameter-Rg)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(r){return new(r||e)(q(At),q($i,8),q(Ag))},e.\u0275cmp=Ke({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,o){if(r&1&&Rt(Tg,5),r&2){let s;Nt(s=Mt())&&(o._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,o){r&2&&(we("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Hi("mat-"+o.color),Ot("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),dt("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[de.HasDecoratorInputTransform,"value","value",Lt],diameter:[de.HasDecoratorInputTransform,"diameter","diameter",Lt],strokeWidth:[de.HasDecoratorInputTransform,"strokeWidth","strokeWidth",Lt]},exportAs:["matProgressSpinner"],standalone:!0,features:[Wi,Ji],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,o){if(r&1&&(Ye(0,Pg,2,8,"ng-template",null,0,Ss),O(2,"div",1,2),ri(),O(4,"svg",3),Se(5,"circle",4),U()(),Gi(),O(6,"div",5)(7,"div",6)(8,"div",7),Ki(9,8),U(),O(10,"div",9),Ki(11,8),U(),O(12,"div",10),Ki(13,8),U()()()),r&2){let s=Qi(1);P(4),we("viewBox",o._viewBox()),P(),Ot("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),we("r",o._circleRadius()),P(4),W("ngTemplateOutlet",s),P(2),W("ngTemplateOutlet",s),P(2),W("ngTemplateOutlet",s)}},dependencies:[xs],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var $C=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=X({type:e}),e.\u0275inj=J({imports:[Zi,pi]});let i=e;return i})();var Fi=function(i){return i.PRINTING="3D_PRINTING",i.CNC_MACHINING="CNC_MACHINING",i.SHEET_METAL="SHEET_METAL",i}(Fi||{}),Ng={[Fi.PRINTING]:"3D Printer",[Fi.CNC_MACHINING]:"CNC Machine",[Fi.SHEET_METAL]:"Laser cutter"},tr=function(i){return i.FDM="FDM",i.SLS="SLS",i.SLA="SLA",i}(tr||{}),uw={[tr.FDM]:"FDM",[tr.SLS]:"SLS",[tr.SLA]:"SLA"};var Di=function(i){return i.USD="USD",i.EUR="EUR",i.TND="TND",i}(Di||{}),Mg={[Di.USD]:"US Dollars",[Di.EUR]:"Euros",[Di.TND]:"Tunisian Dinars"};var Ug=["input"],Lg=["label"],Fg=["*"],Dg=new H("mat-checkbox-default-options",{providedIn:"root",factory:Ku});function Ku(){return{color:"accent",clickAction:"check-indeterminate"}}var se=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(se||{}),Bg={provide:ca,useExisting:ar(()=>Yu),multi:!0},Yo=class{},Vg=0,Hu=Ku(),Yu=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){let r=new Yo;return r.source=this,r.checked=t,r}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,r,o,s,a,u){this._elementRef=t,this._changeDetectorRef=r,this._ngZone=o,this._animationMode=a,this._options=u,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new ut,this.indeterminateChange=new ut,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=se.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Hu,this.color=this._options.color||Hu.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++Vg}`}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){let r=t!=this._indeterminate;this._indeterminate=t,r&&(this._indeterminate?this._transitionCheckState(se.Indeterminate):this._transitionCheckState(this.checked?se.Checked:se.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let r=this._currentCheckState,o=this._getAnimationTargetElement();if(!(r===t||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let t=this._options?.clickAction;!this.disabled&&t!=="noop"?(this.indeterminate&&t!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?se.Checked:se.Unchecked),this._emitChangeEvent()):!this.disabled&&t==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,r){if(this._animationMode==="NoopAnimations")return"";switch(t){case se.Init:if(r===se.Checked)return this._animationClasses.uncheckedToChecked;if(r==se.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case se.Unchecked:return r===se.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case se.Checked:return r===se.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case se.Indeterminate:return r===se.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){let r=this._inputElement;r&&(r.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}};e.\u0275fac=function(r){return new(r||e)(q(At),q(gs),q(Z),ps("tabindex"),q($i,8),q(Dg,8))},e.\u0275cmp=Ke({type:e,selectors:[["mat-checkbox"]],viewQuery:function(r,o){if(r&1&&(Rt(Ug,5),Rt(Lg,5),Rt(_r,5)),r&2){let s;Nt(s=Mt())&&(o._inputElement=s.first),Nt(s=Mt())&&(o._labelElement=s.first),Nt(s=Mt())&&(o.ripple=s.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(r,o){r&2&&(_s("id",o.id),we("tabindex",null)("aria-label",null)("aria-labelledby",null),Hi(o.color?"mat-"+o.color:"mat-accent"),dt("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[de.None,"aria-label","ariaLabel"],ariaLabelledby:[de.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[de.None,"aria-describedby","ariaDescribedby"],id:"id",required:[de.HasDecoratorInputTransform,"required","required",Ut],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[de.HasDecoratorInputTransform,"disableRipple","disableRipple",Ut],tabIndex:[de.HasDecoratorInputTransform,"tabIndex","tabIndex",t=>t==null?void 0:Lt(t)],color:"color",checked:[de.HasDecoratorInputTransform,"checked","checked",Ut],disabled:[de.HasDecoratorInputTransform,"disabled","disabled",Ut],indeterminate:[de.HasDecoratorInputTransform,"indeterminate","indeterminate",Ut]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[lr([Bg,{provide:ua,useExisting:e,multi:!0}]),Wi,ds,Ji],ngContentSelectors:Fg,decls:15,vars:19,consts:[["mat-internal-form-field","",3,"labelPosition","click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(r,o){if(r&1&&(vs(),O(0,"div",0),pt("click",function(a){return o._preventBubblingFromLabel(a)}),O(1,"div",1,2)(3,"div",3),pt("click",function(){return o._onTouchTargetClick()}),U(),O(4,"input",4,5),pt("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),U(),Se(6,"div",6),O(7,"div",7),ri(),O(8,"svg",8),Se(9,"path",9),U(),Gi(),Se(10,"div",10),U(),Se(11,"div",11),U(),O(12,"label",12,13),ys(14),U()()),r&2){let s=Qi(2);W("labelPosition",o.labelPosition),P(4),dt("mdc-checkbox--selected",o.checked),W("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),we("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),P(7),W("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),P(),W("for",o.inputId)}},dependencies:[_r,sa],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Aw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=X({type:e}),e.\u0275inj=J({imports:[Yu,pi,pi]});let i=e;return i})();var Qu=(()=>{let e=class e{DecodeToken(t){return cn(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ju=(()=>{let e=class e{constructor(t,r){this.translation=t,this.browserStorageService=r}setLang(t){this.browserStorageService.localStorage.setItem("lang",t),this.translation.use(t),console.log("current language is : ",t)}};e.\u0275fac=function(r){return new(r||e)(w(en),w(he))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var oe=(()=>{let e=class e{constructor(t,r,o,s,a,u){this.languageService=t,this.http=r,this.jwtService=o,this.browserStorageService=s,this.userService=a,this.accountsService=u,this.APP_URL=Y,this.authUrl=Y+"/auth/login",this.loggedIn=!1,this.isInitialized=!1,this.initialize();try{this.userService.setUser(this.getLocalUser())}catch(h){console.error(h)}}initialize(){this.isInitialized=!0}isServiceInitialized(){return this.isInitialized}isLoggedIn(){return!!(this.browserStorageService.localStorage.getItem("token")||this.browserStorageService.localStorage.getItem("access_token"))}authenticateAndRedirect(t){this.browserStorageService.localStorage.setItem("route",t),window.location.href=this.authUrl}redirectUserAfterLogin(t){Array.from(this.getLocalUser()?.businessAccounts||[]).length>0?window.location.href=Y+"/dashboard/manufacturer/"+(t||""):window.location.href=Y+"/dashboard/client/"+(t||"")}sendUserLanguageToServer(){return y(this,null,function*(){let t=this.getUserV1(),r=this.browserStorageService.localStorage.getItem("lang");if(t?.data?._id&&r){let o={id:t.data._id,lang:r};yield this.http.post(L+j+ce+ia,o).subscribe(s=>{})}})}login(t){return this.loggedIn=!0,this.http.post(L+j+ce+gr,t)}afterSuccessfulLogin(t,r,o){this.browserStorageService.localStorage.setItem("hideStoreInfoSection",!1),t&&this.setToken(t,r,o);let s=this.getUserV1();this.browserStorageService.localStorage.setItem("user",JSON.stringify(s.data)),s.lang?this.setLang(s.lang):this.sendUserLanguageToServer(),document.cookie="seekmaketoken="+t+"; domain=www.seekmake.com;path=/;expires="+new Date(new Date().getTime()+30*24*60*60*1e3).toUTCString(),this.userService.setUser(s)}logOut(){let t=Me();this.browserStorageService.localStorage.removeItem("token"),this.browserStorageService.localStorage.removeItem("access_token"),this.browserStorageService.localStorage.clear(),this.browserStorageService.localStorage.setItem("lang",t),document.cookie="seekmaketoken=; domain=.seekmake.com",this.userService.setUser(null),this.accountsService.clearConfig(),window.location.href=Y+"/"}signupClient(t){let r=Me();return console.log(L+j+ce+mr),console.log(t),this.http.post(L+j+ce+mr,t,{params:{lang:r}})}signupBusiness(t){let r=Me();return this.http.post(L+j+ce+fr,t,{params:{lang:r}})}verifyProfileName(t){return this.http.get(L+j+De+na,{params:{profileName:t}})}getUser(){let t=this.getToken();return t?this.jwtService.DecodeToken(t):{}}getUserV1(){let t=this.browserStorageService.localStorage.getItem("token");return t?this.jwtService.DecodeToken(t):{}}getUserId(){return JSON.parse(this.browserStorageService.localStorage.getItem("user"))?._id}getToken(){return this.browserStorageService.localStorage.getItem("access_token")||""}isUserHasBusiness(){let t=this.getUser();return Array.from(t?.businessAccounts||[]).length>0}setToken(t,r,o){this.browserStorageService.localStorage.setItem("access_token",t),this.browserStorageService.localStorage.setItem("refresh_token",r),o&&this.browserStorageService.localStorage.setItem("token",o)}setUser(t){t?this.browserStorageService.localStorage.setItem("user",JSON.stringify(t)):this.browserStorageService.localStorage.setItem("user",JSON.stringify(this.getUser().data))}updateUser(t,r){return this.http.put(L+j+De+"/"+t,r)}getLocalUser(){return JSON.parse(this.browserStorageService.localStorage.getItem("user"))}setLang(t){this.languageService.setLang(t)}forgotPassword(t){return this.http.post(L+j+ce+Zs,{email:t})}getMagicLink(t){return this.http.post(L+j+ce+ea+gr,{email:t,from:"login"})}verifyMagicLink(t){return this.http.post(L+j+ce+ta+"/?token="+t,{})}resetPassword(t){return this.http.post(L+j+ce+Xs,t)}refreshToken(){let t=this.browserStorageService.localStorage.getItem("refresh_token");if(!t)return Pt("No refresh token available");let r=L+j+ce+Js,o={headers:new si({"X-Skip-Interceptor":"true",Authorization:`Bearer ${t}`})};return this.http.post(r,{refreshToken:t},o).pipe(ct(s=>{let{access_token:a,refresh_token:u,token:h}=s;return this.setToken(a,u,h),ve(a)}),at(s=>(this.handleTokenError(s),Pt(()=>s))))}handleTokenError(t){this.browserStorageService.localStorage.clear();let r=window.location.href;this.authenticateAndRedirect(r.replace(Y,""))}};e.\u0275fac=function(r){return new(r||e)(w(Ju),w(pe),w(Qu),w(he),w(fi),w(Be))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var $u=(()=>{let e=class e{constructor(t){this.http=t}getAll(t){return this.http.get(t)}getCustom(t,r){return r=this.removeEmptyValues(r),this.http.get(t,{params:$({},r)})}removeEmptyValues(t){let r=JSON.parse(JSON.stringify(t));for(let[o,s]of Object.entries(r))(s===""||s===null)&&delete r[o];return r}searchOne(t,r){return this.http.get(t+"/"+r)}getOne(t,r){return this.http.get(t+"/"+r)}getOneWithParams(t,r,o){return this.http.get(t+"/"+r,{params:$({},o)})}getAllWithRelation(t,r,o){return this.http.get(t+"/"+r+o)}post(t,r,o={}){return this.http.post(t,r,{params:$({},o)})}put(t,r,o){return this.http.put(t+"/"+r,o)}putWithParams(t,r,o,s={}){return this.http.put(t+"/"+r,o,{params:$({},s)})}delete(t,r){return this.http.delete(t+"/"+r)}resolved(t){let r=L+$s+Hs+Ks+"/"+t;return this.getAll(r)}};e.\u0275fac=function(r){return new(r||e)(w(pe))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();Q();var He,Xu=(He=class{constructor(e,n,t){this.http=e,this.authService=n,this.accountsService=t,this.hasUnreadNotification=new ae(!1),this.hasUnreadNotification$=this.hasUnreadNotification.asObservable,this.hasUnreadMessages=new ae(!1),this.hasUnreadMessages$=this.hasUnreadNotification.asObservable}markAllRead(){let e=this.accountsService.currentAccount?.type===ba.BUSINESS?{businessId:this.accountsService.getCurrentAccountID()}:{userId:this.authService.getUserId()},n=L+j+De+"/notifications/mark-read/";this.http.post(n,{},{params:$({},sn(e))}).subscribe()}},He.\u0275fac=function(n){return new(n||He)(w(pe),w(oe),w(Be))},He.\u0275prov=R({token:He,factory:He.\u0275fac,providedIn:"root"}),He);Xu=Vi([Tn({checkProperties:!0}),qi("design:paramtypes",[pe,oe,Be])],Xu);var rt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")},vk={defaultMerge:rt.defaultMerge};function Wg(i,e){return e}function Hg(i,e){return i.filter(n=>n!==void 0)}function Zu(i){return typeof i!="object"||i===null?0:Array.isArray(i)?2:Qg(i)?1:i instanceof Set?3:i instanceof Map?4:5}function Kg(i){let e=new Set;for(let n of i)for(let t of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(t);return e}function Yg(i,e){return typeof i=="object"&&Object.prototype.propertyIsEnumerable.call(i,e)}function td(i){return{*[Symbol.iterator](){for(let e of i)for(let n of e)yield n}}}var ed=new Set(["[object Object]","[object Module]"]);function Qg(i){if(!ed.has(Object.prototype.toString.call(i)))return!1;let{constructor:e}=i;if(e===void 0)return!0;let n=e.prototype;return!(n===null||typeof n!="object"||!ed.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function Jg(i,e,n){let t={};for(let r of Kg(i)){let o=[];for(let u of i)Yg(u,r)&&o.push(u[r]);if(o.length===0)continue;let s=e.metaDataUpdater(n,{key:r,parents:i}),a=nd(o,e,s);a!==rt.skip&&(r==="__proto__"?Object.defineProperty(t,r,{value:a,configurable:!0,enumerable:!0,writable:!0}):t[r]=a)}return t}function Xg(i){return i.flat()}function Zg(i){return new Set(td(i))}function e0(i){return new Map(td(i))}function t0(i){return i.at(-1)}var ir={mergeRecords:Jg,mergeArrays:Xg,mergeSets:Zg,mergeMaps:e0,mergeOthers:t0};function id(...i){return i0({})(...i)}function i0(i,e){let n=n0(i,t);function t(...r){return nd(r,n,e)}return t}function n0(i,e){return{defaultMergeFunctions:ir,mergeFunctions:$($({},ir),Object.fromEntries(Object.entries(i).filter(([n,t])=>Object.hasOwn(ir,n)).map(([n,t])=>t===!1?[n,ir.mergeOthers]:[n,t]))),metaDataUpdater:i.metaDataUpdater??Wg,deepmerge:e,useImplicitDefaultMerging:i.enableImplicitDefaultMerging??!1,filterValues:i.filterValues===!1?void 0:i.filterValues??Hg,actions:rt}}function nd(i,e,n){let t=e.filterValues?.(i,n)??i;if(t.length===0)return;if(t.length===1)return Qo(t,e,n);let r=Zu(t[0]);if(r!==0&&r!==5){for(let o=1;o<t.length;o++)if(Zu(t[o])!==r)return Qo(t,e,n)}switch(r){case 1:return r0(t,e,n);case 2:return o0(t,e,n);case 3:return s0(t,e,n);case 4:return a0(t,e,n);default:return Qo(t,e,n)}}function r0(i,e,n){let t=e.mergeFunctions.mergeRecords(i,e,n);return t===rt.defaultMerge||e.useImplicitDefaultMerging&&t===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(i,e,n):t}function o0(i,e,n){let t=e.mergeFunctions.mergeArrays(i,e,n);return t===rt.defaultMerge||e.useImplicitDefaultMerging&&t===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(i):t}function s0(i,e,n){let t=e.mergeFunctions.mergeSets(i,e,n);return t===rt.defaultMerge||e.useImplicitDefaultMerging&&t===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(i):t}function a0(i,e,n){let t=e.mergeFunctions.mergeMaps(i,e,n);return t===rt.defaultMerge||e.useImplicitDefaultMerging&&t===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(i):t}function Qo(i,e,n){let t=e.mergeFunctions.mergeOthers(i,e,n);return t===rt.defaultMerge||e.useImplicitDefaultMerging&&t===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(i):t}var rd=class{constructor(e,n){this._handler=e,this._resourcesPrefix=n}getTranslation(e){let n=this._resourcesPrefix.map(t=>{let r;return t.prefix?r=`${t.prefix}${e}${t.suffix||".json"}`:r=`${t}${e}.json`,new pe(this._handler).get(r).pipe(at(o=>(t.optional||(console.group(),console.error("Something went wrong for the following translation file:",r),console.error(o),console.groupEnd()),ve({}))))});return ji(n).pipe(ti(t=>id(...t)))}};var Qk=(()=>{let e=class e{constructor(t,r){this.browserStorageService=t,this.authService=r,this.toastrService=cr(an),this.translate=cr(en),this.allowedRequests=[`${L}${j}${ce}${Ys}`,`${L}${j}${ce}${Qs}`]}intercept(t,r){if(t.headers.get("X-Skip-Interceptor")==="true")return r.handle(t);let o=this.browserStorageService.localStorage.getItem("access_token");if(o&&t.url.startsWith(L)){if(this.isTokenExpired(o))return this.authService.refreshToken().pipe(ct(s=>{let a=t.clone({setHeaders:{Authorization:`Bearer ${s}`}});return r.handle(a)}),at(s=>(this.authService.handleTokenError(s),Pt(()=>s))));t=t.clone({setHeaders:{Authorization:`Bearer ${o}`}})}return r.handle(t).pipe(at(s=>(s.status===401&&s.error?.message==="Unauthorized"&&(this.isAllowedRequest(t.url)?this.handleAllowedRequestError(s):this.authService.handleTokenError(s)),Pt(()=>s))))}isTokenExpired(t){let o=cn(t).exp*1e3;return Date.now()>=o}isAllowedRequest(t){return this.allowedRequests.some(r=>t.includes(r))}handleAllowedRequestError(t){this.toastrService.error("",this.translate.instant("ERROR.OTP"))}};e.\u0275fac=function(r){return new(r||e)(w(he),w(oe))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var nr=class{constructor(e,n,t,r){this.quoteModel=e,this.minEstimatedPrice=e.reduce((o,s)=>o+s.price_min,0),this.maxEstimatedPrice=e.reduce((o,s)=>o+s.price_max,0),n?.email&&(this.email=String(n?.email).trim()),this.country=n?.country,this.address=n?.address,this.phone=n?.phone,this.zip=n?.zip,this.typeDelivery=n?.deliveryMethod,this.firstName=n?.isCompany?null:n?.firstName,this.lastName=n?.isCompany?null:n?.lastName,this.city=n?.city,this.region=n?.region,this.companyName=n?.isCompany?n?.companyName:void 0,this.taxNumber=n?.taxNumber,this.taxOffice=n?.taxOffice,this.taxType=n?.taxType,this.note=n?.note,r?.role==="user"&&(this.city=n?.city||r?.city,this.client=r?._id),this.machineOwner=t?._id||null,this.machineOwnerEmail=t?.businessEmail||null}};var rr=(()=>{let e=class e{constructor(t,r,o,s){this.quoteService=t,this.authService=r,this.quoteAPIService=o,this.http=s,this.quoteService.instantQuote$.subscribe(a=>{this.quote=a})}updateDraft(){this.quote?.draftId&&this.saveDraft()}saveDraft(){if(!this.quoteAPIService.quoteAPIParameters.modelExportMode){let t=this.quote?.selectedBusinesses?.length>0?this.quote.selectedBusinesses:this.quote.selectedBusinesses=[],r=this.authService?.isLoggedIn()?this.authService.getUserV1().data:null;t.length==0?this.submitQuoteDraft(this.quote.uploadedModels,null,r):t.forEach(o=>{this.submitQuoteDraft(this.quote.uploadedModels,o,r)})}}transformToQuoteRequest(t,r,o){let s=new nr(t,this.quote.deliveryForm,r,o);return s.technique=this.quote.technique,this.quote?.business?._id&&(s.business=this.quote.business._id),this.quote.currency?s.currency=this.quote.currency:s.currency="EUR",this.quote.unit?s.remark=["unit : "+this.quote.unit]:s.remark=["unit : Millimeters (mm)"],s.dateAccepted=0,s.filling=0,s.type="normal",s.isRated=!0,s.status="specialVerified",s.archive=!1,s.conception=!0,s.priceToClient="",s.quoteModel.forEach(a=>{a.priceMachine="",a.priceConception=0,a.priceExtra=0}),s.priceDelivery=0,s.priceByMachines=[""],s.declinedBy=[""],s.referral=this.quoteAPIService.getReferrer(r),s.draftId=this.quote.draftId,s}submitQuoteDraft(t,r,o){let s=this.transformToQuoteRequest(t,r,o);this.http.post(L+hr+Ws,sn(s)).subscribe(a=>{s.draftId||(s.draftId=a._id,this.quoteService.setQuote(Fe($({},this.quote),{draftId:a._id})))})}};e.\u0275fac=function(r){return new(r||e)(w(et),w(oe),w(Gt),w(pe))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function u0(i,e){if(i&1&&(O(0,"option",18),K(1),U()),i&2){let n=e.$implicit;W("value",n.long_name),P(),Oe(n==null?null:n.long_name)}}function d0(i,e){if(i&1&&(O(0,"option",18),K(1),U()),i&2){let n=e.$implicit;W("value",n),P(),Oe(n)}}function p0(i,e){i&1&&Se(0,"div",19)}function h0(i,e){i&1&&(O(0,"small",23),K(1),ie(2,"translate"),U()),i&2&&(P(),Qe(" ",ne(2,1,"SETTINGS.INVALID_EMAIL")," "))}function m0(i,e){if(i&1&&(O(0,"div")(1,"span",20),K(2," Email "),O(3,"span"),K(4),ie(5,"translate"),U()(),Se(6,"input",21),Ye(7,h0,3,3,"small",22),U()),i&2){let n=Yi();P(3),Ot("color",n.requiredEmail?"red":"rgba(14, 28, 54, 0.4)"),P(),Qe(" ",n.requiredEmail?"*":ne(5,9,"SETTINGS.EMAIL")," "),P(2),dt("is-required",n.requiredEmail)("has-error",n.email.invalid&&(n.email.dirty||n.email.touched)),W("formControl",n.email),P(),W("ngIf",n.email.hasError("pattern")&&(n.email.dirty||n.email.touched))}}var ot,od=(ot=class{constructor(e,n,t,r,o,s,a,u,h,m){if(this.instantQuoteService=e,this.dfmService=n,this.fb=t,this.locationService=r,this.siteSettingsService=o,this.browserStorageService=s,this.authService=a,this.msUtilService=u,this.draftService=h,this.quoteApiService=m,this.email=new ha("",hi.pattern("[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}")),this.requiredEmail=!1,this.countries=[],this.selectedCountry="",this.unitLoading=!1,this.currencies=[],this.APP_URL=Y,this.defaultCountry=!1,this.defaultCurrency=!1,this.countries$=this.msUtilService.getCountries().pipe(os({refCount:!0,bufferSize:1})),this.instantQuoteService.instantQuote$.pipe(xc(this)).subscribe(S=>{this.quote=S,this.selectedCountry=this.quote.country?this.quote.country:"",this.quote.uploadedModels&&this.quote.currentModel?.viewerType==="2D"&&!this.quote.unit&&this.setUnit()}),this.getCountries(),this.validateForm=this.fb.group({country:[zs,hi.required],currency:[rn,hi.required],unit:[vr.MM,hi.required]}),this.siteSettingsService.siteCurrencies$.subscribe(S=>{this.currencies=S.map(v=>v.keyvalue)}),this.validateForm.controls.country?.valueChanges.subscribe(S=>{let v=this.countries.find(_=>_.long_name===S);if(!this.quoteApiService.quoteAPIParameters?.currency){let _=v?.currency,b=_&&this.currencies.find(E=>E===_);this.validateForm.controls.currency.patchValue(b?v?.currency:rn)}}),this.quoteApiService.quoteAPIParameters?.mandatoryEmail===!0&&(this.requiredEmail=!0),this.quoteApiService.quoteAPIParameters?.country){let S=this.countries.find(v=>v.id===this.quoteApiService.quoteAPIParameters?.country);S&&(this.defaultCountry=!0,this.validateForm.controls.country.patchValue(S.long_name))}if(this.quoteApiService.quoteAPIParameters?.unit&&Object.values(vr).includes(this.quoteApiService.quoteAPIParameters.unit)&&this.validateForm.controls.unit.patchValue(this.quoteApiService.quoteAPIParameters?.unit),this.quoteApiService.quoteAPIParameters?.currency){let S=this.currencies.find(v=>v===this.quoteApiService.quoteAPIParameters?.currency);S&&(this.defaultCurrency=!0),this.validateForm.controls.currency.patchValue(S?this.quoteApiService.quoteAPIParameters?.currency:rn)}}ngOnDestroy(){this.currencySubscription?.unsubscribe()}ngOnInit(){this.isLoggedIn=this.authService?.isLoggedIn();let e=JSON.parse(this.browserStorageService.localStorage.getItem("instantQuote"));e?.currency&&this.validateForm.controls.currency.patchValue(e.currency),e?.unit&&this.validateForm.controls.unit.patchValue(e?.unit),e?.country&&this.validateForm.controls.country.patchValue(e?.country),ji({locationRes:this.locationService.getLocation(),countriesRes:this.countries$}).subscribe(({locationRes:n})=>{this.validateForm.dirty||(!e?.country&&n.country_name&&this.countries?.length&&this.countries.find(t=>t.long_name===n.country_name)&&!this.defaultCountry&&this.validateForm.controls.country.patchValue(n.country_name),!e?.currency&&n.currency&&!this.defaultCurrency&&(this.currencies.includes(n.currency)?this.validateForm.controls.currency.patchValue(n.currency):this.validateForm.controls.currency.patchValue(oa)))})}getUsageTermsUrl(){let e=this.quoteApiService.quoteAPIParameters?.usageTermsUrl||`${Y}/terms-and-conditions`;return!e.startsWith("http://")&&!e.startsWith("https://")?"http://"+e:e}getCountries(){this.countries$.subscribe(e=>{this.countries=e})}setLocation(){navigator.geolocation.getCurrentPosition(e=>{this.quote.longitude=e.coords.longitude,this.quote.latitude=e.coords.latitude,this.instantQuoteService.setQuote($({},this.quote))})}submit(){let e=this.validateForm.value.currency;this.instantQuoteService.reloadBusiness(e),this.instantQuoteService.setQuote(Fe($($({},this.quote),this.validateForm.value),{deliveryForm:{email:this.email.value}})),window.parent.postMessage({eventId:"QUOTE_SETTINGS_CHANGED",clientHeight:document?.body?.clientHeight,scrollHeight:document?.body?.scrollHeight},"*"),this.draftService.saveDraft()}setUnit(){this.unitLoading=!0,this.dfmService.geometryData.subscribe(e=>{if(e){let n=this.dfmService.getUnitString(e.geometry?.unit);n&&(this.quote.unit=n),this.validateForm.controls.unit.patchValue(n),this.unitLoading=!1}})}},ot.\u0275fac=function(n){return new(n||ot)(q(et),q(An),q(on),q(Bt),q(mi),q(he),q(oe),q(Vt),q(rr),q(Gt))},ot.\u0275cmp=Ke({type:ot,selectors:[["iq-settings-dialog"]],decls:49,vars:45,consts:[[1,"dialog"],[3,"formGroup"],[1,"settings-text"],[1,"bolded"],[1,"location-container"],["formControlName","country",1,"form-select","input-text"],[3,"value",4,"ngFor","ngForOf"],["aria-label","Default select example","formControlName","currency","id","currencySelectId",1,"form-select","input-text"],["class","sbl-circ-path",4,"ngIf"],["aria-label","Default select example","formControlName","unit","id","unitsSelectID",1,"form-select","input-text",2,"width","100% !important","margin-top","10px","margin-bottom","20px"],["selected","","value","mm"],["value","cm"],["value","inch"],[4,"ngIf"],[1,"terms-text"],["target","_blank",1,"link",3,"href"],[2,"display","flex","justify-content","flex-end","width","100%"],["color","primary","mat-dialog-close","","mat-raised-button","",3,"disabled","click"],[3,"value"],[1,"sbl-circ-path"],[1,"settings-text","my-3"],["placeholder","Exp John.doe@gmail.com","type","email",1,"input-email","my-2",3,"formControl"],["class","text-danger",4,"ngIf"],[1,"text-danger"]],template:function(n,t){n&1&&(O(0,"div",0)(1,"h4"),K(2),ie(3,"translate"),U(),O(4,"form",1)(5,"div")(6,"span",2),K(7),ie(8,"translate"),O(9,"span",3),K(10),ie(11,"translate"),U(),K(12),ie(13,"translate"),O(14,"span",3),K(15),ie(16,"translate"),U()(),O(17,"div",4)(18,"select",5),Ye(19,u0,2,2,"option",6),U(),O(20,"select",7),Ye(21,d0,2,2,"option",6),U()(),O(22,"span",2),K(23),ie(24,"translate"),U(),Ye(25,p0,1,0,"div",8),O(26,"select",9),Se(27,"option"),O(28,"option",10),K(29),ie(30,"translate"),U(),O(31,"option",11),K(32),ie(33,"translate"),U(),O(34,"option",12),K(35),ie(36,"translate"),U()(),Ye(37,m0,8,11,"div",13),O(38,"span",14),K(39),ie(40,"translate"),O(41,"a",15),K(42),ie(43,"translate"),U()()(),O(44,"div",16)(45,"button",17),pt("click",function(){return t.submit()}),K(46),ie(47,"uppercase"),ie(48,"translate"),U()()()()),n&2&&(P(2),Oe(ne(3,19,"SETTINGS.TITLE")),P(2),W("formGroup",t.validateForm),P(3),Qe(" ",ne(8,21,"SETTINGS.PROVIDE_COUNTRY")," "),P(3),Oe(ne(11,23,"SETTINGS.COUNTRY")),P(2),Qe(" ",ne(13,25,"SETTINGS.PROVIDE_CURRENCY")," "),P(3),Oe(ne(16,27,"SETTINGS.CURRENCY")),P(4),W("ngForOf",t.countries),P(2),W("ngForOf",t.currencies),P(2),Qe(" ",ne(24,29,"SETTINGS.UNIT")," "),P(2),W("ngIf",t.unitLoading),P(4),Oe(ne(30,31,"SETTINGS.MM")),P(3),Oe(ne(33,33,"SETTINGS.CM")),P(3),Oe(ne(36,35,"SETTINGS.INCH")),P(2),W("ngIf",!t.isLoggedIn||t.isLoggedIn&&t.requiredEmail),P(2),Qe(" ",ne(40,37,"SETTINGS.CLICK")," "),P(2),W("href",t.getUsageTermsUrl(),ms),P(),Oe(ne(43,39,"SETTINGS.TERMS")),P(3),W("disabled",!t.validateForm.valid||t.requiredEmail&&(!t.email.value||!t.email.valid)),P(),Qe(" ",ne(47,41,ne(48,43,"SETTINGS.CONFIRM"))," "))},dependencies:[Es,ks,aa,ma,ya,Sa,la,va,da,pa,fa,ga,_a,Ca,Ts,As],styles:["*[_ngcontent-%COMP%]{font-family:Poppins,sans-serif}h4[_ngcontent-%COMP%]{font-weight:600}.dialog[_ngcontent-%COMP%]{width:fit-content;max-width:811px;height:482px;flex-grow:0;display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start;gap:24px;padding:40px;border-radius:10px;background-color:#fff}.settings-text[_ngcontent-%COMP%]{width:fit-content;height:24px;flex-grow:0;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:left;color:#0e1c36}.settings-text[_ngcontent-%COMP%]   .bolded[_ngcontent-%COMP%]{font-weight:700}.location-container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:20px;width:100%;height:48px;flex-grow:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:11px;padding:0}.input-grp[_ngcontent-%COMP%]{width:50%;height:48px;flex-grow:0;padding-left:8px;padding-right:8px;border-radius:5px;display:flex;justify-content:space-between;align-items:center;background-color:#0e1c360d}.input-text[_ngcontent-%COMP%]{border:none;font-size:16px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:left;color:#0e1c36;background-color:#0e1c3600}input[_ngcontent-%COMP%]:focus{outline:none}.form-select[_ngcontent-%COMP%]{background-color:#0e1c360d;border:none;height:48px!important;width:50%;border-radius:5px;padding-left:18px;padding-right:18px}select[_ngcontent-%COMP%]:focus{border-color:#fff;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgb(255,255,255);box-shadow:inset 0 1px 1px #00000013,0 0 8px #fff}.terms-text[_ngcontent-%COMP%]{width:100%;display:inline-block;height:24px;flex-grow:0;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.71;letter-spacing:normal;text-align:right;color:#0e1c36b3}.terms-text[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{color:#1a6fee}@media screen and (max-width: 500px){.dialog[_ngcontent-%COMP%]{padding:16px}}@media screen and (max-width: 767px){.dialog[_ngcontent-%COMP%]{height:auto}.location-container[_ngcontent-%COMP%]{flex-direction:column;height:auto}.input-grp[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{width:100%}.terms-text[_ngcontent-%COMP%]{text-align:left}.mat-mdc-raised-button[_ngcontent-%COMP%]{width:100%}}.sbl-circ-path[_ngcontent-%COMP%]{height:25px;width:25px;color:#fff;position:relative;display:inline-block;border:2px solid;border-radius:50%;border-right-color:#5a5a5a;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.input-email[_ngcontent-%COMP%]{border:none;width:100%;display:flex;padding:12px 16px;align-items:center;gap:8px;align-self:stretch;border-radius:5px;background:#0e1c360d;font-family:Ubuntu,serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;text-align:left}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.input-email.is-required[_ngcontent-%COMP%]{border:1px solid #f44336}.input-email.has-error[_ngcontent-%COMP%]{border:2px solid #f44336}button[_ngcontent-%COMP%]{font-family:Poppins;font-weight:400;line-height:21px;text-align:center;border:none;padding:8px 12px;height:40px;display:flex;align-items:center;white-space:nowrap;justify-content:center;padding:.7rem;font-size:1rem;min-width:9rem;border-radius:.5rem}button[_ngcontent-%COMP%]:hover{opacity:.8}button.primary[_ngcontent-%COMP%]{background:#1a6fee;color:#fff}button.danger[_ngcontent-%COMP%]{background:#ee801a;color:#fff}button.primary-outline[_ngcontent-%COMP%]{border:1px solid #1a6fee;color:#1a6fee;background-color:transparent}button.export[_ngcontent-%COMP%]{background-color:transparent;display:flex;align-items:center;gap:8px;color:#1a6fee;font-size:14px;font-weight:500;line-height:16px}button[_ngcontent-%COMP%]:nth-child(3){margin-right:auto}"]}),ot);od=Vi([Tn(),qi("design:paramtypes",[et,An,on,Bt,mi,he,oe,Vt,rr,Gt])],od);export{w1 as a,Xn as b,DI as c,ud as d,dd as e,Ei as f,Tn as g,xc as h,mg as i,cC as j,lC as k,GC as l,$C as m,Fi as n,Yu as o,Aw as p,oe as q,$u as r,Xu as s,rd as t,Qk as u,nr as v,rr as w,An as x,od as y};
