altair-static 5.2.6 → 5.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/114.js +5 -0
- package/build/dist/{244.js → 176.js} +5 -1
- package/build/dist/38.js +5 -0
- package/build/dist/{679.js → 404.js} +5 -1
- package/build/dist/414.js +5 -0
- package/build/dist/425.js +5 -1
- package/build/dist/485.js +5 -0
- package/build/dist/494.js +5 -0
- package/build/dist/{751.js → 579.js} +5 -1
- package/build/dist/614.js +5 -1
- package/build/dist/629.js +5 -1
- package/build/dist/{201.js → 670.js} +5 -1
- package/build/dist/{104.js → 788.js} +5 -1
- package/build/dist/881.js +5 -0
- package/build/dist/913.js +5 -0
- package/build/dist/common.js +5 -1
- package/build/dist/main.js +6 -2
- package/build/dist/polyfills.js +5 -1
- package/build/dist/runtime.js +5 -1
- package/build/dist/styles.css +2 -0
- package/package.json +4 -4
- package/build/dist/232.js +0 -1
- package/build/dist/257.js +0 -1
- package/build/dist/521.js +0 -1
- package/build/dist/625.js +0 -1
- package/build/dist/777.js +0 -1
- package/build/dist/789.js +0 -1
- package/build/dist/829.js +0 -1
|
@@ -1 +1,5 @@
|
|
|
1
|
-
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[104],{74092: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){return document.head.querySelector("meta[name='action-cable-"+i+"']")?.getAttribute("content")},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(){var l=function(i,t){return function(){return i.apply(t,arguments)}};s.ConnectionMonitor=function(){var i,t,o;function n(e){this.connection=e,this.visibilityDidChange=l(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,u=function(p,r){return function(){return p.apply(r,arguments)}},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=u(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((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)},94104:(m,v,f)=>{"use strict";f.r(v),f.d(v,{ActionCableSubscriptionProvider:()=>l});var g=f(43588),b=f(62503),y=f(74092),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(){this.subscription?.unsubscribe()}}}}]);
|
|
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]="b8d863b0-cd44-5997-99a0-3ce51d5c271a")}catch(e){}}();
|
|
3
|
+
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[788],{66412: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){return document.head.querySelector("meta[name='action-cable-"+i+"']")?.getAttribute("content")},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(){var l=function(i,t){return function(){return i.apply(t,arguments)}};s.ConnectionMonitor=function(){var i,t,o;function n(e){this.connection=e,this.visibilityDidChange=l(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,u=function(p,r){return function(){return p.apply(r,arguments)}},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=u(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((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)},99788:(m,v,f)=>{"use strict";f.r(v),f.d(v,{ActionCableSubscriptionProvider:()=>l});var g=f(82410),b=f(3881),y=f(66412),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(){this.subscription?.unsubscribe()}}}}]);
|
|
4
|
+
//# sourceMappingURL=788.js.map
|
|
5
|
+
//# debugId=b8d863b0-cd44-5997-99a0-3ce51d5c271a
|
|
@@ -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]="51d5d1ca-652b-52c2-9820-9bbd88335db1")}catch(e){}}();
|
|
3
|
+
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[881],{82410:(L,T,j)=>{j.d(T,{q:()=>v});class v{constructor(g,H,F){this.subscriptionUrl=g,this.connectionParams=H,this.extraOptions=F}}},3881:(L,T,j)=>{j.d(T,{y:()=>rt});var v=function(t,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])})(t,r)};function x(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}v(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function S(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,u,e=n.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(o=e.next()).done;)i.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(n=e.return)&&n.call(e)}finally{if(u)throw u.error}}return i}function w(t,r){for(var n=0,e=r.length,o=t.length;n<e;n++,o++)t[o]=r[n];return t}function y(t){return"function"==typeof t}var A=function J(t){var n=t(function(e){Error.call(e),e.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}(function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map(function(e,o){return o+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}});function C(t,r){if(t){var n=t.indexOf(r);0<=n&&t.splice(n,1)}}var I=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return t.prototype.unsubscribe=function(){var r,n,e,o,i;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=S(u),f=c.next();!f.done;f=c.next())f.value.remove(this)}catch(h){r={error:h}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}else u.remove(this);var l=this.initialTeardown;if(y(l))try{l()}catch(h){i=h instanceof A?h.errors:[h]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var s=S(d),p=s.next();!p.done;p=s.next()){var m=p.value;try{Y(m)}catch(h){i=i??[],h instanceof A?i=w(w([],_(i)),_(h.errors)):i.push(h)}}}catch(h){e={error:h}}finally{try{p&&!p.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}}if(i)throw new A(i)}},t.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Y(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(r)}},t.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},t.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},t.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&C(n,r)},t.prototype.remove=function(r){var n=this._teardowns;n&&C(n,r),r instanceof t&&r._removeParent(this)},t.EMPTY=((r=new t).closed=!0,r),t;var r}();function N(t){return t instanceof I||t&&"closed"in t&&y(t.remove)&&y(t.add)&&y(t.unsubscribe)}function Y(t){y(t)?t():t.unsubscribe()}var b={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},P={setTimeout:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(P.delegate?.setTimeout||setTimeout).apply(void 0,w([],_(t)))},clearTimeout:function(t){return(P.delegate?.clearTimeout||clearTimeout)(t)},delegate:void 0};function O(){}var Q=R("C",void 0,void 0);function R(t,r,n){return{kind:t,value:r,error:n}}var B=function(t){function r(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,N(n)&&n.add(e)):e.destination=Z,e}return x(r,t),r.create=function(n,e,o){return new G(n,e,o)},r.prototype.next=function(n){this.isStopped?U(function X(t){return R("N",t,void 0)}(n),this):this._next(n)},r.prototype.error=function(n){this.isStopped?U(function W(t){return R("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped?U(Q,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(I),G=function(t){function r(n,e,o){var u,i=t.call(this)||this;if(y(n))u=n;else if(n){var c;u=n.next,e=n.error,o=n.complete,i&&b.useDeprecatedNextContext?(c=Object.create(n)).unsubscribe=function(){return i.unsubscribe()}:c=n,u=u?.bind(c),e=e?.bind(c),o=o?.bind(c)}return i.destination={next:u?D(u,i):O,error:D(e??q,i),complete:o?D(o,i):O},i}return x(r,t),r}(B);function D(t,r){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];try{t.apply(void 0,w([],_(n)))}catch(o){if(b.useDeprecatedSynchronousErrorHandling){if(!r._syncErrorHack_isSubscribing)throw o;r.__syncError=o}else!function K(t){P.setTimeout(function(){var r=b.onUnhandledError;if(!r)throw t;r(t)})}(o)}}}function q(t){throw t}function U(t,r){var n=b.onStoppedNotification;n&&P.setTimeout(function(){return n(t,r)})}var Z={closed:!0,next:O,error:q,complete:O},$="function"==typeof Symbol&&Symbol.observable||"@@observable";function tt(t){return t}var rt=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var n=new t;return n.source=this,n.operator=r,n},t.prototype.subscribe=function(r,n,e){var o=function et(t){return t&&t instanceof B||function nt(t){return t&&y(t.next)&&y(t.error)&&y(t.complete)}(t)&&N(t)}(r)?r:new G(r,n,e);if(b.useDeprecatedSynchronousErrorHandling)this._deprecatedSyncErrorSubscribe(o);else{var u=this.operator,c=this.source;o.add(u?u.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}return o},t.prototype._deprecatedSyncErrorSubscribe=function(r){var n=r;n._syncErrorHack_isSubscribing=!0;var e=this.operator;if(e)r.add(e.call(r,this.source));else try{r.add(this._subscribe(r))}catch(i){n.__syncError=i}for(var o=n;o;){if("__syncError"in o)try{throw o.__syncError}finally{r.unsubscribe()}o=o.destination}n._syncErrorHack_isSubscribing=!1},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},t.prototype.forEach=function(r,n){var e=this;return new(n=k(n))(function(o,i){var u;u=e.subscribe(function(c){try{r(c)}catch(f){i(f),u?.unsubscribe()}},i,o)})},t.prototype._subscribe=function(r){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(r)},t.prototype[$]=function(){return this},t.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length?function V(t){return 0===t.length?tt:1===t.length?t[0]:function(n){return t.reduce(function(e,o){return o(e)},n)}}(r)(this):this},t.prototype.toPromise=function(r){var n=this;return new(r=k(r))(function(e,o){var i;n.subscribe(function(u){return i=u},function(u){return o(u)},function(){return e(i)})})},t.create=function(r){return new t(r)},t}();function k(t){var r;return null!==(r=t??b.Promise)&&void 0!==r?r:Promise}}}]);
|
|
4
|
+
//# sourceMappingURL=881.js.map
|
|
5
|
+
//# debugId=51d5d1ca-652b-52c2-9820-9bbd88335db1
|
|
@@ -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]="f9e2eb13-de9c-519c-9d47-6e0d1f869929")}catch(e){}}();
|
|
3
|
+
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[913],{51913:(Ut,ht,at)=>{function y(e){return Array.isArray?Array.isArray(e):"[object Array]"===V(e)}at.d(ht,{Z:()=>Gt});const lt=1/0;function E(e){return"string"==typeof e}function Y(e){return"number"==typeof e}function G(e){return"object"==typeof e}function m(e){return null!=e}function T(e){return!e.trim().length}function V(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Mt=e=>`Invalid value for key ${e}`,mt=e=>`Pattern length exceeds max of ${e}.`,_t=e=>`Missing ${e} property in key`,xt=e=>`Property 'weight' in key '${e}' must be a positive integer`,U=Object.prototype.hasOwnProperty;class yt{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let r=Q(n);s+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Q(e){let t=null,s=null,n=null,r=1;if(E(e)||y(e))n=e,t=X(e),s=F(e);else{if(!U.call(e,"name"))throw new Error(_t("name"));const c=e.name;if(n=c,U.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(xt(c));t=X(c),s=F(c)}return{path:t,id:s,weight:r,src:n}}function X(e){return y(e)?e:e.split(".")}function F(e){return y(e)?e.join("."):e}var f={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function Et(e,t){let s=[],n=!1;const r=(c,i,h)=>{if(m(c))if(i[h]){const o=c[i[h]];if(!m(o))return;if(h===i.length-1&&(E(o)||Y(o)||function dt(e){return!0===e||!1===e||function gt(e){return G(e)&&null!==e}(e)&&"[object Boolean]"==V(e)}(o)))s.push(function ft(e){return null==e?"":function ut(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-lt?"-0":t}(e)}(o));else if(y(o)){n=!0;for(let l=0,u=o.length;l<u;l+=1)r(o[l],i,h+1)}else i.length&&r(o,i,h+1)}else s.push(c)};return r(e,E(t)?t.split("."):t,0),n?s:s[0]},ignoreLocation:!1,ignoreFieldNorm:!1};const It=/[^ ]+/g;class P{constructor({getFn:t=f.getFn}={}){this.norm=function St(e=3){const t=new Map,s=Math.pow(10,e);return{get(n){const r=n.match(It).length;if(t.has(r))return t.get(r);const c=1/Math.sqrt(r),i=parseFloat(Math.round(c*s)/s);return t.set(r,i),i},clear(){t.clear()}}}(3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,E(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();E(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(t,s){return t[this._keysMap[s]]}size(){return this.records.length}_addString(t,s){if(!m(t)||T(t))return;let n={v:t,i:s,n:this.norm.get(t)};this.records.push(n)}_addObject(t,s){let n={i:s,$:{}};this.keys.forEach((r,c)=>{let i=this.getFn(t,r.path);if(m(i))if(y(i)){let h=[];const a=[{nestedArrIndex:-1,value:i}];for(;a.length;){const{nestedArrIndex:o,value:l}=a.pop();if(m(l))if(E(l)&&!T(l)){let u={v:l,i:o,n:this.norm.get(l)};h.push(u)}else y(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}n.$[c]=h}else if(!T(i)){let h={v:i,n:this.norm.get(i)};n.$[c]=h}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function J(e,t,{getFn:s=f.getFn}={}){const n=new P({getFn:s});return n.setKeys(e.map(Q)),n.setSources(t),n.create(),n}function At(e,{getFn:t=f.getFn}={}){const{keys:s,records:n}=e,r=new P({getFn:t});return r.setKeys(s),r.setIndexRecords(n),r}function C(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:r=f.distance,ignoreLocation:c=f.ignoreLocation}={}){const i=t/e.length;if(c)return i;const h=Math.abs(n-s);return r?i+h/r:h?1:i}const L=32;function bt(e){let t={};for(let s=0,n=e.length;s<n;s+=1){const r=e.charAt(s);t[r]=(t[r]||0)|1<<n-s-1}return t}class Z{constructor(t,{location:s=f.location,threshold:n=f.threshold,distance:r=f.distance,includeMatches:c=f.includeMatches,findAllMatches:i=f.findAllMatches,minMatchCharLength:h=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:o=f.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:c,findAllMatches:i,minMatchCharLength:h,isCaseSensitive:a,ignoreLocation:o},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:bt(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=L;if(g){const M=u-L;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,t.length-1]]),p}const{location:r,distance:c,threshold:i,findAllMatches:h,minMatchCharLength:a,ignoreLocation:o}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:b})=>{const{isMatch:I,score:R,indices:k}=function Lt(e,t,s,{location:n=f.location,distance:r=f.distance,threshold:c=f.threshold,findAllMatches:i=f.findAllMatches,minMatchCharLength:h=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:o=f.ignoreLocation}={}){if(t.length>L)throw new Error(mt(L));const l=t.length,u=e.length,d=Math.max(0,Math.min(n,u));let g=c,p=d;const M=h>1||a,b=M?Array(u):[];let I;for(;(I=e.indexOf(t,p))>-1;){let _=C(t,{currentLocation:I,expectedLocation:d,distance:r,ignoreLocation:o});if(g=Math.min(_,g),p=I+l,M){let A=0;for(;A<l;)b[I+A]=1,A+=1}}p=-1;let R=[],k=1,v=l+u;const Vt=1<<l-1;for(let _=0;_<l;_+=1){let A=0,w=v;for(;A<w;)C(t,{errors:_,currentLocation:d+w,expectedLocation:d,distance:r,ignoreLocation:o})<=g?A=w:v=w,w=Math.floor((v-A)/2+A);v=w;let ct=Math.max(1,d-w+1),W=i?u:Math.min(d+w,u)+l,O=Array(W+2);O[W+1]=(1<<_)-1;for(let x=W;x>=ct;x-=1){let N=x-1,ot=s[e.charAt(N)];if(M&&(b[N]=+!!ot),O[x]=(O[x+1]<<1|1)&ot,_&&(O[x]|=(R[x+1]|R[x])<<1|1|R[x+1]),O[x]&Vt&&(k=C(t,{errors:_,currentLocation:N,expectedLocation:d,distance:r,ignoreLocation:o}),k<=g)){if(g=k,p=N,p<=d)break;ct=Math.max(1,2*d-p)}}if(C(t,{errors:_+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:o})>g)break;R=O}const H={isMatch:p>=0,score:Math.max(.001,k)};if(M){const _=function wt(e=[],t=f.minMatchCharLength){let s=[],n=-1,r=-1,c=0;for(let i=e.length;c<i;c+=1){let h=e[c];h&&-1===n?n=c:!h&&-1!==n&&(r=c-1,r-n+1>=t&&s.push([n,r]),n=-1)}return e[c-1]&&c-n>=t&&s.push([n,c-1]),s}(b,h);_.length?a&&(H.indices=_):H.isMatch=!1}return H}(t,p,M,{location:r+b,distance:c,threshold:i,findAllMatches:h,minMatchCharLength:a,includeMatches:n,ignoreLocation:o});I&&(d=!0),u+=R,I&&k&&(l=[...l,...k])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(g.indices=l),g}}class S{constructor(t){this.pattern=t}static isMultiMatch(t){return q(t,this.multiRegex)}static isSingleMatch(t){return q(t,this.singleRegex)}search(){}}function q(e,t){const s=e.match(t);return s?s[1]:null}class tt extends S{constructor(t,{location:s=f.location,threshold:n=f.threshold,distance:r=f.distance,includeMatches:c=f.includeMatches,findAllMatches:i=f.findAllMatches,minMatchCharLength:h=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:o=f.ignoreLocation}={}){super(t),this._bitapSearch=new Z(t,{location:s,threshold:n,distance:r,includeMatches:c,findAllMatches:i,minMatchCharLength:h,isCaseSensitive:a,ignoreLocation:o})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class et extends S{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n,s=0;const r=[],c=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+c,r.push([n,s-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const j=[class kt extends S{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}},et,class Ot extends S{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}},class $t extends S{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}},class vt extends S{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}},class Ct extends S{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class Rt extends S{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=-1===t.indexOf(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}},tt],st=j.length,Nt=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,Pt=new Set([tt.type,et.type]),K=[];function z(e,t){for(let s=0,n=K.length;s<n;s+=1){let r=K[s];if(r.condition(e,t))return new r(e,t)}return new Z(e,t)}const B={PATH:"$path",PATTERN:"$val"},D=e=>!(!e.$and&&!e.$or),zt=e=>!!e[B.PATH],Bt=e=>!y(e)&&G(e)&&!D(e),nt=e=>({$and:Object.keys(e).map(t=>({[t]:e[t]}))});function rt(e,t,{auto:s=!0}={}){const n=r=>{let c=Object.keys(r);const i=zt(r);if(!i&&c.length>1&&!D(r))return n(nt(r));if(Bt(r)){const a=i?r[B.PATH]:c[0],o=i?r[B.PATTERN]:r[a];if(!E(o))throw new Error(Mt(a));const l={keyId:F(a),pattern:o};return s&&(l.searcher=z(o,t)),l}let h={children:[],operator:c[0]};return c.forEach(a=>{const o=r[a];y(o)&&o.forEach(l=>{h.children.push(n(l))})}),h};return D(e)||(e=nt(e)),n(e)}function Ht(e,t){const s=e.matches;t.matches=[],m(s)&&s.forEach(n=>{if(!m(n.indices)||!n.indices.length)return;const{indices:r,value:c}=n;let i={indices:r,value:c};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),t.matches.push(i)})}function Wt(e,t){t.score=e.score}let it=(()=>{class e{constructor(s,n={},r){this.options={...f,...n},this._keyStore=new yt(this.options.keys),this.setCollection(s,r)}setCollection(s,n){if(this._docs=s,n&&!(n instanceof P))throw new Error("Incorrect 'index' type");this._myIndex=n||J(this.options.keys,this._docs,{getFn:this.options.getFn})}add(s){m(s)&&(this._docs.push(s),this._myIndex.add(s))}remove(s=(()=>!1)){const n=[];for(let r=0,c=this._docs.length;r<c;r+=1){const i=this._docs[r];s(i,r)&&(this.removeAt(r),r-=1,c-=1,n.push(i))}return n}removeAt(s){this._docs.splice(s,1),this._myIndex.removeAt(s)}getIndex(){return this._myIndex}search(s,{limit:n=-1}={}){const{includeMatches:r,includeScore:c,shouldSort:i,sortFn:h,ignoreFieldNorm:a}=this.options;let o=E(s)?E(this._docs[0])?this._searchStringList(s):this._searchObjectList(s):this._searchLogical(s);return function Dt(e,{ignoreFieldNorm:t=f.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:c,score:i})=>{const h=r?r.weight:null;n*=Math.pow(0===i&&h?Number.EPSILON:i,(h||1)*(t?1:c))}),s.score=n})}(o,{ignoreFieldNorm:a}),i&&o.sort(h),Y(n)&&n>-1&&(o=o.slice(0,n)),function Yt(e,t,{includeMatches:s=f.includeMatches,includeScore:n=f.includeScore}={}){const r=[];return s&&r.push(Ht),n&&r.push(Wt),e.map(c=>{const{idx:i}=c,h={item:t[i],refIndex:i};return r.length&&r.forEach(a=>{a(c,h)}),h})}(o,this._docs,{includeMatches:r,includeScore:c})}_searchStringList(s){const n=z(s,this.options),{records:r}=this._myIndex,c=[];return r.forEach(({v:i,i:h,n:a})=>{if(!m(i))return;const{isMatch:o,score:l,indices:u}=n.searchIn(i);o&&c.push({item:i,idx:h,matches:[{score:l,value:i,norm:a,indices:u}]})}),c}_searchLogical(s){const n=rt(s,this.options),r=(a,o,l)=>{if(!a.children){const{keyId:u,searcher:d}=a,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(o,u),searcher:d});return g&&g.length?[{idx:l,item:o,matches:g}]:[]}switch(a.operator){case"$and":{const u=[];for(let d=0,g=a.children.length;d<g;d+=1){const M=r(a.children[d],o,l);if(!M.length)return[];u.push(...M)}return u}case"$or":{const u=[];for(let d=0,g=a.children.length;d<g;d+=1){const M=r(a.children[d],o,l);if(M.length){u.push(...M);break}}return u}}},i={},h=[];return this._myIndex.records.forEach(({$:a,i:o})=>{if(m(a)){let l=r(n,a,o);l.length&&(i[o]||(i[o]={idx:o,item:a,matches:[]},h.push(i[o])),l.forEach(({matches:u})=>{i[o].matches.push(...u)}))}}),h}_searchObjectList(s){const n=z(s,this.options),{keys:r,records:c}=this._myIndex,i=[];return c.forEach(({$:h,i:a})=>{if(!m(h))return;let o=[];r.forEach((l,u)=>{o.push(...this._findMatches({key:l,value:h[u],searcher:n}))}),o.length&&i.push({idx:a,item:h,matches:o})}),i}_findMatches({key:s,value:n,searcher:r}){if(!m(n))return[];let c=[];if(y(n))n.forEach(({v:i,i:h,n:a})=>{if(!m(i))return;const{isMatch:o,score:l,indices:u}=r.searchIn(i);o&&c.push({score:l,key:s,value:i,idx:h,norm:a,indices:u})});else{const{v:i,n:h}=n,{isMatch:a,score:o,indices:l}=r.searchIn(i);a&&c.push({score:o,key:s,value:i,norm:h,indices:l})}return c}}return e.version="6.4.6",e.createIndex=J,e.parseIndex=At,e.config=f,e})();it.parseQuery=rt,function Kt(...e){K.push(...e)}(class jt{constructor(t,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:n=f.includeMatches,minMatchCharLength:r=f.minMatchCharLength,ignoreLocation:c=f.ignoreLocation,findAllMatches:i=f.findAllMatches,location:h=f.location,threshold:a=f.threshold,distance:o=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:c,location:h,threshold:a,distance:o},this.pattern=s?t:t.toLowerCase(),this.query=function Ft(e,t={}){return e.split("|").map(s=>{let n=s.trim().split(Nt).filter(c=>c&&!!c.trim()),r=[];for(let c=0,i=n.length;c<i;c+=1){const h=n[c];let a=!1,o=-1;for(;!a&&++o<st;){const l=j[o];let u=l.isMultiMatch(h);u&&(r.push(new l(u,t)),a=!0)}if(!a)for(o=-1;++o<st;){const l=j[o];let u=l.isSingleMatch(h);if(u){r.push(new l(u,t));break}}}return r})}(this.pattern,this.options)}static condition(t,s){return s.useExtendedSearch}searchIn(t){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let c=0,i=[],h=0;for(let a=0,o=s.length;a<o;a+=1){const l=s[a];i.length=0,c=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:b}=g.search(t);if(!p){h=0,c=0,i.length=0;break}c+=1,h+=b,n&&(Pt.has(g.constructor.type)?i=[...i,...M]:i.push(M))}if(c){let u={isMatch:!0,score:h/c};return n&&(u.indices=i),u}}return{isMatch:!1,score:1}}});const Gt=it}}]);
|
|
4
|
+
//# sourceMappingURL=913.js.map
|
|
5
|
+
//# debugId=f9e2eb13-de9c-519c-9d47-6e0d1f869929
|
package/build/dist/common.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
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]="23e64b1e-999b-5eb6-878a-f0959d190fd9")}catch(e){}}();
|
|
3
|
+
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[592],{26642:(p,_,f)=>{function i(o,s,c,t,a,u,n){try{var r=o[u](n),e=r.value}catch(l){return void c(l)}r.done?s(e):Promise.resolve(e).then(t,a)}function h(o){return function(){var s=this,c=arguments;return new Promise(function(t,a){var u=o.apply(s,c);function n(e){i(u,t,a,n,r,"next",e)}function r(e){i(u,t,a,n,r,"throw",e)}n(void 0)})}}f.d(_,{Z:()=>h})}}]);
|
|
4
|
+
//# sourceMappingURL=common.js.map
|
|
5
|
+
//# debugId=23e64b1e-999b-5eb6-878a-f0959d190fd9
|