altair-static 7.0.1 → 7.2.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.
Files changed (45) hide show
  1. package/build/dist/263.js +3 -3
  2. package/build/dist/3rdpartylicenses.txt +24 -0
  3. package/build/dist/43.js +5 -0
  4. package/build/dist/647.js +5 -0
  5. package/build/dist/{106.js → 667.js} +4 -4
  6. package/build/dist/885.js +5 -0
  7. package/build/dist/899.js +5 -0
  8. package/build/dist/assets/i18n/ach-UG.json +11 -5
  9. package/build/dist/assets/i18n/cs-CZ.json +11 -5
  10. package/build/dist/assets/i18n/da-DK.json +11 -5
  11. package/build/dist/assets/i18n/de-DE.json +11 -5
  12. package/build/dist/assets/i18n/default.json +14 -5
  13. package/build/dist/assets/i18n/en-US.json +11 -5
  14. package/build/dist/assets/i18n/es-ES.json +56 -50
  15. package/build/dist/assets/i18n/fi-FI.json +11 -5
  16. package/build/dist/assets/i18n/fr-FR.json +11 -5
  17. package/build/dist/assets/i18n/hu-HU.json +11 -5
  18. package/build/dist/assets/i18n/it-IT.json +11 -5
  19. package/build/dist/assets/i18n/ja-JP.json +11 -5
  20. package/build/dist/assets/i18n/ko-KR.json +11 -5
  21. package/build/dist/assets/i18n/nl-NL.json +11 -5
  22. package/build/dist/assets/i18n/no-NO.json +11 -5
  23. package/build/dist/assets/i18n/pl-PL.json +11 -5
  24. package/build/dist/assets/i18n/pt-BR.json +11 -5
  25. package/build/dist/assets/i18n/pt-PT.json +11 -5
  26. package/build/dist/assets/i18n/ro-RO.json +11 -5
  27. package/build/dist/assets/i18n/ru-RU.json +55 -49
  28. package/build/dist/assets/i18n/sr-SP.json +11 -5
  29. package/build/dist/assets/i18n/sv-SE.json +11 -5
  30. package/build/dist/assets/i18n/tr-TR.json +11 -5
  31. package/build/dist/assets/i18n/uk-UA.json +33 -27
  32. package/build/dist/assets/i18n/vi-VN.json +11 -5
  33. package/build/dist/assets/i18n/zh-CN.json +14 -8
  34. package/build/dist/assets/i18n/zh-TW.json +11 -5
  35. package/build/dist/main.js +4 -4
  36. package/build/dist/styles.css +1 -1
  37. package/build/index.d.ts +85 -41
  38. package/build/index.js +41 -34
  39. package/package.json +5 -5
  40. package/src/index.ts +51 -40
  41. package/build/dist/199.js +0 -5
  42. package/build/dist/295.js +0 -5
  43. package/build/dist/518.js +0 -5
  44. package/build/dist/639.js +0 -5
  45. package/build/dist/753.js +0 -5
package/build/dist/263.js CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed048bc0-e41e-5a11-bcf1-9ce4c86d1ead")}catch(e){}}();
3
- (()=>{"use strict";var __webpack_modules__={99263:(r,n,e)=>{var _=e(77065),a=e(85836);const s=["chrome-extension://flnheeellpciglgpaodhkhmapeljopja","chrome-extension://aiopipphfnlndegenpkclffgaiillbdd","moz-extension://567d7e27-43b8-994e-ab50-e770fa7eab4b","http://localhost:4200","https://dash.altairgraphql.dev","https://altair-gql.sirmuel.design","https://web.altairgraphql.dev","altair://-"];new a.J(new class u extends _.VJ{onMessage(t){self.addEventListener("message",i=>{i.origin&&!s.includes(i.origin)||t(i.data)})}send(t,i){self.postMessage({type:t,payload:i})}onError(t){self.addEventListener("error",t),self.addEventListener("unhandledrejection",i=>{i.preventDefault(),t(i.reason)})}}).start()},96599:(r,n,e)=>{e.d(n,{IL:()=>t});var _=e(26642),a=e(77065);const s={atob:{exec:()=>(0,_.Z)(function*(){return(yield e.e(857).then(e.t.bind(e,4857,23))).atob})()},btoa:{exec:()=>(0,_.Z)(function*(){return(yield e.e(857).then(e.t.bind(e,4857,23))).btoa})()},"crypto-js":{exec:()=>(0,_.Z)(function*(){return(yield e.e(658).then(e.t.bind(e,39658,23))).default})()}},u=i=>{if(i.response)return{body:i.response.response.body,requestType:i.requestType??a.xd.QUERY,responseTime:i.response.meta.responseTime,statusCode:i.response.response.status,headers:i.response.meta.headers}},o=function(){var i=(0,_.Z)(function*(p){const c=s[p];if(!c)throw new Error(`No request script module found matching "${p}"`);return c.exec()});return function(c){return i.apply(this,arguments)}}(),t=(i,p)=>{return{data:i,helpers:{getEnvironment:c=>i.environment[c],setEnvironment:(c,l,d=!1)=>{i.environment[c]=l,d&&(i.__toSetActiveEnvironment=i.__toSetActiveEnvironment??{},i.__toSetActiveEnvironment[c]=l)},getCookie:c=>i.__cookieJar?.[c]??"",setCookie:(c,l,d)=>{p.setCookie(c,l,d)},request:(c=(0,_.Z)(function*(l,d,b){return p.request(l,d,b)}),function(d,b,m){return c.apply(this,arguments)})},storage:{get:c=>p.getStorageItem(c),set:(c,l)=>p.setStorageItem(c,l)},importModule:c=>o(c),response:u(i),log:c=>{i.requestScriptLogs=i.requestScriptLogs??[],i.requestScriptLogs.push({time:Date.now(),text:JSON.stringify(c,null,2),source:"Request script"})}};var c}},85836:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{J:()=>ScriptEvaluatorWorkerEngine});var _home_runner_work_altair_altair_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(26642),uuid__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(26624),_events__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(66094),_context__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(96599);const workerHandlerNames=["setCookie","request","getStorageItem","setStorageItem"];class ScriptEvaluatorWorkerEngine{constructor(r){this.worker=r}start(){var r=this;this.worker.onMessage(function(){var n=(0,_home_runner_work_altair_altair_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)(function*(e){if(e.type===_events__WEBPACK_IMPORTED_MODULE_2__.Jk)try{yield r.initExecute(e.payload)}catch(_){yield r.makeCall("scriptError",_)}});return function(e){return n.apply(this,arguments)}}())}initExecute(payload){var _this2=this;return(0,_home_runner_work_altair_altair_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)(function*(){const[script,data]=payload,res=yield new Promise((resolve,reject)=>{_this2.worker.onError(r=>{reject(r)});const clonedMutableData=JSON.parse(JSON.stringify(data)),handlers=workerHandlerNames.reduce((r,n)=>(r[n]=(...e)=>_this2.makeCall(n,...e),r),{}),context={altair:(0,_context__WEBPACK_IMPORTED_MODULE_0__.IL)(clonedMutableData,handlers),alert:r=>_this2.makeCall("alert",r)},contextEntries=Object.entries(context);try{const res=function(){return eval(`\n (async(${contextEntries.map(r=>r[0]).join(",")}) => {\n ${script};\n return altair.data;\n })(...this.__ctxE.map(e => e[1]));\n `)}.call({__ctxE:contextEntries});return resolve(res)}catch(r){return reject(r)}});res.__toSetActiveEnvironment&&_this2.makeCall("updateActiveEnvironment",res.__toSetActiveEnvironment),_this2.makeCall("executeComplete",res)})()}makeCall(r,...n){return new Promise((e,_)=>{const a=(0,uuid__WEBPACK_IMPORTED_MODULE_3__.Z)();this.worker.onMessage(s=>{switch(s.type){case`${r}_response`:return s.payload.id!==a?void 0:e(s.payload.response);case`${r}_error`:return s.payload.id!==a?void 0:_(s.payload.error)}}),this.worker.send(r,{id:a,args:n})})}}},66094:(r,n,e)=>{e.d(n,{Jk:()=>_});const _="init_execute"},77065:(r,n,e)=>{e.d(n,{VJ:()=>s,xd:()=>_});var _=function(u){return u.INTROSPECTION="introspection",u.QUERY="query",u.SUBSCRIPTION="subscription",u}(_||{});class s{}},98077:(r,n,e)=>{e.d(n,{Z:()=>a});const a={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},73240:(r,n,e)=>{let _;e.d(n,{Z:()=>s});const a=new Uint8Array(16);function s(){if(!_&&(_=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(a)}},13692:(r,n,e)=>{e.d(n,{S:()=>a});const _=[];for(let o=0;o<256;++o)_.push((o+256).toString(16).slice(1));function a(o,t=0){return _[o[t+0]]+_[o[t+1]]+_[o[t+2]]+_[o[t+3]]+"-"+_[o[t+4]]+_[o[t+5]]+"-"+_[o[t+6]]+_[o[t+7]]+"-"+_[o[t+8]]+_[o[t+9]]+"-"+_[o[t+10]]+_[o[t+11]]+_[o[t+12]]+_[o[t+13]]+_[o[t+14]]+_[o[t+15]]}},26624:(r,n,e)=>{e.d(n,{Z:()=>o});var _=e(98077),a=e(73240),s=e(13692);const o=function u(t,i,p){if(_.Z.randomUUID&&!i&&!t)return _.Z.randomUUID();const c=(t=t||{}).random||(t.rng||a.Z)();if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,i){p=p||0;for(let l=0;l<16;++l)i[p+l]=c[l];return i}return(0,s.S)(c)}}},__webpack_module_cache__={},r;function __webpack_require__(r){var n=__webpack_module_cache__[r];if(void 0!==n)return n.exports;var e=__webpack_module_cache__[r]={exports:{}};return __webpack_modules__[r].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.x=()=>{var r=__webpack_require__.O(void 0,[592],()=>__webpack_require__(99263));return __webpack_require__.O(r)},r=[],__webpack_require__.O=(n,e,_,a)=>{if(!e){var u=1/0;for(s=0;s<r.length;s++){for(var[e,_,a]=r[s],o=!0,t=0;t<e.length;t++)(!1&a||u>=a)&&Object.keys(__webpack_require__.O).every(b=>__webpack_require__.O[b](e[t]))?e.splice(t--,1):(o=!1,a<u&&(u=a));if(o){r.splice(s--,1);var i=_();void 0!==i&&(n=i)}}return n}a=a||0;for(var s=r.length;s>0&&r[s-1][2]>a;s--)r[s]=r[s-1];r[s]=[e,_,a]},(()=>{var n,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(e,_){if(1&_&&(e=this(e)),8&_||"object"==typeof e&&e&&(4&_&&e.__esModule||16&_&&"function"==typeof e.then))return e;var a=Object.create(null);__webpack_require__.r(a);var s={};n=n||[null,r({}),r([]),r(r)];for(var u=2&_&&e;"object"==typeof u&&!~n.indexOf(u);u=r(u))Object.getOwnPropertyNames(u).forEach(o=>s[o]=()=>e[o]);return s.default=()=>e,__webpack_require__.d(a,s),a}})(),__webpack_require__.d=(r,n)=>{for(var e in n)__webpack_require__.o(n,e)&&!__webpack_require__.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:n[e]})},__webpack_require__.f={},__webpack_require__.e=r=>Promise.all(Object.keys(__webpack_require__.f).reduce((n,e)=>(__webpack_require__.f[e](r,n),n),[])),__webpack_require__.u=r=>(592===r?"common":r)+".js",__webpack_require__.miniCssF=r=>{},__webpack_require__.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n),__webpack_require__.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},__webpack_require__.j=263,(()=>{var r;__webpack_require__.tt=()=>(void 0===r&&(r={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("angular#bundler",r))),r)})(),__webpack_require__.tu=r=>__webpack_require__.tt().createScriptURL(r),__webpack_require__.p="",(()=>{var r={263:1};__webpack_require__.f.i=(a,s)=>{r[a]||importScripts(__webpack_require__.tu(__webpack_require__.p+__webpack_require__.u(a)))};var e=self.webpackChunkaltair=self.webpackChunkaltair||[],_=e.push.bind(e);e.push=a=>{var[s,u,o]=a;for(var t in u)__webpack_require__.o(u,t)&&(__webpack_require__.m[t]=u[t]);for(o&&o(__webpack_require__);s.length;)r[s.pop()]=1;_(a)}})(),(()=>{var r=__webpack_require__.x;__webpack_require__.x=()=>__webpack_require__.e(592).then(r)})();var __webpack_exports__=__webpack_require__.x()})();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b14e14a0-642f-5659-a59f-197aead8a586")}catch(e){}}();
3
+ (()=>{"use strict";var __webpack_modules__={99263:(r,n,e)=>{var _=e(77065),a=e(85836);const s=["chrome-extension://flnheeellpciglgpaodhkhmapeljopja","chrome-extension://aiopipphfnlndegenpkclffgaiillbdd","moz-extension://567d7e27-43b8-994e-ab50-e770fa7eab4b","http://localhost:4200","https://dash.altairgraphql.dev","https://altair-gql.sirmuel.design","https://web.altairgraphql.dev","altair://-"];new a.J(new class u extends _.VJ{onMessage(t){self.addEventListener("message",i=>{i.origin&&!s.includes(i.origin)||t(i.data)})}send(t,i){self.postMessage({type:t,payload:i})}onError(t){self.addEventListener("error",t),self.addEventListener("unhandledrejection",i=>{i.preventDefault(),t(i.reason)})}}).start()},96599:(r,n,e)=>{e.d(n,{IL:()=>t});var _=e(26642),a=e(77065);const s={atob:{exec:()=>(0,_.Z)(function*(){return(yield e.e(857).then(e.t.bind(e,4857,23))).atob})()},btoa:{exec:()=>(0,_.Z)(function*(){return(yield e.e(857).then(e.t.bind(e,4857,23))).btoa})()},"crypto-js":{exec:()=>(0,_.Z)(function*(){return(yield e.e(658).then(e.t.bind(e,39658,23))).default})()}},u=i=>{if(i.response)return{body:i.response.body,requestType:i.requestType??a.xd.QUERY,responseTime:i.response.responseTime,statusCode:i.response.status,headers:i.response.headers}},o=function(){var i=(0,_.Z)(function*(p){const c=s[p];if(!c)throw new Error(`No request script module found matching "${p}"`);return c.exec()});return function(c){return i.apply(this,arguments)}}(),t=(i,p)=>{return{data:i,helpers:{getEnvironment:c=>i.environment[c],setEnvironment:(c,l,d=!1)=>{i.environment[c]=l,d&&(i.__toSetActiveEnvironment=i.__toSetActiveEnvironment??{},i.__toSetActiveEnvironment[c]=l)},getCookie:c=>i.__cookieJar?.[c]??"",setCookie:(c,l,d)=>{p.setCookie(c,l,d)},request:(c=(0,_.Z)(function*(l,d,b){return p.request(l,d,b)}),function(d,b,m){return c.apply(this,arguments)})},storage:{get:c=>p.getStorageItem(c),set:(c,l)=>p.setStorageItem(c,l)},importModule:c=>o(c),response:u(i),log:c=>{i.requestScriptLogs=i.requestScriptLogs??[],i.requestScriptLogs.push({time:Date.now(),text:JSON.stringify(c,null,2),source:"Request script"})}};var c}},85836:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{J:()=>ScriptEvaluatorWorkerEngine});var _home_runner_work_altair_altair_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(26642),uuid__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(26624),_events__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(66094),_context__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(96599);const workerHandlerNames=["setCookie","request","getStorageItem","setStorageItem"];class ScriptEvaluatorWorkerEngine{constructor(r){this.worker=r}start(){var r=this;this.worker.onMessage(function(){var n=(0,_home_runner_work_altair_altair_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)(function*(e){if(e.type===_events__WEBPACK_IMPORTED_MODULE_2__.Jk)try{yield r.initExecute(e.payload)}catch(_){yield r.makeCall("scriptError",_)}});return function(e){return n.apply(this,arguments)}}())}initExecute(payload){var _this2=this;return(0,_home_runner_work_altair_altair_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)(function*(){const[script,data]=payload,res=yield new Promise((resolve,reject)=>{_this2.worker.onError(r=>{reject(r)});const clonedMutableData=JSON.parse(JSON.stringify(data)),handlers=workerHandlerNames.reduce((r,n)=>(r[n]=(...e)=>_this2.makeCall(n,...e),r),{}),context={altair:(0,_context__WEBPACK_IMPORTED_MODULE_0__.IL)(clonedMutableData,handlers),alert:r=>_this2.makeCall("alert",r)},contextEntries=Object.entries(context);try{const res=function(){return eval(`\n (async(${contextEntries.map(r=>r[0]).join(",")}) => {\n ${script};\n return altair.data;\n })(...this.__ctxE.map(e => e[1]));\n `)}.call({__ctxE:contextEntries});return resolve(res)}catch(r){return reject(r)}});res.__toSetActiveEnvironment&&_this2.makeCall("updateActiveEnvironment",res.__toSetActiveEnvironment),_this2.makeCall("executeComplete",res)})()}makeCall(r,...n){return new Promise((e,_)=>{const a=(0,uuid__WEBPACK_IMPORTED_MODULE_3__.Z)();this.worker.onMessage(s=>{switch(s.type){case`${r}_response`:return s.payload.id!==a?void 0:e(s.payload.response);case`${r}_error`:return s.payload.id!==a?void 0:_(s.payload.error)}}),this.worker.send(r,{id:a,args:n})})}}},66094:(r,n,e)=>{e.d(n,{Jk:()=>_});const _="init_execute"},77065:(r,n,e)=>{e.d(n,{VJ:()=>s,xd:()=>_});var _=function(u){return u.INTROSPECTION="introspection",u.QUERY="query",u.SUBSCRIPTION="subscription",u}(_||{});class s{}},98077:(r,n,e)=>{e.d(n,{Z:()=>a});const a={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},73240:(r,n,e)=>{let _;e.d(n,{Z:()=>s});const a=new Uint8Array(16);function s(){if(!_&&(_=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(a)}},13692:(r,n,e)=>{e.d(n,{S:()=>a});const _=[];for(let o=0;o<256;++o)_.push((o+256).toString(16).slice(1));function a(o,t=0){return _[o[t+0]]+_[o[t+1]]+_[o[t+2]]+_[o[t+3]]+"-"+_[o[t+4]]+_[o[t+5]]+"-"+_[o[t+6]]+_[o[t+7]]+"-"+_[o[t+8]]+_[o[t+9]]+"-"+_[o[t+10]]+_[o[t+11]]+_[o[t+12]]+_[o[t+13]]+_[o[t+14]]+_[o[t+15]]}},26624:(r,n,e)=>{e.d(n,{Z:()=>o});var _=e(98077),a=e(73240),s=e(13692);const o=function u(t,i,p){if(_.Z.randomUUID&&!i&&!t)return _.Z.randomUUID();const c=(t=t||{}).random||(t.rng||a.Z)();if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,i){p=p||0;for(let l=0;l<16;++l)i[p+l]=c[l];return i}return(0,s.S)(c)}}},__webpack_module_cache__={},r;function __webpack_require__(r){var n=__webpack_module_cache__[r];if(void 0!==n)return n.exports;var e=__webpack_module_cache__[r]={exports:{}};return __webpack_modules__[r].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.x=()=>{var r=__webpack_require__.O(void 0,[592],()=>__webpack_require__(99263));return __webpack_require__.O(r)},r=[],__webpack_require__.O=(n,e,_,a)=>{if(!e){var u=1/0;for(s=0;s<r.length;s++){for(var[e,_,a]=r[s],o=!0,t=0;t<e.length;t++)(!1&a||u>=a)&&Object.keys(__webpack_require__.O).every(b=>__webpack_require__.O[b](e[t]))?e.splice(t--,1):(o=!1,a<u&&(u=a));if(o){r.splice(s--,1);var i=_();void 0!==i&&(n=i)}}return n}a=a||0;for(var s=r.length;s>0&&r[s-1][2]>a;s--)r[s]=r[s-1];r[s]=[e,_,a]},(()=>{var n,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(e,_){if(1&_&&(e=this(e)),8&_||"object"==typeof e&&e&&(4&_&&e.__esModule||16&_&&"function"==typeof e.then))return e;var a=Object.create(null);__webpack_require__.r(a);var s={};n=n||[null,r({}),r([]),r(r)];for(var u=2&_&&e;"object"==typeof u&&!~n.indexOf(u);u=r(u))Object.getOwnPropertyNames(u).forEach(o=>s[o]=()=>e[o]);return s.default=()=>e,__webpack_require__.d(a,s),a}})(),__webpack_require__.d=(r,n)=>{for(var e in n)__webpack_require__.o(n,e)&&!__webpack_require__.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:n[e]})},__webpack_require__.f={},__webpack_require__.e=r=>Promise.all(Object.keys(__webpack_require__.f).reduce((n,e)=>(__webpack_require__.f[e](r,n),n),[])),__webpack_require__.u=r=>(592===r?"common":r)+".js",__webpack_require__.miniCssF=r=>{},__webpack_require__.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n),__webpack_require__.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},__webpack_require__.j=263,(()=>{var r;__webpack_require__.tt=()=>(void 0===r&&(r={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("angular#bundler",r))),r)})(),__webpack_require__.tu=r=>__webpack_require__.tt().createScriptURL(r),__webpack_require__.p="",(()=>{var r={263:1};__webpack_require__.f.i=(a,s)=>{r[a]||importScripts(__webpack_require__.tu(__webpack_require__.p+__webpack_require__.u(a)))};var e=self.webpackChunkaltair=self.webpackChunkaltair||[],_=e.push.bind(e);e.push=a=>{var[s,u,o]=a;for(var t in u)__webpack_require__.o(u,t)&&(__webpack_require__.m[t]=u[t]);for(o&&o(__webpack_require__);s.length;)r[s.pop()]=1;_(a)}})(),(()=>{var r=__webpack_require__.x;__webpack_require__.x=()=>__webpack_require__.e(592).then(r)})();var __webpack_exports__=__webpack_require__.x()})();
4
4
  //# sourceMappingURL=263.js.map
5
- //# debugId=ed048bc0-e41e-5a11-bcf1-9ce4c86d1ead
5
+ //# debugId=b14e14a0-642f-5659-a59f-197aead8a586
@@ -4422,6 +4422,30 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4422
4422
  PERFORMANCE OF THIS SOFTWARE.
4423
4423
 
4424
4424
 
4425
+ meros
4426
+ MIT
4427
+ MIT License
4428
+
4429
+ Copyright (c) Marais Rossouw <hi@marais.io>
4430
+
4431
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4432
+ of this software and associated documentation files (the "Software"), to deal
4433
+ in the Software without restriction, including without limitation the rights
4434
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4435
+ copies of the Software, and to permit persons to whom the Software is
4436
+ furnished to do so, subject to the following conditions:
4437
+
4438
+ The above copyright notice and this permission notice shall be included in all
4439
+ copies or substantial portions of the Software.
4440
+
4441
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4442
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4443
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4444
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4445
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4446
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4447
+ SOFTWARE.
4448
+
4425
4449
  mousetrap
4426
4450
  Apache-2.0 WITH LLVM-exception
4427
4451
 
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="466c2630-fbd3-5627-887e-b153a7fd2b76")}catch(e){}}();
3
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[43],{86043:(ge,te,G)=>{G.r(te),G.d(te,{SSERequestHandler:()=>ye});var T=G(26642),oe=G(50365),W=G(52241),X=G(10042);function q(e){var n,t,c,l=2;for(typeof Symbol<"u"&&(t=Symbol.asyncIterator,c=Symbol.iterator);l--;){if(t&&null!=(n=e[t]))return n.call(e);if(c&&null!=(n=e[c]))return new V(n.call(e));t="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function V(e){function n(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var c=t.done;return Promise.resolve(t.value).then(function(l){return{value:l,done:c}})}return(V=function(c){this.s=c,this.n=c.next}).prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(c){var l=this.s.return;return void 0===l?Promise.resolve({value:c,done:!0}):n(l.apply(this.s,arguments))},throw:function(c){var l=this.s.return;return void 0===l?Promise.reject(c):n(l.apply(this.s,arguments))}},new V(e)}function le(e){if("next"!==e&&"complete"!==e)throw new Error(`Invalid stream event "${e}"`);return e}function ae(e,n){if(n)try{n=JSON.parse(n)}catch{throw new Error("Invalid stream data")}if("next"===e&&!n)throw new Error('Stream data must be an object for "next" events');return n||null}var $=function(e){return e[e.NewLine=10]="NewLine",e[e.CchunkiageReturn=13]="CchunkiageReturn",e[e.Space=32]="Space",e[e.Colon=58]="Colon",e}($||{});class I extends Error{constructor(n){let t,c;!function de(e){return function ce(e){return"object"==typeof e&&null!==e}(e)&&"boolean"==typeof e.ok&&"number"==typeof e.status&&"string"==typeof e.statusText}(n)?t=n instanceof Error?n.message:String(n):(c=n,t="Server responded with "+n.status+": "+n.statusText),super(t),this.name=this.constructor.name,this.response=c}}function re(e){return _.apply(this,arguments)}function _(){return(_=(0,T.Z)(function*(e){const{signal:n,url:t,credentials:c,headers:l,body:L,referrer:x,referrerPolicy:B,fetchFn:j,onMessage:E}=e,d={},u={};let o;try{o=yield j(t,{signal:n,method:L?"POST":"GET",credentials:c,referrer:x,referrerPolicy:B,headers:{...l,accept:"text/event-stream"},body:L})}catch(h){throw new I(h)}if(!o.ok)throw new I(o);if(!o.body)throw new Error("Missing response body");let k,f=null;return(0,T.Z)(function*(){var h;try{const M=function se(){let e,n,t,c=!1,l={event:"",data:""},L=[];const x=new TextDecoder;return function(j){if(void 0===e)e=j,n=0,t=-1;else{const u=new Uint8Array(e.length+j.length);u.set(e),u.set(j,e.length),e=u}const E=e.length;let d=0;for(;n<E;){c&&(e[n]===$.NewLine&&(d=++n),c=!1);let u=-1;for(;n<E&&-1===u;++n)switch(e[n]){case $.Colon:-1===t&&(t=n-d);break;case $.CchunkiageReturn:c=!0;case $.NewLine:u=n}if(-1===u)break;if(d===u){if(l.event||l.data){if(!l.event)throw new Error("Missing message event");const o=le(l.event),f=ae(o,l.data);L.push({event:o,data:f}),l={event:"",data:""}}}else if(t>0){const o=e.subarray(d,u),f=x.decode(o.subarray(0,t)),h=x.decode(o.subarray(t+(o[t+1]===$.Space?2:1)));switch(f){case"event":l.event=h;break;case"data":l.data=l.data?l.data+"\n"+h:h}}d=n,t=-1}if(d===E){e=void 0;const u=[...L];return L=[],u}0!==d&&(e=e.subarray(d),n-=d)}}();var S,w=!1,y=!1;try{for(var Z,p=q(function fe(e){return"function"==typeof Object(e)[Symbol.asyncIterator]?e[Symbol.asyncIterator]():(0,X.Z)(function*(){const n=e.getReader();let t;do{t=yield(0,W.Z)(n.read()),void 0!==t.value&&(yield t.value)}while(!t.done)})()}(o.body));w=!(Z=yield p.next()).done;w=!1){const C=Z.value;{if("string"==typeof C)throw f=new Error(`Unexpected string chunk "${C}"`);let z;try{z=M(C)}catch(r){throw f=r}if(!z)continue;for(const r of z){try{E?.(r)}catch(i){throw f=i}const s=r.data&&"id"in r.data?r.data.id:"";switch(s in u||(u[s]=[]),r.event){case"next":u[s].push(s?r.data.payload:r.data);break;case"complete":u[s].push("complete");break;default:throw f=new Error(`Unexpected message event "${r.event}"`)}null===(h=d[s])||void 0===h||h.proceed()}}}}catch(C){y=!0,S=C}finally{try{w&&null!=p.return&&(yield p.return())}finally{if(y)throw S}}if(Object.keys(d).length)throw new Error("Connection closed while having active streams")}catch(M){f=!f&&Object.keys(d).length?new I(M):M,k?.(f)}finally{Object.values(d).forEach(({proceed:M})=>M())}})(),{url:t,headers:l,waitForThrow:()=>new Promise((h,w)=>{if(f)return w(f);k=w}),getResults:h=>(0,X.Z)(function*(){var w;const{signal:y,operationId:S=""}=h??{};try{for(;;){for(;null!==(w=u[S])&&void 0!==w&&w.length;){const p=u[S].shift();if("complete"===p)return;yield p}if(f)throw f;if(y?.aborted)throw new Error("Getting results aborted by the client");yield(0,W.Z)(new Promise(p=>{const Z=()=>{y?.removeEventListener("abort",Z),delete d[S],p()};y?.addEventListener("abort",Z),d[S]={proceed:Z}}))}}finally{delete u[S]}})()}})).apply(this,arguments)}var he=G(51356);class ye{handle(n){return new oe.y(t=>{if(this.client=function ue(e){const{singleConnection:n=!1,lazy:t=!0,lazyCloseTimeout:c=0,onNonLazyError:l=console.error,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,s=>{const i=16*Math.random()|0;return("x"==s?i:3&i|8).toString(16)})},retryAttempts:x=5,retry:B=function(){var r=(0,T.Z)(function*(i){let a=1e3;for(let P=0;P<i;P++)a*=2;yield new Promise(P=>setTimeout(P,a+Math.floor(2700*Math.random()+300)))});return function s(i){return r.apply(this,arguments)}}(),credentials:j="same-origin",referrer:E,referrerPolicy:d,onMessage:u,on:o}=e,f=e.fetchFn||fetch,k=e.abortControllerImpl||AbortController,h=(()=>{let r=!1;const s=[];return{get disposed(){return r},onDispose:i=>r?(setTimeout(()=>i(),0),()=>{}):(s.push(i),()=>{s.splice(s.indexOf(i),1)}),dispose(){if(!r){r=!0;for(const i of[...s])i()}}}})();let w,y,S=0,p=null,Z=0;function M(){return C.apply(this,arguments)}function C(){return(C=(0,T.Z)(function*(){try{if(h.disposed)throw new Error("Client has been disposed");return yield y??(y=(0,T.Z)(function*(){var r,s,i;if(p){if(yield B(Z),w.signal.aborted)throw new Error("Connection aborted by the client");Z++}null===(r=o?.connecting)||void 0===r||r.call(o,!!p),w=new k;const a=h.onDispose(()=>w.abort());w.signal.addEventListener("abort",()=>{a(),y=void 0});const P="function"==typeof e.url?yield e.url():e.url;if(w.signal.aborted)throw new Error("Connection aborted by the client");const v="function"==typeof e.headers?yield e.headers():null!==(s=e.headers)&&void 0!==s?s:{};if(w.signal.aborted)throw new Error("Connection aborted by the client");let g;try{g=yield f(P,{signal:w.signal,method:"PUT",credentials:j,referrer:E,referrerPolicy:d,headers:v})}catch(N){throw new I(N)}if(201!==g.status)throw new I(g);const b=yield g.text();v["x-graphql-event-stream-token"]=b;const D=yield re({signal:w.signal,headers:v,credentials:j,referrer:E,referrerPolicy:d,url:P,fetchFn:f,onMessage:N=>{var O;null===(O=o?.message)||void 0===O||O.call(o,N),u?.(N)}});return null===(i=o?.connected)||void 0===i||i.call(o,!!p),D.waitForThrow().catch(()=>y=void 0),D})())}catch(r){throw y=void 0,r}})).apply(this,arguments)}function z(r,s,i){if(!n){const v=new k,g=h.onDispose(()=>{g(),v.abort()});return(0,T.Z)(function*(){var b,D,N,O,H;let m=null,R=0;for(;;)try{if(m){if(yield B(R),v.signal.aborted)throw new Error("Connection aborted by the client");R++}null===(b=o?.connecting)||void 0===b||b.call(o,!!m),null===(D=i?.connecting)||void 0===D||D.call(i,!!m);const U="function"==typeof e.url?yield e.url():e.url;if(v.signal.aborted)throw new Error("Connection aborted by the client");const ve="function"==typeof e.headers?yield e.headers():null!==(N=e.headers)&&void 0!==N?N:{};if(v.signal.aborted)throw new Error("Connection aborted by the client");const{getResults:we}=yield re({signal:v.signal,headers:{...ve,"content-type":"application/json; charset=utf-8"},credentials:j,referrer:E,referrerPolicy:d,url:U,body:JSON.stringify(r),fetchFn:f,onMessage:K=>{var ee,ne;null===(ee=o?.message)||void 0===ee||ee.call(o,K),null===(ne=i?.message)||void 0===ne||ne.call(i,K),u?.(K)}});null===(O=o?.connected)||void 0===O||O.call(o,!!m),null===(H=i?.connected)||void 0===H||H.call(i,!!m);var F,Q=!1,Y=!1;try{for(var J,A=q(we());Q=!(J=yield A.next()).done;Q=!1)m=null,R=0,s.next(J.value)}catch(K){Y=!0,F=K}finally{try{Q&&null!=A.return&&(yield A.return())}finally{if(Y)throw F}}return v.abort()}catch(U){if(v.signal.aborted)return;if(!(U instanceof I)||!x||R>=x)throw U;m=U}})().then(()=>s.complete()).catch(b=>s.error(b)),()=>v.abort()}S++;const a=new k,P=h.onDispose(()=>{P(),a.abort()});return(0,T.Z)(function*(){const v=L();r={...r,extensions:{...r.extensions,operationId:v}};let g=null;for(;;){g=null;try{const{url:m,headers:R,getResults:Q}=yield M();let Y;try{Y=yield f(m,{signal:a.signal,method:"POST",credentials:j,referrer:E,referrerPolicy:d,headers:{...R,"content-type":"application/json; charset=utf-8"},body:JSON.stringify(r)})}catch(F){throw new I(F)}if(202!==Y.status)throw new I(Y);g=function(){var F=(0,T.Z)(function*(){let A;try{const J=new k,U=h.onDispose(()=>{U(),J.abort()});A=yield f(m+"?operationId="+v,{signal:J.signal,method:"DELETE",credentials:j,referrer:E,referrerPolicy:d,headers:R})}catch(J){throw new I(J)}if(200!==A.status)throw new I(A)});return function(){return F.apply(this,arguments)}}();var N,b=!1,D=!1;try{for(var H,O=q(Q({signal:a.signal,operationId:v}));b=!(H=yield O.next()).done;b=!1)p=null,Z=0,s.next(H.value)}catch(F){D=!0,N=F}finally{try{b&&null!=O.return&&(yield O.return())}finally{if(D)throw N}}return g=null,a.abort()}catch(m){if(a.signal.aborted)return yield g?.();if(!(m instanceof I)||(t&&(y=void 0),!x||Z>=x))throw a.abort(),m;p=m}finally{a.signal.aborted&&0==--S&&(isFinite(c)&&c>0?setTimeout(()=>{S||w.abort()},c):w.abort())}}})().then(()=>s.complete()).catch(v=>s.error(v)),()=>a.abort()}return n&&!t&&(0,T.Z)(function*(){for(S++;;)try{const{waitForThrow:r}=yield M();yield r()}catch(r){if(h.disposed)return;if(!(r instanceof I)||(y=void 0,!x||Z>=x))return l?.(r);p=r}})(),{subscribe:z,iterate(r,s){const i=[],a={done:!1,error:null,resolve:()=>{}},P=z(r,{next(g){i.push(g),a.resolve()},error(g){a.done=!0,a.error=g,a.resolve()},complete(){a.done=!0,a.resolve()}},s),v=(g=(0,X.Z)(function*(){for(;;){for(i.length||(yield(0,W.Z)(new Promise(D=>a.resolve=D)));i.length;)yield i.shift();if(a.error)throw a.error;if(a.done)return}}),function b(){return g.apply(this,arguments)})();var g;return v.throw=function(){var g=(0,T.Z)(function*(b){return a.done||(a.done=!0,a.error=b,a.resolve()),{done:!0,value:void 0}});return function(b){return g.apply(this,arguments)}}(),v.return=(0,T.Z)(function*(){return P(),{done:!0,value:void 0}}),v},dispose(){h.dispose()}}}({url:n.url,credentials:n.withCredentials?"include":"same-origin",headers:n.headers?.reduce((l,{key:L,value:x})=>(l[L]=x,l),{})}),!this.client)throw new Error("Could not create SSE client!");const c=Date.now();return this.cleanup=this.client.subscribe({query:n.query,variables:n.variables,operationName:n.selectedOperation??void 0,extensions:n.extensions},(0,he.P)(t,n.url,c)),()=>{this.destroy()}})}destroy(){var n=this;return(0,T.Z)(function*(){try{n.cleanup?.(),n.cleanup=void 0,yield n.client?.dispose(),n.client=void 0}catch(t){console.error(t)}})()}}}}]);
4
+ //# sourceMappingURL=43.js.map
5
+ //# debugId=466c2630-fbd3-5627-887e-b153a7fd2b76
@@ -0,0 +1,5 @@
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="31c1e411-ceee-5514-b221-31d846c13000")}catch(e){}}();
3
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[647],{79301:O=>{function f(i){this.ms=(i=i||{}).min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}O.exports=f,f.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),E=Math.floor(a*this.jitter*i);i=1&Math.floor(10*a)?i+E:i-E}return 0|Math.min(i,this.max)},f.prototype.reset=function(){this.attempts=0},f.prototype.setMin=function(i){this.ms=i},f.prototype.setMax=function(i){this.max=i},f.prototype.setJitter=function(i){this.jitter=i}},76671:function(O,f,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(c){for(var t,e=1,n=arguments.length;e<n;e++)for(var s in t=arguments[e])Object.prototype.hasOwnProperty.call(t,s)&&(c[s]=t[s]);return c},a.apply(this,arguments)},E=this&&this.__awaiter||function(c,t,e,n){return new(e||(e=Promise))(function(r,m){function C(y){try{h(n.next(y))}catch(A){m(A)}}function S(y){try{h(n.throw(y))}catch(A){m(A)}}function h(y){y.done?r(y.value):function s(r){return r instanceof e?r:new e(function(m){m(r)})}(y.value).then(C,S)}h((n=n.apply(c,t||[])).next())})},R=this&&this.__generator||function(c,t){var n,s,r,m,e={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(h){return function(y){return function S(h){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,s&&(r=2&h[0]?s.return:h[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,h[1])).done)return r;switch(s=0,r&&(h=[2&h[0],r.value]),h[0]){case 0:case 1:r=h;break;case 4:return e.label++,{value:h[1],done:!1};case 5:e.label++,s=h[1],h=[0];continue;case 7:h=e.ops.pop(),e.trys.pop();continue;default:if(!(r=(r=e.trys).length>0&&r[r.length-1])&&(6===h[0]||2===h[0])){e=0;continue}if(3===h[0]&&(!r||h[1]>r[0]&&h[1]<r[3])){e.label=h[1];break}if(6===h[0]&&e.label<r[1]){e.label=r[1],r=h;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(h);break}r[2]&&e.ops.pop(),e.trys.pop();continue}h=t.call(c,e)}catch(y){h=[6,y],s=0}finally{n=r=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,y])}}},N=this&&this.__spreadArrays||function(){for(var c=0,t=0,e=arguments.length;t<e;t++)c+=arguments[t].length;var n=Array(c),s=0;for(t=0;t<e;t++)for(var r=arguments[t],m=0,C=r.length;m<C;m++,s++)n[s]=r[m];return n};Object.defineProperty(f,"__esModule",{value:!0}),f.SubscriptionClient=void 0;var _=typeof global<"u"?global:typeof window<"u"?window:{},p=_.WebSocket||_.MozWebSocket,u=i(79301),o=i(53041),l=i(83908),I=i(73004),g=i(28133),v=i(24973),w=i(49827),d=i(27260),M=i(46116),b=i(21705),T=function(){function c(t,e,n,s){var r=e||{},m=r.connectionCallback,C=void 0===m?void 0:m,S=r.connectionParams,h=void 0===S?{}:S,y=r.minTimeout,A=void 0===y?M.MIN_WS_TIMEOUT:y,P=r.timeout,U=void 0===P?M.WS_TIMEOUT:P,L=r.reconnect,j=void 0!==L&&L,k=r.reconnectionAttempts,W=void 0===k?1/0:k,G=r.lazy,D=void 0!==G&&G,Q=r.inactivityTimeout,B=void 0===Q?0:Q,x=r.wsOptionArguments,K=void 0===x?[]:x;if(this.wsImpl=n||p,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=s||d.GRAPHQL_WS,this.connectionCallback=C,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=A,this.wsTimeout=U,this.unsentMessagesQueue=[],this.reconnect=j,this.reconnecting=!1,this.reconnectionAttempts=W,this.lazy=!!D,this.inactivityTimeout=B,this.closedByUser=!1,this.backoff=new u({jitter:.5}),this.eventEmitter=new o.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),this.wsOptionArguments=K,this.lazy||this.connect()}return Object.defineProperty(c.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),c.prototype.close=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=e,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,b.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},c.prototype.request=function(t){var e,m,n=this.getObserver.bind(this),s=this.executeOperation.bind(this),r=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[w.default]=function(){return this},e.subscribe=function(C,S,h){var y=n(C,S,h);return m=s(t,function(A,P){null===A&&null===P?y.complete&&y.complete():A?y.error&&y.error(A[0]):y.next&&y.next(P)}),{unsubscribe:function(){m&&(r(m),m=null)}}},e},c.prototype.on=function(t,e,n){var s=this.eventEmitter.on(t,e,n);return function(){s.off(t,e,n)}},c.prototype.onConnected=function(t,e){return this.on("connected",t,e)},c.prototype.onConnecting=function(t,e){return this.on("connecting",t,e)},c.prototype.onDisconnected=function(t,e){return this.on("disconnected",t,e)},c.prototype.onReconnected=function(t,e){return this.on("reconnected",t,e)},c.prototype.onReconnecting=function(t,e){return this.on("reconnecting",t,e)},c.prototype.onError=function(t,e){return this.on("error",t,e)},c.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(e){t.unsubscribe(e)})},c.prototype.applyMiddlewares=function(t){var e=this;return new Promise(function(n,s){var m,C,S;m=N(e.middlewares),C=e,(S=function(h){if(h)s(h);else if(m.length>0){var y=m.shift();y&&y.applyMiddleware.apply(C,[t,S])}else n(t)})()})},c.prototype.use=function(t){var e=this;return t.map(function(n){if("function"!=typeof n.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(n)}),this},c.prototype.getConnectionParams=function(t){return function(){return new Promise(function(e,n){if("function"==typeof t)try{return e(t.call(null))}catch(s){return n(s)}e(t)})}},c.prototype.executeOperation=function(t,e){var n=this;null===this.client&&this.connect();var s=this.generateOperationId();return this.operations[s]={options:t,handler:e},this.applyMiddlewares(t).then(function(r){n.checkOperationOptions(r,e),n.operations[s]&&(n.operations[s]={options:r,handler:e},n.sendMessage(s,b.default.GQL_START,r))}).catch(function(r){n.unsubscribe(s),e(n.formatErrors(r))}),s},c.prototype.getObserver=function(t,e,n){return"function"==typeof t?{next:function(s){return t(s)},error:function(s){return e&&e(s)},complete:function(){return n&&n()}}:t},c.prototype.createMaxConnectTimeGenerator=function(){return new u({min:this.minWsTimeout,max:this.wsTimeout,factor:1.2})},c.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},c.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},c.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},c.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},c.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(t.operations).length&&t.close()},this.inactivityTimeout))},c.prototype.checkOperationOptions=function(t,e){var n=t.query,s=t.variables,r=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!l.default(n)&&!v.getOperationAST(n,r)||r&&!l.default(r)||s&&!I.default(s))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},c.prototype.buildMessage=function(t,e,n){return{id:t,type:e,payload:n&&n.query?a(a({},n),{query:"string"==typeof n.query?n.query:g.print(n.query)}):n}},c.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},c.prototype.sendMessage=function(t,e,n){this.sendMessageRaw(this.buildMessage(t,e,n))},c.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch{this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},c.prototype.generateOperationId=function(){return String(++this.nextOperationId)},c.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(n){t.unsentMessagesQueue.push(t.buildMessage(n,b.default.GQL_START,t.operations[n].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},e)}},c.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(e){t.sendMessageRaw(e)}),this.unsentMessagesQueue=[]},c.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},c.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},c.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,N([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return E(e,void 0,void 0,function(){var n,s;return R(this,function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return s=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,s),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(n){e.eventEmitter.emit("error",n)},this.client.onmessage=function(n){e.processReceivedData(n.data)}},c.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch{throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var s=this.operations[n].handler;delete this.operations[n],s.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var r=e.payload.errors?a(a({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,r);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var m=typeof this.wasKeepAliveReceived>"u";this.wasKeepAliveReceived=!0,m&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},c.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,b.default.GQL_STOP,void 0))},c}();f.SubscriptionClient=T},46116:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WS_TIMEOUT=f.MIN_WS_TIMEOUT=void 0,f.MIN_WS_TIMEOUT=1e3,f.WS_TIMEOUT=3e4},21705:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});var i=function(){function a(){throw new Error("Static Class")}return a.GQL_CONNECTION_INIT="connection_init",a.GQL_CONNECTION_ACK="connection_ack",a.GQL_CONNECTION_ERROR="connection_error",a.GQL_CONNECTION_KEEP_ALIVE="ka",a.GQL_CONNECTION_TERMINATE="connection_terminate",a.GQL_START="start",a.GQL_DATA="data",a.GQL_ERROR="error",a.GQL_COMPLETE="complete",a.GQL_STOP="stop",a.SUBSCRIPTION_START="subscription_start",a.SUBSCRIPTION_DATA="subscription_data",a.SUBSCRIPTION_SUCCESS="subscription_success",a.SUBSCRIPTION_FAIL="subscription_fail",a.SUBSCRIPTION_END="subscription_end",a.INIT="init",a.INIT_SUCCESS="init_success",a.INIT_FAIL="init_fail",a.KEEP_ALIVE="keepalive",a}();f.default=i},27260:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GRAPHQL_SUBSCRIPTIONS=f.GRAPHQL_WS=void 0,f.GRAPHQL_WS="graphql-ws",f.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},73004:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=function i(a){return null!==a&&"object"==typeof a}},83908:(O,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=function i(a){return"string"==typeof a}},53041:O=>{"use strict";var f=Object.prototype.hasOwnProperty,i="~";function a(){}function E(p,u,o){this.fn=p,this.context=u,this.once=o||!1}function R(p,u,o,l,I){if("function"!=typeof o)throw new TypeError("The listener must be a function");var g=new E(o,l||p,I),v=i?i+u:u;return p._events[v]?p._events[v].fn?p._events[v]=[p._events[v],g]:p._events[v].push(g):(p._events[v]=g,p._eventsCount++),p}function N(p,u){0==--p._eventsCount?p._events=new a:delete p._events[u]}function _(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(i=!1)),_.prototype.eventNames=function(){var o,l,u=[];if(0===this._eventsCount)return u;for(l in o=this._events)f.call(o,l)&&u.push(i?l.slice(1):l);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(o)):u},_.prototype.listeners=function(u){var l=this._events[i?i+u:u];if(!l)return[];if(l.fn)return[l.fn];for(var I=0,g=l.length,v=new Array(g);I<g;I++)v[I]=l[I].fn;return v},_.prototype.listenerCount=function(u){var l=this._events[i?i+u:u];return l?l.fn?1:l.length:0},_.prototype.emit=function(u,o,l,I,g,v){var w=i?i+u:u;if(!this._events[w])return!1;var b,T,d=this._events[w],M=arguments.length;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),M){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,o),!0;case 3:return d.fn.call(d.context,o,l),!0;case 4:return d.fn.call(d.context,o,l,I),!0;case 5:return d.fn.call(d.context,o,l,I,g),!0;case 6:return d.fn.call(d.context,o,l,I,g,v),!0}for(T=1,b=new Array(M-1);T<M;T++)b[T-1]=arguments[T];d.fn.apply(d.context,b)}else{var t,c=d.length;for(T=0;T<c;T++)switch(d[T].once&&this.removeListener(u,d[T].fn,void 0,!0),M){case 1:d[T].fn.call(d[T].context);break;case 2:d[T].fn.call(d[T].context,o);break;case 3:d[T].fn.call(d[T].context,o,l);break;case 4:d[T].fn.call(d[T].context,o,l,I);break;default:if(!b)for(t=1,b=new Array(M-1);t<M;t++)b[t-1]=arguments[t];d[T].fn.apply(d[T].context,b)}}return!0},_.prototype.on=function(u,o,l){return R(this,u,o,l,!1)},_.prototype.once=function(u,o,l){return R(this,u,o,l,!0)},_.prototype.removeListener=function(u,o,l,I){var g=i?i+u:u;if(!this._events[g])return this;if(!o)return N(this,g),this;var v=this._events[g];if(v.fn)v.fn===o&&(!I||v.once)&&(!l||v.context===l)&&N(this,g);else{for(var w=0,d=[],M=v.length;w<M;w++)(v[w].fn!==o||I&&!v[w].once||l&&v[w].context!==l)&&d.push(v[w]);d.length?this._events[g]=1===d.length?d[0]:d:N(this,g)}return this},_.prototype.removeAllListeners=function(u){var o;return u?this._events[o=i?i+u:u]&&N(this,o):(this._events=new a,this._eventsCount=0),this},_.prototype.off=_.prototype.removeListener,_.prototype.addListener=_.prototype.on,_.prefixed=i,_.EventEmitter=_,O.exports=_},49827:(O,f,i)=>{"use strict";i.r(f),i.d(f,{default:()=>N}),O=i.hmd(O);const N=function a(_){var p,u=_.Symbol;return"function"==typeof u?u.observable?p=u.observable:(p=u("observable"),u.observable=p):p="@@observable",p}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:O)},44647:(O,f,i)=>{"use strict";i.r(f),i.d(f,{WebsocketRequestHandler:()=>p});var a=i(26642),E=i(50365),R=i(76671),_=i(51356);class p{onConnected(o,l,I){if(l)return console.log("Subscription connection error",l),void o.error(l);console.log("Connected subscription.")}handle(o){return new E.y(l=>{if(this.client=new R.SubscriptionClient(o.url,{reconnect:!0,connectionParams:o.additionalParams,connectionCallback:(v,w)=>{this.onConnected(l,v,w)}}),!this.client)throw new Error("Could not create WS client!");const I=Date.now(),g=this.client.request({query:o.query,variables:o.variables,operationName:o.selectedOperation??void 0}).subscribe((0,_.P)(l,o.url,I));return this.cleanup=g.unsubscribe,()=>{this.destroy()}})}destroy(){var o=this;return(0,a.Z)(function*(){o.cleanup?.(),o.cleanup=void 0,o.client?.unsubscribeAll(),o.client?.close(),o.client=void 0})()}}}}]);
4
+ //# sourceMappingURL=647.js.map
5
+ //# debugId=31c1e411-ceee-5514-b221-31d846c13000