ncloudchat 1.0.49-beta3 → 1.0.49-beta4
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/ncloudchat.min.js +1 -1
- package/package.json +1 -1
package/ncloudchat.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ncloudchat=t():e.ncloudchat=t()}(self,(()=>(()=>{var e={75:(e,t,n)=>{"use strict";var r=n(2569);n(1876),n(9357),n(110),n(6059),n(9730),n(9371);var i=r(n(3207)),o=r(n(8428)),s=r(n(3473)),a=r(n(5579)),c=r(n(2013)),u=r(n(3562)),l=r(n(8450)),p=function(){return p=o.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)},d=function(e,t,n,r){return new(n||(n=s.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},f=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof a.default&&(o[c.default]=function(){return this}),o;function u(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},h=function(e,t){var n="function"==typeof a.default&&e[c.default];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},y=function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var v=n(7046),m=y(n(5652)),g=y(n(5517)),b=n(422),E=y(n(8648)),T=n(9220),I=n(7296),_=n(8254),w=function(){function e(e){void 0===e&&(e=!1);var t=this;this.socket=null,this.connected=!1,this.connectedCount=0,this.handleBase64Ids=function(e){for(var n in e)"id"===n?e[n]=t.ObjectId(e[n]):"object"===(0,i.default)(e[n])&&t.handleBase64Ids(e[n])},this.dp=new g.default}return e.prototype.clear=function(){},e.prototype.initialize=function(e,t){void 0===t&&(t="kr"),this.setProjectId(e),this.setLang(navigator.language),this.setRegion(t)},e.prototype.getDebug=function(){return m.default.get("DEBUG")},e.prototype.setDebug=function(e){return m.default.set("DEBUG",e)},e.prototype.getLang=function(){return m.default.get("LANGUAGE")},e.prototype.setLang=function(e){return m.default.set("LANGUAGE",e)},e.prototype.getRegion=function(){return m.default.get("REGION")},e.prototype.setRegion=function(e){return m.default.set("REGION",e)},e.prototype.getUser=function(){return m.default.get("USER")},e.prototype.getProjectId=function(){return m.default.get("PROJECT_ID")},e.prototype.setServerUrl=function(e){if(!/^[hHtTpP]{4}(s)?(:\/\/)[a-zA-Z0-9\.\/-:]+/.test(e))throw Error("invalied url : (ex)http://domain.com, https://domain.com");return e.length>1&&"/"===e.substring(e.length-1)&&(e=e.substring(0,e.length-1)),m.default.set("SERVER_URL",e)},e.prototype.setSocketUrl=function(e){m.default.set("SOCKET_URL",e)},e.prototype.setProjectId=function(e){return m.default.set("PROJECT_ID",e)},e.prototype.setToken=function(e){return m.default.set("TOKEN",e)},e.prototype.getToken=function(){return m.default.get("TOKEN")},e.prototype.setUser=function(e){m.default.set("USER",e)},e.prototype.ObjectId=function(e){return e?(0,E.default)(e)?window.atob(e).split(":")[1]:e:""},e.prototype.inputValidation=function(e){var t,n;if(!this.getToken())throw Error("You are not loged in.");try{for(var r=function(e){var t="function"==typeof a.default&&c.default,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}((0,u.default)(e)),i=r.next();!i.done;i=r.next()){var o=h(i.value,2),s=o[0];if(!o[1]){var l=s.replace(/([A-Z])/g," $1"),p=l.charAt(0).toUpperCase()+l.slice(1);throw Error("You need a(n) ".concat(p,"."))}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.connect=function(e,t){return void 0===t&&(t=""),d(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u=this;return f(this,(function(l){switch(l.label){case 0:return this.isConnected()?[4,this.disconnect()]:[3,2];case 1:l.sent(),l.label=2;case 2:if(n=m.default.get("SOCKET_URL")+"/cloudchat",!e.id)throw Error("UserID not found");r=e.profile,i=e.name,o=this.getLang(),s=e.customField,l.label=3;case 3:return l.trys.push([3,5,,6]),[4,(0,I.login)(e.id,i,r,t,s)];case 4:if(a=l.sent(),this.setUser({id:e.id,name:i,image:r,customField:s}),null==a)throw Error("Login Failed");return t=a.token,[3,6];case 5:throw l.sent();case 6:return m.default.set("TOKEN",t),c={transports:["websocket"],reconnection:!0,reconnectionAttempts:10,reconnectionDelay:2e3,reconnectionDelayMax:2e5,randomizationFactor:.5,query:{project_id:this.getProjectId(),user_id:e.id,lang:o,image:r,name:i,customField:s,token:t}},this.socket=(0,v.io)(n,c),this.socket.on("connect",(function(e){u.connectedCount++,u.connected=!0,(0,b.info)("Connected to ".concat(n," with id: ").concat(u.socket.id)),u.dp.dispatch("onConnected",e)})),this.socket.on("unauthorized",(function(e){})),this.socket.on("disconnect",(function(e){u.connected=!1,(0,b.info)("Disconnected to ".concat(n," with id: ").concat(u.socket.id)),u.dp.dispatch("onDisconnected",e)})),this.socket.on("message",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMessageReceived",t.channel_id,t)})),this.socket.on("event",(function(e){var t=JSON.parse(e);u.dp.dispatch("onEventReceived",t.channel_id,t)})),this.socket.on("start typing",(function(e){var t=JSON.parse(e);u.dp.dispatch("onStartTyping",t)})),this.socket.on("stop typing",(function(e){var t=JSON.parse(e);u.dp.dispatch("onStopTyping",t)})),this.socket.on("member joined",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberJoined",t)})),this.socket.on("member left",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberLeft",t)})),this.socket.on("member left",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberLeft",t)})),this.socket.on("member updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberUpdated",t)})),this.socket.on("message deleted",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMessageDeleted",t.channel_id,t)})),this.socket.on("message updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMessageUpdated",t.channel_id,t)})),this.socket.on("subscription updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onSubscriptionUpdated",t.channel_id,t)})),this.socket.on("user banned",(function(e){var t=JSON.parse(e);u.dp.dispatch("onUserBanned",t.channel_id,t)})),this.socket.on("user deleted",(function(e){var t=JSON.parse(e);u.dp.dispatch("onUserDeleted",t.channel_id,t)})),this.socket.on("user updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onUserUpdated",t.channel_id,t)})),this.socket.on("result",(function(e){var t=JSON.parse(e);u.dp.dispatch("onResult",t)})),this.socket.on("error",(function(e){var t=JSON.parse(e);u.dp.dispatch("onErrorReceived",t)})),[2,e]}}))}))},e.prototype.updateUser=function(e){var t;return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:if(!e)throw Error("Update object is required");this.inputValidation({}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.updateMember)(null===(t=this.getUser())||void 0===t?void 0:t.id,e)];case 2:return(n=r.sent())&&this.setUser(n),n.user&&this.handleBase64Ids(n.user),[2,n.user];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.mute=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.updateSubscription)(e,null,(0,l.default)({mute:!0}))];case 2:return(t=n.sent()).subscription&&this.handleBase64Ids(t.subscription),[2,t.subscription];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.unmute=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.updateSubscription)(e,null,(0,l.default)({mute:!1}))];case 2:return(t=n.sent()).subscription&&this.handleBase64Ids(t.subscription),[2,t.subscription];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.subscribe=function(e,t){return void 0===t&&(t=null),d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.createSubscription)(e,(0,l.default)(t))];case 2:return(n=r.sent()).subscription&&this.handleBase64Ids(n),[2,n.subscription];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.unsubscribe=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.deleteSubscription)(e)];case 2:return(t=n.sent()).subscription&&this.handleBase64Ids(t),[2,t.subscription];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.translateMessage=function(e,t,n,r){return d(this,void 0,void 0,(function(){var i;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({channelId:e,sourceLanguage:t,targetLanguage:n}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,I.translate)(e,t,n,r)];case 2:return[2,o.sent().translation];case 3:if((i=o.sent())instanceof Error)throw Error(i.message);return[3,4];case 4:return[2]}}))}))},e.prototype.sendMessage=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,message:t.message}),t.type||(t.type="text"),r.label=1;case 1:return r.trys.push([1,3,,4]),n={channelId:e,message:t.message,type:t.type,translate:t.translate},[4,(0,I.message)(n)];case 2:return[2,r.sent().message];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.sendExpressMessage=function(e,t){return d(this,void 0,void 0,(function(){var n,r;return f(this,(function(i){if(!this.isConnected())throw Error("You are not connected.");if(this.inputValidation({channelId:e,message:t.message}),t.type||(t.type="text"),!(n=m.default.get("USER")))throw Error("user is null");try{return r=p({channelId:e,user:n},t),this.socket.emit("express message",r),[2,r]}catch(e){throw e}return[2]}))}))},e.prototype.sendImage=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:return this.inputValidation({channelId:e}),[4,(0,I.upload)(e,t)];case 1:if(!(n=r.sent()).status)throw Error(n.message);return[2,n]}}))}))},e.prototype.sendFile=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:return this.inputValidation({channelId:e}),[4,(0,I.upload)(e,t)];case 1:if(!(n=r.sent()).status)throw Error(n.message);return[2,n]}}))}))},e.prototype.updateMessage=function(e,t,n){return d(this,void 0,void 0,(function(){return f(this,(function(e){return[2]}))}))},e.prototype.deleteMessage=function(e,t){return d(this,void 0,void 0,(function(){return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e,messageId:t}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.deleteMessage)(e,t)];case 2:return[2,n.sent().message];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.disconnect=function(){var e;return d(this,void 0,void 0,(function(){return f(this,(function(t){return this.isConnected()?(this.socket!==_.NoUndefinedVariablesRule&&(null===(e=null==this?void 0:this.socket)||void 0===e||e.disconnect()),m.default.set("TOKEN",""),[2]):[2]}))}))},e.prototype.isConnected=function(){return!!m.default.get("TOKEN")},e.prototype.isSocketConnected=function(){return!!this.connected},e.prototype.bind=function(e,t){return d(this,void 0,void 0,(function(){return f(this,(function(n){return this.dp.off(e),this.dp.on(e,t),[2]}))}))},e.prototype.unbind=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){return this.dp.off(e),[2]}))}))},e.prototype.unbindall=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){return this.dp.offall(e),[2]}))}))},e.prototype.getFriendships=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getFriendships)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent())&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getBannedUsers=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getMemberBlocks)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getUsers=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getMembers)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent())&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.requestFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.requestFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.acceptFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.acceptFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.rejectFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.rejectFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.removeFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.removeFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.unreadCount=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:this.inputValidation({channelId:e}),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,(0,T.unreadCount)(e)];case 2:return[2,t.sent()];case 3:throw t.sent();case 4:return[2]}}))}))},e.prototype.countUnread=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:this.inputValidation({channelId:e}),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,(0,T.unreadCount)(e)];case 2:return[2,t.sent()];case 3:throw t.sent();case 4:return[2]}}))}))},e.prototype.getSubscription=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,subscriptionId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,T.getSubscription)(e,t)];case 2:return(n=r.sent())&&this.handleBase64Ids(n),[2,n];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getChannel=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,T.getChannel)(e)];case 2:return(t=n.sent())&&this.handleBase64Ids(t),[2,t];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.getChannels=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getChannels)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getMessage=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,messageId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,T.getMessage)(e,t)];case 2:return(n=r.sent())?(this.handleBase64Ids(n),[2,n]):[2,n];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getMessages=function(e,t,n){return d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getMessages)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getSubscriptions=function(e,t,n){return d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getSubscriptions)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.createChannel=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelType:e.type,channelName:e.name}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.createChannel)(e)];case 2:return(t=n.sent()).channel&&this.handleBase64Ids(t.channel),[2,t.channel];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.updateChannel=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:if(this.inputValidation({channelId:e}),!t.name)throw Error("You need at least a channel name or a type.");r.label=1;case 1:return r.trys.push([1,3,,4]),t.id=e,[4,(0,I.updateChannel)(e,t)];case 2:return(n=r.sent()).channel&&this.handleBase64Ids(n.channel),[2,n.channel];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.deleteChannel=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.deleteChannel)(e)];case 2:return(t=n.sent()).channel&&this.handleBase64Ids(t.channel),[2,t.channel];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.markRead=function(e,t,n){return void 0===n&&(n=null),d(this,void 0,void 0,(function(){return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,userId:t.user_id,messageId:t.message_id,sortId:t.sort_id}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.updateSubscription)(e,t,(0,l.default)(n))];case 2:return[2,r.sent().subscription];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.addUsers=function(e,t,n){return d(this,void 0,void 0,(function(){var r;return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:e,userIds:t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.addChannelMembers)(e,t,n)];case 2:return(r=i.sent()).channel&&this.handleBase64Ids(r.channel),[2,r.channel];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.removeUsers=function(e,t,n){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,userIds:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.removeChannelMembers)(e,t)];case 2:return(n=r.sent()).channel&&this.handleBase64Ids(n.channel),[2,n.channel];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.startTyping=function(e,t){return void 0===t&&(t=""),d(this,void 0,void 0,(function(){var n;return f(this,(function(r){if(!this.isConnected())throw Error("You are not connected.");this.inputValidation({channelId:e,threadId:t});try{return n={channelId:e,threadId:t},this.socket.emit("start typing",n),[2,n]}catch(e){throw e}return[2]}))}))},e.prototype.stopTyping=function(e,t){return void 0===t&&(t=""),d(this,void 0,void 0,(function(){var n;return f(this,(function(r){if(!this.isConnected())throw Error("You are not connected.");this.inputValidation({channelId:e,threadId:t});try{return n={channelId:e,threadId:t},this.socket.emit("stop typing",n),[2,n]}catch(e){throw e}return[2]}))}))},e.prototype.banUser=function(e,t,n){return void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r;return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:e,memberId:t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.createMemberBlock)(e,t,(0,l.default)(n))];case 2:return(r=i.sent()).memberBlock&&this.handleBase64Ids(r.memberBlock),[2,r.memberBlock];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.unbanUser=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,memberId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.deleteMemberBlock)(e,t)];case 2:return(n=r.sent()).memberBlock&&this.handleBase64Ids(n.memberBlock),[2,n.memberBlock];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getPin=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,pinId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,T.getPin)(e,t)];case 2:return(n=r.sent())&&(n.id=this.ObjectId(n.id),n.user_id&&this.handleBase64Ids(n.user_id)),[2,n];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getPins=function(e,t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),d(this,void 0,void 0,(function(){var i,o=this;return f(this,(function(s){switch(s.label){case 0:this.inputValidation({}),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,T.getPins)(e,(0,l.default)(t),(0,l.default)(n),(0,l.default)(r))];case 2:return(i=s.sent()).edges&&i.edges.map((function(e){if(e.node.user_id)return o.handleBase64Ids(e)})),[2,i];case 3:throw s.sent();case 4:return[2]}}))}))},e.prototype.createPin=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,pinned:t.pinned}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.createPin)(e,t)];case 2:return(n=r.sent()).pin&&this.handleBase64Ids(n.pin),[2,n.pin];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.updatePin=function(e,t,n){return d(this,void 0,void 0,(function(){var r;return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:t,pinned:n.pinned}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.updatePin)(e,t,n)];case 2:return(r=i.sent()).pin&&this.handleBase64Ids(r.pin),[2,r.pin];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.getServerUrl=function(){return d(this,void 0,void 0,(function(){return f(this,(function(e){return[2,m.default.get("SERVER_URL")]}))}))},e.prototype.sendIntegration=function(e,t,n,r){return d(this,void 0,void 0,(function(){return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:e,integrationId:t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.sendIntegration)(e,t,n,(0,l.default)(r))];case 2:return[2,i.sent()];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.setPushState=function(e,t,n){return d(this,void 0,void 0,(function(){return f(this,(function(r){switch(r.label){case 0:this.inputValidation({}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.setPushState)("web",e,t,n)];case 2:return[2,r.sent()];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getPushState=function(){return d(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:this.inputValidation({}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,(0,T.getPushState)()];case 2:return[2,e.sent()];case 3:throw e.sent();case 4:return[2]}}))}))},e.prototype.getMessageUnreadCount=function(e,t){return d(this,void 0,void 0,(function(){return f(this,(function(n){switch(n.label){case 0:this.inputValidation({}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,T.getMessageUnreadCount)(e,t)];case 2:return[2,n.sent()];case 3:throw n.sent();case 4:return[2]}}))}))},e}();t.default=w},5652:(e,t)=>{"use strict";t.__esModule=!0;var n={IS_NODE:"undefined"!=typeof process&&!!process.versions&&!!process.versions.node,REQUEST_ATTEMPT_LIMIT:5,REQUEST_BATCH_SIZE:20,REQUEST_HEADERS:{},TOKEN:"",SERVER_URL:"https://ncloudchat.apigw.ntruss.com/gpapps/v1",SOCKET_URL:"https://soc.ncloudchat.ntruss.com",VERSION:"1.0.35",PROJECT_ID:null},r={get:function(e){return n.hasOwnProperty(e)?n[e]:""},set:function(e,t){n[e]=t}};t.default=r},5517:(e,t,n)=>{"use strict";n(2850),n(2773),n(3369),n(4336),n(110),t.__esModule=!0;var r=function(){function e(){this.callbacks=[]}return e.prototype.getCallbacks=function(){return this.callbacks},e.prototype.register=function(e){this.callbacks.includes(e)||this.callbacks.push(e)},e.prototype.unregister=function(e){var t=this.callbacks.indexOf(e);t>-1&&this.callbacks.splice(t,1)},e.prototype.execute=function(e,t,n,r,i,o){this.callbacks.length>0&&this.callbacks.slice(0).forEach((function(s){t?n?r?i?o?s(e,t,n,r,i,o):s(e,t,n,r,i):s(e,t,n,r):s(e,t,n):s(e,t):s(e)}))},e}(),i=function(){function e(){this.eventProvider={}}return e.prototype.getProvider=function(){return this.eventProvider},e.prototype.dispatch=function(e,t,n,r,i,o,s){var a=this.eventProvider[e];a&&a.execute(t,n,r,i,o,s)},e.prototype.on=function(e,t){var n=this.eventProvider[e];n||(n=new r,this.eventProvider[e]=n),n.register(t)},e.prototype.off=function(e,t){var n=this.eventProvider[e];n&&(t&&n.unregister(t),delete this.eventProvider[e])},e.prototype.offall=function(e){this.eventProvider[e]&&delete this.eventProvider[e]},e}();t.default=i},9004:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=r(n(8450));t.__esModule=!0,t.fetchData=void 0;var c,u=(c=n(5652))&&c.__esModule?c:{default:c},l=n(422);t.fetchData=function(e,t,n){return void 0===e&&(e=""),r=void 0,c=void 0,d=function(){var r,i,c,p,d;return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:if(!(r="Bearer ".concat(u.default.get("TOKEN"))))throw Error("You are not authorized.");return i=u.default.get("SERVER_URL")+"/graphql",c=u.default.get("PROJECT_ID"),p=u.default.get("VERSION"),d=u.default.get("LANGUAGE"),i&&c?[4,fetch(i,{method:"POST",headers:{Authorization:r,"X-PROJECT-ID":c,"Content-Type":"application/json","Accept-Language":d,Language:d,Accept:"application/json","X-SDK-Version":p},body:(0,a.default)({query:t,variables:n})}).then((function(e){return e.json()})).then((function(t){if((0,l.debug)("Fetch Data Response: ",t),(0,l.debug)("data: ",t.data),t.errors)throw t.errors[0];if(t.code)throw t;return t.data?((0,l.debug)("JSON DATA: ",t.data[e]),""!=e?t.data[e]:t.data):((0,l.debug)("return false"),!1)}))]:[2,null];case 1:return[2,o.sent()]}}))},new((p=void 0)||(p=i.default))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof p?r:new p((function(e){e(r)}))).then(n,i)}o((d=d.apply(r,c||[])).next())}));var r,c,p,d}},7151:(e,t)=>{"use strict";t.__esModule=!0,t.removeChannelMembersQuery=t.addChannelMembersQuery=t.deleteChannelQuery=t.updateChannelQuery=t.createChannelQuery=t.getChannelsQuery=t.getChannelQuery=void 0;var n="last_message {\n message_id\n sort_id\n project_id\n channel_id\n message_type\n mentions\n mentions_everyone\n has \n sender {\n id\n name\n profile\n }\n admin {\n id\n name\n profile\n }\n content\n created_at\n }",r="id\n project_id\n name\n user_id\n user { \n id\n name\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n integration_id\n members\n push\n link_url\n image_url \n customField \n integration_id \n created_at\n updated_at\n ";t.getChannelQuery="query channel ($projectId: String!, $id: String!) {\n channel (projectId: $projectId, id:$id) {\n ".concat(r,"\n ").concat(n,"\n }\n }\n"),t.getChannelsQuery="query channels (\n $projectId: String!, \n $filter: String!, \n $sort: String, \n $option:String\n ) {\n channels (\n projectId: $projectId, \n filter:$filter, \n sort:$sort, \n option:$option\n ) {\n totalCount\n edges {\n node {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n }\n"),t.createChannelQuery="mutation (\n $id: String,\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $integrationId: String,\n $translation: Boolean,\n $push: Boolean,\n $mutes: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $members: [String]\n ) {\n createChannel(\n input: { \n id: $id,\n projectId: $projectId, \n name: $name, \n type: $type,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n mutes: $mutes,\n customField: $customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n integrationId:$integrationId,\n members: $members,\n }\n ) {\n channel {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n"),t.updateChannelQuery="mutation updateChannel (\n $projectId: String!, \n $name: String, \n $type: String,\n $uniqueId: String,\n $translation: Boolean,\n $integrationId: String,\n $push: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $id: ID!,\n $members: [String]\n ) {\n updateChannel(\n input: { \n projectId: $projectId, \n name: $name, \n type: $type,\n id: $id,\n members: $members,\n integrationId: $integrationId,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n customField:$customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n"),t.deleteChannelQuery="mutation (\n $projectId: String!, \n $id: ID!\n ) {\n deleteChannel(\n input: { \n projectId: $projectId, \n id: $id,\n }\n ) {\n channel {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n"),t.addChannelMembersQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $memberIds: [String]!\n ) {\n addChannelMembers(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n memberIds:$memberIds \n }\n ) {\n channel {\n ".concat(r,"\n }\n }\n }\n"),t.removeChannelMembersQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $memberIds: [String]!\n ) {\n removeChannelMembers(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n memberIds:$memberIds \n }\n ) {\n channel {\n ".concat(r,"\n }\n }\n }\n")},1026:(e,t)=>{"use strict";t.__esModule=!0,t.getFriendshipsQuery=t.removeFriendQuery=t.rejectFriendQuery=t.acceptFriendQuery=t.requestFriendQuery=void 0;var n="project_id\n id\n status\n user {\n id\n name\n profile\n }\n friend {\n id\n name\n profile\n }\n friend_id\n created_at\n updated_at\n requested_at\n ";t.requestFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n requestFriend(\n input: { \n projectId: $projectId, \n friendId: $friendId }\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.acceptFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n acceptFriend(\n input: { projectId: $projectId, friendId: $friendId }\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.rejectFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n rejectFriend (\n input: { projectId: $projectId, friendId: $friendId}\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.removeFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n removeFriend(\n input: { projectId: $projectId, friendId: $friendId }\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.getFriendshipsQuery="query friendships (\n $projectId: String!, \n $filter: String!, \n $sort: String, \n $option: String\n ) {\n friendships (\n projectId: $projectId, \n filter:$filter, \n sort:$sort, \n option: $option\n ) {\n totalCount\n edges {\n node {\n ".concat(n,"\n }\n }\n }\n }\n ")},834:(e,t)=>{"use strict";t.__esModule=!0,t.sendIntergrationQuery=void 0,t.sendIntergrationQuery="mutation sendIntegration (\n $projectId: String!,\n $channelId: String!, \n $integrationId: String!,\n $to: String,\n $message: String!\n ) {\n sendIntegration (\n input: { projectId: $projectId, \n channelId: $channelId, \n integrationId: $integrationId,\n to: $to,\n message:$message }\n ) {\n status\n message\n }\n }\n"},7665:(e,t)=>{"use strict";t.__esModule=!0,t.createInviteQuery=void 0,t.createInviteQuery="mutation (\n $projectId: String!, \n $channelId: String!,\n $friendIds: String!\n ) {\n createInvite(\n input: {\n projectId: $projectId, \n channelId: $channelId,\n friendIds: $friendIds\n }\n ) {\n invite {\n id\n }\n }\n }\n"},4872:(e,t)=>{"use strict";t.__esModule=!0,t.addNotificationTokenQuery=t.getMemberBlocksQuery=t.getMembersQuery=t.deleteMemberBlockQuery=t.updateMemberQuery=t.createMemberBlockQuery=t.loginQuery=t.getMeQuery=void 0;var n="id\n project_id\n member_id\n type\n status\n block_type\n reason\n messageMulti {\n lang\n value\n default\n }\n \n started_at\n ended_at\n created_at\n updated_at\n deleted_at\n ";t.getMeQuery="query memberForQuery (\n $projectId: String!\n ) {\n memberForQuery (\n projectId: $projectId\n ) { \n id\n project_id\n name\n profile\n country\n memo\n remoteip\n adid\n device\n network\n push\n version\n model\n logined_at\n created_at\n updated_at\n notifications {\n token\n device\n os\n push\n ad\n night\n }\n }\n }\n",t.loginQuery="mutation login(\n $projectId: String!\n $userId: String!\n $name: String\n $profile: String\n $token: String\n $customField: String\n ) {\n login(\n input: {\n projectId: $projectId\n userId: $userId\n name: $name\n token: $token\n profile: $profile\n customField: $customField\n }\n ) {\n token\n }\n }",t.createMemberBlockQuery="mutation createMemberBlock(\n $projectId: String!\n $memberId: String!\n $channelId: String\n $options: String\n ) {\n createMemberBlock(\n input: {\n projectId: $projectId\n memberId: $memberId\n channelId: $channelId\n options: $options\n }\n ) {\n memberBlock {\n ".concat(n,"\n }\n }\n }"),t.updateMemberQuery="mutation updateMember(\n $id: String!\n $projectId: String!\n $name: String\n $profile: String\n $remoteip: String\n $memo: String\n $adid: String\n $device: String\n $deviceType: [String]\n $network: String\n $version: String\n $model: String\n $notifications: NotificationInput\n )\n {\n updateMember(input: {id: $id, projectId: $projectId, profile: $profile, memo: $memo, name: $name, remoteip: $remoteip, adid: $adid, device: $device, deviceType: $deviceType, network: $network, version: $version, model: $model, notifications: $notifications}) {\n member {\n id\n project_id\n name\n profile\n country\n memo\n remoteip\n adid\n device\n network\n push\n version\n model\n logined_at\n created_at\n updated_at\n notifications {\n token\n device\n os\n }\n }\n }\n}\n",t.deleteMemberBlockQuery="mutation deleteMemberBlock (\n $projectId: String!\n $memberId: String!\n $channelId: String\n ) {\n deleteMemberBlock(\n input: {\n projectId: $projectId\n memberId: $memberId\n channelId: $channelId\n }\n ) {\n memberBlock {\n ".concat(n,"\n }\n }\n }\n"),t.getMembersQuery="query membersForQuery (\n $projectId: String!, \n $option: String!, \n $filter: String!, \n $sort: String \n ) {\n membersForQuery (\n projectId: $projectId, \n option:$option, \n filter:$filter, \n sort:$sort\n ) {\n totalCount\n edges {\n node {\n id\n name\n }\n }\n }\n }\n",t.getMemberBlocksQuery="query memberblocks (\n $projectId: String!, \n $filter: String!, \n $sort: String, \n $option:String\n ) {\n memberblocks(\n projectId: $projectId, \n filter:$filter, \n sort:$sort, \n option:$option\n ) {\n totalCount\n edges {\n node {\n id\n project_id\n member_id\n type\n status\n block_type\n messageMulti {\n lang\n value\n default\n }\n started_at\n ended_at\n created_at\n updated_at\n deleted_at\n }\n }\n }\n }\n",t.addNotificationTokenQuery="mutation addNotificationToken (\n $projectId: String!,\n $token: String,\n $device: String,\n $os: String,\n $ad: Boolean,\n $push: Boolean,\n $night: Boolean,\n $timezone: String,\n $channel: String,\n) {\n addNotificationToken(\n input: {\n projectId: $projectId,\n token: $token,\n device: $device,\n os: $os,\n ad: $ad,\n push: $push,\n night: $night,\n timezone: $timezone,\n channel: $channel\n }\n ) {\n member {\n id\n notifications {\n token\n device\n os\n push\n ad\n night\n timezone\n }\n }\n }\n}\n"},838:(e,t)=>{"use strict";t.__esModule=!0,t.messageUnreadCountQuery=t.deleteMessageQuery=t.messageQuery=t.unreadCountQuery=t.getMessagesQuery=t.getMessageQuery=t.translateQuery=void 0;var n="id \n message_id\n channel_id\n sort_id\n message_type\n sender {\n id\n name\n profile\n }\n admin {\n id\n name\n profile\n }\n attachment_filenames {\n name\n size\n type\n url\n }\n translate\n has\n embed_providers\n embed_type \n parent_message_id\n parent_message {\n id\n message_id\n channel_id\n sort_id\n message_type\n sender {\n id\n name\n profile\n }\n admin {\n id\n name\n profile\n }\n attachment_filenames {\n name\n size\n type\n url\n }\n translate\n has\n embed_providers\n embed_type\n isExpress\n link_hostnames\n mentions\n bytes\n mentions_everyone\n content\n sended_at\n created_at\n } \n isExpress\n link_hostnames\n mentions\n bytes\n mentions_everyone\n content\n sended_at\n created_at\n";t.translateQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $srcLang: String!, \n $text: String!, \n $targetLang:String!\n ) {\n translation(\n input: {\n projectId:$projectId, \n channelId:$channelId,\n srcLang:$srcLang,\n targetLang:$targetLang, \n text:$text \n }\n ) {\n result\n {\n status\n message\n lang\n }\n }\n }\n",t.getMessageQuery="query message (\n $projectId: String!, \n $channelId: String!, \n $id: ID!\n ) { \n message(\n projectId: $projectId, \n channelId:$channelId, \n id:$id\n ) { \n ".concat(n,"\n } \n }\n"),t.getMessagesQuery="query messages (\n $projectId: String!, \n $filter: String!, \n $option: String, \n $sort: String \n ) {\n messages(\n projectId: $projectId, \n filter: $filter, \n option:$option, \n sort:$sort\n ) {\n totalCount\n edges {\n node {\n ".concat(n,"\n }\n }\n }\n }\n"),t.unreadCountQuery="query mark (\n $projectId: String!, \n $channelId: String!\n ) { \n mark (\n projectId: $projectId, \n channelId:$channelId\n ) { \n user_id,\n message_id,\n sort_id, \n unread\n } \n }\n",t.messageQuery="mutation (\n $projectId: String!\n $channelId: String!\n $content: String!\n $parentMessageId: String\n $type: String\n $translate: Boolean\n ) {\n createChannelMessage(\n input: {\n projectId: $projectId\n channelId: $channelId\n content: $content\n parentMessageId: $parentMessageId\n type: $type\n translate: $translate\n }\n ) {\n message {\n ".concat(n,"\n }\n }\n }\n"),t.deleteMessageQuery="mutation deleteMessage (\n $projectId: String! \n $channelId: String!\n $id: ID!\n ) {\n deleteMessage(\n input: {\n projectId: $projectId\n channelId: $channelId\n id: $id\n }\n ) {\n message {\n ".concat(n,"\n }\n }\n }\n"),t.messageUnreadCountQuery="query messageUnreadCount(\n $projectId: String!\n $channelId: String!,\n $messageId: String!,\n ) {\n messageUnreadCount(\n projectId: $projectId\n channelId: $channelId\n messageId: $messageId\n ) {\n totalCount\n count\n }\n }"},2014:(e,t)=>{"use strict";t.__esModule=!0,t.updatePinQuery=t.createPinQuery=t.getPinsQuery=t.getPinQuery=void 0;var n="\n id\n project_id\n channel_id\n message_id\n pinned\n pinnedAt\n user_id {\n id\n name\n profile\n }\n expiredAt\n createdAt\n";t.getPinQuery="query pin (\n $projectId: String!,\n $channelId: String!,\n $id: String!\n ) {\n pin (\n projectId: $projectId,\n channelId: $channelId,\n id:$id\n ) {\n ".concat(n,"\n }\n }\n "),t.getPinsQuery="query pins (\n $projectId: String!,\n $channelId: String!,\n $filter: String!,\n $option: String,\n $sort: String\n ) { \n pins (\n projectId: $projectId,\n channelId: $channelId,\n filter: $filter,\n option:$option,\n sort:$sort\n ) {\n totalCount \n edges { \n node { \n ".concat(n,"\n } \n } \n } \n }"),t.createPinQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $pinned: Boolean!, \n $pinnedAt: String, \n $expiredAt: String\n ) { \n createPin(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n pinned: $pinned, \n pinnedAt: $pinnedAt, \n expiredAt: $expiredAt \n }\n ) { \n pin { \n ".concat(n,"\n } \n } \n }"),t.updatePinQuery="mutation updatePin(\n $id: ID!, \n $projectId: String!, \n $channelId: String!, \n $pinned: Boolean!, \n $pinnedAt: String, \n $expiredAt: String\n ) { \n updatePin(\n input: {\n id: $id, \n projectId: $projectId, \n channelId: $channelId, \n pinned: $pinned, \n pinnedAt: $pinnedAt, \n expiredAt: $expiredAt \n }) { \n pin { \n ".concat(n,"\n } \n } \n }")},3136:(e,t)=>{"use strict";t.__esModule=!0,t.getSubscriptionsQuery=t.getSubscriptionQuery=t.updateSubscriptionQuery=t.deleteSubscriptionQuery=t.createSubscriptionQuery=void 0;var n="id\n channel_id\n user_id\n user {\n id\n name\n profile\n customField\n }\n language\n push\n mute\n online\n channel {\n name\n type\n image_url\n push\n disabled\n }\n mark {\n user_id\n message_id\n sort_id\n unread\n }\n uniquekey\n created_at\n updated_at\n";t.createSubscriptionQuery="mutation (\n $projectId: String!, \n $channelId: String!,\n $option: String,\n ) {\n createSubscription (\n input: {\n projectId: $projectId, \n channelId: $channelId,\n option: $option\n }\n ) {\n subscription {\n ".concat(n,"\n }\n }\n }\n"),t.deleteSubscriptionQuery="mutation (\n $projectId: String!, \n $channelId: String!\n ) {\n deleteSubscription (\n input: {\n projectId: $projectId, \n channelId: $channelId\n }\n ) {\n subscription {\n ".concat(n,"\n }\n }\n }\n"),t.updateSubscriptionQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $mark: MarkInput, \n $option: String!\n ) {\n updateSubscription(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n mark: $mark, \n option: $option\n }\n ) {\n subscription {\n ".concat(n,"\n }\n }\n }\n"),t.getSubscriptionQuery="query subscription (\n $projectId: String!,\n $channelId: String!, \n $id: String!\n ) {\n subscription (\n projectId: $projectId, \n channelId: $channelId, \n id:$id\n ) {\n ".concat(n,"\n }\n }\n"),t.getSubscriptionsQuery="query subscriptions (\n $projectId: String!, \n $option: String!, \n $filter: String!, \n $sort: String \n ) {\n subscriptions (\n projectId: $projectId, \n option:$option, \n filter:$filter, \n sort:$sort\n ) {\n totalCount\n edges {\n node {\n ".concat(n,"\n }\n }\n }\n }\n")},422:(e,t,n)=>{"use strict";var r=n(2569)(n(8450));n(1031);t.__esModule=!0,t.warn=t.info=t.error=t.debug=void 0;var i,o=(i=n(5652))&&i.__esModule?i:{default:i},s=function(e,t){var n=t.level,i=t.metadata;if(1==o.default.get("DEBUG")){var s=(new Date).toISOString(),a=i?(0,r.default)(i):"",c="[".concat(s,"] [").concat(n.toUpperCase(),"]: ").concat(e," ").concat(a);switch(n){case"debug":case"info":case"warn":console.log(c);break;case"error":console.error(c);break;default:console.log("Unknown log level: ".concat(n))}}};t.debug=function(e,t){return void 0===t&&(t=null),s(e,{level:"debug",metadata:t})},t.info=function(e,t){return void 0===t&&(t=null),s(e,{level:"info",metadata:t})},t.warn=function(e,t){return void 0===t&&(t=null),s(e,{level:"warn",metadata:t})},t.error=function(e,t){return void 0===t&&(t=null),s(e,{level:"error",metadata:t})}},5702:(e,t,n)=>{"use strict";var r=n(2569);n(6059);var i=r(n(8428)),o=r(n(3473)),s=r(n(5579)),a=r(n(2013)),c=function(){return c=i.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},u=function(e,t,n,r){return new(n||(n=o.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof s.default&&(o[a.default]=function(){return this}),o;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.removeChannelMembers=t.addChannelMembers=t.deleteChannel=t.updateChannel=t.createChannel=void 0;var p,d=(p=n(5652))&&p.__esModule?p:{default:p},f=n(7151),h=n(9004);t.createChannel=function(e){return u(void 0,void 0,void 0,(function(){return l(this,(function(t){return e.members||(e.members=[]),[2,(0,h.fetchData)("createChannel",f.createChannelQuery,{projectId:d.default.get("PROJECT_ID"),name:e.name,type:e.type,uniqueId:e.uniqueId,translation:e.translation,push:e.push,mutes:e.mutes,customField:e.customField,linkUrl:e.linkUrl,imageUrl:e.imageUrl,integrationId:e.integrationId,disabled:e.disabled,members:e.members})]}))}))},t.updateChannel=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return t.members||(t.members=[]),[4,(0,h.fetchData)("updateChannel",f.updateChannelQuery,c({projectId:d.default.get("PROJECT_ID")},t))];case 1:return[2,e.sent()]}}))}))},t.deleteChannel=function(e){return u(void 0,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return[4,(0,h.fetchData)("deleteChannel",f.deleteChannelQuery,{projectId:d.default.get("PROJECT_ID"),id:e})];case 1:return[2,t.sent()]}}))}))},t.addChannelMembers=function(e,t,n){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,h.fetchData)("addChannelMembers",f.addChannelMembersQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberIds:t})];case 1:return[2,n.sent()]}}))}))},t.removeChannelMembers=function(e,t,n){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,h.fetchData)("removeChannelMembers",f.removeChannelMembersQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberIds:t})];case 1:return[2,n.sent()]}}))}))}},1299:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.removeFriend=t.rejectFriend=t.acceptFriend=t.requestFriend=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(1026),d=n(9004);t.requestFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("requestFriend",p.requestFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))},t.acceptFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("acceptFriend",p.acceptFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))},t.rejectFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("rejectFriend",p.rejectFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))},t.removeFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("removeFriend",p.removeFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))}},7296:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(5940)),o=r(n(5366)),s=r(n(6771)),a=i.default?function(e,t,n,r){void 0===r&&(r=n);var i=(0,o.default)(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),(0,s.default)(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},c=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};t.__esModule=!0,c(n(2129),t),c(n(5702),t),c(n(1048),t),c(n(1299),t),c(n(2006),t),c(n(842),t),c(n(278),t),c(n(1258),t)},1258:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.sendIntegration=void 0;var a,c=(a=n(5652))&&a.__esModule?a:{default:a},u=n(834),l=n(9004);t.sendIntegration=function(e,t,n,r){return a=void 0,p=void 0,f=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(i){switch(i.label){case 0:return[4,(0,l.fetchData)("sendIntegration",u.sendIntergrationQuery,{projectId:c.default.get("PROJECT_ID"),channelId:e,to:n,integrationId:t,message:r})];case 1:return[2,i.sent()]}}))},new((d=void 0)||(d=i.default))((function(e,t){function n(e){try{i(f.next(e))}catch(e){t(e)}}function r(e){try{i(f.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof d?i:new d((function(e){e(i)}))).then(n,r)}i((f=f.apply(a,p||[])).next())}));var a,p,d,f}},2006:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.createInvite=void 0;var a,c=(a=n(5652))&&a.__esModule?a:{default:a},u=n(7665),l=n(9004);t.createInvite=function(e,t){return n=void 0,r=void 0,p=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){switch(n.label){case 0:return[4,(0,l.fetchData)("createFriend",u.createInviteQuery,{projectId:c.default.get("PROJECT_ID"),channelId:e,friendIds:t})];case 1:return[2,n.sent()]}}))},new((a=void 0)||(a=i.default))((function(e,t){function i(e){try{s(p.next(e))}catch(e){t(e)}}function o(e){try{s(p.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(i,o)}s((p=p.apply(n,r||[])).next())}));var n,r,a,p}},2129:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(8428)),o=r(n(3473)),s=r(n(5579)),a=r(n(2013)),c=function(){return c=i.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},u=function(e,t,n,r){return new(n||(n=o.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof s.default&&(o[a.default]=function(){return this}),o;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.setPushState=t.updateMember=t.deleteMemberBlock=t.createMemberBlock=t.login=void 0;var p,d=(p=n(5652))&&p.__esModule?p:{default:p},f=n(9004),h=n(4872);t.login=function(e,t,n,r,i){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=""),u(void 0,void 0,void 0,(function(){return l(this,(function(o){switch(o.label){case 0:return d.default.set("TOKEN",r),[4,(0,f.fetchData)("login",h.loginQuery,{projectId:d.default.get("PROJECT_ID"),userId:e,name:t,profile:n,token:r,customField:i})];case 1:return[2,o.sent()]}}))}))},t.createMemberBlock=function(e,t,n){return void 0===n&&(n=""),u(void 0,void 0,void 0,(function(){return l(this,(function(r){switch(r.label){case 0:return[4,(0,f.fetchData)("createMemberBlock",h.createMemberBlockQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberId:t,options:n})];case 1:return[2,r.sent()]}}))}))},t.deleteMemberBlock=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,f.fetchData)("deleteMemberBlock",h.deleteMemberBlockQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberId:t})];case 1:return[2,n.sent()]}}))}))},t.updateMember=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,f.fetchData)("updateMember",h.updateMemberQuery,c(c({},t),{projectId:d.default.get("PROJECT_ID"),id:e}))];case 1:return[2,n.sent()]}}))}))},t.setPushState=function(e,t,n,r){return u(void 0,void 0,void 0,(function(){return l(this,(function(i){switch(i.label){case 0:return[4,(0,f.fetchData)("addNotificationToken",h.addNotificationTokenQuery,{projectId:d.default.get("PROJECT_ID"),device:e,ad:n,push:t,night:r})];case 1:return[2,i.sent()]}}))}))}},1048:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(8428)),o=r(n(3473)),s=r(n(5579)),a=r(n(2013)),c=function(){return c=i.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},u=function(e,t,n,r){return new(n||(n=o.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof s.default&&(o[a.default]=function(){return this}),o;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.deleteMessage=t.message=t.upload=t.translate=void 0;var p,d=(p=n(5652))&&p.__esModule?p:{default:p},f=n(9004),h=n(838);t.translate=function(e,t,n,r){return u(void 0,void 0,void 0,(function(){return l(this,(function(i){switch(i.label){case 0:return[4,(0,f.fetchData)("",h.translateQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,srcLang:t,targetLang:n,text:r})];case 1:return[2,i.sent()]}}))}))},t.upload=function(e,t){return u(void 0,void 0,void 0,(function(){var n,r,i,o;return l(this,(function(s){switch(s.label){case 0:return(n=d.default.get("TOKEN"))?(r=d.default.get("LANGUAGE"),i=d.default.get("SERVER_URL")+"/upload/"+e,(o=new FormData).append("channelId",e),o.append("upload","1"),o.append("file",t),[4,fetch(i,{method:"POST",headers:{Authorization:"Bearer "+n,Language:r,"X-PROJECT-ID":d.default.get("PROJECT_ID"),projectId:d.default.get("PROJECT_ID")},body:o}).then((function(e){return e.json()}))]):(console.error("Token is not found"),[2]);case 1:return[2,s.sent()]}}))}))},t.message=function(e){return u(void 0,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return[4,(0,f.fetchData)("createChannelMessage",h.messageQuery,c({projectId:d.default.get("PROJECT_ID"),channelId:e.channelId,content:e.message,parentMessageId:null==e?void 0:e.parent_message_id},e))];case 1:return[2,t.sent()]}}))}))},t.deleteMessage=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,f.fetchData)("deleteMessage",h.deleteMessageQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))}},278:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.updatePin=t.createPin=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(2014);t.createPin=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){return[2,(0,p.fetchData)("createPin",d.createPinQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,messageId:t.messageId,pinned:t.pinned,pinnedAt:t.pinnedAt,expiredAt:t.expiredAt})]}))}))},t.updatePin=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){return[2,(0,p.fetchData)("updatePin",d.updatePinQuery,{id:e,projectId:l.default.get("PROJECT_ID"),channelId:t,messageId:n.messageId,pinned:n.pinned,pinnedAt:n.pinnedAt,expiredAt:n.expiredAt})]}))}))}},842:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.updateSubscription=t.deleteSubscription=t.createSubscription=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(3136);t.createSubscription=function(e,t){return void 0===t&&(t=""),a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("createSubscription",d.createSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,option:t})];case 1:return[2,n.sent()]}}))}))},t.deleteSubscription=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,p.fetchData)("deleteSubscription",d.deleteSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e})];case 1:return[2,t.sent()]}}))}))},t.updateSubscription=function(e,t,n){return void 0===n&&(n=""),a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,p.fetchData)("updateSubscription",d.updateSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,mark:t,option:n})];case 1:return[2,r.sent()]}}))}))}},4587:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getChannels=t.getChannel=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(7151),d=n(9004);t.getChannel=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("channel",p.getChannelQuery,{projectId:l.default.get("PROJECT_ID"),id:e})];case 1:return[2,t.sent()]}}))}))},t.getChannels=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,d.fetchData)("channels",p.getChannelsQuery,{projectId:l.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))}))}},3746:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.getFriendships=void 0;var a,c=(a=n(5652))&&a.__esModule?a:{default:a},u=n(9004),l=n(1026);t.getFriendships=function(e,t,n){return r=void 0,a=void 0,d=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,u.fetchData)("friendships",l.getFriendshipsQuery,{projectId:c.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))},new((p=void 0)||(p=i.default))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof p?r:new p((function(e){e(r)}))).then(n,i)}o((d=d.apply(r,a||[])).next())}));var r,a,p,d}},9220:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(5940)),o=r(n(5366)),s=r(n(6771)),a=i.default?function(e,t,n,r){void 0===r&&(r=n);var i=(0,o.default)(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),(0,s.default)(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},c=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};t.__esModule=!0,c(n(5846),t),c(n(4587),t),c(n(8052),t),c(n(7119),t),c(n(3746),t),c(n(3003),t),c(n(8691),t),c(n(5347),t)},3003:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getPushState=t.getMembers=void 0;var u,l=n(9004),p=(u=n(5652))&&u.__esModule?u:{default:u},d=n(4872);t.getMembers=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,l.fetchData)("membersForQuery",d.getMembersQuery,{projectId:p.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))}))},t.getPushState=function(){return a(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,(0,l.fetchData)("memberForQuery",d.getMeQuery,{projectId:p.default.get("PROJECT_ID")})];case 1:return[2,e.sent()]}}))}))}},8691:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.getMemberBlocks=void 0;var a,c=n(4872),u=n(9004),l=(a=n(5652))&&a.__esModule?a:{default:a};t.getMemberBlocks=function(e,t,n){return r=void 0,a=void 0,d=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,u.fetchData)("memberblocks",c.getMemberBlocksQuery,{projectId:l.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))},new((p=void 0)||(p=i.default))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof p?r:new p((function(e){e(r)}))).then(n,i)}o((d=d.apply(r,a||[])).next())}));var r,a,p,d}},8052:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getMessageUnreadCount=t.unreadCount=t.getMessage=t.getMessages=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(838);t.getMessages=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,p.fetchData)("messages",d.getMessagesQuery,{projectId:l.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))}))},t.getMessage=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("message",d.getMessageQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))},t.unreadCount=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,p.fetchData)("mark",d.unreadCountQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e})];case 1:return[2,t.sent()]}}))}))},t.getMessageUnreadCount=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("messageUnreadCount",d.messageUnreadCountQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,messageId:t})];case 1:return[2,n.sent()]}}))}))}},5347:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getPins=t.getPin=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(2014);t.getPin=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("pin",d.getPinQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))},t.getPins=function(e,t,n,r){return a(void 0,void 0,void 0,(function(){return c(this,(function(i){switch(i.label){case 0:return[4,(0,p.fetchData)("pins",d.getPinsQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,filter:t,sort:n,option:r})];case 1:return[2,i.sent()]}}))}))}},5846:(e,t)=>{"use strict";t.__esModule=!0},7119:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getSubscriptions=t.getSubscription=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(3136);t.getSubscription=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("subscription",d.getSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))},t.getSubscriptions=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,p.fetchData)("subscriptions",d.getSubscriptionsQuery,{projectId:l.default.get("PROJECT_ID"),option:n,filter:e,sort:t})];case 1:return[2,r.sent()]}}))}))}},2742:(e,t,n)=>{var r=n(4579),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},6981:(e,t,n)=>{n(2699),e.exports=n(4579).Object.assign},5627:(e,t,n)=>{n(6760);var r=n(4579).Object;e.exports=function(e,t){return r.create(e,t)}},3391:(e,t,n)=>{n(1477);var r=n(4579).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},7965:(e,t,n)=>{n(520),e.exports=n(4579).Object.entries},7036:(e,t,n)=>{n(5178);var r=n(4579).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},112:(e,t,n)=>{n(4058),n(1867),n(3871),n(2878),n(5971),n(2526),e.exports=n(4579).Promise},25:(e,t,n)=>{n(6840),n(4058),n(8174),n(6461),e.exports=n(4579).Symbol},2392:(e,t,n)=>{n(1867),n(3871),e.exports=n(5103).f("iterator")},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},9003:e=>{e.exports=function(){}},9142:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},2159:(e,t,n)=>{var r=n(6727);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,n)=>{var r=n(7932),i=n(8728),o=n(6531);e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},4677:(e,t,n)=>{var r=n(2894),i=n(2939)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,n)=>{var r=n(5663);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,n)=>{e.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,n)=>{var r=n(6727),i=n(3938).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},337:(e,t,n)=>{var r=n(6162),i=n(8195),o=n(6274);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var s,a=n(e),c=o.f,u=0;a.length>u;)c.call(e,s=a[u++])&&t.push(s);return t}},3856:(e,t,n)=>{var r=n(3938),i=n(4579),o=n(9216),s=n(1818),a=n(7069),c=function(e,t,n){var u,l,p,d=e&c.F,f=e&c.G,h=e&c.S,y=e&c.P,v=e&c.B,m=e&c.W,g=f?i:i[t]||(i[t]={}),b=g.prototype,E=f?r:h?r[t]:(r[t]||{}).prototype;for(u in f&&(n=t),n)(l=!d&&E&&void 0!==E[u])&&a(g,u)||(p=l?E[u]:n[u],g[u]=f&&"function"!=typeof E[u]?n[u]:v&&l?o(p,r):m&&E[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):y&&"function"==typeof p?o(Function.call,p):p,y&&((g.virtual||(g.virtual={}))[u]=p,e&c.R&&b&&!b[u]&&s(b,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},5576:(e,t,n)=>{var r=n(9216),i=n(5602),o=n(5991),s=n(2159),a=n(8728),c=n(3728),u={},l={},p=e.exports=function(e,t,n,p,d){var f,h,y,v,m=d?function(){return e}:c(e),g=r(n,p,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(f=a(e.length);f>b;b++)if((v=t?g(s(h=e[b])[0],h[1]):g(e[b]))===u||v===l)return v}else for(y=m.call(e);!(h=y.next()).done;)if((v=i(y,g,h.value,t))===u||v===l)return v};p.BREAK=u,p.RETURN=l},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},1818:(e,t,n)=>{var r=n(4743),i=n(3101);e.exports=n(9666)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},4881:(e,t,n)=>{var r=n(3938).document;e.exports=r&&r.documentElement},3758:(e,t,n)=>{e.exports=!n(9666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(7467)("div"),"a",{get:function(){return 7}}).a}))},6778:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},799:(e,t,n)=>{var r=n(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},5991:(e,t,n)=>{var r=n(5449),i=n(2939)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},1421:(e,t,n)=>{var r=n(2894);e.exports=Array.isArray||function(e){return"Array"==r(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},5602:(e,t,n)=>{var r=n(2159);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},3945:(e,t,n)=>{"use strict";var r=n(526),i=n(3101),o=n(5378),s={};n(1818)(s,n(2939)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},5700:(e,t,n)=>{"use strict";var r=n(6227),i=n(3856),o=n(7470),s=n(1818),a=n(5449),c=n(3945),u=n(5378),l=n(5089),p=n(2939)("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",h="values",y=function(){return this};e.exports=function(e,t,n,v,m,g,b){c(n,t,v);var E,T,I,_=function(e){if(!d&&e in O)return O[e];switch(e){case f:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",N=m==h,S=!1,O=e.prototype,k=O[p]||O["@@iterator"]||m&&O[m],x=k||_(m),A=m?N?_("entries"):x:void 0,D="Array"==t&&O.entries||k;if(D&&(I=l(D.call(new e)))!==Object.prototype&&I.next&&(u(I,w,!0),r||"function"==typeof I[p]||s(I,p,y)),N&&k&&k.name!==h&&(S=!0,x=function(){return k.call(this)}),r&&!b||!d&&!S&&O[p]||s(O,p,x),a[t]=x,a[w]=y,m)if(E={values:N?x:_(h),keys:g?x:_(f),entries:A},b)for(T in E)T in O||o(O,T,E[T]);else i(i.P+i.F*(d||S),t,E);return E}},6630:(e,t,n)=>{var r=n(2939)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(e){}return n}},5084:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},5449:e=>{e.exports={}},6227:e=>{e.exports=!0},7177:(e,t,n)=>{var r=n(5730)("meta"),i=n(6727),o=n(7069),s=n(4743).f,a=0,c=Object.isExtensible||function(){return!0},u=!n(7929)((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e}}},1601:(e,t,n)=>{var r=n(3938),i=n(2723).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(2894)(s);e.exports=function(){var e,t,n,u=function(){var r,i;for(c&&(r=s.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var p=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=p=!p}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},9304:(e,t,n)=>{"use strict";var r=n(5663);function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},8335:(e,t,n)=>{"use strict";var r=n(9666),i=n(6162),o=n(8195),s=n(6274),a=n(6530),c=n(799),u=Object.assign;e.exports=!u||n(7929)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=a(e),u=arguments.length,l=1,p=o.f,d=s.f;u>l;)for(var f,h=c(arguments[l++]),y=p?i(h).concat(p(h)):i(h),v=y.length,m=0;v>m;)f=y[m++],r&&!d.call(h,f)||(n[f]=h[f]);return n}:u},526:(e,t,n)=>{var r=n(2159),i=n(7856),o=n(3338),s=n(8989)("IE_PROTO"),a=function(){},c=function(){var e,t=n(7467)("iframe"),r=o.length;for(t.style.display="none",n(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},4743:(e,t,n)=>{var r=n(2159),i=n(3758),o=n(3206),s=Object.defineProperty;t.f=n(9666)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},7856:(e,t,n)=>{var r=n(4743),i=n(2159),o=n(6162);e.exports=n(9666)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,c=0;a>c;)r.f(e,n=s[c++],t[n]);return e}},6183:(e,t,n)=>{var r=n(6274),i=n(3101),o=n(7932),s=n(3206),a=n(7069),c=n(3758),u=Object.getOwnPropertyDescriptor;t.f=n(9666)?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},4368:(e,t,n)=>{var r=n(7932),i=n(3230).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return s.slice()}}(e):i(r(e))}},3230:(e,t,n)=>{var r=n(2963),i=n(3338).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},5089:(e,t,n)=>{var r=n(7069),i=n(6530),o=n(8989)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},2963:(e,t,n)=>{var r=n(7069),i=n(7932),o=n(7428)(!1),s=n(8989)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},6162:(e,t,n)=>{var r=n(2963),i=n(3338);e.exports=Object.keys||function(e){return r(e,i)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},2584:(e,t,n)=>{var r=n(3856),i=n(4579),o=n(7929);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},2050:(e,t,n)=>{var r=n(9666),i=n(6162),o=n(7932),s=n(6274).f;e.exports=function(e){return function(t){for(var n,a=o(t),c=i(a),u=c.length,l=0,p=[];u>l;)n=c[l++],r&&!s.call(a,n)||p.push(e?[n,a[n]]:a[n]);return p}}},931:e=>{e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},7790:(e,t,n)=>{var r=n(2159),i=n(6727),o=n(9304);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8144:(e,t,n)=>{var r=n(1818);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},7470:(e,t,n)=>{e.exports=n(1818)},9967:(e,t,n)=>{"use strict";var r=n(3938),i=n(4579),o=n(4743),s=n(9666),a=n(2939)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];s&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},5378:(e,t,n)=>{var r=n(4743).f,i=n(7069),o=n(2939)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8989:(e,t,n)=>{var r=n(250)("keys"),i=n(5730);e.exports=function(e){return r[e]||(r[e]=i(e))}},250:(e,t,n)=>{var r=n(4579),i=n(3938),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},2707:(e,t,n)=>{var r=n(2159),i=n(5663),o=n(2939)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[o])?t:i(n)}},510:(e,t,n)=>{var r=n(1052),i=n(8333);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},2723:(e,t,n)=>{var r,i,o,s=n(9216),a=n(6778),c=n(4881),u=n(7467),l=n(3938),p=l.process,d=l.setImmediate,f=l.clearImmediate,h=l.MessageChannel,y=l.Dispatch,v=0,m={},g=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){g.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},f=function(e){delete m[e]},"process"==n(2894)(p)?r=function(e){p.nextTick(s(g,e,1))}:y&&y.now?r=function(e){y.now(s(g,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),g.call(e)}}:function(e){setTimeout(s(g,e,1),0)}),e.exports={set:d,clear:f}},6531:(e,t,n)=>{var r=n(1052),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},1052:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7932:(e,t,n)=>{var r=n(799),i=n(8333);e.exports=function(e){return r(i(e))}},8728:(e,t,n)=>{var r=n(1052),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},6530:(e,t,n)=>{var r=n(8333);e.exports=function(e){return Object(r(e))}},3206:(e,t,n)=>{var r=n(6727);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},6640:(e,t,n)=>{var r=n(3938).navigator;e.exports=r&&r.userAgent||""},6347:(e,t,n)=>{var r=n(3938),i=n(4579),o=n(6227),s=n(5103),a=n(4743).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},5103:(e,t,n)=>{t.f=n(2939)},2939:(e,t,n)=>{var r=n(250)("wks"),i=n(5730),o=n(3938).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},3728:(e,t,n)=>{var r=n(4677),i=n(2939)("iterator"),o=n(5449);e.exports=n(4579).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},3882:(e,t,n)=>{"use strict";var r=n(9003),i=n(5084),o=n(5449),s=n(7932);e.exports=n(5700)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},2699:(e,t,n)=>{var r=n(3856);r(r.S+r.F,"Object",{assign:n(8335)})},6760:(e,t,n)=>{var r=n(3856);r(r.S,"Object",{create:n(526)})},1477:(e,t,n)=>{var r=n(3856);r(r.S+r.F*!n(9666),"Object",{defineProperty:n(4743).f})},5178:(e,t,n)=>{var r=n(7932),i=n(6183).f;n(2584)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},4058:()=>{},2878:(e,t,n)=>{"use strict";var r,i,o,s,a=n(6227),c=n(3938),u=n(9216),l=n(4677),p=n(3856),d=n(6727),f=n(5663),h=n(9142),y=n(5576),v=n(2707),m=n(2723).set,g=n(1601)(),b=n(9304),E=n(931),T=n(6640),I=n(7790),_="Promise",w=c.TypeError,N=c.process,S=N&&N.versions,O=S&&S.v8||"",k=c.Promise,x="process"==l(N),A=function(){},D=i=b.f,C=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(2939)("species")]=function(e){e(A,A)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==O.indexOf("6.6")&&-1===T.indexOf("Chrome/66")}catch(e){}}(),R=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t){if(!e._n){e._n=!0;var n=e._c;g((function(){for(var r=e._v,i=1==e._s,o=0,s=function(t){var n,o,s,a=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{a?(i||(2==e._h&&L(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?u(w("Promise-chain cycle")):(o=R(n))?o.call(n,c,u):c(n)):u(r)}catch(e){l&&!s&&l.exit(),u(e)}};n.length>o;)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&F(e)}))}},F=function(e){m.call(c,(function(){var t,n,r,i=e._v,o=j(e);if(o&&(t=E((function(){x?N.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=x||j(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},j=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){m.call(c,(function(){var t;x?N.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),$(t,!0))},M=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw w("Promise can't be resolved itself");(t=R(e))?g((function(){var r={_w:n,_d:!1};try{t.call(e,u(M,r,1),u(P,r,1))}catch(e){P.call(r,e)}})):(n._v=e,n._s=1,$(n,!1))}catch(e){P.call({_w:n,_d:!1},e)}}};C||(k=function(e){h(this,k,_,"_h"),f(e),r.call(this);try{e(u(M,this,1),u(P,this,1))}catch(e){P.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(8144)(k.prototype,{then:function(e,t){var n=D(v(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?N.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&$(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(M,e,1),this.reject=u(P,e,1)},b.f=D=function(e){return e===k||e===s?new o(e):i(e)}),p(p.G+p.W+p.F*!C,{Promise:k}),n(5378)(k,_),n(9967)(_),s=n(4579).Promise,p(p.S+p.F*!C,_,{reject:function(e){var t=D(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(a||!C),_,{resolve:function(e){return I(a&&this===s?k:this,e)}}),p(p.S+p.F*!(C&&n(6630)((function(e){k.all(e).catch(A)}))),_,{all:function(e){var t=this,n=D(t),r=n.resolve,i=n.reject,o=E((function(){var n=[],o=0,s=1;y(e,!1,(function(e){var a=o++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=D(t),r=n.reject,i=E((function(){y(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},1867:(e,t,n)=>{"use strict";var r=n(510)(!0);n(5700)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},6840:(e,t,n)=>{"use strict";var r=n(3938),i=n(7069),o=n(9666),s=n(3856),a=n(7470),c=n(7177).KEY,u=n(7929),l=n(250),p=n(5378),d=n(5730),f=n(2939),h=n(5103),y=n(6347),v=n(337),m=n(1421),g=n(2159),b=n(6727),E=n(6530),T=n(7932),I=n(3206),_=n(3101),w=n(526),N=n(4368),S=n(6183),O=n(8195),k=n(4743),x=n(6162),A=S.f,D=k.f,C=N.f,R=r.Symbol,$=r.JSON,F=$&&$.stringify,j=f("_hidden"),L=f("toPrimitive"),P={}.propertyIsEnumerable,M=l("symbol-registry"),V=l("symbols"),U=l("op-symbols"),B=Object.prototype,Q="function"==typeof R&&!!O.f,G=r.QObject,q=!G||!G.prototype||!G.prototype.findChild,J=o&&u((function(){return 7!=w(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=A(B,t);r&&delete B[t],D(e,t,n),r&&e!==B&&D(B,t,r)}:D,Y=function(e){var t=V[e]=w(R.prototype);return t._k=e,t},K=Q&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},z=function(e,t,n){return e===B&&z(U,t,n),g(e),t=I(t,!0),g(n),i(V,t)?(n.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),n=w(n,{enumerable:_(0,!1)})):(i(e,j)||D(e,j,_(1,{})),e[j][t]=!0),J(e,t,n)):D(e,t,n)},H=function(e,t){g(e);for(var n,r=v(t=T(t)),i=0,o=r.length;o>i;)z(e,n=r[i++],t[n]);return e},X=function(e){var t=P.call(this,e=I(e,!0));return!(this===B&&i(V,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,j)&&this[j][e])||t)},W=function(e,t){if(e=T(e),t=I(t,!0),e!==B||!i(V,t)||i(U,t)){var n=A(e,t);return!n||!i(V,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=C(T(e)),r=[],o=0;n.length>o;)i(V,t=n[o++])||t==j||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===B,r=C(n?U:T(e)),o=[],s=0;r.length>s;)!i(V,t=r[s++])||n&&!i(B,t)||o.push(V[t]);return o};Q||(a((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(U,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),J(this,e,_(1,n))};return o&&q&&J(B,e,{configurable:!0,set:t}),Y(e)}).prototype,"toString",(function(){return this._k})),S.f=W,k.f=z,n(3230).f=N.f=Z,n(6274).f=X,O.f=ee,o&&!n(6227)&&a(B,"propertyIsEnumerable",X,!0),h.f=function(e){return Y(f(e))}),s(s.G+s.W+s.F*!Q,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var re=x(f.store),ie=0;re.length>ie;)y(re[ie++]);s(s.S+s.F*!Q,"Symbol",{for:function(e){return i(M,e+="")?M[e]:M[e]=R(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in M)if(M[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),s(s.S+s.F*!Q,"Object",{create:function(e,t){return void 0===t?w(e):H(w(e),t)},defineProperty:z,defineProperties:H,getOwnPropertyDescriptor:W,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var oe=u((function(){O.f(1)}));s(s.S+s.F*oe,"Object",{getOwnPropertySymbols:function(e){return O.f(E(e))}}),$&&s(s.S+s.F*(!Q||u((function(){var e=R();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,F.apply($,r)}}),R.prototype[L]||n(1818)(R.prototype,L,R.prototype.valueOf),p(R,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},520:(e,t,n)=>{var r=n(3856),i=n(2050)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},5971:(e,t,n)=>{"use strict";var r=n(3856),i=n(4579),o=n(3938),s=n(2707),a=n(7790);r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then((function(){return n}))}:e,n?function(n){return a(t,e()).then((function(){throw n}))}:e)}})},2526:(e,t,n)=>{"use strict";var r=n(3856),i=n(9304),o=n(931);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},8174:(e,t,n)=>{n(6347)("asyncIterator")},6461:(e,t,n)=>{n(6347)("observable")},3871:(e,t,n)=>{n(3882);for(var r=n(3938),i=n(1818),o=n(5449),s=n(2939)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],l=r[u],p=l&&l.prototype;p&&!p[s]&&i(p,s,u),o[u]=o.Array}},4963:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},7722:(e,t,n)=>{var r=n(6314)("unscopables"),i=Array.prototype;null==i[r]&&n(7728)(i,r,{}),e.exports=function(e){i[r][e]=!0}},6793:(e,t,n)=>{"use strict";var r=n(4496)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},7007:(e,t,n)=>{var r=n(5286);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},9315:(e,t,n)=>{var r=n(2110),i=n(875),o=n(2337);e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},50:(e,t,n)=>{var r=n(741),i=n(9797),o=n(508),s=n(875),a=n(6886);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,p=6==e,d=5==e||p,f=t||a;return function(t,a,h){for(var y,v,m=o(t),g=i(m),b=r(a,h,3),E=s(g.length),T=0,I=n?f(t,E):c?f(t,0):void 0;E>T;T++)if((d||T in g)&&(v=b(y=g[T],T,m),e))if(n)I[T]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return T;case 2:I.push(y)}else if(l)return!1;return p?-1:u||l?l:I}}},2736:(e,t,n)=>{var r=n(5286),i=n(4302),o=n(6314)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},6886:(e,t,n)=>{var r=n(2736);e.exports=function(e,t){return new(r(e))(t)}},4398:(e,t,n)=>{"use strict";var r=n(4963),i=n(5286),o=n(7242),s=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?c(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},1488:(e,t,n)=>{var r=n(2032),i=n(6314)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2032:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},5645:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},741:(e,t,n)=>{var r=n(4963);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},3537:(e,t,n)=>{"use strict";var r=n(4253),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},1355:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},7057:(e,t,n)=>{e.exports=!n(4253)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2457:(e,t,n)=>{var r=n(5286),i=n(3816).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2985:(e,t,n)=>{var r=n(3816),i=n(5645),o=n(7728),s=n(7234),a=n(741),c=function(e,t,n){var u,l,p,d,f=e&c.F,h=e&c.G,y=e&c.S,v=e&c.P,m=e&c.B,g=h?r:y?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),E=b.prototype||(b.prototype={});for(u in h&&(n=t),n)p=((l=!f&&g&&void 0!==g[u])?g:n)[u],d=m&&l?a(p,r):v&&"function"==typeof p?a(Function.call,p):p,g&&s(g,u,p,e&c.U),b[u]!=p&&o(b,u,d),v&&E[u]!=p&&(E[u]=p)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},8852:(e,t,n)=>{var r=n(6314)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},4253:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},8082:(e,t,n)=>{"use strict";n(8269);var r=n(7234),i=n(7728),o=n(4253),s=n(1355),a=n(6314),c=n(1165),u=a("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=a(e),f=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=f?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!t})):void 0;if(!f||!h||"replace"===e&&!l||"split"===e&&!p){var y=/./[d],v=n(s,d,""[e],(function(e,t,n,r,i){return t.exec===c?f&&!i?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=v[0],g=v[1];r(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return g.call(e,this,t)}:function(e){return g.call(e,this)})}}},3218:(e,t,n)=>{"use strict";var r=n(7007);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},18:(e,t,n)=>{e.exports=n(3825)("native-function-to-string",Function.toString)},3816:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},9181:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},7728:(e,t,n)=>{var r=n(9275),i=n(681);e.exports=n(7057)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},639:(e,t,n)=>{var r=n(3816).document;e.exports=r&&r.documentElement},1734:(e,t,n)=>{e.exports=!n(7057)&&!n(4253)((function(){return 7!=Object.defineProperty(n(2457)("div"),"a",{get:function(){return 7}}).a}))},7242:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},9797:(e,t,n)=>{var r=n(2032);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},4302:(e,t,n)=>{var r=n(2032);e.exports=Array.isArray||function(e){return"Array"==r(e)}},5286:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},5364:(e,t,n)=>{var r=n(5286),i=n(2032),o=n(6314)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},4461:e=>{e.exports=!1},9275:(e,t,n)=>{var r=n(7007),i=n(1734),o=n(1689),s=Object.defineProperty;t.f=n(7057)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},681:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7234:(e,t,n)=>{var r=n(3816),i=n(7728),o=n(9181),s=n(3953)("src"),a=n(18),c="toString",u=(""+a).split(c);n(5645).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},7787:(e,t,n)=>{"use strict";var r=n(1488),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},1165:(e,t,n)=>{"use strict";var r,i,o=n(3218),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,u=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=void 0!==/()??/.exec("")[1];(u||l)&&(c=function(e){var t,n,r,i,c=this;return l&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),u&&(t=c.lastIndex),r=s.call(c,e),u&&r&&(c.lastIndex=c.global?r.index+r[0].length:t),l&&r&&r.length>1&&a.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=c},3825:(e,t,n)=>{var r=n(5645),i=n(3816),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(4461)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},8364:(e,t,n)=>{var r=n(7007),i=n(4963),o=n(6314)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[o])?t:i(n)}},7717:(e,t,n)=>{"use strict";var r=n(4253);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},4496:(e,t,n)=>{var r=n(1467),i=n(1355);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},2094:(e,t,n)=>{var r=n(5364),i=n(1355);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},2337:(e,t,n)=>{var r=n(1467),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},1467:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},2110:(e,t,n)=>{var r=n(9797),i=n(1355);e.exports=function(e){return r(i(e))}},875:(e,t,n)=>{var r=n(1467),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},508:(e,t,n)=>{var r=n(1355);e.exports=function(e){return Object(r(e))}},1689:(e,t,n)=>{var r=n(5286);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3953:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},6314:(e,t,n)=>{var r=n(3825)("wks"),i=n(3953),o=n(3816).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},4336:(e,t,n)=>{"use strict";var r=n(2985),i=n(50)(0),o=n(7717)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},3369:(e,t,n)=>{"use strict";var r=n(2985),i=n(9315)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(7717)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},9371:(e,t,n)=>{"use strict";var r=n(2985),i=n(50)(1);r(r.P+r.F*!n(7717)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},110:(e,t,n)=>{"use strict";var r=n(2985),i=n(639),o=n(2032),s=n(2337),a=n(875),c=[].slice;r(r.P+r.F*n(4253)((function(){i&&c.call(i)})),"Array",{slice:function(e,t){var n=a(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=s(e,n),u=s(t,n),l=a(u-i),p=new Array(l),d=0;d<l;d++)p[d]="String"==r?this.charAt(i+d):this[i+d];return p}})},1031:(e,t,n)=>{var r=n(2985),i=n(3537);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},9730:(e,t,n)=>{var r=n(2985);r(r.P,"Function",{bind:n(4398)})},6059:(e,t,n)=>{var r=n(9275).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||n(7057)&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},8269:(e,t,n)=>{"use strict";var r=n(1165);n(2985)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},9357:(e,t,n)=>{"use strict";var r=n(7007),i=n(508),o=n(875),s=n(1467),a=n(6793),c=n(7787),u=Math.max,l=Math.min,p=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n(8082)("replace",2,(function(e,t,n,h){return[function(r,i){var o=e(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=h(n,e,this,t);if(i.done)return i.value;var p=r(e),d=String(this),f="function"==typeof t;f||(t=String(t));var v=p.global;if(v){var m=p.unicode;p.lastIndex=0}for(var g=[];;){var b=c(p,d);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(p.lastIndex=a(d,o(p.lastIndex),m))}for(var E,T="",I=0,_=0;_<g.length;_++){b=g[_];for(var w=String(b[0]),N=u(l(s(b.index),d.length),0),S=[],O=1;O<b.length;O++)S.push(void 0===(E=b[O])?E:String(E));var k=b.groups;if(f){var x=[w].concat(S,N,d);void 0!==k&&x.push(k);var A=String(t.apply(void 0,x))}else A=y(w,d,N,S,k,t);N>=I&&(T+=d.slice(I,N)+A,I=N+w.length)}return T+d.slice(I)}];function y(e,t,r,o,s,a){var c=r+e.length,u=o.length,l=f;return void 0!==s&&(s=i(s),l=d),n.call(a,l,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var d=p(l/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a}))}}))},1876:(e,t,n)=>{"use strict";var r=n(5364),i=n(7007),o=n(8364),s=n(6793),a=n(875),c=n(7787),u=n(1165),l=n(4253),p=Math.min,d=[].push,f=4294967295,h=!l((function(){RegExp(f,"y")}));n(8082)("split",2,(function(e,t,n,l){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,s,a,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,h=void 0===t?f:t>>>0,y=new RegExp(e.source,l+"g");(o=u.call(y,i))&&!((s=y.lastIndex)>p&&(c.push(i.slice(p,o.index)),o.length>1&&o.index<i.length&&d.apply(c,o.slice(1)),a=o[0].length,p=s,c.length>=h));)y.lastIndex===o.index&&y.lastIndex++;return p===i.length?!a&&y.test("")||c.push(""):c.push(i.slice(p)),c.length>h?c.slice(0,h):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=l(y,e,this,t,y!==n);if(r.done)return r.value;var u=i(e),d=String(this),v=o(u,RegExp),m=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),b=new v(h?u:"^(?:"+u.source+")",g),E=void 0===t?f:t>>>0;if(0===E)return[];if(0===d.length)return null===c(b,d)?[d]:[];for(var T=0,I=0,_=[];I<d.length;){b.lastIndex=h?I:0;var w,N=c(b,h?d:d.slice(I));if(null===N||(w=p(a(b.lastIndex+(h?0:I)),d.length))===T)I=s(d,I,m);else{if(_.push(d.slice(T,I)),_.length===E)return _;for(var S=1;S<=N.length-1;S++)if(_.push(N[S]),_.length===E)return _;I=T=w}}return _.push(d.slice(T)),_}]}))},2850:(e,t,n)=>{"use strict";var r=n(2985),i=n(2094),o="includes";r(r.P+r.F*n(8852)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},2773:(e,t,n)=>{"use strict";var r=n(2985),i=n(9315)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(7722)("includes")},1227:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},8648:function(e,t){!function(n){"use strict";function r(e,t){if(e instanceof Boolean||"boolean"==typeof e)return!1;if(t instanceof Object||(t={}),!1===t.allowEmpty&&""===e)return!1;var n="(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+/]{3}=)?",r="(data:\\w+\\/[a-zA-Z\\+\\-\\.]+;base64,)";return!0===t.mimeRequired?n=r+n:!0===t.allowMime&&(n=r+"?"+n),!1===t.paddingRequired&&(n="(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}(==)?|[A-Za-z0-9+\\/]{3}=?)?"),new RegExp("^"+n+"$","gi").test(e)}e.exports&&(t=e.exports=r),t.isBase64=r}()},7824:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,s){s=s||{};var a,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(a=e,(c=Math.abs(a))>=i?o(a,c,i,"day"):c>=r?o(a,c,r,"hour"):c>=n?o(a,c,n,"minute"):c>=t?o(a,c,t,"second"):a+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8450:(e,t,n)=>{e.exports=n(2742)},8428:(e,t,n)=>{e.exports=n(6981)},5940:(e,t,n)=>{e.exports=n(5627)},6771:(e,t,n)=>{e.exports=n(3391)},3562:(e,t,n)=>{e.exports=n(7965)},5366:(e,t,n)=>{e.exports=n(7036)},3473:(e,t,n)=>{e.exports=n(112)},5579:(e,t,n)=>{e.exports=n(25)},2013:(e,t,n)=>{e.exports=n(2392)},2569:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},3207:(e,t,n)=>{var r=n(5579),i=n(2013);function o(t){return e.exports=o="function"==typeof r&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let n=!1;try{n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=n},5754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}},5222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.parse=function(e){const t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));let s=n.exec(e||""),a={},c=14;for(;c--;)a[r[c]]=s[c]||"";return-1!=i&&-1!=o&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={};let i,o=0,s=0;function a(e){let t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=a,t.decode=function(e){let t=0;for(s=0;s<e.length;s++)t=64*t+r[e.charAt(s)];return t},t.yeast=function(){const e=a(+new Date);return e!==i?(o=0,i=e):e+"."+a(o++)};s<64;s++)r[n[s]]=s},6242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},4679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const r=n(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return r.Socket}}),t.protocol=r.Socket.protocol;var i=n(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return i.Transport}});var o=n(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return o.transports}});var s=n(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var a=n(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}});var c=n(5552);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return c.nextTick}})},3481:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=n(7385),o=n(9622),s=n(5754),a=n(5222),c=r(n(1227)),u=n(5260),l=n(1373),p=(0,c.default)("engine.io-client:socket");class d extends u.Emitter{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,a.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,a.parse)(t.host).host),(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){p('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=l.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return p("options: %j",n),new i.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return p("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){p("setting transport %s",e.name),this.transport&&(p("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){p('probing transport "%s"',e);let t=this.createTransport(e),n=!1;d.priorWebsocketSuccess=!1;const r=()=>{n||(p('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(r=>{if(!n)if("pong"===r.type&&"probe"===r.data){if(p('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;d.priorWebsocketSuccess="websocket"===t.name,p('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{n||"closed"!==this.readyState&&(p("changing transport and sending upgrade packet"),u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{p('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,this.emitReserved("upgradeError",n)}})))};function i(){n||(n=!0,u(),t.close(),t=null)}const o=n=>{const r=new Error("probe error: "+n);r.transport=t.name,i(),p('probe transport "%s" failed because of error: %s',e,n),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function c(e){t&&e.name!==t.name&&(p('"%s" works - aborting "%s"',e.name,t.name),i())}const u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",s),this.off("close",a),this.off("upgrading",c)};t.once("open",r),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",c),t.open()}onOpen(){if(p("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){p("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(p('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else p('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();p("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const n=this.writeBuffer[t].data;if(n&&(e+=(0,o.byteLength)(n)),t>0&&e>this.maxPayload)return p("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return p("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),p("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){p("socket error %j",e),d.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(p('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}t.Socket=d,d.protocol=l.protocol},9870:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const i=n(1373),o=n(5260),s=n(9622),a=(0,r(n(1227)).default)("engine.io-client:transport");class c extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class u extends o.Emitter{constructor(e){super(),this.writable=!1,(0,s.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new c(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,i.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}}t.Transport=u},7385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const r=n(484),i=n(1308);t.transports={websocket:i.WS,polling:r.Polling}},484:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;const i=n(9870),o=r(n(1227)),s=n(8726),a=n(5754),c=n(1373),u=n(6666),l=n(5260),p=n(9622),d=n(6242),f=(0,o.default)("engine.io-client:polling");function h(){}const y=null!=new u.XHR({xdomain:!1}).responseType;class v extends i.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=y&&!t}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{f("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(f("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){f("pre-pause polling complete"),--e||t()}))),this.writable||(f("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){f("pre-pause writing complete"),--e||t()})))}else t()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){f("polling got data %s",e),(0,c.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{f("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(f("transport open - closing"),e()):(f("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,c.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);const r=(0,a.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new m(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){f("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.Polling=v;class m extends l.Emitter{constructor(e,t){super(),(0,p.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=(0,p.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new u.XHR(e);try{f("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{4===t.readyState&&(200===t.status||1223===t.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof t.status?t.status:0)}),0))},f("xhr data %s",this.data),t.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=m.requestsCount++,m.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=h,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete m.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(t.Request=m,m.requestsCount=0,m.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",g);else if("function"==typeof addEventListener){const e="onpagehide"in d.globalThisShim?"pagehide":"unload";addEventListener(e,g,!1)}function g(){for(let e in m.requests)m.requests.hasOwnProperty(e)&&m.requests[e].abort()}},5552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const r=n(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=r.globalThisShim.WebSocket||r.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const i=n(9870),o=n(5754),s=n(8726),a=n(9622),c=n(5552),u=r(n(1227)),l=n(1373),p=(0,u.default)("engine.io-client:websocket"),d="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class f extends i.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=d?{}:(0,a.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!d?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;(0,l.encodePacket)(n,this.supportsBinary,(e=>{const t={};!c.usingBrowserWebSocket&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate)&&("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1);try{c.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){p("websocket closed before onclose event")}r&&(0,c.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const r=(0,o.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}check(){return!!c.WebSocket}}t.WS=f},6666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const r=n(8419),i=n(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(i.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},9622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const r=n(6242);t.pick=function(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})};const i=r.globalThisShim.setTimeout,o=r.globalThisShim.clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=i.bind(r.globalThisShim),e.clearTimeoutFn=o.bind(r.globalThisShim)):(e.setTimeoutFn=r.globalThisShim.setTimeout.bind(r.globalThisShim),e.clearTimeoutFn=r.globalThisShim.clearTimeout.bind(r.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))}},3087:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const n=Object.create(null);t.PACKET_TYPES=n,n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const r=Object.create(null);t.PACKET_TYPES_REVERSE=r,Object.keys(n).forEach((e=>{r[n[e]]=e})),t.ERROR_PACKET={type:"error",data:"parser error"}},2469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<n.length;e++)r[n.charCodeAt(e)]=e;t.encode=e=>{let t,r=new Uint8Array(e),i=r.length,o="";for(t=0;t<i;t+=3)o+=n[r[t]>>2],o+=n[(3&r[t])<<4|r[t+1]>>4],o+=n[(15&r[t+1])<<2|r[t+2]>>6],o+=n[63&r[t+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=e=>{let t,n,i,o,s,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),p=new Uint8Array(l);for(t=0;t<c;t+=4)n=r[e.charCodeAt(t)],i=r[e.charCodeAt(t+1)],o=r[e.charCodeAt(t+2)],s=r[e.charCodeAt(t+3)],p[u++]=n<<2|i>>4,p[u++]=(15&i)<<4|o>>2,p[u++]=(3&o)<<6|63&s;return l}},7572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3087),i=n(2469),o="function"==typeof ArrayBuffer,s=(e,t)=>{if(o){const n=(0,i.decode)(e);return a(n,t)}return{base64:!0,data:e}},a=(e,t)=>"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e;t.default=(e,t)=>{if("string"!=typeof e)return{type:"message",data:a(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:s(e.substring(1),t)}:r.PACKET_TYPES_REVERSE[n]?e.length>1?{type:r.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:r.PACKET_TYPES_REVERSE[n]}:r.ERROR_PACKET}},3908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3087),i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),o="function"==typeof ArrayBuffer,s=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};t.default=({type:e,data:t},n,a)=>{return i&&t instanceof Blob?n?a(t):s(t,a):o&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?n?a(t):s(new Blob([t]),a):a(r.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const r=n(3908);t.encodePacket=r.default;const i=n(7572);t.decodePacket=i.default;const o=String.fromCharCode(30);t.encodePayload=(e,t)=>{const n=e.length,i=new Array(n);let s=0;e.forEach(((e,a)=>{(0,r.default)(e,!1,(e=>{i[a]=e,++s===n&&t(i.join(o))}))}))},t.decodePayload=(e,t)=>{const n=e.split(o),r=[];for(let e=0;e<n.length;e++){const o=(0,i.default)(n[e],t);if(r.push(o),"error"===o.type)break}return r},t.protocol=4},5159:(e,t)=>{"use strict";function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const i=n(3084),o=n(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const s=n(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const a=r(n(1227)).default("socket.io-client"),c={};function u(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=i.url(e,t.path||"/socket.io"),r=n.source,s=n.id,u=n.path,l=c[s]&&u in c[s].nsps;let p;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?(a("ignoring socket cache for %s",r),p=new o.Manager(r,t)):(c[s]||(a("new io instance for %s",r),c[s]=new o.Manager(r,t)),p=c[s]),n.query&&!t.query&&(t.query=n.queryKey),p.socket(n.path,t)}t.io=u,t.connect=u,t.default=u,Object.assign(u,{Manager:o.Manager,Socket:s.Socket,io:u,connect:u});var l=n(4514);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return l.protocol}}),e.exports=u},4168:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const a=n(4679),c=n(8312),u=o(n(4514)),l=n(7149),p=n(5159),d=n(5260),f=s(n(1227)).default("socket.io-client:manager");class h extends d.Emitter{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,a.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new p.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||u;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(f("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;f("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=l.on(t,"open",(function(){n.onopen(),e&&e()})),i=l.on(t,"error",(t=>{f("error"),n.cleanup(),n._readyState="closed",this.emitReserved("error",t),e?e(t):n.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;f("connect attempt will timeout after %d",e),0===e&&r();const n=this.setTimeoutFn((()=>{f("connect attempt timed out after %d",e),r(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){f("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(l.on(e,"ping",this.onping.bind(this)),l.on(e,"data",this.ondata.bind(this)),l.on(e,"error",this.onerror.bind(this)),l.on(e,"close",this.onclose.bind(this)),l.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){a.nextTick((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){f("error",e),this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new c.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return void f("socket %s is still active, skipping close",e);this._close()}_packet(e){f("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){f("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){f("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){f("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)f("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();f("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(f("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(f("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(f("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=h},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},8312:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=n(4514),o=n(7149),s=n(5260),a=r(n(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u extends s.Emitter{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[o.on(e,"open",this.onopen.bind(this)),o.on(e,"packet",this.onpacket.bind(this)),o.on(e,"error",this.onerror.bind(this)),o.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(c.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:i.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;a("emitting packet with ack id %d",e);const r=t.pop();this._registerAckCallback(e,r),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||r&&this.connected?this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n):a("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(a("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));a("event with ack id %d has timed out after %d ms",e,r),t.call(this,new Error("operation has timed out"))}),r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,i)=>{t.push(((e,t)=>n?e?i(e):r(t):r(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",n.id,n.tryCount),this._queue.shift(),t&&t(e)):(a("packet [%d] was successfully sent",n.id),this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,a("sending packet [%d] (try n°%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):a("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:i.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){a("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case i.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect();break;case i.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];a("emitting event %j",t),null!=e.id&&(a("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,a("sending ack %j",r),t.packet({type:i.PacketType.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(a("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):a("bad ack %s",e.id)}onconnect(e,t){a("socket connected with id %s",e),this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}t.Socket=u},3084:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const i=n(4679),o=r(n(1227)).default("socket.io-client:url");t.url=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),o("parse %s",e),r=i.parse(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}},4880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const r=n(665);function i(e,t){if(!e)return e;if(r.isBinary(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=i(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=i(e[r],t));return n}return e}function o(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=o(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=o(e[n],t));return e}t.deconstructPacket=function(e){const t=[],n=e.data,r=e;return r.data=i(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=o(e.data,t),e.attachments=void 0,e}},4514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const r=n(5260),i=n(4880),o=n(665),s=n(1227).default("socket.io-parser");var a;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(a=t.PacketType||(t.PacketType={})),t.Encoder=class{constructor(e){this.replacer=e}encode(e){return s("encoding packet %j",e),e.type!==a.EVENT&&e.type!==a.ACK||!o.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==a.BINARY_EVENT&&e.type!==a.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),s("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=i.deconstructPacket(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}};class c extends r.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===a.BINARY_EVENT||t.type===a.BINARY_ACK?(this.reconstructor=new u(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!o.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===a[n.type])throw new Error("unknown packet type "+n.type);if(n.type===a.BINARY_EVENT||n.type===a.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!c.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return s("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case a.CONNECT:return"object"==typeof t;case a.DISCONNECT:return void 0===t;case a.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case a.EVENT:case a.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case a.ACK:case a.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=c;class u{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},665:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const n="function"==typeof ArrayBuffer,r=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);function s(e){return n&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||o&&e instanceof File}t.isBinary=s,t.hasBinary=function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(s(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}},5260:(e,t,n)=>{"use strict";function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}n.r(t),n.d(t,{Emitter:()=>r}),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},r.prototype.emitReserved=r.prototype.emit,r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},8254:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>Ae,BreakingChangeType:()=>Ho,DEFAULT_DEPRECATION_REASON:()=>fn,DangerousChangeType:()=>Xo,DirectiveLocation:()=>N,ExecutableDefinitionsRule:()=>hr,FieldsOnCorrectTypeRule:()=>yr,FragmentsOnCompositeTypesRule:()=>vr,GRAPHQL_MAX_INT:()=>Xt,GRAPHQL_MIN_INT:()=>Wt,GraphQLBoolean:()=>nn,GraphQLDeprecatedDirective:()=>hn,GraphQLDirective:()=>ln,GraphQLEnumType:()=>Qt,GraphQLError:()=>h,GraphQLFloat:()=>en,GraphQLID:()=>rn,GraphQLIncludeDirective:()=>pn,GraphQLInputObjectType:()=>qt,GraphQLInt:()=>Zt,GraphQLInterfaceType:()=>Vt,GraphQLList:()=>bt,GraphQLNonNull:()=>Et,GraphQLObjectType:()=>Ct,GraphQLScalarType:()=>Dt,GraphQLSchema:()=>Ln,GraphQLSkipDirective:()=>dn,GraphQLSpecifiedByDirective:()=>yn,GraphQLString:()=>tn,GraphQLUnionType:()=>Ut,Kind:()=>S,KnownArgumentNamesRule:()=>mr,KnownDirectivesRule:()=>br,KnownFragmentNamesRule:()=>Er,KnownTypeNamesRule:()=>Tr,Lexer:()=>L,Location:()=>b,LoneAnonymousOperationRule:()=>_r,LoneSchemaDefinitionRule:()=>wr,NoDeprecatedCustomRule:()=>po,NoFragmentCyclesRule:()=>Nr,NoSchemaIntrospectionCustomRule:()=>fo,NoUndefinedVariablesRule:()=>Sr,NoUnusedFragmentsRule:()=>Or,NoUnusedVariablesRule:()=>kr,OperationTypeNode:()=>w,OverlappingFieldsCanBeMergedRule:()=>Dr,PossibleFragmentSpreadsRule:()=>Br,PossibleTypeExtensionsRule:()=>Qr,ProvidedRequiredArgumentsRule:()=>qr,ScalarLeafsRule:()=>Kr,SchemaMetaFieldDef:()=>An,SingleFieldSubscriptionsRule:()=>pi,Source:()=>se,Token:()=>E,TokenKind:()=>O,TypeInfo:()=>tr,TypeKind:()=>kn,TypeMetaFieldDef:()=>Dn,TypeNameMetaFieldDef:()=>Cn,UniqueArgumentDefinitionNamesRule:()=>fi,UniqueArgumentNamesRule:()=>hi,UniqueDirectiveNamesRule:()=>yi,UniqueDirectivesPerLocationRule:()=>vi,UniqueEnumValueNamesRule:()=>mi,UniqueFieldDefinitionNamesRule:()=>gi,UniqueFragmentNamesRule:()=>Ei,UniqueInputFieldNamesRule:()=>Ti,UniqueOperationNamesRule:()=>Ii,UniqueOperationTypesRule:()=>_i,UniqueTypeNamesRule:()=>wi,UniqueVariableNamesRule:()=>Ni,ValidationContext:()=>Fi,ValuesOfCorrectTypeRule:()=>Si,VariablesAreInputTypesRule:()=>ki,VariablesInAllowedPositionRule:()=>xi,__Directive:()=>In,__DirectiveLocation:()=>_n,__EnumValue:()=>On,__Field:()=>Nn,__InputValue:()=>Sn,__Schema:()=>Tn,__Type:()=>wn,__TypeKind:()=>xn,assertAbstractType:()=>gt,assertCompositeType:()=>vt,assertDirective:()=>un,assertEnumType:()=>nt,assertEnumValueName:()=>Ge,assertInputObjectType:()=>it,assertInputType:()=>lt,assertInterfaceType:()=>We,assertLeafType:()=>ht,assertListType:()=>st,assertName:()=>Qe,assertNamedType:()=>Ot,assertNonNullType:()=>ct,assertNullableType:()=>wt,assertObjectType:()=>He,assertOutputType:()=>dt,assertScalarType:()=>Ke,assertSchema:()=>jn,assertType:()=>Je,assertUnionType:()=>et,assertValidName:()=>Ko,assertValidSchema:()=>Vn,assertWrappingType:()=>It,astFromValue:()=>bn,buildASTSchema:()=>wo,buildClientSchema:()=>go,buildSchema:()=>No,coerceInputValue:()=>Wr,concatAST:()=>Qo,createSourceEventStream:()=>lo,defaultFieldResolver:()=>no,defaultTypeResolver:()=>to,doTypesOverlap:()=>Ht,execute:()=>Ui,executeSync:()=>Bi,extendSchema:()=>bo,findBreakingChanges:()=>Wo,findDangerousChanges:()=>Zo,formatError:()=>m,getArgumentValues:()=>ii,getDirectiveValues:()=>oi,getEnterLeaveForKind:()=>Re,getIntrospectionQuery:()=>ho,getLocation:()=>l,getNamedType:()=>kt,getNullableType:()=>Nt,getOperationAST:()=>yo,getOperationRootType:()=>vo,getVariableValues:()=>ri,getVisitFn:()=>$e,graphql:()=>io,graphqlSync:()=>oo,introspectionFromSchema:()=>mo,introspectionTypes:()=>Rn,isAbstractType:()=>mt,isCompositeType:()=>yt,isConstValueNode:()=>cr,isDefinitionNode:()=>ir,isDirective:()=>cn,isEnumType:()=>tt,isEqualType:()=>Kt,isExecutableDefinitionNode:()=>or,isInputObjectType:()=>rt,isInputType:()=>ut,isInterfaceType:()=>Xe,isIntrospectionType:()=>$n,isLeafType:()=>ft,isListType:()=>ot,isNamedType:()=>St,isNonNullType:()=>at,isNullableType:()=>_t,isObjectType:()=>ze,isOutputType:()=>pt,isRequiredArgument:()=>Mt,isRequiredInputField:()=>Yt,isScalarType:()=>Ye,isSchema:()=>Fn,isSelectionNode:()=>sr,isSpecifiedDirective:()=>mn,isSpecifiedScalarType:()=>sn,isType:()=>qe,isTypeDefinitionNode:()=>pr,isTypeExtensionNode:()=>fr,isTypeNode:()=>ur,isTypeSubTypeOf:()=>zt,isTypeSystemDefinitionNode:()=>lr,isTypeSystemExtensionNode:()=>dr,isUnionType:()=>Ze,isValidNameError:()=>zo,isValueNode:()=>ar,isWrappingType:()=>Tt,lexicographicSortSchema:()=>So,locatedError:()=>Mi,parse:()=>ce,parseConstValue:()=>le,parseType:()=>pe,parseValue:()=>ue,print:()=>Fe,printError:()=>v,printIntrospectionSchema:()=>Do,printLocation:()=>p,printSchema:()=>Ao,printSourceLocation:()=>d,printType:()=>Fo,resolveObjMapThunk:()=>At,resolveReadonlyArrayThunk:()=>xt,responsePathAsArray:()=>Xr,separateOperations:()=>Go,specifiedDirectives:()=>vn,specifiedRules:()=>Di,specifiedScalarTypes:()=>on,stripIgnoredCharacters:()=>Yo,subscribe:()=>uo,syntaxError:()=>g,typeFromAST:()=>er,validate:()=>ji,validateSchema:()=>Mn,valueFromAST:()=>ti,valueFromASTUntyped:()=>Be,version:()=>r,versionInfo:()=>i,visit:()=>De,visitInParallel:()=>Ce,visitWithTypeInfo:()=>rr});const r="16.6.0",i=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});function o(e,t){if(!Boolean(e))throw new Error(t)}function s(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return"object"==typeof e&&null!==e}function c(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const u=/\r\n|[\n\r]/g;function l(e,t){let n=0,r=1;for(const i of e.body.matchAll(u)){if("number"==typeof i.index||c(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function p(e){return d(e.source,l(e.source,e.start))}function d(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,c=t.column+a,u=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+f([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+f([[s-1+" |",l[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function f(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class h extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:c,path:u,originalError:p,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=y(Array.isArray(o)?o:o?[o]:void 0);const f=y(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=s?s:null==f||null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=c?c:null==f?void 0:f.map((e=>e.start)),this.locations=c&&s?c.map((e=>l(s,e))):null==f?void 0:f.map((e=>l(e.source,e.start)));const v=a(null==p?void 0:p.extensions)?null==p?void 0:p.extensions:void 0;this.extensions=null!==(i=null!=d?d:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+p(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function y(e){return void 0===e||0===e.length?void 0:e}function v(e){return e.toString()}function m(e){return e.toJSON()}function g(e,t,n){return new h(`Syntax Error: ${n}`,{source:e,positions:[t]})}class b{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class E{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const T={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},I=new Set(Object.keys(T));function _(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&I.has(t)}var w,N,S,O;function k(e){return 9===e||32===e}function x(e){return e>=48&&e<=57}function A(e){return e>=97&&e<=122||e>=65&&e<=90}function D(e){return A(e)||95===e}function C(e){return A(e)||x(e)||95===e}function R(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const s=e[t],a=$(s);a!==s.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function $(e){let t=0;for(;t<e.length&&k(e.charCodeAt(t));)++t;return t}function F(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function j(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((e=>0===e.length||k(e.charCodeAt(0)))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let p="";const d=i&&k(e.charCodeAt(0));return(l&&!d||o)&&(p+="\n"),p+=n,(l||u)&&(p+="\n"),'"""'+p+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(w||(w={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(N||(N={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(S||(S={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(O||(O={}));class L{constructor(e){const t=new E(O.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==O.EOF)do{if(e.next)e=e.next;else{const t=q(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===O.COMMENT);return e}}function P(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}function M(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function V(e,t){return U(e.charCodeAt(t))&&B(e.charCodeAt(t+1))}function U(e){return e>=55296&&e<=56319}function B(e){return e>=56320&&e<=57343}function Q(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return O.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function G(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new E(t,n,r,o,s,i)}function q(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return J(e,i);case 33:return G(e,O.BANG,i,i+1);case 36:return G(e,O.DOLLAR,i,i+1);case 38:return G(e,O.AMP,i,i+1);case 40:return G(e,O.PAREN_L,i,i+1);case 41:return G(e,O.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return G(e,O.SPREAD,i,i+3);break;case 58:return G(e,O.COLON,i,i+1);case 61:return G(e,O.EQUALS,i,i+1);case 64:return G(e,O.AT,i,i+1);case 91:return G(e,O.BRACKET_L,i,i+1);case 93:return G(e,O.BRACKET_R,i,i+1);case 123:return G(e,O.BRACE_L,i,i+1);case 124:return G(e,O.PIPE,i,i+1);case 125:return G(e,O.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?te(e,i):z(e,i)}if(x(t)||45===t)return Y(e,i,t);if(D(t))return ne(e,i);throw g(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":M(t)||V(n,i)?`Unexpected character: ${Q(e,i)}.`:`Invalid character: ${Q(e,i)}.`)}return G(e,O.EOF,r,r)}function J(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(M(e))++i;else{if(!V(n,i))break;i+=2}}return G(e,O.COMMENT,t,i,n.slice(t+1,i))}function Y(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),x(o))throw g(e.source,i,`Invalid number, unexpected digit after 0: ${Q(e,i)}.`)}else i=K(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=K(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(s=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=K(e,i,o),o=r.charCodeAt(i)),46===o||D(o))throw g(e.source,i,`Invalid number, expected digit but got: ${Q(e,i)}.`);return G(e,s?O.FLOAT:O.INT,t,i,r.slice(t,i))}function K(e,t,n){if(!x(n))throw g(e.source,t,`Invalid number, expected digit but got: ${Q(e,t)}.`);const r=e.source.body;let i=t+1;for(;x(r.charCodeAt(i));)++i;return i}function z(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),G(e,O.STRING,t,i+1,s);if(92!==r){if(10===r||13===r)break;if(M(r))++i;else{if(!V(n,i))throw g(e.source,i,`Invalid character within String: ${Q(e,i)}.`);i+=2}}else{s+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?H(e,i):X(e,i):ee(e,i);s+=t.value,i+=t.size,o=i}}throw g(e.source,i,"Unterminated string.")}function H(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!M(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Z(e),r<0)break}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function X(e,t){const n=e.source.body,r=W(n,t+2);if(M(r))return{value:String.fromCodePoint(r),size:6};if(U(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=W(n,t+8);if(B(e))return{value:String.fromCodePoint(r,e),size:12}}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function W(e,t){return Z(e.charCodeAt(t))<<12|Z(e.charCodeAt(t+1))<<8|Z(e.charCodeAt(t+2))<<4|Z(e.charCodeAt(t+3))}function Z(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw g(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function te(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){a+=n.slice(s,o),c.push(a);const r=G(e,O.BLOCK_STRING,t,o+3,R(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(M(r))++o;else{if(!V(n,o))throw g(e.source,o,`Invalid character within String: ${Q(e,o)}.`);o+=2}else a+=n.slice(s,o),c.push(a),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;else a+=n.slice(s,o),s=o+1,o+=4}throw g(e.source,o,"Unterminated string.")}function ne(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&C(n.charCodeAt(i));)++i;return G(e,O.NAME,t,i,n.slice(t,i))}function re(e){return ie(e,[])}function ie(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:ie(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(ie(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+ie(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const oe=function(e,t){return e instanceof t};class se{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||o(!1,`Body must be a string. Received: ${re(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ae(e){return oe(e,se)}function ce(e,t){return new de(e,t).parseDocument()}function ue(e,t){const n=new de(e,t);n.expectToken(O.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(O.EOF),r}function le(e,t){const n=new de(e,t);n.expectToken(O.SOF);const r=n.parseConstValueLiteral();return n.expectToken(O.EOF),r}function pe(e,t){const n=new de(e,t);n.expectToken(O.SOF);const r=n.parseTypeReference();return n.expectToken(O.EOF),r}class de{constructor(e,t={}){const n=ae(e)?e:new se(e);this._lexer=new L(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(O.NAME);return this.node(e,{kind:S.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:S.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF)})}parseDefinition(){if(this.peek(O.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===O.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw g(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(O.BRACE_L))return this.node(e,{kind:S.OPERATION_DEFINITION,operation:w.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(O.NAME)&&(n=this.parseName()),this.node(e,{kind:S.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(O.NAME);switch(e.value){case"query":return w.QUERY;case"mutation":return w.MUTATION;case"subscription":return w.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:S.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(O.DOLLAR),this.node(e,{kind:S.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:S.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R)})}parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(O.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:S.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,t,O.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(t,{kind:S.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(O.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(O.NAME)?this.node(e,{kind:S.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:S.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:S.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:S.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case O.BRACKET_L:return this.parseList(e);case O.BRACE_L:return this.parseObject(e);case O.INT:return this.advanceLexer(),this.node(t,{kind:S.INT,value:t.value});case O.FLOAT:return this.advanceLexer(),this.node(t,{kind:S.FLOAT,value:t.value});case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:S.BOOLEAN,value:!0});case"false":return this.node(t,{kind:S.BOOLEAN,value:!1});case"null":return this.node(t,{kind:S.NULL});default:return this.node(t,{kind:S.ENUM,value:t.value})}case O.DOLLAR:if(e){if(this.expectToken(O.DOLLAR),this._lexer.token.kind===O.NAME){const e=this._lexer.token.value;throw g(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:S.STRING,value:e.value,block:e.kind===O.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:S.LIST,values:this.any(O.BRACKET_L,(()=>this.parseValueLiteral(e)),O.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:S.OBJECT,fields:this.any(O.BRACE_L,(()=>this.parseObjectField(e)),O.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(t,{kind:S.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(O.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(O.AT),this.node(t,{kind:S.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(O.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(O.BRACKET_R),t=this.node(e,{kind:S.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(O.BANG)?this.node(e,{kind:S.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:S.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return this.node(e,{kind:S.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(O.COLON);const n=this.parseNamedType();return this.node(e,{kind:S.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:S.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:S.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(O.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:S.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(O.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:S.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:S.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:S.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:S.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:S.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw g(this._lexer.source,this._lexer.token.start,`${fe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:S.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===O.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:S.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:S.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:S.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:S.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:S.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:S.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:S.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:S.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(N,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new b(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw g(this._lexer.source,t.start,`Expected ${he(e)}, found ${fe(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==O.NAME||t.value!==e)throw g(this._lexer.source,t.start,`Expected "${e}", found ${fe(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===O.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return g(this._lexer.source,t.start,`Unexpected ${fe(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==O.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw g(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function fe(e){const t=e.value;return he(e.kind)+(null!=t?` "${t}"`:"")}function he(e){return P(e)?`"${e}"`:e}function ye(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map((e=>`"${e}"`));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function ve(e){return e}function me(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function ge(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function be(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Ee(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Ie(i)&&Ie(o)){let s=0;do{++n,s=10*s+i-Te,i=e.charCodeAt(n)}while(Ie(i)&&s>0);let a=0;do{++r,a=10*a+o-Te,o=t.charCodeAt(r)}while(Ie(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const Te=48;function Ie(e){return!isNaN(e)&&Te<=e&&e<=57}function _e(e,t){const n=Object.create(null),r=new we(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const r=n[e]-n[t];return 0!==r?r:Ee(e,t)}))}class we{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Ne(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Ne(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const a=this._rows;for(let e=0;e<=s;e++)a[0][e]=e;for(let e=1;e<=o;e++){const n=a[(e-1)%3],o=a[e%3];let c=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<c&&(c=u),o[t]=u}if(c>t)return}const c=a[o%3][s];return c<=t?c:void 0}}function Ne(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Se(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}const Oe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ke(e){return xe[e.charCodeAt(0)]}const xe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ae=Object.freeze({});function De(e,t,n=T){const r=new Map;for(const e of Object.values(S))r.set(e,Re(t,e));let i,s,a,c=Array.isArray(e),u=[e],l=-1,p=[],d=e;const f=[],h=[];do{l++;const e=l===u.length,g=e&&0!==p.length;if(e){if(s=0===h.length?void 0:f[f.length-1],d=a,a=h.pop(),g)if(c){d=d.slice();let e=0;for(const[t,n]of p){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of p)d[e]=t}l=i.index,u=i.keys,p=i.edits,c=i.inArray,i=i.prev}else if(a){if(s=c?l:u[l],d=a[s],null==d)continue;f.push(s)}let b;if(!Array.isArray(d)){var y,v;_(d)||o(!1,`Invalid AST Node: ${re(d)}.`);const n=e?null===(y=r.get(d.kind))||void 0===y?void 0:y.leave:null===(v=r.get(d.kind))||void 0===v?void 0:v.enter;if(b=null==n?void 0:n.call(t,d,s,a,f,h),b===Ae)break;if(!1===b){if(!e){f.pop();continue}}else if(void 0!==b&&(p.push([s,b]),!e)){if(!_(b)){f.pop();continue}d=b}}var m;void 0===b&&g&&p.push([s,d]),e?f.pop():(i={inArray:c,index:l,keys:u,edits:p,prev:i},c=Array.isArray(d),u=c?d:null!==(m=n[d.kind])&&void 0!==m?m:[],l=-1,p=[],a&&h.push(a),a=d)}while(void 0!==i);return 0!==p.length?p[p.length-1][1]:e}function Ce(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(S)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:a}=Re(e[t],r);i||(i=null!=n||null!=a),o[t]=n,s[t]=a}if(!i)continue;const a={enter(...n){const r=n[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;const a=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],n);if(!1===a)t[s]=r;else if(a===Ae)t[s]=Ae;else if(void 0!==a)return a}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],n);if(r===Ae)t[o]=Ae;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=a}return n}function Re(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function $e(e,t,n){const{enter:r,leave:i}=Re(e,t);return n?i:r}function Fe(e){return De(e,je)}const je={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Le(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Me("(",Le(e.variableDefinitions,", "),")"),n=Le([e.operation,Le([e.name,t]),Le(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Me(" = ",n)+Me(" ",Le(r," "))},SelectionSet:{leave:({selections:e})=>Pe(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Me("",e,": ")+t;let s=o+Me("(",Le(n,", "),")");return s.length>80&&(s=o+Me("(\n",Ve(Le(n,"\n")),"\n)")),Le([s,Le(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Me(" ",Le(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Le(["...",Me("on ",e),Le(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Me("(",Le(n,", "),")")} on ${t} ${Me("",Le(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?j(e):`"${e.replace(Oe,ke)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Le(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Le(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Me("(",Le(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Me("",e,"\n")+Le(["schema",Le(t," "),Pe(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Me("",e,"\n")+Le(["scalar",t,Le(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Me("",e,"\n")+Le(["type",t,Me("implements ",Le(n," & ")),Le(r," "),Pe(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Me("",e,"\n")+t+(Ue(n)?Me("(\n",Ve(Le(n,"\n")),"\n)"):Me("(",Le(n,", "),")"))+": "+r+Me(" ",Le(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Me("",e,"\n")+Le([t+": "+n,Me("= ",r),Le(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Me("",e,"\n")+Le(["interface",t,Me("implements ",Le(n," & ")),Le(r," "),Pe(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Me("",e,"\n")+Le(["union",t,Le(n," "),Me("= ",Le(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Me("",e,"\n")+Le(["enum",t,Le(n," "),Pe(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Me("",e,"\n")+Le([t,Le(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Me("",e,"\n")+Le(["input",t,Le(n," "),Pe(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Me("",e,"\n")+"directive @"+t+(Ue(n)?Me("(\n",Ve(Le(n,"\n")),"\n)"):Me("(",Le(n,", "),")"))+(r?" repeatable":"")+" on "+Le(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Le(["extend schema",Le(e," "),Pe(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Le(["extend scalar",e,Le(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Le(["extend type",e,Me("implements ",Le(t," & ")),Le(n," "),Pe(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Le(["extend interface",e,Me("implements ",Le(t," & ")),Le(n," "),Pe(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Le(["extend union",e,Le(t," "),Me("= ",Le(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Le(["extend enum",e,Le(t," "),Pe(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Le(["extend input",e,Le(t," "),Pe(n)]," ")}};function Le(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Pe(e){return Me("{\n",Ve(Le(e,"\n")),"\n}")}function Me(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ve(e){return Me(" ",e.replace(/\n/g,"\n "))}function Ue(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function Be(e,t){switch(e.kind){case S.NULL:return null;case S.INT:return parseInt(e.value,10);case S.FLOAT:return parseFloat(e.value);case S.STRING:case S.ENUM:case S.BOOLEAN:return e.value;case S.LIST:return e.values.map((e=>Be(e,t)));case S.OBJECT:return ge(e.fields,(e=>e.name.value),(e=>Be(e.value,t)));case S.VARIABLE:return null==t?void 0:t[e.name.value]}}function Qe(e){if(null!=e||o(!1,"Must provide name."),"string"==typeof e||o(!1,"Expected name to be a string."),0===e.length)throw new h("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!C(e.charCodeAt(t)))throw new h(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!D(e.charCodeAt(0)))throw new h(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Ge(e){if("true"===e||"false"===e||"null"===e)throw new h(`Enum values cannot be named: ${e}`);return Qe(e)}function qe(e){return Ye(e)||ze(e)||Xe(e)||Ze(e)||tt(e)||rt(e)||ot(e)||at(e)}function Je(e){if(!qe(e))throw new Error(`Expected ${re(e)} to be a GraphQL type.`);return e}function Ye(e){return oe(e,Dt)}function Ke(e){if(!Ye(e))throw new Error(`Expected ${re(e)} to be a GraphQL Scalar type.`);return e}function ze(e){return oe(e,Ct)}function He(e){if(!ze(e))throw new Error(`Expected ${re(e)} to be a GraphQL Object type.`);return e}function Xe(e){return oe(e,Vt)}function We(e){if(!Xe(e))throw new Error(`Expected ${re(e)} to be a GraphQL Interface type.`);return e}function Ze(e){return oe(e,Ut)}function et(e){if(!Ze(e))throw new Error(`Expected ${re(e)} to be a GraphQL Union type.`);return e}function tt(e){return oe(e,Qt)}function nt(e){if(!tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Enum type.`);return e}function rt(e){return oe(e,qt)}function it(e){if(!rt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Input Object type.`);return e}function ot(e){return oe(e,bt)}function st(e){if(!ot(e))throw new Error(`Expected ${re(e)} to be a GraphQL List type.`);return e}function at(e){return oe(e,Et)}function ct(e){if(!at(e))throw new Error(`Expected ${re(e)} to be a GraphQL Non-Null type.`);return e}function ut(e){return Ye(e)||tt(e)||rt(e)||Tt(e)&&ut(e.ofType)}function lt(e){if(!ut(e))throw new Error(`Expected ${re(e)} to be a GraphQL input type.`);return e}function pt(e){return Ye(e)||ze(e)||Xe(e)||Ze(e)||tt(e)||Tt(e)&&pt(e.ofType)}function dt(e){if(!pt(e))throw new Error(`Expected ${re(e)} to be a GraphQL output type.`);return e}function ft(e){return Ye(e)||tt(e)}function ht(e){if(!ft(e))throw new Error(`Expected ${re(e)} to be a GraphQL leaf type.`);return e}function yt(e){return ze(e)||Xe(e)||Ze(e)}function vt(e){if(!yt(e))throw new Error(`Expected ${re(e)} to be a GraphQL composite type.`);return e}function mt(e){return Xe(e)||Ze(e)}function gt(e){if(!mt(e))throw new Error(`Expected ${re(e)} to be a GraphQL abstract type.`);return e}class bt{constructor(e){qe(e)||o(!1,`Expected ${re(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Et{constructor(e){_t(e)||o(!1,`Expected ${re(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Tt(e){return ot(e)||at(e)}function It(e){if(!Tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL wrapping type.`);return e}function _t(e){return qe(e)&&!at(e)}function wt(e){if(!_t(e))throw new Error(`Expected ${re(e)} to be a GraphQL nullable type.`);return e}function Nt(e){if(e)return at(e)?e.ofType:e}function St(e){return Ye(e)||ze(e)||Xe(e)||Ze(e)||tt(e)||rt(e)}function Ot(e){if(!St(e))throw new Error(`Expected ${re(e)} to be a GraphQL named type.`);return e}function kt(e){if(e){let t=e;for(;Tt(t);)t=t.ofType;return t}}function xt(e){return"function"==typeof e?e():e}function At(e){return"function"==typeof e?e():e}class Dt{constructor(e){var t,n,r,i;const s=null!==(t=e.parseValue)&&void 0!==t?t:ve;this.name=Qe(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ve,this.parseValue=s,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>s(Be(e,t)),this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||o(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${re(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||o(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||o(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ct{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>$t(e),this._interfaces=()=>Rt(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||o(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${re(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Lt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Rt(e){var t;const n=xt(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||o(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $t(e){const t=At(e.fields);return jt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),be(t,((t,n)=>{var r;jt(t)||o(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||o(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${re(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return jt(i)||o(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Qe(n),description:t.description,type:t.type,args:Ft(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode}}))}function Ft(e){return Object.entries(e).map((([e,t])=>({name:Qe(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode})))}function jt(e){return a(e)&&!Array.isArray(e)}function Lt(e){return be(e,(e=>({description:e.description,type:e.type,args:Pt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Pt(e){return ge(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Mt(e){return at(e.type)&&void 0===e.defaultValue}class Vt{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=$t.bind(void 0,e),this._interfaces=Rt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${re(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Lt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ut{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Bt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${re(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Bt(e){const t=xt(e.types);return Array.isArray(t)||o(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Qt{constructor(e){var t,n,r;this.name=Qe(e.name),this.description=e.description,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,jt(r=e.values)||o(!1,`${n} values must be an object with value names as keys.`),Object.entries(r).map((([e,t])=>(jt(t)||o(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${re(t)}.`),{name:Ge(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode})))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=me(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h(`Enum "${this.name}" cannot represent value: ${re(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=re(e);throw new h(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Gt(this,t))}const t=this.getValue(e);if(null==t)throw new h(`Value "${e}" does not exist in "${this.name}" enum.`+Gt(this,e));return t.value}parseLiteral(e,t){if(e.kind!==S.ENUM){const t=Fe(e);throw new h(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Gt(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Fe(e);throw new h(`Value "${t}" does not exist in "${this.name}" enum.`+Gt(this,t),{nodes:e})}return n.value}toConfig(){const e=ge(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Gt(e,t){return ye("the enum value",_e(t,e.getValues().map((e=>e.name))))}class qt{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Jt.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=be(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Jt(e){const t=At(e.fields);return jt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),be(t,((t,n)=>(!("resolve"in t)||o(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Qe(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode})))}function Yt(e){return at(e.type)&&void 0===e.defaultValue}function Kt(e,t){return e===t||(at(e)&&at(t)||!(!ot(e)||!ot(t)))&&Kt(e.ofType,t.ofType)}function zt(e,t,n){return t===n||(at(n)?!!at(t)&&zt(e,t.ofType,n.ofType):at(t)?zt(e,t.ofType,n):ot(n)?!!ot(t)&&zt(e,t.ofType,n.ofType):!ot(t)&&mt(n)&&(Xe(t)||ze(t))&&e.isSubType(n,t))}function Ht(e,t,n){return t===n||(mt(t)?mt(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!mt(n)&&e.isSubType(n,t))}const Xt=2147483647,Wt=-2147483648,Zt=new Dt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=an(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new h(`Int cannot represent non-integer value: ${re(t)}`);if(n>Xt||n<Wt)throw new h("Int cannot represent non 32-bit signed integer value: "+re(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new h(`Int cannot represent non-integer value: ${re(e)}`);if(e>Xt||e<Wt)throw new h(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==S.INT)throw new h(`Int cannot represent non-integer value: ${Fe(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>Xt||t<Wt)throw new h(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),en=new Dt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=an(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new h(`Float cannot represent non numeric value: ${re(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new h(`Float cannot represent non numeric value: ${re(e)}`);return e},parseLiteral(e){if(e.kind!==S.FLOAT&&e.kind!==S.INT)throw new h(`Float cannot represent non numeric value: ${Fe(e)}`,e);return parseFloat(e.value)}}),tn=new Dt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=an(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new h(`String cannot represent value: ${re(e)}`)},parseValue(e){if("string"!=typeof e)throw new h(`String cannot represent a non string value: ${re(e)}`);return e},parseLiteral(e){if(e.kind!==S.STRING)throw new h(`String cannot represent a non string value: ${Fe(e)}`,{nodes:e});return e.value}}),nn=new Dt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=an(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new h(`Boolean cannot represent a non boolean value: ${re(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new h(`Boolean cannot represent a non boolean value: ${re(e)}`);return e},parseLiteral(e){if(e.kind!==S.BOOLEAN)throw new h(`Boolean cannot represent a non boolean value: ${Fe(e)}`,{nodes:e});return e.value}}),rn=new Dt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=an(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new h(`ID cannot represent value: ${re(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new h(`ID cannot represent value: ${re(e)}`)},parseLiteral(e){if(e.kind!==S.STRING&&e.kind!==S.INT)throw new h("ID cannot represent a non-string and non-integer value: "+Fe(e),{nodes:e});return e.value}}),on=Object.freeze([tn,Zt,en,nn,rn]);function sn(e){return on.some((({name:t})=>e.name===t))}function an(e){if(a(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!a(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function cn(e){return oe(e,ln)}function un(e){if(!cn(e))throw new Error(`Expected ${re(e)} to be a GraphQL directive.`);return e}class ln{constructor(e){var t,n;this.name=Qe(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Se(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||o(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};a(r)&&!Array.isArray(r)||o(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Ft(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Pt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const pn=new ln({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[N.FIELD,N.FRAGMENT_SPREAD,N.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Included when true."}}}),dn=new ln({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[N.FIELD,N.FRAGMENT_SPREAD,N.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Skipped when true."}}}),fn="No longer supported",hn=new ln({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[N.FIELD_DEFINITION,N.ARGUMENT_DEFINITION,N.INPUT_FIELD_DEFINITION,N.ENUM_VALUE],args:{reason:{type:tn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:fn}}}),yn=new ln({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[N.SCALAR],args:{url:{type:new Et(tn),description:"The URL that specifies the behavior of this scalar."}}}),vn=Object.freeze([pn,dn,hn,yn]);function mn(e){return vn.some((({name:t})=>t===e.name))}function gn(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function bn(e,t){if(at(t)){const n=bn(e,t.ofType);return(null==n?void 0:n.kind)===S.NULL?null:n}if(null===e)return{kind:S.NULL};if(void 0===e)return null;if(ot(t)){const n=t.ofType;if(gn(e)){const t=[];for(const r of e){const e=bn(r,n);null!=e&&t.push(e)}return{kind:S.LIST,values:t}}return bn(e,n)}if(rt(t)){if(!a(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=bn(e[r.name],r.type);t&&n.push({kind:S.OBJECT_FIELD,name:{kind:S.NAME,value:r.name},value:t})}return{kind:S.OBJECT,fields:n}}if(ft(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:S.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return En.test(e)?{kind:S.INT,value:e}:{kind:S.FLOAT,value:e}}if("string"==typeof n)return tt(t)?{kind:S.ENUM,value:n}:t===rn&&En.test(n)?{kind:S.INT,value:n}:{kind:S.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${re(n)}.`)}c(!1,"Unexpected input type: "+re(t))}const En=/^-?(?:0|[1-9][0-9]*)$/,Tn=new Ct({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Et(new bt(new Et(wn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Et(wn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:wn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:wn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Et(new bt(new Et(In))),resolve:e=>e.getDirectives()}})}),In=new Ct({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isRepeatable:{type:new Et(nn),resolve:e=>e.isRepeatable},locations:{type:new Et(new bt(new Et(_n))),resolve:e=>e.locations},args:{type:new Et(new bt(new Et(Sn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),_n=new Qt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:N.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:N.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:N.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:N.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:N.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:N.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:N.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:N.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:N.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:N.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:N.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:N.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:N.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:N.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:N.UNION,description:"Location adjacent to a union definition."},ENUM:{value:N.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:N.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:N.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:N.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),wn=new Ct({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Et(xn),resolve:e=>Ye(e)?kn.SCALAR:ze(e)?kn.OBJECT:Xe(e)?kn.INTERFACE:Ze(e)?kn.UNION:tt(e)?kn.ENUM:rt(e)?kn.INPUT_OBJECT:ot(e)?kn.LIST:at(e)?kn.NON_NULL:void c(!1,`Unexpected type: "${re(e)}".`)},name:{type:tn,resolve:e=>"name"in e?e.name:void 0},description:{type:tn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new bt(new Et(Nn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ze(e)||Xe(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new bt(new Et(wn)),resolve(e){if(ze(e)||Xe(e))return e.getInterfaces()}},possibleTypes:{type:new bt(new Et(wn)),resolve(e,t,n,{schema:r}){if(mt(e))return r.getPossibleTypes(e)}},enumValues:{type:new bt(new Et(On)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tt(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new bt(new Et(Sn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rt(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:wn,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Nn=new Ct({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},args:{type:new Et(new bt(new Et(Sn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new Et(wn),resolve:e=>e.type},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),Sn=new Ct({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},type:{type:new Et(wn),resolve:e=>e.type},defaultValue:{type:tn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=bn(n,t);return r?Fe(r):null}},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),On=new Ct({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})});var kn;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(kn||(kn={}));const xn=new Qt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:kn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:kn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:kn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:kn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:kn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:kn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:kn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:kn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),An={name:"__schema",type:new Et(Tn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Dn={name:"__type",type:wn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Et(tn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Cn={name:"__typename",type:new Et(tn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Rn=Object.freeze([Tn,In,_n,wn,Nn,Sn,On,xn]);function $n(e){return Rn.some((({name:t})=>e.name===t))}function Fn(e){return oe(e,Ln)}function jn(e){if(!Fn(e))throw new Error(`Expected ${re(e)} to be a GraphQL schema.`);return e}class Ln{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,a(e)||o(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||o(!1,`"types" must be Array if provided but got: ${re(e.types)}.`),!e.directives||Array.isArray(e.directives)||o(!1,`"directives" must be Array if provided but got: ${re(e.directives)}.`),this.description=e.description,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:vn;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),Pn(t,r);null!=this._queryType&&Pn(this._queryType,r),null!=this._mutationType&&Pn(this._mutationType,r),null!=this._subscriptionType&&Pn(this._subscriptionType,r);for(const e of this._directives)if(cn(e))for(const t of e.args)Pn(t.type,r);Pn(Tn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||o(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,Xe(e)){for(const t of e.getInterfaces())if(Xe(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(ze(e))for(const t of e.getInterfaces())if(Xe(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case w.QUERY:return this.getQueryType();case w.MUTATION:return this.getMutationType();case w.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return Ze(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Ze(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Pn(e,t){const n=kt(e);if(!t.has(n))if(t.add(n),Ze(n))for(const e of n.getTypes())Pn(e,t);else if(ze(n)||Xe(n)){for(const e of n.getInterfaces())Pn(e,t);for(const e of Object.values(n.getFields())){Pn(e.type,t);for(const n of e.args)Pn(n.type,t)}}else if(rt(n))for(const e of Object.values(n.getFields()))Pn(e.type,t);return t}function Mn(e){if(jn(e),e.__validationErrors)return e.__validationErrors;const t=new Un(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!ze(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${re(n)}.`,null!==(r=Bn(t,w.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!ze(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${re(i)}.`,null!==(o=Bn(t,w.MUTATION))&&void 0!==o?o:i.astNode);const s=t.getSubscriptionType();var a;s&&!ze(s)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${re(s)}.`,null!==(a=Bn(t,w.SUBSCRIPTION))&&void 0!==a?a:s.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(cn(n)){Qn(e,n);for(const r of n.args){var t;Qn(e,r),ut(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${re(r.type)}.`,r.astNode),Mt(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Zn(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${re(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const s=Object.values(o.getFields());for(const t of s)if(at(t.type)&&rt(t.type.ofType)){const o=t.type.ofType,s=r[o.name];if(n.push(t),void 0===s)i(o);else{const t=n.slice(s),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))St(r)?($n(r)||Qn(e,r),ze(r)||Xe(r)?(Gn(e,r),qn(e,r)):Ze(r)?Kn(e,r):tt(r)?zn(e,r):rt(r)&&(Hn(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${re(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Vn(e){const t=Mn(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class Un{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new h(e,{nodes:n}))}getErrors(){return this._errors}}function Bn(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function Qn(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Gn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var r;Qn(e,s),pt(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${re(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type);for(const n of s.args){const r=n.name;var i,o;Qn(e,n),ut(n.type)||e.reportError(`The type of ${t.name}.${s.name}(${r}:) must be Input Type but got: ${re(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),Mt(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${s.name}(${r}:) cannot be deprecated.`,[Zn(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function qn(e,t){const n=Object.create(null);for(const r of t.getInterfaces())Xe(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Xn(t,r)):(n[r.name]=!0,Yn(e,t,r),Jn(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Xn(t,r)):e.reportError(`Type ${re(t)} must only implement Interface types, it cannot implement ${re(r)}.`,Xn(t,r))}function Jn(e,t,n){const r=t.getFields();for(const c of Object.values(n.getFields())){const u=c.name,l=r[u];if(l){var i,o;zt(e.schema,l.type,c.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${re(c.type)} but ${t.name}.${u} is type ${re(l.type)}.`,[null===(i=c.astNode)||void 0===i?void 0:i.type,null===(o=l.astNode)||void 0===o?void 0:o.type]);for(const r of c.args){const i=r.name,o=l.args.find((e=>e.name===i));var s,a;o?Kt(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${re(r.type)} but ${t.name}.${u}(${i}:) is type ${re(o.type)}.`,[null===(s=r.astNode)||void 0===s?void 0:s.type,null===(a=o.astNode)||void 0===a?void 0:a.type]):e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,l.astNode])}for(const r of l.args){const i=r.name;!c.args.find((e=>e.name===i))&&Mt(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,c.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes])}}function Yn(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Xn(n,i),...Xn(t,n)])}function Kn(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Wn(t,i.name)):(r[i.name]=!0,ze(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${re(i)}.`,Wn(t,String(i))))}function zn(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Qn(e,t)}function Hn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;Qn(e,o),ut(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${re(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),Yt(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Zn(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type])}}function Xn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function Wn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function Zn(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===hn.name))}function er(e,t){switch(t.kind){case S.LIST_TYPE:{const n=er(e,t.type);return n&&new bt(n)}case S.NON_NULL_TYPE:{const n=er(e,t.type);return n&&new Et(n)}case S.NAMED_TYPE:return e.getType(t.name.value)}}class tr{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nr,t&&(ut(t)&&this._inputTypeStack.push(t),yt(t)&&this._parentTypeStack.push(t),pt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case S.SELECTION_SET:{const e=kt(this.getType());this._parentTypeStack.push(yt(e)?e:void 0);break}case S.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(pt(i)?i:void 0);break}case S.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case S.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(ze(n)?n:void 0);break}case S.INLINE_FRAGMENT:case S.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?er(t,n):kt(this.getType());this._typeStack.push(pt(r)?r:void 0);break}case S.VARIABLE_DEFINITION:{const n=er(t,e.type);this._inputTypeStack.push(ut(n)?n:void 0);break}case S.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ut(r)?r:void 0);break}case S.LIST:{const e=Nt(this.getInputType()),t=ot(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ut(t)?t:void 0);break}case S.OBJECT_FIELD:{const t=kt(this.getInputType());let n,r;rt(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(ut(n)?n:void 0);break}case S.ENUM:{const t=kt(this.getInputType());let n;tt(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case S.SELECTION_SET:this._parentTypeStack.pop();break;case S.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case S.DIRECTIVE:this._directive=null;break;case S.OPERATION_DEFINITION:case S.INLINE_FRAGMENT:case S.FRAGMENT_DEFINITION:this._typeStack.pop();break;case S.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case S.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.LIST:case S.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.ENUM:this._enumValue=null}}}function nr(e,t,n){const r=n.name.value;return r===An.name&&e.getQueryType()===t?An:r===Dn.name&&e.getQueryType()===t?Dn:r===Cn.name&&yt(t)?Cn:ze(t)||Xe(t)?t.getFields()[r]:void 0}function rr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Re(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),_(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Re(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function ir(e){return or(e)||lr(e)||dr(e)}function or(e){return e.kind===S.OPERATION_DEFINITION||e.kind===S.FRAGMENT_DEFINITION}function sr(e){return e.kind===S.FIELD||e.kind===S.FRAGMENT_SPREAD||e.kind===S.INLINE_FRAGMENT}function ar(e){return e.kind===S.VARIABLE||e.kind===S.INT||e.kind===S.FLOAT||e.kind===S.STRING||e.kind===S.BOOLEAN||e.kind===S.NULL||e.kind===S.ENUM||e.kind===S.LIST||e.kind===S.OBJECT}function cr(e){return ar(e)&&(e.kind===S.LIST?e.values.some(cr):e.kind===S.OBJECT?e.fields.some((e=>cr(e.value))):e.kind!==S.VARIABLE)}function ur(e){return e.kind===S.NAMED_TYPE||e.kind===S.LIST_TYPE||e.kind===S.NON_NULL_TYPE}function lr(e){return e.kind===S.SCHEMA_DEFINITION||pr(e)||e.kind===S.DIRECTIVE_DEFINITION}function pr(e){return e.kind===S.SCALAR_TYPE_DEFINITION||e.kind===S.OBJECT_TYPE_DEFINITION||e.kind===S.INTERFACE_TYPE_DEFINITION||e.kind===S.UNION_TYPE_DEFINITION||e.kind===S.ENUM_TYPE_DEFINITION||e.kind===S.INPUT_OBJECT_TYPE_DEFINITION}function dr(e){return e.kind===S.SCHEMA_EXTENSION||fr(e)}function fr(e){return e.kind===S.SCALAR_TYPE_EXTENSION||e.kind===S.OBJECT_TYPE_EXTENSION||e.kind===S.INTERFACE_TYPE_EXTENSION||e.kind===S.UNION_TYPE_EXTENSION||e.kind===S.ENUM_TYPE_EXTENSION||e.kind===S.INPUT_OBJECT_TYPE_EXTENSION}function hr(e){return{Document(t){for(const n of t.definitions)if(!or(n)){const t=n.kind===S.SCHEMA_DEFINITION||n.kind===S.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new h(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function yr(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=ye("to use an inline fragment on",function(e,t,n){if(!mt(t))return[];const r=new Set,i=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(const e of s.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:Xe(t)&&e.isSubType(t,n)?-1:Xe(n)&&e.isSubType(n,t)?1:Ee(t.name,n.name)})).map((e=>e.name))}(r,n,i));""===o&&(o=ye(function(e,t){return ze(e)||Xe(e)?_e(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new h(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}function vr(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=er(e.getSchema(),n);if(t&&!yt(t)){const t=Fe(n);e.reportError(new h(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=er(e.getSchema(),t.typeCondition);if(n&&!yt(n)){const n=Fe(t.typeCondition);e.reportError(new h(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function mr(e){return{...gr(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=_e(n,r.args.map((e=>e.name)));e.reportError(new h(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+ye(o),{nodes:t}))}}}}function gr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vn;for(const e of r)t[e.name]=e.args.map((e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===S.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=_e(n,i);e.reportError(new h(`Unknown argument "${n}" on directive "@${r}".`+ye(o),{nodes:t}))}}return!1}}}function br(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vn;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===S.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,r,i,o,s){const a=n.name.value,u=t[a];if(!u)return void e.reportError(new h(`Unknown directive "@${a}".`,{nodes:n}));const l=function(e){const t=e[e.length-1];switch("kind"in t||c(!1),t.kind){case S.OPERATION_DEFINITION:return function(e){switch(e){case w.QUERY:return N.QUERY;case w.MUTATION:return N.MUTATION;case w.SUBSCRIPTION:return N.SUBSCRIPTION}}(t.operation);case S.FIELD:return N.FIELD;case S.FRAGMENT_SPREAD:return N.FRAGMENT_SPREAD;case S.INLINE_FRAGMENT:return N.INLINE_FRAGMENT;case S.FRAGMENT_DEFINITION:return N.FRAGMENT_DEFINITION;case S.VARIABLE_DEFINITION:return N.VARIABLE_DEFINITION;case S.SCHEMA_DEFINITION:case S.SCHEMA_EXTENSION:return N.SCHEMA;case S.SCALAR_TYPE_DEFINITION:case S.SCALAR_TYPE_EXTENSION:return N.SCALAR;case S.OBJECT_TYPE_DEFINITION:case S.OBJECT_TYPE_EXTENSION:return N.OBJECT;case S.FIELD_DEFINITION:return N.FIELD_DEFINITION;case S.INTERFACE_TYPE_DEFINITION:case S.INTERFACE_TYPE_EXTENSION:return N.INTERFACE;case S.UNION_TYPE_DEFINITION:case S.UNION_TYPE_EXTENSION:return N.UNION;case S.ENUM_TYPE_DEFINITION:case S.ENUM_TYPE_EXTENSION:return N.ENUM;case S.ENUM_VALUE_DEFINITION:return N.ENUM_VALUE;case S.INPUT_OBJECT_TYPE_DEFINITION:case S.INPUT_OBJECT_TYPE_EXTENSION:return N.INPUT_OBJECT;case S.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||c(!1),t.kind===S.INPUT_OBJECT_TYPE_DEFINITION?N.INPUT_FIELD_DEFINITION:N.ARGUMENT_DEFINITION}default:c(!1,"Unexpected kind: "+re(t.kind))}}(s);l&&!u.includes(l)&&e.reportError(new h(`Directive "@${a}" may not be used on ${l}.`,{nodes:n}))}}}function Er(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new h(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function Tr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)pr(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,s,a,c){const u=t.name.value;if(!n[u]&&!r[u]){var l;const n=null!==(l=c[2])&&void 0!==l?l:s,r=null!=n&&"kind"in(p=n)&&(lr(p)||dr(p));if(r&&Ir.includes(u))return;const o=_e(u,r?Ir.concat(i):i);e.reportError(new h(`Unknown type "${u}".`+ye(o),{nodes:t}))}var p}}}const Ir=[...on,...Rn].map((e=>e.name));function _r(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===S.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new h("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function wr(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(t){o?e.reportError(new h("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new h("Must provide only one schema definition.",{nodes:t})),++s)}}}function Nr(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const a=e.getFragmentSpreads(o.selectionSet);if(0!==a.length){r[s]=n.length;for(const t of a){const o=t.name.value,s=r[o];if(n.push(t),void 0===s){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(s),r=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new h(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[s]=void 0}}}function Sr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new h(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function Or(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new h(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function kr(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new h(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function xr(e){switch(e.kind){case S.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:xr(e.value)}))).sort(((e,t)=>Ee(e.name.value,t.name.value))))};case S.LIST:return{...e,values:e.values.map(xr)};case S.INT:case S.FLOAT:case S.STRING:case S.BOOLEAN:case S.NULL:case S.ENUM:case S.VARIABLE:return e}var t}function Ar(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+Ar(t))).join(" and "):e}function Dr(e){const t=new Ur,n=new Map;return{SelectionSet(r){const i=function(e,t,n,r,i){const o=[],[s,a]=Pr(e,t,r,i);if(function(e,t,n,r,i){for(const[o,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let a=i+1;a<s.length;a++){const c=Fr(e,n,r,!1,o,s[i],s[a]);c&&t.push(c)}}(e,o,t,n,s),0!==a.length)for(let r=0;r<a.length;r++){Cr(e,o,t,n,!1,s,a[r]);for(let i=r+1;i<a.length;i++)Rr(e,o,t,n,!1,a[r],a[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,o]of i){const i=Ar(n);e.reportError(new h(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function Cr(e,t,n,r,i,o,s){const a=e.getFragment(s);if(!a)return;const[c,u]=Mr(e,n,a);if(o!==c){$r(e,t,n,r,i,o,c);for(const a of u)r.has(a,s,i)||(r.add(a,s,i),Cr(e,t,n,r,i,o,a))}}function Rr(e,t,n,r,i,o,s){if(o===s)return;if(r.has(o,s,i))return;r.add(o,s,i);const a=e.getFragment(o),c=e.getFragment(s);if(!a||!c)return;const[u,l]=Mr(e,n,a),[p,d]=Mr(e,n,c);$r(e,t,n,r,i,u,p);for(const s of d)Rr(e,t,n,r,i,o,s);for(const o of l)Rr(e,t,n,r,i,o,s)}function $r(e,t,n,r,i,o,s){for(const[a,c]of Object.entries(o)){const o=s[a];if(o)for(const s of c)for(const c of o){const o=Fr(e,n,r,i,a,s,c);o&&t.push(o)}}}function Fr(e,t,n,r,i,o,s){const[a,c,u]=o,[l,p,d]=s,f=r||a!==l&&ze(a)&&ze(l);if(!f){const e=c.name.value,t=p.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[c],[p]];if(jr(c)!==jr(p))return[[i,"they have differing arguments"],[c],[p]]}const h=null==u?void 0:u.type,y=null==d?void 0:d.type;if(h&&y&&Lr(h,y))return[[i,`they return conflicting types "${re(h)}" and "${re(y)}"`],[c],[p]];const v=c.selectionSet,m=p.selectionSet;if(v&&m){const r=function(e,t,n,r,i,o,s,a){const c=[],[u,l]=Pr(e,t,i,o),[p,d]=Pr(e,t,s,a);$r(e,c,t,n,r,u,p);for(const i of d)Cr(e,c,t,n,r,u,i);for(const i of l)Cr(e,c,t,n,r,p,i);for(const i of l)for(const o of d)Rr(e,c,t,n,r,i,o);return c}(e,t,n,f,kt(h),v,kt(y),m);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,i,c,p)}}function jr(e){var t;const n=null!==(t=e.arguments)&&void 0!==t?t:[];return Fe(xr({kind:S.OBJECT,fields:n.map((e=>({kind:S.OBJECT_FIELD,name:e.name,value:e.value})))}))}function Lr(e,t){return ot(e)?!ot(t)||Lr(e.ofType,t.ofType):!!ot(t)||(at(e)?!at(t)||Lr(e.ofType,t.ofType):!!at(t)||!(!ft(e)&&!ft(t))&&e!==t)}function Pr(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),s=Object.create(null);Vr(e,n,r,o,s);const a=[o,Object.keys(s)];return t.set(r,a),a}function Mr(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=er(e.getSchema(),n.typeCondition);return Pr(e,t,i,n.selectionSet)}function Vr(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case S.FIELD:{const e=o.name.value;let n;(ze(t)||Xe(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case S.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case S.INLINE_FRAGMENT:{const n=o.typeCondition,s=n?er(e.getSchema(),n):t;Vr(e,s,o.selectionSet,r,i);break}}}class Ur{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e<t?[e,t]:[t,e],s=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==s&&(!!n||n===s)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}function Br(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(yt(n)&&yt(r)&&!Ht(e.getSchema(),n,r)){const i=re(r),o=re(n);e.reportError(new h(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=er(e.getSchema(),n.typeCondition);if(yt(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!Ht(e.getSchema(),r,i)){const o=re(i),s=re(r);e.reportError(new h(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function Qr(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)pr(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],s=null==t?void 0:t.getType(i);let a;if(o?a=Gr[o.kind]:s&&(a=Ye(u=s)?S.SCALAR_TYPE_EXTENSION:ze(u)?S.OBJECT_TYPE_EXTENSION:Xe(u)?S.INTERFACE_TYPE_EXTENSION:Ze(u)?S.UNION_TYPE_EXTENSION:tt(u)?S.ENUM_TYPE_EXTENSION:rt(u)?S.INPUT_OBJECT_TYPE_EXTENSION:void c(!1,"Unexpected type: "+re(u))),a){if(a!==r.kind){const t=function(e){switch(e){case S.SCALAR_TYPE_EXTENSION:return"scalar";case S.OBJECT_TYPE_EXTENSION:return"object";case S.INTERFACE_TYPE_EXTENSION:return"interface";case S.UNION_TYPE_EXTENSION:return"union";case S.ENUM_TYPE_EXTENSION:return"enum";case S.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:c(!1,"Unexpected kind: "+re(e))}}(r.kind);e.reportError(new h(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=_e(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new h(`Cannot extend type "${i}" because it is not defined.`+ye(o),{nodes:r.name}))}var u}}const Gr={[S.SCALAR_TYPE_DEFINITION]:S.SCALAR_TYPE_EXTENSION,[S.OBJECT_TYPE_DEFINITION]:S.OBJECT_TYPE_EXTENSION,[S.INTERFACE_TYPE_DEFINITION]:S.INTERFACE_TYPE_EXTENSION,[S.UNION_TYPE_DEFINITION]:S.UNION_TYPE_EXTENSION,[S.ENUM_TYPE_DEFINITION]:S.ENUM_TYPE_EXTENSION,[S.INPUT_OBJECT_TYPE_DEFINITION]:S.INPUT_OBJECT_TYPE_EXTENSION};function qr(e){return{...Jr(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of r.args)if(!i.has(n.name)&&Mt(n)){const i=re(n.type);e.reportError(new h(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function Jr(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:vn;for(const e of i)n[e.name]=me(e.args.filter(Mt),(e=>e.name));const o=e.getDocument().definitions;for(const e of o)if(e.kind===S.DIRECTIVE_DEFINITION){var s;const t=null!==(s=e.arguments)&&void 0!==s?s:[];n[e.name.value]=me(t.filter(Yr),(e=>e.name.value))}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],s=new Set(n.map((e=>e.name.value)));for(const[n,o]of Object.entries(i))if(!s.has(n)){const i=qe(o.type)?re(o.type):Fe(o.type);e.reportError(new h(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Yr(e){return e.type.kind===S.NON_NULL_TYPE&&null==e.defaultValue}function Kr(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(ft(kt(n))){if(r){const i=t.name.value,o=re(n);e.reportError(new h(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){const r=t.name.value,i=re(n);e.reportError(new h(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function zr(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}function Hr(e,t,n){return{prev:e,key:t,typename:n}}function Xr(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Wr(e,t,n=Zr){return ei(e,t,n,void 0)}function Zr(e,t,n){let r="Invalid value "+re(t);throw e.length>0&&(r+=` at "value${zr(e)}"`),n.message=r+": "+n.message,n}function ei(e,t,n,r){if(at(t))return null!=e?ei(e,t.ofType,n,r):void n(Xr(r),e,new h(`Expected non-nullable type "${re(t)}" not to be null.`));if(null==e)return null;if(ot(t)){const i=t.ofType;return gn(e)?Array.from(e,((e,t)=>{const o=Hr(r,t,void 0);return ei(e,i,n,o)})):[ei(e,i,n,r)]}if(rt(t)){if(!a(e))return void n(Xr(r),e,new h(`Expected type "${t.name}" to be an object.`));const i={},o=t.getFields();for(const s of Object.values(o)){const o=e[s.name];if(void 0!==o)i[s.name]=ei(o,s.type,n,Hr(r,s.name,t.name));else if(void 0!==s.defaultValue)i[s.name]=s.defaultValue;else if(at(s.type)){const t=re(s.type);n(Xr(r),e,new h(`Field "${s.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!o[i]){const o=_e(i,Object.keys(t.getFields()));n(Xr(r),e,new h(`Field "${i}" is not defined by type "${t.name}".`+ye(o)))}return i}if(ft(t)){let i;try{i=t.parseValue(e)}catch(i){return void n(Xr(r),e,i instanceof h?i:new h(`Expected type "${t.name}". `+i.message,{originalError:i}))}return void 0===i&&n(Xr(r),e,new h(`Expected type "${t.name}".`)),i}c(!1,"Unexpected input type: "+re(t))}function ti(e,t,n){if(e){if(e.kind===S.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&at(t))return;return i}if(at(t)){if(e.kind===S.NULL)return;return ti(e,t.ofType,n)}if(e.kind===S.NULL)return null;if(ot(t)){const r=t.ofType;if(e.kind===S.LIST){const t=[];for(const i of e.values)if(ni(i,n)){if(at(r))return;t.push(null)}else{const e=ti(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=ti(e,r,n);if(void 0===i)return;return[i]}if(rt(t)){if(e.kind!==S.OBJECT)return;const r=Object.create(null),i=me(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||ni(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(at(e.type))return;continue}const o=ti(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if(ft(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}c(!1,"Unexpected input type: "+re(t))}}function ni(e,t){return e.kind===S.VARIABLE&&(null==t||void 0===t[e.name.value])}function ri(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i={};for(const o of t){const t=o.variable.name.value,s=er(e,o.type);if(!ut(s)){const e=Fe(o.type);r(new h(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!si(n,t)){if(o.defaultValue)i[t]=ti(o.defaultValue,s);else if(at(s)){const e=re(s);r(new h(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}const a=n[t];if(null===a&&at(s)){const e=re(s);r(new h(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}))}else i[t]=Wr(a,s,((e,n,i)=>{let s=`Variable "$${t}" got invalid value `+re(n);e.length>0&&(s+=` at "${t}${zr(e)}"`),r(new h(s+"; "+i.message,{nodes:o,originalError:i.originalError}))}))}return i}(e,t,n,(e=>{if(null!=o&&i.length>=o)throw new h("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function ii(e,t,n){var r;const i={},o=me(null!==(r=t.arguments)&&void 0!==r?r:[],(e=>e.name.value));for(const r of e.args){const e=r.name,s=r.type,a=o[e];if(!a){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(at(s))throw new h(`Argument "${e}" of required type "${re(s)}" was not provided.`,{nodes:t});continue}const c=a.value;let u=c.kind===S.NULL;if(c.kind===S.VARIABLE){const t=c.name.value;if(null==n||!si(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(at(s))throw new h(`Argument "${e}" of required type "${re(s)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:c});continue}u=null==n[t]}if(u&&at(s))throw new h(`Argument "${e}" of non-null type "${re(s)}" must not be null.`,{nodes:c});const l=ti(c,s,n);if(void 0===l)throw new h(`Argument "${e}" has invalid value ${Fe(c)}.`,{nodes:c});i[e]=l}return i}function oi(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return ii(e,i,n)}function si(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ai(e,t,n,r,i){const o=new Map;return ci(e,t,n,r,i,o,new Set),o}function ci(e,t,n,r,i,o,s){for(const c of i.selections)switch(c.kind){case S.FIELD:{if(!ui(n,c))continue;const e=(a=c).alias?a.alias.value:a.name.value,t=o.get(e);void 0!==t?t.push(c):o.set(e,[c]);break}case S.INLINE_FRAGMENT:if(!ui(n,c)||!li(e,c,r))continue;ci(e,t,n,r,c.selectionSet,o,s);break;case S.FRAGMENT_SPREAD:{const i=c.name.value;if(s.has(i)||!ui(n,c))continue;s.add(i);const a=t[i];if(!a||!li(e,a,r))continue;ci(e,t,n,r,a.selectionSet,o,s);break}}var a}function ui(e,t){const n=oi(dn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=oi(pn,t,e);return!1!==(null==r?void 0:r.if)}function li(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=er(e,r);return i===n||!!mt(i)&&e.isSubType(i,n)}function pi(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const e of s.definitions)e.kind===S.FRAGMENT_DEFINITION&&(a[e.name.value]=e);const c=ai(n,a,o,r,t.selectionSet);if(c.size>1){const t=[...c.values()].slice(1).flat();e.reportError(new h(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of c.values())t[0].name.value.startsWith("__")&&e.reportError(new h(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function di(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function fi(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=di(n,(e=>e.name.value));for(const[n,i]of r)i.length>1&&e.reportError(new h(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map((e=>e.name))}));return!1}}function hi(e){return{Field:t,Directive:t};function t(t){var n;const r=di(null!==(n=t.arguments)&&void 0!==n?n:[],(e=>e.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}}function yi(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new h(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function vi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vn;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===S.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),s=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===S.SCHEMA_DEFINITION||n.kind===S.SCHEMA_EXTENSION)r=o;else if(pr(n)||fr(n)){const e=n.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new h(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function mi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.values)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value,i=n[o];tt(i)&&i.getValue(r)?e.reportError(new h(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function gi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.fields)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value;bi(n[o],r)?e.reportError(new h(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Field "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function bi(e,t){return!!(ze(e)||Xe(e)||rt(e))&&null!=e.getFields()[t]}function Ei(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new h(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Ti(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||c(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new h(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function Ii(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new h(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function _i(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new h(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):o?e.reportError(new h(`There can be only one ${i} type in schema.`,{nodes:[o,t]})):n[i]=t}return!1}}function wi(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new h(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function Ni(e){return{OperationDefinition(t){var n;const r=di(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],(e=>e.variable.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}}function Si(e){return{ListValue(t){if(!ot(Nt(e.getParentInputType())))return Oi(e,t),!1},ObjectValue(t){const n=kt(e.getInputType());if(!rt(n))return Oi(e,t),!1;const r=me(t.fields,(e=>e.name.value));for(const i of Object.values(n.getFields()))if(!r[i.name]&&Yt(i)){const r=re(i.type);e.reportError(new h(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}},ObjectField(t){const n=kt(e.getParentInputType());if(!e.getInputType()&&rt(n)){const r=_e(t.name.value,Object.keys(n.getFields()));e.reportError(new h(`Field "${t.name.value}" is not defined by type "${n.name}".`+ye(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();at(n)&&e.reportError(new h(`Expected value of type "${re(n)}", found ${Fe(t)}.`,{nodes:t}))},EnumValue:t=>Oi(e,t),IntValue:t=>Oi(e,t),FloatValue:t=>Oi(e,t),StringValue:t=>Oi(e,t),BooleanValue:t=>Oi(e,t)}}function Oi(e,t){const n=e.getInputType();if(!n)return;const r=kt(n);if(ft(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Fe(t)}.`,{nodes:t}))}}catch(r){const i=re(n);r instanceof h?e.reportError(r):e.reportError(new h(`Expected value of type "${i}", found ${Fe(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Fe(t)}.`,{nodes:t}))}}function ki(e){return{VariableDefinition(t){const n=er(e.getSchema(),t.type);if(void 0!==n&&!ut(n)){const n=t.variable.name.value,r=Fe(t.type);e.reportError(new h(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function xi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o}of r){const r=n.name.value,s=t[r];if(s&&i){const t=e.getSchema(),a=er(t,s.type);if(a&&!Ai(t,a,s.defaultValue,i,o)){const t=re(a),o=re(i);e.reportError(new h(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,{nodes:[s,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Ai(e,t,n,r,i){if(at(r)&&!at(t)){const o=void 0!==i;return!!(null!=n&&n.kind!==S.NULL||o)&&zt(e,t,r.ofType)}return zt(e,t,r)}const Di=Object.freeze([hr,Ii,_r,pi,Tr,vr,ki,Kr,yr,Ei,Er,Or,Br,Nr,Ni,Sr,kr,br,vi,mr,hi,Si,qr,xi,Dr,Ti]),Ci=Object.freeze([wr,_i,wi,mi,gi,fi,yi,Tr,br,vi,Qr,gr,hi,Ti,Jr]);class Ri{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===S.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===S.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class $i extends Ri{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Fi extends Ri{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new tr(this._schema);De(e,rr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function ji(e,t,n=Di,r,i=new tr(e)){var s;const a=null!==(s=null==r?void 0:r.maxErrors)&&void 0!==s?s:100;t||o(!1,"Must provide document."),Vn(e);const c=Object.freeze({}),u=[],l=new Fi(e,t,i,(e=>{if(u.length>=a)throw u.push(new h("Too many validation errors, error limit reached. Validation aborted.")),c;u.push(e)})),p=Ce(n.map((e=>e(l))));try{De(t,rr(i,p))}catch(e){if(e!==c)throw e}return u}function Li(e,t,n=Ci){const r=[],i=new $i(e,t,(e=>{r.push(e)}));return De(e,Ce(n.map((e=>e(i))))),r}class Pi extends Error{constructor(e){super("Unexpected error value: "+re(e)),this.name="NonErrorThrown",this.thrownValue=e}}function Mi(e,t,n){var r;const i=(o=e)instanceof Error?o:new Pi(o);var o,s;return s=i,Array.isArray(s.path)?i:new h(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}const Vi=function(e){let t;return function(e,n,r){void 0===t&&(t=new WeakMap);let i=t.get(e);void 0===i&&(i=new WeakMap,t.set(e,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(c=n,u=r,s=function(e,t,n,r,i){const o=new Map,s=new Set;for(const a of i)a.selectionSet&&ci(e,t,n,r,a.selectionSet,o,s);return o}((a=e).schema,a.fragments,a.variableValues,c,u),o.set(r,s)),s;var a,c,u}}();function Ui(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;Gi(t,n,r);const a=qi(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=Ji(a,e,i);return s(t)?t.then((e=>Qi(e,a.errors)),(e=>(a.errors.push(e),Qi(null,a.errors)))):Qi(t,a.errors)}catch(e){return a.errors.push(e),Qi(null,a.errors)}}function Bi(e){const t=Ui(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Qi(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function Gi(e,t,n){t||o(!1,"Must provide document."),Vn(e),null==n||a(n)||o(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function qi(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:c,fieldResolver:u,typeResolver:l,subscribeFieldResolver:p}=e;let d;const f=Object.create(null);for(const e of i.definitions)switch(e.kind){case S.OPERATION_DEFINITION:if(null==c){if(void 0!==d)return[new h("Must provide operation name if query contains multiple operations.")];d=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(d=e);break;case S.FRAGMENT_DEFINITION:f[e.name.value]=e}if(!d)return null!=c?[new h(`Unknown operation named "${c}".`)]:[new h("Must provide an operation.")];const y=ri(r,null!==(n=d.variableDefinitions)&&void 0!==n?n:[],null!=a?a:{},{maxErrors:50});return y.errors?y.errors:{schema:r,fragments:f,rootValue:o,contextValue:s,operation:d,variableValues:y.coerced,fieldResolver:null!=u?u:no,typeResolver:null!=l?l:to,subscribeFieldResolver:null!=p?p:no,errors:[]}}function Ji(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new h(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=ai(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case w.QUERY:return Yi(e,r,n,o,i);case w.MUTATION:return function(e,t,n,r,i){return function(e,t,n){let r=Object.create(null);for(const n of e)r=s(r)?r.then((e=>t(e,n))):t(r,n);return r}(i.entries(),((r,[i,o])=>{const a=Hr(undefined,i,t.name),c=Ki(e,t,n,o,a);return void 0===c?r:s(c)?c.then((e=>(r[i]=e,r))):(r[i]=c,r)}))}(e,r,n,0,i);case w.SUBSCRIPTION:return Yi(e,r,n,o,i)}}function Yi(e,t,n,r,i){const o=Object.create(null);let a=!1;for(const[c,u]of i.entries()){const i=Ki(e,t,n,u,Hr(r,c,t.name));void 0!==i&&(o[c]=i,s(i)&&(a=!0))}return a?(c=o,Promise.all(Object.values(c)).then((e=>{const t=Object.create(null);for(const[n,r]of Object.keys(c).entries())t[r]=e[n];return t}))):o;var c}function Ki(e,t,n,r,i){var o;const a=ro(e.schema,t,r[0]);if(!a)return;const c=a.type,u=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,l=zi(e,a,r,t,i);try{const t=u(n,ii(a,r[0],e.variableValues),e.contextValue,l);let o;return o=s(t)?t.then((t=>Xi(e,c,r,l,i,t))):Xi(e,c,r,l,i,t),s(o)?o.then(void 0,(t=>Hi(Mi(t,r,Xr(i)),c,e))):o}catch(t){return Hi(Mi(t,r,Xr(i)),c,e)}}function zi(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Hi(e,t,n){if(at(t))throw e;return n.errors.push(e),null}function Xi(e,t,n,r,i,o){if(o instanceof Error)throw o;if(at(t)){const s=Xi(e,t.ofType,n,r,i,o);if(null===s)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}return null==o?null:ot(t)?function(e,t,n,r,i,o){if(!gn(o))throw new h(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let c=!1;const u=Array.from(o,((t,o)=>{const u=Hr(i,o,void 0);try{let i;return i=s(t)?t.then((t=>Xi(e,a,n,r,u,t))):Xi(e,a,n,r,u,t),s(i)?(c=!0,i.then(void 0,(t=>Hi(Mi(t,n,Xr(u)),a,e)))):i}catch(t){return Hi(Mi(t,n,Xr(u)),a,e)}}));return c?Promise.all(u):u}(e,t,n,r,i,o):ft(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${re(e)}.serialize(${re(t)})\` to return non-nullable value, returned: ${re(n)}`);return n}(t,o):mt(t)?function(e,t,n,r,i,o){var a;const c=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,u=e.contextValue,l=c(o,u,r,t);return s(l)?l.then((s=>Zi(e,Wi(s,e,t,n,r,o),n,r,i,o))):Zi(e,Wi(l,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):ze(t)?Zi(e,t,n,r,i,o):void c(!1,"Cannot complete value of unexpected output type: "+re(t))}function Wi(e,t,n,r,i,o){if(null==e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(ze(e))throw new h("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${re(o)}, received "${re(e)}".`);const s=t.schema.getType(e);if(null==s)throw new h(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!ze(s))throw new h(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new h(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function Zi(e,t,n,r,i,o){const a=Vi(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(s(c))return c.then((r=>{if(!r)throw eo(t,o,n);return Yi(e,t,o,i,a)}));if(!c)throw eo(t,o,n)}return Yi(e,t,o,i,a)}function eo(e,t,n){return new h(`Expected value of type "${e.name}" but got: ${re(t)}.`,{nodes:n})}const to=function(e,t,n,r){if(a(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if(s(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},no=function(e,t,n,r){if(a(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function ro(e,t,n){const r=n.name.value;return r===An.name&&e.getQueryType()===t?An:r===Dn.name&&e.getQueryType()===t?Dn:r===Cn.name?Cn:t.getFields()[r]}function io(e){return new Promise((t=>t(so(e))))}function oo(e){const t=so(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function so(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:c,typeResolver:u}=e,l=Mn(t);if(l.length>0)return{errors:l};let p;try{p=ce(n)}catch(e){return{errors:[e]}}const d=ji(t,p);return d.length>0?{errors:d}:Ui({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:c,typeResolver:u})}function ao(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}function co(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function uo(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await lo(e);if(!ao(t))return t;const n=t=>Ui({...e,rootValue:t});return co(t,n)}async function lo(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:i}=t;Gi(n,r,i);const o=qi(t);if(!("schema"in o))return{errors:o};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(null==s)throw new h("Schema is not configured to execute subscription operation.",{nodes:r});const a=ai(t,n,i,s,r.selectionSet),[c,u]=[...a.entries()][0],l=ro(t,s,u[0]);if(!l){const e=u[0].name.value;throw new h(`The subscription field "${e}" is not defined.`,{nodes:u})}const p=Hr(void 0,c,s.name),d=zi(e,l,u,s,p);try{var f;const t=ii(l,u[0],i),n=e.contextValue,r=null!==(f=l.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,s=await r(o,t,n,d);if(s instanceof Error)throw s;return s}catch(e){throw Mi(e,u,Xr(p))}}(o);if(!ao(e))throw new Error(`Subscription field must return Async Iterable. Received: ${re(e)}.`);return e}catch(e){if(e instanceof h)return{errors:[e]};throw e}}function po(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||c(!1),e.reportError(new h(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new h(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||c(!1),e.reportError(new h(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=kt(e.getParentInputType());if(rt(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new h(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=kt(e.getInputType());null!=i||c(!1),e.reportError(new h(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function fo(e){return{Field(t){const n=kt(e.getType());n&&$n(n)&&e.reportError(new h(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function ho(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n `}function yo(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===S.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function vo(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new h("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new h("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new h("Schema is not configured for subscriptions.",{nodes:t});return n}throw new h("Can only have query, mutation and subscription operations.",{nodes:t})}function mo(e,t){const n=Bi({schema:e,document:ce(ho({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t}))});return!n.errors&&n.data||c(!1),n.data}function go(e,t){a(e)&&a(e.__schema)||o(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${re(e)}.`);const n=e.__schema,r=ge(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case kn.SCALAR:return new Dt({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case kn.OBJECT:return new Ct({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>y(n)});case kn.INTERFACE:return new Vt({name:(t=e).name,description:t.description,interfaces:()=>h(t),fields:()=>y(t)});case kn.UNION:return function(e){if(!e.possibleTypes){const t=re(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Ut({name:e.name,description:e.description,types:()=>e.possibleTypes.map(d)})}(e);case kn.ENUM:return function(e){if(!e.enumValues){const t=re(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Qt({name:e.name,description:e.description,values:ge(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case kn.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=re(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new qt({name:e.name,description:e.description,fields:()=>m(e.inputFields)})}(e)}var t,n,r;const i=re(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e)));for(const e of[...on,...Rn])r[e.name]&&(r[e.name]=e);const i=n.queryType?d(n.queryType):null,s=n.mutationType?d(n.mutationType):null,c=n.subscriptionType?d(n.subscriptionType):null,u=n.directives?n.directives.map((function(e){if(!e.args){const t=re(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=re(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new ln({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:m(e.args)})})):[];return new Ln({description:n.description,query:i,mutation:s,subscription:c,types:Object.values(r),directives:u,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===kn.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new bt(l(t))}if(e.kind===kn.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=l(t);return new Et(wt(n))}return p(e)}function p(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${re(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function d(e){return He(p(e))}function f(e){return We(p(e))}function h(e){if(null===e.interfaces&&e.kind===kn.INTERFACE)return[];if(!e.interfaces){const t=re(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(f)}function y(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${re(e)}.`);return ge(e.fields,(e=>e.name),v)}function v(e){const t=l(e.type);if(!pt(t)){const e=re(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=re(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:m(e.args)}}function m(e){return ge(e,(e=>e.name),g)}function g(e){const t=l(e.type);if(!ut(t)){const e=re(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?ti(ue(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function bo(e,t,n){jn(e),null!=t&&t.kind===S.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Li(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}(t,e);const r=e.toConfig(),i=Eo(r,t,n);return r===i?e:new Ln(i)}function Eo(e,t,n){var r,i,o,s;const a=[],u=Object.create(null),l=[];let p;const d=[];for(const e of t.definitions)if(e.kind===S.SCHEMA_DEFINITION)p=e;else if(e.kind===S.SCHEMA_EXTENSION)d.push(e);else if(pr(e))a.push(e);else if(fr(e)){const t=e.name.value,n=u[t];u[t]=n?n.concat([e]):[e]}else e.kind===S.DIRECTIVE_DEFINITION&&l.push(e);if(0===Object.keys(u).length&&0===a.length&&0===l.length&&0===d.length&&null==p)return e;const f=Object.create(null);for(const t of e.types)f[t.name]=$n(h=t)||sn(h)?h:Ye(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=_o(e))&&void 0!==o?o:i}return new Dt({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):ze(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Ct({...n,interfaces:()=>[...e.getInterfaces().map(g),...x(r)],fields:()=>({...be(n.fields,b),...w(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):Xe(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Vt({...n,interfaces:()=>[...e.getInterfaces().map(g),...x(r)],fields:()=>({...be(n.fields,b),...w(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):Ze(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Ut({...n,types:()=>[...e.getTypes().map(g),...A(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):tt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[e.name])&&void 0!==t?t:[];return new Qt({...n,values:{...n.values,...k(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):rt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new qt({...n,fields:()=>({...be(n.fields,(e=>({...e,type:m(e.type)}))),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):void c(!1,"Unexpected type: "+re(h));var h;for(const e of a){var y;const t=e.name.value;f[t]=null!==(y=To[t])&&void 0!==y?y:D(e)}const v={query:e.query&&g(e.query),mutation:e.mutation&&g(e.mutation),subscription:e.subscription&&g(e.subscription),...p&&T([p]),...T(d)};return{description:null===(r=p)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...v,types:Object.values(f),directives:[...e.directives.map((function(e){const t=e.toConfig();return new ln({...t,args:be(t.args,E)})})),...l.map((function(e){var t;return new ln({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:N(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=p)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(s=null==n?void 0:n.assumeValid)&&void 0!==s&&s};function m(e){return ot(e)?new bt(m(e.ofType)):at(e)?new Et(m(e.ofType)):g(e)}function g(e){return f[e.name]}function b(e){return{...e,type:m(e.type),args:e.args&&be(e.args,E)}}function E(e){return{...e,type:m(e.type)}}function T(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=I(n.type)}return t}function I(e){var t;const n=e.name.value,r=null!==(t=To[n])&&void 0!==t?t:f[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function _(e){return e.kind===S.LIST_TYPE?new bt(_(e.type)):e.kind===S.NON_NULL_TYPE?new Et(_(e.type)):I(e)}function w(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:_(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:N(n.arguments),deprecationReason:Io(n),astNode:n}}}return t}function N(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=_(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:ti(e.defaultValue,t),deprecationReason:Io(e),astNode:e}}return n}function O(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=_(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:ti(n.defaultValue,e),deprecationReason:Io(n),astNode:n}}}return t}function k(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:Io(n),astNode:n}}}return t}function x(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(I))&&void 0!==t?t:[]}))}function A(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(I))&&void 0!==t?t:[]}))}function D(e){var t;const n=e.name.value,r=null!==(t=u[n])&&void 0!==t?t:[];switch(e.kind){case S.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new Ct({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>x(t),fields:()=>w(t),astNode:e,extensionASTNodes:r})}case S.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new Vt({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>x(t),fields:()=>w(t),astNode:e,extensionASTNodes:r})}case S.ENUM_TYPE_DEFINITION:{var s;const t=[e,...r];return new Qt({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,values:k(t),astNode:e,extensionASTNodes:r})}case S.UNION_TYPE_DEFINITION:{var a;const t=[e,...r];return new Ut({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>A(t),astNode:e,extensionASTNodes:r})}case S.SCALAR_TYPE_DEFINITION:var c;return new Dt({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:_o(e),astNode:e,extensionASTNodes:r});case S.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...r];return new qt({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>O(t),astNode:e,extensionASTNodes:r})}}}}const To=me([...on,...Rn],(e=>e.name));function Io(e){const t=oi(hn,e);return null==t?void 0:t.reason}function _o(e){const t=oi(yn,e);return null==t?void 0:t.url}function wo(e,t){null!=e&&e.kind===S.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Li(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}(e);const n=Eo({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...vn.filter((e=>n.directives.every((t=>t.name!==e.name))))];return new Ln({...n,directives:r})}function No(e,t){return wo(ce(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function So(e){const t=e.toConfig(),n=ge(ko(t.types),(e=>e.name),(function(e){if(Ye(e)||$n(e))return e;if(ze(e)){const t=e.toConfig();return new Ct({...t,interfaces:()=>u(t.interfaces),fields:()=>a(t.fields)})}if(Xe(e)){const t=e.toConfig();return new Vt({...t,interfaces:()=>u(t.interfaces),fields:()=>a(t.fields)})}if(Ze(e)){const t=e.toConfig();return new Ut({...t,types:()=>u(t.types)})}if(tt(e)){const t=e.toConfig();return new Qt({...t,values:Oo(t.values,(e=>e))})}if(rt(e)){const t=e.toConfig();return new qt({...t,fields:()=>Oo(t.fields,(e=>({...e,type:r(e.type)})))})}c(!1,"Unexpected type: "+re(e))}));return new Ln({...t,types:Object.values(n),directives:ko(t.directives).map((function(e){const t=e.toConfig();return new ln({...t,locations:xo(t.locations,(e=>e)),args:s(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return ot(e)?new bt(r(e.ofType)):at(e)?new Et(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function s(e){return Oo(e,(e=>({...e,type:r(e.type)})))}function a(e){return Oo(e,(e=>({...e,type:r(e.type),args:e.args&&s(e.args)})))}function u(e){return ko(e).map(i)}}function Oo(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Ee))n[r]=t(e[r]);return n}function ko(e){return xo(e,(e=>e.name))}function xo(e,t){return e.slice().sort(((e,n)=>Ee(t(e),t(n))))}function Ao(e){return Ro(e,(e=>!mn(e)),Co)}function Do(e){return Ro(e,mn,$n)}function Co(e){return!sn(e)&&!$n(e)}function Ro(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[$o(e),...r.map((e=>function(e){return Bo(e)+"directive @"+e.name+Mo(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>Fo(e)))].filter(Boolean).join("\n\n")}function $o(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),Bo(e)+`schema {\n${t.join("\n")}\n}`}function Fo(e){return Ye(e)?function(e){return Bo(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${Fe({kind:S.STRING,value:t.specifiedByURL})})`);var t}(e):ze(e)?function(e){return Bo(e)+`type ${e.name}`+jo(e)+Lo(e)}(e):Xe(e)?function(e){return Bo(e)+`interface ${e.name}`+jo(e)+Lo(e)}(e):Ze(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Bo(e)+"union "+e.name+n}(e):tt(e)?function(e){const t=e.getValues().map(((e,t)=>Bo(e," ",!t)+" "+e.name+Uo(e.deprecationReason)));return Bo(e)+`enum ${e.name}`+Po(t)}(e):rt(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>Bo(e," ",!t)+" "+Vo(e)));return Bo(e)+`input ${e.name}`+Po(t)}(e):void c(!1,"Unexpected type: "+re(e))}function jo(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function Lo(e){return Po(Object.values(e.getFields()).map(((e,t)=>Bo(e," ",!t)+" "+e.name+Mo(e.args," ")+": "+String(e.type)+Uo(e.deprecationReason))))}function Po(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Mo(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(Vo).join(", ")+")":"(\n"+e.map(((e,n)=>Bo(e," "+t,!n)+" "+t+Vo(e))).join("\n")+"\n"+t+")"}function Vo(e){const t=bn(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${Fe(t)}`),n+Uo(e.deprecationReason)}function Uo(e){return null==e?"":e!==fn?` @deprecated(reason: ${Fe({kind:S.STRING,value:e})})`:" @deprecated"}function Bo(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+Fe({kind:S.STRING,value:r,block:F(r)}).replace(/\n/g,"\n"+t)+"\n"}function Qo(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:S.DOCUMENT,definitions:t}}function Go(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case S.OPERATION_DEFINITION:t.push(r);break;case S.FRAGMENT_DEFINITION:n[r.name.value]=Jo(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of Jo(i.selectionSet))qo(t,n,e);r[i.name?i.name.value:""]={kind:S.DOCUMENT,definitions:e.definitions.filter((e=>e===i||e.kind===S.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return r}function qo(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)qo(e,t,n)}}function Jo(e){const t=[];return De(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function Yo(e){const t=ae(e)?e:new se(e),n=t.body,r=new L(t);let i="",o=!1;for(;r.advance().kind!==O.EOF;){const e=r.token,t=e.kind,s=!P(e.kind);o&&(s||e.kind===O.SPREAD)&&(i+=" ");const a=n.slice(e.start,e.end);t===O.BLOCK_STRING?i+=j(e.value,{minimize:!0}):i+=a,o=s}return i}function Ko(e){const t=zo(e);if(t)throw t;return e}function zo(e){if("string"==typeof e||o(!1,"Expected name to be a string."),e.startsWith("__"))return new h(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Qe(e)}catch(e){return e}}var Ho,Xo;function Wo(e,t){return es(e,t).filter((e=>e.type in Ho))}function Zo(e,t){return es(e,t).filter((e=>e.type in Xo))}function es(e,t){return[...ns(e,t),...ts(e,t)]}function ts(e,t){const n=[],r=fs(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:Ho.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=fs(e.args,t.args);for(const t of r.added)Mt(t)&&n.push({type:Ho.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:Ho.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:Ho.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:Ho.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function ns(e,t){const n=[],r=fs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:Ho.TYPE_REMOVED,description:sn(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)tt(e)&&tt(t)?n.push(...os(e,t)):Ze(e)&&Ze(t)?n.push(...is(e,t)):rt(e)&&rt(t)?n.push(...rs(e,t)):ze(e)&&ze(t)||Xe(e)&&Xe(t)?n.push(...as(e,t),...ss(e,t)):e.constructor!==t.constructor&&n.push({type:Ho.TYPE_CHANGED_KIND,description:`${e.name} changed from ${ps(e)} to ${ps(t)}.`});return n}function rs(e,t){const n=[],r=fs(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)Yt(t)?n.push({type:Ho.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:Xo.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:Ho.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)ls(t.type,i.type)||n.push({type:Ho.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function is(e,t){const n=[],r=fs(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:Xo.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:Ho.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function os(e,t){const n=[],r=fs(e.getValues(),t.getValues());for(const t of r.added)n.push({type:Xo.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:Ho.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function ss(e,t){const n=[],r=fs(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:Xo.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:Ho.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function as(e,t){const n=[],r=fs(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:Ho.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...cs(e,t,i)),us(t.type,i.type)||n.push({type:Ho.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function cs(e,t,n){const r=[],i=fs(t.args,n.args);for(const n of i.removed)r.push({type:Ho.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(ls(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:Xo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=ds(n.defaultValue,n.type),s=ds(o.defaultValue,o.type);i!==s&&r.push({type:Xo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${s}.`})}}else r.push({type:Ho.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)Mt(n)?r.push({type:Ho.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:Xo.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function us(e,t){return ot(e)?ot(t)&&us(e.ofType,t.ofType)||at(t)&&us(e,t.ofType):at(e)?at(t)&&us(e.ofType,t.ofType):St(t)&&e.name===t.name||at(t)&&us(e,t.ofType)}function ls(e,t){return ot(e)?ot(t)&&ls(e.ofType,t.ofType):at(e)?at(t)&&ls(e.ofType,t.ofType)||!at(t)&&ls(e.ofType,t):St(t)&&e.name===t.name}function ps(e){return Ye(e)?"a Scalar type":ze(e)?"an Object type":Xe(e)?"an Interface type":Ze(e)?"a Union type":tt(e)?"an Enum type":rt(e)?"an Input type":void c(!1,"Unexpected type: "+re(e))}function ds(e,t){const n=bn(e,t);return null!=n||c(!1),Fe(xr(n))}function fs(e,t){const n=[],r=[],i=[],o=me(e,(({name:e})=>e)),s=me(t,(({name:e})=>e));for(const t of e){const e=s[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Ho||(Ho={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Xo||(Xo={}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";var e=r;e.__esModule=!0,e.Chat=void 0;var t,i=(t=n(75))&&t.__esModule?t:{default:t};e.Chat=i.default})(),r})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ncloudchat=t():e.ncloudchat=t()}(self,(()=>(()=>{var e={75:(e,t,n)=>{"use strict";var r=n(2569);n(1876),n(9357),n(110),n(6059),n(9730),n(9371);var i=r(n(3207)),o=r(n(8428)),s=r(n(3473)),a=r(n(5579)),c=r(n(2013)),u=r(n(3562)),l=r(n(8450)),p=function(){return p=o.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)},d=function(e,t,n,r){return new(n||(n=s.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},f=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof a.default&&(o[c.default]=function(){return this}),o;function u(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},h=function(e,t){var n="function"==typeof a.default&&e[c.default];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},y=function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var v=n(7046),m=y(n(5652)),g=y(n(5517)),b=n(422),E=y(n(8648)),T=n(9220),I=n(7296),_=n(8254),w=function(){function e(e){void 0===e&&(e=!1);var t=this;this.socket=null,this.connected=!1,this.connectedCount=0,this.handleBase64Ids=function(e){for(var n in e)"id"===n?e[n]=t.ObjectId(e[n]):"object"===(0,i.default)(e[n])&&t.handleBase64Ids(e[n])},this.dp=new g.default}return e.prototype.clear=function(){},e.prototype.initialize=function(e,t){void 0===t&&(t="kr"),this.setProjectId(e),this.setLang(navigator.language),this.setRegion(t)},e.prototype.getDebug=function(){return m.default.get("DEBUG")},e.prototype.setDebug=function(e){return m.default.set("DEBUG",e)},e.prototype.getLang=function(){return m.default.get("LANGUAGE")},e.prototype.setLang=function(e){return m.default.set("LANGUAGE",e)},e.prototype.getRegion=function(){return m.default.get("REGION")},e.prototype.setRegion=function(e){return m.default.set("REGION",e)},e.prototype.getUser=function(){return m.default.get("USER")},e.prototype.getProjectId=function(){return m.default.get("PROJECT_ID")},e.prototype.setServerUrl=function(e){if(!/^[hHtTpP]{4}(s)?(:\/\/)[a-zA-Z0-9\.\/-:]+/.test(e))throw Error("invalied url : (ex)http://domain.com, https://domain.com");return e.length>1&&"/"===e.substring(e.length-1)&&(e=e.substring(0,e.length-1)),m.default.set("SERVER_URL",e)},e.prototype.setSocketUrl=function(e){m.default.set("SOCKET_URL",e)},e.prototype.setProjectId=function(e){return m.default.set("PROJECT_ID",e)},e.prototype.setToken=function(e){return m.default.set("TOKEN",e)},e.prototype.getToken=function(){return m.default.get("TOKEN")},e.prototype.setUser=function(e){m.default.set("USER",e)},e.prototype.ObjectId=function(e){return e?(0,E.default)(e)?window.atob(e).split(":")[1]:e:""},e.prototype.inputValidation=function(e){var t,n;if(!this.getToken())throw Error("You are not loged in.");try{for(var r=function(e){var t="function"==typeof a.default&&c.default,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}((0,u.default)(e)),i=r.next();!i.done;i=r.next()){var o=h(i.value,2),s=o[0];if(!o[1]){var l=s.replace(/([A-Z])/g," $1"),p=l.charAt(0).toUpperCase()+l.slice(1);throw Error("You need a(n) ".concat(p,"."))}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.connect=function(e,t){return void 0===t&&(t=""),d(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u=this;return f(this,(function(l){switch(l.label){case 0:return this.isConnected()?[4,this.disconnect()]:[3,2];case 1:l.sent(),l.label=2;case 2:if(n=m.default.get("SOCKET_URL")+"/cloudchat",!e.id)throw Error("UserID not found");r=e.profile,i=e.name,o=this.getLang(),s=e.customField,l.label=3;case 3:return l.trys.push([3,5,,6]),[4,(0,I.login)(e.id,i,r,t,s)];case 4:if(a=l.sent(),this.setUser({id:e.id,name:i,image:r,customField:s}),null==a)throw Error("Login Failed");return t=a.token,[3,6];case 5:throw l.sent();case 6:return m.default.set("TOKEN",t),c={transports:["websocket"],reconnection:!0,reconnectionAttempts:10,reconnectionDelay:2e3,reconnectionDelayMax:2e5,randomizationFactor:.5,query:{project_id:this.getProjectId(),user_id:e.id,lang:o,image:r,name:i,customField:s,token:t}},this.socket=(0,v.io)(n,c),this.socket.on("connect",(function(e){u.connectedCount++,u.connected=!0,(0,b.info)("Connected to ".concat(n," with id: ").concat(u.socket.id)),u.dp.dispatch("onConnected",e)})),this.socket.on("unauthorized",(function(e){})),this.socket.on("disconnect",(function(e){u.connected=!1,(0,b.info)("Disconnected to ".concat(n," with id: ").concat(u.socket.id)),u.dp.dispatch("onDisconnected",e)})),this.socket.on("message",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMessageReceived",t.channel_id,t)})),this.socket.on("event",(function(e){var t=JSON.parse(e);u.dp.dispatch("onEventReceived",t.channel_id,t)})),this.socket.on("start typing",(function(e){var t=JSON.parse(e);u.dp.dispatch("onStartTyping",t)})),this.socket.on("stop typing",(function(e){var t=JSON.parse(e);u.dp.dispatch("onStopTyping",t)})),this.socket.on("channel added",(function(e){var t=JSON.parse(e);u.dp.dispatch("onChannelAdded",t)})),this.socket.on("channel removed",(function(e){var t=JSON.parse(e);u.dp.dispatch("onChannelRemoved",t)})),this.socket.on("member joined",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberJoined",t)})),this.socket.on("member left",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberLeft",t)})),this.socket.on("member left",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberLeft",t)})),this.socket.on("member updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMemberUpdated",t)})),this.socket.on("message deleted",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMessageDeleted",t.channel_id,t)})),this.socket.on("message updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onMessageUpdated",t.channel_id,t)})),this.socket.on("subscription updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onSubscriptionUpdated",t.channel_id,t)})),this.socket.on("user banned",(function(e){var t=JSON.parse(e);u.dp.dispatch("onUserBanned",t.channel_id,t)})),this.socket.on("user deleted",(function(e){var t=JSON.parse(e);u.dp.dispatch("onUserDeleted",t.channel_id,t)})),this.socket.on("user updated",(function(e){var t=JSON.parse(e);u.dp.dispatch("onUserUpdated",t.channel_id,t)})),this.socket.on("result",(function(e){var t=JSON.parse(e);u.dp.dispatch("onResult",t)})),this.socket.on("error",(function(e){var t=JSON.parse(e);u.dp.dispatch("onErrorReceived",t)})),[2,e]}}))}))},e.prototype.updateUser=function(e){var t;return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:if(!e)throw Error("Update object is required");this.inputValidation({}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.updateMember)(null===(t=this.getUser())||void 0===t?void 0:t.id,e)];case 2:return(n=r.sent())&&this.setUser(n),n.user&&this.handleBase64Ids(n.user),[2,n.user];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.mute=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.updateSubscription)(e,null,(0,l.default)({mute:!0}))];case 2:return(t=n.sent()).subscription&&this.handleBase64Ids(t.subscription),[2,t.subscription];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.unmute=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.updateSubscription)(e,null,(0,l.default)({mute:!1}))];case 2:return(t=n.sent()).subscription&&this.handleBase64Ids(t.subscription),[2,t.subscription];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.subscribe=function(e,t){return void 0===t&&(t=null),d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.createSubscription)(e,(0,l.default)(t))];case 2:return(n=r.sent()).subscription&&this.handleBase64Ids(n),[2,n.subscription];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.unsubscribe=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.deleteSubscription)(e)];case 2:return(t=n.sent()).subscription&&this.handleBase64Ids(t),[2,t.subscription];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.translateMessage=function(e,t,n,r){return d(this,void 0,void 0,(function(){var i;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({channelId:e,sourceLanguage:t,targetLanguage:n}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,I.translate)(e,t,n,r)];case 2:return[2,o.sent().translation];case 3:if((i=o.sent())instanceof Error)throw Error(i.message);return[3,4];case 4:return[2]}}))}))},e.prototype.sendMessage=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,message:t.message}),t.type||(t.type="text"),r.label=1;case 1:return r.trys.push([1,3,,4]),n={channelId:e,message:t.message,type:t.type,translate:t.translate},[4,(0,I.message)(n)];case 2:return[2,r.sent().message];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.sendExpressMessage=function(e,t){return d(this,void 0,void 0,(function(){var n,r;return f(this,(function(i){if(!this.isConnected())throw Error("You are not connected.");if(this.inputValidation({channelId:e,message:t.message}),t.type||(t.type="text"),!(n=m.default.get("USER")))throw Error("user is null");try{return r=p({channelId:e,user:n},t),this.socket.emit("express message",r),[2,r]}catch(e){throw e}return[2]}))}))},e.prototype.sendImage=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:return this.inputValidation({channelId:e}),[4,(0,I.upload)(e,t)];case 1:if(!(n=r.sent()).status)throw Error(n.message);return[2,n]}}))}))},e.prototype.sendFile=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:return this.inputValidation({channelId:e}),[4,(0,I.upload)(e,t)];case 1:if(!(n=r.sent()).status)throw Error(n.message);return[2,n]}}))}))},e.prototype.updateMessage=function(e,t,n){return d(this,void 0,void 0,(function(){return f(this,(function(e){return[2]}))}))},e.prototype.deleteMessage=function(e,t){return d(this,void 0,void 0,(function(){return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e,messageId:t}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.deleteMessage)(e,t)];case 2:return[2,n.sent().message];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.disconnect=function(){var e;return d(this,void 0,void 0,(function(){return f(this,(function(t){return this.isConnected()?(this.socket!==_.NoUndefinedVariablesRule&&(null===(e=null==this?void 0:this.socket)||void 0===e||e.disconnect()),m.default.set("TOKEN",""),[2]):[2]}))}))},e.prototype.isConnected=function(){return!!m.default.get("TOKEN")},e.prototype.isSocketConnected=function(){return!!this.connected},e.prototype.bind=function(e,t){return d(this,void 0,void 0,(function(){return f(this,(function(n){return this.dp.off(e),this.dp.on(e,t),[2]}))}))},e.prototype.unbind=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){return this.dp.off(e),[2]}))}))},e.prototype.unbindall=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){return this.dp.offall(e),[2]}))}))},e.prototype.getFriendships=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getFriendships)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent())&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getBannedUsers=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getMemberBlocks)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getUsers=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getMembers)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent())&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.requestFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.requestFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.acceptFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.acceptFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.rejectFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.rejectFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.removeFriend=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({friendId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.removeFriend)(e)];case 2:return(t=n.sent()).friendship&&this.handleBase64Ids(t.friendship),[2,t.friendship];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.unreadCount=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:this.inputValidation({channelId:e}),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,(0,T.unreadCount)(e)];case 2:return[2,t.sent()];case 3:throw t.sent();case 4:return[2]}}))}))},e.prototype.countUnread=function(e){return d(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:this.inputValidation({channelId:e}),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,(0,T.unreadCount)(e)];case 2:return[2,t.sent()];case 3:throw t.sent();case 4:return[2]}}))}))},e.prototype.getSubscription=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,subscriptionId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,T.getSubscription)(e,t)];case 2:return(n=r.sent())&&this.handleBase64Ids(n),[2,n];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getChannel=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,T.getChannel)(e)];case 2:return(t=n.sent())&&this.handleBase64Ids(t),[2,t];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.getChannels=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getChannels)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getMessage=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,messageId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,T.getMessage)(e,t)];case 2:return(n=r.sent())?(this.handleBase64Ids(n),[2,n]):[2,n];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getMessages=function(e,t,n){return d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getMessages)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){return i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.getSubscriptions=function(e,t,n){return d(this,void 0,void 0,(function(){var r,i=this;return f(this,(function(o){switch(o.label){case 0:this.inputValidation({}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,T.getSubscriptions)((0,l.default)(e),(0,l.default)(t),(0,l.default)(n))];case 2:return(r=o.sent()).edges&&r.edges.map((function(e){i.handleBase64Ids(e)})),[2,r];case 3:throw o.sent();case 4:return[2]}}))}))},e.prototype.createChannel=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelType:e.type,channelName:e.name}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.createChannel)(e)];case 2:return(t=n.sent()).channel&&this.handleBase64Ids(t.channel),[2,t.channel];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.updateChannel=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:if(this.inputValidation({channelId:e}),!t.name)throw Error("You need at least a channel name or a type.");r.label=1;case 1:return r.trys.push([1,3,,4]),t.id=e,[4,(0,I.updateChannel)(e,t)];case 2:return(n=r.sent()).channel&&this.handleBase64Ids(n.channel),[2,n.channel];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.deleteChannel=function(e){return d(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:this.inputValidation({channelId:e}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,I.deleteChannel)(e)];case 2:return(t=n.sent()).channel&&this.handleBase64Ids(t.channel),[2,t.channel];case 3:throw n.sent();case 4:return[2]}}))}))},e.prototype.markRead=function(e,t,n){return void 0===n&&(n=null),d(this,void 0,void 0,(function(){return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,userId:t.user_id,messageId:t.message_id,sortId:t.sort_id}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.updateSubscription)(e,t,(0,l.default)(n))];case 2:return[2,r.sent().subscription];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.addUsers=function(e,t,n){return d(this,void 0,void 0,(function(){var r;return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:e,userIds:t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.addChannelMembers)(e,t,n)];case 2:return(r=i.sent()).channel&&this.handleBase64Ids(r.channel),[2,r.channel];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.removeUsers=function(e,t,n){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,userIds:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.removeChannelMembers)(e,t)];case 2:return(n=r.sent()).channel&&this.handleBase64Ids(n.channel),[2,n.channel];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.startTyping=function(e,t){return void 0===t&&(t=""),d(this,void 0,void 0,(function(){var n;return f(this,(function(r){if(!this.isConnected())throw Error("You are not connected.");this.inputValidation({channelId:e,threadId:t});try{return n={channelId:e,threadId:t},this.socket.emit("start typing",n),[2,n]}catch(e){throw e}return[2]}))}))},e.prototype.stopTyping=function(e,t){return void 0===t&&(t=""),d(this,void 0,void 0,(function(){var n;return f(this,(function(r){if(!this.isConnected())throw Error("You are not connected.");this.inputValidation({channelId:e,threadId:t});try{return n={channelId:e,threadId:t},this.socket.emit("stop typing",n),[2,n]}catch(e){throw e}return[2]}))}))},e.prototype.banUser=function(e,t,n){return void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r;return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:e,memberId:t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.createMemberBlock)(e,t,(0,l.default)(n))];case 2:return(r=i.sent()).memberBlock&&this.handleBase64Ids(r.memberBlock),[2,r.memberBlock];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.unbanUser=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,memberId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.deleteMemberBlock)(e,t)];case 2:return(n=r.sent()).memberBlock&&this.handleBase64Ids(n.memberBlock),[2,n.memberBlock];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getPin=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,pinId:t}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,T.getPin)(e,t)];case 2:return(n=r.sent())&&(n.id=this.ObjectId(n.id),n.user_id&&this.handleBase64Ids(n.user_id)),[2,n];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getPins=function(e,t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),d(this,void 0,void 0,(function(){var i,o=this;return f(this,(function(s){switch(s.label){case 0:this.inputValidation({}),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,T.getPins)(e,(0,l.default)(t),(0,l.default)(n),(0,l.default)(r))];case 2:return(i=s.sent()).edges&&i.edges.map((function(e){if(e.node.user_id)return o.handleBase64Ids(e)})),[2,i];case 3:throw s.sent();case 4:return[2]}}))}))},e.prototype.createPin=function(e,t){return d(this,void 0,void 0,(function(){var n;return f(this,(function(r){switch(r.label){case 0:this.inputValidation({channelId:e,pinned:t.pinned}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.createPin)(e,t)];case 2:return(n=r.sent()).pin&&this.handleBase64Ids(n.pin),[2,n.pin];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.updatePin=function(e,t,n){return d(this,void 0,void 0,(function(){var r;return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:t,pinned:n.pinned}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.updatePin)(e,t,n)];case 2:return(r=i.sent()).pin&&this.handleBase64Ids(r.pin),[2,r.pin];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.getServerUrl=function(){return d(this,void 0,void 0,(function(){return f(this,(function(e){return[2,m.default.get("SERVER_URL")]}))}))},e.prototype.sendIntegration=function(e,t,n,r){return d(this,void 0,void 0,(function(){return f(this,(function(i){switch(i.label){case 0:this.inputValidation({channelId:e,integrationId:t}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,I.sendIntegration)(e,t,n,(0,l.default)(r))];case 2:return[2,i.sent()];case 3:throw i.sent();case 4:return[2]}}))}))},e.prototype.setPushState=function(e,t,n){return d(this,void 0,void 0,(function(){return f(this,(function(r){switch(r.label){case 0:this.inputValidation({}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,I.setPushState)("web",e,t,n)];case 2:return[2,r.sent()];case 3:throw r.sent();case 4:return[2]}}))}))},e.prototype.getPushState=function(){return d(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:this.inputValidation({}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,(0,T.getPushState)()];case 2:return[2,e.sent()];case 3:throw e.sent();case 4:return[2]}}))}))},e.prototype.getMessageUnreadCount=function(e,t){return d(this,void 0,void 0,(function(){return f(this,(function(n){switch(n.label){case 0:this.inputValidation({}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,T.getMessageUnreadCount)(e,t)];case 2:return[2,n.sent()];case 3:throw n.sent();case 4:return[2]}}))}))},e}();t.default=w},5652:(e,t)=>{"use strict";t.__esModule=!0;var n={IS_NODE:"undefined"!=typeof process&&!!process.versions&&!!process.versions.node,REQUEST_ATTEMPT_LIMIT:5,REQUEST_BATCH_SIZE:20,REQUEST_HEADERS:{},TOKEN:"",SERVER_URL:"https://ncloudchat.apigw.ntruss.com/gpapps/v1",SOCKET_URL:"https://soc.ncloudchat.ntruss.com",VERSION:"1.0.35",PROJECT_ID:null},r={get:function(e){return n.hasOwnProperty(e)?n[e]:""},set:function(e,t){n[e]=t}};t.default=r},5517:(e,t,n)=>{"use strict";n(2850),n(2773),n(3369),n(4336),n(110),t.__esModule=!0;var r=function(){function e(){this.callbacks=[]}return e.prototype.getCallbacks=function(){return this.callbacks},e.prototype.register=function(e){this.callbacks.includes(e)||this.callbacks.push(e)},e.prototype.unregister=function(e){var t=this.callbacks.indexOf(e);t>-1&&this.callbacks.splice(t,1)},e.prototype.execute=function(e,t,n,r,i,o){this.callbacks.length>0&&this.callbacks.slice(0).forEach((function(s){t?n?r?i?o?s(e,t,n,r,i,o):s(e,t,n,r,i):s(e,t,n,r):s(e,t,n):s(e,t):s(e)}))},e}(),i=function(){function e(){this.eventProvider={}}return e.prototype.getProvider=function(){return this.eventProvider},e.prototype.dispatch=function(e,t,n,r,i,o,s){var a=this.eventProvider[e];a&&a.execute(t,n,r,i,o,s)},e.prototype.on=function(e,t){var n=this.eventProvider[e];n||(n=new r,this.eventProvider[e]=n),n.register(t)},e.prototype.off=function(e,t){var n=this.eventProvider[e];n&&(t&&n.unregister(t),delete this.eventProvider[e])},e.prototype.offall=function(e){this.eventProvider[e]&&delete this.eventProvider[e]},e}();t.default=i},9004:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=r(n(8450));t.__esModule=!0,t.fetchData=void 0;var c,u=(c=n(5652))&&c.__esModule?c:{default:c},l=n(422);t.fetchData=function(e,t,n){return void 0===e&&(e=""),r=void 0,c=void 0,d=function(){var r,i,c,p,d;return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:if(!(r="Bearer ".concat(u.default.get("TOKEN"))))throw Error("You are not authorized.");return i=u.default.get("SERVER_URL")+"/graphql",c=u.default.get("PROJECT_ID"),p=u.default.get("VERSION"),d=u.default.get("LANGUAGE"),i&&c?[4,fetch(i,{method:"POST",headers:{Authorization:r,"X-PROJECT-ID":c,"Content-Type":"application/json","Accept-Language":d,Language:d,Accept:"application/json","X-SDK-Version":p},body:(0,a.default)({query:t,variables:n})}).then((function(e){return e.json()})).then((function(t){if((0,l.debug)("Fetch Data Response: ",t),(0,l.debug)("data: ",t.data),t.errors)throw t.errors[0];if(t.code)throw t;return t.data?((0,l.debug)("JSON DATA: ",t.data[e]),""!=e?t.data[e]:t.data):((0,l.debug)("return false"),!1)}))]:[2,null];case 1:return[2,o.sent()]}}))},new((p=void 0)||(p=i.default))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof p?r:new p((function(e){e(r)}))).then(n,i)}o((d=d.apply(r,c||[])).next())}));var r,c,p,d}},7151:(e,t)=>{"use strict";t.__esModule=!0,t.removeChannelMembersQuery=t.addChannelMembersQuery=t.deleteChannelQuery=t.updateChannelQuery=t.createChannelQuery=t.getChannelsQuery=t.getChannelQuery=void 0;var n="last_message {\n message_id\n sort_id\n project_id\n channel_id\n message_type\n mentions\n mentions_everyone\n has \n sender {\n id\n name\n profile\n }\n admin {\n id\n name\n profile\n }\n content\n created_at\n }",r="id\n project_id\n name\n user_id\n user { \n id\n name\n profile\n device_type\n language\n }\n unique_id\n type\n translation\n integration_id\n members\n push\n link_url\n image_url \n customField \n integration_id \n created_at\n updated_at\n ";t.getChannelQuery="query channel ($projectId: String!, $id: String!) {\n channel (projectId: $projectId, id:$id) {\n ".concat(r,"\n ").concat(n,"\n }\n }\n"),t.getChannelsQuery="query channels (\n $projectId: String!, \n $filter: String!, \n $sort: String, \n $option:String\n ) {\n channels (\n projectId: $projectId, \n filter:$filter, \n sort:$sort, \n option:$option\n ) {\n totalCount\n edges {\n node {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n }\n"),t.createChannelQuery="mutation (\n $id: String,\n $projectId: String!, \n $name: String!, \n $type: String!,\n $uniqueId: String,\n $integrationId: String,\n $translation: Boolean,\n $push: Boolean,\n $mutes: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $members: [String]\n ) {\n createChannel(\n input: { \n id: $id,\n projectId: $projectId, \n name: $name, \n type: $type,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n mutes: $mutes,\n customField: $customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n integrationId:$integrationId,\n members: $members,\n }\n ) {\n channel {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n"),t.updateChannelQuery="mutation updateChannel (\n $projectId: String!, \n $name: String, \n $type: String,\n $uniqueId: String,\n $translation: Boolean,\n $integrationId: String,\n $push: Boolean,\n $linkUrl: String,\n $imageUrl: String,\n $customField: String,\n $id: ID!,\n $members: [String]\n ) {\n updateChannel(\n input: { \n projectId: $projectId, \n name: $name, \n type: $type,\n id: $id,\n members: $members,\n integrationId: $integrationId,\n uniqueId: $uniqueId,\n translation:$translation,\n push:$push,\n customField:$customField,\n linkUrl:$linkUrl,\n imageUrl:$imageUrl\n }\n ) {\n channel {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n"),t.deleteChannelQuery="mutation (\n $projectId: String!, \n $id: ID!\n ) {\n deleteChannel(\n input: { \n projectId: $projectId, \n id: $id,\n }\n ) {\n channel {\n ".concat(r,"\n ").concat(n,"\n }\n }\n }\n"),t.addChannelMembersQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $memberIds: [String]!\n ) {\n addChannelMembers(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n memberIds:$memberIds \n }\n ) {\n channel {\n ".concat(r,"\n }\n }\n }\n"),t.removeChannelMembersQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $memberIds: [String]!\n ) {\n removeChannelMembers(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n memberIds:$memberIds \n }\n ) {\n channel {\n ".concat(r,"\n }\n }\n }\n")},1026:(e,t)=>{"use strict";t.__esModule=!0,t.getFriendshipsQuery=t.removeFriendQuery=t.rejectFriendQuery=t.acceptFriendQuery=t.requestFriendQuery=void 0;var n="project_id\n id\n status\n user {\n id\n name\n profile\n }\n friend {\n id\n name\n profile\n }\n friend_id\n created_at\n updated_at\n requested_at\n ";t.requestFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n requestFriend(\n input: { \n projectId: $projectId, \n friendId: $friendId }\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.acceptFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n acceptFriend(\n input: { projectId: $projectId, friendId: $friendId }\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.rejectFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n rejectFriend (\n input: { projectId: $projectId, friendId: $friendId}\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.removeFriendQuery="mutation ($projectId: String!, $friendId: String!) {\n removeFriend(\n input: { projectId: $projectId, friendId: $friendId }\n ) {\n friendship {\n ".concat(n,"\n }\n }\n }\n "),t.getFriendshipsQuery="query friendships (\n $projectId: String!, \n $filter: String!, \n $sort: String, \n $option: String\n ) {\n friendships (\n projectId: $projectId, \n filter:$filter, \n sort:$sort, \n option: $option\n ) {\n totalCount\n edges {\n node {\n ".concat(n,"\n }\n }\n }\n }\n ")},834:(e,t)=>{"use strict";t.__esModule=!0,t.sendIntergrationQuery=void 0,t.sendIntergrationQuery="mutation sendIntegration (\n $projectId: String!,\n $channelId: String!, \n $integrationId: String!,\n $to: String,\n $message: String!\n ) {\n sendIntegration (\n input: { projectId: $projectId, \n channelId: $channelId, \n integrationId: $integrationId,\n to: $to,\n message:$message }\n ) {\n status\n message\n }\n }\n"},7665:(e,t)=>{"use strict";t.__esModule=!0,t.createInviteQuery=void 0,t.createInviteQuery="mutation (\n $projectId: String!, \n $channelId: String!,\n $friendIds: String!\n ) {\n createInvite(\n input: {\n projectId: $projectId, \n channelId: $channelId,\n friendIds: $friendIds\n }\n ) {\n invite {\n id\n }\n }\n }\n"},4872:(e,t)=>{"use strict";t.__esModule=!0,t.addNotificationTokenQuery=t.getMemberBlocksQuery=t.getMembersQuery=t.deleteMemberBlockQuery=t.updateMemberQuery=t.createMemberBlockQuery=t.loginQuery=t.getMeQuery=void 0;var n="id\n project_id\n member_id\n type\n status\n block_type\n reason\n messageMulti {\n lang\n value\n default\n }\n \n started_at\n ended_at\n created_at\n updated_at\n deleted_at\n ";t.getMeQuery="query memberForQuery (\n $projectId: String!\n ) {\n memberForQuery (\n projectId: $projectId\n ) { \n id\n project_id\n name\n profile\n country\n memo\n remoteip\n adid\n device\n network\n push\n version\n model\n logined_at\n created_at\n updated_at\n notifications {\n token\n device\n os\n push\n ad\n night\n }\n }\n }\n",t.loginQuery="mutation login(\n $projectId: String!\n $userId: String!\n $name: String\n $profile: String\n $token: String\n $customField: String\n ) {\n login(\n input: {\n projectId: $projectId\n userId: $userId\n name: $name\n token: $token\n profile: $profile\n customField: $customField\n }\n ) {\n token\n }\n }",t.createMemberBlockQuery="mutation createMemberBlock(\n $projectId: String!\n $memberId: String!\n $channelId: String\n $options: String\n ) {\n createMemberBlock(\n input: {\n projectId: $projectId\n memberId: $memberId\n channelId: $channelId\n options: $options\n }\n ) {\n memberBlock {\n ".concat(n,"\n }\n }\n }"),t.updateMemberQuery="mutation updateMember(\n $id: String!\n $projectId: String!\n $name: String\n $profile: String\n $remoteip: String\n $memo: String\n $adid: String\n $device: String\n $deviceType: [String]\n $network: String\n $version: String\n $model: String\n $notifications: NotificationInput\n )\n {\n updateMember(input: {id: $id, projectId: $projectId, profile: $profile, memo: $memo, name: $name, remoteip: $remoteip, adid: $adid, device: $device, deviceType: $deviceType, network: $network, version: $version, model: $model, notifications: $notifications}) {\n member {\n id\n project_id\n name\n profile\n country\n memo\n remoteip\n adid\n device\n network\n push\n version\n model\n logined_at\n created_at\n updated_at\n notifications {\n token\n device\n os\n }\n }\n }\n}\n",t.deleteMemberBlockQuery="mutation deleteMemberBlock (\n $projectId: String!\n $memberId: String!\n $channelId: String\n ) {\n deleteMemberBlock(\n input: {\n projectId: $projectId\n memberId: $memberId\n channelId: $channelId\n }\n ) {\n memberBlock {\n ".concat(n,"\n }\n }\n }\n"),t.getMembersQuery="query membersForQuery (\n $projectId: String!, \n $option: String!, \n $filter: String!, \n $sort: String \n ) {\n membersForQuery (\n projectId: $projectId, \n option:$option, \n filter:$filter, \n sort:$sort\n ) {\n totalCount\n edges {\n node {\n id\n name\n }\n }\n }\n }\n",t.getMemberBlocksQuery="query memberblocks (\n $projectId: String!, \n $filter: String!, \n $sort: String, \n $option:String\n ) {\n memberblocks(\n projectId: $projectId, \n filter:$filter, \n sort:$sort, \n option:$option\n ) {\n totalCount\n edges {\n node {\n id\n project_id\n member_id\n type\n status\n block_type\n messageMulti {\n lang\n value\n default\n }\n started_at\n ended_at\n created_at\n updated_at\n deleted_at\n }\n }\n }\n }\n",t.addNotificationTokenQuery="mutation addNotificationToken (\n $projectId: String!,\n $token: String,\n $device: String,\n $os: String,\n $ad: Boolean,\n $push: Boolean,\n $night: Boolean,\n $timezone: String,\n $channel: String,\n) {\n addNotificationToken(\n input: {\n projectId: $projectId,\n token: $token,\n device: $device,\n os: $os,\n ad: $ad,\n push: $push,\n night: $night,\n timezone: $timezone,\n channel: $channel\n }\n ) {\n member {\n id\n notifications {\n token\n device\n os\n push\n ad\n night\n timezone\n }\n }\n }\n}\n"},838:(e,t)=>{"use strict";t.__esModule=!0,t.messageUnreadCountQuery=t.deleteMessageQuery=t.messageQuery=t.unreadCountQuery=t.getMessagesQuery=t.getMessageQuery=t.translateQuery=void 0;var n="id \n message_id\n channel_id\n sort_id\n message_type\n sender {\n id\n name\n profile\n }\n admin {\n id\n name\n profile\n }\n attachment_filenames {\n name\n size\n type\n url\n }\n translate\n has\n embed_providers\n embed_type \n parent_message_id\n parent_message {\n id\n message_id\n channel_id\n sort_id\n message_type\n sender {\n id\n name\n profile\n }\n admin {\n id\n name\n profile\n }\n attachment_filenames {\n name\n size\n type\n url\n }\n translate\n has\n embed_providers\n embed_type\n isExpress\n link_hostnames\n mentions\n bytes\n mentions_everyone\n content\n sended_at\n created_at\n } \n isExpress\n link_hostnames\n mentions\n bytes\n mentions_everyone\n content\n sended_at\n created_at\n";t.translateQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $srcLang: String!, \n $text: String!, \n $targetLang:String!\n ) {\n translation(\n input: {\n projectId:$projectId, \n channelId:$channelId,\n srcLang:$srcLang,\n targetLang:$targetLang, \n text:$text \n }\n ) {\n result\n {\n status\n message\n lang\n }\n }\n }\n",t.getMessageQuery="query message (\n $projectId: String!, \n $channelId: String!, \n $id: ID!\n ) { \n message(\n projectId: $projectId, \n channelId:$channelId, \n id:$id\n ) { \n ".concat(n,"\n } \n }\n"),t.getMessagesQuery="query messages (\n $projectId: String!, \n $filter: String!, \n $option: String, \n $sort: String \n ) {\n messages(\n projectId: $projectId, \n filter: $filter, \n option:$option, \n sort:$sort\n ) {\n totalCount\n edges {\n node {\n ".concat(n,"\n }\n }\n }\n }\n"),t.unreadCountQuery="query mark (\n $projectId: String!, \n $channelId: String!\n ) { \n mark (\n projectId: $projectId, \n channelId:$channelId\n ) { \n user_id,\n message_id,\n sort_id, \n unread\n } \n }\n",t.messageQuery="mutation (\n $projectId: String!\n $channelId: String!\n $content: String!\n $parentMessageId: String\n $type: String\n $translate: Boolean\n ) {\n createChannelMessage(\n input: {\n projectId: $projectId\n channelId: $channelId\n content: $content\n parentMessageId: $parentMessageId\n type: $type\n translate: $translate\n }\n ) {\n message {\n ".concat(n,"\n }\n }\n }\n"),t.deleteMessageQuery="mutation deleteMessage (\n $projectId: String! \n $channelId: String!\n $id: ID!\n ) {\n deleteMessage(\n input: {\n projectId: $projectId\n channelId: $channelId\n id: $id\n }\n ) {\n message {\n ".concat(n,"\n }\n }\n }\n"),t.messageUnreadCountQuery="query messageUnreadCount(\n $projectId: String!\n $channelId: String!,\n $messageId: String!,\n ) {\n messageUnreadCount(\n projectId: $projectId\n channelId: $channelId\n messageId: $messageId\n ) {\n totalCount\n count\n }\n }"},2014:(e,t)=>{"use strict";t.__esModule=!0,t.updatePinQuery=t.createPinQuery=t.getPinsQuery=t.getPinQuery=void 0;var n="\n id\n project_id\n channel_id\n message_id\n pinned\n pinnedAt\n user_id {\n id\n name\n profile\n }\n expiredAt\n createdAt\n";t.getPinQuery="query pin (\n $projectId: String!,\n $channelId: String!,\n $id: String!\n ) {\n pin (\n projectId: $projectId,\n channelId: $channelId,\n id:$id\n ) {\n ".concat(n,"\n }\n }\n "),t.getPinsQuery="query pins (\n $projectId: String!,\n $channelId: String!,\n $filter: String!,\n $option: String,\n $sort: String\n ) { \n pins (\n projectId: $projectId,\n channelId: $channelId,\n filter: $filter,\n option:$option,\n sort:$sort\n ) {\n totalCount \n edges { \n node { \n ".concat(n,"\n } \n } \n } \n }"),t.createPinQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $pinned: Boolean!, \n $pinnedAt: String, \n $expiredAt: String\n ) { \n createPin(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n pinned: $pinned, \n pinnedAt: $pinnedAt, \n expiredAt: $expiredAt \n }\n ) { \n pin { \n ".concat(n,"\n } \n } \n }"),t.updatePinQuery="mutation updatePin(\n $id: ID!, \n $projectId: String!, \n $channelId: String!, \n $pinned: Boolean!, \n $pinnedAt: String, \n $expiredAt: String\n ) { \n updatePin(\n input: {\n id: $id, \n projectId: $projectId, \n channelId: $channelId, \n pinned: $pinned, \n pinnedAt: $pinnedAt, \n expiredAt: $expiredAt \n }) { \n pin { \n ".concat(n,"\n } \n } \n }")},3136:(e,t)=>{"use strict";t.__esModule=!0,t.getSubscriptionsQuery=t.getSubscriptionQuery=t.updateSubscriptionQuery=t.deleteSubscriptionQuery=t.createSubscriptionQuery=void 0;var n="id\n channel_id\n user_id\n user {\n id\n name\n profile\n customField\n }\n language\n push\n mute\n online\n channel {\n name\n type\n image_url\n push\n disabled\n }\n mark {\n user_id\n message_id\n sort_id\n unread\n }\n uniquekey\n created_at\n updated_at\n";t.createSubscriptionQuery="mutation (\n $projectId: String!, \n $channelId: String!,\n $option: String,\n ) {\n createSubscription (\n input: {\n projectId: $projectId, \n channelId: $channelId,\n option: $option\n }\n ) {\n subscription {\n ".concat(n,"\n }\n }\n }\n"),t.deleteSubscriptionQuery="mutation (\n $projectId: String!, \n $channelId: String!\n ) {\n deleteSubscription (\n input: {\n projectId: $projectId, \n channelId: $channelId\n }\n ) {\n subscription {\n ".concat(n,"\n }\n }\n }\n"),t.updateSubscriptionQuery="mutation (\n $projectId: String!, \n $channelId: String!, \n $mark: MarkInput, \n $option: String!\n ) {\n updateSubscription(\n input: {\n projectId: $projectId, \n channelId: $channelId, \n mark: $mark, \n option: $option\n }\n ) {\n subscription {\n ".concat(n,"\n }\n }\n }\n"),t.getSubscriptionQuery="query subscription (\n $projectId: String!,\n $channelId: String!, \n $id: String!\n ) {\n subscription (\n projectId: $projectId, \n channelId: $channelId, \n id:$id\n ) {\n ".concat(n,"\n }\n }\n"),t.getSubscriptionsQuery="query subscriptions (\n $projectId: String!, \n $option: String!, \n $filter: String!, \n $sort: String \n ) {\n subscriptions (\n projectId: $projectId, \n option:$option, \n filter:$filter, \n sort:$sort\n ) {\n totalCount\n edges {\n node {\n ".concat(n,"\n }\n }\n }\n }\n")},422:(e,t,n)=>{"use strict";var r=n(2569)(n(8450));n(1031);t.__esModule=!0,t.warn=t.info=t.error=t.debug=void 0;var i,o=(i=n(5652))&&i.__esModule?i:{default:i},s=function(e,t){var n=t.level,i=t.metadata;if(1==o.default.get("DEBUG")){var s=(new Date).toISOString(),a=i?(0,r.default)(i):"",c="[".concat(s,"] [").concat(n.toUpperCase(),"]: ").concat(e," ").concat(a);switch(n){case"debug":case"info":case"warn":console.log(c);break;case"error":console.error(c);break;default:console.log("Unknown log level: ".concat(n))}}};t.debug=function(e,t){return void 0===t&&(t=null),s(e,{level:"debug",metadata:t})},t.info=function(e,t){return void 0===t&&(t=null),s(e,{level:"info",metadata:t})},t.warn=function(e,t){return void 0===t&&(t=null),s(e,{level:"warn",metadata:t})},t.error=function(e,t){return void 0===t&&(t=null),s(e,{level:"error",metadata:t})}},5702:(e,t,n)=>{"use strict";var r=n(2569);n(6059);var i=r(n(8428)),o=r(n(3473)),s=r(n(5579)),a=r(n(2013)),c=function(){return c=i.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},u=function(e,t,n,r){return new(n||(n=o.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof s.default&&(o[a.default]=function(){return this}),o;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.removeChannelMembers=t.addChannelMembers=t.deleteChannel=t.updateChannel=t.createChannel=void 0;var p,d=(p=n(5652))&&p.__esModule?p:{default:p},f=n(7151),h=n(9004);t.createChannel=function(e){return u(void 0,void 0,void 0,(function(){return l(this,(function(t){return e.members||(e.members=[]),[2,(0,h.fetchData)("createChannel",f.createChannelQuery,{projectId:d.default.get("PROJECT_ID"),name:e.name,type:e.type,uniqueId:e.uniqueId,translation:e.translation,push:e.push,mutes:e.mutes,customField:e.customField,linkUrl:e.linkUrl,imageUrl:e.imageUrl,integrationId:e.integrationId,disabled:e.disabled,members:e.members})]}))}))},t.updateChannel=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return t.members||(t.members=[]),[4,(0,h.fetchData)("updateChannel",f.updateChannelQuery,c({projectId:d.default.get("PROJECT_ID")},t))];case 1:return[2,e.sent()]}}))}))},t.deleteChannel=function(e){return u(void 0,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return[4,(0,h.fetchData)("deleteChannel",f.deleteChannelQuery,{projectId:d.default.get("PROJECT_ID"),id:e})];case 1:return[2,t.sent()]}}))}))},t.addChannelMembers=function(e,t,n){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,h.fetchData)("addChannelMembers",f.addChannelMembersQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberIds:t})];case 1:return[2,n.sent()]}}))}))},t.removeChannelMembers=function(e,t,n){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,h.fetchData)("removeChannelMembers",f.removeChannelMembersQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberIds:t})];case 1:return[2,n.sent()]}}))}))}},1299:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.removeFriend=t.rejectFriend=t.acceptFriend=t.requestFriend=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(1026),d=n(9004);t.requestFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("requestFriend",p.requestFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))},t.acceptFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("acceptFriend",p.acceptFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))},t.rejectFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("rejectFriend",p.rejectFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))},t.removeFriend=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("removeFriend",p.removeFriendQuery,{projectId:l.default.get("PROJECT_ID"),friendId:e})];case 1:return[2,t.sent()]}}))}))}},7296:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(5940)),o=r(n(5366)),s=r(n(6771)),a=i.default?function(e,t,n,r){void 0===r&&(r=n);var i=(0,o.default)(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),(0,s.default)(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},c=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};t.__esModule=!0,c(n(2129),t),c(n(5702),t),c(n(1048),t),c(n(1299),t),c(n(2006),t),c(n(842),t),c(n(278),t),c(n(1258),t)},1258:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.sendIntegration=void 0;var a,c=(a=n(5652))&&a.__esModule?a:{default:a},u=n(834),l=n(9004);t.sendIntegration=function(e,t,n,r){return a=void 0,p=void 0,f=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(i){switch(i.label){case 0:return[4,(0,l.fetchData)("sendIntegration",u.sendIntergrationQuery,{projectId:c.default.get("PROJECT_ID"),channelId:e,to:n,integrationId:t,message:r})];case 1:return[2,i.sent()]}}))},new((d=void 0)||(d=i.default))((function(e,t){function n(e){try{i(f.next(e))}catch(e){t(e)}}function r(e){try{i(f.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof d?i:new d((function(e){e(i)}))).then(n,r)}i((f=f.apply(a,p||[])).next())}));var a,p,d,f}},2006:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.createInvite=void 0;var a,c=(a=n(5652))&&a.__esModule?a:{default:a},u=n(7665),l=n(9004);t.createInvite=function(e,t){return n=void 0,r=void 0,p=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){switch(n.label){case 0:return[4,(0,l.fetchData)("createFriend",u.createInviteQuery,{projectId:c.default.get("PROJECT_ID"),channelId:e,friendIds:t})];case 1:return[2,n.sent()]}}))},new((a=void 0)||(a=i.default))((function(e,t){function i(e){try{s(p.next(e))}catch(e){t(e)}}function o(e){try{s(p.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(i,o)}s((p=p.apply(n,r||[])).next())}));var n,r,a,p}},2129:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(8428)),o=r(n(3473)),s=r(n(5579)),a=r(n(2013)),c=function(){return c=i.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},u=function(e,t,n,r){return new(n||(n=o.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof s.default&&(o[a.default]=function(){return this}),o;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.setPushState=t.updateMember=t.deleteMemberBlock=t.createMemberBlock=t.login=void 0;var p,d=(p=n(5652))&&p.__esModule?p:{default:p},f=n(9004),h=n(4872);t.login=function(e,t,n,r,i){return void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=""),u(void 0,void 0,void 0,(function(){return l(this,(function(o){switch(o.label){case 0:return d.default.set("TOKEN",r),[4,(0,f.fetchData)("login",h.loginQuery,{projectId:d.default.get("PROJECT_ID"),userId:e,name:t,profile:n,token:r,customField:i})];case 1:return[2,o.sent()]}}))}))},t.createMemberBlock=function(e,t,n){return void 0===n&&(n=""),u(void 0,void 0,void 0,(function(){return l(this,(function(r){switch(r.label){case 0:return[4,(0,f.fetchData)("createMemberBlock",h.createMemberBlockQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberId:t,options:n})];case 1:return[2,r.sent()]}}))}))},t.deleteMemberBlock=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,f.fetchData)("deleteMemberBlock",h.deleteMemberBlockQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,memberId:t})];case 1:return[2,n.sent()]}}))}))},t.updateMember=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,f.fetchData)("updateMember",h.updateMemberQuery,c(c({},t),{projectId:d.default.get("PROJECT_ID"),id:e}))];case 1:return[2,n.sent()]}}))}))},t.setPushState=function(e,t,n,r){return u(void 0,void 0,void 0,(function(){return l(this,(function(i){switch(i.label){case 0:return[4,(0,f.fetchData)("addNotificationToken",h.addNotificationTokenQuery,{projectId:d.default.get("PROJECT_ID"),device:e,ad:n,push:t,night:r})];case 1:return[2,i.sent()]}}))}))}},1048:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(8428)),o=r(n(3473)),s=r(n(5579)),a=r(n(2013)),c=function(){return c=i.default||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},u=function(e,t,n,r){return new(n||(n=o.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof s.default&&(o[a.default]=function(){return this}),o;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.deleteMessage=t.message=t.upload=t.translate=void 0;var p,d=(p=n(5652))&&p.__esModule?p:{default:p},f=n(9004),h=n(838);t.translate=function(e,t,n,r){return u(void 0,void 0,void 0,(function(){return l(this,(function(i){switch(i.label){case 0:return[4,(0,f.fetchData)("",h.translateQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,srcLang:t,targetLang:n,text:r})];case 1:return[2,i.sent()]}}))}))},t.upload=function(e,t){return u(void 0,void 0,void 0,(function(){var n,r,i,o;return l(this,(function(s){switch(s.label){case 0:return(n=d.default.get("TOKEN"))?(r=d.default.get("LANGUAGE"),i=d.default.get("SERVER_URL")+"/upload/"+e,(o=new FormData).append("channelId",e),o.append("upload","1"),o.append("file",t),[4,fetch(i,{method:"POST",headers:{Authorization:"Bearer "+n,Language:r,"X-PROJECT-ID":d.default.get("PROJECT_ID"),projectId:d.default.get("PROJECT_ID")},body:o}).then((function(e){return e.json()}))]):(console.error("Token is not found"),[2]);case 1:return[2,s.sent()]}}))}))},t.message=function(e){return u(void 0,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return[4,(0,f.fetchData)("createChannelMessage",h.messageQuery,c({projectId:d.default.get("PROJECT_ID"),channelId:e.channelId,content:e.message,parentMessageId:null==e?void 0:e.parent_message_id},e))];case 1:return[2,t.sent()]}}))}))},t.deleteMessage=function(e,t){return u(void 0,void 0,void 0,(function(){return l(this,(function(n){switch(n.label){case 0:return[4,(0,f.fetchData)("deleteMessage",h.deleteMessageQuery,{projectId:d.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))}},278:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.updatePin=t.createPin=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(2014);t.createPin=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){return[2,(0,p.fetchData)("createPin",d.createPinQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,messageId:t.messageId,pinned:t.pinned,pinnedAt:t.pinnedAt,expiredAt:t.expiredAt})]}))}))},t.updatePin=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){return[2,(0,p.fetchData)("updatePin",d.updatePinQuery,{id:e,projectId:l.default.get("PROJECT_ID"),channelId:t,messageId:n.messageId,pinned:n.pinned,pinnedAt:n.pinnedAt,expiredAt:n.expiredAt})]}))}))}},842:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.updateSubscription=t.deleteSubscription=t.createSubscription=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(3136);t.createSubscription=function(e,t){return void 0===t&&(t=""),a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("createSubscription",d.createSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,option:t})];case 1:return[2,n.sent()]}}))}))},t.deleteSubscription=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,p.fetchData)("deleteSubscription",d.deleteSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e})];case 1:return[2,t.sent()]}}))}))},t.updateSubscription=function(e,t,n){return void 0===n&&(n=""),a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,p.fetchData)("updateSubscription",d.updateSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,mark:t,option:n})];case 1:return[2,r.sent()]}}))}))}},4587:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getChannels=t.getChannel=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(7151),d=n(9004);t.getChannel=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,d.fetchData)("channel",p.getChannelQuery,{projectId:l.default.get("PROJECT_ID"),id:e})];case 1:return[2,t.sent()]}}))}))},t.getChannels=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,d.fetchData)("channels",p.getChannelsQuery,{projectId:l.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))}))}},3746:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.getFriendships=void 0;var a,c=(a=n(5652))&&a.__esModule?a:{default:a},u=n(9004),l=n(1026);t.getFriendships=function(e,t,n){return r=void 0,a=void 0,d=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,u.fetchData)("friendships",l.getFriendshipsQuery,{projectId:c.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))},new((p=void 0)||(p=i.default))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof p?r:new p((function(e){e(r)}))).then(n,i)}o((d=d.apply(r,a||[])).next())}));var r,a,p,d}},9220:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(5940)),o=r(n(5366)),s=r(n(6771)),a=i.default?function(e,t,n,r){void 0===r&&(r=n);var i=(0,o.default)(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),(0,s.default)(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},c=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};t.__esModule=!0,c(n(5846),t),c(n(4587),t),c(n(8052),t),c(n(7119),t),c(n(3746),t),c(n(3003),t),c(n(8691),t),c(n(5347),t)},3003:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getPushState=t.getMembers=void 0;var u,l=n(9004),p=(u=n(5652))&&u.__esModule?u:{default:u},d=n(4872);t.getMembers=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,l.fetchData)("membersForQuery",d.getMembersQuery,{projectId:p.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))}))},t.getPushState=function(){return a(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,(0,l.fetchData)("memberForQuery",d.getMeQuery,{projectId:p.default.get("PROJECT_ID")})];case 1:return[2,e.sent()]}}))}))}},8691:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013));t.__esModule=!0,t.getMemberBlocks=void 0;var a,c=n(4872),u=n(9004),l=(a=n(5652))&&a.__esModule?a:{default:a};t.getMemberBlocks=function(e,t,n){return r=void 0,a=void 0,d=function(){return function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,u.fetchData)("memberblocks",c.getMemberBlocksQuery,{projectId:l.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))},new((p=void 0)||(p=i.default))((function(e,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function i(e){try{o(d.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof p?r:new p((function(e){e(r)}))).then(n,i)}o((d=d.apply(r,a||[])).next())}));var r,a,p,d}},8052:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getMessageUnreadCount=t.unreadCount=t.getMessage=t.getMessages=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(838);t.getMessages=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,p.fetchData)("messages",d.getMessagesQuery,{projectId:l.default.get("PROJECT_ID"),filter:e,sort:t,option:n})];case 1:return[2,r.sent()]}}))}))},t.getMessage=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("message",d.getMessageQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))},t.unreadCount=function(e){return a(void 0,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,(0,p.fetchData)("mark",d.unreadCountQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e})];case 1:return[2,t.sent()]}}))}))},t.getMessageUnreadCount=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("messageUnreadCount",d.messageUnreadCountQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,messageId:t})];case 1:return[2,n.sent()]}}))}))}},5347:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getPins=t.getPin=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(2014);t.getPin=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("pin",d.getPinQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))},t.getPins=function(e,t,n,r){return a(void 0,void 0,void 0,(function(){return c(this,(function(i){switch(i.label){case 0:return[4,(0,p.fetchData)("pins",d.getPinsQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,filter:t,sort:n,option:r})];case 1:return[2,i.sent()]}}))}))}},5846:(e,t)=>{"use strict";t.__esModule=!0},7119:(e,t,n)=>{"use strict";var r=n(2569),i=r(n(3473)),o=r(n(5579)),s=r(n(2013)),a=function(e,t,n,r){return new(n||(n=i.default))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof o.default&&(a[s.default]=function(){return this}),a;function u(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!((i=(i=c.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(6===o[0]&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=t.call(e,c)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.getSubscriptions=t.getSubscription=void 0;var u,l=(u=n(5652))&&u.__esModule?u:{default:u},p=n(9004),d=n(3136);t.getSubscription=function(e,t){return a(void 0,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,(0,p.fetchData)("subscription",d.getSubscriptionQuery,{projectId:l.default.get("PROJECT_ID"),channelId:e,id:t})];case 1:return[2,n.sent()]}}))}))},t.getSubscriptions=function(e,t,n){return a(void 0,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,(0,p.fetchData)("subscriptions",d.getSubscriptionsQuery,{projectId:l.default.get("PROJECT_ID"),option:n,filter:e,sort:t})];case 1:return[2,r.sent()]}}))}))}},2742:(e,t,n)=>{var r=n(4579),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},6981:(e,t,n)=>{n(2699),e.exports=n(4579).Object.assign},5627:(e,t,n)=>{n(6760);var r=n(4579).Object;e.exports=function(e,t){return r.create(e,t)}},3391:(e,t,n)=>{n(1477);var r=n(4579).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},7965:(e,t,n)=>{n(520),e.exports=n(4579).Object.entries},7036:(e,t,n)=>{n(5178);var r=n(4579).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},112:(e,t,n)=>{n(4058),n(1867),n(3871),n(2878),n(5971),n(2526),e.exports=n(4579).Promise},25:(e,t,n)=>{n(6840),n(4058),n(8174),n(6461),e.exports=n(4579).Symbol},2392:(e,t,n)=>{n(1867),n(3871),e.exports=n(5103).f("iterator")},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},9003:e=>{e.exports=function(){}},9142:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},2159:(e,t,n)=>{var r=n(6727);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,n)=>{var r=n(7932),i=n(8728),o=n(6531);e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},4677:(e,t,n)=>{var r=n(2894),i=n(2939)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,n)=>{var r=n(5663);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,n)=>{e.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,n)=>{var r=n(6727),i=n(3938).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},337:(e,t,n)=>{var r=n(6162),i=n(8195),o=n(6274);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var s,a=n(e),c=o.f,u=0;a.length>u;)c.call(e,s=a[u++])&&t.push(s);return t}},3856:(e,t,n)=>{var r=n(3938),i=n(4579),o=n(9216),s=n(1818),a=n(7069),c=function(e,t,n){var u,l,p,d=e&c.F,f=e&c.G,h=e&c.S,y=e&c.P,v=e&c.B,m=e&c.W,g=f?i:i[t]||(i[t]={}),b=g.prototype,E=f?r:h?r[t]:(r[t]||{}).prototype;for(u in f&&(n=t),n)(l=!d&&E&&void 0!==E[u])&&a(g,u)||(p=l?E[u]:n[u],g[u]=f&&"function"!=typeof E[u]?n[u]:v&&l?o(p,r):m&&E[u]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):y&&"function"==typeof p?o(Function.call,p):p,y&&((g.virtual||(g.virtual={}))[u]=p,e&c.R&&b&&!b[u]&&s(b,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},5576:(e,t,n)=>{var r=n(9216),i=n(5602),o=n(5991),s=n(2159),a=n(8728),c=n(3728),u={},l={},p=e.exports=function(e,t,n,p,d){var f,h,y,v,m=d?function(){return e}:c(e),g=r(n,p,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(f=a(e.length);f>b;b++)if((v=t?g(s(h=e[b])[0],h[1]):g(e[b]))===u||v===l)return v}else for(y=m.call(e);!(h=y.next()).done;)if((v=i(y,g,h.value,t))===u||v===l)return v};p.BREAK=u,p.RETURN=l},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},1818:(e,t,n)=>{var r=n(4743),i=n(3101);e.exports=n(9666)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},4881:(e,t,n)=>{var r=n(3938).document;e.exports=r&&r.documentElement},3758:(e,t,n)=>{e.exports=!n(9666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(7467)("div"),"a",{get:function(){return 7}}).a}))},6778:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},799:(e,t,n)=>{var r=n(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},5991:(e,t,n)=>{var r=n(5449),i=n(2939)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},1421:(e,t,n)=>{var r=n(2894);e.exports=Array.isArray||function(e){return"Array"==r(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},5602:(e,t,n)=>{var r=n(2159);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},3945:(e,t,n)=>{"use strict";var r=n(526),i=n(3101),o=n(5378),s={};n(1818)(s,n(2939)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},5700:(e,t,n)=>{"use strict";var r=n(6227),i=n(3856),o=n(7470),s=n(1818),a=n(5449),c=n(3945),u=n(5378),l=n(5089),p=n(2939)("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",h="values",y=function(){return this};e.exports=function(e,t,n,v,m,g,b){c(n,t,v);var E,T,I,_=function(e){if(!d&&e in O)return O[e];switch(e){case f:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",N=m==h,S=!1,O=e.prototype,k=O[p]||O["@@iterator"]||m&&O[m],x=k||_(m),A=m?N?_("entries"):x:void 0,D="Array"==t&&O.entries||k;if(D&&(I=l(D.call(new e)))!==Object.prototype&&I.next&&(u(I,w,!0),r||"function"==typeof I[p]||s(I,p,y)),N&&k&&k.name!==h&&(S=!0,x=function(){return k.call(this)}),r&&!b||!d&&!S&&O[p]||s(O,p,x),a[t]=x,a[w]=y,m)if(E={values:N?x:_(h),keys:g?x:_(f),entries:A},b)for(T in E)T in O||o(O,T,E[T]);else i(i.P+i.F*(d||S),t,E);return E}},6630:(e,t,n)=>{var r=n(2939)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(e){}return n}},5084:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},5449:e=>{e.exports={}},6227:e=>{e.exports=!0},7177:(e,t,n)=>{var r=n(5730)("meta"),i=n(6727),o=n(7069),s=n(4743).f,a=0,c=Object.isExtensible||function(){return!0},u=!n(7929)((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e}}},1601:(e,t,n)=>{var r=n(3938),i=n(2723).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(2894)(s);e.exports=function(){var e,t,n,u=function(){var r,i;for(c&&(r=s.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var p=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=p=!p}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},9304:(e,t,n)=>{"use strict";var r=n(5663);function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},8335:(e,t,n)=>{"use strict";var r=n(9666),i=n(6162),o=n(8195),s=n(6274),a=n(6530),c=n(799),u=Object.assign;e.exports=!u||n(7929)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=a(e),u=arguments.length,l=1,p=o.f,d=s.f;u>l;)for(var f,h=c(arguments[l++]),y=p?i(h).concat(p(h)):i(h),v=y.length,m=0;v>m;)f=y[m++],r&&!d.call(h,f)||(n[f]=h[f]);return n}:u},526:(e,t,n)=>{var r=n(2159),i=n(7856),o=n(3338),s=n(8989)("IE_PROTO"),a=function(){},c=function(){var e,t=n(7467)("iframe"),r=o.length;for(t.style.display="none",n(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},4743:(e,t,n)=>{var r=n(2159),i=n(3758),o=n(3206),s=Object.defineProperty;t.f=n(9666)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},7856:(e,t,n)=>{var r=n(4743),i=n(2159),o=n(6162);e.exports=n(9666)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,c=0;a>c;)r.f(e,n=s[c++],t[n]);return e}},6183:(e,t,n)=>{var r=n(6274),i=n(3101),o=n(7932),s=n(3206),a=n(7069),c=n(3758),u=Object.getOwnPropertyDescriptor;t.f=n(9666)?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},4368:(e,t,n)=>{var r=n(7932),i=n(3230).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return s.slice()}}(e):i(r(e))}},3230:(e,t,n)=>{var r=n(2963),i=n(3338).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},5089:(e,t,n)=>{var r=n(7069),i=n(6530),o=n(8989)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},2963:(e,t,n)=>{var r=n(7069),i=n(7932),o=n(7428)(!1),s=n(8989)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},6162:(e,t,n)=>{var r=n(2963),i=n(3338);e.exports=Object.keys||function(e){return r(e,i)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},2584:(e,t,n)=>{var r=n(3856),i=n(4579),o=n(7929);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},2050:(e,t,n)=>{var r=n(9666),i=n(6162),o=n(7932),s=n(6274).f;e.exports=function(e){return function(t){for(var n,a=o(t),c=i(a),u=c.length,l=0,p=[];u>l;)n=c[l++],r&&!s.call(a,n)||p.push(e?[n,a[n]]:a[n]);return p}}},931:e=>{e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},7790:(e,t,n)=>{var r=n(2159),i=n(6727),o=n(9304);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8144:(e,t,n)=>{var r=n(1818);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},7470:(e,t,n)=>{e.exports=n(1818)},9967:(e,t,n)=>{"use strict";var r=n(3938),i=n(4579),o=n(4743),s=n(9666),a=n(2939)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];s&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},5378:(e,t,n)=>{var r=n(4743).f,i=n(7069),o=n(2939)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8989:(e,t,n)=>{var r=n(250)("keys"),i=n(5730);e.exports=function(e){return r[e]||(r[e]=i(e))}},250:(e,t,n)=>{var r=n(4579),i=n(3938),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},2707:(e,t,n)=>{var r=n(2159),i=n(5663),o=n(2939)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[o])?t:i(n)}},510:(e,t,n)=>{var r=n(1052),i=n(8333);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},2723:(e,t,n)=>{var r,i,o,s=n(9216),a=n(6778),c=n(4881),u=n(7467),l=n(3938),p=l.process,d=l.setImmediate,f=l.clearImmediate,h=l.MessageChannel,y=l.Dispatch,v=0,m={},g=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){g.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},f=function(e){delete m[e]},"process"==n(2894)(p)?r=function(e){p.nextTick(s(g,e,1))}:y&&y.now?r=function(e){y.now(s(g,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),g.call(e)}}:function(e){setTimeout(s(g,e,1),0)}),e.exports={set:d,clear:f}},6531:(e,t,n)=>{var r=n(1052),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},1052:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7932:(e,t,n)=>{var r=n(799),i=n(8333);e.exports=function(e){return r(i(e))}},8728:(e,t,n)=>{var r=n(1052),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},6530:(e,t,n)=>{var r=n(8333);e.exports=function(e){return Object(r(e))}},3206:(e,t,n)=>{var r=n(6727);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},6640:(e,t,n)=>{var r=n(3938).navigator;e.exports=r&&r.userAgent||""},6347:(e,t,n)=>{var r=n(3938),i=n(4579),o=n(6227),s=n(5103),a=n(4743).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},5103:(e,t,n)=>{t.f=n(2939)},2939:(e,t,n)=>{var r=n(250)("wks"),i=n(5730),o=n(3938).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},3728:(e,t,n)=>{var r=n(4677),i=n(2939)("iterator"),o=n(5449);e.exports=n(4579).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},3882:(e,t,n)=>{"use strict";var r=n(9003),i=n(5084),o=n(5449),s=n(7932);e.exports=n(5700)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},2699:(e,t,n)=>{var r=n(3856);r(r.S+r.F,"Object",{assign:n(8335)})},6760:(e,t,n)=>{var r=n(3856);r(r.S,"Object",{create:n(526)})},1477:(e,t,n)=>{var r=n(3856);r(r.S+r.F*!n(9666),"Object",{defineProperty:n(4743).f})},5178:(e,t,n)=>{var r=n(7932),i=n(6183).f;n(2584)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},4058:()=>{},2878:(e,t,n)=>{"use strict";var r,i,o,s,a=n(6227),c=n(3938),u=n(9216),l=n(4677),p=n(3856),d=n(6727),f=n(5663),h=n(9142),y=n(5576),v=n(2707),m=n(2723).set,g=n(1601)(),b=n(9304),E=n(931),T=n(6640),I=n(7790),_="Promise",w=c.TypeError,N=c.process,S=N&&N.versions,O=S&&S.v8||"",k=c.Promise,x="process"==l(N),A=function(){},D=i=b.f,C=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(2939)("species")]=function(e){e(A,A)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==O.indexOf("6.6")&&-1===T.indexOf("Chrome/66")}catch(e){}}(),R=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t){if(!e._n){e._n=!0;var n=e._c;g((function(){for(var r=e._v,i=1==e._s,o=0,s=function(t){var n,o,s,a=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{a?(i||(2==e._h&&L(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?u(w("Promise-chain cycle")):(o=R(n))?o.call(n,c,u):c(n)):u(r)}catch(e){l&&!s&&l.exit(),u(e)}};n.length>o;)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&F(e)}))}},F=function(e){m.call(c,(function(){var t,n,r,i=e._v,o=j(e);if(o&&(t=E((function(){x?N.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=x||j(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},j=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){m.call(c,(function(){var t;x?N.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),$(t,!0))},M=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw w("Promise can't be resolved itself");(t=R(e))?g((function(){var r={_w:n,_d:!1};try{t.call(e,u(M,r,1),u(P,r,1))}catch(e){P.call(r,e)}})):(n._v=e,n._s=1,$(n,!1))}catch(e){P.call({_w:n,_d:!1},e)}}};C||(k=function(e){h(this,k,_,"_h"),f(e),r.call(this);try{e(u(M,this,1),u(P,this,1))}catch(e){P.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(8144)(k.prototype,{then:function(e,t){var n=D(v(this,k));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?N.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&$(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(M,e,1),this.reject=u(P,e,1)},b.f=D=function(e){return e===k||e===s?new o(e):i(e)}),p(p.G+p.W+p.F*!C,{Promise:k}),n(5378)(k,_),n(9967)(_),s=n(4579).Promise,p(p.S+p.F*!C,_,{reject:function(e){var t=D(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(a||!C),_,{resolve:function(e){return I(a&&this===s?k:this,e)}}),p(p.S+p.F*!(C&&n(6630)((function(e){k.all(e).catch(A)}))),_,{all:function(e){var t=this,n=D(t),r=n.resolve,i=n.reject,o=E((function(){var n=[],o=0,s=1;y(e,!1,(function(e){var a=o++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=D(t),r=n.reject,i=E((function(){y(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},1867:(e,t,n)=>{"use strict";var r=n(510)(!0);n(5700)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},6840:(e,t,n)=>{"use strict";var r=n(3938),i=n(7069),o=n(9666),s=n(3856),a=n(7470),c=n(7177).KEY,u=n(7929),l=n(250),p=n(5378),d=n(5730),f=n(2939),h=n(5103),y=n(6347),v=n(337),m=n(1421),g=n(2159),b=n(6727),E=n(6530),T=n(7932),I=n(3206),_=n(3101),w=n(526),N=n(4368),S=n(6183),O=n(8195),k=n(4743),x=n(6162),A=S.f,D=k.f,C=N.f,R=r.Symbol,$=r.JSON,F=$&&$.stringify,j=f("_hidden"),L=f("toPrimitive"),P={}.propertyIsEnumerable,M=l("symbol-registry"),V=l("symbols"),U=l("op-symbols"),B=Object.prototype,Q="function"==typeof R&&!!O.f,G=r.QObject,q=!G||!G.prototype||!G.prototype.findChild,J=o&&u((function(){return 7!=w(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=A(B,t);r&&delete B[t],D(e,t,n),r&&e!==B&&D(B,t,r)}:D,Y=function(e){var t=V[e]=w(R.prototype);return t._k=e,t},K=Q&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},z=function(e,t,n){return e===B&&z(U,t,n),g(e),t=I(t,!0),g(n),i(V,t)?(n.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),n=w(n,{enumerable:_(0,!1)})):(i(e,j)||D(e,j,_(1,{})),e[j][t]=!0),J(e,t,n)):D(e,t,n)},H=function(e,t){g(e);for(var n,r=v(t=T(t)),i=0,o=r.length;o>i;)z(e,n=r[i++],t[n]);return e},X=function(e){var t=P.call(this,e=I(e,!0));return!(this===B&&i(V,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,j)&&this[j][e])||t)},W=function(e,t){if(e=T(e),t=I(t,!0),e!==B||!i(V,t)||i(U,t)){var n=A(e,t);return!n||!i(V,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=C(T(e)),r=[],o=0;n.length>o;)i(V,t=n[o++])||t==j||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===B,r=C(n?U:T(e)),o=[],s=0;r.length>s;)!i(V,t=r[s++])||n&&!i(B,t)||o.push(V[t]);return o};Q||(a((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(U,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),J(this,e,_(1,n))};return o&&q&&J(B,e,{configurable:!0,set:t}),Y(e)}).prototype,"toString",(function(){return this._k})),S.f=W,k.f=z,n(3230).f=N.f=Z,n(6274).f=X,O.f=ee,o&&!n(6227)&&a(B,"propertyIsEnumerable",X,!0),h.f=function(e){return Y(f(e))}),s(s.G+s.W+s.F*!Q,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var re=x(f.store),ie=0;re.length>ie;)y(re[ie++]);s(s.S+s.F*!Q,"Symbol",{for:function(e){return i(M,e+="")?M[e]:M[e]=R(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in M)if(M[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),s(s.S+s.F*!Q,"Object",{create:function(e,t){return void 0===t?w(e):H(w(e),t)},defineProperty:z,defineProperties:H,getOwnPropertyDescriptor:W,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var oe=u((function(){O.f(1)}));s(s.S+s.F*oe,"Object",{getOwnPropertySymbols:function(e){return O.f(E(e))}}),$&&s(s.S+s.F*(!Q||u((function(){var e=R();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,F.apply($,r)}}),R.prototype[L]||n(1818)(R.prototype,L,R.prototype.valueOf),p(R,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},520:(e,t,n)=>{var r=n(3856),i=n(2050)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},5971:(e,t,n)=>{"use strict";var r=n(3856),i=n(4579),o=n(3938),s=n(2707),a=n(7790);r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then((function(){return n}))}:e,n?function(n){return a(t,e()).then((function(){throw n}))}:e)}})},2526:(e,t,n)=>{"use strict";var r=n(3856),i=n(9304),o=n(931);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},8174:(e,t,n)=>{n(6347)("asyncIterator")},6461:(e,t,n)=>{n(6347)("observable")},3871:(e,t,n)=>{n(3882);for(var r=n(3938),i=n(1818),o=n(5449),s=n(2939)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],l=r[u],p=l&&l.prototype;p&&!p[s]&&i(p,s,u),o[u]=o.Array}},4963:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},7722:(e,t,n)=>{var r=n(6314)("unscopables"),i=Array.prototype;null==i[r]&&n(7728)(i,r,{}),e.exports=function(e){i[r][e]=!0}},6793:(e,t,n)=>{"use strict";var r=n(4496)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},7007:(e,t,n)=>{var r=n(5286);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},9315:(e,t,n)=>{var r=n(2110),i=n(875),o=n(2337);e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},50:(e,t,n)=>{var r=n(741),i=n(9797),o=n(508),s=n(875),a=n(6886);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,p=6==e,d=5==e||p,f=t||a;return function(t,a,h){for(var y,v,m=o(t),g=i(m),b=r(a,h,3),E=s(g.length),T=0,I=n?f(t,E):c?f(t,0):void 0;E>T;T++)if((d||T in g)&&(v=b(y=g[T],T,m),e))if(n)I[T]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return T;case 2:I.push(y)}else if(l)return!1;return p?-1:u||l?l:I}}},2736:(e,t,n)=>{var r=n(5286),i=n(4302),o=n(6314)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},6886:(e,t,n)=>{var r=n(2736);e.exports=function(e,t){return new(r(e))(t)}},4398:(e,t,n)=>{"use strict";var r=n(4963),i=n(5286),o=n(7242),s=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?c(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},1488:(e,t,n)=>{var r=n(2032),i=n(6314)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2032:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},5645:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},741:(e,t,n)=>{var r=n(4963);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},3537:(e,t,n)=>{"use strict";var r=n(4253),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},1355:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},7057:(e,t,n)=>{e.exports=!n(4253)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2457:(e,t,n)=>{var r=n(5286),i=n(3816).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2985:(e,t,n)=>{var r=n(3816),i=n(5645),o=n(7728),s=n(7234),a=n(741),c=function(e,t,n){var u,l,p,d,f=e&c.F,h=e&c.G,y=e&c.S,v=e&c.P,m=e&c.B,g=h?r:y?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),E=b.prototype||(b.prototype={});for(u in h&&(n=t),n)p=((l=!f&&g&&void 0!==g[u])?g:n)[u],d=m&&l?a(p,r):v&&"function"==typeof p?a(Function.call,p):p,g&&s(g,u,p,e&c.U),b[u]!=p&&o(b,u,d),v&&E[u]!=p&&(E[u]=p)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},8852:(e,t,n)=>{var r=n(6314)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},4253:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},8082:(e,t,n)=>{"use strict";n(8269);var r=n(7234),i=n(7728),o=n(4253),s=n(1355),a=n(6314),c=n(1165),u=a("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=a(e),f=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=f?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!t})):void 0;if(!f||!h||"replace"===e&&!l||"split"===e&&!p){var y=/./[d],v=n(s,d,""[e],(function(e,t,n,r,i){return t.exec===c?f&&!i?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=v[0],g=v[1];r(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return g.call(e,this,t)}:function(e){return g.call(e,this)})}}},3218:(e,t,n)=>{"use strict";var r=n(7007);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},18:(e,t,n)=>{e.exports=n(3825)("native-function-to-string",Function.toString)},3816:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},9181:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},7728:(e,t,n)=>{var r=n(9275),i=n(681);e.exports=n(7057)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},639:(e,t,n)=>{var r=n(3816).document;e.exports=r&&r.documentElement},1734:(e,t,n)=>{e.exports=!n(7057)&&!n(4253)((function(){return 7!=Object.defineProperty(n(2457)("div"),"a",{get:function(){return 7}}).a}))},7242:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},9797:(e,t,n)=>{var r=n(2032);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},4302:(e,t,n)=>{var r=n(2032);e.exports=Array.isArray||function(e){return"Array"==r(e)}},5286:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},5364:(e,t,n)=>{var r=n(5286),i=n(2032),o=n(6314)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},4461:e=>{e.exports=!1},9275:(e,t,n)=>{var r=n(7007),i=n(1734),o=n(1689),s=Object.defineProperty;t.f=n(7057)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},681:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7234:(e,t,n)=>{var r=n(3816),i=n(7728),o=n(9181),s=n(3953)("src"),a=n(18),c="toString",u=(""+a).split(c);n(5645).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},7787:(e,t,n)=>{"use strict";var r=n(1488),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},1165:(e,t,n)=>{"use strict";var r,i,o=n(3218),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,u=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=void 0!==/()??/.exec("")[1];(u||l)&&(c=function(e){var t,n,r,i,c=this;return l&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),u&&(t=c.lastIndex),r=s.call(c,e),u&&r&&(c.lastIndex=c.global?r.index+r[0].length:t),l&&r&&r.length>1&&a.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=c},3825:(e,t,n)=>{var r=n(5645),i=n(3816),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(4461)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},8364:(e,t,n)=>{var r=n(7007),i=n(4963),o=n(6314)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[o])?t:i(n)}},7717:(e,t,n)=>{"use strict";var r=n(4253);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},4496:(e,t,n)=>{var r=n(1467),i=n(1355);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},2094:(e,t,n)=>{var r=n(5364),i=n(1355);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},2337:(e,t,n)=>{var r=n(1467),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},1467:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},2110:(e,t,n)=>{var r=n(9797),i=n(1355);e.exports=function(e){return r(i(e))}},875:(e,t,n)=>{var r=n(1467),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},508:(e,t,n)=>{var r=n(1355);e.exports=function(e){return Object(r(e))}},1689:(e,t,n)=>{var r=n(5286);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3953:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},6314:(e,t,n)=>{var r=n(3825)("wks"),i=n(3953),o=n(3816).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},4336:(e,t,n)=>{"use strict";var r=n(2985),i=n(50)(0),o=n(7717)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},3369:(e,t,n)=>{"use strict";var r=n(2985),i=n(9315)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(7717)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},9371:(e,t,n)=>{"use strict";var r=n(2985),i=n(50)(1);r(r.P+r.F*!n(7717)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},110:(e,t,n)=>{"use strict";var r=n(2985),i=n(639),o=n(2032),s=n(2337),a=n(875),c=[].slice;r(r.P+r.F*n(4253)((function(){i&&c.call(i)})),"Array",{slice:function(e,t){var n=a(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=s(e,n),u=s(t,n),l=a(u-i),p=new Array(l),d=0;d<l;d++)p[d]="String"==r?this.charAt(i+d):this[i+d];return p}})},1031:(e,t,n)=>{var r=n(2985),i=n(3537);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},9730:(e,t,n)=>{var r=n(2985);r(r.P,"Function",{bind:n(4398)})},6059:(e,t,n)=>{var r=n(9275).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||n(7057)&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},8269:(e,t,n)=>{"use strict";var r=n(1165);n(2985)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},9357:(e,t,n)=>{"use strict";var r=n(7007),i=n(508),o=n(875),s=n(1467),a=n(6793),c=n(7787),u=Math.max,l=Math.min,p=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n(8082)("replace",2,(function(e,t,n,h){return[function(r,i){var o=e(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=h(n,e,this,t);if(i.done)return i.value;var p=r(e),d=String(this),f="function"==typeof t;f||(t=String(t));var v=p.global;if(v){var m=p.unicode;p.lastIndex=0}for(var g=[];;){var b=c(p,d);if(null===b)break;if(g.push(b),!v)break;""===String(b[0])&&(p.lastIndex=a(d,o(p.lastIndex),m))}for(var E,T="",I=0,_=0;_<g.length;_++){b=g[_];for(var w=String(b[0]),N=u(l(s(b.index),d.length),0),S=[],O=1;O<b.length;O++)S.push(void 0===(E=b[O])?E:String(E));var k=b.groups;if(f){var x=[w].concat(S,N,d);void 0!==k&&x.push(k);var A=String(t.apply(void 0,x))}else A=y(w,d,N,S,k,t);N>=I&&(T+=d.slice(I,N)+A,I=N+w.length)}return T+d.slice(I)}];function y(e,t,r,o,s,a){var c=r+e.length,u=o.length,l=f;return void 0!==s&&(s=i(s),l=d),n.call(a,l,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var d=p(l/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a}))}}))},1876:(e,t,n)=>{"use strict";var r=n(5364),i=n(7007),o=n(8364),s=n(6793),a=n(875),c=n(7787),u=n(1165),l=n(4253),p=Math.min,d=[].push,f=4294967295,h=!l((function(){RegExp(f,"y")}));n(8082)("split",2,(function(e,t,n,l){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,s,a,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,h=void 0===t?f:t>>>0,y=new RegExp(e.source,l+"g");(o=u.call(y,i))&&!((s=y.lastIndex)>p&&(c.push(i.slice(p,o.index)),o.length>1&&o.index<i.length&&d.apply(c,o.slice(1)),a=o[0].length,p=s,c.length>=h));)y.lastIndex===o.index&&y.lastIndex++;return p===i.length?!a&&y.test("")||c.push(""):c.push(i.slice(p)),c.length>h?c.slice(0,h):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=l(y,e,this,t,y!==n);if(r.done)return r.value;var u=i(e),d=String(this),v=o(u,RegExp),m=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),b=new v(h?u:"^(?:"+u.source+")",g),E=void 0===t?f:t>>>0;if(0===E)return[];if(0===d.length)return null===c(b,d)?[d]:[];for(var T=0,I=0,_=[];I<d.length;){b.lastIndex=h?I:0;var w,N=c(b,h?d:d.slice(I));if(null===N||(w=p(a(b.lastIndex+(h?0:I)),d.length))===T)I=s(d,I,m);else{if(_.push(d.slice(T,I)),_.length===E)return _;for(var S=1;S<=N.length-1;S++)if(_.push(N[S]),_.length===E)return _;I=T=w}}return _.push(d.slice(T)),_}]}))},2850:(e,t,n)=>{"use strict";var r=n(2985),i=n(2094),o="includes";r(r.P+r.F*n(8852)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},2773:(e,t,n)=>{"use strict";var r=n(2985),i=n(9315)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(7722)("includes")},1227:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},8648:function(e,t){!function(n){"use strict";function r(e,t){if(e instanceof Boolean||"boolean"==typeof e)return!1;if(t instanceof Object||(t={}),!1===t.allowEmpty&&""===e)return!1;var n="(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+/]{3}=)?",r="(data:\\w+\\/[a-zA-Z\\+\\-\\.]+;base64,)";return!0===t.mimeRequired?n=r+n:!0===t.allowMime&&(n=r+"?"+n),!1===t.paddingRequired&&(n="(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}(==)?|[A-Za-z0-9+\\/]{3}=?)?"),new RegExp("^"+n+"$","gi").test(e)}e.exports&&(t=e.exports=r),t.isBase64=r}()},7824:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,s){s=s||{};var a,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(a=e,(c=Math.abs(a))>=i?o(a,c,i,"day"):c>=r?o(a,c,r,"hour"):c>=n?o(a,c,n,"minute"):c>=t?o(a,c,t,"second"):a+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8450:(e,t,n)=>{e.exports=n(2742)},8428:(e,t,n)=>{e.exports=n(6981)},5940:(e,t,n)=>{e.exports=n(5627)},6771:(e,t,n)=>{e.exports=n(3391)},3562:(e,t,n)=>{e.exports=n(7965)},5366:(e,t,n)=>{e.exports=n(7036)},3473:(e,t,n)=>{e.exports=n(112)},5579:(e,t,n)=>{e.exports=n(25)},2013:(e,t,n)=>{e.exports=n(2392)},2569:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},3207:(e,t,n)=>{var r=n(5579),i=n(2013);function o(t){return e.exports=o="function"==typeof r&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let n=!1;try{n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=n},5754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}},5222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.parse=function(e){const t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));let s=n.exec(e||""),a={},c=14;for(;c--;)a[r[c]]=s[c]||"";return-1!=i&&-1!=o&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={};let i,o=0,s=0;function a(e){let t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=a,t.decode=function(e){let t=0;for(s=0;s<e.length;s++)t=64*t+r[e.charAt(s)];return t},t.yeast=function(){const e=a(+new Date);return e!==i?(o=0,i=e):e+"."+a(o++)};s<64;s++)r[n[s]]=s},6242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},4679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const r=n(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return r.Socket}}),t.protocol=r.Socket.protocol;var i=n(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return i.Transport}});var o=n(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return o.transports}});var s=n(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var a=n(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}});var c=n(5552);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return c.nextTick}})},3481:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=n(7385),o=n(9622),s=n(5754),a=n(5222),c=r(n(1227)),u=n(5260),l=n(1373),p=(0,c.default)("engine.io-client:socket");class d extends u.Emitter{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,a.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,a.parse)(t.host).host),(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){p('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=l.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return p("options: %j",n),new i.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return p("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){p("setting transport %s",e.name),this.transport&&(p("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){p('probing transport "%s"',e);let t=this.createTransport(e),n=!1;d.priorWebsocketSuccess=!1;const r=()=>{n||(p('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(r=>{if(!n)if("pong"===r.type&&"probe"===r.data){if(p('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;d.priorWebsocketSuccess="websocket"===t.name,p('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{n||"closed"!==this.readyState&&(p("changing transport and sending upgrade packet"),u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{p('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,this.emitReserved("upgradeError",n)}})))};function i(){n||(n=!0,u(),t.close(),t=null)}const o=n=>{const r=new Error("probe error: "+n);r.transport=t.name,i(),p('probe transport "%s" failed because of error: %s',e,n),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function c(e){t&&e.name!==t.name&&(p('"%s" works - aborting "%s"',e.name,t.name),i())}const u=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",s),this.off("close",a),this.off("upgrading",c)};t.once("open",r),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",c),t.open()}onOpen(){if(p("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){p("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(p('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else p('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();p("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const n=this.writeBuffer[t].data;if(n&&(e+=(0,o.byteLength)(n)),t>0&&e>this.maxPayload)return p("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return p("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),p("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){p("socket error %j",e),d.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(p('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}t.Socket=d,d.protocol=l.protocol},9870:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const i=n(1373),o=n(5260),s=n(9622),a=(0,r(n(1227)).default)("engine.io-client:transport");class c extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class u extends o.Emitter{constructor(e){super(),this.writable=!1,(0,s.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new c(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):a("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,i.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}}t.Transport=u},7385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const r=n(484),i=n(1308);t.transports={websocket:i.WS,polling:r.Polling}},484:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;const i=n(9870),o=r(n(1227)),s=n(8726),a=n(5754),c=n(1373),u=n(6666),l=n(5260),p=n(9622),d=n(6242),f=(0,o.default)("engine.io-client:polling");function h(){}const y=null!=new u.XHR({xdomain:!1}).responseType;class v extends i.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=y&&!t}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{f("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(f("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){f("pre-pause polling complete"),--e||t()}))),this.writable||(f("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){f("pre-pause writing complete"),--e||t()})))}else t()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){f("polling got data %s",e),(0,c.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{f("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(f("transport open - closing"),e()):(f("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,c.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);const r=(0,a.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new m(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){f("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.Polling=v;class m extends l.Emitter{constructor(e,t){super(),(0,p.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=(0,p.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new u.XHR(e);try{f("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{4===t.readyState&&(200===t.status||1223===t.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof t.status?t.status:0)}),0))},f("xhr data %s",this.data),t.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=m.requestsCount++,m.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=h,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete m.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(t.Request=m,m.requestsCount=0,m.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",g);else if("function"==typeof addEventListener){const e="onpagehide"in d.globalThisShim?"pagehide":"unload";addEventListener(e,g,!1)}function g(){for(let e in m.requests)m.requests.hasOwnProperty(e)&&m.requests[e].abort()}},5552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const r=n(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=r.globalThisShim.WebSocket||r.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const i=n(9870),o=n(5754),s=n(8726),a=n(9622),c=n(5552),u=r(n(1227)),l=n(1373),p=(0,u.default)("engine.io-client:websocket"),d="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class f extends i.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=d?{}:(0,a.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!d?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;(0,l.encodePacket)(n,this.supportsBinary,(e=>{const t={};!c.usingBrowserWebSocket&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate)&&("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1);try{c.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){p("websocket closed before onclose event")}r&&(0,c.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const r=(0,o.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(r.length?"?"+r:"")}check(){return!!c.WebSocket}}t.WS=f},6666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const r=n(8419),i=n(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(i.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},9622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const r=n(6242);t.pick=function(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})};const i=r.globalThisShim.setTimeout,o=r.globalThisShim.clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=i.bind(r.globalThisShim),e.clearTimeoutFn=o.bind(r.globalThisShim)):(e.setTimeoutFn=r.globalThisShim.setTimeout.bind(r.globalThisShim),e.clearTimeoutFn=r.globalThisShim.clearTimeout.bind(r.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))}},3087:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const n=Object.create(null);t.PACKET_TYPES=n,n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const r=Object.create(null);t.PACKET_TYPES_REVERSE=r,Object.keys(n).forEach((e=>{r[n[e]]=e})),t.ERROR_PACKET={type:"error",data:"parser error"}},2469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<n.length;e++)r[n.charCodeAt(e)]=e;t.encode=e=>{let t,r=new Uint8Array(e),i=r.length,o="";for(t=0;t<i;t+=3)o+=n[r[t]>>2],o+=n[(3&r[t])<<4|r[t+1]>>4],o+=n[(15&r[t+1])<<2|r[t+2]>>6],o+=n[63&r[t+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=e=>{let t,n,i,o,s,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),p=new Uint8Array(l);for(t=0;t<c;t+=4)n=r[e.charCodeAt(t)],i=r[e.charCodeAt(t+1)],o=r[e.charCodeAt(t+2)],s=r[e.charCodeAt(t+3)],p[u++]=n<<2|i>>4,p[u++]=(15&i)<<4|o>>2,p[u++]=(3&o)<<6|63&s;return l}},7572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3087),i=n(2469),o="function"==typeof ArrayBuffer,s=(e,t)=>{if(o){const n=(0,i.decode)(e);return a(n,t)}return{base64:!0,data:e}},a=(e,t)=>"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e;t.default=(e,t)=>{if("string"!=typeof e)return{type:"message",data:a(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:s(e.substring(1),t)}:r.PACKET_TYPES_REVERSE[n]?e.length>1?{type:r.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:r.PACKET_TYPES_REVERSE[n]}:r.ERROR_PACKET}},3908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3087),i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),o="function"==typeof ArrayBuffer,s=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};t.default=({type:e,data:t},n,a)=>{return i&&t instanceof Blob?n?a(t):s(t,a):o&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?n?a(t):s(new Blob([t]),a):a(r.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const r=n(3908);t.encodePacket=r.default;const i=n(7572);t.decodePacket=i.default;const o=String.fromCharCode(30);t.encodePayload=(e,t)=>{const n=e.length,i=new Array(n);let s=0;e.forEach(((e,a)=>{(0,r.default)(e,!1,(e=>{i[a]=e,++s===n&&t(i.join(o))}))}))},t.decodePayload=(e,t)=>{const n=e.split(o),r=[];for(let e=0;e<n.length;e++){const o=(0,i.default)(n[e],t);if(r.push(o),"error"===o.type)break}return r},t.protocol=4},5159:(e,t)=>{"use strict";function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const i=n(3084),o=n(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const s=n(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const a=r(n(1227)).default("socket.io-client"),c={};function u(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=i.url(e,t.path||"/socket.io"),r=n.source,s=n.id,u=n.path,l=c[s]&&u in c[s].nsps;let p;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?(a("ignoring socket cache for %s",r),p=new o.Manager(r,t)):(c[s]||(a("new io instance for %s",r),c[s]=new o.Manager(r,t)),p=c[s]),n.query&&!t.query&&(t.query=n.queryKey),p.socket(n.path,t)}t.io=u,t.connect=u,t.default=u,Object.assign(u,{Manager:o.Manager,Socket:s.Socket,io:u,connect:u});var l=n(4514);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return l.protocol}}),e.exports=u},4168:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const a=n(4679),c=n(8312),u=o(n(4514)),l=n(7149),p=n(5159),d=n(5260),f=s(n(1227)).default("socket.io-client:manager");class h extends d.Emitter{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,a.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new p.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||u;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(f("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;f("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=l.on(t,"open",(function(){n.onopen(),e&&e()})),i=l.on(t,"error",(t=>{f("error"),n.cleanup(),n._readyState="closed",this.emitReserved("error",t),e?e(t):n.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;f("connect attempt will timeout after %d",e),0===e&&r();const n=this.setTimeoutFn((()=>{f("connect attempt timed out after %d",e),r(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){f("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(l.on(e,"ping",this.onping.bind(this)),l.on(e,"data",this.ondata.bind(this)),l.on(e,"error",this.onerror.bind(this)),l.on(e,"close",this.onclose.bind(this)),l.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){a.nextTick((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){f("error",e),this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new c.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return void f("socket %s is still active, skipping close",e);this._close()}_packet(e){f("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){f("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){f("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){f("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)f("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();f("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(f("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(f("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(f("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=h},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},8312:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const i=n(4514),o=n(7149),s=n(5260),a=r(n(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u extends s.Emitter{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[o.on(e,"open",this.onopen.bind(this)),o.on(e,"packet",this.onpacket.bind(this)),o.on(e,"error",this.onerror.bind(this)),o.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(c.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:i.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;a("emitting packet with ack id %d",e);const r=t.pop();this._registerAckCallback(e,r),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||r&&this.connected?this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n):a("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const i=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(a("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));a("event with ack id %d has timed out after %d ms",e,r),t.call(this,new Error("operation has timed out"))}),r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,i)=>{t.push(((e,t)=>n?e?i(e):r(t):r(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",n.id,n.tryCount),this._queue.shift(),t&&t(e)):(a("packet [%d] was successfully sent",n.id),this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,a("sending packet [%d] (try n°%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):a("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:i.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){a("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case i.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case i.PacketType.EVENT:case i.PacketType.BINARY_EVENT:this.onevent(e);break;case i.PacketType.ACK:case i.PacketType.BINARY_ACK:this.onack(e);break;case i.PacketType.DISCONNECT:this.ondisconnect();break;case i.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];a("emitting event %j",t),null!=e.id&&(a("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,a("sending ack %j",r),t.packet({type:i.PacketType.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(a("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):a("bad ack %s",e.id)}onconnect(e,t){a("socket connected with id %s",e),this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}t.Socket=u},3084:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const i=n(4679),o=r(n(1227)).default("socket.io-client:url");t.url=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),o("parse %s",e),r=i.parse(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}},4880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const r=n(665);function i(e,t){if(!e)return e;if(r.isBinary(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=i(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=i(e[r],t));return n}return e}function o(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=o(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=o(e[n],t));return e}t.deconstructPacket=function(e){const t=[],n=e.data,r=e;return r.data=i(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=o(e.data,t),e.attachments=void 0,e}},4514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const r=n(5260),i=n(4880),o=n(665),s=n(1227).default("socket.io-parser");var a;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(a=t.PacketType||(t.PacketType={})),t.Encoder=class{constructor(e){this.replacer=e}encode(e){return s("encoding packet %j",e),e.type!==a.EVENT&&e.type!==a.ACK||!o.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==a.BINARY_EVENT&&e.type!==a.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),s("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=i.deconstructPacket(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}};class c extends r.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===a.BINARY_EVENT||t.type===a.BINARY_ACK?(this.reconstructor=new u(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!o.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===a[n.type])throw new Error("unknown packet type "+n.type);if(n.type===a.BINARY_EVENT||n.type===a.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!c.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return s("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case a.CONNECT:return"object"==typeof t;case a.DISCONNECT:return void 0===t;case a.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case a.EVENT:case a.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case a.ACK:case a.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=c;class u{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},665:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const n="function"==typeof ArrayBuffer,r=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);function s(e){return n&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||o&&e instanceof File}t.isBinary=s,t.hasBinary=function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(s(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}},5260:(e,t,n)=>{"use strict";function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}n.r(t),n.d(t,{Emitter:()=>r}),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},r.prototype.emitReserved=r.prototype.emit,r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},8254:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>Ae,BreakingChangeType:()=>Ho,DEFAULT_DEPRECATION_REASON:()=>fn,DangerousChangeType:()=>Xo,DirectiveLocation:()=>N,ExecutableDefinitionsRule:()=>hr,FieldsOnCorrectTypeRule:()=>yr,FragmentsOnCompositeTypesRule:()=>vr,GRAPHQL_MAX_INT:()=>Xt,GRAPHQL_MIN_INT:()=>Wt,GraphQLBoolean:()=>nn,GraphQLDeprecatedDirective:()=>hn,GraphQLDirective:()=>ln,GraphQLEnumType:()=>Qt,GraphQLError:()=>h,GraphQLFloat:()=>en,GraphQLID:()=>rn,GraphQLIncludeDirective:()=>pn,GraphQLInputObjectType:()=>qt,GraphQLInt:()=>Zt,GraphQLInterfaceType:()=>Vt,GraphQLList:()=>bt,GraphQLNonNull:()=>Et,GraphQLObjectType:()=>Ct,GraphQLScalarType:()=>Dt,GraphQLSchema:()=>Ln,GraphQLSkipDirective:()=>dn,GraphQLSpecifiedByDirective:()=>yn,GraphQLString:()=>tn,GraphQLUnionType:()=>Ut,Kind:()=>S,KnownArgumentNamesRule:()=>mr,KnownDirectivesRule:()=>br,KnownFragmentNamesRule:()=>Er,KnownTypeNamesRule:()=>Tr,Lexer:()=>L,Location:()=>b,LoneAnonymousOperationRule:()=>_r,LoneSchemaDefinitionRule:()=>wr,NoDeprecatedCustomRule:()=>po,NoFragmentCyclesRule:()=>Nr,NoSchemaIntrospectionCustomRule:()=>fo,NoUndefinedVariablesRule:()=>Sr,NoUnusedFragmentsRule:()=>Or,NoUnusedVariablesRule:()=>kr,OperationTypeNode:()=>w,OverlappingFieldsCanBeMergedRule:()=>Dr,PossibleFragmentSpreadsRule:()=>Br,PossibleTypeExtensionsRule:()=>Qr,ProvidedRequiredArgumentsRule:()=>qr,ScalarLeafsRule:()=>Kr,SchemaMetaFieldDef:()=>An,SingleFieldSubscriptionsRule:()=>pi,Source:()=>se,Token:()=>E,TokenKind:()=>O,TypeInfo:()=>tr,TypeKind:()=>kn,TypeMetaFieldDef:()=>Dn,TypeNameMetaFieldDef:()=>Cn,UniqueArgumentDefinitionNamesRule:()=>fi,UniqueArgumentNamesRule:()=>hi,UniqueDirectiveNamesRule:()=>yi,UniqueDirectivesPerLocationRule:()=>vi,UniqueEnumValueNamesRule:()=>mi,UniqueFieldDefinitionNamesRule:()=>gi,UniqueFragmentNamesRule:()=>Ei,UniqueInputFieldNamesRule:()=>Ti,UniqueOperationNamesRule:()=>Ii,UniqueOperationTypesRule:()=>_i,UniqueTypeNamesRule:()=>wi,UniqueVariableNamesRule:()=>Ni,ValidationContext:()=>Fi,ValuesOfCorrectTypeRule:()=>Si,VariablesAreInputTypesRule:()=>ki,VariablesInAllowedPositionRule:()=>xi,__Directive:()=>In,__DirectiveLocation:()=>_n,__EnumValue:()=>On,__Field:()=>Nn,__InputValue:()=>Sn,__Schema:()=>Tn,__Type:()=>wn,__TypeKind:()=>xn,assertAbstractType:()=>gt,assertCompositeType:()=>vt,assertDirective:()=>un,assertEnumType:()=>nt,assertEnumValueName:()=>Ge,assertInputObjectType:()=>it,assertInputType:()=>lt,assertInterfaceType:()=>We,assertLeafType:()=>ht,assertListType:()=>st,assertName:()=>Qe,assertNamedType:()=>Ot,assertNonNullType:()=>ct,assertNullableType:()=>wt,assertObjectType:()=>He,assertOutputType:()=>dt,assertScalarType:()=>Ke,assertSchema:()=>jn,assertType:()=>Je,assertUnionType:()=>et,assertValidName:()=>Ko,assertValidSchema:()=>Vn,assertWrappingType:()=>It,astFromValue:()=>bn,buildASTSchema:()=>wo,buildClientSchema:()=>go,buildSchema:()=>No,coerceInputValue:()=>Wr,concatAST:()=>Qo,createSourceEventStream:()=>lo,defaultFieldResolver:()=>no,defaultTypeResolver:()=>to,doTypesOverlap:()=>Ht,execute:()=>Ui,executeSync:()=>Bi,extendSchema:()=>bo,findBreakingChanges:()=>Wo,findDangerousChanges:()=>Zo,formatError:()=>m,getArgumentValues:()=>ii,getDirectiveValues:()=>oi,getEnterLeaveForKind:()=>Re,getIntrospectionQuery:()=>ho,getLocation:()=>l,getNamedType:()=>kt,getNullableType:()=>Nt,getOperationAST:()=>yo,getOperationRootType:()=>vo,getVariableValues:()=>ri,getVisitFn:()=>$e,graphql:()=>io,graphqlSync:()=>oo,introspectionFromSchema:()=>mo,introspectionTypes:()=>Rn,isAbstractType:()=>mt,isCompositeType:()=>yt,isConstValueNode:()=>cr,isDefinitionNode:()=>ir,isDirective:()=>cn,isEnumType:()=>tt,isEqualType:()=>Kt,isExecutableDefinitionNode:()=>or,isInputObjectType:()=>rt,isInputType:()=>ut,isInterfaceType:()=>Xe,isIntrospectionType:()=>$n,isLeafType:()=>ft,isListType:()=>ot,isNamedType:()=>St,isNonNullType:()=>at,isNullableType:()=>_t,isObjectType:()=>ze,isOutputType:()=>pt,isRequiredArgument:()=>Mt,isRequiredInputField:()=>Yt,isScalarType:()=>Ye,isSchema:()=>Fn,isSelectionNode:()=>sr,isSpecifiedDirective:()=>mn,isSpecifiedScalarType:()=>sn,isType:()=>qe,isTypeDefinitionNode:()=>pr,isTypeExtensionNode:()=>fr,isTypeNode:()=>ur,isTypeSubTypeOf:()=>zt,isTypeSystemDefinitionNode:()=>lr,isTypeSystemExtensionNode:()=>dr,isUnionType:()=>Ze,isValidNameError:()=>zo,isValueNode:()=>ar,isWrappingType:()=>Tt,lexicographicSortSchema:()=>So,locatedError:()=>Mi,parse:()=>ce,parseConstValue:()=>le,parseType:()=>pe,parseValue:()=>ue,print:()=>Fe,printError:()=>v,printIntrospectionSchema:()=>Do,printLocation:()=>p,printSchema:()=>Ao,printSourceLocation:()=>d,printType:()=>Fo,resolveObjMapThunk:()=>At,resolveReadonlyArrayThunk:()=>xt,responsePathAsArray:()=>Xr,separateOperations:()=>Go,specifiedDirectives:()=>vn,specifiedRules:()=>Di,specifiedScalarTypes:()=>on,stripIgnoredCharacters:()=>Yo,subscribe:()=>uo,syntaxError:()=>g,typeFromAST:()=>er,validate:()=>ji,validateSchema:()=>Mn,valueFromAST:()=>ti,valueFromASTUntyped:()=>Be,version:()=>r,versionInfo:()=>i,visit:()=>De,visitInParallel:()=>Ce,visitWithTypeInfo:()=>rr});const r="16.6.0",i=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});function o(e,t){if(!Boolean(e))throw new Error(t)}function s(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return"object"==typeof e&&null!==e}function c(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const u=/\r\n|[\n\r]/g;function l(e,t){let n=0,r=1;for(const i of e.body.matchAll(u)){if("number"==typeof i.index||c(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function p(e){return d(e.source,l(e.source,e.start))}function d(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,c=t.column+a,u=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+f([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+f([[s-1+" |",l[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function f(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class h extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:c,path:u,originalError:p,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=y(Array.isArray(o)?o:o?[o]:void 0);const f=y(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=s?s:null==f||null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=c?c:null==f?void 0:f.map((e=>e.start)),this.locations=c&&s?c.map((e=>l(s,e))):null==f?void 0:f.map((e=>l(e.source,e.start)));const v=a(null==p?void 0:p.extensions)?null==p?void 0:p.extensions:void 0;this.extensions=null!==(i=null!=d?d:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+p(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function y(e){return void 0===e||0===e.length?void 0:e}function v(e){return e.toString()}function m(e){return e.toJSON()}function g(e,t,n){return new h(`Syntax Error: ${n}`,{source:e,positions:[t]})}class b{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class E{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const T={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},I=new Set(Object.keys(T));function _(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&I.has(t)}var w,N,S,O;function k(e){return 9===e||32===e}function x(e){return e>=48&&e<=57}function A(e){return e>=97&&e<=122||e>=65&&e<=90}function D(e){return A(e)||95===e}function C(e){return A(e)||x(e)||95===e}function R(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const s=e[t],a=$(s);a!==s.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function $(e){let t=0;for(;t<e.length&&k(e.charCodeAt(t));)++t;return t}function F(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function j(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((e=>0===e.length||k(e.charCodeAt(0)))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let p="";const d=i&&k(e.charCodeAt(0));return(l&&!d||o)&&(p+="\n"),p+=n,(l||u)&&(p+="\n"),'"""'+p+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(w||(w={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(N||(N={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(S||(S={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(O||(O={}));class L{constructor(e){const t=new E(O.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==O.EOF)do{if(e.next)e=e.next;else{const t=q(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===O.COMMENT);return e}}function P(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}function M(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function V(e,t){return U(e.charCodeAt(t))&&B(e.charCodeAt(t+1))}function U(e){return e>=55296&&e<=56319}function B(e){return e>=56320&&e<=57343}function Q(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return O.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function G(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new E(t,n,r,o,s,i)}function q(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return J(e,i);case 33:return G(e,O.BANG,i,i+1);case 36:return G(e,O.DOLLAR,i,i+1);case 38:return G(e,O.AMP,i,i+1);case 40:return G(e,O.PAREN_L,i,i+1);case 41:return G(e,O.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return G(e,O.SPREAD,i,i+3);break;case 58:return G(e,O.COLON,i,i+1);case 61:return G(e,O.EQUALS,i,i+1);case 64:return G(e,O.AT,i,i+1);case 91:return G(e,O.BRACKET_L,i,i+1);case 93:return G(e,O.BRACKET_R,i,i+1);case 123:return G(e,O.BRACE_L,i,i+1);case 124:return G(e,O.PIPE,i,i+1);case 125:return G(e,O.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?te(e,i):z(e,i)}if(x(t)||45===t)return Y(e,i,t);if(D(t))return ne(e,i);throw g(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":M(t)||V(n,i)?`Unexpected character: ${Q(e,i)}.`:`Invalid character: ${Q(e,i)}.`)}return G(e,O.EOF,r,r)}function J(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(M(e))++i;else{if(!V(n,i))break;i+=2}}return G(e,O.COMMENT,t,i,n.slice(t+1,i))}function Y(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),x(o))throw g(e.source,i,`Invalid number, unexpected digit after 0: ${Q(e,i)}.`)}else i=K(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=K(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(s=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=K(e,i,o),o=r.charCodeAt(i)),46===o||D(o))throw g(e.source,i,`Invalid number, expected digit but got: ${Q(e,i)}.`);return G(e,s?O.FLOAT:O.INT,t,i,r.slice(t,i))}function K(e,t,n){if(!x(n))throw g(e.source,t,`Invalid number, expected digit but got: ${Q(e,t)}.`);const r=e.source.body;let i=t+1;for(;x(r.charCodeAt(i));)++i;return i}function z(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),G(e,O.STRING,t,i+1,s);if(92!==r){if(10===r||13===r)break;if(M(r))++i;else{if(!V(n,i))throw g(e.source,i,`Invalid character within String: ${Q(e,i)}.`);i+=2}}else{s+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?H(e,i):X(e,i):ee(e,i);s+=t.value,i+=t.size,o=i}}throw g(e.source,i,"Unterminated string.")}function H(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!M(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Z(e),r<0)break}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function X(e,t){const n=e.source.body,r=W(n,t+2);if(M(r))return{value:String.fromCodePoint(r),size:6};if(U(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=W(n,t+8);if(B(e))return{value:String.fromCodePoint(r,e),size:12}}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function W(e,t){return Z(e.charCodeAt(t))<<12|Z(e.charCodeAt(t+1))<<8|Z(e.charCodeAt(t+2))<<4|Z(e.charCodeAt(t+3))}function Z(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw g(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function te(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){a+=n.slice(s,o),c.push(a);const r=G(e,O.BLOCK_STRING,t,o+3,R(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(M(r))++o;else{if(!V(n,o))throw g(e.source,o,`Invalid character within String: ${Q(e,o)}.`);o+=2}else a+=n.slice(s,o),c.push(a),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;else a+=n.slice(s,o),s=o+1,o+=4}throw g(e.source,o,"Unterminated string.")}function ne(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&C(n.charCodeAt(i));)++i;return G(e,O.NAME,t,i,n.slice(t,i))}function re(e){return ie(e,[])}function ie(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:ie(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(ie(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+ie(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const oe=function(e,t){return e instanceof t};class se{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||o(!1,`Body must be a string. Received: ${re(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ae(e){return oe(e,se)}function ce(e,t){return new de(e,t).parseDocument()}function ue(e,t){const n=new de(e,t);n.expectToken(O.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(O.EOF),r}function le(e,t){const n=new de(e,t);n.expectToken(O.SOF);const r=n.parseConstValueLiteral();return n.expectToken(O.EOF),r}function pe(e,t){const n=new de(e,t);n.expectToken(O.SOF);const r=n.parseTypeReference();return n.expectToken(O.EOF),r}class de{constructor(e,t={}){const n=ae(e)?e:new se(e);this._lexer=new L(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(O.NAME);return this.node(e,{kind:S.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:S.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF)})}parseDefinition(){if(this.peek(O.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===O.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw g(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(O.BRACE_L))return this.node(e,{kind:S.OPERATION_DEFINITION,operation:w.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(O.NAME)&&(n=this.parseName()),this.node(e,{kind:S.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(O.NAME);switch(e.value){case"query":return w.QUERY;case"mutation":return w.MUTATION;case"subscription":return w.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:S.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(O.DOLLAR),this.node(e,{kind:S.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:S.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R)})}parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(O.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:S.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,t,O.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(t,{kind:S.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(O.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(O.NAME)?this.node(e,{kind:S.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:S.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:S.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:S.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case O.BRACKET_L:return this.parseList(e);case O.BRACE_L:return this.parseObject(e);case O.INT:return this.advanceLexer(),this.node(t,{kind:S.INT,value:t.value});case O.FLOAT:return this.advanceLexer(),this.node(t,{kind:S.FLOAT,value:t.value});case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:S.BOOLEAN,value:!0});case"false":return this.node(t,{kind:S.BOOLEAN,value:!1});case"null":return this.node(t,{kind:S.NULL});default:return this.node(t,{kind:S.ENUM,value:t.value})}case O.DOLLAR:if(e){if(this.expectToken(O.DOLLAR),this._lexer.token.kind===O.NAME){const e=this._lexer.token.value;throw g(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:S.STRING,value:e.value,block:e.kind===O.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:S.LIST,values:this.any(O.BRACKET_L,(()=>this.parseValueLiteral(e)),O.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:S.OBJECT,fields:this.any(O.BRACE_L,(()=>this.parseObjectField(e)),O.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),this.node(t,{kind:S.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(O.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(O.AT),this.node(t,{kind:S.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(O.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(O.BRACKET_R),t=this.node(e,{kind:S.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(O.BANG)?this.node(e,{kind:S.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:S.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return this.node(e,{kind:S.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(O.COLON);const n=this.parseNamedType();return this.node(e,{kind:S.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:S.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:S.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(O.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:S.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(O.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:S.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:S.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:S.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:S.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:S.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw g(this._lexer.source,this._lexer.token.start,`${fe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:S.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===O.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:S.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:S.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:S.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:S.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:S.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:S.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:S.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:S.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(N,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new b(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw g(this._lexer.source,t.start,`Expected ${he(e)}, found ${fe(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==O.NAME||t.value!==e)throw g(this._lexer.source,t.start,`Expected "${e}", found ${fe(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===O.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return g(this._lexer.source,t.start,`Unexpected ${fe(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==O.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw g(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function fe(e){const t=e.value;return he(e.kind)+(null!=t?` "${t}"`:"")}function he(e){return P(e)?`"${e}"`:e}function ye(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map((e=>`"${e}"`));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function ve(e){return e}function me(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function ge(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function be(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Ee(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Ie(i)&&Ie(o)){let s=0;do{++n,s=10*s+i-Te,i=e.charCodeAt(n)}while(Ie(i)&&s>0);let a=0;do{++r,a=10*a+o-Te,o=t.charCodeAt(r)}while(Ie(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const Te=48;function Ie(e){return!isNaN(e)&&Te<=e&&e<=57}function _e(e,t){const n=Object.create(null),r=new we(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const r=n[e]-n[t];return 0!==r?r:Ee(e,t)}))}class we{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Ne(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Ne(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const a=this._rows;for(let e=0;e<=s;e++)a[0][e]=e;for(let e=1;e<=o;e++){const n=a[(e-1)%3],o=a[e%3];let c=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<c&&(c=u),o[t]=u}if(c>t)return}const c=a[o%3][s];return c<=t?c:void 0}}function Ne(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Se(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}const Oe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ke(e){return xe[e.charCodeAt(0)]}const xe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ae=Object.freeze({});function De(e,t,n=T){const r=new Map;for(const e of Object.values(S))r.set(e,Re(t,e));let i,s,a,c=Array.isArray(e),u=[e],l=-1,p=[],d=e;const f=[],h=[];do{l++;const e=l===u.length,g=e&&0!==p.length;if(e){if(s=0===h.length?void 0:f[f.length-1],d=a,a=h.pop(),g)if(c){d=d.slice();let e=0;for(const[t,n]of p){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of p)d[e]=t}l=i.index,u=i.keys,p=i.edits,c=i.inArray,i=i.prev}else if(a){if(s=c?l:u[l],d=a[s],null==d)continue;f.push(s)}let b;if(!Array.isArray(d)){var y,v;_(d)||o(!1,`Invalid AST Node: ${re(d)}.`);const n=e?null===(y=r.get(d.kind))||void 0===y?void 0:y.leave:null===(v=r.get(d.kind))||void 0===v?void 0:v.enter;if(b=null==n?void 0:n.call(t,d,s,a,f,h),b===Ae)break;if(!1===b){if(!e){f.pop();continue}}else if(void 0!==b&&(p.push([s,b]),!e)){if(!_(b)){f.pop();continue}d=b}}var m;void 0===b&&g&&p.push([s,d]),e?f.pop():(i={inArray:c,index:l,keys:u,edits:p,prev:i},c=Array.isArray(d),u=c?d:null!==(m=n[d.kind])&&void 0!==m?m:[],l=-1,p=[],a&&h.push(a),a=d)}while(void 0!==i);return 0!==p.length?p[p.length-1][1]:e}function Ce(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(S)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:a}=Re(e[t],r);i||(i=null!=n||null!=a),o[t]=n,s[t]=a}if(!i)continue;const a={enter(...n){const r=n[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;const a=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],n);if(!1===a)t[s]=r;else if(a===Ae)t[s]=Ae;else if(void 0!==a)return a}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],n);if(r===Ae)t[o]=Ae;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=a}return n}function Re(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function $e(e,t,n){const{enter:r,leave:i}=Re(e,t);return n?i:r}function Fe(e){return De(e,je)}const je={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Le(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Me("(",Le(e.variableDefinitions,", "),")"),n=Le([e.operation,Le([e.name,t]),Le(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Me(" = ",n)+Me(" ",Le(r," "))},SelectionSet:{leave:({selections:e})=>Pe(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Me("",e,": ")+t;let s=o+Me("(",Le(n,", "),")");return s.length>80&&(s=o+Me("(\n",Ve(Le(n,"\n")),"\n)")),Le([s,Le(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Me(" ",Le(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Le(["...",Me("on ",e),Le(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Me("(",Le(n,", "),")")} on ${t} ${Me("",Le(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?j(e):`"${e.replace(Oe,ke)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Le(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Le(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Me("(",Le(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Me("",e,"\n")+Le(["schema",Le(t," "),Pe(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Me("",e,"\n")+Le(["scalar",t,Le(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Me("",e,"\n")+Le(["type",t,Me("implements ",Le(n," & ")),Le(r," "),Pe(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Me("",e,"\n")+t+(Ue(n)?Me("(\n",Ve(Le(n,"\n")),"\n)"):Me("(",Le(n,", "),")"))+": "+r+Me(" ",Le(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Me("",e,"\n")+Le([t+": "+n,Me("= ",r),Le(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Me("",e,"\n")+Le(["interface",t,Me("implements ",Le(n," & ")),Le(r," "),Pe(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Me("",e,"\n")+Le(["union",t,Le(n," "),Me("= ",Le(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Me("",e,"\n")+Le(["enum",t,Le(n," "),Pe(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Me("",e,"\n")+Le([t,Le(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Me("",e,"\n")+Le(["input",t,Le(n," "),Pe(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Me("",e,"\n")+"directive @"+t+(Ue(n)?Me("(\n",Ve(Le(n,"\n")),"\n)"):Me("(",Le(n,", "),")"))+(r?" repeatable":"")+" on "+Le(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Le(["extend schema",Le(e," "),Pe(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Le(["extend scalar",e,Le(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Le(["extend type",e,Me("implements ",Le(t," & ")),Le(n," "),Pe(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Le(["extend interface",e,Me("implements ",Le(t," & ")),Le(n," "),Pe(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Le(["extend union",e,Le(t," "),Me("= ",Le(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Le(["extend enum",e,Le(t," "),Pe(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Le(["extend input",e,Le(t," "),Pe(n)]," ")}};function Le(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Pe(e){return Me("{\n",Ve(Le(e,"\n")),"\n}")}function Me(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ve(e){return Me(" ",e.replace(/\n/g,"\n "))}function Ue(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function Be(e,t){switch(e.kind){case S.NULL:return null;case S.INT:return parseInt(e.value,10);case S.FLOAT:return parseFloat(e.value);case S.STRING:case S.ENUM:case S.BOOLEAN:return e.value;case S.LIST:return e.values.map((e=>Be(e,t)));case S.OBJECT:return ge(e.fields,(e=>e.name.value),(e=>Be(e.value,t)));case S.VARIABLE:return null==t?void 0:t[e.name.value]}}function Qe(e){if(null!=e||o(!1,"Must provide name."),"string"==typeof e||o(!1,"Expected name to be a string."),0===e.length)throw new h("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!C(e.charCodeAt(t)))throw new h(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!D(e.charCodeAt(0)))throw new h(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Ge(e){if("true"===e||"false"===e||"null"===e)throw new h(`Enum values cannot be named: ${e}`);return Qe(e)}function qe(e){return Ye(e)||ze(e)||Xe(e)||Ze(e)||tt(e)||rt(e)||ot(e)||at(e)}function Je(e){if(!qe(e))throw new Error(`Expected ${re(e)} to be a GraphQL type.`);return e}function Ye(e){return oe(e,Dt)}function Ke(e){if(!Ye(e))throw new Error(`Expected ${re(e)} to be a GraphQL Scalar type.`);return e}function ze(e){return oe(e,Ct)}function He(e){if(!ze(e))throw new Error(`Expected ${re(e)} to be a GraphQL Object type.`);return e}function Xe(e){return oe(e,Vt)}function We(e){if(!Xe(e))throw new Error(`Expected ${re(e)} to be a GraphQL Interface type.`);return e}function Ze(e){return oe(e,Ut)}function et(e){if(!Ze(e))throw new Error(`Expected ${re(e)} to be a GraphQL Union type.`);return e}function tt(e){return oe(e,Qt)}function nt(e){if(!tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Enum type.`);return e}function rt(e){return oe(e,qt)}function it(e){if(!rt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Input Object type.`);return e}function ot(e){return oe(e,bt)}function st(e){if(!ot(e))throw new Error(`Expected ${re(e)} to be a GraphQL List type.`);return e}function at(e){return oe(e,Et)}function ct(e){if(!at(e))throw new Error(`Expected ${re(e)} to be a GraphQL Non-Null type.`);return e}function ut(e){return Ye(e)||tt(e)||rt(e)||Tt(e)&&ut(e.ofType)}function lt(e){if(!ut(e))throw new Error(`Expected ${re(e)} to be a GraphQL input type.`);return e}function pt(e){return Ye(e)||ze(e)||Xe(e)||Ze(e)||tt(e)||Tt(e)&&pt(e.ofType)}function dt(e){if(!pt(e))throw new Error(`Expected ${re(e)} to be a GraphQL output type.`);return e}function ft(e){return Ye(e)||tt(e)}function ht(e){if(!ft(e))throw new Error(`Expected ${re(e)} to be a GraphQL leaf type.`);return e}function yt(e){return ze(e)||Xe(e)||Ze(e)}function vt(e){if(!yt(e))throw new Error(`Expected ${re(e)} to be a GraphQL composite type.`);return e}function mt(e){return Xe(e)||Ze(e)}function gt(e){if(!mt(e))throw new Error(`Expected ${re(e)} to be a GraphQL abstract type.`);return e}class bt{constructor(e){qe(e)||o(!1,`Expected ${re(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Et{constructor(e){_t(e)||o(!1,`Expected ${re(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Tt(e){return ot(e)||at(e)}function It(e){if(!Tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL wrapping type.`);return e}function _t(e){return qe(e)&&!at(e)}function wt(e){if(!_t(e))throw new Error(`Expected ${re(e)} to be a GraphQL nullable type.`);return e}function Nt(e){if(e)return at(e)?e.ofType:e}function St(e){return Ye(e)||ze(e)||Xe(e)||Ze(e)||tt(e)||rt(e)}function Ot(e){if(!St(e))throw new Error(`Expected ${re(e)} to be a GraphQL named type.`);return e}function kt(e){if(e){let t=e;for(;Tt(t);)t=t.ofType;return t}}function xt(e){return"function"==typeof e?e():e}function At(e){return"function"==typeof e?e():e}class Dt{constructor(e){var t,n,r,i;const s=null!==(t=e.parseValue)&&void 0!==t?t:ve;this.name=Qe(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ve,this.parseValue=s,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>s(Be(e,t)),this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||o(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${re(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||o(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||o(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ct{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>$t(e),this._interfaces=()=>Rt(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||o(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${re(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Lt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Rt(e){var t;const n=xt(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||o(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $t(e){const t=At(e.fields);return jt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),be(t,((t,n)=>{var r;jt(t)||o(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||o(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${re(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return jt(i)||o(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Qe(n),description:t.description,type:t.type,args:Ft(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode}}))}function Ft(e){return Object.entries(e).map((([e,t])=>({name:Qe(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode})))}function jt(e){return a(e)&&!Array.isArray(e)}function Lt(e){return be(e,(e=>({description:e.description,type:e.type,args:Pt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Pt(e){return ge(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Mt(e){return at(e.type)&&void 0===e.defaultValue}class Vt{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=$t.bind(void 0,e),this._interfaces=Rt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${re(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Lt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ut{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Bt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${re(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Bt(e){const t=xt(e.types);return Array.isArray(t)||o(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Qt{constructor(e){var t,n,r;this.name=Qe(e.name),this.description=e.description,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,jt(r=e.values)||o(!1,`${n} values must be an object with value names as keys.`),Object.entries(r).map((([e,t])=>(jt(t)||o(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${re(t)}.`),{name:Ge(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode})))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=me(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h(`Enum "${this.name}" cannot represent value: ${re(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=re(e);throw new h(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Gt(this,t))}const t=this.getValue(e);if(null==t)throw new h(`Value "${e}" does not exist in "${this.name}" enum.`+Gt(this,e));return t.value}parseLiteral(e,t){if(e.kind!==S.ENUM){const t=Fe(e);throw new h(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Gt(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Fe(e);throw new h(`Value "${t}" does not exist in "${this.name}" enum.`+Gt(this,t),{nodes:e})}return n.value}toConfig(){const e=ge(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Gt(e,t){return ye("the enum value",_e(t,e.getValues().map((e=>e.name))))}class qt{constructor(e){var t;this.name=Qe(e.name),this.description=e.description,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Jt.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=be(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Jt(e){const t=At(e.fields);return jt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),be(t,((t,n)=>(!("resolve"in t)||o(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Qe(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Se(t.extensions),astNode:t.astNode})))}function Yt(e){return at(e.type)&&void 0===e.defaultValue}function Kt(e,t){return e===t||(at(e)&&at(t)||!(!ot(e)||!ot(t)))&&Kt(e.ofType,t.ofType)}function zt(e,t,n){return t===n||(at(n)?!!at(t)&&zt(e,t.ofType,n.ofType):at(t)?zt(e,t.ofType,n):ot(n)?!!ot(t)&&zt(e,t.ofType,n.ofType):!ot(t)&&mt(n)&&(Xe(t)||ze(t))&&e.isSubType(n,t))}function Ht(e,t,n){return t===n||(mt(t)?mt(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!mt(n)&&e.isSubType(n,t))}const Xt=2147483647,Wt=-2147483648,Zt=new Dt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=an(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new h(`Int cannot represent non-integer value: ${re(t)}`);if(n>Xt||n<Wt)throw new h("Int cannot represent non 32-bit signed integer value: "+re(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new h(`Int cannot represent non-integer value: ${re(e)}`);if(e>Xt||e<Wt)throw new h(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==S.INT)throw new h(`Int cannot represent non-integer value: ${Fe(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>Xt||t<Wt)throw new h(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),en=new Dt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=an(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new h(`Float cannot represent non numeric value: ${re(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new h(`Float cannot represent non numeric value: ${re(e)}`);return e},parseLiteral(e){if(e.kind!==S.FLOAT&&e.kind!==S.INT)throw new h(`Float cannot represent non numeric value: ${Fe(e)}`,e);return parseFloat(e.value)}}),tn=new Dt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=an(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new h(`String cannot represent value: ${re(e)}`)},parseValue(e){if("string"!=typeof e)throw new h(`String cannot represent a non string value: ${re(e)}`);return e},parseLiteral(e){if(e.kind!==S.STRING)throw new h(`String cannot represent a non string value: ${Fe(e)}`,{nodes:e});return e.value}}),nn=new Dt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=an(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new h(`Boolean cannot represent a non boolean value: ${re(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new h(`Boolean cannot represent a non boolean value: ${re(e)}`);return e},parseLiteral(e){if(e.kind!==S.BOOLEAN)throw new h(`Boolean cannot represent a non boolean value: ${Fe(e)}`,{nodes:e});return e.value}}),rn=new Dt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=an(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new h(`ID cannot represent value: ${re(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new h(`ID cannot represent value: ${re(e)}`)},parseLiteral(e){if(e.kind!==S.STRING&&e.kind!==S.INT)throw new h("ID cannot represent a non-string and non-integer value: "+Fe(e),{nodes:e});return e.value}}),on=Object.freeze([tn,Zt,en,nn,rn]);function sn(e){return on.some((({name:t})=>e.name===t))}function an(e){if(a(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!a(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function cn(e){return oe(e,ln)}function un(e){if(!cn(e))throw new Error(`Expected ${re(e)} to be a GraphQL directive.`);return e}class ln{constructor(e){var t,n;this.name=Qe(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Se(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||o(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};a(r)&&!Array.isArray(r)||o(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Ft(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Pt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const pn=new ln({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[N.FIELD,N.FRAGMENT_SPREAD,N.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Included when true."}}}),dn=new ln({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[N.FIELD,N.FRAGMENT_SPREAD,N.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Skipped when true."}}}),fn="No longer supported",hn=new ln({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[N.FIELD_DEFINITION,N.ARGUMENT_DEFINITION,N.INPUT_FIELD_DEFINITION,N.ENUM_VALUE],args:{reason:{type:tn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:fn}}}),yn=new ln({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[N.SCALAR],args:{url:{type:new Et(tn),description:"The URL that specifies the behavior of this scalar."}}}),vn=Object.freeze([pn,dn,hn,yn]);function mn(e){return vn.some((({name:t})=>t===e.name))}function gn(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function bn(e,t){if(at(t)){const n=bn(e,t.ofType);return(null==n?void 0:n.kind)===S.NULL?null:n}if(null===e)return{kind:S.NULL};if(void 0===e)return null;if(ot(t)){const n=t.ofType;if(gn(e)){const t=[];for(const r of e){const e=bn(r,n);null!=e&&t.push(e)}return{kind:S.LIST,values:t}}return bn(e,n)}if(rt(t)){if(!a(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=bn(e[r.name],r.type);t&&n.push({kind:S.OBJECT_FIELD,name:{kind:S.NAME,value:r.name},value:t})}return{kind:S.OBJECT,fields:n}}if(ft(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:S.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return En.test(e)?{kind:S.INT,value:e}:{kind:S.FLOAT,value:e}}if("string"==typeof n)return tt(t)?{kind:S.ENUM,value:n}:t===rn&&En.test(n)?{kind:S.INT,value:n}:{kind:S.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${re(n)}.`)}c(!1,"Unexpected input type: "+re(t))}const En=/^-?(?:0|[1-9][0-9]*)$/,Tn=new Ct({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Et(new bt(new Et(wn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Et(wn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:wn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:wn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Et(new bt(new Et(In))),resolve:e=>e.getDirectives()}})}),In=new Ct({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isRepeatable:{type:new Et(nn),resolve:e=>e.isRepeatable},locations:{type:new Et(new bt(new Et(_n))),resolve:e=>e.locations},args:{type:new Et(new bt(new Et(Sn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),_n=new Qt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:N.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:N.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:N.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:N.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:N.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:N.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:N.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:N.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:N.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:N.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:N.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:N.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:N.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:N.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:N.UNION,description:"Location adjacent to a union definition."},ENUM:{value:N.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:N.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:N.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:N.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),wn=new Ct({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Et(xn),resolve:e=>Ye(e)?kn.SCALAR:ze(e)?kn.OBJECT:Xe(e)?kn.INTERFACE:Ze(e)?kn.UNION:tt(e)?kn.ENUM:rt(e)?kn.INPUT_OBJECT:ot(e)?kn.LIST:at(e)?kn.NON_NULL:void c(!1,`Unexpected type: "${re(e)}".`)},name:{type:tn,resolve:e=>"name"in e?e.name:void 0},description:{type:tn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new bt(new Et(Nn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ze(e)||Xe(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new bt(new Et(wn)),resolve(e){if(ze(e)||Xe(e))return e.getInterfaces()}},possibleTypes:{type:new bt(new Et(wn)),resolve(e,t,n,{schema:r}){if(mt(e))return r.getPossibleTypes(e)}},enumValues:{type:new bt(new Et(On)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tt(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new bt(new Et(Sn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rt(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:wn,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Nn=new Ct({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},args:{type:new Et(new bt(new Et(Sn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new Et(wn),resolve:e=>e.type},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),Sn=new Ct({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},type:{type:new Et(wn),resolve:e=>e.type},defaultValue:{type:tn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=bn(n,t);return r?Fe(r):null}},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),On=new Ct({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})});var kn;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(kn||(kn={}));const xn=new Qt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:kn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:kn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:kn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:kn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:kn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:kn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:kn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:kn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),An={name:"__schema",type:new Et(Tn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Dn={name:"__type",type:wn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Et(tn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Cn={name:"__typename",type:new Et(tn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Rn=Object.freeze([Tn,In,_n,wn,Nn,Sn,On,xn]);function $n(e){return Rn.some((({name:t})=>e.name===t))}function Fn(e){return oe(e,Ln)}function jn(e){if(!Fn(e))throw new Error(`Expected ${re(e)} to be a GraphQL schema.`);return e}class Ln{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,a(e)||o(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||o(!1,`"types" must be Array if provided but got: ${re(e.types)}.`),!e.directives||Array.isArray(e.directives)||o(!1,`"directives" must be Array if provided but got: ${re(e.directives)}.`),this.description=e.description,this.extensions=Se(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:vn;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),Pn(t,r);null!=this._queryType&&Pn(this._queryType,r),null!=this._mutationType&&Pn(this._mutationType,r),null!=this._subscriptionType&&Pn(this._subscriptionType,r);for(const e of this._directives)if(cn(e))for(const t of e.args)Pn(t.type,r);Pn(Tn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||o(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,Xe(e)){for(const t of e.getInterfaces())if(Xe(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(ze(e))for(const t of e.getInterfaces())if(Xe(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case w.QUERY:return this.getQueryType();case w.MUTATION:return this.getMutationType();case w.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return Ze(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Ze(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Pn(e,t){const n=kt(e);if(!t.has(n))if(t.add(n),Ze(n))for(const e of n.getTypes())Pn(e,t);else if(ze(n)||Xe(n)){for(const e of n.getInterfaces())Pn(e,t);for(const e of Object.values(n.getFields())){Pn(e.type,t);for(const n of e.args)Pn(n.type,t)}}else if(rt(n))for(const e of Object.values(n.getFields()))Pn(e.type,t);return t}function Mn(e){if(jn(e),e.__validationErrors)return e.__validationErrors;const t=new Un(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!ze(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${re(n)}.`,null!==(r=Bn(t,w.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!ze(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${re(i)}.`,null!==(o=Bn(t,w.MUTATION))&&void 0!==o?o:i.astNode);const s=t.getSubscriptionType();var a;s&&!ze(s)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${re(s)}.`,null!==(a=Bn(t,w.SUBSCRIPTION))&&void 0!==a?a:s.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(cn(n)){Qn(e,n);for(const r of n.args){var t;Qn(e,r),ut(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${re(r.type)}.`,r.astNode),Mt(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Zn(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${re(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const s=Object.values(o.getFields());for(const t of s)if(at(t.type)&&rt(t.type.ofType)){const o=t.type.ofType,s=r[o.name];if(n.push(t),void 0===s)i(o);else{const t=n.slice(s),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))St(r)?($n(r)||Qn(e,r),ze(r)||Xe(r)?(Gn(e,r),qn(e,r)):Ze(r)?Kn(e,r):tt(r)?zn(e,r):rt(r)&&(Hn(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${re(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Vn(e){const t=Mn(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class Un{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new h(e,{nodes:n}))}getErrors(){return this._errors}}function Bn(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function Qn(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Gn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var r;Qn(e,s),pt(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${re(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type);for(const n of s.args){const r=n.name;var i,o;Qn(e,n),ut(n.type)||e.reportError(`The type of ${t.name}.${s.name}(${r}:) must be Input Type but got: ${re(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),Mt(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${s.name}(${r}:) cannot be deprecated.`,[Zn(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function qn(e,t){const n=Object.create(null);for(const r of t.getInterfaces())Xe(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Xn(t,r)):(n[r.name]=!0,Yn(e,t,r),Jn(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Xn(t,r)):e.reportError(`Type ${re(t)} must only implement Interface types, it cannot implement ${re(r)}.`,Xn(t,r))}function Jn(e,t,n){const r=t.getFields();for(const c of Object.values(n.getFields())){const u=c.name,l=r[u];if(l){var i,o;zt(e.schema,l.type,c.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${re(c.type)} but ${t.name}.${u} is type ${re(l.type)}.`,[null===(i=c.astNode)||void 0===i?void 0:i.type,null===(o=l.astNode)||void 0===o?void 0:o.type]);for(const r of c.args){const i=r.name,o=l.args.find((e=>e.name===i));var s,a;o?Kt(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${re(r.type)} but ${t.name}.${u}(${i}:) is type ${re(o.type)}.`,[null===(s=r.astNode)||void 0===s?void 0:s.type,null===(a=o.astNode)||void 0===a?void 0:a.type]):e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,l.astNode])}for(const r of l.args){const i=r.name;!c.args.find((e=>e.name===i))&&Mt(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,c.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes])}}function Yn(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Xn(n,i),...Xn(t,n)])}function Kn(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Wn(t,i.name)):(r[i.name]=!0,ze(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${re(i)}.`,Wn(t,String(i))))}function zn(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Qn(e,t)}function Hn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;Qn(e,o),ut(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${re(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),Yt(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Zn(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type])}}function Xn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function Wn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function Zn(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===hn.name))}function er(e,t){switch(t.kind){case S.LIST_TYPE:{const n=er(e,t.type);return n&&new bt(n)}case S.NON_NULL_TYPE:{const n=er(e,t.type);return n&&new Et(n)}case S.NAMED_TYPE:return e.getType(t.name.value)}}class tr{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nr,t&&(ut(t)&&this._inputTypeStack.push(t),yt(t)&&this._parentTypeStack.push(t),pt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case S.SELECTION_SET:{const e=kt(this.getType());this._parentTypeStack.push(yt(e)?e:void 0);break}case S.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(pt(i)?i:void 0);break}case S.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case S.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(ze(n)?n:void 0);break}case S.INLINE_FRAGMENT:case S.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?er(t,n):kt(this.getType());this._typeStack.push(pt(r)?r:void 0);break}case S.VARIABLE_DEFINITION:{const n=er(t,e.type);this._inputTypeStack.push(ut(n)?n:void 0);break}case S.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ut(r)?r:void 0);break}case S.LIST:{const e=Nt(this.getInputType()),t=ot(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ut(t)?t:void 0);break}case S.OBJECT_FIELD:{const t=kt(this.getInputType());let n,r;rt(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(ut(n)?n:void 0);break}case S.ENUM:{const t=kt(this.getInputType());let n;tt(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case S.SELECTION_SET:this._parentTypeStack.pop();break;case S.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case S.DIRECTIVE:this._directive=null;break;case S.OPERATION_DEFINITION:case S.INLINE_FRAGMENT:case S.FRAGMENT_DEFINITION:this._typeStack.pop();break;case S.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case S.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.LIST:case S.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.ENUM:this._enumValue=null}}}function nr(e,t,n){const r=n.name.value;return r===An.name&&e.getQueryType()===t?An:r===Dn.name&&e.getQueryType()===t?Dn:r===Cn.name&&yt(t)?Cn:ze(t)||Xe(t)?t.getFields()[r]:void 0}function rr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Re(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),_(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Re(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function ir(e){return or(e)||lr(e)||dr(e)}function or(e){return e.kind===S.OPERATION_DEFINITION||e.kind===S.FRAGMENT_DEFINITION}function sr(e){return e.kind===S.FIELD||e.kind===S.FRAGMENT_SPREAD||e.kind===S.INLINE_FRAGMENT}function ar(e){return e.kind===S.VARIABLE||e.kind===S.INT||e.kind===S.FLOAT||e.kind===S.STRING||e.kind===S.BOOLEAN||e.kind===S.NULL||e.kind===S.ENUM||e.kind===S.LIST||e.kind===S.OBJECT}function cr(e){return ar(e)&&(e.kind===S.LIST?e.values.some(cr):e.kind===S.OBJECT?e.fields.some((e=>cr(e.value))):e.kind!==S.VARIABLE)}function ur(e){return e.kind===S.NAMED_TYPE||e.kind===S.LIST_TYPE||e.kind===S.NON_NULL_TYPE}function lr(e){return e.kind===S.SCHEMA_DEFINITION||pr(e)||e.kind===S.DIRECTIVE_DEFINITION}function pr(e){return e.kind===S.SCALAR_TYPE_DEFINITION||e.kind===S.OBJECT_TYPE_DEFINITION||e.kind===S.INTERFACE_TYPE_DEFINITION||e.kind===S.UNION_TYPE_DEFINITION||e.kind===S.ENUM_TYPE_DEFINITION||e.kind===S.INPUT_OBJECT_TYPE_DEFINITION}function dr(e){return e.kind===S.SCHEMA_EXTENSION||fr(e)}function fr(e){return e.kind===S.SCALAR_TYPE_EXTENSION||e.kind===S.OBJECT_TYPE_EXTENSION||e.kind===S.INTERFACE_TYPE_EXTENSION||e.kind===S.UNION_TYPE_EXTENSION||e.kind===S.ENUM_TYPE_EXTENSION||e.kind===S.INPUT_OBJECT_TYPE_EXTENSION}function hr(e){return{Document(t){for(const n of t.definitions)if(!or(n)){const t=n.kind===S.SCHEMA_DEFINITION||n.kind===S.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new h(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function yr(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=ye("to use an inline fragment on",function(e,t,n){if(!mt(t))return[];const r=new Set,i=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(const e of s.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:Xe(t)&&e.isSubType(t,n)?-1:Xe(n)&&e.isSubType(n,t)?1:Ee(t.name,n.name)})).map((e=>e.name))}(r,n,i));""===o&&(o=ye(function(e,t){return ze(e)||Xe(e)?_e(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new h(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}function vr(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=er(e.getSchema(),n);if(t&&!yt(t)){const t=Fe(n);e.reportError(new h(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=er(e.getSchema(),t.typeCondition);if(n&&!yt(n)){const n=Fe(t.typeCondition);e.reportError(new h(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function mr(e){return{...gr(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=_e(n,r.args.map((e=>e.name)));e.reportError(new h(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+ye(o),{nodes:t}))}}}}function gr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vn;for(const e of r)t[e.name]=e.args.map((e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===S.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=_e(n,i);e.reportError(new h(`Unknown argument "${n}" on directive "@${r}".`+ye(o),{nodes:t}))}}return!1}}}function br(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vn;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===S.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,r,i,o,s){const a=n.name.value,u=t[a];if(!u)return void e.reportError(new h(`Unknown directive "@${a}".`,{nodes:n}));const l=function(e){const t=e[e.length-1];switch("kind"in t||c(!1),t.kind){case S.OPERATION_DEFINITION:return function(e){switch(e){case w.QUERY:return N.QUERY;case w.MUTATION:return N.MUTATION;case w.SUBSCRIPTION:return N.SUBSCRIPTION}}(t.operation);case S.FIELD:return N.FIELD;case S.FRAGMENT_SPREAD:return N.FRAGMENT_SPREAD;case S.INLINE_FRAGMENT:return N.INLINE_FRAGMENT;case S.FRAGMENT_DEFINITION:return N.FRAGMENT_DEFINITION;case S.VARIABLE_DEFINITION:return N.VARIABLE_DEFINITION;case S.SCHEMA_DEFINITION:case S.SCHEMA_EXTENSION:return N.SCHEMA;case S.SCALAR_TYPE_DEFINITION:case S.SCALAR_TYPE_EXTENSION:return N.SCALAR;case S.OBJECT_TYPE_DEFINITION:case S.OBJECT_TYPE_EXTENSION:return N.OBJECT;case S.FIELD_DEFINITION:return N.FIELD_DEFINITION;case S.INTERFACE_TYPE_DEFINITION:case S.INTERFACE_TYPE_EXTENSION:return N.INTERFACE;case S.UNION_TYPE_DEFINITION:case S.UNION_TYPE_EXTENSION:return N.UNION;case S.ENUM_TYPE_DEFINITION:case S.ENUM_TYPE_EXTENSION:return N.ENUM;case S.ENUM_VALUE_DEFINITION:return N.ENUM_VALUE;case S.INPUT_OBJECT_TYPE_DEFINITION:case S.INPUT_OBJECT_TYPE_EXTENSION:return N.INPUT_OBJECT;case S.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||c(!1),t.kind===S.INPUT_OBJECT_TYPE_DEFINITION?N.INPUT_FIELD_DEFINITION:N.ARGUMENT_DEFINITION}default:c(!1,"Unexpected kind: "+re(t.kind))}}(s);l&&!u.includes(l)&&e.reportError(new h(`Directive "@${a}" may not be used on ${l}.`,{nodes:n}))}}}function Er(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new h(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function Tr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)pr(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,s,a,c){const u=t.name.value;if(!n[u]&&!r[u]){var l;const n=null!==(l=c[2])&&void 0!==l?l:s,r=null!=n&&"kind"in(p=n)&&(lr(p)||dr(p));if(r&&Ir.includes(u))return;const o=_e(u,r?Ir.concat(i):i);e.reportError(new h(`Unknown type "${u}".`+ye(o),{nodes:t}))}var p}}}const Ir=[...on,...Rn].map((e=>e.name));function _r(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===S.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new h("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function wr(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(t){o?e.reportError(new h("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new h("Must provide only one schema definition.",{nodes:t})),++s)}}}function Nr(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const a=e.getFragmentSpreads(o.selectionSet);if(0!==a.length){r[s]=n.length;for(const t of a){const o=t.name.value,s=r[o];if(n.push(t),void 0===s){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(s),r=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new h(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[s]=void 0}}}function Sr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new h(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function Or(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new h(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function kr(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new h(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function xr(e){switch(e.kind){case S.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:xr(e.value)}))).sort(((e,t)=>Ee(e.name.value,t.name.value))))};case S.LIST:return{...e,values:e.values.map(xr)};case S.INT:case S.FLOAT:case S.STRING:case S.BOOLEAN:case S.NULL:case S.ENUM:case S.VARIABLE:return e}var t}function Ar(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+Ar(t))).join(" and "):e}function Dr(e){const t=new Ur,n=new Map;return{SelectionSet(r){const i=function(e,t,n,r,i){const o=[],[s,a]=Pr(e,t,r,i);if(function(e,t,n,r,i){for(const[o,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let a=i+1;a<s.length;a++){const c=Fr(e,n,r,!1,o,s[i],s[a]);c&&t.push(c)}}(e,o,t,n,s),0!==a.length)for(let r=0;r<a.length;r++){Cr(e,o,t,n,!1,s,a[r]);for(let i=r+1;i<a.length;i++)Rr(e,o,t,n,!1,a[r],a[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,o]of i){const i=Ar(n);e.reportError(new h(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function Cr(e,t,n,r,i,o,s){const a=e.getFragment(s);if(!a)return;const[c,u]=Mr(e,n,a);if(o!==c){$r(e,t,n,r,i,o,c);for(const a of u)r.has(a,s,i)||(r.add(a,s,i),Cr(e,t,n,r,i,o,a))}}function Rr(e,t,n,r,i,o,s){if(o===s)return;if(r.has(o,s,i))return;r.add(o,s,i);const a=e.getFragment(o),c=e.getFragment(s);if(!a||!c)return;const[u,l]=Mr(e,n,a),[p,d]=Mr(e,n,c);$r(e,t,n,r,i,u,p);for(const s of d)Rr(e,t,n,r,i,o,s);for(const o of l)Rr(e,t,n,r,i,o,s)}function $r(e,t,n,r,i,o,s){for(const[a,c]of Object.entries(o)){const o=s[a];if(o)for(const s of c)for(const c of o){const o=Fr(e,n,r,i,a,s,c);o&&t.push(o)}}}function Fr(e,t,n,r,i,o,s){const[a,c,u]=o,[l,p,d]=s,f=r||a!==l&&ze(a)&&ze(l);if(!f){const e=c.name.value,t=p.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[c],[p]];if(jr(c)!==jr(p))return[[i,"they have differing arguments"],[c],[p]]}const h=null==u?void 0:u.type,y=null==d?void 0:d.type;if(h&&y&&Lr(h,y))return[[i,`they return conflicting types "${re(h)}" and "${re(y)}"`],[c],[p]];const v=c.selectionSet,m=p.selectionSet;if(v&&m){const r=function(e,t,n,r,i,o,s,a){const c=[],[u,l]=Pr(e,t,i,o),[p,d]=Pr(e,t,s,a);$r(e,c,t,n,r,u,p);for(const i of d)Cr(e,c,t,n,r,u,i);for(const i of l)Cr(e,c,t,n,r,p,i);for(const i of l)for(const o of d)Rr(e,c,t,n,r,i,o);return c}(e,t,n,f,kt(h),v,kt(y),m);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,i,c,p)}}function jr(e){var t;const n=null!==(t=e.arguments)&&void 0!==t?t:[];return Fe(xr({kind:S.OBJECT,fields:n.map((e=>({kind:S.OBJECT_FIELD,name:e.name,value:e.value})))}))}function Lr(e,t){return ot(e)?!ot(t)||Lr(e.ofType,t.ofType):!!ot(t)||(at(e)?!at(t)||Lr(e.ofType,t.ofType):!!at(t)||!(!ft(e)&&!ft(t))&&e!==t)}function Pr(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),s=Object.create(null);Vr(e,n,r,o,s);const a=[o,Object.keys(s)];return t.set(r,a),a}function Mr(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=er(e.getSchema(),n.typeCondition);return Pr(e,t,i,n.selectionSet)}function Vr(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case S.FIELD:{const e=o.name.value;let n;(ze(t)||Xe(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case S.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case S.INLINE_FRAGMENT:{const n=o.typeCondition,s=n?er(e.getSchema(),n):t;Vr(e,s,o.selectionSet,r,i);break}}}class Ur{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e<t?[e,t]:[t,e],s=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==s&&(!!n||n===s)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}function Br(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(yt(n)&&yt(r)&&!Ht(e.getSchema(),n,r)){const i=re(r),o=re(n);e.reportError(new h(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=er(e.getSchema(),n.typeCondition);if(yt(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!Ht(e.getSchema(),r,i)){const o=re(i),s=re(r);e.reportError(new h(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function Qr(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)pr(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],s=null==t?void 0:t.getType(i);let a;if(o?a=Gr[o.kind]:s&&(a=Ye(u=s)?S.SCALAR_TYPE_EXTENSION:ze(u)?S.OBJECT_TYPE_EXTENSION:Xe(u)?S.INTERFACE_TYPE_EXTENSION:Ze(u)?S.UNION_TYPE_EXTENSION:tt(u)?S.ENUM_TYPE_EXTENSION:rt(u)?S.INPUT_OBJECT_TYPE_EXTENSION:void c(!1,"Unexpected type: "+re(u))),a){if(a!==r.kind){const t=function(e){switch(e){case S.SCALAR_TYPE_EXTENSION:return"scalar";case S.OBJECT_TYPE_EXTENSION:return"object";case S.INTERFACE_TYPE_EXTENSION:return"interface";case S.UNION_TYPE_EXTENSION:return"union";case S.ENUM_TYPE_EXTENSION:return"enum";case S.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:c(!1,"Unexpected kind: "+re(e))}}(r.kind);e.reportError(new h(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=_e(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new h(`Cannot extend type "${i}" because it is not defined.`+ye(o),{nodes:r.name}))}var u}}const Gr={[S.SCALAR_TYPE_DEFINITION]:S.SCALAR_TYPE_EXTENSION,[S.OBJECT_TYPE_DEFINITION]:S.OBJECT_TYPE_EXTENSION,[S.INTERFACE_TYPE_DEFINITION]:S.INTERFACE_TYPE_EXTENSION,[S.UNION_TYPE_DEFINITION]:S.UNION_TYPE_EXTENSION,[S.ENUM_TYPE_DEFINITION]:S.ENUM_TYPE_EXTENSION,[S.INPUT_OBJECT_TYPE_DEFINITION]:S.INPUT_OBJECT_TYPE_EXTENSION};function qr(e){return{...Jr(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of r.args)if(!i.has(n.name)&&Mt(n)){const i=re(n.type);e.reportError(new h(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function Jr(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:vn;for(const e of i)n[e.name]=me(e.args.filter(Mt),(e=>e.name));const o=e.getDocument().definitions;for(const e of o)if(e.kind===S.DIRECTIVE_DEFINITION){var s;const t=null!==(s=e.arguments)&&void 0!==s?s:[];n[e.name.value]=me(t.filter(Yr),(e=>e.name.value))}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],s=new Set(n.map((e=>e.name.value)));for(const[n,o]of Object.entries(i))if(!s.has(n)){const i=qe(o.type)?re(o.type):Fe(o.type);e.reportError(new h(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Yr(e){return e.type.kind===S.NON_NULL_TYPE&&null==e.defaultValue}function Kr(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(ft(kt(n))){if(r){const i=t.name.value,o=re(n);e.reportError(new h(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){const r=t.name.value,i=re(n);e.reportError(new h(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function zr(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}function Hr(e,t,n){return{prev:e,key:t,typename:n}}function Xr(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Wr(e,t,n=Zr){return ei(e,t,n,void 0)}function Zr(e,t,n){let r="Invalid value "+re(t);throw e.length>0&&(r+=` at "value${zr(e)}"`),n.message=r+": "+n.message,n}function ei(e,t,n,r){if(at(t))return null!=e?ei(e,t.ofType,n,r):void n(Xr(r),e,new h(`Expected non-nullable type "${re(t)}" not to be null.`));if(null==e)return null;if(ot(t)){const i=t.ofType;return gn(e)?Array.from(e,((e,t)=>{const o=Hr(r,t,void 0);return ei(e,i,n,o)})):[ei(e,i,n,r)]}if(rt(t)){if(!a(e))return void n(Xr(r),e,new h(`Expected type "${t.name}" to be an object.`));const i={},o=t.getFields();for(const s of Object.values(o)){const o=e[s.name];if(void 0!==o)i[s.name]=ei(o,s.type,n,Hr(r,s.name,t.name));else if(void 0!==s.defaultValue)i[s.name]=s.defaultValue;else if(at(s.type)){const t=re(s.type);n(Xr(r),e,new h(`Field "${s.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!o[i]){const o=_e(i,Object.keys(t.getFields()));n(Xr(r),e,new h(`Field "${i}" is not defined by type "${t.name}".`+ye(o)))}return i}if(ft(t)){let i;try{i=t.parseValue(e)}catch(i){return void n(Xr(r),e,i instanceof h?i:new h(`Expected type "${t.name}". `+i.message,{originalError:i}))}return void 0===i&&n(Xr(r),e,new h(`Expected type "${t.name}".`)),i}c(!1,"Unexpected input type: "+re(t))}function ti(e,t,n){if(e){if(e.kind===S.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&at(t))return;return i}if(at(t)){if(e.kind===S.NULL)return;return ti(e,t.ofType,n)}if(e.kind===S.NULL)return null;if(ot(t)){const r=t.ofType;if(e.kind===S.LIST){const t=[];for(const i of e.values)if(ni(i,n)){if(at(r))return;t.push(null)}else{const e=ti(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=ti(e,r,n);if(void 0===i)return;return[i]}if(rt(t)){if(e.kind!==S.OBJECT)return;const r=Object.create(null),i=me(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||ni(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(at(e.type))return;continue}const o=ti(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if(ft(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}c(!1,"Unexpected input type: "+re(t))}}function ni(e,t){return e.kind===S.VARIABLE&&(null==t||void 0===t[e.name.value])}function ri(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i={};for(const o of t){const t=o.variable.name.value,s=er(e,o.type);if(!ut(s)){const e=Fe(o.type);r(new h(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!si(n,t)){if(o.defaultValue)i[t]=ti(o.defaultValue,s);else if(at(s)){const e=re(s);r(new h(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}const a=n[t];if(null===a&&at(s)){const e=re(s);r(new h(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}))}else i[t]=Wr(a,s,((e,n,i)=>{let s=`Variable "$${t}" got invalid value `+re(n);e.length>0&&(s+=` at "${t}${zr(e)}"`),r(new h(s+"; "+i.message,{nodes:o,originalError:i.originalError}))}))}return i}(e,t,n,(e=>{if(null!=o&&i.length>=o)throw new h("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function ii(e,t,n){var r;const i={},o=me(null!==(r=t.arguments)&&void 0!==r?r:[],(e=>e.name.value));for(const r of e.args){const e=r.name,s=r.type,a=o[e];if(!a){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(at(s))throw new h(`Argument "${e}" of required type "${re(s)}" was not provided.`,{nodes:t});continue}const c=a.value;let u=c.kind===S.NULL;if(c.kind===S.VARIABLE){const t=c.name.value;if(null==n||!si(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(at(s))throw new h(`Argument "${e}" of required type "${re(s)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:c});continue}u=null==n[t]}if(u&&at(s))throw new h(`Argument "${e}" of non-null type "${re(s)}" must not be null.`,{nodes:c});const l=ti(c,s,n);if(void 0===l)throw new h(`Argument "${e}" has invalid value ${Fe(c)}.`,{nodes:c});i[e]=l}return i}function oi(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return ii(e,i,n)}function si(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ai(e,t,n,r,i){const o=new Map;return ci(e,t,n,r,i,o,new Set),o}function ci(e,t,n,r,i,o,s){for(const c of i.selections)switch(c.kind){case S.FIELD:{if(!ui(n,c))continue;const e=(a=c).alias?a.alias.value:a.name.value,t=o.get(e);void 0!==t?t.push(c):o.set(e,[c]);break}case S.INLINE_FRAGMENT:if(!ui(n,c)||!li(e,c,r))continue;ci(e,t,n,r,c.selectionSet,o,s);break;case S.FRAGMENT_SPREAD:{const i=c.name.value;if(s.has(i)||!ui(n,c))continue;s.add(i);const a=t[i];if(!a||!li(e,a,r))continue;ci(e,t,n,r,a.selectionSet,o,s);break}}var a}function ui(e,t){const n=oi(dn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=oi(pn,t,e);return!1!==(null==r?void 0:r.if)}function li(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=er(e,r);return i===n||!!mt(i)&&e.isSubType(i,n)}function pi(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const e of s.definitions)e.kind===S.FRAGMENT_DEFINITION&&(a[e.name.value]=e);const c=ai(n,a,o,r,t.selectionSet);if(c.size>1){const t=[...c.values()].slice(1).flat();e.reportError(new h(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of c.values())t[0].name.value.startsWith("__")&&e.reportError(new h(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function di(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function fi(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=di(n,(e=>e.name.value));for(const[n,i]of r)i.length>1&&e.reportError(new h(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map((e=>e.name))}));return!1}}function hi(e){return{Field:t,Directive:t};function t(t){var n;const r=di(null!==(n=t.arguments)&&void 0!==n?n:[],(e=>e.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}}function yi(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new h(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function vi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vn;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===S.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),s=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===S.SCHEMA_DEFINITION||n.kind===S.SCHEMA_EXTENSION)r=o;else if(pr(n)||fr(n)){const e=n.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new h(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function mi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.values)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value,i=n[o];tt(i)&&i.getValue(r)?e.reportError(new h(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function gi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.fields)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value;bi(n[o],r)?e.reportError(new h(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Field "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function bi(e,t){return!!(ze(e)||Xe(e)||rt(e))&&null!=e.getFields()[t]}function Ei(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new h(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Ti(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||c(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new h(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function Ii(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new h(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function _i(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new h(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):o?e.reportError(new h(`There can be only one ${i} type in schema.`,{nodes:[o,t]})):n[i]=t}return!1}}function wi(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new h(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function Ni(e){return{OperationDefinition(t){var n;const r=di(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],(e=>e.variable.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}}function Si(e){return{ListValue(t){if(!ot(Nt(e.getParentInputType())))return Oi(e,t),!1},ObjectValue(t){const n=kt(e.getInputType());if(!rt(n))return Oi(e,t),!1;const r=me(t.fields,(e=>e.name.value));for(const i of Object.values(n.getFields()))if(!r[i.name]&&Yt(i)){const r=re(i.type);e.reportError(new h(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}},ObjectField(t){const n=kt(e.getParentInputType());if(!e.getInputType()&&rt(n)){const r=_e(t.name.value,Object.keys(n.getFields()));e.reportError(new h(`Field "${t.name.value}" is not defined by type "${n.name}".`+ye(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();at(n)&&e.reportError(new h(`Expected value of type "${re(n)}", found ${Fe(t)}.`,{nodes:t}))},EnumValue:t=>Oi(e,t),IntValue:t=>Oi(e,t),FloatValue:t=>Oi(e,t),StringValue:t=>Oi(e,t),BooleanValue:t=>Oi(e,t)}}function Oi(e,t){const n=e.getInputType();if(!n)return;const r=kt(n);if(ft(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Fe(t)}.`,{nodes:t}))}}catch(r){const i=re(n);r instanceof h?e.reportError(r):e.reportError(new h(`Expected value of type "${i}", found ${Fe(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Fe(t)}.`,{nodes:t}))}}function ki(e){return{VariableDefinition(t){const n=er(e.getSchema(),t.type);if(void 0!==n&&!ut(n)){const n=t.variable.name.value,r=Fe(t.type);e.reportError(new h(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function xi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o}of r){const r=n.name.value,s=t[r];if(s&&i){const t=e.getSchema(),a=er(t,s.type);if(a&&!Ai(t,a,s.defaultValue,i,o)){const t=re(a),o=re(i);e.reportError(new h(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,{nodes:[s,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Ai(e,t,n,r,i){if(at(r)&&!at(t)){const o=void 0!==i;return!!(null!=n&&n.kind!==S.NULL||o)&&zt(e,t,r.ofType)}return zt(e,t,r)}const Di=Object.freeze([hr,Ii,_r,pi,Tr,vr,ki,Kr,yr,Ei,Er,Or,Br,Nr,Ni,Sr,kr,br,vi,mr,hi,Si,qr,xi,Dr,Ti]),Ci=Object.freeze([wr,_i,wi,mi,gi,fi,yi,Tr,br,vi,Qr,gr,hi,Ti,Jr]);class Ri{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===S.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===S.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class $i extends Ri{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Fi extends Ri{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new tr(this._schema);De(e,rr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function ji(e,t,n=Di,r,i=new tr(e)){var s;const a=null!==(s=null==r?void 0:r.maxErrors)&&void 0!==s?s:100;t||o(!1,"Must provide document."),Vn(e);const c=Object.freeze({}),u=[],l=new Fi(e,t,i,(e=>{if(u.length>=a)throw u.push(new h("Too many validation errors, error limit reached. Validation aborted.")),c;u.push(e)})),p=Ce(n.map((e=>e(l))));try{De(t,rr(i,p))}catch(e){if(e!==c)throw e}return u}function Li(e,t,n=Ci){const r=[],i=new $i(e,t,(e=>{r.push(e)}));return De(e,Ce(n.map((e=>e(i))))),r}class Pi extends Error{constructor(e){super("Unexpected error value: "+re(e)),this.name="NonErrorThrown",this.thrownValue=e}}function Mi(e,t,n){var r;const i=(o=e)instanceof Error?o:new Pi(o);var o,s;return s=i,Array.isArray(s.path)?i:new h(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}const Vi=function(e){let t;return function(e,n,r){void 0===t&&(t=new WeakMap);let i=t.get(e);void 0===i&&(i=new WeakMap,t.set(e,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(c=n,u=r,s=function(e,t,n,r,i){const o=new Map,s=new Set;for(const a of i)a.selectionSet&&ci(e,t,n,r,a.selectionSet,o,s);return o}((a=e).schema,a.fragments,a.variableValues,c,u),o.set(r,s)),s;var a,c,u}}();function Ui(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;Gi(t,n,r);const a=qi(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=Ji(a,e,i);return s(t)?t.then((e=>Qi(e,a.errors)),(e=>(a.errors.push(e),Qi(null,a.errors)))):Qi(t,a.errors)}catch(e){return a.errors.push(e),Qi(null,a.errors)}}function Bi(e){const t=Ui(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Qi(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function Gi(e,t,n){t||o(!1,"Must provide document."),Vn(e),null==n||a(n)||o(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function qi(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:c,fieldResolver:u,typeResolver:l,subscribeFieldResolver:p}=e;let d;const f=Object.create(null);for(const e of i.definitions)switch(e.kind){case S.OPERATION_DEFINITION:if(null==c){if(void 0!==d)return[new h("Must provide operation name if query contains multiple operations.")];d=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(d=e);break;case S.FRAGMENT_DEFINITION:f[e.name.value]=e}if(!d)return null!=c?[new h(`Unknown operation named "${c}".`)]:[new h("Must provide an operation.")];const y=ri(r,null!==(n=d.variableDefinitions)&&void 0!==n?n:[],null!=a?a:{},{maxErrors:50});return y.errors?y.errors:{schema:r,fragments:f,rootValue:o,contextValue:s,operation:d,variableValues:y.coerced,fieldResolver:null!=u?u:no,typeResolver:null!=l?l:to,subscribeFieldResolver:null!=p?p:no,errors:[]}}function Ji(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new h(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=ai(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case w.QUERY:return Yi(e,r,n,o,i);case w.MUTATION:return function(e,t,n,r,i){return function(e,t,n){let r=Object.create(null);for(const n of e)r=s(r)?r.then((e=>t(e,n))):t(r,n);return r}(i.entries(),((r,[i,o])=>{const a=Hr(undefined,i,t.name),c=Ki(e,t,n,o,a);return void 0===c?r:s(c)?c.then((e=>(r[i]=e,r))):(r[i]=c,r)}))}(e,r,n,0,i);case w.SUBSCRIPTION:return Yi(e,r,n,o,i)}}function Yi(e,t,n,r,i){const o=Object.create(null);let a=!1;for(const[c,u]of i.entries()){const i=Ki(e,t,n,u,Hr(r,c,t.name));void 0!==i&&(o[c]=i,s(i)&&(a=!0))}return a?(c=o,Promise.all(Object.values(c)).then((e=>{const t=Object.create(null);for(const[n,r]of Object.keys(c).entries())t[r]=e[n];return t}))):o;var c}function Ki(e,t,n,r,i){var o;const a=ro(e.schema,t,r[0]);if(!a)return;const c=a.type,u=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,l=zi(e,a,r,t,i);try{const t=u(n,ii(a,r[0],e.variableValues),e.contextValue,l);let o;return o=s(t)?t.then((t=>Xi(e,c,r,l,i,t))):Xi(e,c,r,l,i,t),s(o)?o.then(void 0,(t=>Hi(Mi(t,r,Xr(i)),c,e))):o}catch(t){return Hi(Mi(t,r,Xr(i)),c,e)}}function zi(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Hi(e,t,n){if(at(t))throw e;return n.errors.push(e),null}function Xi(e,t,n,r,i,o){if(o instanceof Error)throw o;if(at(t)){const s=Xi(e,t.ofType,n,r,i,o);if(null===s)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}return null==o?null:ot(t)?function(e,t,n,r,i,o){if(!gn(o))throw new h(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let c=!1;const u=Array.from(o,((t,o)=>{const u=Hr(i,o,void 0);try{let i;return i=s(t)?t.then((t=>Xi(e,a,n,r,u,t))):Xi(e,a,n,r,u,t),s(i)?(c=!0,i.then(void 0,(t=>Hi(Mi(t,n,Xr(u)),a,e)))):i}catch(t){return Hi(Mi(t,n,Xr(u)),a,e)}}));return c?Promise.all(u):u}(e,t,n,r,i,o):ft(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${re(e)}.serialize(${re(t)})\` to return non-nullable value, returned: ${re(n)}`);return n}(t,o):mt(t)?function(e,t,n,r,i,o){var a;const c=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,u=e.contextValue,l=c(o,u,r,t);return s(l)?l.then((s=>Zi(e,Wi(s,e,t,n,r,o),n,r,i,o))):Zi(e,Wi(l,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):ze(t)?Zi(e,t,n,r,i,o):void c(!1,"Cannot complete value of unexpected output type: "+re(t))}function Wi(e,t,n,r,i,o){if(null==e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(ze(e))throw new h("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${re(o)}, received "${re(e)}".`);const s=t.schema.getType(e);if(null==s)throw new h(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!ze(s))throw new h(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new h(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function Zi(e,t,n,r,i,o){const a=Vi(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(s(c))return c.then((r=>{if(!r)throw eo(t,o,n);return Yi(e,t,o,i,a)}));if(!c)throw eo(t,o,n)}return Yi(e,t,o,i,a)}function eo(e,t,n){return new h(`Expected value of type "${e.name}" but got: ${re(t)}.`,{nodes:n})}const to=function(e,t,n,r){if(a(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if(s(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},no=function(e,t,n,r){if(a(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function ro(e,t,n){const r=n.name.value;return r===An.name&&e.getQueryType()===t?An:r===Dn.name&&e.getQueryType()===t?Dn:r===Cn.name?Cn:t.getFields()[r]}function io(e){return new Promise((t=>t(so(e))))}function oo(e){const t=so(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function so(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:c,typeResolver:u}=e,l=Mn(t);if(l.length>0)return{errors:l};let p;try{p=ce(n)}catch(e){return{errors:[e]}}const d=ji(t,p);return d.length>0?{errors:d}:Ui({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:c,typeResolver:u})}function ao(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}function co(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function uo(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await lo(e);if(!ao(t))return t;const n=t=>Ui({...e,rootValue:t});return co(t,n)}async function lo(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:i}=t;Gi(n,r,i);const o=qi(t);if(!("schema"in o))return{errors:o};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(null==s)throw new h("Schema is not configured to execute subscription operation.",{nodes:r});const a=ai(t,n,i,s,r.selectionSet),[c,u]=[...a.entries()][0],l=ro(t,s,u[0]);if(!l){const e=u[0].name.value;throw new h(`The subscription field "${e}" is not defined.`,{nodes:u})}const p=Hr(void 0,c,s.name),d=zi(e,l,u,s,p);try{var f;const t=ii(l,u[0],i),n=e.contextValue,r=null!==(f=l.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,s=await r(o,t,n,d);if(s instanceof Error)throw s;return s}catch(e){throw Mi(e,u,Xr(p))}}(o);if(!ao(e))throw new Error(`Subscription field must return Async Iterable. Received: ${re(e)}.`);return e}catch(e){if(e instanceof h)return{errors:[e]};throw e}}function po(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||c(!1),e.reportError(new h(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new h(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||c(!1),e.reportError(new h(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=kt(e.getParentInputType());if(rt(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new h(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=kt(e.getInputType());null!=i||c(!1),e.reportError(new h(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function fo(e){return{Field(t){const n=kt(e.getType());n&&$n(n)&&e.reportError(new h(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function ho(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n `}function yo(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===S.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function vo(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new h("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new h("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new h("Schema is not configured for subscriptions.",{nodes:t});return n}throw new h("Can only have query, mutation and subscription operations.",{nodes:t})}function mo(e,t){const n=Bi({schema:e,document:ce(ho({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t}))});return!n.errors&&n.data||c(!1),n.data}function go(e,t){a(e)&&a(e.__schema)||o(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${re(e)}.`);const n=e.__schema,r=ge(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case kn.SCALAR:return new Dt({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case kn.OBJECT:return new Ct({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>y(n)});case kn.INTERFACE:return new Vt({name:(t=e).name,description:t.description,interfaces:()=>h(t),fields:()=>y(t)});case kn.UNION:return function(e){if(!e.possibleTypes){const t=re(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Ut({name:e.name,description:e.description,types:()=>e.possibleTypes.map(d)})}(e);case kn.ENUM:return function(e){if(!e.enumValues){const t=re(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Qt({name:e.name,description:e.description,values:ge(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case kn.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=re(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new qt({name:e.name,description:e.description,fields:()=>m(e.inputFields)})}(e)}var t,n,r;const i=re(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e)));for(const e of[...on,...Rn])r[e.name]&&(r[e.name]=e);const i=n.queryType?d(n.queryType):null,s=n.mutationType?d(n.mutationType):null,c=n.subscriptionType?d(n.subscriptionType):null,u=n.directives?n.directives.map((function(e){if(!e.args){const t=re(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=re(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new ln({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:m(e.args)})})):[];return new Ln({description:n.description,query:i,mutation:s,subscription:c,types:Object.values(r),directives:u,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===kn.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new bt(l(t))}if(e.kind===kn.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=l(t);return new Et(wt(n))}return p(e)}function p(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${re(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function d(e){return He(p(e))}function f(e){return We(p(e))}function h(e){if(null===e.interfaces&&e.kind===kn.INTERFACE)return[];if(!e.interfaces){const t=re(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(f)}function y(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${re(e)}.`);return ge(e.fields,(e=>e.name),v)}function v(e){const t=l(e.type);if(!pt(t)){const e=re(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=re(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:m(e.args)}}function m(e){return ge(e,(e=>e.name),g)}function g(e){const t=l(e.type);if(!ut(t)){const e=re(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?ti(ue(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function bo(e,t,n){jn(e),null!=t&&t.kind===S.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Li(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}(t,e);const r=e.toConfig(),i=Eo(r,t,n);return r===i?e:new Ln(i)}function Eo(e,t,n){var r,i,o,s;const a=[],u=Object.create(null),l=[];let p;const d=[];for(const e of t.definitions)if(e.kind===S.SCHEMA_DEFINITION)p=e;else if(e.kind===S.SCHEMA_EXTENSION)d.push(e);else if(pr(e))a.push(e);else if(fr(e)){const t=e.name.value,n=u[t];u[t]=n?n.concat([e]):[e]}else e.kind===S.DIRECTIVE_DEFINITION&&l.push(e);if(0===Object.keys(u).length&&0===a.length&&0===l.length&&0===d.length&&null==p)return e;const f=Object.create(null);for(const t of e.types)f[t.name]=$n(h=t)||sn(h)?h:Ye(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=_o(e))&&void 0!==o?o:i}return new Dt({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):ze(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Ct({...n,interfaces:()=>[...e.getInterfaces().map(g),...x(r)],fields:()=>({...be(n.fields,b),...w(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):Xe(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Vt({...n,interfaces:()=>[...e.getInterfaces().map(g),...x(r)],fields:()=>({...be(n.fields,b),...w(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):Ze(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Ut({...n,types:()=>[...e.getTypes().map(g),...A(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):tt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[e.name])&&void 0!==t?t:[];return new Qt({...n,values:{...n.values,...k(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):rt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new qt({...n,fields:()=>({...be(n.fields,(e=>({...e,type:m(e.type)}))),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):void c(!1,"Unexpected type: "+re(h));var h;for(const e of a){var y;const t=e.name.value;f[t]=null!==(y=To[t])&&void 0!==y?y:D(e)}const v={query:e.query&&g(e.query),mutation:e.mutation&&g(e.mutation),subscription:e.subscription&&g(e.subscription),...p&&T([p]),...T(d)};return{description:null===(r=p)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...v,types:Object.values(f),directives:[...e.directives.map((function(e){const t=e.toConfig();return new ln({...t,args:be(t.args,E)})})),...l.map((function(e){var t;return new ln({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:N(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=p)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(s=null==n?void 0:n.assumeValid)&&void 0!==s&&s};function m(e){return ot(e)?new bt(m(e.ofType)):at(e)?new Et(m(e.ofType)):g(e)}function g(e){return f[e.name]}function b(e){return{...e,type:m(e.type),args:e.args&&be(e.args,E)}}function E(e){return{...e,type:m(e.type)}}function T(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=I(n.type)}return t}function I(e){var t;const n=e.name.value,r=null!==(t=To[n])&&void 0!==t?t:f[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function _(e){return e.kind===S.LIST_TYPE?new bt(_(e.type)):e.kind===S.NON_NULL_TYPE?new Et(_(e.type)):I(e)}function w(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:_(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:N(n.arguments),deprecationReason:Io(n),astNode:n}}}return t}function N(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=_(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:ti(e.defaultValue,t),deprecationReason:Io(e),astNode:e}}return n}function O(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=_(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:ti(n.defaultValue,e),deprecationReason:Io(n),astNode:n}}}return t}function k(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:Io(n),astNode:n}}}return t}function x(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(I))&&void 0!==t?t:[]}))}function A(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(I))&&void 0!==t?t:[]}))}function D(e){var t;const n=e.name.value,r=null!==(t=u[n])&&void 0!==t?t:[];switch(e.kind){case S.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new Ct({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>x(t),fields:()=>w(t),astNode:e,extensionASTNodes:r})}case S.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new Vt({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>x(t),fields:()=>w(t),astNode:e,extensionASTNodes:r})}case S.ENUM_TYPE_DEFINITION:{var s;const t=[e,...r];return new Qt({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,values:k(t),astNode:e,extensionASTNodes:r})}case S.UNION_TYPE_DEFINITION:{var a;const t=[e,...r];return new Ut({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>A(t),astNode:e,extensionASTNodes:r})}case S.SCALAR_TYPE_DEFINITION:var c;return new Dt({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:_o(e),astNode:e,extensionASTNodes:r});case S.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...r];return new qt({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>O(t),astNode:e,extensionASTNodes:r})}}}}const To=me([...on,...Rn],(e=>e.name));function Io(e){const t=oi(hn,e);return null==t?void 0:t.reason}function _o(e){const t=oi(yn,e);return null==t?void 0:t.url}function wo(e,t){null!=e&&e.kind===S.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Li(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}(e);const n=Eo({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...vn.filter((e=>n.directives.every((t=>t.name!==e.name))))];return new Ln({...n,directives:r})}function No(e,t){return wo(ce(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function So(e){const t=e.toConfig(),n=ge(ko(t.types),(e=>e.name),(function(e){if(Ye(e)||$n(e))return e;if(ze(e)){const t=e.toConfig();return new Ct({...t,interfaces:()=>u(t.interfaces),fields:()=>a(t.fields)})}if(Xe(e)){const t=e.toConfig();return new Vt({...t,interfaces:()=>u(t.interfaces),fields:()=>a(t.fields)})}if(Ze(e)){const t=e.toConfig();return new Ut({...t,types:()=>u(t.types)})}if(tt(e)){const t=e.toConfig();return new Qt({...t,values:Oo(t.values,(e=>e))})}if(rt(e)){const t=e.toConfig();return new qt({...t,fields:()=>Oo(t.fields,(e=>({...e,type:r(e.type)})))})}c(!1,"Unexpected type: "+re(e))}));return new Ln({...t,types:Object.values(n),directives:ko(t.directives).map((function(e){const t=e.toConfig();return new ln({...t,locations:xo(t.locations,(e=>e)),args:s(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return ot(e)?new bt(r(e.ofType)):at(e)?new Et(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function s(e){return Oo(e,(e=>({...e,type:r(e.type)})))}function a(e){return Oo(e,(e=>({...e,type:r(e.type),args:e.args&&s(e.args)})))}function u(e){return ko(e).map(i)}}function Oo(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Ee))n[r]=t(e[r]);return n}function ko(e){return xo(e,(e=>e.name))}function xo(e,t){return e.slice().sort(((e,n)=>Ee(t(e),t(n))))}function Ao(e){return Ro(e,(e=>!mn(e)),Co)}function Do(e){return Ro(e,mn,$n)}function Co(e){return!sn(e)&&!$n(e)}function Ro(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[$o(e),...r.map((e=>function(e){return Bo(e)+"directive @"+e.name+Mo(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>Fo(e)))].filter(Boolean).join("\n\n")}function $o(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),Bo(e)+`schema {\n${t.join("\n")}\n}`}function Fo(e){return Ye(e)?function(e){return Bo(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${Fe({kind:S.STRING,value:t.specifiedByURL})})`);var t}(e):ze(e)?function(e){return Bo(e)+`type ${e.name}`+jo(e)+Lo(e)}(e):Xe(e)?function(e){return Bo(e)+`interface ${e.name}`+jo(e)+Lo(e)}(e):Ze(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Bo(e)+"union "+e.name+n}(e):tt(e)?function(e){const t=e.getValues().map(((e,t)=>Bo(e," ",!t)+" "+e.name+Uo(e.deprecationReason)));return Bo(e)+`enum ${e.name}`+Po(t)}(e):rt(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>Bo(e," ",!t)+" "+Vo(e)));return Bo(e)+`input ${e.name}`+Po(t)}(e):void c(!1,"Unexpected type: "+re(e))}function jo(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function Lo(e){return Po(Object.values(e.getFields()).map(((e,t)=>Bo(e," ",!t)+" "+e.name+Mo(e.args," ")+": "+String(e.type)+Uo(e.deprecationReason))))}function Po(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Mo(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(Vo).join(", ")+")":"(\n"+e.map(((e,n)=>Bo(e," "+t,!n)+" "+t+Vo(e))).join("\n")+"\n"+t+")"}function Vo(e){const t=bn(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${Fe(t)}`),n+Uo(e.deprecationReason)}function Uo(e){return null==e?"":e!==fn?` @deprecated(reason: ${Fe({kind:S.STRING,value:e})})`:" @deprecated"}function Bo(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+Fe({kind:S.STRING,value:r,block:F(r)}).replace(/\n/g,"\n"+t)+"\n"}function Qo(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:S.DOCUMENT,definitions:t}}function Go(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case S.OPERATION_DEFINITION:t.push(r);break;case S.FRAGMENT_DEFINITION:n[r.name.value]=Jo(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of Jo(i.selectionSet))qo(t,n,e);r[i.name?i.name.value:""]={kind:S.DOCUMENT,definitions:e.definitions.filter((e=>e===i||e.kind===S.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return r}function qo(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)qo(e,t,n)}}function Jo(e){const t=[];return De(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function Yo(e){const t=ae(e)?e:new se(e),n=t.body,r=new L(t);let i="",o=!1;for(;r.advance().kind!==O.EOF;){const e=r.token,t=e.kind,s=!P(e.kind);o&&(s||e.kind===O.SPREAD)&&(i+=" ");const a=n.slice(e.start,e.end);t===O.BLOCK_STRING?i+=j(e.value,{minimize:!0}):i+=a,o=s}return i}function Ko(e){const t=zo(e);if(t)throw t;return e}function zo(e){if("string"==typeof e||o(!1,"Expected name to be a string."),e.startsWith("__"))return new h(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Qe(e)}catch(e){return e}}var Ho,Xo;function Wo(e,t){return es(e,t).filter((e=>e.type in Ho))}function Zo(e,t){return es(e,t).filter((e=>e.type in Xo))}function es(e,t){return[...ns(e,t),...ts(e,t)]}function ts(e,t){const n=[],r=fs(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:Ho.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=fs(e.args,t.args);for(const t of r.added)Mt(t)&&n.push({type:Ho.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:Ho.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:Ho.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:Ho.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function ns(e,t){const n=[],r=fs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:Ho.TYPE_REMOVED,description:sn(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)tt(e)&&tt(t)?n.push(...os(e,t)):Ze(e)&&Ze(t)?n.push(...is(e,t)):rt(e)&&rt(t)?n.push(...rs(e,t)):ze(e)&&ze(t)||Xe(e)&&Xe(t)?n.push(...as(e,t),...ss(e,t)):e.constructor!==t.constructor&&n.push({type:Ho.TYPE_CHANGED_KIND,description:`${e.name} changed from ${ps(e)} to ${ps(t)}.`});return n}function rs(e,t){const n=[],r=fs(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)Yt(t)?n.push({type:Ho.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:Xo.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:Ho.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)ls(t.type,i.type)||n.push({type:Ho.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function is(e,t){const n=[],r=fs(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:Xo.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:Ho.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function os(e,t){const n=[],r=fs(e.getValues(),t.getValues());for(const t of r.added)n.push({type:Xo.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:Ho.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function ss(e,t){const n=[],r=fs(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:Xo.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:Ho.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function as(e,t){const n=[],r=fs(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:Ho.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...cs(e,t,i)),us(t.type,i.type)||n.push({type:Ho.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function cs(e,t,n){const r=[],i=fs(t.args,n.args);for(const n of i.removed)r.push({type:Ho.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(ls(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:Xo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=ds(n.defaultValue,n.type),s=ds(o.defaultValue,o.type);i!==s&&r.push({type:Xo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${s}.`})}}else r.push({type:Ho.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)Mt(n)?r.push({type:Ho.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:Xo.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function us(e,t){return ot(e)?ot(t)&&us(e.ofType,t.ofType)||at(t)&&us(e,t.ofType):at(e)?at(t)&&us(e.ofType,t.ofType):St(t)&&e.name===t.name||at(t)&&us(e,t.ofType)}function ls(e,t){return ot(e)?ot(t)&&ls(e.ofType,t.ofType):at(e)?at(t)&&ls(e.ofType,t.ofType)||!at(t)&&ls(e.ofType,t):St(t)&&e.name===t.name}function ps(e){return Ye(e)?"a Scalar type":ze(e)?"an Object type":Xe(e)?"an Interface type":Ze(e)?"a Union type":tt(e)?"an Enum type":rt(e)?"an Input type":void c(!1,"Unexpected type: "+re(e))}function ds(e,t){const n=bn(e,t);return null!=n||c(!1),Fe(xr(n))}function fs(e,t){const n=[],r=[],i=[],o=me(e,(({name:e})=>e)),s=me(t,(({name:e})=>e));for(const t of e){const e=s[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Ho||(Ho={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Xo||(Xo={}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";var e=r;e.__esModule=!0,e.Chat=void 0;var t,i=(t=n(75))&&t.__esModule?t:{default:t};e.Chat=i.default})(),r})()));
|