@yuntijs/arcadia-bff-sdk 1.0.13 → 1.0.15

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.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ArcadiaBffSDK=t():e.ArcadiaBffSDK=t()}(self,(function(){return function(){var e,t,n={615:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var D=[301,302,303,307,308];x.redirect=function(e,t){if(-1===D.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(r,a){var o=new b(e,n);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new x(i,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=d,e.Request=b,e.Response=x),t.Headers=d,t.Request=b,t.Response=x,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},199:function(e,t,n){"use strict";var r=n(313);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),o((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},591:function(e,t,n){"use strict";e.exports=n(199)},313:function(e){"use strict";e.exports=window.React},18:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},750:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},119:function(e,t,n){var r=n(18);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},617:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},845:function(e){function t(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,a){var o=e.apply(n,r);function s(e){t(o,i,a,s,u,"next",e)}function u(e){t(o,i,a,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},473:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},823:function(e,t,n){var r=n(942),i=n(945);function a(t,n,o){return i()?(e.exports=a=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},566:function(e,t,n){var r=n(514);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},862:function(e,t,n){var r=n(251);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},808:function(e,t,n){var r=n(573),i=n(945),a=n(2);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},618:function(e,t,n){var r=n(514);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},573:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},809:function(e,t,n){var r=n(942);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},778:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},945:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},304:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},516:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},524:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},383:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},715:function(e,t,n){var r=n(618);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},183:function(e,t,n){var r=n(65);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},2:function(e,t,n){var r=n(496).default,i=n(617);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},444:function(e,t,n){var r=n(496).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),o=new C(r||[]);return s(a,"_invoke",{value:N(e,n,o)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var v="suspendedStart",m="executing",y="completed",g={};function b(){}function E(){}function x(){}var D={};d(D,c,(function(){return this}));var k=Object.getPrototypeOf,T=k&&k(k(L([])));T&&T!==a&&o.call(T,c)&&(D=T);var w=x.prototype=b.prototype=Object.create(D);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(i,a,s,u){var c=h(e[i],e,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==r(p)&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function N(e,n,r){var i=v;return function(a,o){if(i===m)throw new Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?y:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function I(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=x,s(w,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:E,configurable:!0}),E.displayName=d(x,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,p,"GeneratorFunction")),e.prototype=Object.create(w),e},n.awrap=function(e){return{__await:e}},_(O.prototype),d(O.prototype,l,(function(){return this})),n.AsyncIterator=O,n.async=function(e,t,r,i,a){void 0===a&&(a=Promise);var o=new O(f(e,t,r,i),a);return n.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(w),d(w,p,"Generator"),d(w,c,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},942:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},722:function(e,t,n){var r=n(750),i=n(516),a=n(251),o=n(524);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},406:function(e){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},965:function(e,t,n){var r=n(119),i=n(304),a=n(251),o=n(383);e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},727:function(e,t,n){var r=n(496).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},514:function(e,t,n){var r=n(496).default,i=n(727);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},496:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},251:function(e,t,n){var r=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},407:function(e,t,n){var r=n(573),i=n(942),a=n(778),o=n(823);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e].call(a.exports,a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);i.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},i.d(a,o),a},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";i.r(a),i.d(a,{AllDataProcessListByCountDocument:function(){return hi},AllDataProcessListByPageDocument:function(){return fi},ClientError:function(){return We},CreateDataProcessTaskDocument:function(){return yi},CreateDatasetDocument:function(){return xi},CreateDatasourceDocument:function(){return Ti},CreateEmbedderDocument:function(){return Ii},CreateKnowledgeBaseDocument:function(){return Mi},CreateModelDocument:function(){return Vi},CreateVersionedDatasetDocument:function(){return Ki},CreateWorkerDocument:function(){return Qi},DataProcessDetailsDocument:function(){return mi},DataProcessSupportTypeDocument:function(){return vi},DeleteDataProcessTaskDocument:function(){return gi},DeleteDatasetsDocument:function(){return ki},DeleteDatasourcesDocument:function(){return _i},DeleteEmbeddersDocument:function(){return Ai},DeleteKnowledgeBaseDocument:function(){return qi},DeleteModelsDocument:function(){return $i},DeleteVersionedDatasetsDocument:function(){return Wi},DeleteWorkersDocument:function(){return Zi},GetDatasetDocument:function(){return Ei},GetDatasourceDocument:function(){return Ni},GetEmbedderDocument:function(){return Li},GetKnowledgeBaseDocument:function(){return Ri},GetModelDocument:function(){return Bi},GetVersionedDatasetDocument:function(){return Hi},GetWorkerDocument:function(){return Ji},GraphQLClient:function(){return dt},GraphQLWebSocketClient:function(){return et},ListDatasetsDocument:function(){return bi},ListDatasourcesDocument:function(){return Oi},ListEmbeddersDocument:function(){return Ci},ListKnowledgeBasesDocument:function(){return Pi},ListModelsDocument:function(){return ji},ListVersionedDatasetsDocument:function(){return Yi},ListWorkersDocument:function(){return zi},UpdateDatasetDocument:function(){return Di},UpdateDatasourceDocument:function(){return wi},UpdateEmbedderDocument:function(){return Si},UpdateKnowledgeBaseDocument:function(){return Fi},UpdateModelDocument:function(){return Ui},UpdateVersionedDatasetDocument:function(){return Gi},UpdateWorkerDocument:function(){return Xi},batchRequests:function(){return yt},client:function(){return oa},errorsHandler:function(){return Zt},getSdk:function(){return ta},getSdkWithHooks:function(){return na},gql:function(){return Dt},initGraphQLClient:function(){return ua},initSdk:function(){return la},initSdkWithHooks:function(){return pa},rawRequest:function(){return ht},request:function(){return vt},requestMiddleware:function(){return ia},resolveRequestDocument:function(){return Ge},responseMiddleware:function(){return aa},sdk:function(){return sa},useSdk:function(){return da}});var e={};i.r(e),i.d(e,{exclude:function(){return Kt},extract:function(){return qt},parse:function(){return jt},parseUrl:function(){return Vt},pick:function(){return $t},stringify:function(){return Bt},stringifyUrl:function(){return Ut}});var t=i(444),n=i.n(t),r=i(845),o=i.n(r),s=i(715),u=i.n(s),c=i(722),l=i.n(c),p=i(183),d=i.n(p),f=i(965),h=i.n(f),v=i(618),m=i(473),y=i(566),g=i(496),b=i.n(g),E=JSON,x=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},D=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},k=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.document?e:{url:e,document:t,variables:a,requestHeaders:o,signal:void 0}},T=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.query?e:{url:e,query:t,variables:a,requestHeaders:o,signal:void 0}},w=i(862),_=i(617),O=i(809),N=i(808),I=i(407);function S(e){return"object"==g(e)&&null!==e}function A(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var C=/\r\n|[\n\r]/g;function L(e,t){var n,r=0,i=1,a=w(e.body.matchAll(C));try{for(a.s();!(n=a.n()).done;){var o=n.value;if("number"==typeof o.index||A(!1),o.index>=t)break;r=o.index+o[0].length,i+=1}}catch(e){a.e(e)}finally{a.f()}return{line:i,column:t+1-r}}function P(e){return R(e.source,L(e.source,e.start))}function R(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,u=t.column+s,c="".concat(e.name,":").concat(o,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){for(var d=Math.floor(u/80),h=u%80,v=[],m=0;m<p.length;m+=80)v.push(p.slice(m,m+80));return c+M([["".concat(o," |"),v[0]]].concat(f(v.slice(1,d+1).map((function(e){return["|",e]}))),[["|","^".padStart(h)],["|",v[d+1]]]))}return c+M([["".concat(o-1," |"),l[i-1]],["".concat(o," |"),p],["|","^".padStart(u)],["".concat(o+1," |"),l[i+1]]])}function M(e){var t=e.filter((function(e){var t=c(e,2);t[0];return void 0!==t[1]})),n=Math.max.apply(Math,f(t.map((function(e){return c(e,1)[0].length}))));return t.map((function(e){var t=c(e,2),r=t[0],i=t[1];return r.padStart(n)+(i?" "+i:"")})).join("\n")}function F(e){var 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}var q=function(e,t){O(r,e);var n=N(r);function r(e){var t,i,a,o;m(this,r);for(var s=arguments.length,u=new Array(s>1?s-1:0),c=1;c<s;c++)u[c-1]=arguments[c];var l=F(u),p=l.nodes,d=l.source,f=l.positions,h=l.path,v=l.originalError,y=l.extensions;(t=n.call(this,e)).name="GraphQLError",t.path=null!=h?h:void 0,t.originalError=null!=v?v:void 0,t.nodes=j(Array.isArray(p)?p:p?[p]:void 0);var g=j(null===(i=t.nodes)||void 0===i?void 0:i.map((function(e){return e.loc})).filter((function(e){return null!=e})));t.source=null!=d?d:null==g||null===(a=g[0])||void 0===a?void 0:a.source,t.positions=null!=f?f:null==g?void 0:g.map((function(e){return e.start})),t.locations=f&&d?f.map((function(e){return L(d,e)})):null==g?void 0:g.map((function(e){return L(e.source,e.start)}));var b=S(null==v?void 0:v.extensions)?null==v?void 0:v.extensions:void 0;return t.extensions=null!==(o=null!=y?y:b)&&void 0!==o?o:Object.create(null),Object.defineProperties(_(t),{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=v&&v.stack?Object.defineProperty(_(t),"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(_(t),r):Object.defineProperty(_(t),"stack",{value:Error().stack,writable:!0,configurable:!0}),t}return y(r,[{key:t,get:function(){return"GraphQLError"}},{key:"toString",value:function(){var e=this.message;if(this.nodes){var t,n=w(this.nodes);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.loc&&(e+="\n\n"+P(r.loc))}}catch(e){n.e(e)}finally{n.f()}}else if(this.source&&this.locations){var i,a=w(this.locations);try{for(a.s();!(i=a.n()).done;){var o=i.value;e+="\n\n"+R(this.source,o)}}catch(e){a.e(e)}finally{a.f()}}return e}},{key:"toJSON",value:function(){var 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}}]),r}(I(Error),Symbol.toStringTag);function j(e){return void 0===e||0===e.length?void 0:e}function B(e,t,n){return new q("Syntax Error: ".concat(n),{source:e,positions:[t]})}var V,U,$,K,G=function(e){function t(e,n,r){m(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return y(t,[{key:e,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(Symbol.toStringTag),W=function(e){function t(e,n,r,i,a,o){m(this,t),this.kind=e,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}return y(t,[{key:e,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(Symbol.toStringTag),H={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"]},Y=new Set(Object.keys(H));function z(e){var t=null==e?void 0:e.kind;return"string"==typeof t&&Y.has(t)}function J(e){return 9===e||32===e}function Q(e){return e>=48&&e<=57}function X(e){return e>=97&&e<=122||e>=65&&e<=90}function Z(e){return X(e)||95===e}function ee(e){return X(e)||Q(e)||95===e}function te(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,i=-1,a=0;a<e.length;++a){var o,s=e[a],u=ne(s);u!==s.length&&(r=null!==(o=r)&&void 0!==o?o:a,i=a,0!==a&&u<n&&(n=u))}return e.map((function(e,t){return 0===t?e:e.slice(n)})).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function ne(e){for(var t=0;t<e.length&&J(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(V||(V={})),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"}(U||(U={})),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"}($||($={})),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"}(K||(K={}));var re=function(e){function t(e){m(this,t);var n=new W(K.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return y(t,[{key:e,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==K.EOF)do{if(e.next)e=e.next;else{var t=le(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===K.COMMENT);return e}}]),t}(Symbol.toStringTag);function ie(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ae(e,t){return oe(e.charCodeAt(t))&&se(e.charCodeAt(t+1))}function oe(e){return e>=55296&&e<=56319}function se(e){return e>=56320&&e<=57343}function ue(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return K.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ce(e,t,n,r,i){var a=e.line,o=1+n-e.lineStart;return new W(t,n,r,a,o,i)}function le(e,t){for(var n=e.source.body,r=n.length,i=t;i<r;){var a=n.charCodeAt(i);switch(a){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 pe(e,i);case 33:return ce(e,K.BANG,i,i+1);case 36:return ce(e,K.DOLLAR,i,i+1);case 38:return ce(e,K.AMP,i,i+1);case 40:return ce(e,K.PAREN_L,i,i+1);case 41:return ce(e,K.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return ce(e,K.SPREAD,i,i+3);break;case 58:return ce(e,K.COLON,i,i+1);case 61:return ce(e,K.EQUALS,i,i+1);case 64:return ce(e,K.AT,i,i+1);case 91:return ce(e,K.BRACKET_L,i,i+1);case 93:return ce(e,K.BRACKET_R,i,i+1);case 123:return ce(e,K.BRACE_L,i,i+1);case 124:return ce(e,K.PIPE,i,i+1);case 125:return ce(e,K.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?Ee(e,i):he(e,i)}if(Q(a)||45===a)return de(e,i,a);if(Z(a))return xe(e,i);throw B(e.source,i,39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ie(a)||ae(n,i)?"Unexpected character: ".concat(ue(e,i),"."):"Invalid character: ".concat(ue(e,i),"."))}return ce(e,K.EOF,r,r)}function pe(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){var a=n.charCodeAt(i);if(10===a||13===a)break;if(ie(a))++i;else{if(!ae(n,i))break;i+=2}}return ce(e,K.COMMENT,t,i,n.slice(t+1,i))}function de(e,t,n){var r=e.source.body,i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(Q(a=r.charCodeAt(++i)))throw B(e.source,i,"Invalid number, unexpected digit after 0: ".concat(ue(e,i),"."))}else i=fe(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=fe(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,43!==(a=r.charCodeAt(++i))&&45!==a||(a=r.charCodeAt(++i)),i=fe(e,i,a),a=r.charCodeAt(i)),46===a||Z(a))throw B(e.source,i,"Invalid number, expected digit but got: ".concat(ue(e,i),"."));return ce(e,o?K.FLOAT:K.INT,t,i,r.slice(t,i))}function fe(e,t,n){if(!Q(n))throw B(e.source,t,"Invalid number, expected digit but got: ".concat(ue(e,t),"."));for(var r=e.source.body,i=t+1;Q(r.charCodeAt(i));)++i;return i}function he(e,t){for(var n=e.source.body,r=n.length,i=t+1,a=i,o="";i<r;){var s=n.charCodeAt(i);if(34===s)return o+=n.slice(a,i),ce(e,K.STRING,t,i+1,o);if(92!==s){if(10===s||13===s)break;if(ie(s))++i;else{if(!ae(n,i))throw B(e.source,i,"Invalid character within String: ".concat(ue(e,i),"."));i+=2}}else{o+=n.slice(a,i);var u=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?ve(e,i):me(e,i):be(e,i);o+=u.value,a=i+=u.size}}throw B(e.source,i,"Unterminated string.")}function ve(e,t){for(var n=e.source.body,r=0,i=3;i<12;){var a=n.charCodeAt(t+i++);if(125===a){if(i<5||!ie(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|ge(a))<0)break}throw B(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+i),'".'))}function me(e,t){var n=e.source.body,r=ye(n,t+2);if(ie(r))return{value:String.fromCodePoint(r),size:6};if(oe(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){var i=ye(n,t+8);if(se(i))return{value:String.fromCodePoint(r,i),size:12}}throw B(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}function ye(e,t){return ge(e.charCodeAt(t))<<12|ge(e.charCodeAt(t+1))<<8|ge(e.charCodeAt(t+2))<<4|ge(e.charCodeAt(t+3))}function ge(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function be(e,t){var 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 B(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function Ee(e,t){for(var n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s="",u=[];a<r;){var c=n.charCodeAt(a);if(34===c&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){s+=n.slice(o,a),u.push(s);var l=ce(e,K.BLOCK_STRING,t,a+3,te(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,l}if(92!==c||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==c&&13!==c)if(ie(c))++a;else{if(!ae(n,a))throw B(e.source,a,"Invalid character within String: ".concat(ue(e,a),"."));a+=2}else s+=n.slice(o,a),u.push(s),13===c&&10===n.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=n.slice(o,a),o=a+1,a+=4}throw B(e.source,a,"Unterminated string.")}function xe(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){if(!ee(n.charCodeAt(i)))break;++i}return ce(e,K.NAME,t,i,n.slice(t,i))}function De(e,t){if(!Boolean(e))throw new Error(t)}function ke(e){return Te(e,[])}function Te(e,t){switch(g(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";var n=[].concat(f(t),[e]);if(function(e){return"function"==typeof e.toJSON}(e)){var r=e.toJSON();if(r!==e)return"string"==typeof r?r:Te(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],a=0;a<n;++a)i.push(Te(e[a],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(e){var n=c(e,2);return n[0]+": "+Te(n[1],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var we=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===g(e)&&null!==e){var n,r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var i=ke(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},_e=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};m(this,t),"string"==typeof e||De(!1,"Body must be a string. Received: ".concat(ke(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||De(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||De(!1,"column in locationOffset is 1-indexed and must be positive.")}return y(t,[{key:e,get:function(){return"Source"}}]),t}(Symbol.toStringTag);function Oe(e){return we(e,_e)}function Ne(e,t){return new Ie(e,t).parseDocument()}var Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,e);var r=Oe(t)?t:new _e(t);this._lexer=new re(r),this._options=n,this._tokenCounter=0}return y(e,[{key:"parseName",value:function(){var e=this.expectToken(K.NAME);return this.node(e,{kind:$.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:$.DOCUMENT,definitions:this.many(K.SOF,this.parseDefinition,K.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(K.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===K.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 B(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)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(K.BRACE_L))return this.node(e,{kind:$.OPERATION_DEFINITION,operation:V.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var t,n=this.parseOperationType();return this.peek(K.NAME)&&(t=this.parseName()),this.node(e,{kind:$.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(K.NAME);switch(e.value){case"query":return V.QUERY;case"mutation":return V.MUTATION;case"subscription":return V.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(K.PAREN_L,this.parseVariableDefinition,K.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:$.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(K.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(K.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(K.DOLLAR),this.node(e,{kind:$.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:$.SELECTION_SET,selections:this.many(K.BRACE_L,this.parseSelection,K.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(K.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(K.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:$.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(K.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(K.PAREN_L,t,K.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(K.COLON),this.node(t,{kind:$.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(K.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(K.NAME)?this.node(e,{kind:$.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:$.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:$.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:$.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case K.BRACKET_L:return this.parseList(e);case K.BRACE_L:return this.parseObject(e);case K.INT:return this.advanceLexer(),this.node(t,{kind:$.INT,value:t.value});case K.FLOAT:return this.advanceLexer(),this.node(t,{kind:$.FLOAT,value:t.value});case K.STRING:case K.BLOCK_STRING:return this.parseStringLiteral();case K.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:$.BOOLEAN,value:!0});case"false":return this.node(t,{kind:$.BOOLEAN,value:!1});case"null":return this.node(t,{kind:$.NULL});default:return this.node(t,{kind:$.ENUM,value:t.value})}case K.DOLLAR:if(e){if(this.expectToken(K.DOLLAR),this._lexer.token.kind===K.NAME){var n=this._lexer.token.value;throw B(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:$.STRING,value:e.value,block:e.kind===K.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:$.LIST,values:this.any(K.BRACKET_L,(function(){return t.parseValueLiteral(e)}),K.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:$.OBJECT,fields:this.any(K.BRACE_L,(function(){return t.parseObjectField(e)}),K.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(K.COLON),this.node(t,{kind:$.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(K.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(K.AT),this.node(t,{kind:$.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(K.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(K.BRACKET_R),e=this.node(t,{kind:$.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(K.BANG)?this.node(t,{kind:$.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:$.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(K.STRING)||this.peek(K.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(K.BRACE_L,this.parseOperationTypeDefinition,K.BRACE_R);return this.node(e,{kind:$.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(K.COLON);var n=this.parseNamedType();return this.node(e,{kind:$.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:$.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(K.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(K.BRACE_L,this.parseFieldDefinition,K.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(K.COLON);var i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:$.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(K.PAREN_L,this.parseInputValueDef,K.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(K.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(K.EQUALS)&&(r=this.parseConstValueLiteral());var a=this.parseConstDirectives();return this.node(e,{kind:$.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:a})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:$.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(K.EQUALS)?this.delimitedMany(K.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:$.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(K.BRACE_L,this.parseEnumValueDefinition,K.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:$.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw B(this._lexer.source,this._lexer.token.start,"".concat(Se(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:$.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(K.BRACE_L,this.parseInputValueDef,K.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===K.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)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(K.BRACE_L,this.parseOperationTypeDefinition,K.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:$.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:$.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var 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:$.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var 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:$.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(K.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return this.node(e,{kind:$.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(K.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(U,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){return!0!==this._options.noLocation&&(t.loc=new G(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw B(this._lexer.source,t.start,"Expected ".concat(Ae(e),", found ").concat(Se(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==K.NAME||t.value!==e)throw B(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Se(t),"."));this.advanceLexer()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===K.NAME&&t.value===e&&(this.advanceLexer(),!0)}},{key:"unexpected",value:function(e){var t=null!=e?e:this._lexer.token;return B(this._lexer.source,t.start,"Unexpected ".concat(Se(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}},{key:"advanceLexer",value:function(){var e=this._options.maxTokens,t=this._lexer.advance();if(void 0!==e&&t.kind!==K.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw B(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}]),e}();function Se(e){var t=e.value;return Ae(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Ae(e){return function(e){return e===K.BANG||e===K.DOLLAR||e===K.AMP||e===K.PAREN_L||e===K.PAREN_R||e===K.SPREAD||e===K.COLON||e===K.EQUALS||e===K.AT||e===K.BRACKET_L||e===K.BRACKET_R||e===K.BRACE_L||e===K.PIPE||e===K.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ce=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Le(e){return Pe[e.charCodeAt(0)]}var Pe=["\\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"],Re=Object.freeze({});function Me(e,t){var n=e[t];return"object"===g(n)?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Fe(e){return function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H,r=new Map,i=0,a=Object.values($);i<a.length;i++){var o=a[i];r.set(o,Me(t,o))}var s=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=e,h=void 0,v=void 0,m=[],y=[];do{var g=++p===l.length,b=g&&0!==d.length;if(g){if(h=0===y.length?void 0:m[m.length-1],f=v,v=y.pop(),b)if(u){f=f.slice();var E,x=0,D=w(d);try{for(D.s();!(E=D.n()).done;){var k=c(E.value,2),T=k[0],_=k[1],O=T-x;null===_?(f.splice(O,1),x++):f[O]=_}}catch(e){D.e(e)}finally{D.f()}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));var N,I=w(d);try{for(I.s();!(N=I.n()).done;){var S=c(N.value,2),A=S[0],C=S[1];f[A]=C}}catch(e){I.e(e)}finally{I.f()}}p=s.index,l=s.keys,d=s.edits,u=s.inArray,s=s.prev}else if(v){if(null==(f=v[h=u?p:l[p]]))continue;m.push(h)}var L,P=void 0;if(!Array.isArray(f)){var R,M;z(f)||De(!1,"Invalid AST Node: ".concat(ke(f),"."));var F=g?null===(R=r.get(f.kind))||void 0===R?void 0:R.leave:null===(M=r.get(f.kind))||void 0===M?void 0:M.enter;if((P=null==F?void 0:F.call(t,f,h,v,m,y))===Re)break;if(!1===P){if(!g){m.pop();continue}}else if(void 0!==P&&(d.push([h,P]),!g)){if(!z(P)){m.pop();continue}f=P}}void 0===P&&b&&d.push([h,f]),g?m.pop():(s={inArray:u,index:p,keys:l,edits:d,prev:s},l=(u=Array.isArray(f))?f:null!==(L=n[f.kind])&&void 0!==L?L:[],p=-1,d=[],v&&y.push(v),v=f)}while(void 0!==s);return 0!==d.length?d[d.length-1][1]:e}(e,qe)}var qe={Name:{leave:function(e){return e.value}},Variable:{leave:function(e){return"$"+e.name}},Document:{leave:function(e){return je(e.definitions,"\n\n")}},OperationDefinition:{leave:function(e){var t=Ve("(",je(e.variableDefinitions,", "),")"),n=je([e.operation,je([e.name,t]),je(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Ve(" = ",r)+Ve(" ",je(i," "))}},SelectionSet:{leave:function(e){return Be(e.selections)}},Field:{leave:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet,o=Ve("",t,": ")+n,s=o+Ve("(",je(r,", "),")");return s.length>80&&(s=o+Ve("(\n",Ue(je(r,"\n")),"\n)")),je([s,je(i," "),a]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+Ve(" ",je(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return je(["...",Ve("on ",t),je(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(Ve("(",je(r,", "),")")," ")+"on ".concat(n," ").concat(Ve("",je(i," ")," "))+a}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,a=r.length>1&&r.slice(1).every((function(e){return 0===e.length||J(e.charCodeAt(0))})),o=n.endsWith('\\"""'),s=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=s||u,l=!(null!=t&&t.minimize)&&(!i||e.length>70||c||a||o),p="",d=i&&J(e.charCodeAt(0));return(l&&!d||a)&&(p+="\n"),p+=n,(l||c)&&(p+="\n"),'"""'+p+'"""'}(t):'"'.concat(t.replace(Ce,Le),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+je(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+je(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+Ve("(",je(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return Ve("",t,"\n")+je(["schema",je(n," "),Be(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Ve("",t,"\n")+je(["scalar",n,je(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ve("",t,"\n")+je(["type",n,Ve("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.type,a=e.directives;return Ve("",t,"\n")+n+($e(r)?Ve("(\n",Ue(je(r,"\n")),"\n)"):Ve("(",je(r,", "),")"))+": "+i+Ve(" ",je(a," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,i=e.defaultValue,a=e.directives;return Ve("",t,"\n")+je([n+": "+r,Ve("= ",i),je(a," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ve("",t,"\n")+je(["interface",n,Ve("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.types;return Ve("",t,"\n")+je(["union",n,je(r," "),Ve("= ",je(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.values;return Ve("",t,"\n")+je(["enum",n,je(r," "),Be(i)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Ve("",t,"\n")+je([n,je(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.fields;return Ve("",t,"\n")+je(["input",n,je(r," "),Be(i)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.repeatable,a=e.locations;return Ve("",t,"\n")+"directive @"+n+($e(r)?Ve("(\n",Ue(je(r,"\n")),"\n)"):Ve("(",je(r,", "),")"))+(i?" repeatable":"")+" on "+je(a," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return je(["extend schema",je(t," "),Be(n)]," ")}},ScalarTypeExtension:{leave:function(e){return je(["extend scalar",e.name,je(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return je(["extend type",t,Ve("implements ",je(n," & ")),je(r," "),Be(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return je(["extend interface",t,Ve("implements ",je(n," & ")),je(r," "),Be(i)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return je(["extend union",t,je(n," "),Ve("= ",je(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return je(["extend enum",t,je(n," "),Be(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return je(["extend input",t,je(n," "),Be(r)]," ")}}};function je(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Be(e){return Ve("{\n",Ue(je(e,"\n")),"\n}")}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Ue(e){return Ve(" ",e.replace(/\n/g,"\n "))}function $e(e){var t;return null!==(t=null==e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}var Ke=function(e){var t,n=void 0,r=e.definitions.filter((function(e){return"OperationDefinition"===e.kind}));1===r.length&&(n=null===(t=r[0])||void 0===t||null===(t=t.name)||void 0===t?void 0:t.value);return n},Ge=function(e){if("string"===g(e)){var t=void 0;try{var n=Ne(e);t=Ke(n)}catch(e){}return{query:e,operationName:t}}var r=Ke(e);return{query:Fe(e),operationName:r}},We=function(e){O(n,e);var t=N(n);function n(e,r){var i;m(this,n);var a="".concat(n.extractMessage(e),": ").concat(JSON.stringify({response:e,request:r}));return i=t.call(this,a),Object.setPrototypeOf(_(i),n.prototype),i.response=e,i.request=r,"function"===g(Error.captureStackTrace)&&Error.captureStackTrace(_(i),n),i}return y(n,null,[{key:"extractMessage",value:function(e){var t,n;return null!==(t=null===(n=e.errors)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.message)&&void 0!==t?t:"GraphQL Error (Code: ".concat(e.status,")")}}]),n}(I(Error)),He=i(615),Ye=i.t(He,2),ze="ping",Je="pong",Qe="subscribe",Xe="complete",Ze=function(){function e(t,n,r){m(this,e),this._type=t,this._payload=n,this._id=r}return y(e,[{key:"type",get:function(){return this._type}},{key:"id",get:function(){return this._id}},{key:"payload",get:function(){return this._payload}},{key:"text",get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}}],[{key:"parse",value:function(t,n){var r=JSON.parse(t),i=r.type,a=r.payload,o=r.id;return new e(i,n(a),o)}}]),e}(),et=function(){function e(n,i){var a=this,o=i.onInit,u=i.onAcknowledged,c=i.onPing,l=i.onPong;m(this,e),this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=n,n.addEventListener("open",function(){var e=r(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.socketState.acknowledged=!1,a.socketState.subscriptions={},e.t0=n,e.t1=tt,!o){e.next=10;break}return e.next=7,o();case 7:e.t2=e.sent,e.next=11;break;case 10:e.t2=null;case 11:e.t3=e.t2,e.t4=(0,e.t1)(e.t3).text,e.t0.send.call(e.t0,e.t4);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.addEventListener("close",(function(e){a.socketState.acknowledged=!1,a.socketState.subscriptions={}})),n.addEventListener("error",(function(e){console.error(e)})),n.addEventListener("message",(function(e){try{var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return Ze.parse(e,t)}(e.data);switch(t.type){case"connection_ack":return void(a.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(a.socketState.acknowledged=!0,u&&u(t.payload)));case ze:return void(c?c(t.payload).then((function(e){return n.send(nt(e).text)})):n.send(nt(null).text));case Je:return void(l&&l(t.payload))}if(!a.socketState.acknowledged)return;if(void 0===t.id||null===t.id||!a.socketState.subscriptions[t.id])return;var r=a.socketState.subscriptions[t.id],i=r.query,o=r.variables,p=r.subscriber;switch(t.type){case"next":return!t.payload.errors&&t.payload.data&&p.next&&p.next(t.payload.data),void(t.payload.errors&&p.error&&p.error(new We(s(s({},t.payload),{},{status:200}),{query:i,variables:o})));case"error":return void(p.error&&p.error(new We({errors:t.payload,status:200},{query:i,variables:o})));case Xe:return p.complete&&p.complete(),void delete a.socketState.subscriptions[t.id]}}catch(e){console.error(e),n.close(1006)}n.close(4400,"Unknown graphql-ws message.")}))}return y(e,[{key:"makeSubscribe",value:function(e,t,n,r){var i,a,o=this,s=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[s]={query:e,variables:r,subscriber:n},this.socket.send((i=s,a={query:e,operationName:t,variables:r},new Ze(Qe,a,i)).text),function(){o.socket.send(function(e){return new Ze(Xe,void 0,e)}(s).text),delete o.socketState.subscriptions[s]}}},{key:"rawRequest",value:function(e,t){var n=this;return new Promise((function(r,i){var a;n.rawSubscribe(e,{next:function(e,t){return a={data:e,extensions:t}},error:i,complete:function(){return r(a)}},t)}))}},{key:"request",value:function(e,t){var n=this;return new Promise((function(r,i){var a;n.subscribe(e,{next:function(e){return a=e},error:i,complete:function(){return r(a)}},t)}))}},{key:"subscribe",value:function(e,t,n){var r=Ge(e),i=r.query,a=r.operationName;return this.makeSubscribe(i,a,t,n)}},{key:"rawSubscribe",value:function(e,t,n){return this.makeSubscribe(e,void 0,t,n)}},{key:"ping",value:function(e){this.socket.send(function(e){return new Ze(ze,e,void 0)}(e).text)}},{key:"close",value:function(){this.socket.close(1e3)}}]),e}();function tt(e){return new Ze("connection_init",e)}function nt(e){return new Ze(Je,e,void 0)}et.PROTOCOL="graphql-transport-ws";var rt=["url"],it=["headers","fetch","method","requestMiddleware","responseMiddleware"],at=["headers","fetch","method","requestMiddleware","responseMiddleware"],ot=["headers"],st=["errors"],ut=function(e){var t={};return e&&("undefined"!==("undefined"==typeof Headers?"undefined":g(Headers))&&e instanceof Headers||Ye&&He.Headers&&e instanceof He.Headers?t=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}(e):Array.isArray(e)?e.forEach((function(e){var n=c(e,2),r=n[0],i=n[1];r&&void 0!==i&&(t[r]=i)})):t=e),t},ct=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},lt=function(e){if(!Array.isArray(e.query)){var t=e,n=["query=".concat(encodeURIComponent(ct(t.query)))];return e.variables&&n.push("variables=".concat(encodeURIComponent(t.jsonSerializer.stringify(t.variables)))),t.operationName&&n.push("operationName=".concat(encodeURIComponent(t.operationName))),n.join("&")}if("undefined"!==g(e.variables)&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");var r=e,i=e.query.reduce((function(e,t,n){return e.push({query:ct(t),variables:r.variables?r.jsonSerializer.stringify(r.variables[n]):void 0}),e}),[]);return"query=".concat(encodeURIComponent(r.jsonSerializer.stringify(i)))},pt=function(e){return function(){var n=r(t().mark((function n(r){var i,a,o,u,c,l,d,f,h,v,m,y,b,x,D,k,T;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r.url,a=r.query,o=r.variables,u=r.operationName,c=r.fetch,l=r.fetchOptions,d=r.middleware,f=s({},r.headers),h="",v=void 0,"POST"===e?(v=bt(a,o,u,l.jsonSerializer),"string"===g(v)&&(f["Content-Type"]="application/json")):h=lt({query:a,variables:o,operationName:u,jsonSerializer:null!==(m=l.jsonSerializer)&&void 0!==m?m:E}),y=s({method:e,headers:f,body:v},l),b=i,x=y,!d){t.next=15;break}return t.next=11,Promise.resolve(d(s(s({},y),{},{url:i,operationName:u,variables:o})));case 11:D=t.sent,k=D.url,T=p(D,rt),b=k,x=T;case 15:return h&&(b="".concat(b,"?").concat(h)),t.next=18,c(b,x);case 18:return t.abrupt("return",t.sent);case 19:case"end":return t.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},dt=function(){function e(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,e),this.url=n,this.requestConfig=a,this.rawRequest=r(t().mark((function e(){var n,r,a,o,u,c,l,d,f,h,v,m,y,g,b,E,x,k,T,w=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=w.length,r=new Array(n),a=0;a<n;a++)r[a]=w[a];return o=r[0],u=r[1],c=r[2],l=D(o,u,c),d=i.requestConfig,f=d.headers,h=d.fetch,v=void 0===h?He:h,m=d.method,y=void 0===m?"POST":m,g=d.requestMiddleware,b=d.responseMiddleware,E=p(d,it),x=i.url,void 0!==l.signal&&(E.signal=l.signal),k=Ge(l.query),T=k.operationName,e.abrupt("return",ft({url:x,query:l.query,variables:l.variables,headers:s(s({},ut(xt(f))),ut(l.requestHeaders)),operationName:T,fetch:v,method:y,fetchOptions:E,middleware:g}).then((function(e){return b&&b(e),e})).catch((function(e){throw b&&b(e),e})));case 8:case"end":return e.stop()}}),e)})))}var n;return y(e,[{key:"request",value:(n=r(t().mark((function e(n){var r,i,a,o,u,c,l,d,f,h,v,m,y,g,b,E,D,k,T,w=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=w.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=w[a];return o=i[0],u=i[1],c=x(n,o,u),l=this.requestConfig,d=l.headers,f=l.fetch,h=void 0===f?He:f,v=l.method,m=void 0===v?"POST":v,y=l.requestMiddleware,g=l.responseMiddleware,b=p(l,at),E=this.url,void 0!==c.signal&&(b.signal=c.signal),D=Ge(c.document),k=D.query,T=D.operationName,e.abrupt("return",ft({url:E,query:k,variables:c.variables,headers:s(s({},ut(xt(d))),ut(c.requestHeaders)),operationName:T,fetch:h,method:m,fetchOptions:b,middleware:y}).then((function(e){return g&&g(e),e.data})).catch((function(e){throw g&&g(e),e})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"batchRequests",value:function(e,t){var n,r=this,i=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}}(e,t),a=this.requestConfig,o=a.headers,u=p(a,ot);void 0!==i.signal&&(u.signal=i.signal);var c=i.documents.map((function(e){var t=e.document;return Ge(t).query})),l=i.documents.map((function(e){return e.variables}));return ft({url:this.url,query:c,variables:l,headers:s(s({},ut(xt(o))),ut(i.requestHeaders)),operationName:void 0,fetch:null!==(n=this.requestConfig.fetch)&&void 0!==n?n:He,method:this.requestConfig.method||"POST",fetchOptions:u,middleware:this.requestConfig.requestMiddleware}).then((function(e){return r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e.data})).catch((function(e){throw r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e}))}},{key:"setHeaders",value:function(e){return this.requestConfig.headers=e,this}},{key:"setHeader",value:function(e,t){var n=this.requestConfig.headers;return n?n[e]=t:this.requestConfig.headers=v({},e,t),this}},{key:"setEndpoint",value:function(e){return this.url=e,this}}]),e}(),ft=function(){var e=r(t().mark((function e(n){var r,i,a,o,u,c,l,d,f,h,v,m,y,b,x,D;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.query,o=n.variables,u=n.fetchOptions,c=pt((null!==(r=n.method)&&void 0!==r?r:"post").toUpperCase()),l=Array.isArray(n.query),e.next=5,c(n);case 5:return d=e.sent,e.next=8,Et(d,null!==(i=u.jsonSerializer)&&void 0!==i?i:E);case 8:if(f=e.sent,h=Array.isArray(f)?!f.some((function(e){return!e.data})):Boolean(f.data),v=Array.isArray(f)||!f.errors||Array.isArray(f.errors)&&!f.errors.length||"all"===u.errorPolicy||"ignore"===u.errorPolicy,!(d.ok&&v&&h)){e.next=18;break}return Array.isArray(f),(m=f).errors,y=p(m,st),b="ignore"===u.errorPolicy?y:f,x=l?{data:b}:b,e.abrupt("return",s(s({},x),{},{headers:d.headers,status:d.status}));case 18:throw D="string"===g(f)?{error:f}:f,new We(s(s({},D),{},{status:d.status,headers:d.headers}),{query:a,variables:o});case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ht=function(){var e=r(t().mark((function e(){var n,r,i,a,o,u,c,l,p=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=p.length,r=new Array(n),i=0;i<n;i++)r[i]=p[i];return a=r[0],o=r[1],u=r.slice(2),c=T.apply(void 0,[a,o].concat(f(u))),l=new dt(c.url),e.abrupt("return",l.rawRequest(s({},c)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function vt(e,t){return mt.apply(this,arguments)}function mt(){return mt=r(t().mark((function e(n,r){var i,a,o,u,c,l=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=l.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=l[o];return u=k.apply(void 0,[n,r].concat(a)),c=new dt(u.url),e.abrupt("return",c.request(s({},u)));case 4:case"end":return e.stop()}}),e)}))),mt.apply(this,arguments)}var yt=function(){var e=r(t().mark((function e(){var n,r,i,a,o,s=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,r=new Array(n),i=0;i<n;i++)r[i]=s[i];return a=gt(r),o=new dt(a.url),e.abrupt("return",o.batchRequests(a));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=function(e){return 1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0}},bt=function(e,t,n,r){var i=null!=r?r:E;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:n});if("undefined"!==g(t)&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var a=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return i.stringify(a)},Et=function(){var e=r(t().mark((function e(n,r){var i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.headers.forEach((function(e,t){"content-type"===t.toLowerCase()&&(i=e)})),!i||!(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json"))){e.next=9;break}return e.t0=r,e.next=5,n.text();case 5:return e.t1=e.sent,e.abrupt("return",e.t0.parse.call(e.t0,e.t1));case 9:return e.abrupt("return",n.text());case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),xt=function(e){return"function"===g(e)?e():e},Dt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((function(e,t,r){return"".concat(e).concat(t).concat(r in n?String(n[r]):"")}),"")},kt="%[a-f0-9]{2}",Tt=new RegExp("("+kt+")|([^%]+?)","gi"),wt=new RegExp("("+kt+")+","gi");function _t(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],_t(n),_t(r))}function Ot(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(Tt)||[],n=1;n<t.length;n++)t=(e=_t(t,n).join("")).match(Tt)||[];return e}}function Nt(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+g(e)+"`");try{return decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=wt.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=Ot(n[0]);r!==n[0]&&(t[n[0]]=r)}n=wt.exec(e)}t["%C2"]="�";for(var i=0,a=Object.keys(t);i<a.length;i++){var o=a[i];e=e.replace(new RegExp(o,"g"),t[o])}return e}(e)}}function It(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];var n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function St(e,t){var n={};if(Array.isArray(t)){var r,i=w(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=Object.getOwnPropertyDescriptor(e,a);null!=o&&o.enumerable&&Object.defineProperty(n,a,o)}}catch(e){i.e(e)}finally{i.f()}}else{var s,u=w(Reflect.ownKeys(e));try{for(u.s();!(s=u.n()).done;){var c=s.value,l=Object.getOwnPropertyDescriptor(e,c);if(l.enumerable)t(c,e[c],e)&&Object.defineProperty(n,c,l)}}catch(e){u.e(e)}finally{u.f()}}return n}var At=Symbol("encodeFragmentIdentifier");function Ct(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})):encodeURIComponent(e):e}function Pt(e,t){return t.decode?Nt(e):e}function Rt(e){return Array.isArray(e)?e.sort():"object"===g(e)?Rt(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function Mt(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Ft(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function qt(e){var t=(e=Mt(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function jt(e,t){Ct((t=s({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[].concat(f(r[e]),[n]):r[e]=[n]:r[e]=n};case"colon-list-separator":return function(e,n,r){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(f(r[e]),[n]):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!i&&Pt(n,e).includes(e.arrayFormatSeparator);n=a?Pt(n,e):n;var o=i||a?n.split(e.arrayFormatSeparator).map((function(t){return Pt(t,e)})):null===n?n:Pt(n,e);r[t]=o};case"bracket-separator":return function(t,n,r){var i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),i){var a=null===n?[]:n.split(e.arrayFormatSeparator).map((function(t){return Pt(t,e)}));void 0!==r[t]?r[t]=[].concat(f(r[t]),f(a)):r[t]=a}else r[t]=n?Pt(n,e):n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(f([n[e]].flat()),[t]):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var i,a=w(e.split("&"));try{for(a.s();!(i=a.n()).done;){var o=i.value;if(""!==o){var u=t.decode?o.replace(/\+/g," "):o,l=It(u,"="),p=c(l,2),d=p[0],h=p[1];void 0===d&&(d=u),h=void 0===h?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?h:Pt(h,t),n(Pt(d,t),h,r)}}}catch(e){a.e(e)}finally{a.f()}for(var v=0,m=Object.entries(r);v<m.length;v++){var y=c(m[v],2),b=y[0],E=y[1];if("object"===g(E)&&null!==E)for(var x=0,D=Object.entries(E);x<D.length;x++){var k=c(D[x],2),T=k[0],_=k[1];E[T]=Ft(_,t)}else r[b]=Ft(E,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"===g(n)&&!Array.isArray(n)?e[t]=Rt(n):e[t]=n,e}),Object.create(null))}function Bt(e,t){if(!e)return"";Ct((t=s({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&function(e){return null==e}(e[n])||t.skipEmptyString&&""===e[n]},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),"[",i,"]"].join("")]:[[Lt(t,e),"[",Lt(i,e),"]=",Lt(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),"[]"].join("")]:[[Lt(t,e),"[]=",Lt(r,e)].join("")])}};case"colon-list-separator":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),":list="].join("")]:[[Lt(t,e),":list=",Lt(r,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return function(n){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[Lt(n,e),t,Lt(i,e)].join("")]:[[r,Lt(i,e)].join(e.arrayFormatSeparator)])}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[Lt(t,e)]:[[Lt(t,e),"=",Lt(r,e)].join("")])}}}}(t),i={},a=0,o=Object.entries(e);a<o.length;a++){var u=c(o[a],2),l=u[0],p=u[1];n(l)||(i[l]=p)}var d=Object.keys(i);return!1!==t.sort&&d.sort(t.sort),d.map((function(n){var i=e[n];return void 0===i?"":null===i?Lt(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?Lt(n,t)+"[]":i.reduce(r(n),[]).join("&"):Lt(n,t)+"="+Lt(i,t)})).filter((function(e){return e.length>0})).join("&")}function Vt(e,t){var n,r;t=s({decode:!0},t);var i=It(e,"#"),a=c(i,2),o=a[0],u=a[1];return void 0===o&&(o=e),s({url:null!==(n=null===(r=o)||void 0===r||null===(r=r.split("?"))||void 0===r?void 0:r[0])&&void 0!==n?n:"",query:jt(qt(e),t)},t&&t.parseFragmentIdentifier&&u?{fragmentIdentifier:Pt(u,t)}:{})}function Ut(e,t){t=s(v({encode:!0,strict:!0},At,!0),t);var n=Mt(e.url).split("?")[0]||"",r=qt(e.url),i=Bt(s(s({},jt(r,{sort:!1})),e.query),t);i&&(i="?".concat(i));var a=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){var o=new URL(n);o.hash=e.fragmentIdentifier,a=t[At]?o.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(i).concat(a)}function $t(e,t,n){var r=Vt(e,n=s(v({parseFragmentIdentifier:!0},At,!1),n)),i=r.url,a=r.query,o=r.fragmentIdentifier;return Ut({url:i,query:St(a,t),fragmentIdentifier:o},n)}function Kt(e,t,n){return $t(e,Array.isArray(t)?function(e){return!t.includes(e)}:function(e,n){return!t(e,n)},n)}var Gt,Wt=e,Ht=i(313),Yt=window.antd,zt=function(){window.location.href="/logout"},Jt=function(){var e;null===(e=Gt)||void 0===e||e.destroy(),Gt=void 0},Qt=window.TenxUiMaterials,Xt={create:"创建",delete:"删除",update:"更新",patch:"更新",get:"获取",list:"列取",watch:"监听"},Zt=function(e){var t=e.filter((function(e){var t;return void 0!==(null===(t=e.extensions)||void 0===t?void 0:t.code)}));0!==t.length?t.forEach((function(e){switch(e.extensions.code){case"InvalidToken":Gt||(Gt=Yt.Modal.warn({okText:"确定",content:"用户凭证可能已失效,点击确定重新登录",onOk:zt,onCancel:Jt}));break;case"Forbidden":!function(e){var t,n=(null===(t=e.extensions)||void 0===t||null===(t=t.exception)||void 0===t?void 0:t.details)||{},r=n.name,i=n.kind,a=n.verb,o="当前用户没有权限";o+="".concat(Xt[a]||"操作"),i&&(o+=" ".concat(i)),r&&(o+=" ".concat(r)),Qt.notification.warn({message:"当前操作未被授权",description:o,detail:e})}(e)}})):console.warn("uncaught errors",e)},en=i(406),tn=i.n(en);var nn=function(){return nn=Object.assign||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},nn.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var rn=new Map,an=new Map,on=!0,sn=!1;function un(e){return e.replace(/[\s,]+/g," ").trim()}function cn(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=un((o=e.loc).source.body.substring(o.start,o.end)),a=an.get(r);a&&!a.has(i)?on&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||an.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var o})),nn(nn({},e),{definitions:n})}function ln(e){var t=un(e);if(!rn.has(t)){var n=Ne(e,{experimentalFragmentVariables:sn,allowLegacyFragmentVariables:sn});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");rn.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===b()(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(cn(n)))}return rn.get(t)}function pn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),ln(r)}var dn,fn=pn,hn=function(){rn.clear(),an.clear()},vn=function(){on=!1},mn=function(){sn=!0},yn=function(){sn=!1};(dn=pn||(pn={})).gql=fn,dn.resetCaches=hn,dn.disableFragmentWarnings=vn,dn.enableExperimentalFragmentVariables=mn,dn.disableExperimentalFragmentVariables=yn,pn.default=pn;var gn=pn,bn=i(591),En=function(){},xn=En(),Dn=Object,kn=function(e){return e===xn},Tn=function(e){return"function"==typeof e},wn=function(e,t){return s(s({},e),t)},_n=function(e){return Tn(e.then)},On=new WeakMap,Nn=0,In=function e(t){var n,r,i=g(t),a=t&&t.constructor,o=a==Date;if(Dn(t)!==t||o||a==RegExp)n=o?t.toJSON():"symbol"==i?t.toString():"string"==i?JSON.stringify(t):""+t;else{if(n=On.get(t))return n;if(n=++Nn+"~",On.set(t,n),a==Array){for(n="@",r=0;r<t.length;r++)n+=e(t[r])+",";On.set(t,n)}if(a==Dn){n="#";for(var s=Dn.keys(t).sort();!kn(r=s.pop());)kn(t[r])||(n+=r+":"+e(t[r])+",");On.set(t,n)}}return n},Sn=new WeakMap,An={},Cn={},Ln="undefined",Pn=("undefined"==typeof window?"undefined":g(window))!=Ln,Rn=("undefined"==typeof document?"undefined":g(document))!=Ln,Mn=function(e,t){var n=Sn.get(e);return[function(){return!kn(t)&&e.get(t)||An},function(r){if(!kn(t)){var i=e.get(t);t in Cn||(Cn[t]=i),n[5](t,wn(i,r),i||An)}},n[6],function(){return!kn(t)&&t in Cn?Cn[t]:!kn(t)&&e.get(t)||An}]},Fn=!0,qn=Pn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[En,En],jn=c(qn,2),Bn=jn[0],Vn=jn[1],Un={isOnline:function(){return Fn},isVisible:function(){var e=Rn&&document.visibilityState;return kn(e)||"hidden"!==e}},$n={initFocus:function(e){return Rn&&document.addEventListener("visibilitychange",e),Bn("focus",e),function(){Rn&&document.removeEventListener("visibilitychange",e),Vn("focus",e)}},initReconnect:function(e){var t=function(){Fn=!0,e()},n=function(){Fn=!1};return Bn("online",t),Bn("offline",n),function(){Vn("online",t),Vn("offline",n)}}},Kn=!Ht.useId,Gn=!Pn||"Deno"in window,Wn=function(e){return Pn&&g(window.requestAnimationFrame)!=Ln?window.requestAnimationFrame(e):setTimeout(e,1)},Hn=Gn?Ht.useEffect:Ht.useLayoutEffect,Yn="undefined"!=typeof navigator&&navigator.connection,zn=!Gn&&Yn&&(["slow-2g","2g"].includes(Yn.effectiveType)||Yn.saveData),Jn=function(e){if(Tn(e))try{e=e()}catch(t){e=""}var t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?In(e):"",t]},Qn=0,Xn=function(){return++Qn},Zn=3,er=0,tr=2,nr=1;function rr(){return ir.apply(this,arguments)}function ir(){return ir=r(t().mark((function e(){var n,i,a,o,s,u,l,p,d,f,h,v,m,y,g,b,E,x,D,k,T,_,O=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(_=function(){return _=r(t().mark((function e(n){var r,a,s,l,p,f,g,b,E,x,D,k,T,w,_,O,N,I,S,A,C,L,P;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Jn(n),a=c(r,1),s=a[0]){e.next=3;break}return e.abrupt("return");case 3:if(l=Mn(o,s),p=c(l,2),f=p[0],g=p[1],b=Sn.get(o),E=c(b,4),x=E[0],D=E[1],k=E[2],T=E[3],w=function(){var e=x[s];return v&&(delete k[s],delete T[s],e&&e[0])?e[0](2).then((function(){return f().data})):f().data},!(i.length<3)){e.next=8;break}return e.abrupt("return",w());case 8:if(_=u,N=Xn(),D[s]=[N,0],I=!kn(h),S=f(),A=S.data,C=S._c,L=kn(C)?A:C,I&&(h=Tn(h)?h(L,A):h,g({data:h,_c:L})),Tn(_))try{_=_(L)}catch(e){O=e}if(!_||!_n(_)){e.next=29;break}return e.next=21,_.catch((function(e){O=e}));case 21:if(_=e.sent,N===D[s][0]){e.next=28;break}if(!O){e.next=25;break}throw O;case 25:return e.abrupt("return",_);case 28:O&&I&&m(O)&&(d=!0,g({data:L,_c:xn}));case 29:if(d&&(O||(Tn(d)?(P=d(_,L),g({data:P,error:xn,_c:xn})):g({data:_,error:xn,_c:xn}))),D[s][1]=Xn(),Promise.resolve(w()).then((function(){g({_c:xn})})),!O){e.next=36;break}if(!y){e.next=35;break}throw O;case 35:return e.abrupt("return");case 36:return e.abrupt("return",_);case 37:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)},T=function(e){return _.apply(this,arguments)},n=O.length,i=new Array(n),a=0;a<n;a++)i[a]=O[a];if(o=i[0],s=i[1],u=i[2],l=i[3],p=wn({populateCache:!0,throwOnError:!0},"boolean"==typeof l?{revalidate:l}:l||{}),d=p.populateCache,f=p.rollbackOnError,h=p.optimisticData,v=!1!==p.revalidate,m=function(e){return"function"==typeof f?f(e):!1!==f},y=p.throwOnError,!Tn(s)){e.next=18;break}g=s,b=[],E=o.keys(),x=w(E);try{for(x.s();!(D=x.n()).done;)k=D.value,!/^\$(inf|sub)\$/.test(k)&&g(o.get(k)._k)&&b.push(k)}catch(e){x.e(e)}finally{x.f()}return e.abrupt("return",Promise.all(b.map(T)));case 18:return e.abrupt("return",T(s));case 19:case"end":return e.stop()}}),e)}))),ir.apply(this,arguments)}var ar=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},or=function(e,t){if(!Sn.has(e)){var n=wn($n,t),r={},i=rr.bind(xn,e),a=En,o={},s=function(e,t){var n=o[e]||[];return o[e]=n,n.push(t),function(){return n.splice(n.indexOf(t),1)}},u=function(t,n,r){e.set(t,n);var i=o[t];if(i){var a,s=w(i);try{for(s.s();!(a=s.n()).done;){(0,a.value)(n,r)}}catch(e){s.e(e)}finally{s.f()}}},c=function(){if(!Sn.has(e)&&(Sn.set(e,[r,{},{},{},i,u,s]),!Gn)){var t=n.initFocus(setTimeout.bind(xn,ar.bind(xn,r,0))),o=n.initReconnect(setTimeout.bind(xn,ar.bind(xn,r,1)));a=function(){t&&t(),o&&o(),Sn.delete(e)}}};return c(),[e,i,c,a]}return[e,Sn.get(e)[4]]},sr=or(new Map),ur=c(sr,2),cr=ur[0],lr=ur[1],pr=wn({onLoadingSlow:En,onSuccess:En,onError:En,onErrorRetry:function(e,t,n,r,i){var a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!kn(a)&&o>a||setTimeout(r,s,i)},onDiscarded:En,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:zn?5e3:3e3,compare:function(e,t){return In(e)==In(t)},isPaused:function(){return!1},cache:cr,mutate:lr,fallback:{}},Un),dr=function(e,t){var n=wn(e,t);if(t){var r=e.use,i=e.fallback,a=t.use,o=t.fallback;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=wn(i,o))}return n},fr=(0,Ht.createContext)({}),hr="$inf$",vr=Pn&&window.__SWR_DEVTOOLS_USE__,mr=vr?window.__SWR_DEVTOOLS_USE__:[],yr=function(e){return Tn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},gr=function(){return wn(pr,(0,Ht.useContext)(fr))},br=mr.concat((function(e){return function(t,n,r){var i=n&&function(){var e=Jn(t),r=c(e,1),i=r[0],a=Sn.get(cr),o=c(a,4),s=o[3];if(i.startsWith(hr))return n.apply(void 0,arguments);var u=s[i];return kn(u)?n.apply(void 0,arguments):(delete s[i],u)};return e(t,i,r)}}));vr&&(window.__SWR_DEVTOOLS_REACT__=Ht);var Er,xr,Dr,kr,Tr,wr,_r,Or,Nr,Ir,Sr,Ar,Cr,Lr,Pr,Rr,Mr,Fr,qr,jr,Br,Vr,Ur,$r,Kr,Gr,Wr,Hr,Yr,zr,Jr,Qr,Xr,Zr,ei,ti,ni,ri,ii,ai,oi,si,ui=Ht.use||function(e){if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((function(t){e.status="fulfilled",e.value=t}),(function(t){e.status="rejected",e.reason=t})),e)},ci={dedupe:!0},li=(Dn.defineProperty((function(e){var t=e.value,n=(0,Ht.useContext)(fr),r=Tn(t),i=(0,Ht.useMemo)((function(){return r?t(n):t}),[r,n,t]),a=(0,Ht.useMemo)((function(){return r?i:dr(n,i)}),[r,n,i]),o=i&&i.provider,s=(0,Ht.useRef)(xn);o&&!s.current&&(s.current=or(o(a.cache||cr),i));var u=s.current;return u&&(a.cache=u[0],a.mutate=u[1]),Hn((function(){if(u)return u[2]&&u[2](),u[3]}),[]),(0,Ht.createElement)(fr.Provider,wn(e,{value:a}))}),"defaultValue",{value:pr}),Er=function(e,n,i){var a=i.cache,o=i.compare,u=i.suspense,l=i.fallbackData,p=i.revalidateOnMount,d=i.revalidateIfStale,f=i.refreshInterval,h=i.refreshWhenHidden,v=i.refreshWhenOffline,m=i.keepPreviousData,y=Sn.get(a),g=c(y,4),b=g[0],E=g[1],x=g[2],D=g[3],k=Jn(e),T=c(k,2),w=T[0],_=T[1],O=(0,Ht.useRef)(!1),N=(0,Ht.useRef)(!1),I=(0,Ht.useRef)(w),S=(0,Ht.useRef)(n),A=(0,Ht.useRef)(i),C=function(){return A.current},L=function(){return C().isVisible()&&C().isOnline()},P=Mn(a,w),R=c(P,4),M=R[0],F=R[1],q=R[2],j=R[3],B=(0,Ht.useRef)({}).current,V=kn(l)?i.fallback[w]:l,U=function(e,t){for(var n in B){var r=n;if("data"===r){if(!o(e[r],t[r])){if(!kn(e[r]))return!1;if(!o(Q,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},$=(0,Ht.useMemo)((function(){var e=!!w&&!!n&&(kn(p)?!C().isPaused()&&!u&&(!!kn(d)||d):p),t=function(t){var n=wn(t);return delete n._k,e?s({isValidating:!0,isLoading:!0},n):n},r=M(),i=j(),a=t(r),o=r===i?a:t(i),c=a;return[function(){var e=t(M());return U(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},function(){return o}]}),[a,w]),K=(0,bn.useSyncExternalStore)((0,Ht.useCallback)((function(e){return q(w,(function(t,n){U(n,t)||e()}))}),[a,w]),$[0],$[1]),G=!O.current,W=b[w]&&b[w].length>0,H=K.data,Y=kn(H)?V:H,z=K.error,J=(0,Ht.useRef)(Y),Q=m?kn(H)?J.current:H:Y,X=!(W&&!kn(z))&&(G&&!kn(p)?p:!C().isPaused()&&(u?!kn(Y)&&d:kn(Y)||d)),Z=!!(w&&n&&G&&X),ee=kn(K.isValidating)?Z:K.isValidating,te=kn(K.isLoading)?Z:K.isLoading,ne=(0,Ht.useCallback)(function(){var e=r(t().mark((function e(n){var r,a,s,u,l,p,d,f,h,v,m,y,g,D,k,T;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.current,w&&r&&!N.current&&!C().isPaused()){e.next=3;break}return e.abrupt("return",!1);case 3:return u=!0,l=n||{},p=!x[w]||!l.dedupe,d=function(){return Kn?!N.current&&w===I.current&&O.current:w===I.current},f={isValidating:!1,isLoading:!1},h=function(){F(f)},v=function(){var e=x[w];e&&e[1]===s&&delete x[w]},m={isValidating:!0},kn(M().data)&&(m.isLoading=!0),e.prev=12,p&&(F(m),i.loadingTimeout&&kn(M().data)&&setTimeout((function(){u&&d()&&C().onLoadingSlow(w,i)}),i.loadingTimeout),x[w]=[r(_),Xn()]),y=c(x[w],2),a=y[0],s=y[1],e.next=19,a;case 19:if(a=e.sent,p&&setTimeout(v,i.dedupingInterval),x[w]&&x[w][1]===s){e.next=24;break}return p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 24:if(f.error=xn,g=E[w],kn(g)||!(s<=g[0]||s<=g[1]||0===g[1])){e.next=30;break}return h(),p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 30:D=M().data,f.data=o(D,a)?D:a,p&&d()&&C().onSuccess(a,w,i),e.next=41;break;case 35:e.prev=35,e.t0=e.catch(12),v(),k=C(),T=k.shouldRetryOnError,k.isPaused()||(f.error=e.t0,p&&d()&&(k.onError(e.t0,w,k),(!0===T||Tn(T)&&T(e.t0))&&L()&&k.onErrorRetry(e.t0,w,k,(function(e){var t=b[w];t&&t[0]&&t[0](Zn,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0})));case 41:return u=!1,h(),e.abrupt("return",!0);case 44:case"end":return e.stop()}}),e,null,[[12,35]])})));return function(t){return e.apply(this,arguments)}}(),[w,a]),re=(0,Ht.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rr.apply(void 0,[a,I.current].concat(t))}),[]);if(Hn((function(){S.current=n,A.current=i,kn(H)||(J.current=H)})),Hn((function(){if(w){var e=ne.bind(xn,ci),t=0,n=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}}(w,b,(function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==er){var i=Date.now();C().revalidateOnFocus&&i>t&&L()&&(t=i+C().focusThrottleInterval,e())}else if(n==nr)C().revalidateOnReconnect&&L()&&e();else{if(n==tr)return ne();if(n==Zn)return ne(r)}}));return N.current=!1,I.current=w,O.current=!0,F({_k:_}),X&&(kn(Y)||Gn?e():Wn(e)),function(){N.current=!0,n()}}}),[w]),Hn((function(){var e;function t(){var t=Tn(f)?f(M().data):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){M().error||!h&&!C().isVisible()||!v&&!C().isOnline()?t():ne(ci).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,h,v,w]),(0,Ht.useDebugValue)(Q),u&&kn(Y)&&w){if(!Kn&&Gn)throw new Error("Fallback data is required when using suspense in SSR.");S.current=n,A.current=i,N.current=!1;var ie=D[w];if(!kn(ie)){var ae=re(ie);ui(ae)}if(!kn(z))throw z;var oe=ne(ci);kn(Q)||(oe.status="fulfilled",oe.value=!0),ui(oe)}return{mutate:re,get data(){return B.data=!0,Q},get error(){return B.error=!0,z},get isValidating(){return B.isValidating=!0,ee},get isLoading(){return B.isLoading=!0,te}}},function(){for(var e=gr(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=yr(n),a=c(i,3),o=a[0],s=a[1],u=a[2],l=dr(e,u),p=Er,d=l.use,f=(d||[]).concat(br),h=f.length;h--;)p=f[h](p);return p(o,s||l.fetcher||null,l)}),pi={revalidateOnFocus:"false"!==window.localStorage.getItem("swr_revalidateOnFocus"),revalidateIfStale:"false"!==window.localStorage.getItem("swr_revalidateIfStale"),revalidateOnReconnect:"false"!==window.localStorage.getItem("swr_revalidateOnReconnect")},di=function(e,t,n){var r,i=li(e,t,u()(u()({},pi),n||{})),a=i.error,o=i.data,s=o&&"[object Object]"===Object.prototype.toString.call(o)&&Object.keys(o||{}).length>0;return u()(u()({},i),{},{data:s?o:(null==a||null===(r=a.response)||void 0===r?void 0:r.data)||o,loading:!o&&!a})},fi=gn(xr||(xr=tn()(["\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n }\n message\n }\n }\n}\n "]))),hi=gn(Dr||(Dr=tn()(["\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),vi=gn(kr||(kr=tn()(["\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n "]))),mi=gn(Tr||(Tr=tn()(["\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n config {\n name\n description\n status\n children {\n name\n enable\n zh_name\n description\n preview {\n file_name\n content {\n pre\n post\n }\n }\n }\n }\n }\n message\n }\n }\n}\n "]))),yi=gn(wr||(wr=tn()(["\n mutation createDataProcessTask($input: AddDataProcessInput) {\n dataProcess {\n createDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),gi=gn(_r||(_r=tn()(["\n mutation deleteDataProcessTask($input: DeleteDataProcessInput) {\n dataProcess {\n deleteDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),bi=gn(Or||(Or=tn()(["\n query listDatasets($input: ListDatasetInput, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n listDatasets(input: $input) {\n totalCount\n nodes {\n ... on Dataset {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),Ei=gn(Nr||(Nr=tn()(["\n query getDataset($name: String!, $namespace: String!, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n getDataset(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n}\n "]))),xi=gn(Ir||(Ir=tn()(["\n mutation createDataset($input: CreateDatasetInput) {\n Dataset {\n createDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),Di=gn(Sr||(Sr=tn()(["\n mutation updateDataset($input: UpdateDatasetInput) {\n Dataset {\n updateDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),ki=gn(Ar||(Ar=tn()(["\n mutation deleteDatasets($input: DeleteCommonInput) {\n Dataset {\n deleteDatasets(input: $input)\n }\n}\n "]))),Ti=gn(Cr||(Cr=tn()(["\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n }\n }\n}\n "]))),wi=gn(Lr||(Lr=tn()(["\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n }\n }\n}\n "]))),_i=gn(Pr||(Pr=tn()(["\n mutation deleteDatasources($input: DeleteCommonInput!) {\n Datasource {\n deleteDatasources(input: $input)\n }\n}\n "]))),Oi=gn(Rr||(Rr=tn()(["\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Ni=gn(Mr||(Mr=tn()(["\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n }\n }\n}\n "]))),Ii=gn(Fr||(Fr=tn()(["\n mutation createEmbedder($input: CreateEmbedderInput!) {\n Embedder {\n createEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n}\n "]))),Si=gn(qr||(qr=tn()(["\n mutation updateEmbedder($input: UpdateEmbedderInput) {\n Embedder {\n updateEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n}\n "]))),Ai=gn(jr||(jr=tn()(["\n mutation deleteEmbedders($input: DeleteCommonInput!) {\n Embedder {\n deleteEmbedders(input: $input)\n }\n}\n "]))),Ci=gn(Br||(Br=tn()(["\n query listEmbedders($input: ListCommonInput!) {\n Embedder {\n listEmbedders(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Embedder {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Li=gn(Vr||(Vr=tn()(["\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n}\n "]))),Pi=gn(Ur||(Ur=tn()(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n "]))),Ri=gn($r||($r=tn()(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Mi=gn(Kr||(Kr=tn()(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Fi=gn(Gr||(Gr=tn()(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),qi=gn(Wr||(Wr=tn()(["\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n "]))),ji=gn(Hr||(Hr=tn()(["\n query listModels($input: ListCommonInput!) {\n Model {\n listModels(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Model {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Bi=gn(Yr||(Yr=tn()(["\n query getModel($name: String!, $namespace: String!) {\n Model {\n getModel(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n}\n "]))),Vi=gn(zr||(zr=tn()(["\n mutation createModel($input: CreateModelInput!) {\n Model {\n createModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n}\n "]))),Ui=gn(Jr||(Jr=tn()(["\n mutation updateModel($input: UpdateModelInput) {\n Model {\n updateModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n}\n "]))),$i=gn(Qr||(Qr=tn()(["\n mutation deleteModels($input: DeleteCommonInput) {\n Model {\n deleteModels(input: $input)\n }\n}\n "]))),Ki=gn(Xr||(Xr=tn()(["\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n "]))),Gi=gn(Zr||(Zr=tn()(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "]))),Wi=gn(ei||(ei=tn()(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "]))),Hi=gn(ti||(ti=tn()(["\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "]))),Yi=gn(ni||(ni=tn()(["\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),zi=gn(ri||(ri=tn()(["\n query listWorkers($input: ListCommonInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n model\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n }\n }\n}\n "]))),Ji=gn(ii||(ii=tn()(["\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n }\n }\n}\n "]))),Qi=gn(ai||(ai=tn()(["\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n model\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),Xi=gn(oi||(oi=tn()(["\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),Zi=gn(si||(si=tn()(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "]))),ea=function(e,t,n){return e()};function ta(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea;return{allDataProcessListByPage:function(n,r){return t((function(t){return e.request(fi,n,u()(u()({},r),t))}),"allDataProcessListByPage","query")},allDataProcessListByCount:function(n,r){return t((function(t){return e.request(hi,n,u()(u()({},r),t))}),"allDataProcessListByCount","query")},dataProcessSupportType:function(n,r){return t((function(t){return e.request(vi,n,u()(u()({},r),t))}),"dataProcessSupportType","query")},dataProcessDetails:function(n,r){return t((function(t){return e.request(mi,n,u()(u()({},r),t))}),"dataProcessDetails","query")},createDataProcessTask:function(n,r){return t((function(t){return e.request(yi,n,u()(u()({},r),t))}),"createDataProcessTask","mutation")},deleteDataProcessTask:function(n,r){return t((function(t){return e.request(gi,n,u()(u()({},r),t))}),"deleteDataProcessTask","mutation")},listDatasets:function(n,r){return t((function(t){return e.request(bi,n,u()(u()({},r),t))}),"listDatasets","query")},getDataset:function(n,r){return t((function(t){return e.request(Ei,n,u()(u()({},r),t))}),"getDataset","query")},createDataset:function(n,r){return t((function(t){return e.request(xi,n,u()(u()({},r),t))}),"createDataset","mutation")},updateDataset:function(n,r){return t((function(t){return e.request(Di,n,u()(u()({},r),t))}),"updateDataset","mutation")},deleteDatasets:function(n,r){return t((function(t){return e.request(ki,n,u()(u()({},r),t))}),"deleteDatasets","mutation")},createDatasource:function(n,r){return t((function(t){return e.request(Ti,n,u()(u()({},r),t))}),"createDatasource","mutation")},updateDatasource:function(n,r){return t((function(t){return e.request(wi,n,u()(u()({},r),t))}),"updateDatasource","mutation")},deleteDatasources:function(n,r){return t((function(t){return e.request(_i,n,u()(u()({},r),t))}),"deleteDatasources","mutation")},listDatasources:function(n,r){return t((function(t){return e.request(Oi,n,u()(u()({},r),t))}),"listDatasources","query")},getDatasource:function(n,r){return t((function(t){return e.request(Ni,n,u()(u()({},r),t))}),"getDatasource","query")},createEmbedder:function(n,r){return t((function(t){return e.request(Ii,n,u()(u()({},r),t))}),"createEmbedder","mutation")},updateEmbedder:function(n,r){return t((function(t){return e.request(Si,n,u()(u()({},r),t))}),"updateEmbedder","mutation")},deleteEmbedders:function(n,r){return t((function(t){return e.request(Ai,n,u()(u()({},r),t))}),"deleteEmbedders","mutation")},listEmbedders:function(n,r){return t((function(t){return e.request(Ci,n,u()(u()({},r),t))}),"listEmbedders","query")},getEmbedder:function(n,r){return t((function(t){return e.request(Li,n,u()(u()({},r),t))}),"getEmbedder","query")},listKnowledgeBases:function(n,r){return t((function(t){return e.request(Pi,n,u()(u()({},r),t))}),"listKnowledgeBases","query")},getKnowledgeBase:function(n,r){return t((function(t){return e.request(Ri,n,u()(u()({},r),t))}),"getKnowledgeBase","query")},createKnowledgeBase:function(n,r){return t((function(t){return e.request(Mi,n,u()(u()({},r),t))}),"createKnowledgeBase","mutation")},updateKnowledgeBase:function(n,r){return t((function(t){return e.request(Fi,n,u()(u()({},r),t))}),"updateKnowledgeBase","mutation")},deleteKnowledgeBase:function(n,r){return t((function(t){return e.request(qi,n,u()(u()({},r),t))}),"deleteKnowledgeBase","mutation")},listModels:function(n,r){return t((function(t){return e.request(ji,n,u()(u()({},r),t))}),"listModels","query")},getModel:function(n,r){return t((function(t){return e.request(Bi,n,u()(u()({},r),t))}),"getModel","query")},createModel:function(n,r){return t((function(t){return e.request(Vi,n,u()(u()({},r),t))}),"createModel","mutation")},updateModel:function(n,r){return t((function(t){return e.request(Ui,n,u()(u()({},r),t))}),"updateModel","mutation")},deleteModels:function(n,r){return t((function(t){return e.request($i,n,u()(u()({},r),t))}),"deleteModels","mutation")},createVersionedDataset:function(n,r){return t((function(t){return e.request(Ki,n,u()(u()({},r),t))}),"createVersionedDataset","mutation")},updateVersionedDataset:function(n,r){return t((function(t){return e.request(Gi,n,u()(u()({},r),t))}),"updateVersionedDataset","mutation")},deleteVersionedDatasets:function(n,r){return t((function(t){return e.request(Wi,n,u()(u()({},r),t))}),"deleteVersionedDatasets","mutation")},getVersionedDataset:function(n,r){return t((function(t){return e.request(Hi,n,u()(u()({},r),t))}),"getVersionedDataset","query")},listVersionedDatasets:function(n,r){return t((function(t){return e.request(Yi,n,u()(u()({},r),t))}),"listVersionedDatasets","query")},listWorkers:function(n,r){return t((function(t){return e.request(zi,n,u()(u()({},r),t))}),"listWorkers","query")},getWorker:function(n,r){return t((function(t){return e.request(Ji,n,u()(u()({},r),t))}),"getWorker","query")},createWorker:function(n,r){return t((function(t){return e.request(Qi,n,u()(u()({},r),t))}),"createWorker","mutation")},updateWorker:function(n,r){return t((function(t){return e.request(Xi,n,u()(u()({},r),t))}),"updateWorker","mutation")},deleteWorkers:function(n,r){return t((function(t){return e.request(Zi,n,u()(u()({},r),t))}),"deleteWorkers","mutation")}}}function na(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea,n=ta(e,t),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[e].concat(h()(Object.keys(t).sort().map((function(e){return t[e]}))))};return u()(u()({},n),{},{useAllDataProcessListByPage:function(e,t){return di(r("AllDataProcessListByPage",e),(function(){return n.allDataProcessListByPage(e)}),t)},useAllDataProcessListByCount:function(e,t){return di(r("AllDataProcessListByCount",e),(function(){return n.allDataProcessListByCount(e)}),t)},useDataProcessSupportType:function(e,t){return di(r("DataProcessSupportType",e),(function(){return n.dataProcessSupportType(e)}),t)},useDataProcessDetails:function(e,t){return di(r("DataProcessDetails",e),(function(){return n.dataProcessDetails(e)}),t)},useListDatasets:function(e,t){return di(r("ListDatasets",e),(function(){return n.listDatasets(e)}),t)},useGetDataset:function(e,t){return di(r("GetDataset",e),(function(){return n.getDataset(e)}),t)},useListDatasources:function(e,t){return di(r("ListDatasources",e),(function(){return n.listDatasources(e)}),t)},useGetDatasource:function(e,t){return di(r("GetDatasource",e),(function(){return n.getDatasource(e)}),t)},useListEmbedders:function(e,t){return di(r("ListEmbedders",e),(function(){return n.listEmbedders(e)}),t)},useGetEmbedder:function(e,t){return di(r("GetEmbedder",e),(function(){return n.getEmbedder(e)}),t)},useListKnowledgeBases:function(e,t){return di(r("ListKnowledgeBases",e),(function(){return n.listKnowledgeBases(e)}),t)},useGetKnowledgeBase:function(e,t){return di(r("GetKnowledgeBase",e),(function(){return n.getKnowledgeBase(e)}),t)},useListModels:function(e,t){return di(r("ListModels",e),(function(){return n.listModels(e)}),t)},useGetModel:function(e,t){return di(r("GetModel",e),(function(){return n.getModel(e)}),t)},useGetVersionedDataset:function(e,t){return di(r("GetVersionedDataset",e),(function(){return n.getVersionedDataset(e)}),t)},useListVersionedDatasets:function(e,t){return di(r("ListVersionedDatasets",e),(function(){return n.listVersionedDatasets(e)}),t)},useListWorkers:function(e,t){return di(r("ListWorkers",e),(function(){return n.listWorkers(e)}),t)},useGetWorker:function(e,t){return di(r("GetWorker",e),(function(){return n.getWorker(e)}),t)}})}var ra=["url","operationName"],ia=function(e){var t=e.url,n=e.operationName,r=d()(e,ra),i=t.split("?"),a=l()(i,2),o=a[0],s=a[1],c=Wt.parse(s);n&&(c.o=n);var p=function(){try{return JSON.parse(window.localStorage.getItem("authData")||"{}")}catch(e){return console.warn("getAuthData failed",e),{}}}().token||{},f=p.token_type,h=p.id_token,v=f&&h&&"".concat(f," ").concat(h);return u()(u()({url:"".concat(o,"?").concat(Wt.stringify(c)),operationName:n,credentials:"include"},r),{},{headers:v?u()(u()({},e.headers),{},{Authorization:v}):u()({},e.headers)})},aa=function(e){var t,n=e.errors||(null===(t=e.response)||void 0===t?void 0:t.errors);n&&Zt(n)},oa=new dt("https://portal.172.22.96.136.nip.io/kubeagi-apis/bff",{requestMiddleware:ia,responseMiddleware:aa}),sa=na(oa),ua=function(e,t){return t||(t={}),t.requestMiddleware?t.requestMiddleware=function(){var e=o()(n()().mark((function e(r){var i;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.requestMiddleware(r);case 2:return i=e.sent,e.abrupt("return",ia(i));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():t.requestMiddleware=ia,t.responseMiddleware||(t.responseMiddleware=aa),new dt(e||endpoint,t)},ca=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.withHooks,r=e.requestConfig,i=ua(t,r),a=n?na(i):ta(i);return a},la=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig,r=ca({withHooks:!1,url:t,requestConfig:n});return r},pa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig,r=ca({withHooks:!0,url:t,requestConfig:n});return r},da=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig;return(0,Ht.useMemo)((function(){return pa({url:t,requestConfig:n})}),[t,n])}}(),a}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ArcadiaBffSDK=t():e.ArcadiaBffSDK=t()}(self,(function(){return function(){var e,t,n={615:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var D=[301,302,303,307,308];x.redirect=function(e,t){if(-1===D.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(r,a){var o=new b(e,n);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new x(i,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=d,e.Request=b,e.Response=x),t.Headers=d,t.Request=b,t.Response=x,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},199:function(e,t,n){"use strict";var r=n(313);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),o((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},591:function(e,t,n){"use strict";e.exports=n(199)},313:function(e){"use strict";e.exports=window.React},18:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},750:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},119:function(e,t,n){var r=n(18);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},617:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},845:function(e){function t(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,a){var o=e.apply(n,r);function s(e){t(o,i,a,s,u,"next",e)}function u(e){t(o,i,a,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},473:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},823:function(e,t,n){var r=n(942),i=n(945);function a(t,n,o){return i()?(e.exports=a=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},566:function(e,t,n){var r=n(514);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},862:function(e,t,n){var r=n(251);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},808:function(e,t,n){var r=n(573),i=n(945),a=n(2);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},618:function(e,t,n){var r=n(514);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},573:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},809:function(e,t,n){var r=n(942);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},778:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},945:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},304:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},516:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},524:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},383:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},715:function(e,t,n){var r=n(618);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},183:function(e,t,n){var r=n(65);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},2:function(e,t,n){var r=n(496).default,i=n(617);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},444:function(e,t,n){var r=n(496).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),o=new C(r||[]);return s(a,"_invoke",{value:N(e,n,o)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var v="suspendedStart",m="executing",y="completed",g={};function b(){}function E(){}function x(){}var D={};d(D,c,(function(){return this}));var k=Object.getPrototypeOf,T=k&&k(k(L([])));T&&T!==a&&o.call(T,c)&&(D=T);var w=x.prototype=b.prototype=Object.create(D);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(i,a,s,u){var c=h(e[i],e,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==r(p)&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function N(e,n,r){var i=v;return function(a,o){if(i===m)throw new Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var u=I(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?y:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function I(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=x,s(w,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:E,configurable:!0}),E.displayName=d(x,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,p,"GeneratorFunction")),e.prototype=Object.create(w),e},n.awrap=function(e){return{__await:e}},_(O.prototype),d(O.prototype,l,(function(){return this})),n.AsyncIterator=O,n.async=function(e,t,r,i,a){void 0===a&&(a=Promise);var o=new O(f(e,t,r,i),a);return n.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(w),d(w,p,"Generator"),d(w,c,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},942:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},722:function(e,t,n){var r=n(750),i=n(516),a=n(251),o=n(524);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},406:function(e){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},965:function(e,t,n){var r=n(119),i=n(304),a=n(251),o=n(383);e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},727:function(e,t,n){var r=n(496).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},514:function(e,t,n){var r=n(496).default,i=n(727);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},496:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},251:function(e,t,n){var r=n(18);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},407:function(e,t,n){var r=n(573),i=n(942),a=n(778),o=n(823);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e].call(a.exports,a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);i.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},i.d(a,o),a},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";i.r(a),i.d(a,{AllDataProcessListByCountDocument:function(){return hi},AllDataProcessListByPageDocument:function(){return fi},ClientError:function(){return We},CreateDataProcessTaskDocument:function(){return yi},CreateDatasetDocument:function(){return xi},CreateDatasourceDocument:function(){return Ti},CreateEmbedderDocument:function(){return Ii},CreateKnowledgeBaseDocument:function(){return Mi},CreateModelDocument:function(){return Vi},CreateVersionedDatasetDocument:function(){return Ki},CreateWorkerDocument:function(){return Qi},DataProcessDetailsDocument:function(){return mi},DataProcessSupportTypeDocument:function(){return vi},DeleteDataProcessTaskDocument:function(){return gi},DeleteDatasetsDocument:function(){return ki},DeleteDatasourcesDocument:function(){return _i},DeleteEmbeddersDocument:function(){return Ai},DeleteKnowledgeBaseDocument:function(){return qi},DeleteModelsDocument:function(){return $i},DeleteVersionedDatasetsDocument:function(){return Wi},DeleteWorkersDocument:function(){return Zi},GetDatasetDocument:function(){return Ei},GetDatasourceDocument:function(){return Ni},GetEmbedderDocument:function(){return Li},GetKnowledgeBaseDocument:function(){return Ri},GetModelDocument:function(){return Bi},GetVersionedDatasetDocument:function(){return Hi},GetWorkerDocument:function(){return Ji},GraphQLClient:function(){return dt},GraphQLWebSocketClient:function(){return et},ListDatasetsDocument:function(){return bi},ListDatasourcesDocument:function(){return Oi},ListEmbeddersDocument:function(){return Ci},ListKnowledgeBasesDocument:function(){return Pi},ListModelsDocument:function(){return ji},ListVersionedDatasetsDocument:function(){return Yi},ListWorkersDocument:function(){return zi},UpdateDatasetDocument:function(){return Di},UpdateDatasourceDocument:function(){return wi},UpdateEmbedderDocument:function(){return Si},UpdateKnowledgeBaseDocument:function(){return Fi},UpdateModelDocument:function(){return Ui},UpdateVersionedDatasetDocument:function(){return Gi},UpdateWorkerDocument:function(){return Xi},batchRequests:function(){return yt},client:function(){return oa},errorsHandler:function(){return Zt},getSdk:function(){return ta},getSdkWithHooks:function(){return na},gql:function(){return Dt},initGraphQLClient:function(){return ua},initSdk:function(){return la},initSdkWithHooks:function(){return pa},rawRequest:function(){return ht},request:function(){return vt},requestMiddleware:function(){return ia},resolveRequestDocument:function(){return Ge},responseMiddleware:function(){return aa},sdk:function(){return sa},useSdk:function(){return da}});var e={};i.r(e),i.d(e,{exclude:function(){return Kt},extract:function(){return qt},parse:function(){return jt},parseUrl:function(){return Vt},pick:function(){return $t},stringify:function(){return Bt},stringifyUrl:function(){return Ut}});var t=i(444),n=i.n(t),r=i(845),o=i.n(r),s=i(715),u=i.n(s),c=i(722),l=i.n(c),p=i(183),d=i.n(p),f=i(965),h=i.n(f),v=i(618),m=i(473),y=i(566),g=i(496),b=i.n(g),E=JSON,x=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},D=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},k=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.document?e:{url:e,document:t,variables:a,requestHeaders:o,signal:void 0}},T=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=r[0],o=r[1];return e.query?e:{url:e,query:t,variables:a,requestHeaders:o,signal:void 0}},w=i(862),_=i(617),O=i(809),N=i(808),I=i(407);function S(e){return"object"==g(e)&&null!==e}function A(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var C=/\r\n|[\n\r]/g;function L(e,t){var n,r=0,i=1,a=w(e.body.matchAll(C));try{for(a.s();!(n=a.n()).done;){var o=n.value;if("number"==typeof o.index||A(!1),o.index>=t)break;r=o.index+o[0].length,i+=1}}catch(e){a.e(e)}finally{a.f()}return{line:i,column:t+1-r}}function P(e){return R(e.source,L(e.source,e.start))}function R(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,u=t.column+s,c="".concat(e.name,":").concat(o,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){for(var d=Math.floor(u/80),h=u%80,v=[],m=0;m<p.length;m+=80)v.push(p.slice(m,m+80));return c+M([["".concat(o," |"),v[0]]].concat(f(v.slice(1,d+1).map((function(e){return["|",e]}))),[["|","^".padStart(h)],["|",v[d+1]]]))}return c+M([["".concat(o-1," |"),l[i-1]],["".concat(o," |"),p],["|","^".padStart(u)],["".concat(o+1," |"),l[i+1]]])}function M(e){var t=e.filter((function(e){var t=c(e,2);t[0];return void 0!==t[1]})),n=Math.max.apply(Math,f(t.map((function(e){return c(e,1)[0].length}))));return t.map((function(e){var t=c(e,2),r=t[0],i=t[1];return r.padStart(n)+(i?" "+i:"")})).join("\n")}function F(e){var 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}var q=function(e,t){O(r,e);var n=N(r);function r(e){var t,i,a,o;m(this,r);for(var s=arguments.length,u=new Array(s>1?s-1:0),c=1;c<s;c++)u[c-1]=arguments[c];var l=F(u),p=l.nodes,d=l.source,f=l.positions,h=l.path,v=l.originalError,y=l.extensions;(t=n.call(this,e)).name="GraphQLError",t.path=null!=h?h:void 0,t.originalError=null!=v?v:void 0,t.nodes=j(Array.isArray(p)?p:p?[p]:void 0);var g=j(null===(i=t.nodes)||void 0===i?void 0:i.map((function(e){return e.loc})).filter((function(e){return null!=e})));t.source=null!=d?d:null==g||null===(a=g[0])||void 0===a?void 0:a.source,t.positions=null!=f?f:null==g?void 0:g.map((function(e){return e.start})),t.locations=f&&d?f.map((function(e){return L(d,e)})):null==g?void 0:g.map((function(e){return L(e.source,e.start)}));var b=S(null==v?void 0:v.extensions)?null==v?void 0:v.extensions:void 0;return t.extensions=null!==(o=null!=y?y:b)&&void 0!==o?o:Object.create(null),Object.defineProperties(_(t),{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=v&&v.stack?Object.defineProperty(_(t),"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(_(t),r):Object.defineProperty(_(t),"stack",{value:Error().stack,writable:!0,configurable:!0}),t}return y(r,[{key:t,get:function(){return"GraphQLError"}},{key:"toString",value:function(){var e=this.message;if(this.nodes){var t,n=w(this.nodes);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.loc&&(e+="\n\n"+P(r.loc))}}catch(e){n.e(e)}finally{n.f()}}else if(this.source&&this.locations){var i,a=w(this.locations);try{for(a.s();!(i=a.n()).done;){var o=i.value;e+="\n\n"+R(this.source,o)}}catch(e){a.e(e)}finally{a.f()}}return e}},{key:"toJSON",value:function(){var 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}}]),r}(I(Error),Symbol.toStringTag);function j(e){return void 0===e||0===e.length?void 0:e}function B(e,t,n){return new q("Syntax Error: ".concat(n),{source:e,positions:[t]})}var V,U,$,K,G=function(e){function t(e,n,r){m(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return y(t,[{key:e,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(Symbol.toStringTag),W=function(e){function t(e,n,r,i,a,o){m(this,t),this.kind=e,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}return y(t,[{key:e,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(Symbol.toStringTag),H={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"]},Y=new Set(Object.keys(H));function z(e){var t=null==e?void 0:e.kind;return"string"==typeof t&&Y.has(t)}function J(e){return 9===e||32===e}function Q(e){return e>=48&&e<=57}function X(e){return e>=97&&e<=122||e>=65&&e<=90}function Z(e){return X(e)||95===e}function ee(e){return X(e)||Q(e)||95===e}function te(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,i=-1,a=0;a<e.length;++a){var o,s=e[a],u=ne(s);u!==s.length&&(r=null!==(o=r)&&void 0!==o?o:a,i=a,0!==a&&u<n&&(n=u))}return e.map((function(e,t){return 0===t?e:e.slice(n)})).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function ne(e){for(var t=0;t<e.length&&J(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(V||(V={})),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"}(U||(U={})),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"}($||($={})),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"}(K||(K={}));var re=function(e){function t(e){m(this,t);var n=new W(K.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return y(t,[{key:e,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==K.EOF)do{if(e.next)e=e.next;else{var t=le(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===K.COMMENT);return e}}]),t}(Symbol.toStringTag);function ie(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ae(e,t){return oe(e.charCodeAt(t))&&se(e.charCodeAt(t+1))}function oe(e){return e>=55296&&e<=56319}function se(e){return e>=56320&&e<=57343}function ue(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return K.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ce(e,t,n,r,i){var a=e.line,o=1+n-e.lineStart;return new W(t,n,r,a,o,i)}function le(e,t){for(var n=e.source.body,r=n.length,i=t;i<r;){var a=n.charCodeAt(i);switch(a){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 pe(e,i);case 33:return ce(e,K.BANG,i,i+1);case 36:return ce(e,K.DOLLAR,i,i+1);case 38:return ce(e,K.AMP,i,i+1);case 40:return ce(e,K.PAREN_L,i,i+1);case 41:return ce(e,K.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return ce(e,K.SPREAD,i,i+3);break;case 58:return ce(e,K.COLON,i,i+1);case 61:return ce(e,K.EQUALS,i,i+1);case 64:return ce(e,K.AT,i,i+1);case 91:return ce(e,K.BRACKET_L,i,i+1);case 93:return ce(e,K.BRACKET_R,i,i+1);case 123:return ce(e,K.BRACE_L,i,i+1);case 124:return ce(e,K.PIPE,i,i+1);case 125:return ce(e,K.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?Ee(e,i):he(e,i)}if(Q(a)||45===a)return de(e,i,a);if(Z(a))return xe(e,i);throw B(e.source,i,39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ie(a)||ae(n,i)?"Unexpected character: ".concat(ue(e,i),"."):"Invalid character: ".concat(ue(e,i),"."))}return ce(e,K.EOF,r,r)}function pe(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){var a=n.charCodeAt(i);if(10===a||13===a)break;if(ie(a))++i;else{if(!ae(n,i))break;i+=2}}return ce(e,K.COMMENT,t,i,n.slice(t+1,i))}function de(e,t,n){var r=e.source.body,i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(Q(a=r.charCodeAt(++i)))throw B(e.source,i,"Invalid number, unexpected digit after 0: ".concat(ue(e,i),"."))}else i=fe(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=fe(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,43!==(a=r.charCodeAt(++i))&&45!==a||(a=r.charCodeAt(++i)),i=fe(e,i,a),a=r.charCodeAt(i)),46===a||Z(a))throw B(e.source,i,"Invalid number, expected digit but got: ".concat(ue(e,i),"."));return ce(e,o?K.FLOAT:K.INT,t,i,r.slice(t,i))}function fe(e,t,n){if(!Q(n))throw B(e.source,t,"Invalid number, expected digit but got: ".concat(ue(e,t),"."));for(var r=e.source.body,i=t+1;Q(r.charCodeAt(i));)++i;return i}function he(e,t){for(var n=e.source.body,r=n.length,i=t+1,a=i,o="";i<r;){var s=n.charCodeAt(i);if(34===s)return o+=n.slice(a,i),ce(e,K.STRING,t,i+1,o);if(92!==s){if(10===s||13===s)break;if(ie(s))++i;else{if(!ae(n,i))throw B(e.source,i,"Invalid character within String: ".concat(ue(e,i),"."));i+=2}}else{o+=n.slice(a,i);var u=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?ve(e,i):me(e,i):be(e,i);o+=u.value,a=i+=u.size}}throw B(e.source,i,"Unterminated string.")}function ve(e,t){for(var n=e.source.body,r=0,i=3;i<12;){var a=n.charCodeAt(t+i++);if(125===a){if(i<5||!ie(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|ge(a))<0)break}throw B(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+i),'".'))}function me(e,t){var n=e.source.body,r=ye(n,t+2);if(ie(r))return{value:String.fromCodePoint(r),size:6};if(oe(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){var i=ye(n,t+8);if(se(i))return{value:String.fromCodePoint(r,i),size:12}}throw B(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}function ye(e,t){return ge(e.charCodeAt(t))<<12|ge(e.charCodeAt(t+1))<<8|ge(e.charCodeAt(t+2))<<4|ge(e.charCodeAt(t+3))}function ge(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function be(e,t){var 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 B(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function Ee(e,t){for(var n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s="",u=[];a<r;){var c=n.charCodeAt(a);if(34===c&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){s+=n.slice(o,a),u.push(s);var l=ce(e,K.BLOCK_STRING,t,a+3,te(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,l}if(92!==c||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==c&&13!==c)if(ie(c))++a;else{if(!ae(n,a))throw B(e.source,a,"Invalid character within String: ".concat(ue(e,a),"."));a+=2}else s+=n.slice(o,a),u.push(s),13===c&&10===n.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=n.slice(o,a),o=a+1,a+=4}throw B(e.source,a,"Unterminated string.")}function xe(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){if(!ee(n.charCodeAt(i)))break;++i}return ce(e,K.NAME,t,i,n.slice(t,i))}function De(e,t){if(!Boolean(e))throw new Error(t)}function ke(e){return Te(e,[])}function Te(e,t){switch(g(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";var n=[].concat(f(t),[e]);if(function(e){return"function"==typeof e.toJSON}(e)){var r=e.toJSON();if(r!==e)return"string"==typeof r?r:Te(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],a=0;a<n;++a)i.push(Te(e[a],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(e){var n=c(e,2);return n[0]+": "+Te(n[1],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var we=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===g(e)&&null!==e){var n,r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var i=ke(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},_e=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};m(this,t),"string"==typeof e||De(!1,"Body must be a string. Received: ".concat(ke(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||De(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||De(!1,"column in locationOffset is 1-indexed and must be positive.")}return y(t,[{key:e,get:function(){return"Source"}}]),t}(Symbol.toStringTag);function Oe(e){return we(e,_e)}function Ne(e,t){return new Ie(e,t).parseDocument()}var Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,e);var r=Oe(t)?t:new _e(t);this._lexer=new re(r),this._options=n,this._tokenCounter=0}return y(e,[{key:"parseName",value:function(){var e=this.expectToken(K.NAME);return this.node(e,{kind:$.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:$.DOCUMENT,definitions:this.many(K.SOF,this.parseDefinition,K.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(K.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===K.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 B(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)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(K.BRACE_L))return this.node(e,{kind:$.OPERATION_DEFINITION,operation:V.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var t,n=this.parseOperationType();return this.peek(K.NAME)&&(t=this.parseName()),this.node(e,{kind:$.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(K.NAME);switch(e.value){case"query":return V.QUERY;case"mutation":return V.MUTATION;case"subscription":return V.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(K.PAREN_L,this.parseVariableDefinition,K.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:$.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(K.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(K.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(K.DOLLAR),this.node(e,{kind:$.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:$.SELECTION_SET,selections:this.many(K.BRACE_L,this.parseSelection,K.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(K.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(K.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:$.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(K.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(K.PAREN_L,t,K.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(K.COLON),this.node(t,{kind:$.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(K.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(K.NAME)?this.node(e,{kind:$.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:$.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:$.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:$.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case K.BRACKET_L:return this.parseList(e);case K.BRACE_L:return this.parseObject(e);case K.INT:return this.advanceLexer(),this.node(t,{kind:$.INT,value:t.value});case K.FLOAT:return this.advanceLexer(),this.node(t,{kind:$.FLOAT,value:t.value});case K.STRING:case K.BLOCK_STRING:return this.parseStringLiteral();case K.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:$.BOOLEAN,value:!0});case"false":return this.node(t,{kind:$.BOOLEAN,value:!1});case"null":return this.node(t,{kind:$.NULL});default:return this.node(t,{kind:$.ENUM,value:t.value})}case K.DOLLAR:if(e){if(this.expectToken(K.DOLLAR),this._lexer.token.kind===K.NAME){var n=this._lexer.token.value;throw B(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:$.STRING,value:e.value,block:e.kind===K.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:$.LIST,values:this.any(K.BRACKET_L,(function(){return t.parseValueLiteral(e)}),K.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:$.OBJECT,fields:this.any(K.BRACE_L,(function(){return t.parseObjectField(e)}),K.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(K.COLON),this.node(t,{kind:$.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(K.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(K.AT),this.node(t,{kind:$.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(K.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(K.BRACKET_R),e=this.node(t,{kind:$.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(K.BANG)?this.node(t,{kind:$.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:$.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(K.STRING)||this.peek(K.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(K.BRACE_L,this.parseOperationTypeDefinition,K.BRACE_R);return this.node(e,{kind:$.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(K.COLON);var n=this.parseNamedType();return this.node(e,{kind:$.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:$.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(K.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(K.BRACE_L,this.parseFieldDefinition,K.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(K.COLON);var i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:$.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(K.PAREN_L,this.parseInputValueDef,K.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(K.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(K.EQUALS)&&(r=this.parseConstValueLiteral());var a=this.parseConstDirectives();return this.node(e,{kind:$.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:a})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:$.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(K.EQUALS)?this.delimitedMany(K.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:$.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(K.BRACE_L,this.parseEnumValueDefinition,K.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:$.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw B(this._lexer.source,this._lexer.token.start,"".concat(Se(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:$.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(K.BRACE_L,this.parseInputValueDef,K.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===K.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)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(K.BRACE_L,this.parseOperationTypeDefinition,K.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:$.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:$.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var 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:$.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var 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:$.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:$.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(K.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return this.node(e,{kind:$.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(K.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(U,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){return!0!==this._options.noLocation&&(t.loc=new G(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw B(this._lexer.source,t.start,"Expected ".concat(Ae(e),", found ").concat(Se(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==K.NAME||t.value!==e)throw B(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Se(t),"."));this.advanceLexer()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===K.NAME&&t.value===e&&(this.advanceLexer(),!0)}},{key:"unexpected",value:function(e){var t=null!=e?e:this._lexer.token;return B(this._lexer.source,t.start,"Unexpected ".concat(Se(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}},{key:"advanceLexer",value:function(){var e=this._options.maxTokens,t=this._lexer.advance();if(void 0!==e&&t.kind!==K.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw B(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}]),e}();function Se(e){var t=e.value;return Ae(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Ae(e){return function(e){return e===K.BANG||e===K.DOLLAR||e===K.AMP||e===K.PAREN_L||e===K.PAREN_R||e===K.SPREAD||e===K.COLON||e===K.EQUALS||e===K.AT||e===K.BRACKET_L||e===K.BRACKET_R||e===K.BRACE_L||e===K.PIPE||e===K.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ce=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Le(e){return Pe[e.charCodeAt(0)]}var Pe=["\\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"],Re=Object.freeze({});function Me(e,t){var n=e[t];return"object"===g(n)?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Fe(e){return function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:H,r=new Map,i=0,a=Object.values($);i<a.length;i++){var o=a[i];r.set(o,Me(t,o))}var s=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=e,h=void 0,v=void 0,m=[],y=[];do{var g=++p===l.length,b=g&&0!==d.length;if(g){if(h=0===y.length?void 0:m[m.length-1],f=v,v=y.pop(),b)if(u){f=f.slice();var E,x=0,D=w(d);try{for(D.s();!(E=D.n()).done;){var k=c(E.value,2),T=k[0],_=k[1],O=T-x;null===_?(f.splice(O,1),x++):f[O]=_}}catch(e){D.e(e)}finally{D.f()}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));var N,I=w(d);try{for(I.s();!(N=I.n()).done;){var S=c(N.value,2),A=S[0],C=S[1];f[A]=C}}catch(e){I.e(e)}finally{I.f()}}p=s.index,l=s.keys,d=s.edits,u=s.inArray,s=s.prev}else if(v){if(null==(f=v[h=u?p:l[p]]))continue;m.push(h)}var L,P=void 0;if(!Array.isArray(f)){var R,M;z(f)||De(!1,"Invalid AST Node: ".concat(ke(f),"."));var F=g?null===(R=r.get(f.kind))||void 0===R?void 0:R.leave:null===(M=r.get(f.kind))||void 0===M?void 0:M.enter;if((P=null==F?void 0:F.call(t,f,h,v,m,y))===Re)break;if(!1===P){if(!g){m.pop();continue}}else if(void 0!==P&&(d.push([h,P]),!g)){if(!z(P)){m.pop();continue}f=P}}void 0===P&&b&&d.push([h,f]),g?m.pop():(s={inArray:u,index:p,keys:l,edits:d,prev:s},l=(u=Array.isArray(f))?f:null!==(L=n[f.kind])&&void 0!==L?L:[],p=-1,d=[],v&&y.push(v),v=f)}while(void 0!==s);return 0!==d.length?d[d.length-1][1]:e}(e,qe)}var qe={Name:{leave:function(e){return e.value}},Variable:{leave:function(e){return"$"+e.name}},Document:{leave:function(e){return je(e.definitions,"\n\n")}},OperationDefinition:{leave:function(e){var t=Ve("(",je(e.variableDefinitions,", "),")"),n=je([e.operation,je([e.name,t]),je(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Ve(" = ",r)+Ve(" ",je(i," "))}},SelectionSet:{leave:function(e){return Be(e.selections)}},Field:{leave:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet,o=Ve("",t,": ")+n,s=o+Ve("(",je(r,", "),")");return s.length>80&&(s=o+Ve("(\n",Ue(je(r,"\n")),"\n)")),je([s,je(i," "),a]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+Ve(" ",je(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return je(["...",Ve("on ",t),je(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(Ve("(",je(r,", "),")")," ")+"on ".concat(n," ").concat(Ve("",je(i," ")," "))+a}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,a=r.length>1&&r.slice(1).every((function(e){return 0===e.length||J(e.charCodeAt(0))})),o=n.endsWith('\\"""'),s=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=s||u,l=!(null!=t&&t.minimize)&&(!i||e.length>70||c||a||o),p="",d=i&&J(e.charCodeAt(0));return(l&&!d||a)&&(p+="\n"),p+=n,(l||c)&&(p+="\n"),'"""'+p+'"""'}(t):'"'.concat(t.replace(Ce,Le),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+je(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+je(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+Ve("(",je(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return Ve("",t,"\n")+je(["schema",je(n," "),Be(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Ve("",t,"\n")+je(["scalar",n,je(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ve("",t,"\n")+je(["type",n,Ve("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.type,a=e.directives;return Ve("",t,"\n")+n+($e(r)?Ve("(\n",Ue(je(r,"\n")),"\n)"):Ve("(",je(r,", "),")"))+": "+i+Ve(" ",je(a," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,i=e.defaultValue,a=e.directives;return Ve("",t,"\n")+je([n+": "+r,Ve("= ",i),je(a," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return Ve("",t,"\n")+je(["interface",n,Ve("implements ",je(r," & ")),je(i," "),Be(a)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.types;return Ve("",t,"\n")+je(["union",n,je(r," "),Ve("= ",je(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.values;return Ve("",t,"\n")+je(["enum",n,je(r," "),Be(i)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Ve("",t,"\n")+je([n,je(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.fields;return Ve("",t,"\n")+je(["input",n,je(r," "),Be(i)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.repeatable,a=e.locations;return Ve("",t,"\n")+"directive @"+n+($e(r)?Ve("(\n",Ue(je(r,"\n")),"\n)"):Ve("(",je(r,", "),")"))+(i?" repeatable":"")+" on "+je(a," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return je(["extend schema",je(t," "),Be(n)]," ")}},ScalarTypeExtension:{leave:function(e){return je(["extend scalar",e.name,je(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return je(["extend type",t,Ve("implements ",je(n," & ")),je(r," "),Be(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return je(["extend interface",t,Ve("implements ",je(n," & ")),je(r," "),Be(i)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return je(["extend union",t,je(n," "),Ve("= ",je(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return je(["extend enum",t,je(n," "),Be(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return je(["extend input",t,je(n," "),Be(r)]," ")}}};function je(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Be(e){return Ve("{\n",Ue(je(e,"\n")),"\n}")}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Ue(e){return Ve(" ",e.replace(/\n/g,"\n "))}function $e(e){var t;return null!==(t=null==e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}var Ke=function(e){var t,n=void 0,r=e.definitions.filter((function(e){return"OperationDefinition"===e.kind}));1===r.length&&(n=null===(t=r[0])||void 0===t||null===(t=t.name)||void 0===t?void 0:t.value);return n},Ge=function(e){if("string"===g(e)){var t=void 0;try{var n=Ne(e);t=Ke(n)}catch(e){}return{query:e,operationName:t}}var r=Ke(e);return{query:Fe(e),operationName:r}},We=function(e){O(n,e);var t=N(n);function n(e,r){var i;m(this,n);var a="".concat(n.extractMessage(e),": ").concat(JSON.stringify({response:e,request:r}));return i=t.call(this,a),Object.setPrototypeOf(_(i),n.prototype),i.response=e,i.request=r,"function"===g(Error.captureStackTrace)&&Error.captureStackTrace(_(i),n),i}return y(n,null,[{key:"extractMessage",value:function(e){var t,n;return null!==(t=null===(n=e.errors)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.message)&&void 0!==t?t:"GraphQL Error (Code: ".concat(e.status,")")}}]),n}(I(Error)),He=i(615),Ye=i.t(He,2),ze="ping",Je="pong",Qe="subscribe",Xe="complete",Ze=function(){function e(t,n,r){m(this,e),this._type=t,this._payload=n,this._id=r}return y(e,[{key:"type",get:function(){return this._type}},{key:"id",get:function(){return this._id}},{key:"payload",get:function(){return this._payload}},{key:"text",get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}}],[{key:"parse",value:function(t,n){var r=JSON.parse(t),i=r.type,a=r.payload,o=r.id;return new e(i,n(a),o)}}]),e}(),et=function(){function e(n,i){var a=this,o=i.onInit,u=i.onAcknowledged,c=i.onPing,l=i.onPong;m(this,e),this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=n,n.addEventListener("open",function(){var e=r(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.socketState.acknowledged=!1,a.socketState.subscriptions={},e.t0=n,e.t1=tt,!o){e.next=10;break}return e.next=7,o();case 7:e.t2=e.sent,e.next=11;break;case 10:e.t2=null;case 11:e.t3=e.t2,e.t4=(0,e.t1)(e.t3).text,e.t0.send.call(e.t0,e.t4);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.addEventListener("close",(function(e){a.socketState.acknowledged=!1,a.socketState.subscriptions={}})),n.addEventListener("error",(function(e){console.error(e)})),n.addEventListener("message",(function(e){try{var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return Ze.parse(e,t)}(e.data);switch(t.type){case"connection_ack":return void(a.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(a.socketState.acknowledged=!0,u&&u(t.payload)));case ze:return void(c?c(t.payload).then((function(e){return n.send(nt(e).text)})):n.send(nt(null).text));case Je:return void(l&&l(t.payload))}if(!a.socketState.acknowledged)return;if(void 0===t.id||null===t.id||!a.socketState.subscriptions[t.id])return;var r=a.socketState.subscriptions[t.id],i=r.query,o=r.variables,p=r.subscriber;switch(t.type){case"next":return!t.payload.errors&&t.payload.data&&p.next&&p.next(t.payload.data),void(t.payload.errors&&p.error&&p.error(new We(s(s({},t.payload),{},{status:200}),{query:i,variables:o})));case"error":return void(p.error&&p.error(new We({errors:t.payload,status:200},{query:i,variables:o})));case Xe:return p.complete&&p.complete(),void delete a.socketState.subscriptions[t.id]}}catch(e){console.error(e),n.close(1006)}n.close(4400,"Unknown graphql-ws message.")}))}return y(e,[{key:"makeSubscribe",value:function(e,t,n,r){var i,a,o=this,s=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[s]={query:e,variables:r,subscriber:n},this.socket.send((i=s,a={query:e,operationName:t,variables:r},new Ze(Qe,a,i)).text),function(){o.socket.send(function(e){return new Ze(Xe,void 0,e)}(s).text),delete o.socketState.subscriptions[s]}}},{key:"rawRequest",value:function(e,t){var n=this;return new Promise((function(r,i){var a;n.rawSubscribe(e,{next:function(e,t){return a={data:e,extensions:t}},error:i,complete:function(){return r(a)}},t)}))}},{key:"request",value:function(e,t){var n=this;return new Promise((function(r,i){var a;n.subscribe(e,{next:function(e){return a=e},error:i,complete:function(){return r(a)}},t)}))}},{key:"subscribe",value:function(e,t,n){var r=Ge(e),i=r.query,a=r.operationName;return this.makeSubscribe(i,a,t,n)}},{key:"rawSubscribe",value:function(e,t,n){return this.makeSubscribe(e,void 0,t,n)}},{key:"ping",value:function(e){this.socket.send(function(e){return new Ze(ze,e,void 0)}(e).text)}},{key:"close",value:function(){this.socket.close(1e3)}}]),e}();function tt(e){return new Ze("connection_init",e)}function nt(e){return new Ze(Je,e,void 0)}et.PROTOCOL="graphql-transport-ws";var rt=["url"],it=["headers","fetch","method","requestMiddleware","responseMiddleware"],at=["headers","fetch","method","requestMiddleware","responseMiddleware"],ot=["headers"],st=["errors"],ut=function(e){var t={};return e&&("undefined"!==("undefined"==typeof Headers?"undefined":g(Headers))&&e instanceof Headers||Ye&&He.Headers&&e instanceof He.Headers?t=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}(e):Array.isArray(e)?e.forEach((function(e){var n=c(e,2),r=n[0],i=n[1];r&&void 0!==i&&(t[r]=i)})):t=e),t},ct=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},lt=function(e){if(!Array.isArray(e.query)){var t=e,n=["query=".concat(encodeURIComponent(ct(t.query)))];return e.variables&&n.push("variables=".concat(encodeURIComponent(t.jsonSerializer.stringify(t.variables)))),t.operationName&&n.push("operationName=".concat(encodeURIComponent(t.operationName))),n.join("&")}if("undefined"!==g(e.variables)&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");var r=e,i=e.query.reduce((function(e,t,n){return e.push({query:ct(t),variables:r.variables?r.jsonSerializer.stringify(r.variables[n]):void 0}),e}),[]);return"query=".concat(encodeURIComponent(r.jsonSerializer.stringify(i)))},pt=function(e){return function(){var n=r(t().mark((function n(r){var i,a,o,u,c,l,d,f,h,v,m,y,b,x,D,k,T;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r.url,a=r.query,o=r.variables,u=r.operationName,c=r.fetch,l=r.fetchOptions,d=r.middleware,f=s({},r.headers),h="",v=void 0,"POST"===e?(v=bt(a,o,u,l.jsonSerializer),"string"===g(v)&&(f["Content-Type"]="application/json")):h=lt({query:a,variables:o,operationName:u,jsonSerializer:null!==(m=l.jsonSerializer)&&void 0!==m?m:E}),y=s({method:e,headers:f,body:v},l),b=i,x=y,!d){t.next=15;break}return t.next=11,Promise.resolve(d(s(s({},y),{},{url:i,operationName:u,variables:o})));case 11:D=t.sent,k=D.url,T=p(D,rt),b=k,x=T;case 15:return h&&(b="".concat(b,"?").concat(h)),t.next=18,c(b,x);case 18:return t.abrupt("return",t.sent);case 19:case"end":return t.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},dt=function(){function e(n){var i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,e),this.url=n,this.requestConfig=a,this.rawRequest=r(t().mark((function e(){var n,r,a,o,u,c,l,d,f,h,v,m,y,g,b,E,x,k,T,w=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=w.length,r=new Array(n),a=0;a<n;a++)r[a]=w[a];return o=r[0],u=r[1],c=r[2],l=D(o,u,c),d=i.requestConfig,f=d.headers,h=d.fetch,v=void 0===h?He:h,m=d.method,y=void 0===m?"POST":m,g=d.requestMiddleware,b=d.responseMiddleware,E=p(d,it),x=i.url,void 0!==l.signal&&(E.signal=l.signal),k=Ge(l.query),T=k.operationName,e.abrupt("return",ft({url:x,query:l.query,variables:l.variables,headers:s(s({},ut(xt(f))),ut(l.requestHeaders)),operationName:T,fetch:v,method:y,fetchOptions:E,middleware:g}).then((function(e){return b&&b(e),e})).catch((function(e){throw b&&b(e),e})));case 8:case"end":return e.stop()}}),e)})))}var n;return y(e,[{key:"request",value:(n=r(t().mark((function e(n){var r,i,a,o,u,c,l,d,f,h,v,m,y,g,b,E,D,k,T,w=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=w.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=w[a];return o=i[0],u=i[1],c=x(n,o,u),l=this.requestConfig,d=l.headers,f=l.fetch,h=void 0===f?He:f,v=l.method,m=void 0===v?"POST":v,y=l.requestMiddleware,g=l.responseMiddleware,b=p(l,at),E=this.url,void 0!==c.signal&&(b.signal=c.signal),D=Ge(c.document),k=D.query,T=D.operationName,e.abrupt("return",ft({url:E,query:k,variables:c.variables,headers:s(s({},ut(xt(d))),ut(c.requestHeaders)),operationName:T,fetch:h,method:m,fetchOptions:b,middleware:y}).then((function(e){return g&&g(e),e.data})).catch((function(e){throw g&&g(e),e})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"batchRequests",value:function(e,t){var n,r=this,i=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}}(e,t),a=this.requestConfig,o=a.headers,u=p(a,ot);void 0!==i.signal&&(u.signal=i.signal);var c=i.documents.map((function(e){var t=e.document;return Ge(t).query})),l=i.documents.map((function(e){return e.variables}));return ft({url:this.url,query:c,variables:l,headers:s(s({},ut(xt(o))),ut(i.requestHeaders)),operationName:void 0,fetch:null!==(n=this.requestConfig.fetch)&&void 0!==n?n:He,method:this.requestConfig.method||"POST",fetchOptions:u,middleware:this.requestConfig.requestMiddleware}).then((function(e){return r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e.data})).catch((function(e){throw r.requestConfig.responseMiddleware&&r.requestConfig.responseMiddleware(e),e}))}},{key:"setHeaders",value:function(e){return this.requestConfig.headers=e,this}},{key:"setHeader",value:function(e,t){var n=this.requestConfig.headers;return n?n[e]=t:this.requestConfig.headers=v({},e,t),this}},{key:"setEndpoint",value:function(e){return this.url=e,this}}]),e}(),ft=function(){var e=r(t().mark((function e(n){var r,i,a,o,u,c,l,d,f,h,v,m,y,b,x,D;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.query,o=n.variables,u=n.fetchOptions,c=pt((null!==(r=n.method)&&void 0!==r?r:"post").toUpperCase()),l=Array.isArray(n.query),e.next=5,c(n);case 5:return d=e.sent,e.next=8,Et(d,null!==(i=u.jsonSerializer)&&void 0!==i?i:E);case 8:if(f=e.sent,h=Array.isArray(f)?!f.some((function(e){return!e.data})):Boolean(f.data),v=Array.isArray(f)||!f.errors||Array.isArray(f.errors)&&!f.errors.length||"all"===u.errorPolicy||"ignore"===u.errorPolicy,!(d.ok&&v&&h)){e.next=18;break}return Array.isArray(f),(m=f).errors,y=p(m,st),b="ignore"===u.errorPolicy?y:f,x=l?{data:b}:b,e.abrupt("return",s(s({},x),{},{headers:d.headers,status:d.status}));case 18:throw D="string"===g(f)?{error:f}:f,new We(s(s({},D),{},{status:d.status,headers:d.headers}),{query:a,variables:o});case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ht=function(){var e=r(t().mark((function e(){var n,r,i,a,o,u,c,l,p=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=p.length,r=new Array(n),i=0;i<n;i++)r[i]=p[i];return a=r[0],o=r[1],u=r.slice(2),c=T.apply(void 0,[a,o].concat(f(u))),l=new dt(c.url),e.abrupt("return",l.rawRequest(s({},c)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function vt(e,t){return mt.apply(this,arguments)}function mt(){return mt=r(t().mark((function e(n,r){var i,a,o,u,c,l=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=l.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=l[o];return u=k.apply(void 0,[n,r].concat(a)),c=new dt(u.url),e.abrupt("return",c.request(s({},u)));case 4:case"end":return e.stop()}}),e)}))),mt.apply(this,arguments)}var yt=function(){var e=r(t().mark((function e(){var n,r,i,a,o,s=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,r=new Array(n),i=0;i<n;i++)r[i]=s[i];return a=gt(r),o=new dt(a.url),e.abrupt("return",o.batchRequests(a));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=function(e){return 1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0}},bt=function(e,t,n,r){var i=null!=r?r:E;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:n});if("undefined"!==g(t)&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var a=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return i.stringify(a)},Et=function(){var e=r(t().mark((function e(n,r){var i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.headers.forEach((function(e,t){"content-type"===t.toLowerCase()&&(i=e)})),!i||!(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json"))){e.next=9;break}return e.t0=r,e.next=5,n.text();case 5:return e.t1=e.sent,e.abrupt("return",e.t0.parse.call(e.t0,e.t1));case 9:return e.abrupt("return",n.text());case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),xt=function(e){return"function"===g(e)?e():e},Dt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((function(e,t,r){return"".concat(e).concat(t).concat(r in n?String(n[r]):"")}),"")},kt="%[a-f0-9]{2}",Tt=new RegExp("("+kt+")|([^%]+?)","gi"),wt=new RegExp("("+kt+")+","gi");function _t(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],_t(n),_t(r))}function Ot(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(Tt)||[],n=1;n<t.length;n++)t=(e=_t(t,n).join("")).match(Tt)||[];return e}}function Nt(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+g(e)+"`");try{return decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=wt.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=Ot(n[0]);r!==n[0]&&(t[n[0]]=r)}n=wt.exec(e)}t["%C2"]="�";for(var i=0,a=Object.keys(t);i<a.length;i++){var o=a[i];e=e.replace(new RegExp(o,"g"),t[o])}return e}(e)}}function It(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];var n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function St(e,t){var n={};if(Array.isArray(t)){var r,i=w(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=Object.getOwnPropertyDescriptor(e,a);null!=o&&o.enumerable&&Object.defineProperty(n,a,o)}}catch(e){i.e(e)}finally{i.f()}}else{var s,u=w(Reflect.ownKeys(e));try{for(u.s();!(s=u.n()).done;){var c=s.value,l=Object.getOwnPropertyDescriptor(e,c);if(l.enumerable)t(c,e[c],e)&&Object.defineProperty(n,c,l)}}catch(e){u.e(e)}finally{u.f()}}return n}var At=Symbol("encodeFragmentIdentifier");function Ct(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})):encodeURIComponent(e):e}function Pt(e,t){return t.decode?Nt(e):e}function Rt(e){return Array.isArray(e)?e.sort():"object"===g(e)?Rt(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function Mt(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Ft(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function qt(e){var t=(e=Mt(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function jt(e,t){Ct((t=s({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[].concat(f(r[e]),[n]):r[e]=[n]:r[e]=n};case"colon-list-separator":return function(e,n,r){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(f(r[e]),[n]):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!i&&Pt(n,e).includes(e.arrayFormatSeparator);n=a?Pt(n,e):n;var o=i||a?n.split(e.arrayFormatSeparator).map((function(t){return Pt(t,e)})):null===n?n:Pt(n,e);r[t]=o};case"bracket-separator":return function(t,n,r){var i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),i){var a=null===n?[]:n.split(e.arrayFormatSeparator).map((function(t){return Pt(t,e)}));void 0!==r[t]?r[t]=[].concat(f(r[t]),f(a)):r[t]=a}else r[t]=n?Pt(n,e):n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(f([n[e]].flat()),[t]):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var i,a=w(e.split("&"));try{for(a.s();!(i=a.n()).done;){var o=i.value;if(""!==o){var u=t.decode?o.replace(/\+/g," "):o,l=It(u,"="),p=c(l,2),d=p[0],h=p[1];void 0===d&&(d=u),h=void 0===h?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?h:Pt(h,t),n(Pt(d,t),h,r)}}}catch(e){a.e(e)}finally{a.f()}for(var v=0,m=Object.entries(r);v<m.length;v++){var y=c(m[v],2),b=y[0],E=y[1];if("object"===g(E)&&null!==E)for(var x=0,D=Object.entries(E);x<D.length;x++){var k=c(D[x],2),T=k[0],_=k[1];E[T]=Ft(_,t)}else r[b]=Ft(E,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"===g(n)&&!Array.isArray(n)?e[t]=Rt(n):e[t]=n,e}),Object.create(null))}function Bt(e,t){if(!e)return"";Ct((t=s({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&function(e){return null==e}(e[n])||t.skipEmptyString&&""===e[n]},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),"[",i,"]"].join("")]:[[Lt(t,e),"[",Lt(i,e),"]=",Lt(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),"[]"].join("")]:[[Lt(t,e),"[]=",Lt(r,e)].join("")])}};case"colon-list-separator":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[[Lt(t,e),":list="].join("")]:[[Lt(t,e),":list=",Lt(r,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return function(n){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[Lt(n,e),t,Lt(i,e)].join("")]:[[r,Lt(i,e)].join(e.arrayFormatSeparator)])}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(f(n),null===r?[Lt(t,e)]:[[Lt(t,e),"=",Lt(r,e)].join("")])}}}}(t),i={},a=0,o=Object.entries(e);a<o.length;a++){var u=c(o[a],2),l=u[0],p=u[1];n(l)||(i[l]=p)}var d=Object.keys(i);return!1!==t.sort&&d.sort(t.sort),d.map((function(n){var i=e[n];return void 0===i?"":null===i?Lt(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?Lt(n,t)+"[]":i.reduce(r(n),[]).join("&"):Lt(n,t)+"="+Lt(i,t)})).filter((function(e){return e.length>0})).join("&")}function Vt(e,t){var n,r;t=s({decode:!0},t);var i=It(e,"#"),a=c(i,2),o=a[0],u=a[1];return void 0===o&&(o=e),s({url:null!==(n=null===(r=o)||void 0===r||null===(r=r.split("?"))||void 0===r?void 0:r[0])&&void 0!==n?n:"",query:jt(qt(e),t)},t&&t.parseFragmentIdentifier&&u?{fragmentIdentifier:Pt(u,t)}:{})}function Ut(e,t){t=s(v({encode:!0,strict:!0},At,!0),t);var n=Mt(e.url).split("?")[0]||"",r=qt(e.url),i=Bt(s(s({},jt(r,{sort:!1})),e.query),t);i&&(i="?".concat(i));var a=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){var o=new URL(n);o.hash=e.fragmentIdentifier,a=t[At]?o.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(i).concat(a)}function $t(e,t,n){var r=Vt(e,n=s(v({parseFragmentIdentifier:!0},At,!1),n)),i=r.url,a=r.query,o=r.fragmentIdentifier;return Ut({url:i,query:St(a,t),fragmentIdentifier:o},n)}function Kt(e,t,n){return $t(e,Array.isArray(t)?function(e){return!t.includes(e)}:function(e,n){return!t(e,n)},n)}var Gt,Wt=e,Ht=i(313),Yt=window.antd,zt=function(){window.location.href="/logout"},Jt=function(){var e;null===(e=Gt)||void 0===e||e.destroy(),Gt=void 0},Qt=window.TenxUiMaterials,Xt={create:"创建",delete:"删除",update:"更新",patch:"更新",get:"获取",list:"列取",watch:"监听"},Zt=function(e){var t=e.filter((function(e){var t;return void 0!==(null===(t=e.extensions)||void 0===t?void 0:t.code)}));0!==t.length?t.forEach((function(e){switch(e.extensions.code){case"InvalidToken":Gt||(Gt=Yt.Modal.warn({okText:"确定",content:"用户凭证可能已失效,点击确定重新登录",onOk:zt,onCancel:Jt}));break;case"Forbidden":!function(e){var t,n=(null===(t=e.extensions)||void 0===t||null===(t=t.exception)||void 0===t?void 0:t.details)||{},r=n.name,i=n.kind,a=n.verb,o="当前用户没有权限";o+="".concat(Xt[a]||"操作"),i&&(o+=" ".concat(i)),r&&(o+=" ".concat(r)),Qt.notification.warn({message:"当前操作未被授权",description:o,detail:e})}(e)}})):console.warn("uncaught errors",e)},en=i(406),tn=i.n(en);var nn=function(){return nn=Object.assign||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},nn.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var rn=new Map,an=new Map,on=!0,sn=!1;function un(e){return e.replace(/[\s,]+/g," ").trim()}function cn(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=un((o=e.loc).source.body.substring(o.start,o.end)),a=an.get(r);a&&!a.has(i)?on&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||an.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var o})),nn(nn({},e),{definitions:n})}function ln(e){var t=un(e);if(!rn.has(t)){var n=Ne(e,{experimentalFragmentVariables:sn,allowLegacyFragmentVariables:sn});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");rn.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===b()(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(cn(n)))}return rn.get(t)}function pn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),ln(r)}var dn,fn=pn,hn=function(){rn.clear(),an.clear()},vn=function(){on=!1},mn=function(){sn=!0},yn=function(){sn=!1};(dn=pn||(pn={})).gql=fn,dn.resetCaches=hn,dn.disableFragmentWarnings=vn,dn.enableExperimentalFragmentVariables=mn,dn.disableExperimentalFragmentVariables=yn,pn.default=pn;var gn=pn,bn=i(591),En=function(){},xn=En(),Dn=Object,kn=function(e){return e===xn},Tn=function(e){return"function"==typeof e},wn=function(e,t){return s(s({},e),t)},_n=function(e){return Tn(e.then)},On=new WeakMap,Nn=0,In=function e(t){var n,r,i=g(t),a=t&&t.constructor,o=a==Date;if(Dn(t)!==t||o||a==RegExp)n=o?t.toJSON():"symbol"==i?t.toString():"string"==i?JSON.stringify(t):""+t;else{if(n=On.get(t))return n;if(n=++Nn+"~",On.set(t,n),a==Array){for(n="@",r=0;r<t.length;r++)n+=e(t[r])+",";On.set(t,n)}if(a==Dn){n="#";for(var s=Dn.keys(t).sort();!kn(r=s.pop());)kn(t[r])||(n+=r+":"+e(t[r])+",");On.set(t,n)}}return n},Sn=new WeakMap,An={},Cn={},Ln="undefined",Pn=("undefined"==typeof window?"undefined":g(window))!=Ln,Rn=("undefined"==typeof document?"undefined":g(document))!=Ln,Mn=function(e,t){var n=Sn.get(e);return[function(){return!kn(t)&&e.get(t)||An},function(r){if(!kn(t)){var i=e.get(t);t in Cn||(Cn[t]=i),n[5](t,wn(i,r),i||An)}},n[6],function(){return!kn(t)&&t in Cn?Cn[t]:!kn(t)&&e.get(t)||An}]},Fn=!0,qn=Pn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[En,En],jn=c(qn,2),Bn=jn[0],Vn=jn[1],Un={isOnline:function(){return Fn},isVisible:function(){var e=Rn&&document.visibilityState;return kn(e)||"hidden"!==e}},$n={initFocus:function(e){return Rn&&document.addEventListener("visibilitychange",e),Bn("focus",e),function(){Rn&&document.removeEventListener("visibilitychange",e),Vn("focus",e)}},initReconnect:function(e){var t=function(){Fn=!0,e()},n=function(){Fn=!1};return Bn("online",t),Bn("offline",n),function(){Vn("online",t),Vn("offline",n)}}},Kn=!Ht.useId,Gn=!Pn||"Deno"in window,Wn=function(e){return Pn&&g(window.requestAnimationFrame)!=Ln?window.requestAnimationFrame(e):setTimeout(e,1)},Hn=Gn?Ht.useEffect:Ht.useLayoutEffect,Yn="undefined"!=typeof navigator&&navigator.connection,zn=!Gn&&Yn&&(["slow-2g","2g"].includes(Yn.effectiveType)||Yn.saveData),Jn=function(e){if(Tn(e))try{e=e()}catch(t){e=""}var t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?In(e):"",t]},Qn=0,Xn=function(){return++Qn},Zn=3,er=0,tr=2,nr=1;function rr(){return ir.apply(this,arguments)}function ir(){return ir=r(t().mark((function e(){var n,i,a,o,s,u,l,p,d,f,h,v,m,y,g,b,E,x,D,k,T,_,O=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(_=function(){return _=r(t().mark((function e(n){var r,a,s,l,p,f,g,b,E,x,D,k,T,w,_,O,N,I,S,A,C,L,P;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Jn(n),a=c(r,1),s=a[0]){e.next=3;break}return e.abrupt("return");case 3:if(l=Mn(o,s),p=c(l,2),f=p[0],g=p[1],b=Sn.get(o),E=c(b,4),x=E[0],D=E[1],k=E[2],T=E[3],w=function(){var e=x[s];return v&&(delete k[s],delete T[s],e&&e[0])?e[0](2).then((function(){return f().data})):f().data},!(i.length<3)){e.next=8;break}return e.abrupt("return",w());case 8:if(_=u,N=Xn(),D[s]=[N,0],I=!kn(h),S=f(),A=S.data,C=S._c,L=kn(C)?A:C,I&&(h=Tn(h)?h(L,A):h,g({data:h,_c:L})),Tn(_))try{_=_(L)}catch(e){O=e}if(!_||!_n(_)){e.next=29;break}return e.next=21,_.catch((function(e){O=e}));case 21:if(_=e.sent,N===D[s][0]){e.next=28;break}if(!O){e.next=25;break}throw O;case 25:return e.abrupt("return",_);case 28:O&&I&&m(O)&&(d=!0,g({data:L,_c:xn}));case 29:if(d&&(O||(Tn(d)?(P=d(_,L),g({data:P,error:xn,_c:xn})):g({data:_,error:xn,_c:xn}))),D[s][1]=Xn(),Promise.resolve(w()).then((function(){g({_c:xn})})),!O){e.next=36;break}if(!y){e.next=35;break}throw O;case 35:return e.abrupt("return");case 36:return e.abrupt("return",_);case 37:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)},T=function(e){return _.apply(this,arguments)},n=O.length,i=new Array(n),a=0;a<n;a++)i[a]=O[a];if(o=i[0],s=i[1],u=i[2],l=i[3],p=wn({populateCache:!0,throwOnError:!0},"boolean"==typeof l?{revalidate:l}:l||{}),d=p.populateCache,f=p.rollbackOnError,h=p.optimisticData,v=!1!==p.revalidate,m=function(e){return"function"==typeof f?f(e):!1!==f},y=p.throwOnError,!Tn(s)){e.next=18;break}g=s,b=[],E=o.keys(),x=w(E);try{for(x.s();!(D=x.n()).done;)k=D.value,!/^\$(inf|sub)\$/.test(k)&&g(o.get(k)._k)&&b.push(k)}catch(e){x.e(e)}finally{x.f()}return e.abrupt("return",Promise.all(b.map(T)));case 18:return e.abrupt("return",T(s));case 19:case"end":return e.stop()}}),e)}))),ir.apply(this,arguments)}var ar=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},or=function(e,t){if(!Sn.has(e)){var n=wn($n,t),r={},i=rr.bind(xn,e),a=En,o={},s=function(e,t){var n=o[e]||[];return o[e]=n,n.push(t),function(){return n.splice(n.indexOf(t),1)}},u=function(t,n,r){e.set(t,n);var i=o[t];if(i){var a,s=w(i);try{for(s.s();!(a=s.n()).done;){(0,a.value)(n,r)}}catch(e){s.e(e)}finally{s.f()}}},c=function(){if(!Sn.has(e)&&(Sn.set(e,[r,{},{},{},i,u,s]),!Gn)){var t=n.initFocus(setTimeout.bind(xn,ar.bind(xn,r,0))),o=n.initReconnect(setTimeout.bind(xn,ar.bind(xn,r,1)));a=function(){t&&t(),o&&o(),Sn.delete(e)}}};return c(),[e,i,c,a]}return[e,Sn.get(e)[4]]},sr=or(new Map),ur=c(sr,2),cr=ur[0],lr=ur[1],pr=wn({onLoadingSlow:En,onSuccess:En,onError:En,onErrorRetry:function(e,t,n,r,i){var a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!kn(a)&&o>a||setTimeout(r,s,i)},onDiscarded:En,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:zn?5e3:3e3,compare:function(e,t){return In(e)==In(t)},isPaused:function(){return!1},cache:cr,mutate:lr,fallback:{}},Un),dr=function(e,t){var n=wn(e,t);if(t){var r=e.use,i=e.fallback,a=t.use,o=t.fallback;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=wn(i,o))}return n},fr=(0,Ht.createContext)({}),hr="$inf$",vr=Pn&&window.__SWR_DEVTOOLS_USE__,mr=vr?window.__SWR_DEVTOOLS_USE__:[],yr=function(e){return Tn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},gr=function(){return wn(pr,(0,Ht.useContext)(fr))},br=mr.concat((function(e){return function(t,n,r){var i=n&&function(){var e=Jn(t),r=c(e,1),i=r[0],a=Sn.get(cr),o=c(a,4),s=o[3];if(i.startsWith(hr))return n.apply(void 0,arguments);var u=s[i];return kn(u)?n.apply(void 0,arguments):(delete s[i],u)};return e(t,i,r)}}));vr&&(window.__SWR_DEVTOOLS_REACT__=Ht);var Er,xr,Dr,kr,Tr,wr,_r,Or,Nr,Ir,Sr,Ar,Cr,Lr,Pr,Rr,Mr,Fr,qr,jr,Br,Vr,Ur,$r,Kr,Gr,Wr,Hr,Yr,zr,Jr,Qr,Xr,Zr,ei,ti,ni,ri,ii,ai,oi,si,ui=Ht.use||function(e){if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((function(t){e.status="fulfilled",e.value=t}),(function(t){e.status="rejected",e.reason=t})),e)},ci={dedupe:!0},li=(Dn.defineProperty((function(e){var t=e.value,n=(0,Ht.useContext)(fr),r=Tn(t),i=(0,Ht.useMemo)((function(){return r?t(n):t}),[r,n,t]),a=(0,Ht.useMemo)((function(){return r?i:dr(n,i)}),[r,n,i]),o=i&&i.provider,s=(0,Ht.useRef)(xn);o&&!s.current&&(s.current=or(o(a.cache||cr),i));var u=s.current;return u&&(a.cache=u[0],a.mutate=u[1]),Hn((function(){if(u)return u[2]&&u[2](),u[3]}),[]),(0,Ht.createElement)(fr.Provider,wn(e,{value:a}))}),"defaultValue",{value:pr}),Er=function(e,n,i){var a=i.cache,o=i.compare,u=i.suspense,l=i.fallbackData,p=i.revalidateOnMount,d=i.revalidateIfStale,f=i.refreshInterval,h=i.refreshWhenHidden,v=i.refreshWhenOffline,m=i.keepPreviousData,y=Sn.get(a),g=c(y,4),b=g[0],E=g[1],x=g[2],D=g[3],k=Jn(e),T=c(k,2),w=T[0],_=T[1],O=(0,Ht.useRef)(!1),N=(0,Ht.useRef)(!1),I=(0,Ht.useRef)(w),S=(0,Ht.useRef)(n),A=(0,Ht.useRef)(i),C=function(){return A.current},L=function(){return C().isVisible()&&C().isOnline()},P=Mn(a,w),R=c(P,4),M=R[0],F=R[1],q=R[2],j=R[3],B=(0,Ht.useRef)({}).current,V=kn(l)?i.fallback[w]:l,U=function(e,t){for(var n in B){var r=n;if("data"===r){if(!o(e[r],t[r])){if(!kn(e[r]))return!1;if(!o(Q,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},$=(0,Ht.useMemo)((function(){var e=!!w&&!!n&&(kn(p)?!C().isPaused()&&!u&&(!!kn(d)||d):p),t=function(t){var n=wn(t);return delete n._k,e?s({isValidating:!0,isLoading:!0},n):n},r=M(),i=j(),a=t(r),o=r===i?a:t(i),c=a;return[function(){var e=t(M());return U(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},function(){return o}]}),[a,w]),K=(0,bn.useSyncExternalStore)((0,Ht.useCallback)((function(e){return q(w,(function(t,n){U(n,t)||e()}))}),[a,w]),$[0],$[1]),G=!O.current,W=b[w]&&b[w].length>0,H=K.data,Y=kn(H)?V:H,z=K.error,J=(0,Ht.useRef)(Y),Q=m?kn(H)?J.current:H:Y,X=!(W&&!kn(z))&&(G&&!kn(p)?p:!C().isPaused()&&(u?!kn(Y)&&d:kn(Y)||d)),Z=!!(w&&n&&G&&X),ee=kn(K.isValidating)?Z:K.isValidating,te=kn(K.isLoading)?Z:K.isLoading,ne=(0,Ht.useCallback)(function(){var e=r(t().mark((function e(n){var r,a,s,u,l,p,d,f,h,v,m,y,g,D,k,T;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.current,w&&r&&!N.current&&!C().isPaused()){e.next=3;break}return e.abrupt("return",!1);case 3:return u=!0,l=n||{},p=!x[w]||!l.dedupe,d=function(){return Kn?!N.current&&w===I.current&&O.current:w===I.current},f={isValidating:!1,isLoading:!1},h=function(){F(f)},v=function(){var e=x[w];e&&e[1]===s&&delete x[w]},m={isValidating:!0},kn(M().data)&&(m.isLoading=!0),e.prev=12,p&&(F(m),i.loadingTimeout&&kn(M().data)&&setTimeout((function(){u&&d()&&C().onLoadingSlow(w,i)}),i.loadingTimeout),x[w]=[r(_),Xn()]),y=c(x[w],2),a=y[0],s=y[1],e.next=19,a;case 19:if(a=e.sent,p&&setTimeout(v,i.dedupingInterval),x[w]&&x[w][1]===s){e.next=24;break}return p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 24:if(f.error=xn,g=E[w],kn(g)||!(s<=g[0]||s<=g[1]||0===g[1])){e.next=30;break}return h(),p&&d()&&C().onDiscarded(w),e.abrupt("return",!1);case 30:D=M().data,f.data=o(D,a)?D:a,p&&d()&&C().onSuccess(a,w,i),e.next=41;break;case 35:e.prev=35,e.t0=e.catch(12),v(),k=C(),T=k.shouldRetryOnError,k.isPaused()||(f.error=e.t0,p&&d()&&(k.onError(e.t0,w,k),(!0===T||Tn(T)&&T(e.t0))&&L()&&k.onErrorRetry(e.t0,w,k,(function(e){var t=b[w];t&&t[0]&&t[0](Zn,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0})));case 41:return u=!1,h(),e.abrupt("return",!0);case 44:case"end":return e.stop()}}),e,null,[[12,35]])})));return function(t){return e.apply(this,arguments)}}(),[w,a]),re=(0,Ht.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rr.apply(void 0,[a,I.current].concat(t))}),[]);if(Hn((function(){S.current=n,A.current=i,kn(H)||(J.current=H)})),Hn((function(){if(w){var e=ne.bind(xn,ci),t=0,n=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}}(w,b,(function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n==er){var i=Date.now();C().revalidateOnFocus&&i>t&&L()&&(t=i+C().focusThrottleInterval,e())}else if(n==nr)C().revalidateOnReconnect&&L()&&e();else{if(n==tr)return ne();if(n==Zn)return ne(r)}}));return N.current=!1,I.current=w,O.current=!0,F({_k:_}),X&&(kn(Y)||Gn?e():Wn(e)),function(){N.current=!0,n()}}}),[w]),Hn((function(){var e;function t(){var t=Tn(f)?f(M().data):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){M().error||!h&&!C().isVisible()||!v&&!C().isOnline()?t():ne(ci).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,h,v,w]),(0,Ht.useDebugValue)(Q),u&&kn(Y)&&w){if(!Kn&&Gn)throw new Error("Fallback data is required when using suspense in SSR.");S.current=n,A.current=i,N.current=!1;var ie=D[w];if(!kn(ie)){var ae=re(ie);ui(ae)}if(!kn(z))throw z;var oe=ne(ci);kn(Q)||(oe.status="fulfilled",oe.value=!0),ui(oe)}return{mutate:re,get data(){return B.data=!0,Q},get error(){return B.error=!0,z},get isValidating(){return B.isValidating=!0,ee},get isLoading(){return B.isLoading=!0,te}}},function(){for(var e=gr(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=yr(n),a=c(i,3),o=a[0],s=a[1],u=a[2],l=dr(e,u),p=Er,d=l.use,f=(d||[]).concat(br),h=f.length;h--;)p=f[h](p);return p(o,s||l.fetcher||null,l)}),pi={revalidateOnFocus:"false"!==window.localStorage.getItem("swr_revalidateOnFocus"),revalidateIfStale:"false"!==window.localStorage.getItem("swr_revalidateIfStale"),revalidateOnReconnect:"false"!==window.localStorage.getItem("swr_revalidateOnReconnect")},di=function(e,t,n){var r,i=li(e,t,u()(u()({},pi),n||{})),a=i.error,o=i.data,s=o&&"[object Object]"===Object.prototype.toString.call(o)&&Object.keys(o||{}).length>0;return u()(u()({},i),{},{data:s?o:(null==a||null===(r=a.response)||void 0===r?void 0:r.data)||o,loading:!o&&!a})},fi=gn(xr||(xr=tn()(["\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n }\n message\n }\n }\n}\n "]))),hi=gn(Dr||(Dr=tn()(["\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),vi=gn(kr||(kr=tn()(["\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n "]))),mi=gn(Tr||(Tr=tn()(["\n query dataProcessDetails($input: DataProcessDetailsInput) {\n dataProcess {\n dataProcessDetails(input: $input) {\n status\n data {\n id\n status\n name\n file_type\n pre_dataset_name\n pre_dataset_version\n post_dataset_name\n post_dataset_version\n file_num\n start_time\n end_time\n config {\n name\n description\n status\n children {\n name\n enable\n zh_name\n description\n preview {\n file_name\n content {\n pre\n post\n }\n }\n }\n }\n }\n message\n }\n }\n}\n "]))),yi=gn(wr||(wr=tn()(["\n mutation createDataProcessTask($input: AddDataProcessInput) {\n dataProcess {\n createDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),gi=gn(_r||(_r=tn()(["\n mutation deleteDataProcessTask($input: DeleteDataProcessInput) {\n dataProcess {\n deleteDataProcessTask(input: $input) {\n status\n data\n message\n }\n }\n}\n "]))),bi=gn(Or||(Or=tn()(["\n query listDatasets($input: ListDatasetInput, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n listDatasets(input: $input) {\n totalCount\n nodes {\n ... on Dataset {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),Ei=gn(Nr||(Nr=tn()(["\n query getDataset($name: String!, $namespace: String!, $versionsInput: ListVersionedDatasetInput!, $filesInput: FileFilter) {\n Dataset {\n getDataset(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n updateTimestamp\n creationTimestamp\n contentType\n field\n versions(input: $versionsInput) {\n totalCount\n nodes {\n ... on VersionedDataset {\n name\n namespace\n displayName\n description\n syncStatus\n released\n dataProcessStatus\n updateTimestamp\n version\n files(input: $filesInput) {\n totalCount\n }\n }\n }\n }\n }\n }\n}\n "]))),xi=gn(Ir||(Ir=tn()(["\n mutation createDataset($input: CreateDatasetInput) {\n Dataset {\n createDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),Di=gn(Sr||(Sr=tn()(["\n mutation updateDataset($input: UpdateDatasetInput) {\n Dataset {\n updateDataset(input: $input) {\n name\n displayName\n labels\n }\n }\n}\n "]))),ki=gn(Ar||(Ar=tn()(["\n mutation deleteDatasets($input: DeleteCommonInput) {\n Dataset {\n deleteDatasets(input: $input)\n }\n}\n "]))),Ti=gn(Cr||(Cr=tn()(["\n mutation createDatasource($input: CreateDatasourceInput!) {\n Datasource {\n createDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n }\n }\n}\n "]))),wi=gn(Lr||(Lr=tn()(["\n mutation updateDatasource($input: UpdateDatasourceInput) {\n Datasource {\n updateDatasource(input: $input) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n }\n }\n}\n "]))),_i=gn(Pr||(Pr=tn()(["\n mutation deleteDatasources($input: DeleteCommonInput!) {\n Datasource {\n deleteDatasources(input: $input)\n }\n}\n "]))),Oi=gn(Rr||(Rr=tn()(["\n query listDatasources($input: ListCommonInput!) {\n Datasource {\n listDatasources(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Datasource {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n }\n }\n }\n }\n}\n "]))),Ni=gn(Mr||(Mr=tn()(["\n query getDatasource($name: String!, $namespace: String!) {\n Datasource {\n getDatasource(name: $name, namespace: $namespace) {\n id\n name\n namespace\n creator\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n oss {\n bucket\n object\n }\n creationTimestamp\n updateTimestamp\n status\n }\n }\n}\n "]))),Ii=gn(Fr||(Fr=tn()(["\n mutation createEmbedder($input: CreateEmbedderInput!) {\n Embedder {\n createEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n}\n "]))),Si=gn(qr||(qr=tn()(["\n mutation updateEmbedder($input: UpdateEmbedderInput) {\n Embedder {\n updateEmbedder(input: $input) {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n}\n "]))),Ai=gn(jr||(jr=tn()(["\n mutation deleteEmbedders($input: DeleteCommonInput!) {\n Embedder {\n deleteEmbedders(input: $input)\n }\n}\n "]))),Ci=gn(Br||(Br=tn()(["\n query listEmbedders($input: ListCommonInput!) {\n Embedder {\n listEmbedders(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Embedder {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Li=gn(Vr||(Vr=tn()(["\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n endpoint {\n url\n authSecret {\n kind\n name\n }\n insecure\n }\n type\n updateTimestamp\n }\n }\n}\n "]))),Pi=gn(Ur||(Ur=tn()(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n }\n }\n}\n "]))),Ri=gn($r||($r=tn()(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Mi=gn(Kr||(Kr=tn()(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Fi=gn(Gr||(Gr=tn()(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n embedder {\n kind\n name\n }\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),qi=gn(Wr||(Wr=tn()(["\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n "]))),ji=gn(Hr||(Hr=tn()(["\n query listModels($input: ListCommonInput!) {\n Model {\n listModels(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Model {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n }\n }\n}\n "]))),Bi=gn(Yr||(Yr=tn()(["\n query getModel($name: String!, $namespace: String!) {\n Model {\n getModel(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n}\n "]))),Vi=gn(zr||(zr=tn()(["\n mutation createModel($input: CreateModelInput!) {\n Model {\n createModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n}\n "]))),Ui=gn(Jr||(Jr=tn()(["\n mutation updateModel($input: UpdateModelInput) {\n Model {\n updateModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n types\n updateTimestamp\n }\n }\n}\n "]))),$i=gn(Qr||(Qr=tn()(["\n mutation deleteModels($input: DeleteCommonInput) {\n Model {\n deleteModels(input: $input)\n }\n}\n "]))),Ki=gn(Xr||(Xr=tn()(["\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n "]))),Gi=gn(Zr||(Zr=tn()(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "]))),Wi=gn(ei||(ei=tn()(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "]))),Hi=gn(ti||(ti=tn()(["\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "]))),Yi=gn(ni||(ni=tn()(["\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "]))),zi=gn(ri||(ri=tn()(["\n query listWorkers($input: ListCommonInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n model\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n }\n }\n}\n "]))),Ji=gn(ii||(ii=tn()(["\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n }\n }\n}\n "]))),Qi=gn(ai||(ai=tn()(["\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n model\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),Xi=gn(oi||(oi=tn()(["\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n updateTimestamp\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "]))),Zi=gn(si||(si=tn()(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "]))),ea=function(e,t,n){return e()};function ta(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea;return{allDataProcessListByPage:function(n,r){return t((function(t){return e.request(fi,n,u()(u()({},r),t))}),"allDataProcessListByPage","query")},allDataProcessListByCount:function(n,r){return t((function(t){return e.request(hi,n,u()(u()({},r),t))}),"allDataProcessListByCount","query")},dataProcessSupportType:function(n,r){return t((function(t){return e.request(vi,n,u()(u()({},r),t))}),"dataProcessSupportType","query")},dataProcessDetails:function(n,r){return t((function(t){return e.request(mi,n,u()(u()({},r),t))}),"dataProcessDetails","query")},createDataProcessTask:function(n,r){return t((function(t){return e.request(yi,n,u()(u()({},r),t))}),"createDataProcessTask","mutation")},deleteDataProcessTask:function(n,r){return t((function(t){return e.request(gi,n,u()(u()({},r),t))}),"deleteDataProcessTask","mutation")},listDatasets:function(n,r){return t((function(t){return e.request(bi,n,u()(u()({},r),t))}),"listDatasets","query")},getDataset:function(n,r){return t((function(t){return e.request(Ei,n,u()(u()({},r),t))}),"getDataset","query")},createDataset:function(n,r){return t((function(t){return e.request(xi,n,u()(u()({},r),t))}),"createDataset","mutation")},updateDataset:function(n,r){return t((function(t){return e.request(Di,n,u()(u()({},r),t))}),"updateDataset","mutation")},deleteDatasets:function(n,r){return t((function(t){return e.request(ki,n,u()(u()({},r),t))}),"deleteDatasets","mutation")},createDatasource:function(n,r){return t((function(t){return e.request(Ti,n,u()(u()({},r),t))}),"createDatasource","mutation")},updateDatasource:function(n,r){return t((function(t){return e.request(wi,n,u()(u()({},r),t))}),"updateDatasource","mutation")},deleteDatasources:function(n,r){return t((function(t){return e.request(_i,n,u()(u()({},r),t))}),"deleteDatasources","mutation")},listDatasources:function(n,r){return t((function(t){return e.request(Oi,n,u()(u()({},r),t))}),"listDatasources","query")},getDatasource:function(n,r){return t((function(t){return e.request(Ni,n,u()(u()({},r),t))}),"getDatasource","query")},createEmbedder:function(n,r){return t((function(t){return e.request(Ii,n,u()(u()({},r),t))}),"createEmbedder","mutation")},updateEmbedder:function(n,r){return t((function(t){return e.request(Si,n,u()(u()({},r),t))}),"updateEmbedder","mutation")},deleteEmbedders:function(n,r){return t((function(t){return e.request(Ai,n,u()(u()({},r),t))}),"deleteEmbedders","mutation")},listEmbedders:function(n,r){return t((function(t){return e.request(Ci,n,u()(u()({},r),t))}),"listEmbedders","query")},getEmbedder:function(n,r){return t((function(t){return e.request(Li,n,u()(u()({},r),t))}),"getEmbedder","query")},listKnowledgeBases:function(n,r){return t((function(t){return e.request(Pi,n,u()(u()({},r),t))}),"listKnowledgeBases","query")},getKnowledgeBase:function(n,r){return t((function(t){return e.request(Ri,n,u()(u()({},r),t))}),"getKnowledgeBase","query")},createKnowledgeBase:function(n,r){return t((function(t){return e.request(Mi,n,u()(u()({},r),t))}),"createKnowledgeBase","mutation")},updateKnowledgeBase:function(n,r){return t((function(t){return e.request(Fi,n,u()(u()({},r),t))}),"updateKnowledgeBase","mutation")},deleteKnowledgeBase:function(n,r){return t((function(t){return e.request(qi,n,u()(u()({},r),t))}),"deleteKnowledgeBase","mutation")},listModels:function(n,r){return t((function(t){return e.request(ji,n,u()(u()({},r),t))}),"listModels","query")},getModel:function(n,r){return t((function(t){return e.request(Bi,n,u()(u()({},r),t))}),"getModel","query")},createModel:function(n,r){return t((function(t){return e.request(Vi,n,u()(u()({},r),t))}),"createModel","mutation")},updateModel:function(n,r){return t((function(t){return e.request(Ui,n,u()(u()({},r),t))}),"updateModel","mutation")},deleteModels:function(n,r){return t((function(t){return e.request($i,n,u()(u()({},r),t))}),"deleteModels","mutation")},createVersionedDataset:function(n,r){return t((function(t){return e.request(Ki,n,u()(u()({},r),t))}),"createVersionedDataset","mutation")},updateVersionedDataset:function(n,r){return t((function(t){return e.request(Gi,n,u()(u()({},r),t))}),"updateVersionedDataset","mutation")},deleteVersionedDatasets:function(n,r){return t((function(t){return e.request(Wi,n,u()(u()({},r),t))}),"deleteVersionedDatasets","mutation")},getVersionedDataset:function(n,r){return t((function(t){return e.request(Hi,n,u()(u()({},r),t))}),"getVersionedDataset","query")},listVersionedDatasets:function(n,r){return t((function(t){return e.request(Yi,n,u()(u()({},r),t))}),"listVersionedDatasets","query")},listWorkers:function(n,r){return t((function(t){return e.request(zi,n,u()(u()({},r),t))}),"listWorkers","query")},getWorker:function(n,r){return t((function(t){return e.request(Ji,n,u()(u()({},r),t))}),"getWorker","query")},createWorker:function(n,r){return t((function(t){return e.request(Qi,n,u()(u()({},r),t))}),"createWorker","mutation")},updateWorker:function(n,r){return t((function(t){return e.request(Xi,n,u()(u()({},r),t))}),"updateWorker","mutation")},deleteWorkers:function(n,r){return t((function(t){return e.request(Zi,n,u()(u()({},r),t))}),"deleteWorkers","mutation")}}}function na(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea,n=ta(e,t),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[e].concat(h()(Object.keys(t).sort().map((function(e){return t[e]}))))};return u()(u()({},n),{},{useAllDataProcessListByPage:function(e,t){return di(r("AllDataProcessListByPage",e),(function(){return n.allDataProcessListByPage(e)}),t)},useAllDataProcessListByCount:function(e,t){return di(r("AllDataProcessListByCount",e),(function(){return n.allDataProcessListByCount(e)}),t)},useDataProcessSupportType:function(e,t){return di(r("DataProcessSupportType",e),(function(){return n.dataProcessSupportType(e)}),t)},useDataProcessDetails:function(e,t){return di(r("DataProcessDetails",e),(function(){return n.dataProcessDetails(e)}),t)},useListDatasets:function(e,t){return di(r("ListDatasets",e),(function(){return n.listDatasets(e)}),t)},useGetDataset:function(e,t){return di(r("GetDataset",e),(function(){return n.getDataset(e)}),t)},useListDatasources:function(e,t){return di(r("ListDatasources",e),(function(){return n.listDatasources(e)}),t)},useGetDatasource:function(e,t){return di(r("GetDatasource",e),(function(){return n.getDatasource(e)}),t)},useListEmbedders:function(e,t){return di(r("ListEmbedders",e),(function(){return n.listEmbedders(e)}),t)},useGetEmbedder:function(e,t){return di(r("GetEmbedder",e),(function(){return n.getEmbedder(e)}),t)},useListKnowledgeBases:function(e,t){return di(r("ListKnowledgeBases",e),(function(){return n.listKnowledgeBases(e)}),t)},useGetKnowledgeBase:function(e,t){return di(r("GetKnowledgeBase",e),(function(){return n.getKnowledgeBase(e)}),t)},useListModels:function(e,t){return di(r("ListModels",e),(function(){return n.listModels(e)}),t)},useGetModel:function(e,t){return di(r("GetModel",e),(function(){return n.getModel(e)}),t)},useGetVersionedDataset:function(e,t){return di(r("GetVersionedDataset",e),(function(){return n.getVersionedDataset(e)}),t)},useListVersionedDatasets:function(e,t){return di(r("ListVersionedDatasets",e),(function(){return n.listVersionedDatasets(e)}),t)},useListWorkers:function(e,t){return di(r("ListWorkers",e),(function(){return n.listWorkers(e)}),t)},useGetWorker:function(e,t){return di(r("GetWorker",e),(function(){return n.getWorker(e)}),t)}})}var ra=["url","operationName"],ia=function(e){var t=e.url,n=e.operationName,r=d()(e,ra),i=t.split("?"),a=l()(i,2),o=a[0],s=a[1],c=Wt.parse(s);n&&(c.o=n);var p=function(){try{return JSON.parse(window.localStorage.getItem("authData")||"{}")}catch(e){return console.warn("getAuthData failed",e),{}}}().token||{},f=p.token_type,h=p.id_token,v=f&&h&&"".concat(f," ").concat(h);return u()(u()({url:"".concat(o,"?").concat(Wt.stringify(c)),operationName:n,credentials:"include"},r),{},{headers:v?u()(u()({},e.headers),{},{Authorization:v}):u()({},e.headers)})},aa=function(e){var t,n=e.errors||(null===(t=e.response)||void 0===t?void 0:t.errors);n&&Zt(n)},oa=new dt("https://portal.172.22.96.136.nip.io/kubeagi-apis/bff",{requestMiddleware:ia,responseMiddleware:aa}),sa=na(oa),ua=function(e,t){return t||(t={}),t.requestMiddleware?t.requestMiddleware=function(){var e=o()(n()().mark((function e(r){var i;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.requestMiddleware(r);case 2:return i=e.sent,e.abrupt("return",ia(i));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():t.requestMiddleware=ia,t.responseMiddleware||(t.responseMiddleware=aa),new dt(e||endpoint,t)},ca=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.withHooks,r=e.requestConfig,i=ua(t,r),a=n?na(i):ta(i);return a},la=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig,r=ca({withHooks:!1,url:t,requestConfig:n});return r},pa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig,r=ca({withHooks:!0,url:t,requestConfig:n});return r},da=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=e.requestConfig;return(0,Ht.useMemo)((function(){return pa({url:t,requestConfig:n})}),[t,n])}}(),a}()}));
2
2
  //# sourceMappingURL=index.min.js.map