altair-static 4.3.1 → 4.4.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.
@@ -0,0 +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 l=JSON.parse(e,n);if(!G(l))throw new Error("Invalid message");return l}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:l,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*(c){let i=1e3;for(let o=0;o<c;o++)i*=2;yield new Promise(o=>setTimeout(o,i+Math.floor(2700*Math.random()+300)))});return function(c){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 c=16*Math.random()|0;return("x"==u?c:3&c|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 c={};return{on:(i,o)=>(c[i]=o,()=>{delete c[i]}),emit(i){var o;"id"in i&&(null===(o=c[i.id])||void 0===o||o.call(c,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(c,i){const o=u[c];return o.push(i),()=>{o.splice(o.indexOf(i),1)}},emit(c,...i){for(const o of u[c])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 a=new k("function"==typeof n?yield n():n,K);let P;function W(){isFinite(T)&&T>0&&(clearTimeout(P),P=setTimeout(()=>{a.readyState===k.OPEN&&(a.send(N({type:s.Ping})),p.emit("ping",!1,void 0))},T))}a.onerror=f=>{p.emit("error",f)},a.onclose=f=>{m=void 0,clearTimeout(P),p.emit("closed",f),x(f)},a.onopen=(0,h.Z)(function*(){try{a.send(N({type:s.ConnectionInit,payload:"function"==typeof l?yield l():l},z)),W()}catch(f){a.close(4400,f instanceof Error?f.message:new Error(f).message)}});let L=!1;a.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||(a.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",a,d.payload),F=!1,I=0,o([a,new Promise((le,ie)=>a.addEventListener("close",ie))])}catch(d){a.close(4400,d instanceof Error?d.message:new Error(d).message)}}})());t.readyState===k.CLOSING&&(yield u);let c=()=>{};const i=new Promise(o=>c=o);return[t,c,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 c=re();let i=!1,o=!1,x=()=>{g--,i=!0};return(0,h.Z)(function*(){for(g++;;)try{const[a,P,W]=yield j();if(i)return P();const L=p.onMessage(c,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 a.send(N({id:c,type:s.Subscribe,payload:t},z)),x=()=>{!i&&a.readyState===k.OPEN&&a.send(N({id:c,type:s.Complete},z)),g--,i=!0,P()},void(yield W.finally(L))}catch(a){if(!B(a))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,l;null==(l=null==(n=this.extraOptions)?void 0:n.onConnected)||l.call(n,void 0,void 0)},error:n=>{var l,y;null==(y=null==(l=this.extraOptions)?void 0:l.onConnected)||y.call(l,n,void 0)}}})}execute(n){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new J.y(l=>this.client.subscribe({query:n.query,variables:n.variables,operationName:n.operationName},{next:(...y)=>l.next(...y),error:(...y)=>l.error(...y),complete:()=>l.complete()}))}close(){var n;null==(n=this.client)||n.dispose(),this.client=void 0}}}}]);
@@ -419,6 +419,312 @@ MIT
419
419
  @ngx-translate/http-loader
420
420
  MIT
421
421
 
422
+ @supabase/gotrue-js
423
+ MIT
424
+ MIT License
425
+
426
+ Copyright (c) 2020 Supabase
427
+
428
+ Permission is hereby granted, free of charge, to any person obtaining a copy
429
+ of this software and associated documentation files (the "Software"), to deal
430
+ in the Software without restriction, including without limitation the rights
431
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
432
+ copies of the Software, and to permit persons to whom the Software is
433
+ furnished to do so, subject to the following conditions:
434
+
435
+ The above copyright notice and this permission notice shall be included in all
436
+ copies or substantial portions of the Software.
437
+
438
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
439
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
440
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
441
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
442
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
443
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
444
+ SOFTWARE.
445
+
446
+
447
+ @supabase/postgrest-js
448
+ MIT
449
+ MIT License
450
+
451
+ Copyright (c) 2020 Supabase
452
+
453
+ Permission is hereby granted, free of charge, to any person obtaining a copy
454
+ of this software and associated documentation files (the "Software"), to deal
455
+ in the Software without restriction, including without limitation the rights
456
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
457
+ copies of the Software, and to permit persons to whom the Software is
458
+ furnished to do so, subject to the following conditions:
459
+
460
+ The above copyright notice and this permission notice shall be included in all
461
+ copies or substantial portions of the Software.
462
+
463
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
464
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
465
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
466
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
467
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
468
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
469
+ SOFTWARE.
470
+
471
+
472
+ @supabase/realtime-js
473
+ MIT
474
+ # MIT License
475
+
476
+ Copyright (c) 2020 Supabase
477
+
478
+ Permission is hereby granted, free of charge, to any person obtaining
479
+ a copy of this software and associated documentation files (the
480
+ "Software"), to deal in the Software without restriction, including
481
+ without limitation the rights to use, copy, modify, merge, publish,
482
+ distribute, sublicense, and/or sell copies of the Software, and to
483
+ permit persons to whom the Software is furnished to do so, subject to
484
+ the following conditions:
485
+
486
+ The above copyright notice and this permission notice shall be
487
+ included in all copies or substantial portions of the Software.
488
+
489
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
490
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
491
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
492
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
493
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
494
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
495
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
496
+
497
+
498
+ @supabase/storage-js
499
+ MIT
500
+ Apache License
501
+ Version 2.0, January 2004
502
+ http://www.apache.org/licenses/
503
+
504
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
505
+
506
+ 1. Definitions.
507
+
508
+ "License" shall mean the terms and conditions for use, reproduction,
509
+ and distribution as defined by Sections 1 through 9 of this document.
510
+
511
+ "Licensor" shall mean the copyright owner or entity authorized by
512
+ the copyright owner that is granting the License.
513
+
514
+ "Legal Entity" shall mean the union of the acting entity and all
515
+ other entities that control, are controlled by, or are under common
516
+ control with that entity. For the purposes of this definition,
517
+ "control" means (i) the power, direct or indirect, to cause the
518
+ direction or management of such entity, whether by contract or
519
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
520
+ outstanding shares, or (iii) beneficial ownership of such entity.
521
+
522
+ "You" (or "Your") shall mean an individual or Legal Entity
523
+ exercising permissions granted by this License.
524
+
525
+ "Source" form shall mean the preferred form for making modifications,
526
+ including but not limited to software source code, documentation
527
+ source, and configuration files.
528
+
529
+ "Object" form shall mean any form resulting from mechanical
530
+ transformation or translation of a Source form, including but
531
+ not limited to compiled object code, generated documentation,
532
+ and conversions to other media types.
533
+
534
+ "Work" shall mean the work of authorship, whether in Source or
535
+ Object form, made available under the License, as indicated by a
536
+ copyright notice that is included in or attached to the work
537
+ (an example is provided in the Appendix below).
538
+
539
+ "Derivative Works" shall mean any work, whether in Source or Object
540
+ form, that is based on (or derived from) the Work and for which the
541
+ editorial revisions, annotations, elaborations, or other modifications
542
+ represent, as a whole, an original work of authorship. For the purposes
543
+ of this License, Derivative Works shall not include works that remain
544
+ separable from, or merely link (or bind by name) to the interfaces of,
545
+ the Work and Derivative Works thereof.
546
+
547
+ "Contribution" shall mean any work of authorship, including
548
+ the original version of the Work and any modifications or additions
549
+ to that Work or Derivative Works thereof, that is intentionally
550
+ submitted to Licensor for inclusion in the Work by the copyright owner
551
+ or by an individual or Legal Entity authorized to submit on behalf of
552
+ the copyright owner. For the purposes of this definition, "submitted"
553
+ means any form of electronic, verbal, or written communication sent
554
+ to the Licensor or its representatives, including but not limited to
555
+ communication on electronic mailing lists, source code control systems,
556
+ and issue tracking systems that are managed by, or on behalf of, the
557
+ Licensor for the purpose of discussing and improving the Work, but
558
+ excluding communication that is conspicuously marked or otherwise
559
+ designated in writing by the copyright owner as "Not a Contribution."
560
+
561
+ "Contributor" shall mean Licensor and any individual or Legal Entity
562
+ on behalf of whom a Contribution has been received by Licensor and
563
+ subsequently incorporated within the Work.
564
+
565
+ 2. Grant of Copyright License. Subject to the terms and conditions of
566
+ this License, each Contributor hereby grants to You a perpetual,
567
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
568
+ copyright license to reproduce, prepare Derivative Works of,
569
+ publicly display, publicly perform, sublicense, and distribute the
570
+ Work and such Derivative Works in Source or Object form.
571
+
572
+ 3. Grant of Patent License. Subject to the terms and conditions of
573
+ this License, each Contributor hereby grants to You a perpetual,
574
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
575
+ (except as stated in this section) patent license to make, have made,
576
+ use, offer to sell, sell, import, and otherwise transfer the Work,
577
+ where such license applies only to those patent claims licensable
578
+ by such Contributor that are necessarily infringed by their
579
+ Contribution(s) alone or by combination of their Contribution(s)
580
+ with the Work to which such Contribution(s) was submitted. If You
581
+ institute patent litigation against any entity (including a
582
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
583
+ or a Contribution incorporated within the Work constitutes direct
584
+ or contributory patent infringement, then any patent licenses
585
+ granted to You under this License for that Work shall terminate
586
+ as of the date such litigation is filed.
587
+
588
+ 4. Redistribution. You may reproduce and distribute copies of the
589
+ Work or Derivative Works thereof in any medium, with or without
590
+ modifications, and in Source or Object form, provided that You
591
+ meet the following conditions:
592
+
593
+ (a) You must give any other recipients of the Work or
594
+ Derivative Works a copy of this License; and
595
+
596
+ (b) You must cause any modified files to carry prominent notices
597
+ stating that You changed the files; and
598
+
599
+ (c) You must retain, in the Source form of any Derivative Works
600
+ that You distribute, all copyright, patent, trademark, and
601
+ attribution notices from the Source form of the Work,
602
+ excluding those notices that do not pertain to any part of
603
+ the Derivative Works; and
604
+
605
+ (d) If the Work includes a "NOTICE" text file as part of its
606
+ distribution, then any Derivative Works that You distribute must
607
+ include a readable copy of the attribution notices contained
608
+ within such NOTICE file, excluding those notices that do not
609
+ pertain to any part of the Derivative Works, in at least one
610
+ of the following places: within a NOTICE text file distributed
611
+ as part of the Derivative Works; within the Source form or
612
+ documentation, if provided along with the Derivative Works; or,
613
+ within a display generated by the Derivative Works, if and
614
+ wherever such third-party notices normally appear. The contents
615
+ of the NOTICE file are for informational purposes only and
616
+ do not modify the License. You may add Your own attribution
617
+ notices within Derivative Works that You distribute, alongside
618
+ or as an addendum to the NOTICE text from the Work, provided
619
+ that such additional attribution notices cannot be construed
620
+ as modifying the License.
621
+
622
+ You may add Your own copyright statement to Your modifications and
623
+ may provide additional or different license terms and conditions
624
+ for use, reproduction, or distribution of Your modifications, or
625
+ for any such Derivative Works as a whole, provided Your use,
626
+ reproduction, and distribution of the Work otherwise complies with
627
+ the conditions stated in this License.
628
+
629
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
630
+ any Contribution intentionally submitted for inclusion in the Work
631
+ by You to the Licensor shall be under the terms and conditions of
632
+ this License, without any additional terms or conditions.
633
+ Notwithstanding the above, nothing herein shall supersede or modify
634
+ the terms of any separate license agreement you may have executed
635
+ with Licensor regarding such Contributions.
636
+
637
+ 6. Trademarks. This License does not grant permission to use the trade
638
+ names, trademarks, service marks, or product names of the Licensor,
639
+ except as required for reasonable and customary use in describing the
640
+ origin of the Work and reproducing the content of the NOTICE file.
641
+
642
+ 7. Disclaimer of Warranty. Unless required by applicable law or
643
+ agreed to in writing, Licensor provides the Work (and each
644
+ Contributor provides its Contributions) on an "AS IS" BASIS,
645
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
646
+ implied, including, without limitation, any warranties or conditions
647
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
648
+ PARTICULAR PURPOSE. You are solely responsible for determining the
649
+ appropriateness of using or redistributing the Work and assume any
650
+ risks associated with Your exercise of permissions under this License.
651
+
652
+ 8. Limitation of Liability. In no event and under no legal theory,
653
+ whether in tort (including negligence), contract, or otherwise,
654
+ unless required by applicable law (such as deliberate and grossly
655
+ negligent acts) or agreed to in writing, shall any Contributor be
656
+ liable to You for damages, including any direct, indirect, special,
657
+ incidental, or consequential damages of any character arising as a
658
+ result of this License or out of the use or inability to use the
659
+ Work (including but not limited to damages for loss of goodwill,
660
+ work stoppage, computer failure or malfunction, or any and all
661
+ other commercial damages or losses), even if such Contributor
662
+ has been advised of the possibility of such damages.
663
+
664
+ 9. Accepting Warranty or Additional Liability. While redistributing
665
+ the Work or Derivative Works thereof, You may choose to offer,
666
+ and charge a fee for, acceptance of support, warranty, indemnity,
667
+ or other liability obligations and/or rights consistent with this
668
+ License. However, in accepting such obligations, You may act only
669
+ on Your own behalf and on Your sole responsibility, not on behalf
670
+ of any other Contributor, and only if You agree to indemnify,
671
+ defend, and hold each Contributor harmless for any liability
672
+ incurred by, or claims asserted against, such Contributor by reason
673
+ of your accepting any such warranty or additional liability.
674
+
675
+ END OF TERMS AND CONDITIONS
676
+
677
+ APPENDIX: How to apply the Apache License to your work.
678
+
679
+ To apply the Apache License to your work, attach the following
680
+ boilerplate notice, with the fields enclosed by brackets "[]"
681
+ replaced with your own identifying information. (Don't include
682
+ the brackets!) The text should be enclosed in the appropriate
683
+ comment syntax for the file format. We also recommend that a
684
+ file or class name and description of purpose be included on the
685
+ same "printed page" as the copyright notice for easier
686
+ identification within third-party archives.
687
+
688
+ Copyright [yyyy] [name of copyright owner]
689
+
690
+ Licensed under the Apache License, Version 2.0 (the "License");
691
+ you may not use this file except in compliance with the License.
692
+ You may obtain a copy of the License at
693
+
694
+ http://www.apache.org/licenses/LICENSE-2.0
695
+
696
+ Unless required by applicable law or agreed to in writing, software
697
+ distributed under the License is distributed on an "AS IS" BASIS,
698
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
699
+ See the License for the specific language governing permissions and
700
+ limitations under the License.
701
+
702
+
703
+ @supabase/supabase-js
704
+ MIT
705
+ MIT License
706
+
707
+ Copyright (c) 2020 Supabase
708
+
709
+ Permission is hereby granted, free of charge, to any person obtaining a copy
710
+ of this software and associated documentation files (the "Software"), to deal
711
+ in the Software without restriction, including without limitation the rights
712
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
713
+ copies of the Software, and to permit persons to whom the Software is
714
+ furnished to do so, subject to the following conditions:
715
+
716
+ The above copyright notice and this permission notice shall be included in all
717
+ copies or substantial portions of the Software.
718
+
719
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
720
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
721
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
722
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
723
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
724
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
725
+ SOFTWARE.
726
+
727
+
422
728
  @webcomponents/custom-elements
423
729
  BSD-3-Clause
424
730
  # License
@@ -1327,6 +1633,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1327
1633
  SOFTWARE.
1328
1634
 
1329
1635
 
1636
+ cross-fetch
1637
+ MIT
1638
+ The MIT License (MIT)
1639
+
1640
+ Copyright (c) 2017 Leonardo Quixadá
1641
+
1642
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1643
+ of this software and associated documentation files (the "Software"), to deal
1644
+ in the Software without restriction, including without limitation the rights
1645
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1646
+ copies of the Software, and to permit persons to whom the Software is
1647
+ furnished to do so, subject to the following conditions:
1648
+
1649
+ The above copyright notice and this permission notice shall be included in all
1650
+ copies or substantial portions of the Software.
1651
+
1652
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1653
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1654
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1655
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1656
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1657
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1658
+ SOFTWARE.
1659
+
1660
+
1330
1661
  crypto-js
1331
1662
  MIT
1332
1663
  # License
@@ -4023,6 +4354,187 @@ The above copyright notice and this permission notice shall be included in all c
4023
4354
  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.
4024
4355
 
4025
4356
 
4357
+ websocket
4358
+ Apache-2.0
4359
+
4360
+ Apache License
4361
+ Version 2.0, January 2004
4362
+ http://www.apache.org/licenses/
4363
+
4364
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
4365
+
4366
+ 1. Definitions.
4367
+
4368
+ "License" shall mean the terms and conditions for use, reproduction,
4369
+ and distribution as defined by Sections 1 through 9 of this document.
4370
+
4371
+ "Licensor" shall mean the copyright owner or entity authorized by
4372
+ the copyright owner that is granting the License.
4373
+
4374
+ "Legal Entity" shall mean the union of the acting entity and all
4375
+ other entities that control, are controlled by, or are under common
4376
+ control with that entity. For the purposes of this definition,
4377
+ "control" means (i) the power, direct or indirect, to cause the
4378
+ direction or management of such entity, whether by contract or
4379
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
4380
+ outstanding shares, or (iii) beneficial ownership of such entity.
4381
+
4382
+ "You" (or "Your") shall mean an individual or Legal Entity
4383
+ exercising permissions granted by this License.
4384
+
4385
+ "Source" form shall mean the preferred form for making modifications,
4386
+ including but not limited to software source code, documentation
4387
+ source, and configuration files.
4388
+
4389
+ "Object" form shall mean any form resulting from mechanical
4390
+ transformation or translation of a Source form, including but
4391
+ not limited to compiled object code, generated documentation,
4392
+ and conversions to other media types.
4393
+
4394
+ "Work" shall mean the work of authorship, whether in Source or
4395
+ Object form, made available under the License, as indicated by a
4396
+ copyright notice that is included in or attached to the work
4397
+ (an example is provided in the Appendix below).
4398
+
4399
+ "Derivative Works" shall mean any work, whether in Source or Object
4400
+ form, that is based on (or derived from) the Work and for which the
4401
+ editorial revisions, annotations, elaborations, or other modifications
4402
+ represent, as a whole, an original work of authorship. For the purposes
4403
+ of this License, Derivative Works shall not include works that remain
4404
+ separable from, or merely link (or bind by name) to the interfaces of,
4405
+ the Work and Derivative Works thereof.
4406
+
4407
+ "Contribution" shall mean any work of authorship, including
4408
+ the original version of the Work and any modifications or additions
4409
+ to that Work or Derivative Works thereof, that is intentionally
4410
+ submitted to Licensor for inclusion in the Work by the copyright owner
4411
+ or by an individual or Legal Entity authorized to submit on behalf of
4412
+ the copyright owner. For the purposes of this definition, "submitted"
4413
+ means any form of electronic, verbal, or written communication sent
4414
+ to the Licensor or its representatives, including but not limited to
4415
+ communication on electronic mailing lists, source code control systems,
4416
+ and issue tracking systems that are managed by, or on behalf of, the
4417
+ Licensor for the purpose of discussing and improving the Work, but
4418
+ excluding communication that is conspicuously marked or otherwise
4419
+ designated in writing by the copyright owner as "Not a Contribution."
4420
+
4421
+ "Contributor" shall mean Licensor and any individual or Legal Entity
4422
+ on behalf of whom a Contribution has been received by Licensor and
4423
+ subsequently incorporated within the Work.
4424
+
4425
+ 2. Grant of Copyright License. Subject to the terms and conditions of
4426
+ this License, each Contributor hereby grants to You a perpetual,
4427
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
4428
+ copyright license to reproduce, prepare Derivative Works of,
4429
+ publicly display, publicly perform, sublicense, and distribute the
4430
+ Work and such Derivative Works in Source or Object form.
4431
+
4432
+ 3. Grant of Patent License. Subject to the terms and conditions of
4433
+ this License, each Contributor hereby grants to You a perpetual,
4434
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
4435
+ (except as stated in this section) patent license to make, have made,
4436
+ use, offer to sell, sell, import, and otherwise transfer the Work,
4437
+ where such license applies only to those patent claims licensable
4438
+ by such Contributor that are necessarily infringed by their
4439
+ Contribution(s) alone or by combination of their Contribution(s)
4440
+ with the Work to which such Contribution(s) was submitted. If You
4441
+ institute patent litigation against any entity (including a
4442
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
4443
+ or a Contribution incorporated within the Work constitutes direct
4444
+ or contributory patent infringement, then any patent licenses
4445
+ granted to You under this License for that Work shall terminate
4446
+ as of the date such litigation is filed.
4447
+
4448
+ 4. Redistribution. You may reproduce and distribute copies of the
4449
+ Work or Derivative Works thereof in any medium, with or without
4450
+ modifications, and in Source or Object form, provided that You
4451
+ meet the following conditions:
4452
+
4453
+ (a) You must give any other recipients of the Work or
4454
+ Derivative Works a copy of this License; and
4455
+
4456
+ (b) You must cause any modified files to carry prominent notices
4457
+ stating that You changed the files; and
4458
+
4459
+ (c) You must retain, in the Source form of any Derivative Works
4460
+ that You distribute, all copyright, patent, trademark, and
4461
+ attribution notices from the Source form of the Work,
4462
+ excluding those notices that do not pertain to any part of
4463
+ the Derivative Works; and
4464
+
4465
+ (d) If the Work includes a "NOTICE" text file as part of its
4466
+ distribution, then any Derivative Works that You distribute must
4467
+ include a readable copy of the attribution notices contained
4468
+ within such NOTICE file, excluding those notices that do not
4469
+ pertain to any part of the Derivative Works, in at least one
4470
+ of the following places: within a NOTICE text file distributed
4471
+ as part of the Derivative Works; within the Source form or
4472
+ documentation, if provided along with the Derivative Works; or,
4473
+ within a display generated by the Derivative Works, if and
4474
+ wherever such third-party notices normally appear. The contents
4475
+ of the NOTICE file are for informational purposes only and
4476
+ do not modify the License. You may add Your own attribution
4477
+ notices within Derivative Works that You distribute, alongside
4478
+ or as an addendum to the NOTICE text from the Work, provided
4479
+ that such additional attribution notices cannot be construed
4480
+ as modifying the License.
4481
+
4482
+ You may add Your own copyright statement to Your modifications and
4483
+ may provide additional or different license terms and conditions
4484
+ for use, reproduction, or distribution of Your modifications, or
4485
+ for any such Derivative Works as a whole, provided Your use,
4486
+ reproduction, and distribution of the Work otherwise complies with
4487
+ the conditions stated in this License.
4488
+
4489
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
4490
+ any Contribution intentionally submitted for inclusion in the Work
4491
+ by You to the Licensor shall be under the terms and conditions of
4492
+ this License, without any additional terms or conditions.
4493
+ Notwithstanding the above, nothing herein shall supersede or modify
4494
+ the terms of any separate license agreement you may have executed
4495
+ with Licensor regarding such Contributions.
4496
+
4497
+ 6. Trademarks. This License does not grant permission to use the trade
4498
+ names, trademarks, service marks, or product names of the Licensor,
4499
+ except as required for reasonable and customary use in describing the
4500
+ origin of the Work and reproducing the content of the NOTICE file.
4501
+
4502
+ 7. Disclaimer of Warranty. Unless required by applicable law or
4503
+ agreed to in writing, Licensor provides the Work (and each
4504
+ Contributor provides its Contributions) on an "AS IS" BASIS,
4505
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
4506
+ implied, including, without limitation, any warranties or conditions
4507
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
4508
+ PARTICULAR PURPOSE. You are solely responsible for determining the
4509
+ appropriateness of using or redistributing the Work and assume any
4510
+ risks associated with Your exercise of permissions under this License.
4511
+
4512
+ 8. Limitation of Liability. In no event and under no legal theory,
4513
+ whether in tort (including negligence), contract, or otherwise,
4514
+ unless required by applicable law (such as deliberate and grossly
4515
+ negligent acts) or agreed to in writing, shall any Contributor be
4516
+ liable to You for damages, including any direct, indirect, special,
4517
+ incidental, or consequential damages of any character arising as a
4518
+ result of this License or out of the use or inability to use the
4519
+ Work (including but not limited to damages for loss of goodwill,
4520
+ work stoppage, computer failure or malfunction, or any and all
4521
+ other commercial damages or losses), even if such Contributor
4522
+ has been advised of the possibility of such damages.
4523
+
4524
+ 9. Accepting Warranty or Additional Liability. While redistributing
4525
+ the Work or Derivative Works thereof, You may choose to offer,
4526
+ and charge a fee for, acceptance of support, warranty, indemnity,
4527
+ or other liability obligations and/or rights consistent with this
4528
+ License. However, in accepting such obligations, You may act only
4529
+ on Your own behalf and on Your sole responsibility, not on behalf
4530
+ of any other Contributor, and only if You agree to indemnify,
4531
+ defend, and hold each Contributor harmless for any liability
4532
+ incurred by, or claims asserted against, such Contributor by reason
4533
+ of your accepting any such warranty or additional liability.
4534
+
4535
+ END OF TERMS AND CONDITIONS
4536
+
4537
+
4026
4538
  which-typed-array
4027
4539
  MIT
4028
4540
  The MIT License (MIT)
package/build/dist/790.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[790],{98790:function(m,d,b){"use strict";var g=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(d,"__esModule",{value:!0}),d.ActionCableSubscriptionProvider=void 0;const v=b(71251),y=b(52999),s=g(b(80650));d.ActionCableSubscriptionProvider=class extends v.SubscriptionProvider{execute(t){const o=s.default.createConsumer(this.subscriptionUrl);return new y.Observable(e=>{this.subscription=o.subscriptions.create(Object.assign({},{channel:this.connectionParams.channel||"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{}),{connected:function(){this.perform("execute",t)},received:function(i){(i.result.data||i.result.errors)&&e.next(i.result),i.more||e.complete()}})})}close(){var t;null==(t=this.subscription)||t.unsubscribe()}}},80650:function(m,d,b){var g,v;(function(){(function(){(function(){var l=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(n){var t;return null==n&&(n=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new s.Consumer(this.createWebSocketURL(n))},getConfig:function(n){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+n+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(n){var t;return n&&!/^wss?:/i.test(n)?((t=document.createElement("a")).href=n,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):n},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var n,t;if(n=1<=arguments.length?l.call(arguments,0):[],this.debugging)return n.push(Date.now()),(t=this.logger).log.apply(t,["[ActionCable]"].concat(l.call(n)))}}}).call(this)}).call(this);var s=this.ActionCable;(function(){(function(){s.ConnectionMonitor=function(){var n,t,o;function e(i){this.connection=i,this.visibilityDidChange=function(n,t){return function(){return n.apply(t,arguments)}}(this.visibilityDidChange,this),this.reconnectAttempts=0}return e.pollInterval={min:3,max:30},e.staleThreshold=6,e.prototype.start=function(){if(!this.isRunning())return this.startedAt=t(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},e.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=t(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor stopped")},e.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},e.prototype.recordPing=function(){return this.pingedAt=t()},e.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,s.log("ConnectionMonitor recorded connect")},e.prototype.recordDisconnect=function(){return this.disconnectedAt=t(),s.log("ConnectionMonitor recorded disconnect")},e.prototype.startPolling=function(){return this.stopPolling(),this.poll()},e.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},e.prototype.poll=function(){return this.pollTimeout=setTimeout((i=this,function(){return i.reconnectIfStale(),i.poll()}),this.getPollInterval());var i},e.prototype.getPollInterval=function(){var i,c,u,h;return u=(h=this.constructor.pollInterval).min,c=h.max,i=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*n(i,u,c))},e.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return s.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+o(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?s.log("ConnectionMonitor skipping reopening recent disconnect"):(s.log("ConnectionMonitor reopening"),this.connection.reopen())},e.prototype.connectionIsStale=function(){var i;return o(null!=(i=this.pingedAt)?i:this.startedAt)>this.constructor.staleThreshold},e.prototype.disconnectedRecently=function(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold},e.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((i=this,function(){if(i.connectionIsStale()||!i.connection.isOpen())return s.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),i.connection.reopen()}),200);var i},t=function(){return(new Date).getTime()},o=function(i){return(t()-i)/1e3},n=function(i,c,u){return Math.max(c,Math.min(u,i))},e}()}).call(this),function(){var n,t,o,e,c=[].slice,h=[].indexOf||function(p){for(var r=0,a=this.length;r<a;r++)if(r in this&&this[r]===p)return r;return-1};n=(o=s.INTERNAL).message_types,e=2<=(t=o.protocols).length?c.call(t,0,t.length-1):(0,[]),s.Connection=function(){function p(r){this.consumer=r,this.open=function(p,r){return function(){return p.apply(r,arguments)}}(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new s.ConnectionMonitor(this),this.disconnected=!0}return p.reopenDelay=500,p.prototype.send=function(r){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(r)),!0)},p.prototype.open=function(){return this.isActive()?(s.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(s.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+t),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new s.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0)},p.prototype.close=function(r){var f;if((null!=r?r:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(f=this.webSocket)?f.close():void 0},p.prototype.reopen=function(){if(s.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(a){return s.log("Failed to reopen WebSocket",a)}finally{s.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},p.prototype.getProtocol=function(){var r;return null!=(r=this.webSocket)?r.protocol:void 0},p.prototype.isOpen=function(){return this.isState("open")},p.prototype.isActive=function(){return this.isState("open","connecting")},p.prototype.isProtocolSupported=function(){var r;return r=this.getProtocol(),h.call(e,r)>=0},p.prototype.isState=function(){var r,a;return a=1<=arguments.length?c.call(arguments,0):[],r=this.getState(),h.call(a,r)>=0},p.prototype.getState=function(){var r,a;for(a in WebSocket)if(WebSocket[a]===(null!=(r=this.webSocket)?r.readyState:void 0))return a.toLowerCase();return null},p.prototype.installEventHandlers=function(){var r,a;for(r in this.events)a=this.events[r].bind(this),this.webSocket["on"+r]=a},p.prototype.uninstallEventHandlers=function(){var r;for(r in this.events)this.webSocket["on"+r]=function(){}},p.prototype.events={message:function(r){var a,f,S,A;if(this.isProtocolSupported())switch(S=JSON.parse(r.data),a=S.identifier,f=S.message,A=S.type,A){case n.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case n.ping:return this.monitor.recordPing();case n.confirmation:return this.subscriptions.notify(a,"connected");case n.rejection:return this.subscriptions.reject(a);default:return this.subscriptions.notify(a,"received",f)}},open:function(){if(s.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return s.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(r){if(s.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return s.log("WebSocket onerror event")}},p}()}.call(this),function(){var l=[].slice;s.Subscriptions=function(){function n(t){this.consumer=t,this.subscriptions=[]}return n.prototype.create=function(t,o){var e,c;return c=new s.Subscription(this.consumer,"object"==typeof(e=t)?e:{channel:e},o),this.add(c)},n.prototype.add=function(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.sendCommand(t,"subscribe"),t},n.prototype.remove=function(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t},n.prototype.reject=function(t){var o,e,i,c,u;for(c=[],o=0,e=(i=this.findAll(t)).length;o<e;o++)this.forget(u=i[o]),this.notify(u,"rejected"),c.push(u);return c},n.prototype.forget=function(t){var o;return this.subscriptions=function(){var e,i,c,u;for(u=[],e=0,i=(c=this.subscriptions).length;e<i;e++)(o=c[e])!==t&&u.push(o);return u}.call(this),t},n.prototype.findAll=function(t){var o,e,i,c,u;for(c=[],o=0,e=(i=this.subscriptions).length;o<e;o++)(u=i[o]).identifier===t&&c.push(u);return c},n.prototype.reload=function(){var t,o,e,i;for(i=[],t=0,o=(e=this.subscriptions).length;t<o;t++)i.push(this.sendCommand(e[t],"subscribe"));return i},n.prototype.notifyAll=function(){var t,o,e,i,c,u;for(o=arguments[0],t=2<=arguments.length?l.call(arguments,1):[],u=[],e=0,i=(c=this.subscriptions).length;e<i;e++)u.push(this.notify.apply(this,[c[e],o].concat(l.call(t))));return u},n.prototype.notify=function(){var t,o,e,i,c,u,h;for(u=arguments[0],o=arguments[1],t=3<=arguments.length?l.call(arguments,2):[],c=[],e=0,i=(h="string"==typeof u?this.findAll(u):[u]).length;e<i;e++)c.push("function"==typeof(u=h[e])[o]?u[o].apply(u,t):void 0);return c},n.prototype.sendCommand=function(t,o){return this.consumer.send({command:o,identifier:t.identifier})},n}()}.call(this),function(){s.Subscription=function(){var l;function n(t,o,e){this.consumer=t,null==o&&(o={}),this.identifier=JSON.stringify(o),l(this,e)}return n.prototype.perform=function(t,o){return null==o&&(o={}),o.action=t,this.send(o)},n.prototype.send=function(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})},n.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},l=function(t,o){var e;if(null!=o)for(e in o)t[e]=o[e];return t},n}()}.call(this),function(){s.Consumer=function(){function l(n){this.url=n,this.subscriptions=new s.Subscriptions(this),this.connection=new s.Connection(this)}return l.prototype.send=function(n){return this.connection.send(n)},l.prototype.connect=function(){return this.connection.open()},l.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},l.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},l}()}.call(this)}).call(this),m.exports?m.exports=s:void 0!==(v="function"==typeof(g=s)?g.call(d,b,d,m):g)&&(m.exports=v)}).call(this)}}]);
1
+ (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[790],{98790:(m,v,f)=>{"use strict";f.r(v),f.d(v,{ActionCableSubscriptionProvider:()=>l});var g=f(71251),b=f(82475),y=f(80650),s=f.n(y);class l extends g.q{execute(t){const o=s().createConsumer(this.subscriptionUrl);return new b.y(n=>{this.subscription=o.subscriptions.create(Object.assign({},{channel:this.connectionParams.channel||"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{}),{connected:function(){this.perform("execute",t)},received:function(e){(e.result.data||e.result.errors)&&n.next(e.result),e.more||n.complete()}})})}close(){var t;null==(t=this.subscription)||t.unsubscribe()}}},80650:function(m,v,f){var g,b;(function(){(function(){(function(){var l=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(i){var t;return null==i&&(i=null!=(t=this.getConfig("url"))?t:this.INTERNAL.default_mount_path),new s.Consumer(this.createWebSocketURL(i))},getConfig:function(i){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+i+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(i){var t;return i&&!/^wss?:/i.test(i)?((t=document.createElement("a")).href=i,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):i},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var i,t;if(i=1<=arguments.length?l.call(arguments,0):[],this.debugging)return i.push(Date.now()),(t=this.logger).log.apply(t,["[ActionCable]"].concat(l.call(i)))}}}).call(this)}).call(this);var s=this.ActionCable;(function(){(function(){s.ConnectionMonitor=function(){var i,t,o;function n(e){this.connection=e,this.visibilityDidChange=function(i,t){return function(){return i.apply(t,arguments)}}(this.visibilityDidChange,this),this.reconnectAttempts=0}return n.pollInterval={min:3,max:30},n.staleThreshold=6,n.prototype.start=function(){if(!this.isRunning())return this.startedAt=t(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},n.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=t(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),s.log("ConnectionMonitor stopped")},n.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},n.prototype.recordPing=function(){return this.pingedAt=t()},n.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,s.log("ConnectionMonitor recorded connect")},n.prototype.recordDisconnect=function(){return this.disconnectedAt=t(),s.log("ConnectionMonitor recorded disconnect")},n.prototype.startPolling=function(){return this.stopPolling(),this.poll()},n.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},n.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},n.prototype.getPollInterval=function(){var e,c,u,h;return u=(h=this.constructor.pollInterval).min,c=h.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*i(e,u,c))},n.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return s.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+o(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?s.log("ConnectionMonitor skipping reopening recent disconnect"):(s.log("ConnectionMonitor reopening"),this.connection.reopen())},n.prototype.connectionIsStale=function(){var e;return o(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},n.prototype.disconnectedRecently=function(){return this.disconnectedAt&&o(this.disconnectedAt)<this.constructor.staleThreshold},n.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return s.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},t=function(){return(new Date).getTime()},o=function(e){return(t()-e)/1e3},i=function(e,c,u){return Math.max(c,Math.min(u,e))},n}()}).call(this),function(){var i,t,o,n,c=[].slice,h=[].indexOf||function(p){for(var r=0,a=this.length;r<a;r++)if(r in this&&this[r]===p)return r;return-1};i=(o=s.INTERNAL).message_types,n=2<=(t=o.protocols).length?c.call(t,0,t.length-1):(0,[]),s.Connection=function(){function p(r){this.consumer=r,this.open=function(p,r){return function(){return p.apply(r,arguments)}}(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new s.ConnectionMonitor(this),this.disconnected=!0}return p.reopenDelay=500,p.prototype.send=function(r){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(r)),!0)},p.prototype.open=function(){return this.isActive()?(s.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(s.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+t),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new s.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0)},p.prototype.close=function(r){var d;if((null!=r?r:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(d=this.webSocket)?d.close():void 0},p.prototype.reopen=function(){if(s.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(a){return s.log("Failed to reopen WebSocket",a)}finally{s.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},p.prototype.getProtocol=function(){var r;return null!=(r=this.webSocket)?r.protocol:void 0},p.prototype.isOpen=function(){return this.isState("open")},p.prototype.isActive=function(){return this.isState("open","connecting")},p.prototype.isProtocolSupported=function(){var r;return r=this.getProtocol(),h.call(n,r)>=0},p.prototype.isState=function(){var r,a;return a=1<=arguments.length?c.call(arguments,0):[],r=this.getState(),h.call(a,r)>=0},p.prototype.getState=function(){var r,a;for(a in WebSocket)if(WebSocket[a]===(null!=(r=this.webSocket)?r.readyState:void 0))return a.toLowerCase();return null},p.prototype.installEventHandlers=function(){var r,a;for(r in this.events)a=this.events[r].bind(this),this.webSocket["on"+r]=a},p.prototype.uninstallEventHandlers=function(){var r;for(r in this.events)this.webSocket["on"+r]=function(){}},p.prototype.events={message:function(r){var a,d,S,A;if(this.isProtocolSupported())switch(S=JSON.parse(r.data),a=S.identifier,d=S.message,A=S.type,A){case i.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case i.ping:return this.monitor.recordPing();case i.confirmation:return this.subscriptions.notify(a,"connected");case i.rejection:return this.subscriptions.reject(a);default:return this.subscriptions.notify(a,"received",d)}},open:function(){if(s.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return s.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(r){if(s.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return s.log("WebSocket onerror event")}},p}()}.call(this),function(){var l=[].slice;s.Subscriptions=function(){function i(t){this.consumer=t,this.subscriptions=[]}return i.prototype.create=function(t,o){var n,c;return c=new s.Subscription(this.consumer,"object"==typeof(n=t)?n:{channel:n},o),this.add(c)},i.prototype.add=function(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.sendCommand(t,"subscribe"),t},i.prototype.remove=function(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t},i.prototype.reject=function(t){var o,n,e,c,u;for(c=[],o=0,n=(e=this.findAll(t)).length;o<n;o++)this.forget(u=e[o]),this.notify(u,"rejected"),c.push(u);return c},i.prototype.forget=function(t){var o;return this.subscriptions=function(){var n,e,c,u;for(u=[],n=0,e=(c=this.subscriptions).length;n<e;n++)(o=c[n])!==t&&u.push(o);return u}.call(this),t},i.prototype.findAll=function(t){var o,n,e,c,u;for(c=[],o=0,n=(e=this.subscriptions).length;o<n;o++)(u=e[o]).identifier===t&&c.push(u);return c},i.prototype.reload=function(){var t,o,n,e;for(e=[],t=0,o=(n=this.subscriptions).length;t<o;t++)e.push(this.sendCommand(n[t],"subscribe"));return e},i.prototype.notifyAll=function(){var t,o,n,e,c,u;for(o=arguments[0],t=2<=arguments.length?l.call(arguments,1):[],u=[],n=0,e=(c=this.subscriptions).length;n<e;n++)u.push(this.notify.apply(this,[c[n],o].concat(l.call(t))));return u},i.prototype.notify=function(){var t,o,n,e,c,u,h;for(u=arguments[0],o=arguments[1],t=3<=arguments.length?l.call(arguments,2):[],c=[],n=0,e=(h="string"==typeof u?this.findAll(u):[u]).length;n<e;n++)c.push("function"==typeof(u=h[n])[o]?u[o].apply(u,t):void 0);return c},i.prototype.sendCommand=function(t,o){return this.consumer.send({command:o,identifier:t.identifier})},i}()}.call(this),function(){s.Subscription=function(){var l;function i(t,o,n){this.consumer=t,null==o&&(o={}),this.identifier=JSON.stringify(o),l(this,n)}return i.prototype.perform=function(t,o){return null==o&&(o={}),o.action=t,this.send(o)},i.prototype.send=function(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})},i.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},l=function(t,o){var n;if(null!=o)for(n in o)t[n]=o[n];return t},i}()}.call(this),function(){s.Consumer=function(){function l(i){this.url=i,this.subscriptions=new s.Subscriptions(this),this.connection=new s.Connection(this)}return l.prototype.send=function(i){return this.connection.send(i)},l.prototype.connect=function(){return this.connection.open()},l.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},l.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},l}()}.call(this)}).call(this),m.exports?m.exports=s:void 0!==(b="function"==typeof(g=s)?g.call(v,f,v,m):g)&&(m.exports=b)}).call(this)}}]);