altair-static 8.5.6-alpha.ae4b3e4.0 → 8.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-bootstrap.log +5 -5
- package/build/dist/main.js +3 -3
- package/package.json +3 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> altair-static@8.5.
|
|
2
|
+
> altair-static@8.5.6 bootstrap /home/runner/work/altair/altair/packages/altair-static
|
|
3
3
|
> pnpm prepare-dist && pnpm compile && pnpm types
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> altair-static@8.5.
|
|
6
|
+
> altair-static@8.5.6 prepare-dist /home/runner/work/altair/altair/packages/altair-static
|
|
7
7
|
> node scripts/prepare_dist.js
|
|
8
8
|
|
|
9
9
|
Done copying dist folder!
|
|
10
10
|
|
|
11
|
-
> altair-static@8.5.
|
|
11
|
+
> altair-static@8.5.6 compile /home/runner/work/altair/altair/packages/altair-static
|
|
12
12
|
> node scripts/build.js
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
> altair-static@8.5.
|
|
15
|
+
> altair-static@8.5.6 types /home/runner/work/altair/altair/packages/altair-static
|
|
16
16
|
> dts-bundle-generator src/index.ts -o build/index.d.ts --external-inlines altair-graphql-core --external-inlines altair-static --verbose
|
|
17
17
|
|
|
18
18
|
Verbose log enabled
|
|
@@ -228,4 +228,4 @@ Writing src/index.ts -> build/index.d.ts
|
|
|
228
228
|
Checking generated files...
|
|
229
229
|
Using config: /home/runner/work/altair/altair/packages/altair-static/tsconfig.json
|
|
230
230
|
[1;33mCompiler option "skipLibCheck" is disabled to properly check generated output[0m
|
|
231
|
-
Done in 5.
|
|
231
|
+
Done in 5.77s
|
package/build/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="289af014-1cd4-5e61-80a0-19635891d1e5")}catch(e){}}();
|
|
3
3
|
import{a as _oe,b as Coe,c as woe,d as boe,e as Soe,f as xoe,g as koe,h as Toe,j as Ooe,k as Doe}from"./chunk-HMR5CY6K.js";import{a as Fr,c as Uu,d as kNe,e as TNe,f as ONe}from"./chunk-GC5A67L5.js";import{a as Moe}from"./chunk-ANLTCLUB.js";import{a as Tre}from"./chunk-KL6P4JEZ.js";import{a as Ore}from"./chunk-TP45OAWA.js";import{a as Ere}from"./chunk-MLNN63DH.js";import{a as Mre}from"./chunk-Q5PBMANM.js";import{a as Je,b as fs,c as Vr,d as Sre,e as I4,f as j9,g as ir,h as Sm,i as xre,j as $d,k as Qu,l as zs,m as kre}from"./chunk-74A26AAT.js";import{a as yN,b as Eoe}from"./chunk-RFFTRMGK.js";import{$ as Wre,A as Hre,Aa as poe,B as W9,Ba as FNe,C as jre,Ca as foe,D as Ov,Da as moe,E as $re,Ea as goe,F as Y9,Fa as yoe,G as fp,Ga as gN,H as G9,I as mp,Ia as voe,J as gp,Ja as As,K as Z9,L as km,M as z4,O as ANe,P as qre,S as A4,T as Ure,U as Qre,V as PNe,X as yp,Y as Ev,Z as Mv,_ as Dv,a as Dre,aa as RNe,b as xr,ba as Yre,c as MNe,ca as Gre,d as qd,da as NNe,e as Ire,ea as X9,f as DNe,fa as LNe,g as mN,ga as K9,h as INe,ha as Zre,i as $9,j as zNe,ja as Xre,ka as Kre,l as Are,la as Jre,m as Pre,ma as eoe,n as Rre,na as toe,o as xv,oa as noe,p as Nre,pa as ioe,q as q9,qa as roe,r as U9,ra as ooe,s as Lre,sa as soe,t as kv,ta as aoe,u as Fre,ua as loe,v as Tv,va as coe,w as Q9,wa as uoe,x as Vre,xa as doe,y as Wu,ya as hoe,z as Bre,za as J9}from"./chunk-PJ3NZ7HS.js";import{a as Ln,c as fN,d as ENe,q as zre,r as tf,v as xm}from"./chunk-ZYOLZTH5.js";import{$ as cN,A as bm,B as Ga,C as Hu,D as en,E as F9,F as wre,G as _n,H as xt,I as D4,J as ya,K as Bn,L as rN,M as sc,N as oN,O as Hd,P as V9,Q as Ct,R as sN,S as ju,T as ac,U as aN,V as Hn,W as lN,X as va,Y as jc,Z as B9,_ as H9,a as Ti,aa as uN,b as Cv,ba as ef,c as Zn,ca as dN,d as N9,da as Oo,e as wv,ea as pp,f as fe,fa as jd,g as an,ga as $u,h as Qi,ha as qu,i as Cm,ia as bre,j as L9,ja as qn,k as wm,ka as Ae,l as ut,la as se,ma as hN,na as In,oa as pN,p as bv,pa as An,q as kn,r as rt,s as hp,t as ga,u as Cre,v as ps,w as Sv,x as ze,y as Wi,z as Oi}from"./chunk-472WPQLO.js";import{a as k,b as q,c as _v,d as $o,f as we,h as Ci,i as iN,j as G}from"./chunk-B7YGBANW.js";var Gde=we((nH,iH)=>{"use strict";(function(n,t){typeof define=="function"&&define.amd?define([],t):typeof nH<"u"?t():(t(),n.FileSaver={})})(nH,function(){"use strict";function n(s,a){return typeof a>"u"?a={autoBom:!1}:typeof a!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,a,l){var c=new XMLHttpRequest;c.open("GET",s),c.responseType="blob",c.onload=function(){o(c.response,a,l)},c.onerror=function(){console.error("could not download file")},c.send()}function e(s){var a=new XMLHttpRequest;a.open("HEAD",s,!1);try{a.send()}catch{}return 200<=a.status&&299>=a.status}function i(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(a)}}var r=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,o=r.saveAs||(typeof window!="object"||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(s,a,l){var c=r.URL||r.webkitURL,u=document.createElement("a");a=a||s.name||"download",u.download=a,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?i(u):e(u.href)?t(s,a,l):i(u,u.target="_blank")):(u.href=c.createObjectURL(s),setTimeout(function(){c.revokeObjectURL(u.href)},4e4),setTimeout(function(){i(u)},0))}:"msSaveOrOpenBlob"in navigator?function(s,a,l){if(a=a||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(n(s,l),a);else if(e(s))t(s,a,l);else{var c=document.createElement("a");c.href=s,c.target="_blank",setTimeout(function(){i(c)})}}:function(s,a,l,c){if(c=c||open("","_blank"),c&&(c.document.title=c.document.body.innerText="downloading..."),typeof s=="string")return t(s,a,l);var u=s.type==="application/octet-stream",h=/constructor/i.test(r.HTMLElement)||r.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||u&&h)&&typeof FileReader=="object"){var f=new FileReader;f.onloadend=function(){var x=f.result;x=p?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=x:location=x,c=null},f.readAsDataURL(s)}else{var _=r.URL||r.webkitURL,w=_.createObjectURL(s);c?c.location=w:location.href=w,c=null,setTimeout(function(){_.revokeObjectURL(w)},4e4)}});r.saveAs=o.saveAs=o,typeof iH<"u"&&(iH.exports=o)})});var rH=we((Zde,xk)=>{"use strict";(function(n){"use strict";var t,e=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,r=Math.floor,o="[BigNumber Error] ",s=o+"Number primitive has more than 15 significant digits: ",a=1e14,l=14,c=9007199254740991,u=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,p=1e9;function f(U){var B,K,$,J=nt.prototype={constructor:nt,toString:null,valueOf:null},Le=new nt(1),Q=20,ce=4,Pe=-7,ge=21,je=-1e7,de=1e7,Qe=!1,_t=1,Ot=0,Ft={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},Sn="0123456789abcdefghijklmnopqrstuvwxyz",fi=!0;function nt(X,ne){var he,Ge,Me,We,et,ke,Fe,Xe,$e=this;if(!($e instanceof nt))return new nt(X,ne);if(ne==null){if(X&&X._isBigNumber===!0){$e.s=X.s,!X.c||X.e>de?$e.c=$e.e=null:X.e<je?$e.c=[$e.e=0]:($e.e=X.e,$e.c=X.c.slice());return}if((ke=typeof X=="number")&&X*0==0){if($e.s=1/X<0?(X=-X,-1):1,X===~~X){for(We=0,et=X;et>=10;et/=10,We++);We>de?$e.c=$e.e=null:($e.e=We,$e.c=[X]);return}Xe=String(X)}else{if(!e.test(Xe=String(X)))return $($e,Xe,ke);$e.s=Xe.charCodeAt(0)==45?(Xe=Xe.slice(1),-1):1}(We=Xe.indexOf("."))>-1&&(Xe=Xe.replace(".","")),(et=Xe.search(/e/i))>0?(We<0&&(We=et),We+=+Xe.slice(et+1),Xe=Xe.substring(0,et)):We<0&&(We=Xe.length)}else{if(T(ne,2,Sn.length,"Base"),ne==10&&fi)return $e=new nt(X),oi($e,Q+$e.e+1,ce);if(Xe=String(X),ke=typeof X=="number"){if(X*0!=0)return $($e,Xe,ke,ne);if($e.s=1/X<0?(Xe=Xe.slice(1),-1):1,nt.DEBUG&&Xe.replace(/^0\.0*|\./,"").length>15)throw Error(s+X)}else $e.s=Xe.charCodeAt(0)===45?(Xe=Xe.slice(1),-1):1;for(he=Sn.slice(0,ne),We=et=0,Fe=Xe.length;et<Fe;et++)if(he.indexOf(Ge=Xe.charAt(et))<0){if(Ge=="."){if(et>We){We=Fe;continue}}else if(!Me&&(Xe==Xe.toUpperCase()&&(Xe=Xe.toLowerCase())||Xe==Xe.toLowerCase()&&(Xe=Xe.toUpperCase()))){Me=!0,et=-1,We=0;continue}return $($e,String(X),ke,ne)}ke=!1,Xe=K(Xe,ne,10,$e.s),(We=Xe.indexOf("."))>-1?Xe=Xe.replace(".",""):We=Xe.length}for(et=0;Xe.charCodeAt(et)===48;et++);for(Fe=Xe.length;Xe.charCodeAt(--Fe)===48;);if(Xe=Xe.slice(et,++Fe)){if(Fe-=et,ke&&nt.DEBUG&&Fe>15&&(X>c||X!==r(X)))throw Error(s+$e.s*X);if((We=We-et-1)>de)$e.c=$e.e=null;else if(We<je)$e.c=[$e.e=0];else{if($e.e=We,$e.c=[],et=(We+1)%l,We<0&&(et+=l),et<Fe){for(et&&$e.c.push(+Xe.slice(0,et)),Fe-=l;et<Fe;)$e.c.push(+Xe.slice(et,et+=l));et=l-(Xe=Xe.slice(et)).length}else et-=Fe;for(;et--;Xe+="0");$e.c.push(+Xe)}}else $e.c=[$e.e=0]}nt.clone=f,nt.ROUND_UP=0,nt.ROUND_DOWN=1,nt.ROUND_CEIL=2,nt.ROUND_FLOOR=3,nt.ROUND_HALF_UP=4,nt.ROUND_HALF_DOWN=5,nt.ROUND_HALF_EVEN=6,nt.ROUND_HALF_CEIL=7,nt.ROUND_HALF_FLOOR=8,nt.EUCLID=9,nt.config=nt.set=function(X){var ne,he;if(X!=null)if(typeof X=="object"){if(X.hasOwnProperty(ne="DECIMAL_PLACES")&&(he=X[ne],T(he,0,p,ne),Q=he),X.hasOwnProperty(ne="ROUNDING_MODE")&&(he=X[ne],T(he,0,8,ne),ce=he),X.hasOwnProperty(ne="EXPONENTIAL_AT")&&(he=X[ne],he&&he.pop?(T(he[0],-p,0,ne),T(he[1],0,p,ne),Pe=he[0],ge=he[1]):(T(he,-p,p,ne),Pe=-(ge=he<0?-he:he))),X.hasOwnProperty(ne="RANGE"))if(he=X[ne],he&&he.pop)T(he[0],-p,-1,ne),T(he[1],1,p,ne),je=he[0],de=he[1];else if(T(he,-p,p,ne),he)je=-(de=he<0?-he:he);else throw Error(o+ne+" cannot be zero: "+he);if(X.hasOwnProperty(ne="CRYPTO"))if(he=X[ne],he===!!he)if(he)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Qe=he;else throw Qe=!he,Error(o+"crypto unavailable");else Qe=he;else throw Error(o+ne+" not true or false: "+he);if(X.hasOwnProperty(ne="MODULO_MODE")&&(he=X[ne],T(he,0,9,ne),_t=he),X.hasOwnProperty(ne="POW_PRECISION")&&(he=X[ne],T(he,0,p,ne),Ot=he),X.hasOwnProperty(ne="FORMAT"))if(he=X[ne],typeof he=="object")Ft=he;else throw Error(o+ne+" not an object: "+he);if(X.hasOwnProperty(ne="ALPHABET"))if(he=X[ne],typeof he=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(he))fi=he.slice(0,10)=="0123456789",Sn=he;else throw Error(o+ne+" invalid: "+he)}else throw Error(o+"Object expected: "+X);return{DECIMAL_PLACES:Q,ROUNDING_MODE:ce,EXPONENTIAL_AT:[Pe,ge],RANGE:[je,de],CRYPTO:Qe,MODULO_MODE:_t,POW_PRECISION:Ot,FORMAT:Ft,ALPHABET:Sn}},nt.isBigNumber=function(X){if(!X||X._isBigNumber!==!0)return!1;if(!nt.DEBUG)return!0;var ne,he,Ge=X.c,Me=X.e,We=X.s;e:if({}.toString.call(Ge)=="[object Array]"){if((We===1||We===-1)&&Me>=-p&&Me<=p&&Me===r(Me)){if(Ge[0]===0){if(Me===0&&Ge.length===1)return!0;break e}if(ne=(Me+1)%l,ne<1&&(ne+=l),String(Ge[0]).length==ne){for(ne=0;ne<Ge.length;ne++)if(he=Ge[ne],he<0||he>=a||he!==r(he))break e;if(he!==0)return!0}}}else if(Ge===null&&Me===null&&(We===null||We===1||We===-1))return!0;throw Error(o+"Invalid BigNumber: "+X)},nt.maximum=nt.max=function(){return br(arguments,J.lt)},nt.minimum=nt.min=function(){return br(arguments,J.gt)},nt.random=(function(){var X=9007199254740992,ne=Math.random()*X&2097151?function(){return r(Math.random()*X)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(he){var Ge,Me,We,et,ke,Fe=0,Xe=[],$e=new nt(Le);if(he==null?he=Q:T(he,0,p),et=i(he/l),Qe)if(crypto.getRandomValues){for(Ge=crypto.getRandomValues(new Uint32Array(et*=2));Fe<et;)ke=Ge[Fe]*131072+(Ge[Fe+1]>>>11),ke>=9e15?(Me=crypto.getRandomValues(new Uint32Array(2)),Ge[Fe]=Me[0],Ge[Fe+1]=Me[1]):(Xe.push(ke%1e14),Fe+=2);Fe=et/2}else if(crypto.randomBytes){for(Ge=crypto.randomBytes(et*=7);Fe<et;)ke=(Ge[Fe]&31)*281474976710656+Ge[Fe+1]*1099511627776+Ge[Fe+2]*4294967296+Ge[Fe+3]*16777216+(Ge[Fe+4]<<16)+(Ge[Fe+5]<<8)+Ge[Fe+6],ke>=9e15?crypto.randomBytes(7).copy(Ge,Fe):(Xe.push(ke%1e14),Fe+=7);Fe=et/7}else throw Qe=!1,Error(o+"crypto unavailable");if(!Qe)for(;Fe<et;)ke=ne(),ke<9e15&&(Xe[Fe++]=ke%1e14);for(et=Xe[--Fe],he%=l,et&&he&&(ke=u[l-he],Xe[Fe]=r(et/ke)*ke);Xe[Fe]===0;Xe.pop(),Fe--);if(Fe<0)Xe=[We=0];else{for(We=-1;Xe[0]===0;Xe.splice(0,1),We-=l);for(Fe=1,ke=Xe[0];ke>=10;ke/=10,Fe++);Fe<l&&(We-=l-Fe)}return $e.e=We,$e.c=Xe,$e}})(),nt.sum=function(){for(var X=1,ne=arguments,he=new nt(ne[0]);X<ne.length;)he=he.plus(ne[X++]);return he},K=(function(){var X="0123456789";function ne(he,Ge,Me,We){for(var et,ke=[0],Fe,Xe=0,$e=he.length;Xe<$e;){for(Fe=ke.length;Fe--;ke[Fe]*=Ge);for(ke[0]+=We.indexOf(he.charAt(Xe++)),et=0;et<ke.length;et++)ke[et]>Me-1&&(ke[et+1]==null&&(ke[et+1]=0),ke[et+1]+=ke[et]/Me|0,ke[et]%=Me)}return ke.reverse()}return function(he,Ge,Me,We,et){var ke,Fe,Xe,$e,yt,fn,En,ki,Ri=he.indexOf("."),Sr=Q,Di=ce;for(Ri>=0&&($e=Ot,Ot=0,he=he.replace(".",""),ki=new nt(Ge),fn=ki.pow(he.length-Ri),Ot=$e,ki.c=ne(V(w(fn.c),fn.e,"0"),10,Me,X),ki.e=ki.c.length),En=ne(he,Ge,Me,et?(ke=Sn,X):(ke=X,Sn)),Xe=$e=En.length;En[--$e]==0;En.pop());if(!En[0])return ke.charAt(0);if(Ri<0?--Xe:(fn.c=En,fn.e=Xe,fn.s=We,fn=B(fn,ki,Sr,Di,Me),En=fn.c,yt=fn.r,Xe=fn.e),Fe=Xe+Sr+1,Ri=En[Fe],$e=Me/2,yt=yt||Fe<0||En[Fe+1]!=null,yt=Di<4?(Ri!=null||yt)&&(Di==0||Di==(fn.s<0?3:2)):Ri>$e||Ri==$e&&(Di==4||yt||Di==6&&En[Fe-1]&1||Di==(fn.s<0?8:7)),Fe<1||!En[0])he=yt?V(ke.charAt(1),-Sr,ke.charAt(0)):ke.charAt(0);else{if(En.length=Fe,yt)for(--Me;++En[--Fe]>Me;)En[Fe]=0,Fe||(++Xe,En=[1].concat(En));for($e=En.length;!En[--$e];);for(Ri=0,he="";Ri<=$e;he+=ke.charAt(En[Ri++]));he=V(he,Xe,ke.charAt(0))}return he}})(),B=(function(){function X(Ge,Me,We){var et,ke,Fe,Xe,$e=0,yt=Ge.length,fn=Me%h,En=Me/h|0;for(Ge=Ge.slice();yt--;)Fe=Ge[yt]%h,Xe=Ge[yt]/h|0,et=En*Fe+Xe*fn,ke=fn*Fe+et%h*h+$e,$e=(ke/We|0)+(et/h|0)+En*Xe,Ge[yt]=ke%We;return $e&&(Ge=[$e].concat(Ge)),Ge}function ne(Ge,Me,We,et){var ke,Fe;if(We!=et)Fe=We>et?1:-1;else for(ke=Fe=0;ke<We;ke++)if(Ge[ke]!=Me[ke]){Fe=Ge[ke]>Me[ke]?1:-1;break}return Fe}function he(Ge,Me,We,et){for(var ke=0;We--;)Ge[We]-=ke,ke=Ge[We]<Me[We]?1:0,Ge[We]=ke*et+Ge[We]-Me[We];for(;!Ge[0]&&Ge.length>1;Ge.splice(0,1));}return function(Ge,Me,We,et,ke){var Fe,Xe,$e,yt,fn,En,ki,Ri,Sr,Di,$i,es,cp,Vu,W1,Tl,Wa,Wt=Ge.s==Me.s?1:-1,Bo=Ge.c,lr=Me.c;if(!Bo||!Bo[0]||!lr||!lr[0])return new nt(!Ge.s||!Me.s||(Bo?lr&&Bo[0]==lr[0]:!lr)?NaN:Bo&&Bo[0]==0||!lr?Wt*0:Wt/0);for(Ri=new nt(Wt),Sr=Ri.c=[],Xe=Ge.e-Me.e,Wt=We+Xe+1,ke||(ke=a,Xe=_(Ge.e/l)-_(Me.e/l),Wt=Wt/l|0),$e=0;lr[$e]==(Bo[$e]||0);$e++);if(lr[$e]>(Bo[$e]||0)&&Xe--,Wt<0)Sr.push(1),yt=!0;else{for(Vu=Bo.length,Tl=lr.length,$e=0,Wt+=2,fn=r(ke/(lr[0]+1)),fn>1&&(lr=X(lr,fn,ke),Bo=X(Bo,fn,ke),Tl=lr.length,Vu=Bo.length),cp=Tl,Di=Bo.slice(0,Tl),$i=Di.length;$i<Tl;Di[$i++]=0);Wa=lr.slice(),Wa=[0].concat(Wa),W1=lr[0],lr[1]>=ke/2&&W1++;do{if(fn=0,Fe=ne(lr,Di,Tl,$i),Fe<0){if(es=Di[0],Tl!=$i&&(es=es*ke+(Di[1]||0)),fn=r(es/W1),fn>1)for(fn>=ke&&(fn=ke-1),En=X(lr,fn,ke),ki=En.length,$i=Di.length;ne(En,Di,ki,$i)==1;)fn--,he(En,Tl<ki?Wa:lr,ki,ke),ki=En.length,Fe=1;else fn==0&&(Fe=fn=1),En=lr.slice(),ki=En.length;if(ki<$i&&(En=[0].concat(En)),he(Di,En,$i,ke),$i=Di.length,Fe==-1)for(;ne(lr,Di,Tl,$i)<1;)fn++,he(Di,Tl<$i?Wa:lr,$i,ke),$i=Di.length}else Fe===0&&(fn++,Di=[0]);Sr[$e++]=fn,Di[0]?Di[$i++]=Bo[cp]||0:(Di=[Bo[cp]],$i=1)}while((cp++<Vu||Di[0]!=null)&&Wt--);yt=Di[0]!=null,Sr[0]||Sr.splice(0,1)}if(ke==a){for($e=1,Wt=Sr[0];Wt>=10;Wt/=10,$e++);oi(Ri,We+(Ri.e=$e+Xe*l-1)+1,et,yt)}else Ri.e=Xe,Ri.r=+yt;return Ri}})();function Yt(X,ne,he,Ge){var Me,We,et,ke,Fe;if(he==null?he=ce:T(he,0,8),!X.c)return X.toString();if(Me=X.c[0],et=X.e,ne==null)Fe=w(X.c),Fe=Ge==1||Ge==2&&(et<=Pe||et>=ge)?A(Fe,et):V(Fe,et,"0");else if(X=oi(new nt(X),ne,he),We=X.e,Fe=w(X.c),ke=Fe.length,Ge==1||Ge==2&&(ne<=We||We<=Pe)){for(;ke<ne;Fe+="0",ke++);Fe=A(Fe,We)}else if(ne-=et,Fe=V(Fe,We,"0"),We+1>ke){if(--ne>0)for(Fe+=".";ne--;Fe+="0");}else if(ne+=We-ke,ne>0)for(We+1==ke&&(Fe+=".");ne--;Fe+="0");return X.s<0&&Me?"-"+Fe:Fe}function br(X,ne){for(var he,Ge=1,Me=new nt(X[0]);Ge<X.length;Ge++)if(he=new nt(X[Ge]),he.s)ne.call(Me,he)&&(Me=he);else{Me=he;break}return Me}function ro(X,ne,he){for(var Ge=1,Me=ne.length;!ne[--Me];ne.pop());for(Me=ne[0];Me>=10;Me/=10,Ge++);return(he=Ge+he*l-1)>de?X.c=X.e=null:he<je?X.c=[X.e=0]:(X.e=he,X.c=ne),X}$=(function(){var X=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ne=/^([^.]+)\.$/,he=/^\.([^.]+)$/,Ge=/^-?(Infinity|NaN)$/,Me=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(We,et,ke,Fe){var Xe,$e=ke?et:et.replace(Me,"");if(Ge.test($e))We.s=isNaN($e)?null:$e<0?-1:1;else{if(!ke&&($e=$e.replace(X,function(yt,fn,En){return Xe=(En=En.toLowerCase())=="x"?16:En=="b"?2:8,!Fe||Fe==Xe?fn:yt}),Fe&&(Xe=Fe,$e=$e.replace(ne,"$1").replace(he,"0.$1")),et!=$e))return new nt($e,Xe);if(nt.DEBUG)throw Error(o+"Not a"+(Fe?" base "+Fe:"")+" number: "+et);We.s=null}We.c=We.e=null}})();function oi(X,ne,he,Ge){var Me,We,et,ke,Fe,Xe,$e,yt=X.c,fn=u;if(yt){e:{for(Me=1,ke=yt[0];ke>=10;ke/=10,Me++);if(We=ne-Me,We<0)We+=l,et=ne,Fe=yt[Xe=0],$e=Fe/fn[Me-et-1]%10|0;else if(Xe=i((We+1)/l),Xe>=yt.length)if(Ge){for(;yt.length<=Xe;yt.push(0));Fe=$e=0,Me=1,We%=l,et=We-l+1}else break e;else{for(Fe=ke=yt[Xe],Me=1;ke>=10;ke/=10,Me++);We%=l,et=We-l+Me,$e=et<0?0:Fe/fn[Me-et-1]%10|0}if(Ge=Ge||ne<0||yt[Xe+1]!=null||(et<0?Fe:Fe%fn[Me-et-1]),Ge=he<4?($e||Ge)&&(he==0||he==(X.s<0?3:2)):$e>5||$e==5&&(he==4||Ge||he==6&&(We>0?et>0?Fe/fn[Me-et]:0:yt[Xe-1])%10&1||he==(X.s<0?8:7)),ne<1||!yt[0])return yt.length=0,Ge?(ne-=X.e+1,yt[0]=fn[(l-ne%l)%l],X.e=-ne||0):yt[0]=X.e=0,X;if(We==0?(yt.length=Xe,ke=1,Xe--):(yt.length=Xe+1,ke=fn[l-We],yt[Xe]=et>0?r(Fe/fn[Me-et]%fn[et])*ke:0),Ge)for(;;)if(Xe==0){for(We=1,et=yt[0];et>=10;et/=10,We++);for(et=yt[0]+=ke,ke=1;et>=10;et/=10,ke++);We!=ke&&(X.e++,yt[0]==a&&(yt[0]=1));break}else{if(yt[Xe]+=ke,yt[Xe]!=a)break;yt[Xe--]=0,ke=1}for(We=yt.length;yt[--We]===0;yt.pop());}X.e>de?X.c=X.e=null:X.e<je&&(X.c=[X.e=0])}return X}function Ht(X){var ne,he=X.e;return he===null?X.toString():(ne=w(X.c),ne=he<=Pe||he>=ge?A(ne,he):V(ne,he,"0"),X.s<0?"-"+ne:ne)}return J.absoluteValue=J.abs=function(){var X=new nt(this);return X.s<0&&(X.s=1),X},J.comparedTo=function(X,ne){return x(this,new nt(X,ne))},J.decimalPlaces=J.dp=function(X,ne){var he,Ge,Me,We=this;if(X!=null)return T(X,0,p),ne==null?ne=ce:T(ne,0,8),oi(new nt(We),X+We.e+1,ne);if(!(he=We.c))return null;if(Ge=((Me=he.length-1)-_(this.e/l))*l,Me=he[Me])for(;Me%10==0;Me/=10,Ge--);return Ge<0&&(Ge=0),Ge},J.dividedBy=J.div=function(X,ne){return B(this,new nt(X,ne),Q,ce)},J.dividedToIntegerBy=J.idiv=function(X,ne){return B(this,new nt(X,ne),0,1)},J.exponentiatedBy=J.pow=function(X,ne){var he,Ge,Me,We,et,ke,Fe,Xe,$e,yt=this;if(X=new nt(X),X.c&&!X.isInteger())throw Error(o+"Exponent not an integer: "+Ht(X));if(ne!=null&&(ne=new nt(ne)),ke=X.e>14,!yt.c||!yt.c[0]||yt.c[0]==1&&!yt.e&&yt.c.length==1||!X.c||!X.c[0])return $e=new nt(Math.pow(+Ht(yt),ke?2-z(X):+Ht(X))),ne?$e.mod(ne):$e;if(Fe=X.s<0,ne){if(ne.c?!ne.c[0]:!ne.s)return new nt(NaN);Ge=!Fe&&yt.isInteger()&&ne.isInteger(),Ge&&(yt=yt.mod(ne))}else{if(X.e>9&&(yt.e>0||yt.e<-1||(yt.e==0?yt.c[0]>1||ke&&yt.c[1]>=24e7:yt.c[0]<8e13||ke&&yt.c[0]<=9999975e7)))return We=yt.s<0&&z(X)?-0:0,yt.e>-1&&(We=1/We),new nt(Fe?1/We:We);Ot&&(We=i(Ot/l+2))}for(ke?(he=new nt(.5),Fe&&(X.s=1),Xe=z(X)):(Me=Math.abs(+Ht(X)),Xe=Me%2),$e=new nt(Le);;){if(Xe){if($e=$e.times(yt),!$e.c)break;We?$e.c.length>We&&($e.c.length=We):Ge&&($e=$e.mod(ne))}if(Me){if(Me=r(Me/2),Me===0)break;Xe=Me%2}else if(X=X.times(he),oi(X,X.e+1,1),X.e>14)Xe=z(X);else{if(Me=+Ht(X),Me===0)break;Xe=Me%2}yt=yt.times(yt),We?yt.c&&yt.c.length>We&&(yt.c.length=We):Ge&&(yt=yt.mod(ne))}return Ge?$e:(Fe&&($e=Le.div($e)),ne?$e.mod(ne):We?oi($e,Ot,ce,et):$e)},J.integerValue=function(X){var ne=new nt(this);return X==null?X=ce:T(X,0,8),oi(ne,ne.e+1,X)},J.isEqualTo=J.eq=function(X,ne){return x(this,new nt(X,ne))===0},J.isFinite=function(){return!!this.c},J.isGreaterThan=J.gt=function(X,ne){return x(this,new nt(X,ne))>0},J.isGreaterThanOrEqualTo=J.gte=function(X,ne){return(ne=x(this,new nt(X,ne)))===1||ne===0},J.isInteger=function(){return!!this.c&&_(this.e/l)>this.c.length-2},J.isLessThan=J.lt=function(X,ne){return x(this,new nt(X,ne))<0},J.isLessThanOrEqualTo=J.lte=function(X,ne){return(ne=x(this,new nt(X,ne)))===-1||ne===0},J.isNaN=function(){return!this.s},J.isNegative=function(){return this.s<0},J.isPositive=function(){return this.s>0},J.isZero=function(){return!!this.c&&this.c[0]==0},J.minus=function(X,ne){var he,Ge,Me,We,et=this,ke=et.s;if(X=new nt(X,ne),ne=X.s,!ke||!ne)return new nt(NaN);if(ke!=ne)return X.s=-ne,et.plus(X);var Fe=et.e/l,Xe=X.e/l,$e=et.c,yt=X.c;if(!Fe||!Xe){if(!$e||!yt)return $e?(X.s=-ne,X):new nt(yt?et:NaN);if(!$e[0]||!yt[0])return yt[0]?(X.s=-ne,X):new nt($e[0]?et:ce==3?-0:0)}if(Fe=_(Fe),Xe=_(Xe),$e=$e.slice(),ke=Fe-Xe){for((We=ke<0)?(ke=-ke,Me=$e):(Xe=Fe,Me=yt),Me.reverse(),ne=ke;ne--;Me.push(0));Me.reverse()}else for(Ge=(We=(ke=$e.length)<(ne=yt.length))?ke:ne,ke=ne=0;ne<Ge;ne++)if($e[ne]!=yt[ne]){We=$e[ne]<yt[ne];break}if(We&&(Me=$e,$e=yt,yt=Me,X.s=-X.s),ne=(Ge=yt.length)-(he=$e.length),ne>0)for(;ne--;$e[he++]=0);for(ne=a-1;Ge>ke;){if($e[--Ge]<yt[Ge]){for(he=Ge;he&&!$e[--he];$e[he]=ne);--$e[he],$e[Ge]+=a}$e[Ge]-=yt[Ge]}for(;$e[0]==0;$e.splice(0,1),--Xe);return $e[0]?ro(X,$e,Xe):(X.s=ce==3?-1:1,X.c=[X.e=0],X)},J.modulo=J.mod=function(X,ne){var he,Ge,Me=this;return X=new nt(X,ne),!Me.c||!X.s||X.c&&!X.c[0]?new nt(NaN):!X.c||Me.c&&!Me.c[0]?new nt(Me):(_t==9?(Ge=X.s,X.s=1,he=B(Me,X,0,3),X.s=Ge,he.s*=Ge):he=B(Me,X,0,_t),X=Me.minus(he.times(X)),!X.c[0]&&_t==1&&(X.s=Me.s),X)},J.multipliedBy=J.times=function(X,ne){var he,Ge,Me,We,et,ke,Fe,Xe,$e,yt,fn,En,ki,Ri,Sr,Di=this,$i=Di.c,es=(X=new nt(X,ne)).c;if(!$i||!es||!$i[0]||!es[0])return!Di.s||!X.s||$i&&!$i[0]&&!es||es&&!es[0]&&!$i?X.c=X.e=X.s=null:(X.s*=Di.s,!$i||!es?X.c=X.e=null:(X.c=[0],X.e=0)),X;for(Ge=_(Di.e/l)+_(X.e/l),X.s*=Di.s,Fe=$i.length,yt=es.length,Fe<yt&&(ki=$i,$i=es,es=ki,Me=Fe,Fe=yt,yt=Me),Me=Fe+yt,ki=[];Me--;ki.push(0));for(Ri=a,Sr=h,Me=yt;--Me>=0;){for(he=0,fn=es[Me]%Sr,En=es[Me]/Sr|0,et=Fe,We=Me+et;We>Me;)Xe=$i[--et]%Sr,$e=$i[et]/Sr|0,ke=En*Xe+$e*fn,Xe=fn*Xe+ke%Sr*Sr+ki[We]+he,he=(Xe/Ri|0)+(ke/Sr|0)+En*$e,ki[We--]=Xe%Ri;ki[We]=he}return he?++Ge:ki.splice(0,1),ro(X,ki,Ge)},J.negated=function(){var X=new nt(this);return X.s=-X.s||null,X},J.plus=function(X,ne){var he,Ge=this,Me=Ge.s;if(X=new nt(X,ne),ne=X.s,!Me||!ne)return new nt(NaN);if(Me!=ne)return X.s=-ne,Ge.minus(X);var We=Ge.e/l,et=X.e/l,ke=Ge.c,Fe=X.c;if(!We||!et){if(!ke||!Fe)return new nt(Me/0);if(!ke[0]||!Fe[0])return Fe[0]?X:new nt(ke[0]?Ge:Me*0)}if(We=_(We),et=_(et),ke=ke.slice(),Me=We-et){for(Me>0?(et=We,he=Fe):(Me=-Me,he=ke),he.reverse();Me--;he.push(0));he.reverse()}for(Me=ke.length,ne=Fe.length,Me-ne<0&&(he=Fe,Fe=ke,ke=he,ne=Me),Me=0;ne;)Me=(ke[--ne]=ke[ne]+Fe[ne]+Me)/a|0,ke[ne]=a===ke[ne]?0:ke[ne]%a;return Me&&(ke=[Me].concat(ke),++et),ro(X,ke,et)},J.precision=J.sd=function(X,ne){var he,Ge,Me,We=this;if(X!=null&&X!==!!X)return T(X,1,p),ne==null?ne=ce:T(ne,0,8),oi(new nt(We),X,ne);if(!(he=We.c))return null;if(Me=he.length-1,Ge=Me*l+1,Me=he[Me]){for(;Me%10==0;Me/=10,Ge--);for(Me=he[0];Me>=10;Me/=10,Ge++);}return X&&We.e+1>Ge&&(Ge=We.e+1),Ge},J.shiftedBy=function(X){return T(X,-c,c),this.times("1e"+X)},J.squareRoot=J.sqrt=function(){var X,ne,he,Ge,Me,We=this,et=We.c,ke=We.s,Fe=We.e,Xe=Q+4,$e=new nt("0.5");if(ke!==1||!et||!et[0])return new nt(!ke||ke<0&&(!et||et[0])?NaN:et?We:1/0);if(ke=Math.sqrt(+Ht(We)),ke==0||ke==1/0?(ne=w(et),(ne.length+Fe)%2==0&&(ne+="0"),ke=Math.sqrt(+ne),Fe=_((Fe+1)/2)-(Fe<0||Fe%2),ke==1/0?ne="5e"+Fe:(ne=ke.toExponential(),ne=ne.slice(0,ne.indexOf("e")+1)+Fe),he=new nt(ne)):he=new nt(ke+""),he.c[0]){for(Fe=he.e,ke=Fe+Xe,ke<3&&(ke=0);;)if(Me=he,he=$e.times(Me.plus(B(We,Me,Xe,1))),w(Me.c).slice(0,ke)===(ne=w(he.c)).slice(0,ke))if(he.e<Fe&&--ke,ne=ne.slice(ke-3,ke+1),ne=="9999"||!Ge&&ne=="4999"){if(!Ge&&(oi(Me,Me.e+Q+2,0),Me.times(Me).eq(We))){he=Me;break}Xe+=4,ke+=4,Ge=1}else{(!+ne||!+ne.slice(1)&&ne.charAt(0)=="5")&&(oi(he,he.e+Q+2,1),X=!he.times(he).eq(We));break}}return oi(he,he.e+Q+1,ce,X)},J.toExponential=function(X,ne){return X!=null&&(T(X,0,p),X++),Yt(this,X,ne,1)},J.toFixed=function(X,ne){return X!=null&&(T(X,0,p),X=X+this.e+1),Yt(this,X,ne)},J.toFormat=function(X,ne,he){var Ge,Me=this;if(he==null)X!=null&&ne&&typeof ne=="object"?(he=ne,ne=null):X&&typeof X=="object"?(he=X,X=ne=null):he=Ft;else if(typeof he!="object")throw Error(o+"Argument not an object: "+he);if(Ge=Me.toFixed(X,ne),Me.c){var We,et=Ge.split("."),ke=+he.groupSize,Fe=+he.secondaryGroupSize,Xe=he.groupSeparator||"",$e=et[0],yt=et[1],fn=Me.s<0,En=fn?$e.slice(1):$e,ki=En.length;if(Fe&&(We=ke,ke=Fe,Fe=We,ki-=We),ke>0&&ki>0){for(We=ki%ke||ke,$e=En.substr(0,We);We<ki;We+=ke)$e+=Xe+En.substr(We,ke);Fe>0&&($e+=Xe+En.slice(We)),fn&&($e="-"+$e)}Ge=yt?$e+(he.decimalSeparator||"")+((Fe=+he.fractionGroupSize)?yt.replace(new RegExp("\\d{"+Fe+"}\\B","g"),"$&"+(he.fractionGroupSeparator||"")):yt):$e}return(he.prefix||"")+Ge+(he.suffix||"")},J.toFraction=function(X){var ne,he,Ge,Me,We,et,ke,Fe,Xe,$e,yt,fn,En=this,ki=En.c;if(X!=null&&(ke=new nt(X),!ke.isInteger()&&(ke.c||ke.s!==1)||ke.lt(Le)))throw Error(o+"Argument "+(ke.isInteger()?"out of range: ":"not an integer: ")+Ht(ke));if(!ki)return new nt(En);for(ne=new nt(Le),Xe=he=new nt(Le),Ge=Fe=new nt(Le),fn=w(ki),We=ne.e=fn.length-En.e-1,ne.c[0]=u[(et=We%l)<0?l+et:et],X=!X||ke.comparedTo(ne)>0?We>0?ne:Xe:ke,et=de,de=1/0,ke=new nt(fn),Fe.c[0]=0;$e=B(ke,ne,0,1),Me=he.plus($e.times(Ge)),Me.comparedTo(X)!=1;)he=Ge,Ge=Me,Xe=Fe.plus($e.times(Me=Xe)),Fe=Me,ne=ke.minus($e.times(Me=ne)),ke=Me;return Me=B(X.minus(he),Ge,0,1),Fe=Fe.plus(Me.times(Xe)),he=he.plus(Me.times(Ge)),Fe.s=Xe.s=En.s,We=We*2,yt=B(Xe,Ge,We,ce).minus(En).abs().comparedTo(B(Fe,he,We,ce).minus(En).abs())<1?[Xe,Ge]:[Fe,he],de=et,yt},J.toNumber=function(){return+Ht(this)},J.toPrecision=function(X,ne){return X!=null&&T(X,1,p),Yt(this,X,ne,2)},J.toString=function(X){var ne,he=this,Ge=he.s,Me=he.e;return Me===null?Ge?(ne="Infinity",Ge<0&&(ne="-"+ne)):ne="NaN":(X==null?ne=Me<=Pe||Me>=ge?A(w(he.c),Me):V(w(he.c),Me,"0"):X===10&&fi?(he=oi(new nt(he),Q+Me+1,ce),ne=V(w(he.c),he.e,"0")):(T(X,2,Sn.length,"Base"),ne=K(V(w(he.c),Me,"0"),10,X,Ge,!0)),Ge<0&&he.c[0]&&(ne="-"+ne)),ne},J.valueOf=J.toJSON=function(){return Ht(this)},J._isBigNumber=!0,U!=null&&nt.set(U),nt}function _(U){var B=U|0;return U>0||U===B?B:B-1}function w(U){for(var B,K,$=1,J=U.length,Le=U[0]+"";$<J;){for(B=U[$++]+"",K=l-B.length;K--;B="0"+B);Le+=B}for(J=Le.length;Le.charCodeAt(--J)===48;);return Le.slice(0,J+1||1)}function x(U,B){var K,$,J=U.c,Le=B.c,Q=U.s,ce=B.s,Pe=U.e,ge=B.e;if(!Q||!ce)return null;if(K=J&&!J[0],$=Le&&!Le[0],K||$)return K?$?0:-ce:Q;if(Q!=ce)return Q;if(K=Q<0,$=Pe==ge,!J||!Le)return $?0:!J^K?1:-1;if(!$)return Pe>ge^K?1:-1;for(ce=(Pe=J.length)<(ge=Le.length)?Pe:ge,Q=0;Q<ce;Q++)if(J[Q]!=Le[Q])return J[Q]>Le[Q]^K?1:-1;return Pe==ge?0:Pe>ge^K?1:-1}function T(U,B,K,$){if(U<B||U>K||U!==r(U))throw Error(o+($||"Argument")+(typeof U=="number"?U<B||U>K?" out of range: ":" not an integer: ":" not a primitive number: ")+String(U))}function z(U){var B=U.c.length-1;return _(U.e/l)==B&&U.c[B]%2!=0}function A(U,B){return(U.length>1?U.charAt(0)+"."+U.slice(1):U)+(B<0?"e":"e+")+B}function V(U,B,K){var $,J;if(B<0){for(J=K+".";++B;J+=K);U=J+U}else if($=U.length,++B>$){for(J=K,B-=$;--B;J+=K);U+=J}else B<$&&(U=U.slice(0,B)+"."+U.slice(B));return U}t=f(),t.default=t.BigNumber=t,typeof define=="function"&&define.amd?define(function(){return t}):typeof xk<"u"&&xk.exports?xk.exports=t:(n||(n=typeof self<"u"&&self?self:window),n.BigNumber=t)})(Zde)});var ehe=we((sUt,Jde)=>{"use strict";var Xde=rH(),Kde=Jde.exports;(function(){"use strict";function n(c){return c<10?"0"+c:c}var t=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,r,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function a(c){return e.lastIndex=0,e.test(c)?'"'+c.replace(e,function(u){var h=o[u];return typeof h=="string"?h:"\\u"+("0000"+u.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+c+'"'}function l(c,u){var h,p,f,_,w=i,x,T=u[c],z=T!=null&&(T instanceof Xde||Xde.isBigNumber(T));switch(T&&typeof T=="object"&&typeof T.toJSON=="function"&&(T=T.toJSON(c)),typeof s=="function"&&(T=s.call(u,c,T)),typeof T){case"string":return z?T:a(T);case"number":return isFinite(T)?String(T):"null";case"boolean":case"null":case"bigint":return String(T);case"object":if(!T)return"null";if(i+=r,x=[],Object.prototype.toString.apply(T)==="[object Array]"){for(_=T.length,h=0;h<_;h+=1)x[h]=l(h,T)||"null";return f=x.length===0?"[]":i?`[
|
|
4
4
|
`+i+x.join(`,
|
|
5
5
|
`+i)+`
|
|
@@ -87,7 +87,7 @@ Consider to rely on 'then' or 'done' mode instead.`);_&&(delete e[o],i[o]=f,t.em
|
|
|
87
87
|
`).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(t.name,e);let r=(t.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(t,e){let i=t.toLowerCase();this.maybeSetNormalizedName(t,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(t,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var Ux=class{encodeKey(t){return Vue(t)}encodeValue(t){return Vue(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function f$e(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var m$e=/%(\d[a-f0-9])/gi,g$e={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vue(n){return encodeURIComponent(n).replace(m$e,(t,e)=>g$e[e]??t)}function qx(n){return`${n}`}var Rp=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ux,t.fromString){if(t.fromObject)throw new lt(2805,!1);this.map=f$e(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let i=t.fromObject[e],r=Array.isArray(i)?i.map(qx):[qx(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(i=>{let r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(qx(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let i=this.map.get(t.param)||[],r=i.indexOf(qx(t.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Qx=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function y$e(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Bue(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Hue(n){return typeof Blob<"u"&&n instanceof Blob}function jue(n){return typeof FormData<"u"&&n instanceof FormData}function v$e(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var $ue="Content-Type",que="Accept",Que="X-Request-URL",Wue="text/plain",Yue="application/json",_$e=`${Yue}, ${Wue}, */*`,y3=class n{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,i,r){this.url=e,this.method=t.toUpperCase();let o;if(y$e(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new lt(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new ah,this.context??=new Qx,!this.params)this.params=new Rp,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Bue(this.body)||Hue(this.body)||jue(this.body)||v$e(this.body)?this.body:this.body instanceof Rp?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||jue(this.body)?null:Hue(this.body)?this.body.type||null:Bue(this.body)?null:typeof this.body=="string"?Wue:this.body instanceof Rp?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Yue:null}clone(t={}){let e=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,l=t.mode||this.mode,c=t.redirect||this.redirect,u=t.credentials||this.credentials,h=t.referrer||this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,_=t.timeout??this.timeout,w=t.body!==void 0?t.body:this.body,x=t.withCredentials??this.withCredentials,T=t.reportProgress??this.reportProgress,z=t.headers||this.headers,A=t.params||this.params,V=t.context??this.context;return t.setHeaders!==void 0&&(z=Object.keys(t.setHeaders).reduce((U,B)=>U.set(B,t.setHeaders[B]),z)),t.setParams&&(A=Object.keys(t.setParams).reduce((U,B)=>U.set(B,t.setParams[B]),A)),new n(e,i,w,{params:A,headers:z,context:V,reportProgress:T,responseType:r,withCredentials:x,transferCache:f,keepalive:o,cache:a,priority:s,timeout:_,mode:l,redirect:c,credentials:u,referrer:h,integrity:p})}},Jm=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(Jm||{}),_3=class{headers;status;statusText;url;ok;type;redirected;constructor(t,e=200,i="OK"){this.headers=t.headers||new ah,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},Wx=class n extends _3{constructor(t={}){super(t)}type=Jm.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},H5=class n extends _3{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Jm.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},kf=class extends _3{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},C$e=200,w$e=204;function sB(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,credentials:n.credentials,transferCache:n.transferCache,timeout:n.timeout,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,integrity:n.integrity,referrer:n.referrer}}var Ta=(()=>{class n{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof y3)o=e;else{let l;r.headers instanceof ah?l=r.headers:l=new ah(r.headers);let c;r.params&&(r.params instanceof Rp?c=r.params:c=new Rp({fromObject:r.params})),o=new y3(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let s=rt(o).pipe(sc(l=>this.handler.handle(l)));if(e instanceof y3||r.observe==="events")return s;let a=s.pipe(xt(l=>l instanceof H5));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ze(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new lt(2806,!1);return l.body}));case"blob":return a.pipe(ze(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new lt(2807,!1);return l.body}));case"text":return a.pipe(ze(l=>{if(l.body!==null&&typeof l.body!="string")throw new lt(2808,!1);return l.body}));case"json":default:return a.pipe(ze(l=>l.body))}case"response":return a;default:throw new lt(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Rp().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,sB(r,i))}post(e,i,r={}){return this.request("POST",e,sB(r,i))}put(e,i,r={}){return this.request("PUT",e,sB(r,i))}static \u0275fac=function(i){return new(i||n)(ue(v3))};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();var b$e=new Re("");function Gue(n,t){return t(n)}function S$e(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}function x$e(n,t,e){return(i,r)=>Zs(e,()=>t(i,o=>n(o,r)))}var Gx=new Re(""),lB=new Re(""),Zue=new Re(""),cB=new Re("",{providedIn:"root",factory:()=>!0});function k$e(){let n=null;return(t,e)=>{n===null&&(n=(R(Gx,{optional:!0})??[]).reduceRight(S$e,Gue));let i=R(Hm);if(R(cB)){let o=i.add();return n(t,e).pipe(va(o))}else return n(t,e)}}var Yx=(()=>{class n extends v3{backend;injector;chain=null;pendingTasks=R(Hm);contributeToStability=R(cB);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(lB),...this.injector.get(Zue,[])]));this.chain=i.reduceRight((r,o)=>x$e(r,o,this.injector),Gue)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(va(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||n)(ue(ru),ue(vo))};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();var T$e=/^\)\]\}',?\n/,O$e=RegExp(`^${Que}:`,"m");function E$e(n){return"responseURL"in n&&n.responseURL?n.responseURL:O$e.test(n.getAllResponseHeaders())?n.getResponseHeader(Que):null}var aB=(()=>{class n{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new lt(-2800,!1);let i=this.xhrFactory;return rt(null).pipe(Ae(()=>new Zn(o=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((x,T)=>s.setRequestHeader(x,T.join(","))),e.headers.has(que)||s.setRequestHeader(que,_$e),!e.headers.has($ue)){let x=e.detectContentTypeHeader();x!==null&&s.setRequestHeader($ue,x)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let x=e.responseType.toLowerCase();s.responseType=x!=="json"?x:"text"}let a=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let x=s.statusText||"OK",T=new ah(s.getAllResponseHeaders()),z=E$e(s)||e.url;return l=new Wx({headers:T,status:s.status,statusText:x,url:z}),l},u=()=>{let{headers:x,status:T,statusText:z,url:A}=c(),V=null;T!==w$e&&(V=typeof s.response>"u"?s.responseText:s.response),T===0&&(T=V?C$e:0);let U=T>=200&&T<300;if(e.responseType==="json"&&typeof V=="string"){let B=V;V=V.replace(T$e,"");try{V=V!==""?JSON.parse(V):null}catch(K){V=B,U&&(U=!1,V={error:K,text:V})}}U?(o.next(new H5({body:V,headers:x,status:T,statusText:z,url:A||void 0})),o.complete()):o.error(new kf({error:V,headers:x,status:T,statusText:z,url:A||void 0}))},h=x=>{let{url:T}=c(),z=new kf({error:x,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(z)},p=h;e.timeout&&(p=x=>{let{url:T}=c(),z=new kf({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:T||void 0});o.error(z)});let f=!1,_=x=>{f||(o.next(c()),f=!0);let T={type:Jm.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(T.total=x.total),e.responseType==="text"&&s.responseText&&(T.partialText=s.responseText),o.next(T)},w=x=>{let T={type:Jm.UploadProgress,loaded:x.loaded};x.lengthComputable&&(T.total=x.total),o.next(T)};return s.addEventListener("load",u),s.addEventListener("error",h),s.addEventListener("timeout",p),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",_),a!==null&&s.upload&&s.upload.addEventListener("progress",w)),s.send(a),o.next({type:Jm.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",u),s.removeEventListener("timeout",p),e.reportProgress&&(s.removeEventListener("progress",_),a!==null&&s.upload&&s.upload.removeEventListener("progress",w)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(i){return new(i||n)(ue(Xm))};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),Xue=new Re(""),M$e="XSRF-TOKEN",D$e=new Re("",{providedIn:"root",factory:()=>M$e}),I$e="X-XSRF-TOKEN",z$e=new Re("",{providedIn:"root",factory:()=>I$e}),j5=class{},A$e=(()=>{class n{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=R5(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||n)(ue(Xt),ue(D$e))};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),P$e=/^(?:https?:)?\/\//i;function R$e(n,t){if(!R(Xue)||n.method==="GET"||n.method==="HEAD"||P$e.test(n.url))return t(n);let e=R(j5).getToken(),i=R(z$e);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var uB=(function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n})(uB||{});function N$e(n,t){return{\u0275kind:n,\u0275providers:t}}function dB(...n){let t=[Ta,aB,Yx,{provide:v3,useExisting:Yx},{provide:ru,useFactory:()=>R(b$e,{optional:!0})??R(aB)},{provide:lB,useValue:R$e,multi:!0},{provide:Xue,useValue:!0},{provide:j5,useClass:A$e}];for(let e of n)t.push(...e.\u0275providers);return lc(t)}var Uue=new Re("");function hB(){return N$e(uB.LegacyInterceptors,[{provide:Uue,useFactory:k$e},{provide:lB,useExisting:Uue,multi:!0}])}var Kue=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||n)(ue(Xt))};static \u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function L$e(n,t){if(typeof COMPILED>"u"||!COMPILED){let e=Mo.ng=Mo.ng||{};e[n]=t}}var fB=class{msPerTick;numTicks;constructor(t,e){this.msPerTick=t,this.numTicks=e}},mB=class{appRef;constructor(t){this.appRef=t.injector.get(Co)}timeChangeDetection(t){let e=t&&t.record,i="Change Detection";e&&"profile"in console&&typeof console.profile=="function"&&console.profile(i);let r=performance.now(),o=0;for(;o<5||performance.now()-r<500;)this.appRef.tick(),o++;let s=performance.now();e&&"profileEnd"in console&&typeof console.profileEnd=="function"&&console.profileEnd(i);let a=(s-r)/o;return console.log(`ran ${o} change detection cycles`),console.log(`${a.toFixed(2)} ms per check`),new fB(a,o)}},F$e="profiler";function Jue(n){return L$e(F$e,new mB(n)),n}var fc=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:function(i){let r=null;return i?r=new(i||n):r=ue(V$e),r},providedIn:"root"})}return n})(),V$e=(()=>{class n extends fc{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Ps.NONE:return i;case Ps.HTML:return nh(i,"HTML")?El(i):sx(this._doc,String(i)).toString();case Ps.STYLE:return nh(i,"Style")?El(i):i;case Ps.SCRIPT:if(nh(i,"Script"))return El(i);throw new lt(5200,!1);case Ps.URL:return nh(i,"URL")?El(i):h5(String(i));case Ps.RESOURCE_URL:if(nh(i,"ResourceURL"))return El(i);throw new lt(5201,!1);default:throw new lt(5202,!1)}}bypassSecurityTrustHtml(e){return IF(e)}bypassSecurityTrustStyle(e){return zF(e)}bypassSecurityTrustScript(e){return AF(e)}bypassSecurityTrustUrl(e){return PF(e)}bypassSecurityTrustResourceUrl(e){return RF(e)}static \u0275fac=function(i){return new(i||n)(ue(Xt))};static \u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var _B={};function mde(n,t){if(_B[n]=(_B[n]||0)+1,typeof t=="function")return gB(n,(...i)=>q(k({},t(...i)),{type:n}));switch(t?t._as:"empty"){case"empty":return gB(n,()=>({type:n}));case"props":return gB(n,i=>q(k({},i),{type:n}));default:throw new Error("Unexpected config.")}}function gB(n,t){return Object.defineProperty(t,"type",{value:n,writable:!1})}var lh="@ngrx/store/init",ch=(()=>{class n extends an{constructor(){super({type:lh})}next(e){if(typeof e=="function")throw new TypeError(`
|
|
88
88
|
Dispatch expected an object, instead it received a function.
|
|
89
89
|
If you're using the createAction function, make sure to invoke the function
|
|
90
|
-
before dispatching the action. For example, someAction should be someAction().`);if(typeof e>"u")throw new TypeError("Actions must be objects");if(typeof e.type>"u")throw new TypeError("Actions must have a type property");super.next(e)}complete(){}ngOnDestroy(){super.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),B$e=[ch],gde=new Re("@ngrx/store Internal Root Guard"),ede=new Re("@ngrx/store Internal Initial State"),q5=new Re("@ngrx/store Initial State"),yde=new Re("@ngrx/store Reducer Factory"),tde=new Re("@ngrx/store Internal Reducer Factory Provider"),vde=new Re("@ngrx/store Initial Reducers"),yB=new Re("@ngrx/store Internal Initial Reducers"),nde=new Re("@ngrx/store Store Features"),ide=new Re("@ngrx/store Internal Store Reducers"),vB=new Re("@ngrx/store Internal Feature Reducers"),rde=new Re("@ngrx/store Internal Feature Configs"),_de=new Re("@ngrx/store Internal Store Features"),ode=new Re("@ngrx/store Internal Feature Reducers Token"),Cde=new Re("@ngrx/store Feature Reducers"),sde=new Re("@ngrx/store User Provided Meta Reducers"),Zx=new Re("@ngrx/store Meta Reducers"),ade=new Re("@ngrx/store Internal Resolved Meta Reducers"),lde=new Re("@ngrx/store User Runtime Checks Config"),cde=new Re("@ngrx/store Internal User Runtime Checks Config"),$5=new Re("@ngrx/store Internal Runtime Checks"),SB=new Re("@ngrx/store Check if Action types are unique");function S3(n,t={}){let e=Object.keys(n),i={};for(let o=0;o<e.length;o++){let s=e[o];typeof n[s]=="function"&&(i[s]=n[s])}let r=Object.keys(i);return function(s,a){s=s===void 0?t:s;let l=!1,c={};for(let u=0;u<r.length;u++){let h=r[u],p=i[h],f=s[h],_=p(f,a);c[h]=_,l=l||_!==f}return l?c:s}}function H$e(n,t){return Object.keys(n).filter(e=>e!==t).reduce((e,i)=>Object.assign(e,{[i]:n[i]}),{})}function wde(...n){return function(t){if(n.length===0)return t;let e=n[n.length-1];return n.slice(0,-1).reduceRight((r,o)=>o(r),e(t))}}function bde(n,t){return Array.isArray(t)&&t.length>0&&(n=wde.apply(null,[...t,n])),(e,i)=>{let r=n(e);return(o,s)=>(o=o===void 0?i:o,r(o,s))}}function j$e(n){let t=Array.isArray(n)&&n.length>0?wde(...n):e=>e;return(e,i)=>(e=t(e),(r,o)=>(r=r===void 0?i:r,e(r,o)))}var e2=class extends Zn{},w3=class extends ch{},Kx="@ngrx/store/update-reducers",Xx=(()=>{class n extends an{constructor(e,i,r,o){super(o(r,i)),this.dispatcher=e,this.initialState=i,this.reducers=r,this.reducerFactory=o}get currentReducers(){return this.reducers}addFeature(e){this.addFeatures([e])}addFeatures(e){let i=e.reduce((r,{reducers:o,reducerFactory:s,metaReducers:a,initialState:l,key:c})=>{let u=typeof o=="function"?j$e(a)(o,l):bde(s,a)(o,l);return r[c]=u,r},{});this.addReducers(i)}removeFeature(e){this.removeFeatures([e])}removeFeatures(e){this.removeReducers(e.map(i=>i.key))}addReducer(e,i){this.addReducers({[e]:i})}addReducers(e){this.reducers=k(k({},this.reducers),e),this.updateReducers(Object.keys(e))}removeReducer(e){this.removeReducers([e])}removeReducers(e){e.forEach(i=>{this.reducers=H$e(this.reducers,i)}),this.updateReducers(e)}updateReducers(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Kx,features:e})}ngOnDestroy(){this.complete()}}return n.\u0275fac=function(e){return new(e||n)(ue(w3),ue(q5),ue(vde),ue(yde))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),$$e=[Xx,{provide:e2,useExisting:Xx},{provide:w3,useExisting:ch}],t2=(()=>{class n extends fe{ngOnDestroy(){this.complete()}}return n.\u0275fac=(()=>{let t;return function(i){return(t||(t=so(n)))(i||n)}})(),n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),q$e=[t2],b3=class extends Zn{},ude=(()=>{class n extends an{constructor(e,i,r,o){super(o);let a=e.pipe(bv(L9)).pipe(An(i)),l={state:o},c=a.pipe(pp(U$e,l));this.stateSubscription=c.subscribe(({state:u,action:h})=>{this.next(u),r.next(h)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return n.INIT=lh,n.\u0275fac=function(e){return new(e||n)(ue(ch),ue(e2),ue(t2),ue(q5))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();function U$e(n={state:void 0},[t,e]){let{state:i}=n;return{state:e(i,t),action:t}}var Q$e=[ude,{provide:b3,useExisting:ude}],mn=(()=>{class n extends Zn{constructor(e,i,r){super(),this.actionsObserver=i,this.reducerManager=r,this.source=e}select(e,...i){return ni.call(null,e,...i)(this)}lift(e){let i=new n(this,this.actionsObserver,this.reducerManager);return i.operator=e,i}dispatch(e){this.actionsObserver.next(e)}next(e){this.actionsObserver.next(e)}error(e){this.actionsObserver.error(e)}complete(){this.actionsObserver.complete()}addReducer(e,i){this.reducerManager.addReducer(e,i)}removeReducer(e){this.reducerManager.removeReducer(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(b3),ue(ch),ue(Xx))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),W$e=[mn];function ni(n,t,...e){return function(r){let o;if(typeof n=="string"){let s=[t,...e].filter(Boolean);o=r.pipe(dN(n,...s))}else if(typeof n=="function")o=r.pipe(ze(s=>n(s,t)));else throw new TypeError(`Unexpected type '${typeof n}' in select operator, expected 'string' or 'function'`);return o.pipe(Hn())}}var xB="https://ngrx.io/guide/store/configuration/runtime-checks";function dde(n){return n===void 0}function hde(n){return n===null}function Sde(n){return Array.isArray(n)}function Y$e(n){return typeof n=="string"}function G$e(n){return typeof n=="boolean"}function Z$e(n){return typeof n=="number"}function xde(n){return typeof n=="object"&&n!==null}function X$e(n){return xde(n)&&!Sde(n)}function K$e(n){if(!X$e(n))return!1;let t=Object.getPrototypeOf(n);return t===Object.prototype||t===null}function CB(n){return typeof n=="function"}function J$e(n){return CB(n)&&n.hasOwnProperty("\u0275cmp")}function eqe(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function pde(n,t){return n===t}function tqe(n,t,e){for(let i=0;i<n.length;i++)if(!e(n[i],t[i]))return!0;return!1}function kde(n,t=pde,e=pde){let i=null,r=null,o;function s(){i=null,r=null}function a(u=void 0){o={result:u}}function l(){o=void 0}function c(){if(o!==void 0)return o.result;if(!i)return r=n.apply(null,arguments),i=arguments,r;if(!tqe(arguments,i,t))return r;let u=n.apply(null,arguments);return i=arguments,e(r,u)?r:(r=u,u)}return{memoized:c,reset:s,setResult:a,clearResult:l}}function pn(...n){return iqe(kde)(...n)}function nqe(n,t,e,i){if(e===void 0){let o=t.map(s=>s(n));return i.memoized.apply(null,o)}let r=t.map(o=>o(n,e));return i.memoized.apply(null,[...r,e])}function iqe(n,t={stateFn:nqe}){return function(...e){let i=e;if(Array.isArray(i[0])){let[u,...h]=i;i=[...u,...h]}else i.length===1&&rqe(i[0])&&(i=oqe(i[0]));let r=i.slice(0,i.length-1),o=i[i.length-1],s=r.filter(u=>u.release&&typeof u.release=="function"),a=n(function(...u){return o.apply(null,u)}),l=kde(function(u,h){return t.stateFn.apply(null,[u,r,h,a])});function c(){l.reset(),a.reset(),s.forEach(u=>u.release())}return Object.assign(l.memoized,{release:c,projector:a.memoized,setResult:l.setResult,clearResult:l.clearResult})}}function rqe(n){return!!n&&typeof n=="object"&&Object.values(n).every(t=>typeof t=="function")}function oqe(n){let t=Object.values(n),e=Object.keys(n),i=(...r)=>e.reduce((o,s,a)=>q(k({},o),{[s]:r[a]}),{});return[...t,i]}function sqe(n){return n instanceof Re?R(n):n}function aqe(n,t){return t.map((e,i)=>{if(n[i]instanceof Re){let r=R(n[i]);return{key:e.key,reducerFactory:r.reducerFactory?r.reducerFactory:S3,metaReducers:r.metaReducers?r.metaReducers:[],initialState:r.initialState}}return e})}function lqe(n){return n.map(t=>t instanceof Re?R(t):t)}function Tde(n){return typeof n=="function"?n():n}function cqe(n,t){return n.concat(t)}function uqe(){if(R(mn,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function dqe(n,t){return function(e,i){let r=t.action(i)?wB(i):i,o=n(e,r);return t.state()?wB(o):o}}function wB(n){Object.freeze(n);let t=CB(n);return Object.getOwnPropertyNames(n).forEach(e=>{if(!e.startsWith("\u0275")&&eqe(n,e)&&(!t||e!=="caller"&&e!=="callee"&&e!=="arguments")){let i=n[e];(xde(i)||CB(i))&&!Object.isFrozen(i)&&wB(i)}}),n}function hqe(n,t){return function(e,i){if(t.action(i)){let o=bB(i);fde(o,"action")}let r=n(e,i);if(t.state()){let o=bB(r);fde(o,"state")}return r}}function bB(n,t=[]){return(dde(n)||hde(n))&&t.length===0?{path:["root"],value:n}:Object.keys(n).reduce((i,r)=>{if(i)return i;let o=n[r];return J$e(o)?i:dde(o)||hde(o)||Z$e(o)||G$e(o)||Y$e(o)||Sde(o)?!1:K$e(o)?bB(o,[...t,r]):{path:[...t,r],value:o}},!1)}function fde(n,t){if(n===!1)return;let e=n.path.join("."),i=new Error(`Detected unserializable ${t} at "${e}". ${xB}#strict${t}serializability`);throw i.value=n.value,i.unserializablePath=e,i}function pqe(n,t){return function(e,i){if(t.action(i)&&!at.isInAngularZone())throw new Error(`Action '${i.type}' running outside NgZone. ${xB}#strictactionwithinngzone`);return n(e,i)}}function fqe(n){return Sa()?k({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},n):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function mqe({strictActionSerializability:n,strictStateSerializability:t}){return e=>n||t?hqe(e,{action:i=>n&&!kB(i),state:()=>t}):e}function gqe({strictActionImmutability:n,strictStateImmutability:t}){return e=>n||t?dqe(e,{action:i=>n&&!kB(i),state:()=>t}):e}function kB(n){return n.type.startsWith("@ngrx")}function yqe({strictActionWithinNgZone:n}){return t=>n?pqe(t,{action:e=>n&&!kB(e)}):t}function vqe(n){return[{provide:cde,useValue:n},{provide:lde,useFactory:_qe,deps:[cde]},{provide:$5,deps:[lde],useFactory:fqe},{provide:Zx,multi:!0,deps:[$5],useFactory:gqe},{provide:Zx,multi:!0,deps:[$5],useFactory:mqe},{provide:Zx,multi:!0,deps:[$5],useFactory:yqe}]}function Ode(){return[{provide:SB,multi:!0,deps:[$5],useFactory:Cqe}]}function _qe(n){return n}function Cqe(n){if(!n.strictActionTypeUniqueness)return;let t=Object.entries(_B).filter(([,e])=>e>1).map(([e])=>e);if(t.length)throw new Error(`Action types are registered more than once, ${t.map(e=>`"${e}"`).join(", ")}. ${xB}#strictactiontypeuniqueness`)}function wqe(n={},t={}){return[{provide:gde,useFactory:uqe},{provide:ede,useValue:t.initialState},{provide:q5,useFactory:Tde,deps:[ede]},{provide:yB,useValue:n},{provide:ide,useExisting:n instanceof Re?n:yB},{provide:vde,deps:[yB,[new _f(ide)]],useFactory:sqe},{provide:sde,useValue:t.metaReducers?t.metaReducers:[]},{provide:ade,deps:[Zx,sde],useFactory:cqe},{provide:tde,useValue:t.reducerFactory?t.reducerFactory:S3},{provide:yde,deps:[tde,ade],useFactory:bde},B$e,$$e,q$e,Q$e,W$e,vqe(t.runtimeChecks),Ode()]}function bqe(n,t,e={}){return[{provide:rde,multi:!0,useValue:n instanceof Object?{}:e},{provide:nde,multi:!0,useValue:{key:n instanceof Object?n.name:n,reducerFactory:!(e instanceof Re)&&e.reducerFactory?e.reducerFactory:S3,metaReducers:!(e instanceof Re)&&e.metaReducers?e.metaReducers:[],initialState:!(e instanceof Re)&&e.initialState?e.initialState:void 0}},{provide:_de,deps:[rde,nde],useFactory:aqe},{provide:vB,multi:!0,useValue:n instanceof Object?n.reducer:t},{provide:ode,multi:!0,useExisting:t instanceof Re?t:vB},{provide:Cde,multi:!0,deps:[vB,[new _f(ode)]],useFactory:lqe},Ode()]}var U5=(()=>{class n{constructor(e,i,r,o,s,a){}}return n.\u0275fac=function(e){return new(e||n)(ue(ch),ue(e2),ue(t2),ue(mn),ue(gde,8),ue(SB,8))},n.\u0275mod=He({type:n}),n.\u0275inj=Be({}),n})(),Jx=(()=>{class n{constructor(e,i,r,o,s){this.features=e,this.featureReducers=i,this.reducerManager=r;let a=e.map((l,c)=>{let h=i.shift()[c];return q(k({},l),{reducers:h,initialState:Tde(l.initialState)})});r.addFeatures(a)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return n.\u0275fac=function(e){return new(e||n)(ue(_de),ue(Cde),ue(Xx),ue(U5),ue(SB,8))},n.\u0275mod=He({type:n}),n.\u0275inj=Be({}),n})(),Ede=(()=>{class n{static forRoot(e,i){return{ngModule:U5,providers:[...wqe(e,i)]}}static forFeature(e,i,r={}){return{ngModule:Jx,providers:[...bqe(e,i,r)]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=He({type:n}),n.\u0275inj=Be({}),n})();var Y5=class{},Ide=(()=>{class n{handle(e){return e.key}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),x3=class{},zde=(()=>{class n extends x3{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=so(n)))(r||n)}})();static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),Of=class{},Ade=(()=>{class n extends Of{getTranslation(e){return rt({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=so(n)))(r||n)}})();static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();function ek(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;let e=typeof n,i=typeof t,r;if(e==i&&e=="object")if(Array.isArray(n)){if(!Array.isArray(t))return!1;if((r=n.length)==t.length){for(let o=0;o<r;o++)if(!ek(n[o],t[o]))return!1;return!0}}else{if(Array.isArray(t))return!1;if(Np(n)&&Np(t)){let o=Object.create(null);for(let s in n){if(!ek(n[s],t[s]))return!1;o[s]=!0}for(let s in t)if(!(s in o)&&typeof t[s]<"u")return!1;return!0}}return!1}function Tf(n){return typeof n<"u"&&n!==null}function Dde(n){return n!==void 0}function Np(n){return W5(n)&&!n2(n)&&n!==null}function W5(n){return typeof n=="object"&&n!==null}function n2(n){return Array.isArray(n)}function tk(n){return typeof n=="string"}function Sqe(n){return typeof n=="function"}function nk(n){if(n2(n))return n.map(t=>nk(t));if(Np(n)){let t={};return Object.keys(n).forEach(e=>{t[e]=nk(n[e])}),t}else return n}function MB(n,t){if(!W5(n))return nk(t);let e=nk(n);return W5(e)&&W5(t)&&Object.keys(t).forEach(i=>{Np(t[i])?i in n?e[i]=MB(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}function Pde(n,t){let e=t.split(".");t="";do{t+=e.shift();let i=!e.length;if(Tf(n)){if(Np(n)&&Dde(n[t])&&(Np(n[t])||n2(n[t])||i)){n=n[t],t="";continue}if(n2(n)){let r=parseInt(t,10);if(Dde(n[r])&&(Np(n[r])||n2(n[r])||i)){n=n[r],t="";continue}}}if(i){n=void 0;continue}t+="."}while(e.length);return n}function xqe(n,t,e){return MB(n,kqe(t,e))}function kqe(n,t){return n.split(".").reduceRight((e,i)=>({[i]:e}),t)}var k3=class{},Rde=(()=>{class n extends k3{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(tk(e))return this.interpolateString(e,i);if(Sqe(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let s=this.getInterpolationReplacement(i,o);return s!==void 0?s:r}):e}getInterpolationReplacement(e,i){return this.formatValue(Pde(e,i))}formatValue(e){if(tk(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(n2(e))return e.join(", ");if(W5(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=so(n)))(r||n)}})();static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),TB=(()=>{class n{_onTranslationChange=new fe;_onLangChange=new fe;_onFallbackLangChange=new fe;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?MB(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return Pde(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),OB=new Re("TRANSLATE_CONFIG"),Q5=n=>ga(n)?n:rt(n);var G5=(()=>{class n{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=R(Of);compiler=R(x3);parser=R(k3);missingTranslationHandler=R(Y5);store=R(TB);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=k({extend:!1,fallbackLang:null},R(OB,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ga(i)?(i.pipe(Ct(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),rt(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ga(i)?(i.pipe(Ct(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),rt(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe($u(1),Ct(1));return this.loadingTranslations=i.pipe(ze(r=>this.compiler.compileTranslations(r,e)),$u(1),Ct(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Tf(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(k({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Tf(e))return n2(e)?this.runInterpolationOnArray(e,i):Np(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let s=this.runInterpolation(e[o],i);s!==void 0&&(r[o]=s)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let a of e)r[a]=this.getParsedResultForKey(a,i),o=o||ga(r[a]);if(!o)return r;let s=e.map(a=>Q5(r[a]));return Hu(s).pipe(ze(a=>{let l={};return a.forEach((c,u)=>{l[e[u]]=c}),l}))}get(e,i){if(!Tf(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(sc(()=>Q5(this.getParsedResult(e,i)))):Q5(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Tf(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return bm(Ga(()=>this.get(e,i)),this.onTranslationChange.pipe(Ae(()=>{let r=this.getParsedResult(e,i);return Q5(r)})))}stream(e,i){if(!Tf(e)||!e.length)throw new Error('Parameter "key" required');return bm(Ga(()=>this.get(e,i)),this.onLangChange.pipe(Ae(()=>{let r=this.getParsedResult(e,i);return Q5(r)})))}instant(e,i){if(!Tf(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ga(r)?Array.isArray(e)?e.reduce((o,s)=>(o[s]=s,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,xqe(this.store.getTranslations(r),e,tk(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return n.getBrowserLang()}getBrowserCultureLang(){return n.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();var Qt=(()=>{class n{translate=R(G5);_ref=R(Tt);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=s=>{this.value=s!==void 0?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(e,i);ga(s)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(ek(e,this.lastKey)&&ek(i,this.lastParams))return this.value;let r;if(Tf(i[0])&&i.length)if(tk(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(s){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else Np(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||n)};static \u0275pipe=ao({name:"translate",type:n,pure:!1});static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();function Nde(n){return{provide:Of,useClass:n}}function Lde(n){return{provide:x3,useClass:n}}function Fde(n){return{provide:k3,useClass:n}}function Vde(n){return{provide:Y5,useClass:n}}function Bde(n={}){return EB(k({compiler:Lde(zde),parser:Fde(Rde),loader:Nde(Ade),missingTranslationHandler:Vde(Ide)},n),!0)}function EB(n={},t){let e=[];n.loader&&e.push(n.loader),n.compiler&&e.push(n.compiler),n.parser&&e.push(n.parser),n.missingTranslationHandler&&e.push(n.missingTranslationHandler),t&&e.push(TB),(n.useDefaultLang||n.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),n.useDefaultLang===!0&&n.defaultLanguage&&(n.fallbackLang=n.defaultLanguage));let i={fallbackLang:n.fallbackLang??null,lang:n.lang,extend:n.extend??!1};return e.push({provide:OB,useValue:i}),e.push({provide:G5,useClass:G5,deps:[TB,Of,x3,k3,Y5,OB]}),e}var DB=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[...EB(k({compiler:Lde(zde),parser:Fde(Rde),loader:Nde(Ade),missingTranslationHandler:Vde(Ide)},e),!0)]}}static forChild(e={}){return{ngModule:n,providers:[...EB(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=He({type:n});static \u0275inj=Be({})}return n})();Uu();var Hde={name:"@altairgraphql/app",description:"Contains the altair app",version:"8.5.5",author:"Samuel Imolorhe <hello@altairgraphql.dev> (https://altairgraphql.dev/)",dependencies:{"@altairgraphql/api-utils":"workspace:*","@altairgraphql/db":"workspace:*","@altairgraphql/electron-interop":"workspace:*","@altairgraphql/tauri":"workspace:*","@angular/animations":"20.3.19","@angular/cdk":"20.2.7","@angular/cli":"20.3.4","@angular/common":"20.3.19","@angular/core":"^20.3.3","@angular/forms":"20.3.19","@angular/platform-browser":"20.3.19","@angular/platform-browser-dynamic":"20.3.19","@angular/platform-server":"20.3.19","@angular/router":"20.3.19","@apollo/client":"3.5.6","@codemirror/autocomplete":"^6.20.0","@codemirror/commands":"^6.10.0","@codemirror/lang-javascript":"^6.2.4","@codemirror/lang-json":"^6.0.2","@codemirror/language":"^6.11.3","@codemirror/lint":"^6.9.2","@codemirror/search":"^6.5.11","@codemirror/state":"^6.5.2","@codemirror/view":"^6.38.8","@emotion/css":"^11.13.5","@fontsource/jetbrains-mono":"4.2.2","@lezer/common":"1.4.0","@lezer/highlight":"1.2.3","@lezer/lr":"1.4.4","@ngneat/hot-toast":"2.0.1","@ngneat/overview":"1.0.0","@ngneat/until-destroy":"8.0.1","@ngrx/effects":"15.4.0","@ngrx/store":"15.4.0","@ngrx/store-devtools":"15.4.0","@ngui/auto-complete":"3.0.0","@ngx-translate/core":"^17.0.0","@ngx-translate/http-loader":"^17.0.0","@sentry/electron":"^7.5.0","@supabase/supabase-js":"1.29.1","@webcomponents/custom-elements":"1.4.1",abab:"2.0.6",actioncable:"5.2.8",ajv:"^8.11.2","altair-graphql-core":"workspace:*","angular-resizable-element":"^6.0.0","angular-split":"^18.0.0","apollo-cache-inmemory":"1.6.6","apollo-link":"1.2.14","apollo-link-http":"1.5.17","aws-appsync-auth-link":"^3.0.8","aws-appsync-subscription-link":"^3.1.3","cm6-graphql":"0.0.14","codemirror-graphql":"1.0.2","codemirror-json-schema":"^0.6.0",comlink:"4.3.0","compare-versions":"^6.1.1","cookie-parser":"1.4.5","core-js":"3.6.5","crypto-js":"3.3.0",curlup:"1.0.0",deepmerge:"4.2.2",dexie:"^4.4.2",dompurify:"^3.4.2",express:"^4.19.2","file-dialog":"0.0.8","file-saver":"2.0.2","fuse.js":"6.4.6",graphql:"15.5.1","graphql-language-service":"^5.2.0","graphql-language-service-parser":"1.10.4","graphql-language-service-types":"1.8.2","graphql-query-compress":"1.2.3","graphql-ws":"5.9.1","hotkeys-js":"^3.13.15","json-bigint":"^1.0.0","json-schema":"^0.4.0","lodash-es":"4.17.21",loglevel:"1.8.0","loglevel-plugin-prefix":"0.8.4","lucide-angular":"^0.298.0",marked:"^15.0.3",memoizee:"0.4.14","ng-zorro-antd":"^15.1.1","ngrx-store-localstorage":"12.0.1","ngx-cookie-service":"14.0.1","ngx-markdown":"^14.0.1","ngx-pipes":"^3.2.2","ngx-sonner":"^3.1.0","ngx-take-until-destroy":"5.4.0","ngx-toastr":"^18.0.0",nx:"17.1.3","object-path":"0.11.5",prettier:"^3.2.5",rxjs:"7.8.1","sanitize-html":"2.7.1","subscriptions-transport-ws":"0.9.19",sval:"0.4.8",tslib:"2.0.0",uuid:"^14.0.0",zod:"catalog:","zone.js":"0.15.1"},devDependencies:{"@altairgraphql/iframe-sandbox":"workspace:*","@analogjs/vite-plugin-angular":"^2.3.1","@analogjs/vitest-angular":"^2.3.1","@angular-eslint/builder":"20.3.0","@angular-eslint/eslint-plugin":"20.3.0","@angular-eslint/eslint-plugin-template":"20.3.0","@angular-eslint/schematics":"20.3.0","@angular-eslint/template-parser":"20.3.0","@angular/build":"^20.3.4","@angular/compiler":"20.3.19","@angular/compiler-cli":"20.3.19","@ngrx/schematics":"12.4.0","@playwright/test":"catalog:","@sentry/cli":"^3.0.0","@types/actioncable":"5.2.3","@types/chrome":"^0.0.209","@types/codemirror":"^5.60.15","@types/crypto-js":"^4.0.1","@types/dompurify":"^3.2.0","@types/electron":"^1.6.10","@types/file-saver":"^2.0.1","@types/firefox-webext-browser":"^109.0.0","@types/graphql":"^14.5.0","@types/json-bigint":"^1.0.1","@types/json-schema":"^7.0.6","@types/lodash-es":"^4.17.4","@types/memoizee":"^0.4.3","@types/mousetrap":"^1.6.3","@types/node":"catalog:","@types/object-path":"^0.11.0","@types/sanitize-html":"^2.6.2","@types/to-snake-case":"^1.0.0","@types/uuid":"^9.0.5","@types/zen-observable":"^0.8.1","@typescript-eslint/eslint-plugin":"^8.46.0","@typescript-eslint/parser":"^8.46.0","@vitest/coverage-v8":"catalog:","babel-plugin-transform-async-to-generator":"6.24.1","babel-preset-env":"1.7.0","babel-preset-react":"6.24.1",chai:"4.2.0","chai-as-promised":"7.1.1",electron:"catalog:",eslint:"^8.57.0","eslint-config-altair":"workspace:*","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.27.4","eslint-plugin-no-unsanitized":"^4.0.2","eslint-plugin-prettier":"^5.1.3","fake-indexeddb":"^4.0.1","jest-chrome":"^0.8.0",jsdom:"^28.1.0",less:"^4.2.0",ncp:"2.0.0","ng-mocks":"^14.13.4","ngrx-store-freeze":"0.2.4",protractor:"7.0.0",react:"17.0.1","rxjs-tslint-rules":"4.32.0","start-server-and-test":"1.11.0","ts-mocks":"2.6.1","ts-node":"9.1.1",typescript:"catalog:",vite:"catalog:","vite-tsconfig-paths":"^6.1.1",vitest:"catalog:"},homepage:"https://altair-graphql.github.io/altair/",license:"MIT",main:"dist/browser/main.js",private:!0,scripts:{analyze:"ng build --stats-json && npx webpack-bundle-analyzer dist/stats.json","analyze:prod":"ng build --aot --stats-json && npx webpack-bundle-analyzer dist/stats.json","ng:build":"cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm ng build --aot --stats-json --output-hashing=none",build:"node scripts/build.js",lint:"ng lint","new:component":"ng g component modules/altair/components/",ng:"ng",bootstrap:"pnpm build",start:"ng serve","sentry:sourcemaps:inject":"sentry-cli sourcemaps inject --org altair-graphql --project electron ./dist",test:"vitest run && ng lint","test-build":"ng lint && pnpm build && pnpm test-single-run","test-single-run":"vitest run","test:coverage":"vitest run --coverage","test:watch":"vitest"},repository:{type:"git",url:"https://github.com/altair-graphql/altair.git"}};var sr={production:!0,version:Hde.version,serverReady:!0};var IB="START_LOADING",Z5="STOP_LOADING",zB="SET_WINDOW_NAME",AB="SET_WINDOW_ID_IN_COLLECTION",jde="NOTIFY_EXPERIMENTAL",ik=class{constructor(t){this.windowId=t,this.type=IB}},i2=class{constructor(t){this.windowId=t,this.type=Z5}},nd=class{constructor(t,e){this.windowId=t,this.payload=e,this.type=zB}},rk=class{constructor(t,e){this.windowId=t,this.payload=e,this.type=AB}};var PB=()=>({isLoading:!1,title:"New window",hasDynamicTitle:!0});function $de(n=PB(),t){switch(t.type){case IB:return q(k({},n),{isLoading:!0});case Z5:return q(k({},n),{isLoading:!1});case zB:return q(k({},n),{title:t.payload.title,hasDynamicTitle:!t.payload.setByUser});case AB:return q(k({},n),{windowIdInCollection:t.payload.windowIdInCollection,collectionId:t.payload.collectionId});default:return n}}var qde=`
|
|
90
|
+
before dispatching the action. For example, someAction should be someAction().`);if(typeof e>"u")throw new TypeError("Actions must be objects");if(typeof e.type>"u")throw new TypeError("Actions must have a type property");super.next(e)}complete(){}ngOnDestroy(){super.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),B$e=[ch],gde=new Re("@ngrx/store Internal Root Guard"),ede=new Re("@ngrx/store Internal Initial State"),q5=new Re("@ngrx/store Initial State"),yde=new Re("@ngrx/store Reducer Factory"),tde=new Re("@ngrx/store Internal Reducer Factory Provider"),vde=new Re("@ngrx/store Initial Reducers"),yB=new Re("@ngrx/store Internal Initial Reducers"),nde=new Re("@ngrx/store Store Features"),ide=new Re("@ngrx/store Internal Store Reducers"),vB=new Re("@ngrx/store Internal Feature Reducers"),rde=new Re("@ngrx/store Internal Feature Configs"),_de=new Re("@ngrx/store Internal Store Features"),ode=new Re("@ngrx/store Internal Feature Reducers Token"),Cde=new Re("@ngrx/store Feature Reducers"),sde=new Re("@ngrx/store User Provided Meta Reducers"),Zx=new Re("@ngrx/store Meta Reducers"),ade=new Re("@ngrx/store Internal Resolved Meta Reducers"),lde=new Re("@ngrx/store User Runtime Checks Config"),cde=new Re("@ngrx/store Internal User Runtime Checks Config"),$5=new Re("@ngrx/store Internal Runtime Checks"),SB=new Re("@ngrx/store Check if Action types are unique");function S3(n,t={}){let e=Object.keys(n),i={};for(let o=0;o<e.length;o++){let s=e[o];typeof n[s]=="function"&&(i[s]=n[s])}let r=Object.keys(i);return function(s,a){s=s===void 0?t:s;let l=!1,c={};for(let u=0;u<r.length;u++){let h=r[u],p=i[h],f=s[h],_=p(f,a);c[h]=_,l=l||_!==f}return l?c:s}}function H$e(n,t){return Object.keys(n).filter(e=>e!==t).reduce((e,i)=>Object.assign(e,{[i]:n[i]}),{})}function wde(...n){return function(t){if(n.length===0)return t;let e=n[n.length-1];return n.slice(0,-1).reduceRight((r,o)=>o(r),e(t))}}function bde(n,t){return Array.isArray(t)&&t.length>0&&(n=wde.apply(null,[...t,n])),(e,i)=>{let r=n(e);return(o,s)=>(o=o===void 0?i:o,r(o,s))}}function j$e(n){let t=Array.isArray(n)&&n.length>0?wde(...n):e=>e;return(e,i)=>(e=t(e),(r,o)=>(r=r===void 0?i:r,e(r,o)))}var e2=class extends Zn{},w3=class extends ch{},Kx="@ngrx/store/update-reducers",Xx=(()=>{class n extends an{constructor(e,i,r,o){super(o(r,i)),this.dispatcher=e,this.initialState=i,this.reducers=r,this.reducerFactory=o}get currentReducers(){return this.reducers}addFeature(e){this.addFeatures([e])}addFeatures(e){let i=e.reduce((r,{reducers:o,reducerFactory:s,metaReducers:a,initialState:l,key:c})=>{let u=typeof o=="function"?j$e(a)(o,l):bde(s,a)(o,l);return r[c]=u,r},{});this.addReducers(i)}removeFeature(e){this.removeFeatures([e])}removeFeatures(e){this.removeReducers(e.map(i=>i.key))}addReducer(e,i){this.addReducers({[e]:i})}addReducers(e){this.reducers=k(k({},this.reducers),e),this.updateReducers(Object.keys(e))}removeReducer(e){this.removeReducers([e])}removeReducers(e){e.forEach(i=>{this.reducers=H$e(this.reducers,i)}),this.updateReducers(e)}updateReducers(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Kx,features:e})}ngOnDestroy(){this.complete()}}return n.\u0275fac=function(e){return new(e||n)(ue(w3),ue(q5),ue(vde),ue(yde))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),$$e=[Xx,{provide:e2,useExisting:Xx},{provide:w3,useExisting:ch}],t2=(()=>{class n extends fe{ngOnDestroy(){this.complete()}}return n.\u0275fac=(()=>{let t;return function(i){return(t||(t=so(n)))(i||n)}})(),n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),q$e=[t2],b3=class extends Zn{},ude=(()=>{class n extends an{constructor(e,i,r,o){super(o);let a=e.pipe(bv(L9)).pipe(An(i)),l={state:o},c=a.pipe(pp(U$e,l));this.stateSubscription=c.subscribe(({state:u,action:h})=>{this.next(u),r.next(h)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return n.INIT=lh,n.\u0275fac=function(e){return new(e||n)(ue(ch),ue(e2),ue(t2),ue(q5))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})();function U$e(n={state:void 0},[t,e]){let{state:i}=n;return{state:e(i,t),action:t}}var Q$e=[ude,{provide:b3,useExisting:ude}],mn=(()=>{class n extends Zn{constructor(e,i,r){super(),this.actionsObserver=i,this.reducerManager=r,this.source=e}select(e,...i){return ni.call(null,e,...i)(this)}lift(e){let i=new n(this,this.actionsObserver,this.reducerManager);return i.operator=e,i}dispatch(e){this.actionsObserver.next(e)}next(e){this.actionsObserver.next(e)}error(e){this.actionsObserver.error(e)}complete(){this.actionsObserver.complete()}addReducer(e,i){this.reducerManager.addReducer(e,i)}removeReducer(e){this.reducerManager.removeReducer(e)}}return n.\u0275fac=function(e){return new(e||n)(ue(b3),ue(ch),ue(Xx))},n.\u0275prov=oe({token:n,factory:n.\u0275fac}),n})(),W$e=[mn];function ni(n,t,...e){return function(r){let o;if(typeof n=="string"){let s=[t,...e].filter(Boolean);o=r.pipe(dN(n,...s))}else if(typeof n=="function")o=r.pipe(ze(s=>n(s,t)));else throw new TypeError(`Unexpected type '${typeof n}' in select operator, expected 'string' or 'function'`);return o.pipe(Hn())}}var xB="https://ngrx.io/guide/store/configuration/runtime-checks";function dde(n){return n===void 0}function hde(n){return n===null}function Sde(n){return Array.isArray(n)}function Y$e(n){return typeof n=="string"}function G$e(n){return typeof n=="boolean"}function Z$e(n){return typeof n=="number"}function xde(n){return typeof n=="object"&&n!==null}function X$e(n){return xde(n)&&!Sde(n)}function K$e(n){if(!X$e(n))return!1;let t=Object.getPrototypeOf(n);return t===Object.prototype||t===null}function CB(n){return typeof n=="function"}function J$e(n){return CB(n)&&n.hasOwnProperty("\u0275cmp")}function eqe(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function pde(n,t){return n===t}function tqe(n,t,e){for(let i=0;i<n.length;i++)if(!e(n[i],t[i]))return!0;return!1}function kde(n,t=pde,e=pde){let i=null,r=null,o;function s(){i=null,r=null}function a(u=void 0){o={result:u}}function l(){o=void 0}function c(){if(o!==void 0)return o.result;if(!i)return r=n.apply(null,arguments),i=arguments,r;if(!tqe(arguments,i,t))return r;let u=n.apply(null,arguments);return i=arguments,e(r,u)?r:(r=u,u)}return{memoized:c,reset:s,setResult:a,clearResult:l}}function pn(...n){return iqe(kde)(...n)}function nqe(n,t,e,i){if(e===void 0){let o=t.map(s=>s(n));return i.memoized.apply(null,o)}let r=t.map(o=>o(n,e));return i.memoized.apply(null,[...r,e])}function iqe(n,t={stateFn:nqe}){return function(...e){let i=e;if(Array.isArray(i[0])){let[u,...h]=i;i=[...u,...h]}else i.length===1&&rqe(i[0])&&(i=oqe(i[0]));let r=i.slice(0,i.length-1),o=i[i.length-1],s=r.filter(u=>u.release&&typeof u.release=="function"),a=n(function(...u){return o.apply(null,u)}),l=kde(function(u,h){return t.stateFn.apply(null,[u,r,h,a])});function c(){l.reset(),a.reset(),s.forEach(u=>u.release())}return Object.assign(l.memoized,{release:c,projector:a.memoized,setResult:l.setResult,clearResult:l.clearResult})}}function rqe(n){return!!n&&typeof n=="object"&&Object.values(n).every(t=>typeof t=="function")}function oqe(n){let t=Object.values(n),e=Object.keys(n),i=(...r)=>e.reduce((o,s,a)=>q(k({},o),{[s]:r[a]}),{});return[...t,i]}function sqe(n){return n instanceof Re?R(n):n}function aqe(n,t){return t.map((e,i)=>{if(n[i]instanceof Re){let r=R(n[i]);return{key:e.key,reducerFactory:r.reducerFactory?r.reducerFactory:S3,metaReducers:r.metaReducers?r.metaReducers:[],initialState:r.initialState}}return e})}function lqe(n){return n.map(t=>t instanceof Re?R(t):t)}function Tde(n){return typeof n=="function"?n():n}function cqe(n,t){return n.concat(t)}function uqe(){if(R(mn,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function dqe(n,t){return function(e,i){let r=t.action(i)?wB(i):i,o=n(e,r);return t.state()?wB(o):o}}function wB(n){Object.freeze(n);let t=CB(n);return Object.getOwnPropertyNames(n).forEach(e=>{if(!e.startsWith("\u0275")&&eqe(n,e)&&(!t||e!=="caller"&&e!=="callee"&&e!=="arguments")){let i=n[e];(xde(i)||CB(i))&&!Object.isFrozen(i)&&wB(i)}}),n}function hqe(n,t){return function(e,i){if(t.action(i)){let o=bB(i);fde(o,"action")}let r=n(e,i);if(t.state()){let o=bB(r);fde(o,"state")}return r}}function bB(n,t=[]){return(dde(n)||hde(n))&&t.length===0?{path:["root"],value:n}:Object.keys(n).reduce((i,r)=>{if(i)return i;let o=n[r];return J$e(o)?i:dde(o)||hde(o)||Z$e(o)||G$e(o)||Y$e(o)||Sde(o)?!1:K$e(o)?bB(o,[...t,r]):{path:[...t,r],value:o}},!1)}function fde(n,t){if(n===!1)return;let e=n.path.join("."),i=new Error(`Detected unserializable ${t} at "${e}". ${xB}#strict${t}serializability`);throw i.value=n.value,i.unserializablePath=e,i}function pqe(n,t){return function(e,i){if(t.action(i)&&!at.isInAngularZone())throw new Error(`Action '${i.type}' running outside NgZone. ${xB}#strictactionwithinngzone`);return n(e,i)}}function fqe(n){return Sa()?k({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},n):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function mqe({strictActionSerializability:n,strictStateSerializability:t}){return e=>n||t?hqe(e,{action:i=>n&&!kB(i),state:()=>t}):e}function gqe({strictActionImmutability:n,strictStateImmutability:t}){return e=>n||t?dqe(e,{action:i=>n&&!kB(i),state:()=>t}):e}function kB(n){return n.type.startsWith("@ngrx")}function yqe({strictActionWithinNgZone:n}){return t=>n?pqe(t,{action:e=>n&&!kB(e)}):t}function vqe(n){return[{provide:cde,useValue:n},{provide:lde,useFactory:_qe,deps:[cde]},{provide:$5,deps:[lde],useFactory:fqe},{provide:Zx,multi:!0,deps:[$5],useFactory:gqe},{provide:Zx,multi:!0,deps:[$5],useFactory:mqe},{provide:Zx,multi:!0,deps:[$5],useFactory:yqe}]}function Ode(){return[{provide:SB,multi:!0,deps:[$5],useFactory:Cqe}]}function _qe(n){return n}function Cqe(n){if(!n.strictActionTypeUniqueness)return;let t=Object.entries(_B).filter(([,e])=>e>1).map(([e])=>e);if(t.length)throw new Error(`Action types are registered more than once, ${t.map(e=>`"${e}"`).join(", ")}. ${xB}#strictactiontypeuniqueness`)}function wqe(n={},t={}){return[{provide:gde,useFactory:uqe},{provide:ede,useValue:t.initialState},{provide:q5,useFactory:Tde,deps:[ede]},{provide:yB,useValue:n},{provide:ide,useExisting:n instanceof Re?n:yB},{provide:vde,deps:[yB,[new _f(ide)]],useFactory:sqe},{provide:sde,useValue:t.metaReducers?t.metaReducers:[]},{provide:ade,deps:[Zx,sde],useFactory:cqe},{provide:tde,useValue:t.reducerFactory?t.reducerFactory:S3},{provide:yde,deps:[tde,ade],useFactory:bde},B$e,$$e,q$e,Q$e,W$e,vqe(t.runtimeChecks),Ode()]}function bqe(n,t,e={}){return[{provide:rde,multi:!0,useValue:n instanceof Object?{}:e},{provide:nde,multi:!0,useValue:{key:n instanceof Object?n.name:n,reducerFactory:!(e instanceof Re)&&e.reducerFactory?e.reducerFactory:S3,metaReducers:!(e instanceof Re)&&e.metaReducers?e.metaReducers:[],initialState:!(e instanceof Re)&&e.initialState?e.initialState:void 0}},{provide:_de,deps:[rde,nde],useFactory:aqe},{provide:vB,multi:!0,useValue:n instanceof Object?n.reducer:t},{provide:ode,multi:!0,useExisting:t instanceof Re?t:vB},{provide:Cde,multi:!0,deps:[vB,[new _f(ode)]],useFactory:lqe},Ode()]}var U5=(()=>{class n{constructor(e,i,r,o,s,a){}}return n.\u0275fac=function(e){return new(e||n)(ue(ch),ue(e2),ue(t2),ue(mn),ue(gde,8),ue(SB,8))},n.\u0275mod=He({type:n}),n.\u0275inj=Be({}),n})(),Jx=(()=>{class n{constructor(e,i,r,o,s){this.features=e,this.featureReducers=i,this.reducerManager=r;let a=e.map((l,c)=>{let h=i.shift()[c];return q(k({},l),{reducers:h,initialState:Tde(l.initialState)})});r.addFeatures(a)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return n.\u0275fac=function(e){return new(e||n)(ue(_de),ue(Cde),ue(Xx),ue(U5),ue(SB,8))},n.\u0275mod=He({type:n}),n.\u0275inj=Be({}),n})(),Ede=(()=>{class n{static forRoot(e,i){return{ngModule:U5,providers:[...wqe(e,i)]}}static forFeature(e,i,r={}){return{ngModule:Jx,providers:[...bqe(e,i,r)]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=He({type:n}),n.\u0275inj=Be({}),n})();var Y5=class{},Ide=(()=>{class n{handle(e){return e.key}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),x3=class{},zde=(()=>{class n extends x3{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=so(n)))(r||n)}})();static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),Of=class{},Ade=(()=>{class n extends Of{getTranslation(e){return rt({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=so(n)))(r||n)}})();static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();function ek(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;let e=typeof n,i=typeof t,r;if(e==i&&e=="object")if(Array.isArray(n)){if(!Array.isArray(t))return!1;if((r=n.length)==t.length){for(let o=0;o<r;o++)if(!ek(n[o],t[o]))return!1;return!0}}else{if(Array.isArray(t))return!1;if(Np(n)&&Np(t)){let o=Object.create(null);for(let s in n){if(!ek(n[s],t[s]))return!1;o[s]=!0}for(let s in t)if(!(s in o)&&typeof t[s]<"u")return!1;return!0}}return!1}function Tf(n){return typeof n<"u"&&n!==null}function Dde(n){return n!==void 0}function Np(n){return W5(n)&&!n2(n)&&n!==null}function W5(n){return typeof n=="object"&&n!==null}function n2(n){return Array.isArray(n)}function tk(n){return typeof n=="string"}function Sqe(n){return typeof n=="function"}function nk(n){if(n2(n))return n.map(t=>nk(t));if(Np(n)){let t={};return Object.keys(n).forEach(e=>{t[e]=nk(n[e])}),t}else return n}function MB(n,t){if(!W5(n))return nk(t);let e=nk(n);return W5(e)&&W5(t)&&Object.keys(t).forEach(i=>{Np(t[i])?i in n?e[i]=MB(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}function Pde(n,t){let e=t.split(".");t="";do{t+=e.shift();let i=!e.length;if(Tf(n)){if(Np(n)&&Dde(n[t])&&(Np(n[t])||n2(n[t])||i)){n=n[t],t="";continue}if(n2(n)){let r=parseInt(t,10);if(Dde(n[r])&&(Np(n[r])||n2(n[r])||i)){n=n[r],t="";continue}}}if(i){n=void 0;continue}t+="."}while(e.length);return n}function xqe(n,t,e){return MB(n,kqe(t,e))}function kqe(n,t){return n.split(".").reduceRight((e,i)=>({[i]:e}),t)}var k3=class{},Rde=(()=>{class n extends k3{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){if(tk(e))return this.interpolateString(e,i);if(Sqe(e))return this.interpolateFunction(e,i)}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let s=this.getInterpolationReplacement(i,o);return s!==void 0?s:r}):e}getInterpolationReplacement(e,i){return this.formatValue(Pde(e,i))}formatValue(e){if(tk(e))return e;if(typeof e=="number"||typeof e=="boolean")return e.toString();if(e===null)return"null";if(n2(e))return e.join(", ");if(W5(e))return typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():JSON.stringify(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=so(n)))(r||n)}})();static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),TB=(()=>{class n{_onTranslationChange=new fe;_onLangChange=new fe;_onFallbackLangChange=new fe;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(e){return this.translations[e]}setTranslations(e,i,r){this.translations[e]=r&&this.hasTranslationFor(e)?MB(this.translations[e],i):i,this.addLanguages([e]),this._onTranslationChange.next({lang:e,translations:this.getTranslations(e)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(e,i=!0){this.fallbackLang=e,i&&this._onFallbackLangChange.next({lang:e,translations:this.translations[e]})}setCurrentLang(e,i=!0){this.currentLang=e,i&&this._onLangChange.next({lang:e,translations:this.translations[e]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(e){this.languages=Array.from(new Set([...this.languages,...e]))}hasTranslationFor(e){return typeof this.translations[e]<"u"}deleteTranslations(e){delete this.translations[e]}getTranslation(e){let i=this.getValue(this.currentLang,e);return i===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(i=this.getValue(this.fallbackLang,e)),i}getValue(e,i){return Pde(this.getTranslations(e),i)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})(),OB=new Re("TRANSLATE_CONFIG"),Q5=n=>ga(n)?n:rt(n);var G5=(()=>{class n{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=R(Of);compiler=R(x3);parser=R(k3);missingTranslationHandler=R(Y5);store=R(TB);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let e=k({extend:!1,fallbackLang:null},R(OB,{optional:!0}));e.lang&&this.use(e.lang),e.fallbackLang&&this.setFallbackLang(e.fallbackLang),e.extend&&(this.extend=!0)}setFallbackLang(e){this.getFallbackLang()||this.store.setFallbackLang(e,!1);let i=this.loadOrExtendLanguage(e);return ga(i)?(i.pipe(Ct(1)).subscribe({next:()=>{this.store.setFallbackLang(e)},error:()=>{}}),i):(this.store.setFallbackLang(e),rt(this.store.getTranslations(e)))}use(e){this.lastUseLanguage=e,this.getCurrentLang()||this.store.setCurrentLang(e,!1);let i=this.loadOrExtendLanguage(e);return ga(i)?(i.pipe(Ct(1)).subscribe({next:()=>{this.changeLang(e)},error:()=>{}}),i):(this.changeLang(e),rt(this.store.getTranslations(e)))}loadOrExtendLanguage(e){if(!this.store.hasTranslationFor(e)||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}changeLang(e){e===this.lastUseLanguage&&this.store.setCurrentLang(e)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(e){this.pending=!0;let i=this.currentLoader.getTranslation(e).pipe($u(1),Ct(1));return this.loadingTranslations=i.pipe(ze(r=>this.compiler.compileTranslations(r,e)),$u(1),Ct(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(e,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){let o=this.compiler.compileTranslations(i,e);this.store.setTranslations(e,o,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(e){this.store.addLanguages(e)}getParsedResultForKey(e,i){let r=this.getTextToInterpolate(e);if(Tf(r))return this.runInterpolation(r,i);let o=this.missingTranslationHandler.handle(k({key:e,translateService:this},i!==void 0&&{interpolateParams:i}));return o!==void 0?o:e}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(e){return this.store.getTranslation(e)}runInterpolation(e,i){if(Tf(e))return n2(e)?this.runInterpolationOnArray(e,i):Np(e)?this.runInterpolationOnDict(e,i):this.parser.interpolate(e,i)}runInterpolationOnArray(e,i){return e.map(r=>this.runInterpolation(r,i))}runInterpolationOnDict(e,i){let r={};for(let o in e){let s=this.runInterpolation(e[o],i);s!==void 0&&(r[o]=s)}return r}getParsedResult(e,i){return e instanceof Array?this.getParsedResultForArray(e,i):this.getParsedResultForKey(e,i)}getParsedResultForArray(e,i){let r={},o=!1;for(let a of e)r[a]=this.getParsedResultForKey(a,i),o=o||ga(r[a]);if(!o)return r;let s=e.map(a=>Q5(r[a]));return Hu(s).pipe(ze(a=>{let l={};return a.forEach((c,u)=>{l[e[u]]=c}),l}))}get(e,i){if(!Tf(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(sc(()=>Q5(this.getParsedResult(e,i)))):Q5(this.getParsedResult(e,i))}getStreamOnTranslationChange(e,i){if(!Tf(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return bm(Ga(()=>this.get(e,i)),this.onTranslationChange.pipe(Ae(()=>{let r=this.getParsedResult(e,i);return Q5(r)})))}stream(e,i){if(!Tf(e)||!e.length)throw new Error('Parameter "key" required');return bm(Ga(()=>this.get(e,i)),this.onLangChange.pipe(Ae(()=>{let r=this.getParsedResult(e,i);return Q5(r)})))}instant(e,i){if(!Tf(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(e,i);return ga(r)?Array.isArray(e)?e.reduce((o,s)=>(o[s]=s,o),{}):e:r}set(e,i,r=this.getCurrentLang()){this.store.setTranslations(r,xqe(this.store.getTranslations(r),e,tk(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),!1)}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],this.store.deleteTranslations(e)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return n.getBrowserLang()}getBrowserCultureLang(){return n.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(e){return this.setFallbackLang(e)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();var Qt=(()=>{class n{translate=R(G5);_ref=R(Tt);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(e,i,r){let o=s=>{this.value=s!==void 0?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){let s=this.translate.getParsedResult(e,i);ga(s)?s.subscribe(o):o(s)}this.translate.get(e,i).subscribe(o)}transform(e,...i){if(!e||!e.length)return e;if(ek(e,this.lastKey)&&ek(i,this.lastParams))return this.value;let r;if(Tf(i[0])&&i.length)if(tk(i[0])&&i[0].length){let o=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(o)}catch(s){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else Np(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{(this.lastKey&&o.lang===this.translate.getCurrentLang()||o.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,o.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||n)};static \u0275pipe=ao({name:"translate",type:n,pure:!1});static \u0275prov=oe({token:n,factory:n.\u0275fac})}return n})();function Nde(n){return{provide:Of,useClass:n}}function Lde(n){return{provide:x3,useClass:n}}function Fde(n){return{provide:k3,useClass:n}}function Vde(n){return{provide:Y5,useClass:n}}function Bde(n={}){return EB(k({compiler:Lde(zde),parser:Fde(Rde),loader:Nde(Ade),missingTranslationHandler:Vde(Ide)},n),!0)}function EB(n={},t){let e=[];n.loader&&e.push(n.loader),n.compiler&&e.push(n.compiler),n.parser&&e.push(n.parser),n.missingTranslationHandler&&e.push(n.missingTranslationHandler),t&&e.push(TB),(n.useDefaultLang||n.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),n.useDefaultLang===!0&&n.defaultLanguage&&(n.fallbackLang=n.defaultLanguage));let i={fallbackLang:n.fallbackLang??null,lang:n.lang,extend:n.extend??!1};return e.push({provide:OB,useValue:i}),e.push({provide:G5,useClass:G5,deps:[TB,Of,x3,k3,Y5,OB]}),e}var DB=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[...EB(k({compiler:Lde(zde),parser:Fde(Rde),loader:Nde(Ade),missingTranslationHandler:Vde(Ide)},e),!0)]}}static forChild(e={}){return{ngModule:n,providers:[...EB(e,e.isolate??!1)]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=He({type:n});static \u0275inj=Be({})}return n})();Uu();var Hde={name:"@altairgraphql/app",description:"Contains the altair app",version:"8.5.6",author:"Samuel Imolorhe <hello@altairgraphql.dev> (https://altairgraphql.dev/)",dependencies:{"@altairgraphql/api-utils":"workspace:*","@altairgraphql/db":"workspace:*","@altairgraphql/electron-interop":"workspace:*","@altairgraphql/tauri":"workspace:*","@angular/animations":"20.3.19","@angular/cdk":"20.2.7","@angular/cli":"20.3.4","@angular/common":"20.3.19","@angular/core":"^20.3.3","@angular/forms":"20.3.19","@angular/platform-browser":"20.3.19","@angular/platform-browser-dynamic":"20.3.19","@angular/platform-server":"20.3.19","@angular/router":"20.3.19","@apollo/client":"3.5.6","@codemirror/autocomplete":"^6.20.0","@codemirror/commands":"^6.10.0","@codemirror/lang-javascript":"^6.2.4","@codemirror/lang-json":"^6.0.2","@codemirror/language":"^6.11.3","@codemirror/lint":"^6.9.2","@codemirror/search":"^6.5.11","@codemirror/state":"^6.5.2","@codemirror/view":"^6.38.8","@emotion/css":"^11.13.5","@fontsource/jetbrains-mono":"4.2.2","@lezer/common":"1.4.0","@lezer/highlight":"1.2.3","@lezer/lr":"1.4.4","@ngneat/hot-toast":"2.0.1","@ngneat/overview":"1.0.0","@ngneat/until-destroy":"8.0.1","@ngrx/effects":"15.4.0","@ngrx/store":"15.4.0","@ngrx/store-devtools":"15.4.0","@ngui/auto-complete":"3.0.0","@ngx-translate/core":"^17.0.0","@ngx-translate/http-loader":"^17.0.0","@sentry/electron":"^7.5.0","@supabase/supabase-js":"1.29.1","@webcomponents/custom-elements":"1.4.1",abab:"2.0.6",actioncable:"5.2.8",ajv:"^8.11.2","altair-graphql-core":"workspace:*","angular-resizable-element":"^6.0.0","angular-split":"^18.0.0","apollo-cache-inmemory":"1.6.6","apollo-link":"1.2.14","apollo-link-http":"1.5.17","aws-appsync-auth-link":"^3.0.8","aws-appsync-subscription-link":"^3.1.3","cm6-graphql":"0.0.14","codemirror-graphql":"1.0.2","codemirror-json-schema":"^0.6.0",comlink:"4.3.0","compare-versions":"^6.1.1","cookie-parser":"1.4.5","core-js":"3.6.5","crypto-js":"3.3.0",curlup:"1.0.0",deepmerge:"4.2.2",dexie:"^4.4.2",dompurify:"^3.4.2",express:"^4.19.2","file-dialog":"0.0.8","file-saver":"2.0.2","fuse.js":"6.4.6",graphql:"15.5.1","graphql-language-service":"^5.2.0","graphql-language-service-parser":"1.10.4","graphql-language-service-types":"1.8.2","graphql-query-compress":"1.2.3","graphql-ws":"5.9.1","hotkeys-js":"^3.13.15","json-bigint":"^1.0.0","json-schema":"^0.4.0","lodash-es":"4.17.21",loglevel:"1.8.0","loglevel-plugin-prefix":"0.8.4","lucide-angular":"^0.298.0",marked:"^15.0.3",memoizee:"0.4.14","ng-zorro-antd":"^15.1.1","ngrx-store-localstorage":"12.0.1","ngx-cookie-service":"14.0.1","ngx-markdown":"^14.0.1","ngx-pipes":"^3.2.2","ngx-sonner":"^3.1.0","ngx-take-until-destroy":"5.4.0","ngx-toastr":"^18.0.0",nx:"17.1.3","object-path":"0.11.5",prettier:"^3.2.5",rxjs:"7.8.1","sanitize-html":"2.7.1","subscriptions-transport-ws":"0.9.19",sval:"0.4.8",tslib:"2.0.0",uuid:"^14.0.0",zod:"catalog:","zone.js":"0.15.1"},devDependencies:{"@altairgraphql/iframe-sandbox":"workspace:*","@analogjs/vite-plugin-angular":"^2.3.1","@analogjs/vitest-angular":"^2.3.1","@angular-eslint/builder":"20.3.0","@angular-eslint/eslint-plugin":"20.3.0","@angular-eslint/eslint-plugin-template":"20.3.0","@angular-eslint/schematics":"20.3.0","@angular-eslint/template-parser":"20.3.0","@angular/build":"^20.3.4","@angular/compiler":"20.3.19","@angular/compiler-cli":"20.3.19","@ngrx/schematics":"12.4.0","@playwright/test":"catalog:","@sentry/cli":"^3.0.0","@types/actioncable":"5.2.3","@types/chrome":"^0.0.209","@types/codemirror":"^5.60.15","@types/crypto-js":"^4.0.1","@types/dompurify":"^3.2.0","@types/electron":"^1.6.10","@types/file-saver":"^2.0.1","@types/firefox-webext-browser":"^109.0.0","@types/graphql":"^14.5.0","@types/json-bigint":"^1.0.1","@types/json-schema":"^7.0.6","@types/lodash-es":"^4.17.4","@types/memoizee":"^0.4.3","@types/mousetrap":"^1.6.3","@types/node":"catalog:","@types/object-path":"^0.11.0","@types/sanitize-html":"^2.6.2","@types/to-snake-case":"^1.0.0","@types/uuid":"^9.0.5","@types/zen-observable":"^0.8.1","@typescript-eslint/eslint-plugin":"^8.46.0","@typescript-eslint/parser":"^8.46.0","@vitest/coverage-v8":"catalog:","babel-plugin-transform-async-to-generator":"6.24.1","babel-preset-env":"1.7.0","babel-preset-react":"6.24.1",chai:"4.2.0","chai-as-promised":"7.1.1",electron:"catalog:",eslint:"^8.57.0","eslint-config-altair":"workspace:*","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.27.4","eslint-plugin-no-unsanitized":"^4.0.2","eslint-plugin-prettier":"^5.1.3","fake-indexeddb":"^4.0.1","jest-chrome":"^0.8.0",jsdom:"^28.1.0",less:"^4.2.0",ncp:"2.0.0","ng-mocks":"^14.13.4","ngrx-store-freeze":"0.2.4",protractor:"7.0.0",react:"17.0.1","rxjs-tslint-rules":"4.32.0","start-server-and-test":"1.11.0","ts-mocks":"2.6.1","ts-node":"9.1.1",typescript:"catalog:",vite:"catalog:","vite-tsconfig-paths":"^6.1.1",vitest:"catalog:"},homepage:"https://altair-graphql.github.io/altair/",license:"MIT",main:"dist/browser/main.js",private:!0,scripts:{analyze:"ng build --stats-json && npx webpack-bundle-analyzer dist/stats.json","analyze:prod":"ng build --aot --stats-json && npx webpack-bundle-analyzer dist/stats.json","ng:build":"cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm ng build --aot --stats-json --output-hashing=none",build:"node scripts/build.js",lint:"ng lint","new:component":"ng g component modules/altair/components/",ng:"ng",bootstrap:"pnpm build",start:"ng serve","sentry:sourcemaps:inject":"sentry-cli sourcemaps inject --org altair-graphql --project electron ./dist",test:"vitest run && ng lint","test-build":"ng lint && pnpm build && pnpm test-single-run","test-single-run":"vitest run","test:coverage":"vitest run --coverage","test:watch":"vitest"},repository:{type:"git",url:"https://github.com/altair-graphql/altair.git"}};var sr={production:!0,version:Hde.version,serverReady:!0};var IB="START_LOADING",Z5="STOP_LOADING",zB="SET_WINDOW_NAME",AB="SET_WINDOW_ID_IN_COLLECTION",jde="NOTIFY_EXPERIMENTAL",ik=class{constructor(t){this.windowId=t,this.type=IB}},i2=class{constructor(t){this.windowId=t,this.type=Z5}},nd=class{constructor(t,e){this.windowId=t,this.payload=e,this.type=zB}},rk=class{constructor(t,e){this.windowId=t,this.payload=e,this.type=AB}};var PB=()=>({isLoading:!1,title:"New window",hasDynamicTitle:!0});function $de(n=PB(),t){switch(t.type){case IB:return q(k({},n),{isLoading:!0});case Z5:return q(k({},n),{isLoading:!1});case zB:return q(k({},n),{title:t.payload.title,hasDynamicTitle:!t.payload.setByUser});case AB:return q(k({},n),{windowIdInCollection:t.payload.windowIdInCollection,collectionId:t.payload.collectionId});default:return n}}var qde=`
|
|
91
91
|
# Welcome to Altair GraphQL Client.
|
|
92
92
|
# You can send your request using CmdOrCtrl + Enter.
|
|
93
93
|
|
|
@@ -2998,4 +2998,4 @@ ${t}
|
|
|
2998
2998
|
`],encapsulation:2,changeDetection:0})}return n})(),d9=(()=>{class n{_platform=R(vb);_containerElement;_document=R(Xt);_styleLoader=R(RA);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Bie()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let i=this._document.createElement("div");i.classList.add(e),Bie()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(APt)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var qRe=(()=>{class n extends d9{_createContainer(){let e=document.createElement("div");e.classList.add("cdk-overlay-container"),e.classList.add("app-overlay-container");let i=document.querySelector(".app-wrapper");i&&(i.appendChild(e),this._containerElement=e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=so(n)))(r||n)}})()}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac})}}return n})();var kR=(()=>{class n{constructor(){this.altairConfig=R(Hs),this.storageService=R(os),this.electronAppService=R(sl),this.notifyService=R(ii)}bootstrap(){return G(this,null,function*(){if(this.altairConfig.options.preserveState){let e=yield ME({updateFromLocalStorage:!0});this.initialState=e;let i=yield this.electronAppService.getSettingsFromFile();if(i){let r=bc.safeParse(k(k({},this.initialState?.settings),i));this.initialState=q(k({},this.initialState),{settings:r.success?r.data:this.initialState?.settings})}this.initialState||(yield this.electronAppService.importAutobackupData())&&this.notifyService.warning("Your application state has been automatically recovered.","Recovered data"),yield this.cleanSelectedFilesStorage()}})}cleanSelectedFilesStorage(){return G(this,null,function*(){this.initialState&&(yield this.storageService.selectedFiles.where("windowId").noneOf(this.initialState.windowsMeta?.windowIds||[]).delete())})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var URe=(()=>{class n{constructor(){this.actions$=R(js),this.store=R(mn),this.accountService=R(al),this.notifyService=R(ii),this.sharingService=R(T1),this.checkAccountLoginStatus$=Kt(()=>this.actions$.pipe(Zt(Yp),Ae(()=>sr.serverReady?this.accountService.observeUser().pipe(Ct(1)):ut),Ae(e=>{let i=Hh("show_login");return e?(this.store.dispatch(new _7({email:e?.email??"",firstName:e?.firstName??e?.email??"",lastName:"",picture:e.picture??"",isNewUser:e.isNewUser})),ut):(i==="true"&&this.store.dispatch(new qf({value:!0})),ut)}),Ae(()=>(this.store.dispatch(new pE),ut))),{dispatch:!1}),this.handleSubmitLogin$=Kt(()=>this.actions$.pipe(Zt(Xq),An(this.store,(e,i)=>({state:i,action:e})),Ae(({action:e})=>this.accountService.accountLogin$(e.payload?.provider).pipe(Ct(1))),Ae(e=>e?(this.notifyService.success(`You're logged in. Welcome back, ${e.firstName||e.email}`),this.store.dispatch(new _7({email:e.email??"",firstName:e.firstName??e.email??"",lastName:"",picture:e.picture??"",isNewUser:e.isNewUser})),this.store.dispatch(new qf({value:!1})),ut):(this.notifyService.error("Sorry, we could not log you in. Please check that your credentials are correct."),ut)),Bn(e=>bo(uo(e)).pipe(Ae(i=>(Ne.error(i),this.notifyService.errorWithError(i,"Sorry, we could not log you in. Please check that your username and password are correct"),ut)))),Oo()),{dispatch:!1}),this.logout$=Kt(()=>this.actions$.pipe(Zt(Kq),An(this.store,(e,i)=>({state:i,action:e})),Ae(({action:e})=>kn(this.accountService.logout())),Ae(()=>(this.notifyService.success("You're logged out"),this.store.dispatch(new mE),this.store.dispatch(new qf({value:!1})),this.store.dispatch(new ws),ut)),Bn(e=>bo(uo(e)).pipe(Ae(i=>(Ne.error(i),this.notifyService.errorWithError(i,"Sorry, we could not log you out. Please try again."),ut)))),Oo()),{dispatch:!1}),this.onLoggedIn$=Kt(()=>this.actions$.pipe(Zt(Xp),Ae(()=>(this.store.dispatch(new k8),this.store.dispatch(new _E),ut)),Bn(e=>bo(uo(e)).pipe(Ae(i=>(Ne.error(i),this.notifyService.errorWithError(e,"Could not load teams"),ut)))),Oo()),{dispatch:!1}),this.loadTeams$=Kt(()=>this.actions$.pipe(Zt(eU),Ae(e=>this.accountService.getTeams()),ze(e=>new gE({teams:e.map(i=>({id:i.id,name:i.name,description:i.description?i.description:void 0}))})),Bn(e=>bo(uo(e)).pipe(Ae(i=>(Ne.error(i),this.notifyService.errorWithError(e,"Could not load teams"),ut)))),Oo())),this.loadUserDataOnLoggedIn$=Kt(()=>this.actions$.pipe(Zt(Xp),Ae(e=>Hu([bo(this.accountService.getStats()),bo(this.accountService.getPlan()),bo(this.accountService.getPlanInfos()),bo(this.accountService.getAvailableCredits()),rt(e.payload)])),ze(([e,i,r,o,s])=>{i.canUpgradePro&&(Hh("plan_select")==="pro"?(this.store.dispatch(new Sc({value:!0})),this.accountService.getUpgradeProUrl().then(({url:l})=>{_c(l)})):s.isNewUser&&this.store.dispatch(new Sc({value:!0}))),this.store.dispatch(new yE({stats:{queriesCount:e.queries.own,queryCollectionsCount:e.collections.own,teamsCount:e.teams.own},plan:i,planInfos:r,availableCredits:o}))}),Bn(e=>bo(uo(e)).pipe(Ae(i=>(Ne.error(i),this.notifyService.errorWithError(e,"Could not load user data"),ut)))),Oo()),{dispatch:!1})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac})}}return n})();var QRe=(()=>{class n{constructor(){this.actions$=R(js),this.store=R(mn),this.storageService=R(os),this.accountService=R(al),this.loadWorkspaces$=Kt(()=>this.actions$.pipe(Zt(iU),Ae(()=>this.accountService.getWorkspaces()),Ae(e=>(this.store.dispatch(new CE(e.map(i=>({id:i.id,name:i.name,teamId:i.teamId??void 0})))),ut))),{dispatch:!1})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac})}}return n})();var WRe=(()=>{class n{constructor(){this.actions$=R(js),this.store=R(mn),this.electronAppService=R(sl),this.updateSettingsOnFile$=Kt(()=>this.actions$.pipe(Zt(d7,u7),An(this.store,(e,i)=>({state:i})),In(({state:e})=>rt(this.electronAppService.updateSettingsOnFile(e.settings)))),{dispatch:!1})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac})}}return n})();Iue($Re);function PPt(n){return()=>n.bootstrap()}var RPt=[Oc,ll,Ec,Go,ii,B2,sl,Mg,os,cl,na,Ig,b1,xw,S1,ww,kw,al,T1,Tw,x1,Ew,nz,kR,{provide:Gx,useClass:VRe,multi:!0},{provide:qo,useClass:jRe},{provide:d9,useClass:qRe},wx(()=>PPt(R(kR))()),dB(hB()),Bde({loader:MRe({prefix:"./assets/i18n/",suffix:".json"}),fallbackLang:"en",lang:"en"})],YRe=(()=>{class n{constructor(){let e=R(w5),i=R(mn),r=R(kR);e.donePromise.then(()=>i.dispatch(new DO({initialState:r.initialState})))}static forRoot(){return{ngModule:n,providers:[{provide:PE,useValue:vU()},{provide:c3,useFactory:e=>e.cspNonce,deps:[Hs]}]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=He({type:n,bootstrap:[av]})}static{this.\u0275inj=Be({providers:RPt,imports:[Km,Zke,io,Tg,pm.forRoot(),xR,FRe,SR,_R,Ede.forRoot(PE,{metaReducers:Pge,runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),P2e.forRoot([IRe,zRe,ARe,PRe,RRe,NRe,URe,QRe,WRe]),sr.production?[]:ERe.instrument(),Upe.forRoot({newestOnTop:!1,closeButton:!0,positionClass:"toast-bottom-right",enableHtml:!0,countDuplicates:!0,preventDuplicates:!0,resetTimeoutOnDuplicate:!0}),tT]})}}return n})();var GRe=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=He({type:n,bootstrap:[rRe]})}static{this.\u0275inj=Be({imports:[Nt,Km,YRe.forRoot()]})}}return n})();var NPt=(n,t,e)=>{document.body.addEventListener(n,function(i){i.target&&i.target.matches(t)&&e.apply(i.target,[i])})},ZRe=()=>{NPt("click","a",function(n){let t=this.href||"";if(!t.replace(/#.*$/,""))return;n.preventDefault();let e=window.open(t,"_blank");e&&e.focus()})};var LPt=["__ALTAIR_ENDPOINT_URL__","__ALTAIR_SUBSCRIPTIONS_ENDPOINT__","__ALTAIR_INITIAL_QUERY__","__ALTAIR_INITIAL_VARIABLES__","__ALTAIR_INITIAL_HEADERS__","__ALTAIR_INITIAL_PRE_REQUEST_SCRIPT__","__ALTAIR_INSTANCE_STORAGE_NAMESPACE__"],XRe=n=>{console.warn("DEPRECATION NOTICE: Configuring altair using global variables is deprecated, and will be removed in a future version."),console.warn(`You set [window.${n}], which is deprecated.`),console.warn("Use 'AltairGraphQL.init(opts)' instead.")},KRe=()=>{LPt.forEach(n=>{window[n]&&XRe(n),Object.defineProperty(window,n,{get(){return window[n]},set(t){XRe(n),window[n]=t}})})};var JRe=!1;window.AltairGraphQL={init(n={}){if(JRe)return;let t=new Hs(n);Qme(t),sr.production&&void 0,oB([{provide:Hs,useValue:t}]).bootstrapModule(GRe,{preserveWhitespaces:!0}).then(e=>{let r=e.injector.get(Co).components[0];r&&Jue(r)}).catch(e=>Ne.log("Error bootstrapping application:",e)),ZRe(),KRe(),JRe=!0},plugins:{}};
|
|
2999
2999
|
//# sourceMappingURL=main.js.map
|
|
3000
3000
|
|
|
3001
|
-
//# debugId=
|
|
3001
|
+
//# debugId=289af014-1cd4-5e61-80a0-19635891d1e5
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altair-static",
|
|
3
3
|
"description": "Static package for altair graphql client",
|
|
4
|
-
"version": "8.5.6
|
|
4
|
+
"version": "8.5.6",
|
|
5
5
|
"author": "Samuel Imolorhe <altair@sirmuel.design> (https://sirmuel.design)",
|
|
6
6
|
"bugs": "https://github.com/altair-graphql/altair/issues",
|
|
7
7
|
"devDependencies": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"tsdown": "^0.21.10",
|
|
13
13
|
"typescript": "5.9.3",
|
|
14
14
|
"vitest": "4.1.5",
|
|
15
|
-
"@altairgraphql/app": "8.5.6
|
|
16
|
-
"altair-graphql-core": "8.5.6
|
|
15
|
+
"@altairgraphql/app": "8.5.6",
|
|
16
|
+
"altair-graphql-core": "8.5.6"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "4.1.13"
|