altair-static 4.4.2 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/dist/100.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[100],{22100:(se,Q,S)=>{S.r(Q),S.d(Q,{GraphQLWsSubscriptionProvider:()=>_});var H=S(71251),J=S(82475),h=S(8239);const E=Object.prototype.hasOwnProperty;function C(e){return"object"==typeof e&&null!==e}function O(e,n){return E.call(e,n)}function A(e,n){return E.call(e,n)&&C(e[n])}function w(e,n){return E.call(e,n)&&"string"==typeof e[n]}const K="graphql-transport-ws";var s=(()=>{return(e=s||(s={})).ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",s;var e})();function G(e){if(C(e)){if(!w(e,"type"))return!1;switch(e.type){case s.ConnectionInit:return!O(e,"payload")||void 0===e.payload||C(e.payload);case s.ConnectionAck:case s.Ping:case s.Pong:return!O(e,"payload")||void 0===e.payload||C(e.payload);case s.Subscribe:return w(e,"id")&&A(e,"payload")&&(!O(e.payload,"operationName")||null==e.payload.operationName||"string"==typeof e.payload.operationName)&&w(e.payload,"query")&&(!O(e.payload,"variables")||null==e.payload.variables||A(e.payload,"variables"))&&(!O(e.payload,"extensions")||null==e.payload.extensions||A(e.payload,"extensions"));case s.Next:return w(e,"id")&&A(e,"payload");case s.Error:return w(e,"id")&&function(e){return Array.isArray(e)&&e.length>0&&e.every(n=>"message"in n)}(e.payload);case s.Complete:return w(e,"id");default:return!1}}return!1}function V(e,n){if(G(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const c=JSON.parse(e,n);if(!G(c))throw new Error("Invalid message");return c}function N(e,n){if(!G(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,n)}function v(e){return C(e)&&"code"in e&&"reason"in e}class _ extends H.q{createClient(){this.client=function(e){const{url:n,connectionParams:c,lazy:y=!0,onNonLazyError:R=console.error,lazyCloseTimeout:M=0,keepAlive:T=0,disablePong:ee,retryAttempts:q=5,retryWait:ne=function(){var t=(0,h.Z)(function*(a){let i=1e3;for(let o=0;o<a;o++)i*=2;yield new Promise(o=>setTimeout(o,i+Math.floor(2700*Math.random()+300)))});return function(a){return t.apply(this,arguments)}}(),isFatalConnectionProblem:te=(t=>!v(t)),on:r,webSocketImpl:Z,generateID:re=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,u=>{const a=16*Math.random()|0;return("x"==u?a:3&a|8).toString(16)})},jsonMessageReplacer:z,jsonMessageReviver:oe}=e;let b;if(Z){if(!function(e){return"function"==typeof e&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}(Z))throw new Error("Invalid WebSocket implementation provided");b=Z}else"undefined"!=typeof WebSocket?b=WebSocket:"undefined"!=typeof global?b=global.WebSocket||global.MozWebSocket:"undefined"!=typeof window&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing");const k=b,p=(()=>{const t=(()=>{const a={};return{on:(i,o)=>(a[i]=o,()=>{delete a[i]}),emit(i){var o;"id"in i&&(null===(o=a[i.id])||void 0===o||o.call(a,i))}}})(),u={connecting:(null==r?void 0:r.connecting)?[r.connecting]:[],connected:(null==r?void 0:r.connected)?[r.connected]:[],ping:(null==r?void 0:r.ping)?[r.ping]:[],pong:(null==r?void 0:r.pong)?[r.pong]:[],message:(null==r?void 0:r.message)?[t.emit,r.message]:[t.emit],closed:(null==r?void 0:r.closed)?[r.closed]:[],error:(null==r?void 0:r.error)?[r.error]:[]};return{onMessage:t.on,on(a,i){const o=u[a];return o.push(i),()=>{o.splice(o.indexOf(i),1)}},emit(a,...i){for(const o of u[a])o(...i)}}})();let m,g=0,F=!1,I=0,U=!1;function j(){return D.apply(this,arguments)}function D(){return(D=(0,h.Z)(function*(){const[t,u]=yield null!=m?m:m=new Promise((o,x)=>(0,h.Z)(function*(){if(F){if(yield ne(I),!g)return m=void 0,x({code:1e3,reason:"All Subscriptions Gone"});I++}p.emit("connecting");const l=new k("function"==typeof n?yield n():n,K);let P;function W(){isFinite(T)&&T>0&&(clearTimeout(P),P=setTimeout(()=>{l.readyState===k.OPEN&&(l.send(N({type:s.Ping})),p.emit("ping",!1,void 0))},T))}l.onerror=f=>{p.emit("error",f)},l.onclose=f=>{m=void 0,clearTimeout(P),p.emit("closed",f),x(f)},l.onopen=(0,h.Z)(function*(){try{l.send(N({type:s.ConnectionInit,payload:"function"==typeof c?yield c():c},z)),W()}catch(f){l.close(4400,f instanceof Error?f.message:new Error(f).message)}});let L=!1;l.onmessage=({data:f})=>{try{const d=V(f,oe);if(p.emit("message",d),"ping"===d.type||"pong"===d.type)return p.emit(d.type,!0,d.payload),void("pong"===d.type?W():ee||(l.send(N(d.payload?{type:s.Pong,payload:d.payload}:{type:s.Pong})),p.emit("pong",!1,d.payload)));if(L)return;if(d.type!==s.ConnectionAck)throw new Error(`First message cannot be of type ${d.type}`);L=!0,p.emit("connected",l,d.payload),F=!1,I=0,o([l,new Promise((le,ie)=>l.addEventListener("close",ie))])}catch(d){l.close(4400,d instanceof Error?d.message:new Error(d).message)}}})());t.readyState===k.CLOSING&&(yield u);let a=()=>{};const i=new Promise(o=>a=o);return[t,a,Promise.race([i.then(()=>{if(!g){const o=()=>t.close(1e3,"Normal Closure");isFinite(M)&&M>0?setTimeout(()=>{!g&&t.readyState===k.OPEN&&o()},M):o()}}),u])]})).apply(this,arguments)}function B(t){if(v(t)&&[1002,1011,4400,4401,4409,4429].includes(t.code))throw t;if(U)return!1;if(v(t)&&1e3===t.code)return g>0;if(!q||I>=q||te(t))throw t;return F=!0}return y||(0,h.Z)(function*(){for(g++;;)try{const[,,t]=yield j();yield t}catch(t){try{if(!B(t))return}catch(u){return null==R?void 0:R(u)}}})(),{on:p.on,subscribe(t,u){const a=re();let i=!1,o=!1,x=()=>{g--,i=!0};return(0,h.Z)(function*(){for(g++;;)try{const[l,P,W]=yield j();if(i)return P();const L=p.onMessage(a,f=>{switch(f.type){case s.Next:return void u.next(f.payload);case s.Error:return o=!0,i=!0,u.error(f.payload),void x();case s.Complete:return i=!0,void x()}});return l.send(N({id:a,type:s.Subscribe,payload:t},z)),x=()=>{!i&&l.readyState===k.OPEN&&l.send(N({id:a,type:s.Complete},z)),g--,i=!0,P()},void(yield W.finally(L))}catch(l){if(!B(l))return}})().catch(u.error).then(()=>{o||u.complete()}),()=>{i||x()}},dispose:()=>(0,h.Z)(function*(){if(U=!0,m){const[t]=yield m;t.close(1e3,"Normal Closure")}})()}}({url:this.subscriptionUrl,connectionParams:this.connectionParams,on:{connected:()=>{var n,c;null==(c=null==(n=this.extraOptions)?void 0:n.onConnected)||c.call(n,void 0,void 0)},error:n=>{var c,y;null==(y=null==(c=this.extraOptions)?void 0:c.onConnected)||y.call(c,n,void 0)}}})}execute(n){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new J.y(c=>{this.cleanup=this.client.subscribe({query:n.query,variables:n.variables,operationName:n.operationName},{next:(...y)=>c.next(...y),error:(...y)=>c.error(...y),complete:()=>c.complete()})})}close(){var n,c;null==(n=this.cleanup)||n.call(this),this.cleanup=void 0,null==(c=this.client)||c.dispose(),this.client=void 0}}}}]);
1
+ "use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[100],{22100:(pe,j,O)=>{O.r(j),O.d(j,{GraphQLWsSubscriptionProvider:()=>ae});var h=O(8239),Y=O(71251),_=O(82475);const W=Object.prototype.hasOwnProperty;function w(e){return"object"==typeof e&&null!==e}function N(e,n){return W.call(e,n)}function L(e,n){return W.call(e,n)&&w(e[n])}function S(e,n){return W.call(e,n)&&"string"==typeof e[n]}function H(e,n){return e.length<124?e:n}const ne="graphql-transport-ws";var y=(()=>{return(e=y||(y={}))[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",y;var e})(),l=(()=>{return(e=l||(l={})).ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",l;var e})();function z(e){if(w(e)){if(!S(e,"type"))return!1;switch(e.type){case l.ConnectionInit:return!N(e,"payload")||void 0===e.payload||w(e.payload);case l.ConnectionAck:case l.Ping:case l.Pong:return!N(e,"payload")||void 0===e.payload||w(e.payload);case l.Subscribe:return S(e,"id")&&L(e,"payload")&&(!N(e.payload,"operationName")||null==e.payload.operationName||"string"==typeof e.payload.operationName)&&S(e.payload,"query")&&(!N(e.payload,"variables")||null==e.payload.variables||L(e.payload,"variables"))&&(!N(e.payload,"extensions")||null==e.payload.extensions||L(e.payload,"extensions"));case l.Next:return S(e,"id")&&L(e,"payload");case l.Error:return S(e,"id")&&function(e){return Array.isArray(e)&&e.length>0&&e.every(n=>"message"in n)}(e.payload);case l.Complete:return S(e,"id");default:return!1}}return!1}function te(e,n){if(z(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const a=JSON.parse(e,n);if(!z(a))throw new Error("Invalid message");return a}function A(e,n){if(!z(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,n)}function G(e){return w(e)&&"code"in e&&"reason"in e}class ae extends Y.q{createClient(){this.client=function(e){const{url:n,connectionParams:a,lazy:m=!0,onNonLazyError:T=console.error,lazyCloseTimeout:B=0,keepAlive:M=0,disablePong:ce,connectionAckWaitTimeout:F=0,retryAttempts:J=5,retryWait:se=function(){var t=(0,h.Z)(function*(s){let o=1e3;for(let c=0;c<s;c++)o*=2;yield new Promise(c=>setTimeout(c,o+Math.floor(2700*Math.random()+300)))});return function(s){return t.apply(this,arguments)}}(),shouldRetry:le=G,isFatalConnectionProblem:Z,on:r,webSocketImpl:C,generateID:ue=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,u=>{const s=16*Math.random()|0;return("x"==u?s:3&s|8).toString(16)})},jsonMessageReplacer:D,jsonMessageReviver:de}=e;let P;if(C){if(!function(e){return"function"==typeof e&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}(C))throw new Error("Invalid WebSocket implementation provided");P=C}else"undefined"!=typeof WebSocket?P=WebSocket:"undefined"!=typeof global?P=global.WebSocket||global.MozWebSocket:"undefined"!=typeof window&&(P=window.WebSocket||window.MozWebSocket);if(!P)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const E=P,p=(()=>{const t=(()=>{const s={};return{on:(o,c)=>(s[o]=c,()=>{delete s[o]}),emit(o){var c;"id"in o&&(null===(c=s[o.id])||void 0===c||c.call(s,o))}}})(),u={connecting:(null==r?void 0:r.connecting)?[r.connecting]:[],opened:(null==r?void 0:r.opened)?[r.opened]:[],connected:(null==r?void 0:r.connected)?[r.connected]:[],ping:(null==r?void 0:r.ping)?[r.ping]:[],pong:(null==r?void 0:r.pong)?[r.pong]:[],message:(null==r?void 0:r.message)?[t.emit,r.message]:[t.emit],closed:(null==r?void 0:r.closed)?[r.closed]:[],error:(null==r?void 0:r.error)?[r.error]:[]};return{onMessage:t.on,on(s,o){const c=u[s];return c.push(o),()=>{c.splice(c.indexOf(o),1)}},emit(s,...o){for(const c of[...u[s]])c(...o)}}})();function $(t){const u=[p.on("error",s=>{u.forEach(o=>o()),t(s)}),p.on("closed",s=>{u.forEach(o=>o()),t(s)})]}let g,b=0,U=!1,q=0,K=!1;function V(){return Q.apply(this,arguments)}function Q(){return(Q=(0,h.Z)(function*(){const[t,u]=yield null!=g?g:g=new Promise((c,x)=>(0,h.Z)(function*(){if(U){if(yield se(q),!b)return g=void 0,x({code:1e3,reason:"All Subscriptions Gone"});q++}p.emit("connecting");const i=new E("function"==typeof n?yield n():n,ne);let k,R;function v(){isFinite(M)&&M>0&&(clearTimeout(R),R=setTimeout(()=>{i.readyState===E.OPEN&&(i.send(A({type:l.Ping})),p.emit("ping",!1,void 0))},M))}$(d=>{g=void 0,clearTimeout(k),clearTimeout(R),x(d),G(d)&&4499===d.code&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=d=>p.emit("error",d),i.onclose=d=>p.emit("closed",d),i.onopen=(0,h.Z)(function*(){try{p.emit("opened",i);const d="function"==typeof a?yield a():a;if(i.readyState!==E.OPEN)return;i.send(A(d?{type:l.ConnectionInit,payload:d}:{type:l.ConnectionInit},D)),isFinite(F)&&F>0&&(k=setTimeout(()=>{i.close(y.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},F)),v()}catch(d){p.emit("error",d),i.close(y.InternalClientError,H(d instanceof Error?d.message:new Error(d).message,"Internal client error"))}});let I=!1;i.onmessage=({data:d})=>{try{const f=te(d,de);if(p.emit("message",f),"ping"===f.type||"pong"===f.type)return p.emit(f.type,!0,f.payload),void("pong"===f.type?v():ce||(i.send(A(f.payload?{type:l.Pong,payload:f.payload}:{type:l.Pong})),p.emit("pong",!1,f.payload)));if(I)return;if(f.type!==l.ConnectionAck)throw new Error(`First message cannot be of type ${f.type}`);clearTimeout(k),I=!0,p.emit("connected",i,f.payload),U=!1,q=0,c([i,new Promise((be,fe)=>$(fe))])}catch(f){i.onmessage=null,p.emit("error",f),i.close(y.BadResponse,H(f instanceof Error?f.message:new Error(f).message,"Bad response"))}}})());t.readyState===E.CLOSING&&(yield u);let s=()=>{};const o=new Promise(c=>s=c);return[t,s,Promise.race([o.then(()=>{if(!b){const c=()=>t.close(1e3,"Normal Closure");isFinite(B)&&B>0?setTimeout(()=>{!b&&t.readyState===E.OPEN&&c()},B):c()}}),u])]})).apply(this,arguments)}function X(t){if(G(t)&&(function(e){return![1e3,1001,1006,1005,1012,1013,1013].includes(e)&&e>=1e3&&e<=1999}(t.code)||[y.InternalServerError,y.InternalClientError,y.BadRequest,y.BadResponse,y.Unauthorized,y.SubprotocolNotAcceptable,y.SubscriberAlreadyExists,y.TooManyInitialisationRequests].includes(t.code)))throw t;if(K)return!1;if(G(t)&&1e3===t.code)return b>0;if(!J||q>=J||!le(t)||(null==Z?void 0:Z(t)))throw t;return U=!0}return m||(0,h.Z)(function*(){for(b++;;)try{const[,,t]=yield V();yield t}catch(t){try{if(!X(t))return}catch(u){return null==T?void 0:T(u)}}})(),{on:p.on,subscribe(t,u){const s=ue();let o=!1,c=!1,x=()=>{b--,o=!0};return(0,h.Z)(function*(){for(b++;;)try{const[i,k,R]=yield V();if(o)return k();const v=p.onMessage(s,I=>{switch(I.type){case l.Next:return void u.next(I.payload);case l.Error:return c=!0,o=!0,u.error(I.payload),void x();case l.Complete:return o=!0,void x()}});return i.send(A({id:s,type:l.Subscribe,payload:t},D)),x=()=>{!o&&i.readyState===E.OPEN&&i.send(A({id:s,type:l.Complete},D)),b--,o=!0,k()},void(yield R.finally(v))}catch(i){if(!X(i))return}})().then(()=>{c||u.complete()}).catch(i=>{u.error(i)}),()=>{o||x()}},dispose:()=>(0,h.Z)(function*(){if(K=!0,g){const[t]=yield g;t.close(1e3,"Normal Closure")}})(),terminate(){g&&p.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}({url:this.subscriptionUrl,connectionParams:this.connectionParams,lazy:!1,onNonLazyError:n=>{var a,m;null==(m=null==(a=this.extraOptions)?void 0:a.onConnected)||m.call(a,n,void 0)},on:{connected:()=>{var n,a;null==(a=null==(n=this.extraOptions)?void 0:n.onConnected)||a.call(n,void 0,void 0)},error:n=>{var a,m;null==(m=null==(a=this.extraOptions)?void 0:a.onConnected)||m.call(a,n,void 0)}}})}execute(n){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new _.y(a=>{this.cleanup=this.client.subscribe({query:n.query,variables:n.variables,operationName:n.operationName},{next:(...m)=>a.next(...m),error:(...m)=>a.error(...m),complete:()=>a.complete()})})}close(){var n=this;return(0,h.Z)(function*(){var a,m;try{null==(a=n.cleanup)||a.call(n),n.cleanup=void 0,yield null==(m=n.client)?void 0:m.dispose(),n.client=void 0}catch(T){console.error(T)}})()}}}}]);
@@ -148,6 +148,181 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
148
148
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
149
149
 
150
150
 
151
+ @codemirror/autocomplete
152
+ MIT
153
+ MIT License
154
+
155
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
156
+
157
+ Permission is hereby granted, free of charge, to any person obtaining a copy
158
+ of this software and associated documentation files (the "Software"), to deal
159
+ in the Software without restriction, including without limitation the rights
160
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
161
+ copies of the Software, and to permit persons to whom the Software is
162
+ furnished to do so, subject to the following conditions:
163
+
164
+ The above copyright notice and this permission notice shall be included in
165
+ all copies or substantial portions of the Software.
166
+
167
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
168
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
169
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
170
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
171
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
172
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
173
+ THE SOFTWARE.
174
+
175
+
176
+ @codemirror/commands
177
+ MIT
178
+ MIT License
179
+
180
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
181
+
182
+ Permission is hereby granted, free of charge, to any person obtaining a copy
183
+ of this software and associated documentation files (the "Software"), to deal
184
+ in the Software without restriction, including without limitation the rights
185
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
186
+ copies of the Software, and to permit persons to whom the Software is
187
+ furnished to do so, subject to the following conditions:
188
+
189
+ The above copyright notice and this permission notice shall be included in
190
+ all copies or substantial portions of the Software.
191
+
192
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
193
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
194
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
195
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
196
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
197
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
198
+ THE SOFTWARE.
199
+
200
+
201
+ @codemirror/lang-javascript
202
+ MIT
203
+ MIT License
204
+
205
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
206
+
207
+ Permission is hereby granted, free of charge, to any person obtaining a copy
208
+ of this software and associated documentation files (the "Software"), to deal
209
+ in the Software without restriction, including without limitation the rights
210
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
211
+ copies of the Software, and to permit persons to whom the Software is
212
+ furnished to do so, subject to the following conditions:
213
+
214
+ The above copyright notice and this permission notice shall be included in
215
+ all copies or substantial portions of the Software.
216
+
217
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
218
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
219
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
220
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
221
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
222
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
223
+ THE SOFTWARE.
224
+
225
+
226
+ @codemirror/lang-json
227
+ MIT
228
+ MIT License
229
+
230
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
231
+
232
+ Permission is hereby granted, free of charge, to any person obtaining a copy
233
+ of this software and associated documentation files (the "Software"), to deal
234
+ in the Software without restriction, including without limitation the rights
235
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
236
+ copies of the Software, and to permit persons to whom the Software is
237
+ furnished to do so, subject to the following conditions:
238
+
239
+ The above copyright notice and this permission notice shall be included in
240
+ all copies or substantial portions of the Software.
241
+
242
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
243
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
244
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
245
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
246
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
247
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
248
+ THE SOFTWARE.
249
+
250
+
251
+ @codemirror/language
252
+ MIT
253
+ MIT License
254
+
255
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
256
+
257
+ Permission is hereby granted, free of charge, to any person obtaining a copy
258
+ of this software and associated documentation files (the "Software"), to deal
259
+ in the Software without restriction, including without limitation the rights
260
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
261
+ copies of the Software, and to permit persons to whom the Software is
262
+ furnished to do so, subject to the following conditions:
263
+
264
+ The above copyright notice and this permission notice shall be included in
265
+ all copies or substantial portions of the Software.
266
+
267
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
268
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
269
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
270
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
271
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
272
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
273
+ THE SOFTWARE.
274
+
275
+
276
+ @codemirror/state
277
+ MIT
278
+ MIT License
279
+
280
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
281
+
282
+ Permission is hereby granted, free of charge, to any person obtaining a copy
283
+ of this software and associated documentation files (the "Software"), to deal
284
+ in the Software without restriction, including without limitation the rights
285
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
286
+ copies of the Software, and to permit persons to whom the Software is
287
+ furnished to do so, subject to the following conditions:
288
+
289
+ The above copyright notice and this permission notice shall be included in
290
+ all copies or substantial portions of the Software.
291
+
292
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
293
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
294
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
295
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
296
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
297
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
298
+ THE SOFTWARE.
299
+
300
+
301
+ @codemirror/view
302
+ MIT
303
+ MIT License
304
+
305
+ Copyright (C) 2018-2021 by Marijn Haverbeke <marijnh@gmail.com> and others
306
+
307
+ Permission is hereby granted, free of charge, to any person obtaining a copy
308
+ of this software and associated documentation files (the "Software"), to deal
309
+ in the Software without restriction, including without limitation the rights
310
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
311
+ copies of the Software, and to permit persons to whom the Software is
312
+ furnished to do so, subject to the following conditions:
313
+
314
+ The above copyright notice and this permission notice shall be included in
315
+ all copies or substantial portions of the Software.
316
+
317
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
318
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
319
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
320
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
321
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
322
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
323
+ THE SOFTWARE.
324
+
325
+
151
326
  @ctrl/ngx-codemirror
152
327
  MIT
153
328
  MIT License
@@ -384,6 +559,130 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
384
559
  SOFTWARE.
385
560
 
386
561
 
562
+ @lezer/common
563
+ MIT
564
+ MIT License
565
+
566
+ Copyright (C) 2018 by Marijn Haverbeke <marijnh@gmail.com> and others
567
+
568
+ Permission is hereby granted, free of charge, to any person obtaining a copy
569
+ of this software and associated documentation files (the "Software"), to deal
570
+ in the Software without restriction, including without limitation the rights
571
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
572
+ copies of the Software, and to permit persons to whom the Software is
573
+ furnished to do so, subject to the following conditions:
574
+
575
+ The above copyright notice and this permission notice shall be included in
576
+ all copies or substantial portions of the Software.
577
+
578
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
579
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
580
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
581
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
582
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
583
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
584
+ THE SOFTWARE.
585
+
586
+
587
+ @lezer/highlight
588
+ MIT
589
+ MIT License
590
+
591
+ Copyright (C) 2018 by Marijn Haverbeke <marijnh@gmail.com> and others
592
+
593
+ Permission is hereby granted, free of charge, to any person obtaining a copy
594
+ of this software and associated documentation files (the "Software"), to deal
595
+ in the Software without restriction, including without limitation the rights
596
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
597
+ copies of the Software, and to permit persons to whom the Software is
598
+ furnished to do so, subject to the following conditions:
599
+
600
+ The above copyright notice and this permission notice shall be included in
601
+ all copies or substantial portions of the Software.
602
+
603
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
604
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
605
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
606
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
607
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
608
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
609
+ THE SOFTWARE.
610
+
611
+
612
+ @lezer/javascript
613
+ MIT
614
+ MIT License
615
+
616
+ Copyright (C) 2018 by Marijn Haverbeke <marijnh@gmail.com> and others
617
+
618
+ Permission is hereby granted, free of charge, to any person obtaining a copy
619
+ of this software and associated documentation files (the "Software"), to deal
620
+ in the Software without restriction, including without limitation the rights
621
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
622
+ copies of the Software, and to permit persons to whom the Software is
623
+ furnished to do so, subject to the following conditions:
624
+
625
+ The above copyright notice and this permission notice shall be included in
626
+ all copies or substantial portions of the Software.
627
+
628
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
629
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
630
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
631
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
632
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
633
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
634
+ THE SOFTWARE.
635
+
636
+
637
+ @lezer/json
638
+ MIT
639
+ MIT License
640
+
641
+ Copyright (C) 2020 by Marijn Haverbeke <marijnh@gmail.com>, Arun Srinivasan <rulfzid@gmail.com>, and others
642
+
643
+ Permission is hereby granted, free of charge, to any person obtaining a copy
644
+ of this software and associated documentation files (the "Software"), to deal
645
+ in the Software without restriction, including without limitation the rights
646
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
647
+ copies of the Software, and to permit persons to whom the Software is
648
+ furnished to do so, subject to the following conditions:
649
+
650
+ The above copyright notice and this permission notice shall be included in
651
+ all copies or substantial portions of the Software.
652
+
653
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
654
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
655
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
656
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
657
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
658
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
659
+ THE SOFTWARE.
660
+
661
+ @lezer/lr
662
+ MIT
663
+ MIT License
664
+
665
+ Copyright (C) 2018 by Marijn Haverbeke <marijnh@gmail.com> and others
666
+
667
+ Permission is hereby granted, free of charge, to any person obtaining a copy
668
+ of this software and associated documentation files (the "Software"), to deal
669
+ in the Software without restriction, including without limitation the rights
670
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
671
+ copies of the Software, and to permit persons to whom the Software is
672
+ furnished to do so, subject to the following conditions:
673
+
674
+ The above copyright notice and this permission notice shall be included in
675
+ all copies or substantial portions of the Software.
676
+
677
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
678
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
679
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
680
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
681
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
682
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
683
+ THE SOFTWARE.
684
+
685
+
387
686
  @ngneat/hot-toast
388
687
  MIT
389
688
 
@@ -2709,6 +3008,31 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2709
3008
 
2710
3009
 
2711
3010
 
3011
+ graphql-sse
3012
+ MIT
3013
+ MIT License
3014
+
3015
+ Copyright (c) 2021 Denis Badurina
3016
+
3017
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3018
+ of this software and associated documentation files (the "Software"), to deal
3019
+ in the Software without restriction, including without limitation the rights
3020
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3021
+ copies of the Software, and to permit persons to whom the Software is
3022
+ furnished to do so, subject to the following conditions:
3023
+
3024
+ The above copyright notice and this permission notice shall be included in all
3025
+ copies or substantial portions of the Software.
3026
+
3027
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3028
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3029
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3030
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3031
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3032
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3033
+ SOFTWARE.
3034
+
3035
+
2712
3036
  graphql-tag
2713
3037
  MIT
2714
3038
  The MIT License (MIT)
@@ -4318,6 +4642,29 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4318
4642
  SOFTWARE.
4319
4643
 
4320
4644
 
4645
+ style-mod
4646
+ MIT
4647
+ Copyright (C) 2018 by Marijn Haverbeke <marijnh@gmail.com> and others
4648
+
4649
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4650
+ of this software and associated documentation files (the "Software"), to deal
4651
+ in the Software without restriction, including without limitation the rights
4652
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4653
+ copies of the Software, and to permit persons to whom the Software is
4654
+ furnished to do so, subject to the following conditions:
4655
+
4656
+ The above copyright notice and this permission notice shall be included in
4657
+ all copies or substantial portions of the Software.
4658
+
4659
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4660
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4661
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4662
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4663
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4664
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
4665
+ THE SOFTWARE.
4666
+
4667
+
4321
4668
  subscriptions-transport-ws
4322
4669
  MIT
4323
4670
  The MIT License (MIT)
@@ -4592,6 +4939,29 @@ The above copyright notice and this permission notice shall be included in all c
4592
4939
  THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4593
4940
 
4594
4941
 
4942
+ w3c-keyname
4943
+ MIT
4944
+ Copyright (C) 2016 by Marijn Haverbeke <marijnh@gmail.com> and others
4945
+
4946
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4947
+ of this software and associated documentation files (the "Software"), to deal
4948
+ in the Software without restriction, including without limitation the rights
4949
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4950
+ copies of the Software, and to permit persons to whom the Software is
4951
+ furnished to do so, subject to the following conditions:
4952
+
4953
+ The above copyright notice and this permission notice shall be included in
4954
+ all copies or substantial portions of the Software.
4955
+
4956
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4957
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4958
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4959
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4960
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4961
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
4962
+ THE SOFTWARE.
4963
+
4964
+
4595
4965
  websocket
4596
4966
  Apache-2.0
4597
4967
 
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[779],{30779:(ie,J,R)=>{R.r(J),R.d(J,{GraphQLSSESubscriptionProvider:()=>re});var L=R(8239),$=R(71251),B=R(82475);const V="x-graphql-event-stream-token";function H(e){if("next"!==(e=e)&&"complete"!==e)throw new Error(`Invalid stream event "${e}"`);return e}function W(e,t){if(t)try{t=JSON.parse(t)}catch(n){throw new Error("Invalid stream data")}if("next"===e&&!t)throw new Error('Stream data must be an object for "next" events');return t||null}var O=(()=>{return(e=O||(O={}))[e.NewLine=10]="NewLine",e[e.CchunkiageReturn=13]="CchunkiageReturn",e[e.Space=32]="Space",e[e.Colon=58]="Colon",O;var e})();function X(){let e,t,n,l=!1,a={event:"",data:""},y=[];const w=new TextDecoder;return function(b){if(void 0===e)e=b,t=0,n=-1;else{const c=new Uint8Array(e.length+b.length);c.set(e),c.set(b,e.length),e=c}const v=e.length;let h=0;for(;t<v;){l&&(e[t]===O.NewLine&&(h=++t),l=!1);let c=-1;for(;t<v&&-1===c;++t)switch(e[t]){case O.Colon:-1===n&&(n=t-h);break;case O.CchunkiageReturn:l=!0;case O.NewLine:c=t}if(-1===c)break;if(h===c){if(a.event||a.data){if(!a.event)throw new Error("Missing message event");const r=H(a.event),o=W(r,a.data);y.push({event:r,data:o}),a={event:"",data:""}}}else if(n>0){const r=e.subarray(h,c),o=w.decode(r.subarray(0,n)),x=w.decode(r.subarray(n+(r[n+1]===O.Space?2:1)));switch(o){case"event":a.event=x;break;case"data":a.data=a.data?a.data+"\n"+x:x}}h=t,n=-1}if(h===v){e=void 0;const c=[...y];return y=[],c}0!==h&&(e=e.subarray(h),t-=h)}}var K=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),n={},l("next"),l("throw"),l("return"),n[Symbol.asyncIterator]=function(){return this},n);function l(y){n[y]=e[y]&&function(w){return new Promise(function(m,b){!function(y,w,m,b){Promise.resolve(b).then(function(v){y({value:v,done:m})},w)}(m,b,(w=e[y](w)).done,w.value)})}}},Z=function(e){return this instanceof Z?(this.v=e,this):new Z(e)},Q=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,l=n.apply(e,t||[]),y=[];return a={},w("next"),w("throw"),w("return"),a[Symbol.asyncIterator]=function(){return this},a;function w(r){l[r]&&(a[r]=function(o){return new Promise(function(d,x){y.push([r,o,d,x])>1||m(r,o)})})}function m(r,o){try{!function(r){r.value instanceof Z?Promise.resolve(r.value.v).then(v,h):c(y[0][2],r)}(l[r](o))}catch(d){c(y[0][3],d)}}function v(r){m("next",r)}function h(r){m("throw",r)}function c(r,o){r(o),y.shift(),y.length&&m(y[0][0],y[0][1])}};class I extends Error{constructor(t){let n,l;var e;!function(e){return"object"==typeof e&&null!==e}(e=t)||"boolean"!=typeof e.ok||"number"!=typeof e.status||"string"!=typeof e.statusText?n=t instanceof Error?t.message:String(t):(l=t,n="Server responded with "+t.status+": "+t.statusText),super(n),this.name=this.constructor.name,this.response=l}}function Y(e){return z.apply(this,arguments)}function z(){return(z=(0,L.Z)(function*(e){const{signal:t,url:n,credentials:l,headers:a,body:y,fetchFn:w,onMessage:m}=e,b={},v={};let h;try{h=yield w(n,{signal:t,method:y?"POST":"GET",credentials:l,headers:Object.assign(Object.assign({},a),{accept:"text/event-stream"}),body:y})}catch(o){throw new I(o)}if(!h.ok)throw new I(h);if(!h.body)throw new Error("Missing response body");let r,c=null;return(0,L.Z)(function*(){var o,d,x;try{const E=X();try{for(var p,g=K(ne(h.body));!(p=yield g.next()).done;){const S=p.value;if("string"==typeof S)throw new Error(`Unexpected string chunk "${S}"`);const s=E(S);if(s)for(const u of s){null==m||m(u);const i=u.data&&"id"in u.data?u.data.id:"";switch(i in v||(v[i]=[]),u.event){case"next":v[i].push(i?u.data.payload:u.data);break;case"complete":v[i].push("complete");break;default:throw new Error(`Unexpected message event "${u.event}"`)}null===(x=b[i])||void 0===x||x.proceed()}}}catch(S){o={error:S}}finally{try{p&&!p.done&&(d=g.return)&&(yield d.call(g))}finally{if(o)throw o.error}}}catch(E){c=/network|stream/i.test(E)?new I(E):E,null==r||r(c)}finally{Object.values(b).forEach(({proceed:E})=>E())}})(),{url:n,headers:a,waitForThrow:()=>new Promise((o,d)=>{if(c)return d(c);r=d}),getResults(o){var d;return Q(this,arguments,function*(){const{signal:g,operationId:p=""}=null!=o?o:{};try{for(;;){for(;null===(d=v[p])||void 0===d?void 0:d.length;){const E=v[p].shift();if("complete"===E)return yield Z(void 0);yield yield Z(E)}if(c)throw c;if(null==g?void 0:g.aborted)throw new Error("Getting results aborted by the client");yield Z(new Promise(E=>{const S=()=>{null==g||g.removeEventListener("abort",S),delete b[p],E()};null==g||g.addEventListener("abort",S),b[p]={proceed:S}}))}}finally{delete v[p]}})}}})).apply(this,arguments)}function ne(e){return"function"==typeof Object(e)[Symbol.asyncIterator]?(e=e)[Symbol.asyncIterator]():function(){return Q(this,arguments,function*(){const t=e.getReader();let n;do{n=yield Z(t.read()),void 0!==n.value&&(yield yield Z(n.value))}while(!n.done)})}()}class re extends $.q{createClient(){this.client=function(e){const{singleConnection:t=!1,lazy:n=!0,lazyCloseTimeout:l=0,onNonLazyError:a=console.error,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,u=>{const i=16*Math.random()|0;return("x"==u?i:3&i|8).toString(16)})},retryAttempts:w=5,retry:m=function(){var s=(0,L.Z)(function*(i){let D=1e3;for(let f=0;f<i;f++)D*=2;yield new Promise(f=>setTimeout(f,D+Math.floor(2700*Math.random()+300)))});return function(i){return s.apply(this,arguments)}}(),credentials:b="same-origin",onMessage:v}=e,h=e.fetchFn||fetch,c=e.abortControllerImpl||AbortController,r=(()=>{let s=!1;const u=[];return{get disposed(){return s},onDispose:i=>s?(setTimeout(()=>i(),0),()=>{}):(u.push(i),()=>{u.splice(u.indexOf(i),1)}),dispose(){if(!s){s=!0;for(const i of[...u])i()}}}})();let o,d,x=0,g=null,p=0;function E(){return S.apply(this,arguments)}function S(){return(S=(0,L.Z)(function*(){try{if(r.disposed)throw new Error("Client has been disposed");return yield null!=d?d:d=(0,L.Z)(function*(){var s;if(g){if(yield m(p),o.signal.aborted)throw new Error("Connection aborted by the client");p++}o=new c;const u=r.onDispose(()=>o.abort());o.signal.addEventListener("abort",()=>{u(),d=void 0});const i="function"==typeof e.url?yield e.url():e.url;if(o.signal.aborted)throw new Error("Connection aborted by the client");const D="function"==typeof e.headers?yield e.headers():null!==(s=e.headers)&&void 0!==s?s:{};if(o.signal.aborted)throw new Error("Connection aborted by the client");let f;try{f=yield h(i,{signal:o.signal,method:"PUT",credentials:b,headers:D})}catch(C){throw new I(C)}if(201!==f.status)throw new I(f);const G=yield f.text();D[V]=G;const T=yield Y({signal:o.signal,headers:D,credentials:b,url:i,fetchFn:h,onMessage:v});return g=null,p=0,T.waitForThrow().catch(()=>d=void 0),T})()}catch(s){throw d=void 0,s}})).apply(this,arguments)}return t&&!n&&(0,L.Z)(function*(){for(x++;;)try{const{waitForThrow:s}=yield E();yield s()}catch(s){if(r.disposed)return;if(!(s instanceof I)||(d=void 0,!w||p>=w))return null==a?void 0:a(s);g=s}})(),{subscribe(s,u){if(!t){const f=new c,G=r.onDispose(()=>{G(),f.abort()});return(0,L.Z)(function*(){var T,C,U;let P=null,k=0;for(;;)try{if(P){if(yield m(k),f.signal.aborted)throw new Error("Connection aborted by the client");k++}const N="function"==typeof e.url?yield e.url():e.url;if(f.signal.aborted)throw new Error("Connection aborted by the client");const j="function"==typeof e.headers?yield e.headers():null!==(U=e.headers)&&void 0!==U?U:{};if(f.signal.aborted)throw new Error("Connection aborted by the client");const{getResults:A}=yield Y({signal:f.signal,headers:j,credentials:b,url:N,body:JSON.stringify(s),fetchFn:h,onMessage:v});P=null,k=0;try{for(var _,M=(T=void 0,K(A()));!(_=yield M.next()).done;)u.next(_.value)}catch(F){T={error:F}}finally{try{_&&!_.done&&(C=M.return)&&(yield C.call(M))}finally{if(T)throw T.error}}return f.abort()}catch(N){if(f.signal.aborted)return;if(!(N instanceof I)||!w||k>=w)throw N;P=N}})().then(()=>u.complete()).catch(T=>u.error(T)),()=>f.abort()}x++;const i=new c,D=r.onDispose(()=>{D(),i.abort()});return(0,L.Z)(function*(){var f,G;const T=y();s=Object.assign(Object.assign({},s),{extensions:Object.assign(Object.assign({},s.extensions),{operationId:T})});let C=null;for(;;){C=null;try{const{url:k,headers:M,getResults:_}=yield E();let N;try{N=yield h(k,{signal:i.signal,method:"POST",credentials:b,headers:M,body:JSON.stringify(s)})}catch(j){throw new I(j)}if(202!==N.status)throw new I(N);C=function(){var j=(0,L.Z)(function*(){let A;try{const F=new c,oe=r.onDispose(()=>{oe(),F.abort()});A=yield h(k+"?operationId="+T,{signal:F.signal,method:"DELETE",credentials:b,headers:M})}catch(F){throw new I(F)}if(200!==A.status)throw new I(A)});return function(){return j.apply(this,arguments)}}();try{for(var P,U=(f=void 0,K(_({signal:i.signal,operationId:T})));!(P=yield U.next()).done;)u.next(P.value)}catch(j){f={error:j}}finally{try{P&&!P.done&&(G=U.return)&&(yield G.call(U))}finally{if(f)throw f.error}}return C=null,i.abort()}catch(k){if(i.signal.aborted)return yield null==C?void 0:C();if(!(k instanceof I)||(n&&(d=void 0),!w||p>=w))throw k;g=k}finally{i.signal.aborted&&0==--x&&(isFinite(l)&&l>0?setTimeout(()=>{x||o.abort()},l):o.abort())}}})().then(()=>u.complete()).catch(f=>u.error(f)),()=>i.abort()},dispose(){r.dispose()}}}({url:this.subscriptionUrl,headers:this.extraOptions.headers})}execute(t){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new B.y(n=>{this.cleanup=this.client.subscribe({query:t.query,variables:t.variables,operationName:t.operationName},{next:(...l)=>n.next(...l),error:(...l)=>n.error(...l),complete:()=>n.complete()})})}close(){var t=this;return(0,L.Z)(function*(){var n,l;try{null==(n=t.cleanup)||n.call(t),t.cleanup=void 0,yield null==(l=t.client)?void 0:l.dispose(),t.client=void 0}catch(a){console.error(a)}})()}}}}]);
@@ -73,6 +73,7 @@
73
73
  "SUBSCRIPTION_PROVIDER_GRAPHQL_WS": "Websocket (graphql-ws)",
74
74
  "SUBSCRIPTION_PROVIDER_APP_SYNC": "AWS AppSync",
75
75
  "SUBSCRIPTION_PROVIDER_ACTION_CABLE": "Rails ActionCable",
76
+ "SUBSCRIPTION_PROVIDER_GRAPHQL_SSE": "Graphql over SSE",
76
77
 
77
78
  "HISTORY_TEXT": "History",
78
79
  "HISTORY_CLEAR_TEXT": "Clear History",