File: /var/www/html/wp-content/plugins/wp-graphql/build/app.js
(()=>{var e,t,n,r,i,o={8605(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(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([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=o(n[0]);i!==n[0]&&(t[n[0]]=i)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},28(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},7169(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__await||function(e){return this instanceof o?(this.v=e,this):new o(e)},a=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(r[e]=t(r[e])))}function c(e,t){try{(n=i[e](t)).value instanceof o?Promise.resolve(n.value.v).then(l,u):d(a[0][2],n)}catch(e){d(a[0][3],e)}var n}function l(e){c("next",e)}function u(e){c("throw",e)}function d(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.TerminatedCloseEvent=void 0,t.createClient=function(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:d=0,keepAlive:p=0,disablePong:f,connectionAckWaitTimeout:h=0,retryAttempts:m=5,retryWait:g=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise(e=>setTimeout(e,t+Math.floor(2700*Math.random()+300)))},shouldRetry:v=u,isFatalConnectionProblem:y,on:b,webSocketImpl:E,generateID:_=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:w,jsonMessageReviver:k}=e;let T;if(E){if(!("function"==typeof(S=E)&&"constructor"in S&&"CLOSED"in S&&"CLOSING"in S&&"CONNECTING"in S&&"OPEN"in S))throw new Error("Invalid WebSocket implementation provided");T=E}else"undefined"!=typeof WebSocket?T=WebSocket:"undefined"!=typeof globalThis?T=globalThis.WebSocket||globalThis.MozWebSocket:"undefined"!=typeof window&&(T=window.WebSocket||window.MozWebSocket);var S;if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const O=T,C=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==b?void 0:b.connecting)?[b.connecting]:[],opened:(null==b?void 0:b.opened)?[b.opened]:[],connected:(null==b?void 0:b.connected)?[b.connected]:[],ping:(null==b?void 0:b.ping)?[b.ping]:[],pong:(null==b?void 0:b.pong)?[b.pong]:[],message:(null==b?void 0:b.message)?[e.emit,b.message]:[e.emit],closed:(null==b?void 0:b.closed)?[b.closed]:[],error:(null==b?void 0:b.error)?[b.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function x(e){const t=[C.on("error",n=>{t.forEach(e=>e()),e(n)}),C.on("closed",n=>{t.forEach(e=>e()),e(n)})]}let N,I,A=0,D=!1,R=0,L=!1;async function P(){clearTimeout(I);const[e,r]=await(null!=N?N:N=new Promise((e,r)=>(async()=>{if(D){if(await g(R),!A)return N=void 0,r({code:1e3,reason:"All Subscriptions Gone"});R++}C.emit("connecting",D);const i=new O("function"==typeof t?await t():t,s.GRAPHQL_TRANSPORT_WS_PROTOCOL);let o,a;function u(){isFinite(p)&&p>0&&(clearTimeout(a),a=setTimeout(()=>{i.readyState===O.OPEN&&(i.send((0,s.stringifyMessage)({type:s.MessageType.Ping})),C.emit("ping",!1,void 0))},p))}x(e=>{N=void 0,clearTimeout(o),clearTimeout(a),r(e),e instanceof l&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=e=>C.emit("error",e),i.onclose=e=>C.emit("closed",e),i.onopen=async()=>{try{C.emit("opened",i);const e="function"==typeof n?await n():n;if(i.readyState!==O.OPEN)return;i.send((0,s.stringifyMessage)(e?{type:s.MessageType.ConnectionInit,payload:e}:{type:s.MessageType.ConnectionInit},w)),isFinite(h)&&h>0&&(o=setTimeout(()=>{i.close(s.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},h)),u()}catch(e){C.emit("error",e),i.close(s.CloseCode.InternalClientError,(0,c.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let d=!1;i.onmessage=({data:t})=>{try{const n=(0,s.parseMessage)(t,k);if(C.emit("message",n),"ping"===n.type||"pong"===n.type)return C.emit(n.type,!0,n.payload),void("pong"===n.type?u():f||(i.send((0,s.stringifyMessage)(n.payload?{type:s.MessageType.Pong,payload:n.payload}:{type:s.MessageType.Pong})),C.emit("pong",!1,n.payload)));if(d)return;if(n.type!==s.MessageType.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(o),d=!0,C.emit("connected",i,n.payload,D),D=!1,R=0,e([i,new Promise((e,t)=>x(t))])}catch(e){i.onmessage=null,C.emit("error",e),i.close(s.CloseCode.BadResponse,(0,c.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})()));e.readyState===O.CLOSING&&await r;let i=()=>{};const o=new Promise(e=>i=e);return[e,i,Promise.race([o.then(()=>{if(!A){const t=()=>e.close(1e3,"Normal Closure");isFinite(d)&&d>0?I=setTimeout(()=>{e.readyState===O.OPEN&&t()},d):t()}}),r])]}function j(e){if(u(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1014].includes(t)&&t>=1e3&&t<=1999||[s.CloseCode.InternalServerError,s.CloseCode.InternalClientError,s.CloseCode.BadRequest,s.CloseCode.BadResponse,s.CloseCode.Unauthorized,s.CloseCode.SubprotocolNotAcceptable,s.CloseCode.SubscriberAlreadyExists,s.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(L)return!1;if(u(e)&&1e3===e.code)return A>0;if(!m||R>=m)throw e;if(!v(e))throw e;if(null==y?void 0:y(e))throw e;return D=!0}function $(e,t){const n=_(e);let r=!1,i=!1,o=()=>{A--,r=!0};return(async()=>{for(A++;;)try{const[a,c,l]=await P();if(r)return c();const u=C.onMessage(n,e=>{switch(e.type){case s.MessageType.Next:return void t.next(e.payload);case s.MessageType.Error:return i=!0,r=!0,t.error(e.payload),void o();case s.MessageType.Complete:return r=!0,void o()}});return a.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Subscribe,payload:e},w)),o=()=>{r||a.readyState!==O.OPEN||a.send((0,s.stringifyMessage)({id:n,type:s.MessageType.Complete},w)),A--,r=!0,c()},void await l.finally(u)}catch(e){if(!j(e))return}})().then(()=>{i||t.complete()}).catch(e=>{t.error(e)}),()=>{r||o()}}return r||(async()=>{for(A++;;)try{const[,,e]=await P();await e}catch(e){try{if(!j(e))return}catch(e){return null==i?void 0:i(e)}}})(),{on:C.on,subscribe:$,iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=$(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),i=function(){return a(this,arguments,function*(){for(;;){for(t.length||(yield o(new Promise(e=>n.resolve=e)));t.length;)yield yield o(t.shift());if(n.error)throw n.error;if(n.done)return yield o(void 0)}})}();return i.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),i.return=async()=>(r(),{done:!0,value:void 0}),i},async dispose(){if(L=!0,N){const[e]=await N;e.close(1e3,"Normal Closure")}},terminate(){N&&C.emit("closed",new l)}}};const s=n(9531),c=n(9777);i(n(9531),t);class l extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function u(e){return(0,c.isObject)(e)&&"code"in e&&"reason"in e}t.TerminatedCloseEvent=l},9531(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageType=t.CloseCode=t.DEPRECATED_GRAPHQL_WS_PROTOCOL=t.GRAPHQL_TRANSPORT_WS_PROTOCOL=void 0,t.validateMessage=a,t.isMessage=function(e){try{return a(e),!0}catch(e){return!1}},t.parseMessage=function(e,t){return a("string"==typeof e?JSON.parse(e,t):e)},t.stringifyMessage=function(e,t){return a(e),JSON.stringify(e,t)};const r=n(9777);var i,o;function a(e){if(!(0,r.isObject)(e))throw new Error(`Message is expected to be an object, but got ${(0,r.extendedTypeof)(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${(0,r.extendedTypeof)(e.type)}`);switch(e.type){case o.ConnectionInit:case o.ConnectionAck:case o.Ping:case o.Pong:if(null!=e.payload&&!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case o.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${(0,r.extendedTypeof)(e.payload.query)}`);if(null!=e.payload.variables&&!(0,r.isObject)(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==(0,r.extendedTypeof)(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.operationName)}`);if(null!=e.payload.extensions&&!(0,r.isObject)(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${(0,r.extendedTypeof)(e.payload.extensions)}`);break;case o.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,r.extendedTypeof)(e.payload)}`);break;case o.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,r.areGraphQLErrors)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case o.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,r.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}t.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",t.DEPRECATED_GRAPHQL_WS_PROTOCOL="graphql-ws",function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(i||(t.CloseCode=i={})),function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(o||(t.MessageType=o={}))},7704(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(7169),t),i(n(469),t),i(n(9531),t)},469(e,t,n){"use strict";var r=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}};Object.defineProperty(t,"__esModule",{value:!0}),t.makeServer=function(e){const{schema:t,context:n,roots:s,validate:c,execute:l,subscribe:u,connectionInitWaitTimeout:d=3e3,onConnect:p,onDisconnect:f,onClose:h,onSubscribe:m,onOperation:g,onNext:v,onError:y,onComplete:b,jsonMessageReviver:E,jsonMessageReplacer:_}=e;return{opened(e,w){const k={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:w};if(e.protocol!==o.GRAPHQL_TRANSPORT_WS_PROTOCOL)return e.close(o.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null==h?void 0:h(k,e,t))};const T=d>0&&isFinite(d)?setTimeout(()=>{k.connectionInitReceived||e.close(o.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")},d):null;return e.onMessage(async function(d){var f,h,w,T,S;let O;try{O=(0,o.parseMessage)(d,E)}catch(t){return e.close(o.CloseCode.BadRequest,"Invalid message received")}switch(O.type){case o.MessageType.ConnectionInit:{if(k.connectionInitReceived)return e.close(o.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests");k.connectionInitReceived=!0,(0,a.isObject)(O.payload)&&(k.connectionParams=O.payload);const t=await(null==p?void 0:p(k));return!1===t?e.close(o.CloseCode.Forbidden,"Forbidden"):(k.acknowledged=!0,void await e.send((0,o.stringifyMessage)((0,a.isObject)(t)?{type:o.MessageType.ConnectionAck,payload:t}:{type:o.MessageType.ConnectionAck},_)))}case o.MessageType.Ping:return e.onPing?await e.onPing(O.payload):void await e.send((0,o.stringifyMessage)(O.payload?{type:o.MessageType.Pong,payload:O.payload}:{type:o.MessageType.Pong}));case o.MessageType.Pong:return await(null===(S=e.onPong)||void 0===S?void 0:S.call(e,O.payload));case o.MessageType.Subscribe:{if(!k.acknowledged)return e.close(o.CloseCode.Unauthorized,"Unauthorized");const{id:d,payload:p}=O;if(d in k.subscriptions)return e.close(o.CloseCode.SubscriberAlreadyExists,`Subscriber for ${d} already exists`);k.subscriptions[d]=null;const E={next:async(t,n)=>{let r={id:d,type:o.MessageType.Next,payload:t};const i=await(null==v?void 0:v(k,r,n,t));i&&(r=Object.assign(Object.assign({},r),{payload:i})),await e.send((0,o.stringifyMessage)(r,_))},error:async t=>{let n={id:d,type:o.MessageType.Error,payload:t};const r=await(null==y?void 0:y(k,n,t));r&&(n=Object.assign(Object.assign({},n),{payload:r})),await e.send((0,o.stringifyMessage)(n,_))},complete:async t=>{const n={id:d,type:o.MessageType.Complete};await(null==b?void 0:b(k,n)),t&&await e.send((0,o.stringifyMessage)(n,_))}};try{let e;const o=await(null==m?void 0:m(k,O));if(o){if((0,a.areGraphQLErrors)(o))return d in k.subscriptions?await E.error(o):void 0;if(Array.isArray(o))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=o}else{if(!t)throw new Error("The GraphQL schema is not provided");const n={operationName:p.operationName,document:(0,i.parse)(p.query),variableValues:p.variables};e=Object.assign(Object.assign({},n),{schema:"function"==typeof t?await t(k,O,n):t});const r=(null!=c?c:i.validate)(e.schema,e.document);if(r.length>0)return d in k.subscriptions?await E.error(r):void 0}const v=(0,i.getOperationAST)(e.document,e.operationName);if(!v)return d in k.subscriptions?await E.error([new i.GraphQLError("Unable to identify operation")]):void 0;let y;"rootValue"in e||(e.rootValue=null==s?void 0:s[v.operation]),"contextValue"in e||(e.contextValue="function"==typeof n?await n(k,O,e):n),y="subscription"===v.operation?await(null!=u?u:i.subscribe)(e):await(null!=l?l:i.execute)(e);const b=await(null==g?void 0:g(k,O,e,y));if(b&&(y=b),(0,a.isAsyncIterable)(y))if(d in k.subscriptions){k.subscriptions[d]=y;try{for(var C,x=!0,N=r(y);!(f=(C=await N.next()).done);x=!0){T=C.value,x=!1;const t=T;await E.next(t,e)}}catch(e){h={error:e}}finally{try{x||f||!(w=N.return)||await w.call(N)}finally{if(h)throw h.error}}}else(0,a.isAsyncGenerator)(y)&&y.return(void 0);else d in k.subscriptions&&await E.next(y,e);await E.complete(d in k.subscriptions)}finally{delete k.subscriptions[d]}return}case o.MessageType.Complete:{const e=k.subscriptions[O.id];return delete k.subscriptions[O.id],void((0,a.isAsyncGenerator)(e)&&await e.return(void 0))}default:throw new Error(`Unexpected message of type ${O.type} received`)}}),async(e,t)=>{T&&clearTimeout(T);const n=Object.assign({},k.subscriptions);k.subscriptions={},await Promise.all(Object.values(n).filter(a.isAsyncGenerator).map(e=>e.return(void 0))),k.acknowledged&&await(null==f?void 0:f(k,e,t)),await(null==h?void 0:h(k,e,t))}}}},t.handleProtocols=function(e){switch(!0){case e instanceof Set&&e.has(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):case Array.isArray(e)&&e.includes(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):case"string"==typeof e&&e.split(",").map(e=>e.trim()).includes(o.GRAPHQL_TRANSPORT_WS_PROTOCOL):return o.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}};const i=n(5549),o=n(9531),a=n(9777)},9777(e,t){"use strict";function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function r(e){return"object"===n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.extendedTypeof=n,t.isObject=r,t.isAsyncIterable=function(e){return"function"==typeof Object(e)[Symbol.asyncIterator]},t.isAsyncGenerator=function(e){return r(e)&&"function"==typeof Object(e)[Symbol.asyncIterator]&&"function"==typeof e.return},t.areGraphQLErrors=function(e){return Array.isArray(e)&&e.length>0&&e.every(e=>"message"in e)},t.limitCloseReason=function(e,t){return e.length<124?e:t}},4897(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(8582),i=n(4251),o=n(354);class a extends Error{constructor(e,...t){var n,o,c;const{nodes:l,source:u,positions:d,path:p,originalError:f,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(l)?l:l?[l]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==m?void 0:m.map(e=>e.start),this.locations=d&&u?d.map(e=>(0,i.getLocation)(u,e)):null==m?void 0:m.map(e=>(0,i.getLocation)(e.source,e.start));const g=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(c=null!=h?h:g)&&void 0!==c?c:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},5838(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return r.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var r=n(4897),i=n(629),o=n(9972)},9972(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;const a=(0,r.toError)(e);return s=a,Array.isArray(s.path)?a:new i.GraphQLError(a.message,{nodes:null!==(o=a.nodes)&&void 0!==o?o:t,source:a.source,positions:a.positions,path:n,originalError:a});var s};var r=n(1169),i=n(4897)},629(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var r=n(4897)},9725(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectFields=function(e,t,n,r,i){const o=new Map;return c(e,t,n,r,i,o,new Set),o},t.collectSubfields=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&c(e,t,n,r,s.selectionSet,o,a);return o};var r=n(2057),i=n(4659),o=n(4932),a=n(3312),s=n(5310);function c(e,t,n,i,o,a,s){for(const p of o.selections)switch(p.kind){case r.Kind.FIELD:{if(!l(n,p))continue;const e=d(p),t=a.get(e);void 0!==t?t.push(p):a.set(e,[p]);break}case r.Kind.INLINE_FRAGMENT:if(!l(n,p)||!u(e,p,i))continue;c(e,t,n,i,p.selectionSet,a,s);break;case r.Kind.FRAGMENT_SPREAD:{const r=p.name.value;if(s.has(r)||!l(n,p))continue;s.add(r);const o=t[r];if(!o||!u(e,o,i))continue;c(e,t,n,i,o.selectionSet,a,s);break}}}function l(e,t){const n=(0,s.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,s.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function u(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,a.typeFromAST)(e,r);return o===n||!!(0,i.isAbstractType)(o)&&e.isSubType(o,n)}function d(e){return e.alias?e.alias.value:e.name.value}},333(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidExecutionArguments=S,t.buildExecutionContext=O,t.buildResolveInfo=N,t.defaultTypeResolver=t.defaultFieldResolver=void 0,t.execute=k,t.executeSync=function(e){const t=k(e);if((0,c.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t},t.getFieldDef=$;var r=n(5269),i=n(3216),o=n(1880),a=n(115),s=n(8582),c=n(6225),l=n(835),u=n(5261),d=n(5285),p=n(531),f=n(4897),h=n(9972),m=n(3378),g=n(2057),v=n(4659),y=n(5543),b=n(1108),E=n(9725),_=n(5310);const w=(0,l.memoize3)((e,t,n)=>(0,E.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function k(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:i,rootValue:o}=e;S(t,n,i);const a=O(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new f.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,E.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case m.OperationTypeNode.QUERY:return C(e,r,n,o,i);case m.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return(0,p.promiseReduce)(i.entries(),(i,[o,a])=>{const s=(0,u.addPath)(r,o,t.name),l=x(e,t,n,a,s);return void 0===l?i:(0,c.isPromise)(l)?l.then(e=>(i[o]=e,i)):(i[o]=l,i)},Object.create(null))}(e,r,n,o,i);case m.OperationTypeNode.SUBSCRIPTION:return C(e,r,n,o,i)}}(a,e,o);return(0,c.isPromise)(t)?t.then(e=>T(e,a.errors),e=>(a.errors.push(e),T(null,a.errors))):T(t,a.errors)}catch(e){return a.errors.push(e),T(null,a.errors)}}function T(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function S(e,t,n){t||(0,r.devAssert)(!1,"Must provide document."),(0,b.assertValidSchema)(e),null==n||(0,s.isObjectLike)(n)||(0,r.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function O(e){var t,n,r;const{schema:i,document:o,rootValue:a,contextValue:s,variableValues:c,operationName:l,fieldResolver:u,typeResolver:d,subscribeFieldResolver:p,options:h}=e;let m;const v=Object.create(null);for(const e of o.definitions)switch(e.kind){case g.Kind.OPERATION_DEFINITION:if(null==l){if(void 0!==m)return[new f.GraphQLError("Must provide operation name if query contains multiple operations.")];m=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===l&&(m=e);break;case g.Kind.FRAGMENT_DEFINITION:v[e.name.value]=e}if(!m)return null!=l?[new f.GraphQLError(`Unknown operation named "${l}".`)]:[new f.GraphQLError("Must provide an operation.")];const y=null!==(n=m.variableDefinitions)&&void 0!==n?n:[],b=(0,_.getVariableValues)(i,y,null!=c?c:{},{maxErrors:null!==(r=null==h?void 0:h.maxCoercionErrors)&&void 0!==r?r:50});return b.errors?b.errors:{schema:i,fragments:v,rootValue:a,contextValue:s,operation:m,variableValues:b.coerced,fieldResolver:null!=u?u:j,typeResolver:null!=d?d:P,subscribeFieldResolver:null!=p?p:j,errors:[]}}function C(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[s,l]of i.entries()){const i=x(e,t,n,l,(0,u.addPath)(r,s,t.name));void 0!==i&&(o[s]=i,(0,c.isPromise)(i)&&(a=!0))}}catch(e){if(a)return(0,d.promiseForObject)(o).finally(()=>{throw e});throw e}return a?(0,d.promiseForObject)(o):o}function x(e,t,n,r,i){var o;const a=$(e.schema,t,r[0]);if(!a)return;const s=a.type,l=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,d=N(e,a,r,t,i);try{const t=l(n,(0,_.getArgumentValues)(a,r[0],e.variableValues),e.contextValue,d);let o;return o=(0,c.isPromise)(t)?t.then(t=>A(e,s,r,d,i,t)):A(e,s,r,d,i,t),(0,c.isPromise)(o)?o.then(void 0,t=>I((0,h.locatedError)(t,r,(0,u.pathToArray)(i)),s,e)):o}catch(t){return I((0,h.locatedError)(t,r,(0,u.pathToArray)(i)),s,e)}}function N(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function I(e,t,n){if((0,v.isNonNullType)(t))throw e;return n.errors.push(e),null}function A(e,t,n,r,s,l){if(l instanceof Error)throw l;if((0,v.isNonNullType)(t)){const i=A(e,t.ofType,n,r,s,l);if(null===i)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return i}return null==l?null:(0,v.isListType)(t)?function(e,t,n,r,i,o){if(!(0,a.isIterableObject)(o))throw new f.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let l=!1;const d=Array.from(o,(t,o)=>{const a=(0,u.addPath)(i,o,void 0);try{let i;return i=(0,c.isPromise)(t)?t.then(t=>A(e,s,n,r,a,t)):A(e,s,n,r,a,t),(0,c.isPromise)(i)?(l=!0,i.then(void 0,t=>I((0,h.locatedError)(t,n,(0,u.pathToArray)(a)),s,e))):i}catch(t){return I((0,h.locatedError)(t,n,(0,u.pathToArray)(a)),s,e)}});return l?Promise.all(d):d}(e,t,n,r,s,l):(0,v.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,i.inspect)(e)}.serialize(${(0,i.inspect)(t)})\` to return non-nullable value, returned: ${(0,i.inspect)(n)}`);return n}(t,l):(0,v.isAbstractType)(t)?function(e,t,n,r,i,o){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,u=s(o,l,r,t);return(0,c.isPromise)(u)?u.then(a=>R(e,D(a,e,t,n,r,o),n,r,i,o)):R(e,D(u,e,t,n,r,o),n,r,i,o)}(e,t,n,r,s,l):(0,v.isObjectType)(t)?R(e,t,n,r,s,l):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,i.inspect)(t))}function D(e,t,n,r,o,a){if(null==e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,v.isObjectType)(e))throw new f.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new f.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,i.inspect)(a)}, received "${(0,i.inspect)(e)}".`);const s=t.schema.getType(e);if(null==s)throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,v.isObjectType)(s))throw new f.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new f.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function R(e,t,n,r,i,o){const a=w(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(o,e.contextValue,r);if((0,c.isPromise)(s))return s.then(r=>{if(!r)throw L(t,o,n);return C(e,t,o,i,a)});if(!s)throw L(t,o,n)}return C(e,t,o,i,a)}function L(e,t,n){return new f.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,i.inspect)(t)}.`,{nodes:n})}const P=function(e,t,n,r){if((0,s.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if((0,c.isPromise)(i))o[r]=i;else if(i)return o.length&&Promise.allSettled(o).catch(()=>{}),a.name}}return o.length?Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name}):void 0};t.defaultTypeResolver=P;const j=function(e,t,n,r){if((0,s.isObjectLike)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function $(e,t,n){const r=n.name.value;return r===y.SchemaMetaFieldDef.name&&e.getQueryType()===t?y.SchemaMetaFieldDef:r===y.TypeMetaFieldDef.name&&e.getQueryType()===t?y.TypeMetaFieldDef:r===y.TypeNameMetaFieldDef.name?y.TypeNameMetaFieldDef:t.getFields()[r]}t.defaultFieldResolver=j},5022(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return o.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return i.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return i.defaultTypeResolver}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return i.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return i.executeSync}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return a.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return a.getVariableValues}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return r.pathToArray}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return o.subscribe}});var r=n(5261),i=n(333),o=n(6266),a=n(5310)},1448(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapAsyncIterator=function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}},6266(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceEventStream=f,t.subscribe=async function(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await f(e);return(0,o.isAsyncIterable)(t)?(0,d.mapAsyncIterator)(t,t=>(0,u.execute)({...e,rootValue:t})):t};var r=n(5269),i=n(3216),o=n(7314),a=n(5261),s=n(4897),c=n(9972),l=n(9725),u=n(333),d=n(1448),p=n(5310);async function f(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:d}=t;(0,u.assertValidExecutionArguments)(n,r,d);const f=(0,u.buildExecutionContext)(t);if(!("schema"in f))return{errors:f};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,d=t.getSubscriptionType();if(null==d)throw new s.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});const f=(0,l.collectFields)(t,n,i,d,r.selectionSet),[h,m]=[...f.entries()][0],g=(0,u.getFieldDef)(t,d,m[0]);if(!g){const e=m[0].name.value;throw new s.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:m})}const v=(0,a.addPath)(void 0,h,d.name),y=(0,u.buildResolveInfo)(e,g,m,d,v);try{var b;const t=(0,p.getArgumentValues)(g,m[0],i),n=e.contextValue,r=null!==(b=g.subscribe)&&void 0!==b?b:e.subscribeFieldResolver,a=await r(o,t,n,y);if(a instanceof Error)throw a;return a}catch(e){throw(0,c.locatedError)(e,m,(0,a.pathToArray)(v))}}(f);if(!(0,o.isAsyncIterable)(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,i.inspect)(e)}.`);return e}catch(e){if(e instanceof s.GraphQLError)return{errors:[e]};throw e}}},5310(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArgumentValues=f,t.getDirectiveValues=function(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return f(e,i,n)},t.getVariableValues=function(e,t,n,i){const s=[],f=null==i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const s={};for(const f of t){const t=f.variable.name.value,m=(0,d.typeFromAST)(e,f.type);if(!(0,l.isInputType)(m)){const e=(0,c.print)(f.type);i(new a.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:f.type}));continue}if(!h(n,t)){if(f.defaultValue)s[t]=(0,p.valueFromAST)(f.defaultValue,m);else if((0,l.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:f}))}continue}const g=n[t];if(null===g&&(0,l.isNonNullType)(m)){const e=(0,r.inspect)(m);i(new a.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:f}));continue}s[t]=(0,u.coerceInputValue)(g,m,(e,n,s)=>{let c=`Variable "$${t}" got invalid value `+(0,r.inspect)(n);e.length>0&&(c+=` at "${t}${(0,o.printPathArray)(e)}"`),i(new a.GraphQLError(c+"; "+s.message,{nodes:f,originalError:s}))})}return s}(e,t,n,e=>{if(null!=f&&s.length>=f)throw new a.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)});if(0===s.length)return{coerced:i}}catch(e){s.push(e)}return{errors:s}};var r=n(3216),i=n(8881),o=n(9167),a=n(4897),s=n(2057),c=n(3230),l=n(4659),u=n(214),d=n(3312),p=n(6797);function f(e,t,n){var o;const u={},d=null!==(o=t.arguments)&&void 0!==o?o:[],f=(0,i.keyMap)(d,e=>e.name.value);for(const i of e.args){const e=i.name,o=i.type,d=f[e];if(!d){if(void 0!==i.defaultValue)u[e]=i.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was not provided.`,{nodes:t});continue}const m=d.value;let g=m.kind===s.Kind.NULL;if(m.kind===s.Kind.VARIABLE){const t=m.name.value;if(null==n||!h(n,t)){if(void 0!==i.defaultValue)u[e]=i.defaultValue;else if((0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:m});continue}g=null==n[t]}if(g&&(0,l.isNonNullType)(o))throw new a.GraphQLError(`Argument "${e}" of non-null type "${(0,r.inspect)(o)}" must not be null.`,{nodes:m});const v=(0,p.valueFromAST)(m,o,n);if(void 0===v)throw new a.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(m)}.`,{nodes:m});u[e]=v}return u}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},4806(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=function(e){return new Promise(t=>t(l(e)))},t.graphqlSync=function(e){const t=l(e);if((0,i.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t};var r=n(5269),i=n(6225),o=n(2275),a=n(1108),s=n(9865),c=n(333);function l(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:i,contextValue:l,variableValues:u,operationName:d,fieldResolver:p,typeResolver:f}=e,h=(0,a.validateSchema)(t);if(h.length>0)return{errors:h};let m;try{m=(0,o.parse)(n)}catch(e){return{errors:[e]}}const g=(0,s.validate)(t,m);return g.length>0?{errors:g}:(0,c.execute)({schema:t,document:m,rootValue:i,contextValue:l,variableValues:u,operationName:d,fieldResolver:p,typeResolver:f})}},9991(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return a.BREAK}}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return u.BreakingChangeType}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return u.DangerousChangeType}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return a.DirectiveLocation}}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return c.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return c.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return o.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return o.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return l.GraphQLError}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return o.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return o.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return o.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return o.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return o.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return o.GraphQLOneOfDirective}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return o.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return o.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return o.GraphQLUnionType}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return c.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return c.KnownTypeNamesRule}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return a.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return a.Location}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return c.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return c.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return c.MaxIntrospectionDepthRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return c.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return c.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return c.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return c.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return c.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c.NoUnusedVariablesRule}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return a.OperationTypeNode}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return c.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return c.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return c.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return c.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return c.ScalarLeafsRule}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return o.SchemaMetaFieldDef}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return c.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return a.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return a.TokenKind}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return u.TypeInfo}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return o.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return o.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return o.TypeNameMetaFieldDef}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return c.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return c.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return c.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return c.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return c.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return c.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return c.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return c.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return c.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return c.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return c.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return c.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return c.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return o.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return o.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return o.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return o.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return o.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return o.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return o.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return o.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return o.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return o.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return o.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return o.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return o.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return o.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return o.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return o.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return o.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return o.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return o.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return o.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return o.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return o.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return o.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return o.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return o.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return o.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return o.assertUnionType}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return u.assertValidName}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return o.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return o.assertWrappingType}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return u.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return u.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return u.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return u.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return u.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return u.concatAST}}),Object.defineProperty(t,"createSourceEventStream",{enumerable:!0,get:function(){return s.createSourceEventStream}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return s.defaultFieldResolver}}),Object.defineProperty(t,"defaultTypeResolver",{enumerable:!0,get:function(){return s.defaultTypeResolver}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return u.doTypesOverlap}}),Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return s.execute}}),Object.defineProperty(t,"executeSync",{enumerable:!0,get:function(){return s.executeSync}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return u.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return u.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return u.findDangerousChanges}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return l.formatError}}),Object.defineProperty(t,"getArgumentValues",{enumerable:!0,get:function(){return s.getArgumentValues}}),Object.defineProperty(t,"getDirectiveValues",{enumerable:!0,get:function(){return s.getDirectiveValues}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return a.getEnterLeaveForKind}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return u.getIntrospectionQuery}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return a.getLocation}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return o.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return o.getNullableType}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return u.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return u.getOperationRootType}}),Object.defineProperty(t,"getVariableValues",{enumerable:!0,get:function(){return s.getVariableValues}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return a.getVisitFn}}),Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}}),Object.defineProperty(t,"graphqlSync",{enumerable:!0,get:function(){return i.graphqlSync}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return u.introspectionFromSchema}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return o.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return o.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return o.isCompositeType}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return a.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return a.isDefinitionNode}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return o.isEnumType}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return u.isEqualType}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return a.isExecutableDefinitionNode}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return o.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return o.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return o.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return o.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return o.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return o.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return o.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return o.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return o.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return o.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return o.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return o.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return o.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return o.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return o.isSchema}}),Object.defineProperty(t,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return a.isSchemaCoordinateNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return a.isSelectionNode}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return o.isType}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return a.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return a.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return a.isTypeNode}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return u.isTypeSubTypeOf}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return a.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return a.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return o.isUnionType}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return u.isValidNameError}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return a.isValueNode}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return o.isWrappingType}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return l.locatedError}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return a.parseConstValue}}),Object.defineProperty(t,"parseSchemaCoordinate",{enumerable:!0,get:function(){return a.parseSchemaCoordinate}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return a.print}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return l.printError}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return u.printIntrospectionSchema}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return u.printSchema}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return u.printType}}),Object.defineProperty(t,"recommendedRules",{enumerable:!0,get:function(){return c.recommendedRules}}),Object.defineProperty(t,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return u.resolveASTSchemaCoordinate}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return o.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return o.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return u.resolveSchemaCoordinate}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return s.responsePathAsArray}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return u.separateOperations}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return c.specifiedRules}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return u.stripIgnoredCharacters}}),Object.defineProperty(t,"subscribe",{enumerable:!0,get:function(){return s.subscribe}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return l.syntaxError}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return u.typeFromAST}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.validate}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return o.validateSchema}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return u.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return u.valueFromASTUntyped}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(t,"versionInfo",{enumerable:!0,get:function(){return r.versionInfo}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return a.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return u.visitWithTypeInfo}});var r=n(1159),i=n(4806),o=n(4660),a=n(4330),s=n(5022),c=n(6531),l=n(5838),u=n(3936)},5261(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}},5269(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!Boolean(e))throw new Error(t)}},1971(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.didYouMean=function(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}},8798(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=function(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}},5094(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identityFunc=function(e){return e}},3216(e,t){"use strict";function n(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:n(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const r=Math.min(10,e.length),i=e.length-r,o=[];for(let i=0;i<r;++i)o.push(n(e[i],t));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=r.map(([e,r])=>e+": "+n(r,t));return"{ "+i.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return n(e,[])}},3588(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var r=n(3216);const i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" 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};t.instanceOf=i},1880(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},7314(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=function(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}},115(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterableObject=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}},8582(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},6225(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},8881(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyMap=function(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}},196(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyValMap=function(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}},4245(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValue=function(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}},835(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize3=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}},602(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.naturalCompare=function(e,t){let i=0,o=0;for(;i<e.length&&o<t.length;){let a=e.charCodeAt(i),s=t.charCodeAt(o);if(r(a)&&r(s)){let c=0;do{++i,c=10*c+a-n,a=e.charCodeAt(i)}while(r(a)&&c>0);let l=0;do{++o,l=10*l+s-n,s=t.charCodeAt(o)}while(r(s)&&l>0);if(c<l)return-1;if(c>l)return 1}else{if(a<s)return-1;if(a>s)return 1;++i,++o}}return e.length-t.length};const n=48;function r(e){return!isNaN(e)&&n<=e&&e<=57}},9167(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPathArray=function(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}},5285(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseForObject=function(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}},531(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promiseReduce=function(e,t,n){let i=n;for(const n of e)i=(0,r.isPromise)(i)?i.then(e=>t(e,n)):t(i,n);return i};var r=n(6225)},6206(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionList=function(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=o.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)})};var r=n(602);class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=o(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=o(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const a=r.length,s=i.length;if(a-s>t)return;const c=this._rows;for(let e=0;e<=s;e++)c[0][e]=e;for(let e=1;e<=a;e++){const n=c[(e-1)%3],o=c[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let l=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=c[(e-2)%3][t-2];l=Math.min(l,n+1)}l<a&&(a=l),o[t]=l}if(a>t)return}const l=c[a%3][s];return l<=t?l:void 0}}function o(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},1169(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toError=function(e){return e instanceof Error?e:new i(e)};var r=n(3216);class i extends Error{constructor(e){super("Unexpected error value: "+(0,r.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}},5378(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toObjMap=function(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}},3378(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)};class n{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=n;class r{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=r;const i={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};t.QueryDocumentKeys=i;const o=new Set(Object.keys(i));var a;t.OperationTypeNode=a,function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(a||(t.OperationTypeNode=a={}))},4758(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],c=i(s);c!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,o=t,0!==t&&c<n&&(n=c))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,o+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)},t.printBlockString=function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0))),s=n.endsWith('\\"""'),c=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=c||l,d=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s);let p="";const f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(d&&!f||a)&&(p+="\n"),p+=n,(d||u)&&(p+="\n"),'"""'+p+'"""'};var r=n(8765);function i(e){let t=0;for(;t<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}},8765(e,t){"use strict";function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},3684(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(t.DirectiveLocation=n={}))},4330(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return d.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return h.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return c.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return p.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return p.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return p.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return d.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return d.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return f.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return f.isDefinitionNode}}),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return f.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return f.isSchemaCoordinateNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return f.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return f.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return f.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return f.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return f.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return f.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return f.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return l.parseConstValue}}),Object.defineProperty(t,"parseSchemaCoordinate",{enumerable:!0,get:function(){return l.parseSchemaCoordinate}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return l.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return l.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return u.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return d.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return d.visitInParallel}});var r=n(6241),i=n(4251),o=n(354),a=n(2057),s=n(8053),c=n(4524),l=n(2275),u=n(3230),d=n(8048),p=n(3378),f=n(9674),h=n(3684)},2057(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(n||(t.Kind=n={}))},4524(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.createToken=h,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.DOT||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R},t.printCodePointAt=f,t.readName=O;var r=n(629),i=n(3378),o=n(4758),a=n(8765),s=n(8053);class c{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=m(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function l(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return d(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function f(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t){const n=e.source.body,i=n.length;let o=t;for(;o<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return g(e,o);case 33:return h(e,s.TokenKind.BANG,o,o+1);case 36:return h(e,s.TokenKind.DOLLAR,o,o+1);case 38:return h(e,s.TokenKind.AMP,o,o+1);case 40:return h(e,s.TokenKind.PAREN_L,o,o+1);case 41:return h(e,s.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return h(e,s.TokenKind.SPREAD,o,o+3);break;case 58:return h(e,s.TokenKind.COLON,o,o+1);case 61:return h(e,s.TokenKind.EQUALS,o,o+1);case 64:return h(e,s.TokenKind.AT,o,o+1);case 91:return h(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return h(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return h(e,s.TokenKind.BRACE_L,o,o+1);case 124:return h(e,s.TokenKind.PIPE,o,o+1);case 125:return h(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?S(e,o):b(e,o)}if((0,a.isDigit)(t)||45===t)return v(e,o,t);if((0,a.isNameStart)(t))return O(e,o);throw(0,r.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":l(t)||u(n,o)?`Unexpected character: ${f(e,o)}.`:`Invalid character: ${f(e,o)}.`)}return h(e,s.TokenKind.EOF,i,i)}function g(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(l(e))++i;else{if(!u(n,i))break;i+=2}}return h(e,s.TokenKind.COMMENT,t,i,n.slice(t+1,i))}function v(e,t,n){const i=e.source.body;let o=t,c=n,l=!1;if(45===c&&(c=i.charCodeAt(++o)),48===c){if(c=i.charCodeAt(++o),(0,a.isDigit)(c))throw(0,r.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=y(e,o,c),c=i.charCodeAt(o);if(46===c&&(l=!0,c=i.charCodeAt(++o),o=y(e,o,c),c=i.charCodeAt(o)),69!==c&&101!==c||(l=!0,c=i.charCodeAt(++o),43!==c&&45!==c||(c=i.charCodeAt(++o)),o=y(e,o,c),c=i.charCodeAt(o)),46===c||(0,a.isNameStart)(c))throw(0,r.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return h(e,l?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function y(e,t,n){if(!(0,a.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function b(e,t){const n=e.source.body,i=n.length;let o=t+1,a=o,c="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return c+=n.slice(a,o),h(e,s.TokenKind.STRING,t,o+1,c);if(92===i){c+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?E(e,o):_(e,o):T(e,o);c+=t.value,o+=t.size,a=o;continue}if(10===i||13===i)break;if(l(i))++o;else{if(!u(n,o))throw(0,r.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`);o+=2}}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}function E(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!l(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|k(e),i<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function _(e,t){const n=e.source.body,i=w(n,t+2);if(l(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=w(n,t+8);if(p(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function w(e,t){return k(e.charCodeAt(t))<<12|k(e.charCodeAt(t+1))<<8|k(e.charCodeAt(t+2))<<4|k(e.charCodeAt(t+3))}function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function S(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,c=t+3,d=c,p="";const m=[];for(;c<i;){const i=n.charCodeAt(c);if(34===i&&34===n.charCodeAt(c+1)&&34===n.charCodeAt(c+2)){p+=n.slice(d,c),m.push(p);const r=h(e,s.TokenKind.BLOCK_STRING,t,c+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=a,r}if(92!==i||34!==n.charCodeAt(c+1)||34!==n.charCodeAt(c+2)||34!==n.charCodeAt(c+3))if(10!==i&&13!==i)if(l(i))++c;else{if(!u(n,c))throw(0,r.syntaxError)(e.source,c,`Invalid character within String: ${f(e,c)}.`);c+=2}else p+=n.slice(d,c),m.push(p),13===i&&10===n.charCodeAt(c+1)?c+=2:++c,p="",d=c,a=c;else p+=n.slice(d,c),d=c+1,c+=4}throw(0,r.syntaxError)(e.source,c,"Unterminated string.")}function O(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,a.isNameContinue)(e))break;++i}return h(e,s.TokenKind.NAME,t,i,n.slice(t,i))}t.Lexer=c},4251(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(1880);const i=/\r\n|[\n\r]/g},2275(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){const n=new d(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r},t.parseConstValue=function(e,t){const n=new d(e,t);n.expectToken(u.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(u.TokenKind.EOF),r},t.parseSchemaCoordinate=function(e){const t=(0,l.isSource)(e)?e:new l.Source(e),n=new c.SchemaCoordinateLexer(t),r=new d(e,{lexer:n});r.expectToken(u.TokenKind.SOF);const i=r.parseSchemaCoordinate();return r.expectToken(u.TokenKind.EOF),i},t.parseType=function(e,t){const n=new d(e,t);n.expectToken(u.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(u.TokenKind.EOF),r},t.parseValue=function(e,t){const n=new d(e,t);n.expectToken(u.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(u.TokenKind.EOF),r};var r=n(629),i=n(3378),o=n(3684),a=n(2057),s=n(4524),c=n(4027),l=n(6241),u=n(8053);class d{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new s.Lexer(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===u.TokenKind.BRACE_L)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===u.TokenKind.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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(u.TokenKind.NAME)&&(r=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(u.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(u.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(u.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case u.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){if(this.expectToken(u.TokenKind.DOLLAR),this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),u.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,()=>this.parseObjectField(e),u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(u.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(u.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(u.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(u.TokenKind.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(u.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${p(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(u.TokenKind.AT),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(u.TokenKind.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(u.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(u.TokenKind.COLON),this.expectToken(u.TokenKind.PAREN_R)),t?i?this.node(e,{kind:a.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:a.Kind.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:a.Kind.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:a.Kind.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:a.Kind.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${f(e)}, found ${p(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==u.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${p(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===u.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${p(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==u.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function p(e){const t=e.value;return f(e.kind)+(null!=t?` "${t}"`:"")}function f(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=d},9674(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===r.Kind.LIST?t.values.some(e):t.kind===r.Kind.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==r.Kind.VARIABLE)},t.isDefinitionNode=function(e){return i(e)||a(e)||c(e)},t.isExecutableDefinitionNode=i,t.isSchemaCoordinateNode=function(e){return e.kind===r.Kind.TYPE_COORDINATE||e.kind===r.Kind.MEMBER_COORDINATE||e.kind===r.Kind.ARGUMENT_COORDINATE||e.kind===r.Kind.DIRECTIVE_COORDINATE||e.kind===r.Kind.DIRECTIVE_ARGUMENT_COORDINATE},t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=l,t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=c,t.isValueNode=o;var r=n(2057);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||s(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function c(e){return e.kind===r.Kind.SCHEMA_EXTENSION||l(e)}function l(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},354(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(4251);function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,c=1===t.line?n:0,l=t.column+c,u=`${e.name}:${s}:${l}\n`,d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+o([[`${s} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+o([[s-1+" |",d[i-1]],[`${s} |`,p],["|","^".padStart(l)],[`${s+1} |`,d[i+1]]])}function o(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},1384(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}const i=["\\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"]},3230(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var r=n(4758),i=n(1384),o=n(8048);const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=d(e.variableDefinitions)?l("(\n",s(e.variableDefinitions,"\n"),"\n)"):l("(",s(e.variableDefinitions,", "),")"),n=l("",e.description,"\n")+s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>l("",i,"\n")+e+": "+t+l(" = ",n)+l(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=l("",e,": ")+t;let a=o+l("(",s(n,", "),")");return a.length>80&&(a=o+l("(\n",u(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+l(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",l("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>l("",o,"\n")+`fragment ${e}${l("(",s(n,", "),")")} `+`on ${t} ${l("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+l("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>l("",e,"\n")+s(["schema",s(t," "),c(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>l("",e,"\n")+t+(d(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+": "+r+l(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>l("",e,"\n")+s([t+": "+n,l("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>l("",e,"\n")+s(["interface",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>l("",e,"\n")+s(["union",t,s(n," "),l("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>l("",e,"\n")+s(["enum",t,s(n," "),c(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>l("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>l("",e,"\n")+s(["input",t,s(n," "),c(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>l("",e,"\n")+"directive @"+t+(d(n)?l("(\n",u(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),c(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,l("implements ",s(t," & ")),s(n," "),c(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),l("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),c(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),c(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>s([e,l(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>s([e,l(".",t),l("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>s(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>s(["@",e,l("(",t,":)")])}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function c(e){return l("{\n",u(s(e,"\n")),"\n}")}function l(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function u(e){return l(" ",e.replace(/\n/g,"\n "))}function d(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},4027(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaCoordinateLexer=void 0;var r=n(629),i=n(3378),o=n(8765),a=n(4524),s=n(8053);class c{line=1;lineStart=0;constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF){const t=function(e,t){const n=e.source.body,i=n.length,c=t;if(c<i){const t=n.charCodeAt(c);switch(t){case 46:return(0,a.createToken)(e,s.TokenKind.DOT,c,c+1);case 40:return(0,a.createToken)(e,s.TokenKind.PAREN_L,c,c+1);case 41:return(0,a.createToken)(e,s.TokenKind.PAREN_R,c,c+1);case 58:return(0,a.createToken)(e,s.TokenKind.COLON,c,c+1);case 64:return(0,a.createToken)(e,s.TokenKind.AT,c,c+1)}if((0,o.isNameStart)(t))return(0,a.readName)(e,c);throw(0,r.syntaxError)(e.source,c,`Invalid character: ${(0,a.printCodePointAt)(e,c)}.`)}return(0,a.createToken)(e,s.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}t.SchemaCoordinateLexer=c},6241(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(5269),i=n(3216),o=n(3588);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},8053(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",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"}(n||(t.TokenKind=n={}))},8048(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=c,t.getVisitFn=function(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){const l=new Map;for(const e of Object.values(a.Kind))l.set(e,c(t,e));let u,d,p,f=Array.isArray(e),h=[e],m=-1,g=[],v=e;const y=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(d=0===b.length?void 0:y[y.length-1],v=p,p=b.pop(),a)if(f){v=v.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(v.splice(r,1),e++):v[r]=n}}else{v={...v};for(const[e,t]of g)v[e]=t}m=u.index,h=u.keys,g=u.edits,f=u.inArray,u=u.prev}else if(p){if(d=f?m:h[m],v=p[d],null==v)continue;y.push(d)}let c;if(!Array.isArray(v)){var E,_;(0,o.isNode)(v)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(v)}.`);const n=e?null===(E=l.get(v.kind))||void 0===E?void 0:E.leave:null===(_=l.get(v.kind))||void 0===_?void 0:_.enter;if(c=null==n?void 0:n.call(t,v,d,p,y,b),c===s)break;if(!1===c){if(!e){y.pop();continue}}else if(void 0!==c&&(g.push([d,c]),!e)){if(!(0,o.isNode)(c)){y.pop();continue}v=c}}var w;void 0===c&&a&&g.push([d,v]),e?y.pop():(u={inArray:f,index:m,keys:h,edits:g,prev:u},f=Array.isArray(v),h=f?v:null!==(w=n[v.kind])&&void 0!==w?w:[],m=-1,g=[],p&&b.push(p),p=v)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e},t.visitInParallel=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=c(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const l={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const c=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===c)t[a]=r;else if(c===s)t[a]=s;else if(void 0!==c)return c}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=l}return n};var r=n(5269),i=n(3216),o=n(3378),a=n(2057);const s=Object.freeze({});function c(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}t.BREAK=s},2067(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertEnumValueName=function(e){if("true"===e||"false"===e||"null"===e)throw new i.GraphQLError(`Enum values cannot be named: ${e}`);return a(e)},t.assertName=a;var r=n(5269),i=n(4897),o=n(8765);function a(e){if(null!=e||(0,r.devAssert)(!1,"Must provide name."),"string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),0===e.length)throw new i.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,o.isNameContinue)(e.charCodeAt(t)))throw new i.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.isNameStart)(e.charCodeAt(0)))throw new i.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}},4659(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0,t.argsToArgsConfig=H,t.assertAbstractType=function(e){if(!D(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL abstract type.`);return e},t.assertCompositeType=function(e){if(!A(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL composite type.`);return e},t.assertEnumType=function(e){if(!T(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Enum type.`);return e},t.assertInputObjectType=function(e){if(!S(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Input Object type.`);return e},t.assertInputType=function(e){if(!x(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL input type.`);return e},t.assertInterfaceType=function(e){if(!w(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Interface type.`);return e},t.assertLeafType=function(e){if(!I(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL leaf type.`);return e},t.assertListType=function(e){if(!O(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL List type.`);return e},t.assertNamedType=function(e){if(!$(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL named type.`);return e},t.assertNonNullType=function(e){if(!C(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Non-Null type.`);return e},t.assertNullableType=function(e){if(!j(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`);return e},t.assertObjectType=function(e){if(!_(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Object type.`);return e},t.assertOutputType=function(e){if(!N(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL output type.`);return e},t.assertScalarType=function(e){if(!E(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Scalar type.`);return e},t.assertType=function(e){if(!b(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`);return e},t.assertUnionType=function(e){if(!k(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL Union type.`);return e},t.assertWrappingType=function(e){if(!P(e))throw new Error(`Expected ${(0,a.inspect)(e)} to be a GraphQL wrapping type.`);return e},t.defineArguments=G,t.getNamedType=function(e){if(e){let t=e;for(;P(t);)t=t.ofType;return t}},t.getNullableType=function(e){if(e)return C(e)?e.ofType:e},t.isAbstractType=D,t.isCompositeType=A,t.isEnumType=T,t.isInputObjectType=S,t.isInputType=x,t.isInterfaceType=w,t.isLeafType=I,t.isListType=O,t.isNamedType=$,t.isNonNullType=C,t.isNullableType=j,t.isObjectType=_,t.isOutputType=N,t.isRequiredArgument=function(e){return C(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return C(e.type)&&void 0===e.defaultValue},t.isScalarType=E,t.isType=b,t.isUnionType=k,t.isWrappingType=P,t.resolveObjMapThunk=M,t.resolveReadonlyArrayThunk=F;var r=n(5269),i=n(1971),o=n(5094),a=n(3216),s=n(3588),c=n(8582),l=n(8881),u=n(196),d=n(4245),p=n(6206),f=n(5378),h=n(4897),m=n(2057),g=n(3230),v=n(2636),y=n(2067);function b(e){return E(e)||_(e)||w(e)||k(e)||T(e)||S(e)||O(e)||C(e)}function E(e){return(0,s.instanceOf)(e,q)}function _(e){return(0,s.instanceOf)(e,V)}function w(e){return(0,s.instanceOf)(e,K)}function k(e){return(0,s.instanceOf)(e,W)}function T(e){return(0,s.instanceOf)(e,X)}function S(e){return(0,s.instanceOf)(e,ee)}function O(e){return(0,s.instanceOf)(e,R)}function C(e){return(0,s.instanceOf)(e,L)}function x(e){return E(e)||T(e)||S(e)||P(e)&&x(e.ofType)}function N(e){return E(e)||_(e)||w(e)||k(e)||T(e)||P(e)&&N(e.ofType)}function I(e){return E(e)||T(e)}function A(e){return _(e)||w(e)||k(e)}function D(e){return w(e)||k(e)}class R{constructor(e){b(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=R;class L{constructor(e){j(e)||(0,r.devAssert)(!1,`Expected ${(0,a.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function P(e){return O(e)||C(e)}function j(e){return b(e)&&!C(e)}function $(e){return E(e)||_(e)||w(e)||k(e)||T(e)||S(e)}function F(e){return"function"==typeof e?e():e}function M(e){return"function"==typeof e?e():e}t.GraphQLNonNull=L;class q{constructor(e){var t,n,i,s;const c=null!==(t=e.parseValue)&&void 0!==t?t:o.identityFunc;this.name=(0,y.assertName)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o.identityFunc,this.parseValue=c,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>c((0,v.valueFromASTUntyped)(e,t)),this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=q;class V{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>B(e),this._interfaces=()=>z(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:U(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function z(e){var t;const n=F(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function B(e){const t=M(e.fields);return Q(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,(t,n)=>{var i;Q(t)||(0,r.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return Q(o)||(0,r.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,y.assertName)(n),description:t.description,type:t.type,args:G(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}})}function G(e){return Object.entries(e).map(([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}))}function Q(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function U(e){return(0,d.mapValue)(e,e=>({description:e.description,type:e.type,args:H(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function H(e){return(0,u.keyValMap)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}t.GraphQLObjectType=V;class K{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=B.bind(void 0,e),this._interfaces=z.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:U(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=K;class W{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Y.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Y(e){const t=F(e.types);return Array.isArray(t)||(0,r.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}t.GraphQLUnionType=W;class X{constructor(e){var t;this.name=(0,y.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:Z(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Z(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,l.keyMap)(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new h.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,a.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,a.inspect)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+J(this,t))}const t=this.getValue(e);if(null==t)throw new h.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+J(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,g.print)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+J(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.print)(e);throw new h.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+J(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,u.keyValMap)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function J(e,t){const n=e.getValues().map(e=>e.name),r=(0,p.suggestionList)(t,n);return(0,i.didYouMean)("the enum value",r)}function Z(e,t){return Q(t)||(0,r.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(Q(n)||(0,r.devAssert)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,a.inspect)(n)}.`),{name:(0,y.assertEnumValueName)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,f.toObjMap)(n.extensions),astNode:n.astNode}))}t.GraphQLEnumType=X;class ee{constructor(e){var t,n;this.name=(0,y.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=te.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,d.mapValue)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function te(e){const t=M(e.fields);return Q(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,(t,n)=>(!("resolve"in t)||(0,r.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,y.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}))}t.GraphQLInputObjectType=ee},4932(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0,t.assertDirective=function(e){if(!p(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL directive.`);return e},t.isDirective=p,t.isSpecifiedDirective=function(e){return E.some(({name:t})=>t===e.name)},t.specifiedDirectives=void 0;var r=n(5269),i=n(3216),o=n(3588),a=n(8582),s=n(5378),c=n(3684),l=n(2067),u=n(4659),d=n(7409);function p(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.name=(0,l.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.devAssert)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,a.isObjectLike)(i)&&!Array.isArray(i)||(0,r.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,u.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,u.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=f;const h=new f({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new u.GraphQLNonNull(d.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=h;const m=new f({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new u.GraphQLNonNull(d.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=m;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const v=new f({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:d.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=v;const y=new f({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new u.GraphQLNonNull(d.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=y;const b=new f({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=b;const E=Object.freeze([h,m,v,y,b]);t.specifiedDirectives=E},4660(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MAX_INT}}),Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return a.GRAPHQL_MIN_INT}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return o.GraphQLOneOfDirective}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return o.GraphQLSpecifiedByDirective}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(t,"assertDirective",{enumerable:!0,get:function(){return o.assertDirective}}),Object.defineProperty(t,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(t,"assertEnumValueName",{enumerable:!0,get:function(){return l.assertEnumValueName}}),Object.defineProperty(t,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(t,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(t,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(t,"assertName",{enumerable:!0,get:function(){return l.assertName}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(t,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(t,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(t,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(t,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(t,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(t,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(t,"assertValidSchema",{enumerable:!0,get:function(){return c.assertValidSchema}}),Object.defineProperty(t,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(t,"introspectionTypes",{enumerable:!0,get:function(){return s.introspectionTypes}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(t,"isDirective",{enumerable:!0,get:function(){return o.isDirective}}),Object.defineProperty(t,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(t,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(t,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(t,"isIntrospectionType",{enumerable:!0,get:function(){return s.isIntrospectionType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(t,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(t,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(t,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(t,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(t,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(t,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(t,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(t,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(t,"isSpecifiedDirective",{enumerable:!0,get:function(){return o.isSpecifiedDirective}}),Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:!0,get:function(){return a.isSpecifiedScalarType}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(t,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(t,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(t,"resolveObjMapThunk",{enumerable:!0,get:function(){return i.resolveObjMapThunk}}),Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return i.resolveReadonlyArrayThunk}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"specifiedScalarTypes",{enumerable:!0,get:function(){return a.specifiedScalarTypes}}),Object.defineProperty(t,"validateSchema",{enumerable:!0,get:function(){return c.validateSchema}});var r=n(9893),i=n(4659),o=n(4932),a=n(7409),s=n(5543),c=n(1108),l=n(2067)},5543(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0,t.isIntrospectionType=function(e){return w.some(({name:t})=>e.name===t)};var r=n(3216),i=n(1880),o=n(3684),a=n(3230),s=n(3155),c=n(4659),l=n(7409);const u=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:l.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.getDirectives()}})});t.__Schema=u;const d=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(m))),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})});t.__Directive=d;const p=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=p;const f=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve:e=>(0,c.isScalarType)(e)?v.SCALAR:(0,c.isObjectType)(e)?v.OBJECT:(0,c.isInterfaceType)(e)?v.INTERFACE:(0,c.isUnionType)(e)?v.UNION:(0,c.isEnumType)(e)?v.ENUM:(0,c.isInputObjectType)(e)?v.INPUT_OBJECT:(0,c.isListType)(e)?v.LIST:(0,c.isNonNullType)(e)?v.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:l.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:l.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:l.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(f)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(f)),resolve(e,t,n,{schema:r}){if((0,c.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:l.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e))return e.isOneOf}}})});t.__Type=f;const h=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(m))),args:{includeDeprecated:{type:l.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new c.GraphQLNonNull(f),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=h;const m=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(f),resolve:e=>e.type},defaultValue:{type:l.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.astFromValue)(n,t);return r?(0,a.print)(r):null}},isDeprecated:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=m;const g=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(l.GraphQLString),resolve:e=>e.name},description:{type:l.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(l.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.GraphQLString,resolve:e=>e.deprecationReason}})});var v;t.__EnumValue=g,t.TypeKind=v,function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(v||(t.TypeKind=v={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const b={name:"__schema",type:new c.GraphQLNonNull(u),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.SchemaMetaFieldDef=b;const E={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new c.GraphQLNonNull(l.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeMetaFieldDef=E;const _={name:"__typename",type:new c.GraphQLNonNull(l.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};t.TypeNameMetaFieldDef=_;const w=Object.freeze([u,d,p,f,h,m,g,y]);t.introspectionTypes=w},7409(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0,t.isSpecifiedScalarType=function(e){return g.some(({name:t})=>e.name===t)},t.specifiedScalarTypes=void 0;var r=n(3216),i=n(8582),o=n(4897),a=n(2057),s=n(3230),c=n(4659);const l=2147483647;t.GRAPHQL_MAX_INT=l;const u=-2147483648;t.GRAPHQL_MIN_INT=u;const d=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=v(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>l||n<u)throw new o.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,r.inspect)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(e)}`);if(e>l||e<u)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.Kind.INT)throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,s.print)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>l||t<u)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}});t.GraphQLInt=d;const p=new c.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=v(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.FLOAT&&e.kind!==a.Kind.INT)throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,s.print)(e)}`,e);return parseFloat(e.value)}});t.GraphQLFloat=p;const f=new c.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=v(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new o.GraphQLError(`String cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.STRING)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLString=f;const h=new c.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=v(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==a.Kind.BOOLEAN)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,s.print)(e)}`,{nodes:e});return e.value}});t.GraphQLBoolean=h;const m=new c.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=v(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseLiteral(e){if(e.kind!==a.Kind.STRING&&e.kind!==a.Kind.INT)throw new o.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,s.print)(e),{nodes:e});return e.value}});t.GraphQLID=m;const g=Object.freeze([f,d,p,h,m]);function v(e){if((0,i.isObjectLike)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.isObjectLike)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}t.specifiedScalarTypes=g},9893(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0,t.assertSchema=function(e){if(!p(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL schema.`);return e},t.isSchema=p;var r=n(5269),i=n(3216),o=n(3588),a=n(8582),s=n(5378),c=n(3378),l=n(4659),u=n(4932),d=n(5543);function p(e){return(0,o.instanceOf)(e,f)}class f{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.isObjectLike)(e)||(0,r.devAssert)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.devAssert)(!1,`"types" must be Array if provided but got: ${(0,i.inspect)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,i.inspect)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:u.specifiedDirectives;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),h(t,o);null!=this._queryType&&h(this._queryType,o),null!=this._mutationType&&h(this._mutationType,o),null!=this._subscriptionType&&h(this._subscriptionType,o);for(const e of this._directives)if((0,u.isDirective)(e))for(const t of e.args)h(t.type,o);h(d.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,r.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,l.isInterfaceType)(e)){for(const t of e.getInterfaces())if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,l.isObjectType)(e))for(const t of e.getInterfaces())if((0,l.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,l.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,l.isUnionType)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function h(e,t){const n=(0,l.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,l.isUnionType)(n))for(const e of n.getTypes())h(e,t);else if((0,l.isObjectType)(n)||(0,l.isInterfaceType)(n)){for(const e of n.getInterfaces())h(e,t);for(const e of Object.values(n.getFields())){h(e.type,t);for(const n of e.args)h(n.type,t)}}else if((0,l.isInputObjectType)(n))for(const e of Object.values(n.getFields()))h(e.type,t);return t}t.GraphQLSchema=f},1108(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSchema=function(e){const t=d(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))},t.validateSchema=d;var r=n(3216),i=n(4897),o=n(3378),a=n(5065),s=n(4659),c=n(4932),l=n(5543),u=n(9893);function d(e){if((0,u.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new p(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=f(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var c;a&&!(0,s.isObjectType)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(a)}.`,null!==(c=f(t,o.OperationTypeNode.MUTATION))&&void 0!==c?c:a.astNode);const l=t.getSubscriptionType();var u;l&&!(0,s.isObjectType)(l)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(l)}.`,null!==(u=f(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==u?u:l.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,c.isDirective)(n)){h(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const i of n.args){var t;h(e,i),(0,s.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,s.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[S(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,s.isNonNullType)(t.type)&&(0,s.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,s.isNamedType)(i)?((0,l.isIntrospectionType)(i)||h(e,i),(0,s.isObjectType)(i)||(0,s.isInterfaceType)(i)?(m(e,i),g(e,i)):(0,s.isUnionType)(i)?b(e,i):(0,s.isEnumType)(i)?E(e,i):(0,s.isInputObjectType)(i)&&(_(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}class p{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,{nodes:n}))}getErrors(){return this._errors}}function f(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function h(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function m(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const c of n){var i;h(e,c),(0,s.isOutputType)(c.type)||e.reportError(`The type of ${t.name}.${c.name} must be Output Type but got: ${(0,r.inspect)(c.type)}.`,null===(i=c.astNode)||void 0===i?void 0:i.type);for(const n of c.args){const i=n.name;var o,a;h(e,n),(0,s.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${c.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,s.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${c.name}(${i}:) cannot be deprecated.`,[S(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function g(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,k(t,i)):(n[i.name]=!0,y(e,t,i),v(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,k(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,k(t,i))}function v(e,t,n){const i=t.getFields();for(const d of Object.values(n.getFields())){const p=d.name,f=i[p];if(f){var o,c;(0,a.isTypeSubTypeOf)(e.schema,f.type,d.type)||e.reportError(`Interface field ${n.name}.${p} expects type ${(0,r.inspect)(d.type)} but ${t.name}.${p} is type ${(0,r.inspect)(f.type)}.`,[null===(o=d.astNode)||void 0===o?void 0:o.type,null===(c=f.astNode)||void 0===c?void 0:c.type]);for(const i of d.args){const o=i.name,s=f.args.find(e=>e.name===o);var l,u;s?(0,a.isEqualType)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${p}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${p}(${o}:) is type ${(0,r.inspect)(s.type)}.`,[null===(l=i.astNode)||void 0===l?void 0:l.type,null===(u=s.astNode)||void 0===u?void 0:u.type]):e.reportError(`Interface field argument ${n.name}.${p}(${o}:) expected but ${t.name}.${p} does not provide it.`,[i.astNode,f.astNode])}for(const r of f.args){const i=r.name;!d.args.find(e=>e.name===i)&&(0,s.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${i} that is missing from the Interface field ${n.name}.${p}.`,[r.astNode,d.astNode])}}else e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[d.astNode,t.astNode,...t.extensionASTNodes])}}function y(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...k(n,i),...k(t,n)])}function b(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,T(t,o.name)):(i[o.name]=!0,(0,s.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,T(t,String(o))))}function E(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)h(e,t)}function _(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;h(e,a),(0,s.isInputType)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.inspect)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,s.isRequiredInputField)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[S(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&w(t,a,e)}}function w(e,t,n){var r;(0,s.isNonNullType)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function k(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function T(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function S(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===c.GraphQLDeprecatedDirective.name)}},2518(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0,t.visitWithTypeInfo=function(e,t){return{enter(...n){const i=n[0];e.enter(i);const a=(0,o.getEnterLeaveForKind)(t,i.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}};var r=n(3378),i=n(2057),o=n(8048),a=n(4659),s=n(5543),c=n(3312);class l{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:u,t&&((0,a.isInputType)(t)&&this._inputTypeStack.push(t),(0,a.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,a.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.Kind.SELECTION_SET:{const e=(0,a.getNamedType)(this.getType());this._parentTypeStack.push((0,a.isCompositeType)(e)?e:void 0);break}case i.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.isOutputType)(i)?i:void 0);break}case i.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.isObjectType)(n)?n:void 0);break}case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,c.typeFromAST)(t,n):(0,a.getNamedType)(this.getType());this._typeStack.push((0,a.isOutputType)(r)?r:void 0);break}case i.Kind.VARIABLE_DEFINITION:{const n=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(r)?r:void 0);break}case i.Kind.LIST:{const e=(0,a.getNullableType)(this.getInputType()),t=(0,a.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.isInputType)(t)?t:void 0);break}case i.Kind.OBJECT_FIELD:{const t=(0,a.getNamedType)(this.getInputType());let n,r;(0,a.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.isInputType)(n)?n:void 0);break}case i.Kind.ENUM:{const t=(0,a.getNamedType)(this.getInputType());let n;(0,a.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case i.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.Kind.DIRECTIVE:this._directive=null;break;case i.Kind.OPERATION_DEFINITION:case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.LIST:case i.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.ENUM:this._enumValue=null}}}function u(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.isCompositeType)(t)?s.TypeNameMetaFieldDef:(0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)?t.getFields()[r]:void 0}t.TypeInfo=l},3443(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){const t=a(e);if(t)throw t;return e},t.isValidNameError=a;var r=n(5269),i=n(4897),o=n(2067);function a(e){if("string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new i.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,o.assertName)(e)}catch(e){return e}}},3155(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,c.isNonNullType)(n)){const r=e(t,n.ofType);return(null==r?void 0:r.kind)===s.Kind.NULL?null:r}if(null===t)return{kind:s.Kind.NULL};if(void 0===t)return null;if((0,c.isListType)(n)){const r=n.ofType;if((0,o.isIterableObject)(t)){const n=[];for(const i of t){const t=e(i,r);null!=t&&n.push(t)}return{kind:s.Kind.LIST,values:n}}return e(t,r)}if((0,c.isInputObjectType)(n)){if(!(0,a.isObjectLike)(t))return null;const r=[];for(const i of Object.values(n.getFields())){const n=e(t[i.name],i.type);n&&r.push({kind:s.Kind.OBJECT_FIELD,name:{kind:s.Kind.NAME,value:i.name},value:n})}return{kind:s.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(n)){const e=n.serialize(t);if(null==e)return null;if("boolean"==typeof e)return{kind:s.Kind.BOOLEAN,value:e};if("number"==typeof e&&Number.isFinite(e)){const t=String(e);return u.test(t)?{kind:s.Kind.INT,value:t}:{kind:s.Kind.FLOAT,value:t}}if("string"==typeof e)return(0,c.isEnumType)(n)?{kind:s.Kind.ENUM,value:e}:n===l.GraphQLID&&u.test(e)?{kind:s.Kind.INT,value:e}:{kind:s.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(e)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))};var r=n(3216),i=n(1880),o=n(115),a=n(8582),s=n(2057),c=n(4659),l=n(7409);const u=/^-?(?:0|[1-9][0-9]*)$/},7685(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildASTSchema=u,t.buildSchema=function(e,t){return u((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})};var r=n(5269),i=n(2057),o=n(2275),a=n(4932),s=n(9893),c=n(9865),l=n(7893);function u(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,c.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,l.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const u=[...o.directives,...a.specifiedDirectives.filter(e=>o.directives.every(t=>t.name!==e.name))];return new s.GraphQLSchema({...o,directives:u})}},3564(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=function(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,r.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.inspect)(e)}.`);const n=e.__schema,h=(0,a.keyValMap)(n.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case u.TypeKind.SCALAR:return r=e,new c.GraphQLScalarType({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case u.TypeKind.OBJECT:return n=e,new c.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>k(n),fields:()=>T(n)});case u.TypeKind.INTERFACE:return t=e,new c.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>k(t),fields:()=>T(t)});case u.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(_)})}(e);case u.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,a.keyValMap)(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case u.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>O(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const o=(0,i.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e));for(const e of[...d.specifiedScalarTypes,...u.introspectionTypes])h[e.name]&&(h[e.name]=e);const m=n.queryType?_(n.queryType):null,g=n.mutationType?_(n.mutationType):null,v=n.subscriptionType?_(n.subscriptionType):null,y=n.directives?n.directives.map(function(e){if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new l.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:O(e.args)})}):[];return new p.GraphQLSchema({description:n.description,query:m,mutation:g,subscription:v,types:Object.values(h),directives:y,assumeValid:null==t?void 0:t.assumeValid});function b(e){if(e.kind===u.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new c.GraphQLList(b(t))}if(e.kind===u.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new c.GraphQLNonNull((0,c.assertNullableType)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.inspect)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function _(e){return(0,c.assertObjectType)(E(e))}function w(e){return(0,c.assertInterfaceType)(E(e))}function k(e){if(null===e.interfaces&&e.kind===u.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(w)}function T(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.inspect)(e)}.`);return(0,a.keyValMap)(e.fields,e=>e.name,S)}function S(e){const t=b(e.type);if(!(0,c.isOutputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:O(e.args)}}function O(e){return(0,a.keyValMap)(e,e=>e.name,C)}function C(e){const t=b(e.type);if(!(0,c.isInputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,f.valueFromAST)((0,s.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}};var r=n(5269),i=n(3216),o=n(8582),a=n(196),s=n(2275),c=n(4659),l=n(4932),u=n(5543),d=n(7409),p=n(9893),f=n(6797)},214(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coerceInputValue=function(e,t,n=f){return h(e,t,n,void 0)};var r=n(1971),i=n(3216),o=n(1880),a=n(115),s=n(8582),c=n(5261),l=n(9167),u=n(6206),d=n(4897),p=n(4659);function f(e,t,n){let r="Invalid value "+(0,i.inspect)(t);throw e.length>0&&(r+=` at "value${(0,l.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function h(e,t,n,l){if((0,p.isNonNullType)(t))return null!=e?h(e,t.ofType,n,l):void n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected non-nullable type "${(0,i.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,p.isListType)(t)){const r=t.ofType;return(0,a.isIterableObject)(e)?Array.from(e,(e,t)=>{const i=(0,c.addPath)(l,t,void 0);return h(e,r,n,i)}):[h(e,r,n,l)]}if((0,p.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e)||Array.isArray(e))return void n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected type "${t.name}" to be an object.`));const o={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)o[r.name]=h(a,r.type,n,(0,c.addPath)(l,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,p.isNonNullType)(r.type)){const t=(0,i.inspect)(r.type);n((0,c.pathToArray)(l),e,new d.GraphQLError(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!a[i]){const o=(0,u.suggestionList)(i,Object.keys(t.getFields()));n((0,c.pathToArray)(l),e,new d.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}if(t.isOneOf){const r=Object.keys(o);1!==r.length&&n((0,c.pathToArray)(l),e,new d.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));const i=r[0],a=o[i];null===a&&n((0,c.pathToArray)(l).concat(i),a,new d.GraphQLError(`Field "${i}" must be non-null.`))}return o}if((0,p.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof d.GraphQLError?n((0,c.pathToArray)(l),e,r):n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,c.pathToArray)(l),e,new d.GraphQLError(`Expected type "${t.name}".`)),r}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(t))}},9168(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAST=function(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:r.Kind.DOCUMENT,definitions:t}};var r=n(2057)},7893(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSchema=function(e,t,n){(0,h.assertSchema)(e),null!=t&&t.kind===c.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,m.assertValidSDLExtension)(t,e);const i=e.toConfig(),o=y(i,t,n);return i===o?e:new h.GraphQLSchema(o)},t.extendSchemaImpl=y;var r=n(5269),i=n(3216),o=n(1880),a=n(8881),s=n(4245),c=n(2057),l=n(9674),u=n(4659),d=n(4932),p=n(5543),f=n(7409),h=n(9893),m=n(9865),g=n(5310),v=n(6797);function y(e,t,n){var r,a,h,m;const y=[],w=Object.create(null),k=[];let T;const S=[];for(const e of t.definitions)if(e.kind===c.Kind.SCHEMA_DEFINITION)T=e;else if(e.kind===c.Kind.SCHEMA_EXTENSION)S.push(e);else if((0,l.isTypeDefinitionNode)(e))y.push(e);else if((0,l.isTypeExtensionNode)(e)){const t=e.name.value,n=w[t];w[t]=n?n.concat([e]):[e]}else e.kind===c.Kind.DIRECTIVE_DEFINITION&&k.push(e);if(0===Object.keys(w).length&&0===y.length&&0===k.length&&0===S.length&&null==T)return e;const O=Object.create(null);for(const t of e.types)O[t.name]=A(t);for(const e of y){var C;const t=e.name.value;O[t]=null!==(C=b[t])&&void 0!==C?C:B(e)}const x={query:e.query&&I(e.query),mutation:e.mutation&&I(e.mutation),subscription:e.subscription&&I(e.subscription),...T&&L([T]),...L(S)};return{description:null===(r=T)||void 0===r||null===(a=r.description)||void 0===a?void 0:a.value,...x,types:Object.values(O),directives:[...e.directives.map(function(e){const t=e.toConfig();return new d.GraphQLDirective({...t,args:(0,s.mapValue)(t.args,R)})}),...k.map(function(e){var t;return new d.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:F(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(h=T)&&void 0!==h?h:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(S),assumeValid:null!==(m=null==n?void 0:n.assumeValid)&&void 0!==m&&m};function N(e){return(0,u.isListType)(e)?new u.GraphQLList(N(e.ofType)):(0,u.isNonNullType)(e)?new u.GraphQLNonNull(N(e.ofType)):I(e)}function I(e){return O[e.name]}function A(e){return(0,p.isIntrospectionType)(e)||(0,f.isSpecifiedScalarType)(e)?e:(0,u.isScalarType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=_(e))&&void 0!==o?o:i}return new u.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,u.isObjectType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(I),...V(r)],fields:()=>({...(0,s.mapValue)(n.fields,D),...$(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,u.isInterfaceType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(I),...V(r)],fields:()=>({...(0,s.mapValue)(n.fields,D),...$(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,u.isUnionType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(I),...z(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,u.isEnumType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[e.name])&&void 0!==t?t:[];return new u.GraphQLEnumType({...n,values:{...n.values,...q(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,u.isInputObjectType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=w[n.name])&&void 0!==t?t:[];return new u.GraphQLInputObjectType({...n,fields:()=>({...(0,s.mapValue)(n.fields,e=>({...e,type:N(e.type)})),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(e))}function D(e){return{...e,type:N(e.type),args:e.args&&(0,s.mapValue)(e.args,R)}}function R(e){return{...e,type:N(e.type)}}function L(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=P(n.type)}return t}function P(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:O[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function j(e){return e.kind===c.Kind.LIST_TYPE?new u.GraphQLList(j(e.type)):e.kind===c.Kind.NON_NULL_TYPE?new u.GraphQLNonNull(j(e.type)):P(e)}function $(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:j(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:F(n.arguments),deprecationReason:E(n),astNode:n}}}return t}function F(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=j(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,v.valueFromAST)(e.defaultValue,t),deprecationReason:E(e),astNode:e}}return n}function M(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=j(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,v.valueFromAST)(n.defaultValue,e),deprecationReason:E(n),astNode:n}}}return t}function q(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:E(n),astNode:n}}}return t}function V(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]})}function z(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(P))&&void 0!==t?t:[]})}function B(e){var t;const n=e.name.value,r=null!==(t=w[n])&&void 0!==t?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new u.GraphQLObjectType({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>V(t),fields:()=>$(t),astNode:e,extensionASTNodes:r})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new u.GraphQLInterfaceType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>V(t),fields:()=>$(t),astNode:e,extensionASTNodes:r})}case c.Kind.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new u.GraphQLEnumType({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:q(t),astNode:e,extensionASTNodes:r})}case c.Kind.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new u.GraphQLUnionType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>z(t),astNode:e,extensionASTNodes:r})}case c.Kind.SCALAR_TYPE_DEFINITION:var l;return new u.GraphQLScalarType({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,specifiedByURL:_(e),astNode:e,extensionASTNodes:r});case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var p;const t=[e,...r];return new u.GraphQLInputObjectType({name:n,description:null===(p=e.description)||void 0===p?void 0:p.value,fields:()=>M(t),astNode:e,extensionASTNodes:r,isOneOf:(f=e,Boolean((0,g.getDirectiveValues)(d.GraphQLOneOfDirective,f)))})}}var f}}const b=(0,a.keyMap)([...f.specifiedScalarTypes,...p.introspectionTypes],e=>e.name);function E(e){const t=(0,g.getDirectiveValues)(d.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function _(e){const t=(0,g.getDirectiveValues)(d.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},6439(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DangerousChangeType=t.BreakingChangeType=void 0,t.findBreakingChanges=function(e,t){return f(e,t).filter(e=>e.type in r)},t.findDangerousChanges=function(e,t){return f(e,t).filter(e=>e.type in i)};var r,i,o=n(3216),a=n(1880),s=n(8881),c=n(3230),l=n(4659),u=n(7409),d=n(3155),p=n(8437);function f(e,t){return[...m(e,t),...h(e,t)]}function h(e,t){const n=[],i=O(e.getDirectives(),t.getDirectives());for(const e of i.removed)n.push({type:r.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of i.persisted){const i=O(e.args,t.args);for(const t of i.added)(0,l.isRequiredArgument)(t)&&n.push({type:r.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of i.removed)n.push({type:r.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:r.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const i of e.locations)t.locations.includes(i)||n.push({type:r.DIRECTIVE_LOCATION_REMOVED,description:`${i} was removed from ${e.name}.`})}return n}function m(e,t){const n=[],i=O(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of i.removed)n.push({type:r.TYPE_REMOVED,description:(0,u.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of i.persisted)(0,l.isEnumType)(e)&&(0,l.isEnumType)(t)?n.push(...y(e,t)):(0,l.isUnionType)(e)&&(0,l.isUnionType)(t)?n.push(...v(e,t)):(0,l.isInputObjectType)(e)&&(0,l.isInputObjectType)(t)?n.push(...g(e,t)):(0,l.isObjectType)(e)&&(0,l.isObjectType)(t)||(0,l.isInterfaceType)(e)&&(0,l.isInterfaceType)(t)?n.push(...E(e,t),...b(e,t)):e.constructor!==t.constructor&&n.push({type:r.TYPE_CHANGED_KIND,description:`${e.name} changed from ${T(e)} to ${T(t)}.`});return n}function g(e,t){const n=[],o=O(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of o.added)(0,l.isRequiredInputField)(t)?n.push({type:r.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:i.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of o.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of o.persisted)k(t.type,i.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function v(e,t){const n=[],o=O(e.getTypes(),t.getTypes());for(const t of o.added)n.push({type:i.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of o.removed)n.push({type:r.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function y(e,t){const n=[],o=O(e.getValues(),t.getValues());for(const t of o.added)n.push({type:i.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of o.removed)n.push({type:r.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function b(e,t){const n=[],o=O(e.getInterfaces(),t.getInterfaces());for(const t of o.added)n.push({type:i.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of o.removed)n.push({type:r.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function E(e,t){const n=[],i=O(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of i.removed)n.push({type:r.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,o]of i.persisted)n.push(..._(e,t,o)),w(t.type,o.type)||n.push({type:r.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(o.type)}.`});return n}function _(e,t,n){const o=[],a=O(t.args,n.args);for(const n of a.removed)o.push({type:r.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,s]of a.persisted)if(k(n.type,s.type)){if(void 0!==n.defaultValue)if(void 0===s.defaultValue)o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const r=S(n.defaultValue,n.type),a=S(s.defaultValue,s.type);r!==a&&o.push({type:i.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${r} to ${a}.`})}}else o.push({type:r.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(s.type)}.`});for(const n of a.added)(0,l.isRequiredArgument)(n)?o.push({type:r.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):o.push({type:i.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return o}function w(e,t){return(0,l.isListType)(e)?(0,l.isListType)(t)&&w(e.ofType,t.ofType)||(0,l.isNonNullType)(t)&&w(e,t.ofType):(0,l.isNonNullType)(e)?(0,l.isNonNullType)(t)&&w(e.ofType,t.ofType):(0,l.isNamedType)(t)&&e.name===t.name||(0,l.isNonNullType)(t)&&w(e,t.ofType)}function k(e,t){return(0,l.isListType)(e)?(0,l.isListType)(t)&&k(e.ofType,t.ofType):(0,l.isNonNullType)(e)?(0,l.isNonNullType)(t)&&k(e.ofType,t.ofType)||!(0,l.isNonNullType)(t)&&k(e.ofType,t):(0,l.isNamedType)(t)&&e.name===t.name}function T(e){return(0,l.isScalarType)(e)?"a Scalar type":(0,l.isObjectType)(e)?"an Object type":(0,l.isInterfaceType)(e)?"an Interface type":(0,l.isUnionType)(e)?"a Union type":(0,l.isEnumType)(e)?"an Enum type":(0,l.isInputObjectType)(e)?"an Input type":void(0,a.invariant)(!1,"Unexpected type: "+(0,o.inspect)(e))}function S(e,t){const n=(0,d.astFromValue)(e,t);return null!=n||(0,a.invariant)(!1),(0,c.print)((0,p.sortValueNode)(n))}function O(e,t){const n=[],r=[],i=[],o=(0,s.keyMap)(e,({name:e})=>e),a=(0,s.keyMap)(t,({name:e})=>e);for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}t.BreakingChangeType=r,function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(r||(t.BreakingChangeType=r={})),t.DangerousChangeType=i,function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(i||(t.DangerousChangeType=i={}))},4677(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIntrospectionQuery=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}const s=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${s}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${a("isDeprecated")}\n ${a("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},7295(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationAST=function(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n};var r=n(2057)},9963(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOperationRootType=function(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new r.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new r.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new r.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})};var r=n(4897)},3936(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return k.BreakingChangeType}}),Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return k.DangerousChangeType}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return g.TypeInfo}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return w.assertValidName}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return m.astFromValue}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return c.buildASTSchema}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return s.buildClientSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return c.buildSchema}}),Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return v.coerceInputValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return y.concatAST}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return _.doTypesOverlap}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return l.extendSchema}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return k.findBreakingChanges}}),Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return k.findDangerousChanges}}),Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return o.getOperationRootType}}),Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return a.introspectionFromSchema}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return _.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return _.isTypeSubTypeOf}}),Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return w.isValidNameError}}),Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return u.lexicographicSortSchema}}),Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return d.printIntrospectionSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return d.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return d.printType}}),Object.defineProperty(t,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return T.resolveASTSchemaCoordinate}}),Object.defineProperty(t,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return T.resolveSchemaCoordinate}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return b.separateOperations}}),Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return E.stripIgnoredCharacters}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return p.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return f.valueFromAST}}),Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return h.valueFromASTUntyped}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return g.visitWithTypeInfo}});var r=n(4677),i=n(7295),o=n(9963),a=n(5828),s=n(3564),c=n(7685),l=n(7893),u=n(1029),d=n(7984),p=n(3312),f=n(6797),h=n(2636),m=n(3155),g=n(2518),v=n(214),y=n(9168),b=n(2177),E=n(2550),_=n(5065),w=n(3443),k=n(6439),T=n(6685)},5828(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.introspectionFromSchema=function(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},s=(0,i.parse)((0,a.getIntrospectionQuery)(n)),c=(0,o.executeSync)({schema:e,document:s});return!c.errors&&c.data||(0,r.invariant)(!1),c.data};var r=n(1880),i=n(2275),o=n(333),a=n(4677)},1029(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lexicographicSortSchema=function(e){const t=e.toConfig(),n=(0,o.keyValMap)(p(t.types),e=>e.name,function(e){if((0,s.isScalarType)(e)||(0,l.isIntrospectionType)(e))return e;if((0,s.isObjectType)(e)){const t=e.toConfig();return new s.GraphQLObjectType({...t,interfaces:()=>y(t.interfaces),fields:()=>v(t.fields)})}if((0,s.isInterfaceType)(e)){const t=e.toConfig();return new s.GraphQLInterfaceType({...t,interfaces:()=>y(t.interfaces),fields:()=>v(t.fields)})}if((0,s.isUnionType)(e)){const t=e.toConfig();return new s.GraphQLUnionType({...t,types:()=>y(t.types)})}if((0,s.isEnumType)(e)){const t=e.toConfig();return new s.GraphQLEnumType({...t,values:d(t.values,e=>e)})}if((0,s.isInputObjectType)(e)){const t=e.toConfig();return new s.GraphQLInputObjectType({...t,fields:()=>d(t.fields,e=>({...e,type:a(e.type)}))})}(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))});return new u.GraphQLSchema({...t,types:Object.values(n),directives:p(t.directives).map(function(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:f(t.locations,e=>e),args:g(t.args)})}),query:m(t.query),mutation:m(t.mutation),subscription:m(t.subscription)});function a(e){return(0,s.isListType)(e)?new s.GraphQLList(a(e.ofType)):(0,s.isNonNullType)(e)?new s.GraphQLNonNull(a(e.ofType)):h(e)}function h(e){return n[e.name]}function m(e){return e&&h(e)}function g(e){return d(e,e=>({...e,type:a(e.type)}))}function v(e){return d(e,e=>({...e,type:a(e.type),args:e.args&&g(e.args)}))}function y(e){return p(e).map(h)}};var r=n(3216),i=n(1880),o=n(196),a=n(602),s=n(4659),c=n(4932),l=n(5543),u=n(9893);function d(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(a.naturalCompare))n[r]=t(e[r]);return n}function p(e){return f(e,e=>e.name)}function f(e,t){return e.slice().sort((e,n)=>{const r=t(e),i=t(n);return(0,a.naturalCompare)(r,i)})}},7984(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printIntrospectionSchema=function(e){return h(e,l.isSpecifiedDirective,u.isIntrospectionType)},t.printSchema=function(e){return h(e,e=>!(0,l.isSpecifiedDirective)(e),f)},t.printType=g;var r=n(3216),i=n(1880),o=n(4758),a=n(2057),s=n(3230),c=n(4659),l=n(4932),u=n(5543),d=n(7409),p=n(3155);function f(e){return!(0,d.isSpecifiedScalarType)(e)&&!(0,u.isIntrospectionType)(e)}function h(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[m(e),...r.map(e=>function(e){return k(e)+"directive @"+e.name+E(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)),...i.map(e=>g(e))].filter(Boolean).join("\n\n")}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),k(e)+`schema {\n${t.join("\n")}\n}`}function g(e){return(0,c.isScalarType)(e)?function(e){return k(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,s.print)({kind:a.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,c.isObjectType)(e)?function(e){return k(e)+`type ${e.name}`+v(e)+y(e)}(e):(0,c.isInterfaceType)(e)?function(e){return k(e)+`interface ${e.name}`+v(e)+y(e)}(e):(0,c.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return k(e)+"union "+e.name+n}(e):(0,c.isEnumType)(e)?function(e){const t=e.getValues().map((e,t)=>k(e," ",!t)+" "+e.name+w(e.deprecationReason));return k(e)+`enum ${e.name}`+b(t)}(e):(0,c.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map((e,t)=>k(e," ",!t)+" "+_(e));return k(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+b(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function v(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function y(e){return b(Object.values(e.getFields()).map((e,t)=>k(e," ",!t)+" "+e.name+E(e.args," ")+": "+String(e.type)+w(e.deprecationReason)))}function b(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function E(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(_).join(", ")+")":"(\n"+e.map((e,n)=>k(e," "+t,!n)+" "+t+_(e)).join("\n")+"\n"+t+")"}function _(e){const t=(0,p.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,s.print)(t)}`),n+w(e.deprecationReason)}function w(e){return null==e?"":e!==l.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,s.print)({kind:a.Kind.STRING,value:e})})`:" @deprecated"}function k(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,s.print)({kind:a.Kind.STRING,value:r,block:(0,o.isPrintableAsBlockString)(r)}).replace(/\n/g,"\n"+t)+"\n"}},6685(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveASTSchemaCoordinate=s,t.resolveSchemaCoordinate=function(e,t){return s(e,(0,o.parseSchemaCoordinate)(t))};var r=n(3216),i=n(2057),o=n(2275),a=n(4659);function s(e,t){switch(t.kind){case i.Kind.TYPE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r}}(e,t);case i.Kind.MEMBER_COORDINATE:return function(e,t){const n=t.name.value,i=e.getType(n);if(!i)throw new Error(`Expected ${(0,r.inspect)(n)} to be defined as a type in the schema.`);if(!((0,a.isEnumType)(i)||(0,a.isInputObjectType)(i)||(0,a.isObjectType)(i)||(0,a.isInterfaceType)(i)))throw new Error(`Expected ${(0,r.inspect)(n)} to be an Enum, Input Object, Object or Interface type.`);if((0,a.isEnumType)(i)){const e=t.memberName.value,n=i.getValue(e);if(null==n)return;return{kind:"EnumValue",type:i,enumValue:n}}if((0,a.isInputObjectType)(i)){const e=t.memberName.value,n=i.getFields()[e];if(null==n)return;return{kind:"InputField",type:i,inputField:n}}const o=t.memberName.value,s=i.getFields()[o];if(null!=s)return{kind:"Field",type:i,field:s}}(e,t);case i.Kind.ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,i=e.getType(n);if(null==i)throw new Error(`Expected ${(0,r.inspect)(n)} to be defined as a type in the schema.`);if(!(0,a.isObjectType)(i)&&!(0,a.isInterfaceType)(i))throw new Error(`Expected ${(0,r.inspect)(n)} to be an object type or interface type.`);const o=t.fieldName.value,s=i.getFields()[o];if(null==s)throw new Error(`Expected ${(0,r.inspect)(o)} to exist as a field of type ${(0,r.inspect)(n)} in the schema.`);const c=t.argumentName.value,l=s.args.find(e=>e.name===c);if(null!=l)return{kind:"FieldArgument",type:i,field:s,fieldArgument:l}}(e,t);case i.Kind.DIRECTIVE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getDirective(n);if(r)return{kind:"Directive",directive:r}}(e,t);case i.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,i=e.getDirective(n);if(!i)throw new Error(`Expected ${(0,r.inspect)(n)} to be defined as a directive in the schema.`);const{argumentName:{value:o}}=t,a=i.args.find(e=>e.name===o);if(a)return{kind:"DirectiveArgument",directive:i,directiveArgument:a}}(e,t)}}},2177(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.separateOperations=function(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case r.Kind.OPERATION_DEFINITION:t.push(i);break;case r.Kind.FRAGMENT_DEFINITION:n[i.name.value]=a(i.selectionSet)}const i=Object.create(null);for(const s of t){const t=new Set;for(const e of a(s.selectionSet))o(t,n,e);i[s.name?s.name.value:""]={kind:r.Kind.DOCUMENT,definitions:e.definitions.filter(e=>e===s||e.kind===r.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return i};var r=n(2057),i=n(8048);function o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)o(e,t,n)}}function a(e){const t=[];return(0,i.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}},8437(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortValueNode=function e(t){switch(t.kind){case i.Kind.OBJECT:return{...t,fields:(n=t.fields,n.map(t=>({...t,value:e(t.value)})).sort((e,t)=>(0,r.naturalCompare)(e.name.value,t.name.value)))};case i.Kind.LIST:return{...t,values:t.values.map(e)};case i.Kind.INT:case i.Kind.FLOAT:case i.Kind.STRING:case i.Kind.BOOLEAN:case i.Kind.NULL:case i.Kind.ENUM:case i.Kind.VARIABLE:return t}var n};var r=n(602),i=n(2057)},2550(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripIgnoredCharacters=function(e){const t=(0,o.isSource)(e)?e:new o.Source(e),n=t.body,s=new i.Lexer(t);let c="",l=!1;for(;s.advance().kind!==a.TokenKind.EOF;){const e=s.token,t=e.kind,o=!(0,i.isPunctuatorTokenKind)(e.kind);l&&(o||e.kind===a.TokenKind.SPREAD)&&(c+=" ");const u=n.slice(e.start,e.end);t===a.TokenKind.BLOCK_STRING?c+=(0,r.printBlockString)(e.value,{minimize:!0}):c+=u,l=o}return c};var r=n(4758),i=n(4524),o=n(6241),a=n(8053)},5065(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))},t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))};var r=n(4659)},3312(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=function e(t,n){switch(n.kind){case r.Kind.LIST_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLList(r)}case r.Kind.NON_NULL_TYPE:{const r=e(t,n.type);return r&&new i.GraphQLNonNull(r)}case r.Kind.NAMED_TYPE:return t.getType(n.name.value)}};var r=n(2057),i=n(4659)},6797(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,n,l){if(t){if(t.kind===a.Kind.VARIABLE){const e=t.name.value;if(null==l||void 0===l[e])return;const r=l[e];if(null===r&&(0,s.isNonNullType)(n))return;return r}if((0,s.isNonNullType)(n)){if(t.kind===a.Kind.NULL)return;return e(t,n.ofType,l)}if(t.kind===a.Kind.NULL)return null;if((0,s.isListType)(n)){const r=n.ofType;if(t.kind===a.Kind.LIST){const n=[];for(const i of t.values)if(c(i,l)){if((0,s.isNonNullType)(r))return;n.push(null)}else{const t=e(i,r,l);if(void 0===t)return;n.push(t)}return n}const i=e(t,r,l);if(void 0===i)return;return[i]}if((0,s.isInputObjectType)(n)){if(t.kind!==a.Kind.OBJECT)return;const r=Object.create(null),i=(0,o.keyMap)(t.fields,e=>e.name.value);for(const t of Object.values(n.getFields())){const n=i[t.name];if(!n||c(n.value,l)){if(void 0!==t.defaultValue)r[t.name]=t.defaultValue;else if((0,s.isNonNullType)(t.type))return;continue}const o=e(n.value,t.type,l);if(void 0===o)return;r[t.name]=o}if(n.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if((0,s.isLeafType)(n)){let e;try{e=n.parseLiteral(t,l)}catch(e){return}if(void 0===e)return;return e}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(n))}};var r=n(3216),i=n(1880),o=n(8881),a=n(2057),s=n(4659);function c(e,t){return e.kind===a.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},2636(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case i.Kind.NULL:return null;case i.Kind.INT:return parseInt(t.value,10);case i.Kind.FLOAT:return parseFloat(t.value);case i.Kind.STRING:case i.Kind.ENUM:case i.Kind.BOOLEAN:return t.value;case i.Kind.LIST:return t.values.map(t=>e(t,n));case i.Kind.OBJECT:return(0,r.keyValMap)(t.fields,e=>e.name.value,t=>e(t.value,n));case i.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}};var r=n(196),i=n(2057)},1885(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var r=n(2057),i=n(8048),o=n(2518);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=a;class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=s;class c extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=c},6531(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return a.ExecutableDefinitionsRule}}),Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return s.FieldsOnCorrectTypeRule}}),Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}}),Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return l.KnownArgumentNamesRule}}),Object.defineProperty(t,"KnownDirectivesRule",{enumerable:!0,get:function(){return u.KnownDirectivesRule}}),Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return d.KnownFragmentNamesRule}}),Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:!0,get:function(){return p.KnownTypeNamesRule}}),Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return f.LoneAnonymousOperationRule}}),Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return R.LoneSchemaDefinitionRule}}),Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return D.MaxIntrospectionDepthRule}}),Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return V.NoDeprecatedCustomRule}}),Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return h.NoFragmentCyclesRule}}),Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return z.NoSchemaIntrospectionCustomRule}}),Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return m.NoUndefinedVariablesRule}}),Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return g.NoUnusedFragmentsRule}}),Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return v.NoUnusedVariablesRule}}),Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return y.OverlappingFieldsCanBeMergedRule}}),Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return b.PossibleFragmentSpreadsRule}}),Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return q.PossibleTypeExtensionsRule}}),Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return E.ProvidedRequiredArgumentsRule}}),Object.defineProperty(t,"ScalarLeafsRule",{enumerable:!0,get:function(){return _.ScalarLeafsRule}}),Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return w.SingleFieldSubscriptionsRule}}),Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return F.UniqueArgumentDefinitionNamesRule}}),Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return k.UniqueArgumentNamesRule}}),Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return M.UniqueDirectiveNamesRule}}),Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return T.UniqueDirectivesPerLocationRule}}),Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return j.UniqueEnumValueNamesRule}}),Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return $.UniqueFieldDefinitionNamesRule}}),Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return S.UniqueFragmentNamesRule}}),Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return O.UniqueInputFieldNamesRule}}),Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return C.UniqueOperationNamesRule}}),Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return L.UniqueOperationTypesRule}}),Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return P.UniqueTypeNamesRule}}),Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return x.UniqueVariableNamesRule}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return N.ValuesOfCorrectTypeRule}}),Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return I.VariablesAreInputTypesRule}}),Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return A.VariablesInAllowedPositionRule}}),Object.defineProperty(t,"recommendedRules",{enumerable:!0,get:function(){return o.recommendedRules}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return o.specifiedRules}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return r.validate}});var r=n(9865),i=n(1885),o=n(4982),a=n(4663),s=n(3727),c=n(1405),l=n(261),u=n(8712),d=n(288),p=n(8664),f=n(7527),h=n(8861),m=n(7627),g=n(1619),v=n(483),y=n(8668),b=n(9404),E=n(7839),_=n(3072),w=n(2055),k=n(8269),T=n(1950),S=n(952),O=n(9184),C=n(5581),x=n(4388),N=n(7558),I=n(8885),A=n(9684),D=n(59),R=n(4879),L=n(2520),P=n(2656),j=n(168),$=n(8741),F=n(8842),M=n(2525),q=n(3252),V=n(2460),z=n(5305)},4663(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}};var r=n(4897),i=n(2057),o=n(9674)},3727(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsOnCorrectTypeRule=function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const c=e.getSchema(),l=t.name.value;let u=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,s.isAbstractType)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(a=o[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,s.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,s.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,i.naturalCompare)(t.name,n.name)}).map(e=>e.name)}(c,n,l));""===u&&(u=(0,r.didYouMean)(function(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,o.suggestionList)(t,n)}return[]}(n,l))),e.reportError(new a.GraphQLError(`Cannot query field "${l}" on type "${n.name}".`+u,{nodes:t}))}}}};var r=n(1971),i=n(602),o=n(6206),a=n(4897),s=n(4659)},1405(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentsOnCompositeTypesRule=function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}};var r=n(4897),i=n(3230),o=n(4659),a=n(3312)},261(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownArgumentNamesOnDirectivesRule=c,t.KnownArgumentNamesRule=function(e){return{...c(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,c=a.args.map(e=>e.name),l=(0,i.suggestionList)(n,c);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.didYouMean)(l),{nodes:t}))}}}};var r=n(1971),i=n(6206),o=n(4897),a=n(2057),s=n(4932);function c(e){const t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():s.specifiedDirectives;for(const e of c)t[e.name]=e.args.map(e=>e.name);const l=e.getDocument().definitions;for(const e of l)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var u;const n=null!==(u=e.arguments)&&void 0!==u?u:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const c=(0,i.suggestionList)(n,s);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${a}".`+(0,r.didYouMean)(c),{nodes:t}))}}return!1}}}},8712(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownDirectivesRule=function(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():l.specifiedDirectives;for(const e of u)t[e.name]=e.locations;const d=e.getDocument().definitions;for(const e of d)e.kind===c.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,l,u,d,p){const f=n.name.value,h=t[f];if(!h)return void e.reportError(new o.GraphQLError(`Unknown directive "@${f}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case c.Kind.OPERATION_DEFINITION:return function(e){switch(e){case a.OperationTypeNode.QUERY:return s.DirectiveLocation.QUERY;case a.OperationTypeNode.MUTATION:return s.DirectiveLocation.MUTATION;case a.OperationTypeNode.SUBSCRIPTION:return s.DirectiveLocation.SUBSCRIPTION}}(t.operation);case c.Kind.FIELD:return s.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return s.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return s.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return s.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return s.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return s.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return s.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return s.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return s.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return s.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return s.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return s.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return s.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?s.DirectiveLocation.INPUT_FIELD_DEFINITION:s.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,i.invariant)(!1,"Unexpected kind: "+(0,r.inspect)(t.kind))}}(p);m&&!h.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${f}" may not be used on ${m}.`,{nodes:n}))}}};var r=n(3216),i=n(1880),o=n(4897),a=n(3378),s=n(3684),c=n(2057),l=n(4932)},288(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownFragmentNamesRule=function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}};var r=n(4897)},8664(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KnownTypeNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const t of e.getDocument().definitions)(0,a.isTypeDefinitionNode)(t)&&(s[t.name.value]=!0);const l=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,u,d,p,f){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=f[2])&&void 0!==m?m:d,s=null!=n&&"kind"in(g=n)&&((0,a.isTypeSystemDefinitionNode)(g)||(0,a.isTypeSystemExtensionNode)(g));if(s&&c.includes(h))return;const u=(0,i.suggestionList)(h,s?c.concat(l):l);e.reportError(new o.GraphQLError(`Unknown type "${h}".`+(0,r.didYouMean)(u),{nodes:t}))}var g}}};var r=n(1971),i=n(6206),o=n(4897),a=n(9674),s=n(5543);const c=[...n(7409).specifiedScalarTypes,...s.introspectionTypes].map(e=>e.name)},7527(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneAnonymousOperationRule=function(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===i.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}};var r=n(4897),i=n(2057)},4879(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoneSchemaDefinitionRule=function(e){var t,n,i;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",{nodes:t})),++s)}}};var r=n(4897)},59(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxIntrospectionDepthRule=function(e){function t(n,r=Object.create(null),o=0){if(n.kind===i.Kind.FRAGMENT_SPREAD){const i=n.name.value;if(!0===r[i])return!1;const a=e.getFragment(i);if(!a)return!1;try{return r[i]=!0,t(a,r,o)}finally{r[i]=void 0}}if(n.kind===i.Kind.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++o>=3)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,o))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new r.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}};var r=n(4897),i=n(2057)},8861(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoFragmentCyclesRule=function(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const c=e.getFragmentSpreads(a.selectionSet);if(0!==c.length){i[s]=n.length;for(const t of c){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[s]=void 0}}};var r=n(4897)},7627(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedVariablesRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}};var r=n(4897)},1619(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedFragmentsRule=function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,{nodes:t}))}}}}};var r=n(4897)},483(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedVariablesRule=function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}};var r=n(4897)},8668(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlappingFieldsCanBeMergedRule=function(e){const t=new E,n=new _,r=new Map;return{SelectionSet(o){const a=function(e,t,n,r,i,o){const a=[],[s,c]=v(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o<s.length;o++)for(let c=o+1;c<s.length;c++){const l=h(e,n,r,i,!1,a,s[o],s[c]);l&&t.push(l)}}(e,a,t,n,r,s),0!==c.length)for(let i=0;i<c.length;i++){d(e,a,t,n,r,!1,s,c[i]);for(let o=i+1;o<c.length;o++)p(e,a,t,n,r,!1,c[i],c[o])}return a}(e,r,t,n,e.getParentType(),o);for(const[[t,n],r,o]of a){const a=u(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${a}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}};var r=n(3216),i=n(4897),o=n(2057),a=n(3230),s=n(4659),c=n(8437),l=n(3312);function u(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+u(t)).join(" and "):e}function d(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);const c=e.getFragment(s);if(!c)return;const[l,u]=y(e,n,c);if(a!==l){f(e,t,n,r,i,o,a,l);for(const s of u)d(e,t,n,r,i,o,a,s)}}function p(e,t,n,r,i,o,a,s){if(a===s)return;if(i.has(a,s,o))return;i.add(a,s,o);const c=e.getFragment(a),l=e.getFragment(s);if(!c||!l)return;const[u,d]=y(e,n,c),[h,m]=y(e,n,l);f(e,t,n,r,i,o,u,h);for(const s of m)p(e,t,n,r,i,o,a,s);for(const a of d)p(e,t,n,r,i,o,a,s)}function f(e,t,n,r,i,o,a,s){for(const[c,l]of Object.entries(a)){const a=s[c];if(a)for(const s of l)for(const l of a){const a=h(e,n,r,i,o,c,s,l);a&&t.push(a)}}}function h(e,t,n,i,o,a,c,l){const[u,h,y]=c,[b,E,_]=l,w=o||u!==b&&(0,s.isObjectType)(u)&&(0,s.isObjectType)(b);if(!w){const e=h.name.value,t=E.name.value;if(e!==t)return[[a,`"${e}" and "${t}" are different fields`],[h],[E]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&m(t)===m(n)})}(h,E))return[[a,"they have differing arguments"],[h],[E]]}const k=null==y?void 0:y.type,T=null==_?void 0:_.type;if(k&&T&&g(k,T))return[[a,`they return conflicting types "${(0,r.inspect)(k)}" and "${(0,r.inspect)(T)}"`],[h],[E]];const S=h.selectionSet,O=E.selectionSet;if(S&&O){const r=function(e,t,n,r,i,o,a,s,c){const l=[],[u,h]=v(e,t,o,a),[m,g]=v(e,t,s,c);f(e,l,t,n,r,i,u,m);for(const o of g)d(e,l,t,n,r,i,u,o);for(const o of h)d(e,l,t,n,r,i,m,o);for(const o of h)for(const a of g)p(e,l,t,n,r,i,o,a);return l}(e,t,n,i,w,(0,s.getNamedType)(k),S,(0,s.getNamedType)(T),O);return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(r,a,h,E)}}function m(e){return(0,a.print)((0,c.sortValueNode)(e))}function g(e,t){return(0,s.isListType)(e)?!(0,s.isListType)(t)||g(e.ofType,t.ofType):!!(0,s.isListType)(t)||((0,s.isNonNullType)(e)?!(0,s.isNonNullType)(t)||g(e.ofType,t.ofType):!!(0,s.isNonNullType)(t)||!(!(0,s.isLeafType)(e)&&!(0,s.isLeafType)(t))&&e!==t)}function v(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);b(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function y(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,l.typeFromAST)(e.getSchema(),n.typeCondition);return v(e,t,i,n.selectionSet)}function b(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.Kind.FIELD:{const e=a.name.value;let n;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,l.typeFromAST)(e.getSchema(),n):t;b(e,o,a.selectionSet,r,i);break}}}class E{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class _{constructor(){this._orderedPairSet=new E}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}},9404(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleFragmentSpreadsRule=function(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(s)&&!(0,a.doTypesOverlap)(e.getSchema(),n,s)){const o=(0,r.inspect)(s),a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,c=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t))return t}}(e,n),l=e.getParentType();if(c&&l&&!(0,a.doTypesOverlap)(e.getSchema(),c,l)){const o=(0,r.inspect)(l),a=(0,r.inspect)(c);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}};var r=n(3216),i=n(4897),o=n(4659),a=n(5065),s=n(3312)},3252(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PossibleTypeExtensionsRule=function(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,l.isTypeDefinitionNode)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:p,ObjectTypeExtension:p,InterfaceTypeExtension:p,UnionTypeExtension:p,EnumTypeExtension:p,InputObjectTypeExtension:p};function p(l){const p=l.name.value,f=n[p],h=null==t?void 0:t.getType(p);let m;if(f?m=d[f.kind]:h&&(g=h,m=(0,u.isScalarType)(g)?c.Kind.SCALAR_TYPE_EXTENSION:(0,u.isObjectType)(g)?c.Kind.OBJECT_TYPE_EXTENSION:(0,u.isInterfaceType)(g)?c.Kind.INTERFACE_TYPE_EXTENSION:(0,u.isUnionType)(g)?c.Kind.UNION_TYPE_EXTENSION:(0,u.isEnumType)(g)?c.Kind.ENUM_TYPE_EXTENSION:(0,u.isInputObjectType)(g)?c.Kind.INPUT_OBJECT_TYPE_EXTENSION:void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(g))),m){if(m!==l.kind){const t=function(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.invariant)(!1,"Unexpected kind: "+(0,i.inspect)(e))}}(l.kind);e.reportError(new s.GraphQLError(`Cannot extend non-${t} type "${p}".`,{nodes:f?[f,l]:l}))}}else{const i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=(0,a.suggestionList)(p,i);e.reportError(new s.GraphQLError(`Cannot extend type "${p}" because it is not defined.`+(0,r.didYouMean)(o),{nodes:l.name}))}var g}};var r=n(1971),i=n(3216),o=n(1880),a=n(6206),s=n(4897),c=n(2057),l=n(9674),u=n(4659);const d={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION}},7839(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProvidedRequiredArgumentsOnDirectivesRule=u,t.ProvidedRequiredArgumentsRule=function(e){return{...u(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of i.args)if(!a.has(n.name)&&(0,c.isRequiredArgument)(n)){const a=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}};var r=n(3216),i=n(8881),o=n(4897),a=n(2057),s=n(3230),c=n(4659),l=n(4932);function u(e){var t;const n=Object.create(null),u=e.getSchema(),p=null!==(t=null==u?void 0:u.getDirectives())&&void 0!==t?t:l.specifiedDirectives;for(const e of p)n[e.name]=(0,i.keyMap)(e.args.filter(c.isRequiredArgument),e=>e.name);const f=e.getDocument().definitions;for(const e of f)if(e.kind===a.Kind.DIRECTIVE_DEFINITION){var h;const t=null!==(h=e.arguments)&&void 0!==h?h:[];n[e.name.value]=(0,i.keyMap)(t.filter(d),e=>e.name.value)}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var l;const n=null!==(l=t.arguments)&&void 0!==l?l:[],u=new Set(n.map(e=>e.name.value));for(const[n,l]of Object.entries(a))if(!u.has(n)){const a=(0,c.isType)(l.type)?(0,r.inspect)(l.type):(0,s.print)(l.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}}function d(e){return e.type.kind===a.Kind.NON_NULL_TYPE&&null==e.defaultValue}},3072(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarLeafsRule=function(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(a){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:a}))}}else if(a){if(0===a.selections.length){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have at least one field selected.`,{nodes:t}))}}else{const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}};var r=n(3216),i=n(4897),o=n(4659)},2055(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleFieldSubscriptionsRule=function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,c=Object.create(null),l=e.getDocument(),u=Object.create(null);for(const e of l.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(u[e.name.value]=e);const d=(0,o.collectFields)(n,u,c,a,t.selectionSet);if(d.size>1){const t=[...d.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of d.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}};var r=n(4897),i=n(2057),o=n(9725)},8842(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentDefinitionNamesRule=function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,e=>e.name.value);for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:r.map(e=>e.name)}));return!1}};var r=n(8798),i=n(4897)},8269(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueArgumentNamesRule=function(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.groupBy)(o,e=>e.name.value);for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,{nodes:n.map(e=>e.name)}))}};var r=n(8798),i=n(4897)},2525(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectiveNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}};var r=n(4897)},1950(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueDirectivesPerLocationRule=function(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.specifiedDirectives;for(const e of s)t[e.name]=!e.isRepeatable;const c=e.getDocument().definitions;for(const e of c)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const l=Object.create(null),u=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)a=l;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;a=u[e],void 0===a&&(u[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],i]})):a[n]=i)}}}};var r=n(4897),i=n(2057),o=n(9674),a=n(4932)},168(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEnumValueNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const c=null!==(a=t.values)&&void 0!==a?a:[],l=o[s];for(const t of c){const o=t.name.value,a=n[s];(0,i.isEnumType)(a)&&a.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):l[o]?e.reportError(new r.GraphQLError(`Enum value "${s}.${o}" can only be defined once.`,{nodes:[l[o],t.name]})):l[o]=t.name}return!1}};var r=n(4897),i=n(4659)},8741(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFieldDefinitionNamesRule=function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const c=null!==(a=t.fields)&&void 0!==a?a:[],l=i[s];for(const t of c){const i=t.name.value;o(n[s],i)?e.reportError(new r.GraphQLError(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):l[i]?e.reportError(new r.GraphQLError(`Field "${s}.${i}" can only be defined once.`,{nodes:[l[i],t.name]})):l[i]=t.name}return!1}};var r=n(4897),i=n(4659);function o(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},952(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueFragmentNamesRule=function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}};var r=n(4897)},9184(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueInputFieldNamesRule=function(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}};var r=n(1880),i=n(4897)},5581(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationNamesRule=function(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}};var r=n(4897)},2520(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueOperationTypesRule=function(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of a){const o=t.operation,a=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[a,t]})):n[o]=t}return!1}};var r=n(4897)},2656(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTypeNamesRule=function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}};var r=n(4897)},4388(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueVariableNamesRule=function(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.groupBy)(o,e=>e.variable.name.value);for(const[t,n]of a)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:n.map(e=>e.variable.name)}))}}};var r=n(8798),i=n(4897)},7558(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValuesOfCorrectTypeRule=function(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const n=(0,u.getNullableType)(e.getParentInputType());if(!(0,u.isListType)(n))return d(e,t),!1},ObjectValue(t){const n=(0,u.getNamedType)(e.getInputType());if(!(0,u.isInputObjectType)(n))return d(e,t),!1;const r=(0,o.keyMap)(t.fields,e=>e.name.value);for(const o of Object.values(n.getFields()))if(!r[o.name]&&(0,u.isRequiredInputField)(o)){const r=(0,i.inspect)(o.type);e.reportError(new s.GraphQLError(`Field "${n.name}.${o.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;const o=Object.keys(r);if(1!==o.length)return void e.reportError(new s.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(i=r[o[0]])||void 0===i?void 0:i.value;a&&a.kind!==c.Kind.NULL||e.reportError(new s.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=(0,u.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,u.isInputObjectType)(n)){const i=(0,a.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.didYouMean)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,u.isNonNullType)(n)&&e.reportError(new s.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,l.print)(t)}.`,{nodes:t}))},EnumValue:t=>d(e,t),IntValue:t=>d(e,t),FloatValue:t=>d(e,t),StringValue:t=>d(e,t),BooleanValue:t=>d(e,t)}};var r=n(1971),i=n(3216),o=n(8881),a=n(6206),s=n(4897),c=n(2057),l=n(3230),u=n(4659);function d(e,t){const n=e.getInputType();if(!n)return;const r=(0,u.getNamedType)(n);if(!(0,u.isLeafType)(r)){const r=(0,i.inspect)(n);return void e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,l.print)(t)}.`,{nodes:t}))}try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new s.GraphQLError(`Expected value of type "${r}", found ${(0,l.print)(t)}.`,{nodes:t}))}}catch(r){const o=(0,i.inspect)(n);r instanceof s.GraphQLError?e.reportError(r):e.reportError(new s.GraphQLError(`Expected value of type "${o}", found ${(0,l.print)(t)}; `+r.message,{nodes:t,originalError:r}))}}},8885(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesAreInputTypesRule=function(e){return{VariableDefinition(t){const n=(0,a.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}};var r=n(4897),i=n(3230),o=n(4659),a=n(3312)},9684(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesInAllowedPositionRule=function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:s,defaultValue:u,parentType:d}of o){const o=n.name.value,p=t[o];if(p&&s){const t=e.getSchema(),f=(0,c.typeFromAST)(t,p.type);if(f&&!l(t,f,p.defaultValue,s,u)){const t=(0,r.inspect)(f),a=(0,r.inspect)(s);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[p,n]}))}(0,a.isInputObjectType)(d)&&d.isOneOf&&(0,a.isNullableType)(f)&&e.reportError(new i.GraphQLError(`Variable "$${o}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${d}".`,{nodes:[p,n]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}};var r=n(3216),i=n(4897),o=n(2057),a=n(4659),s=n(5065),c=n(3312);function l(e,t,n,r,i){if((0,a.isNonNullType)(r)&&!(0,a.isNonNullType)(t)){if((null==n||n.kind===o.Kind.NULL)&&void 0===i)return!1;const a=r.ofType;return(0,s.isTypeSubTypeOf)(e,t,a)}return(0,s.isTypeSubTypeOf)(e,t,r)}},2460(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoDeprecatedCustomRule=function(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${a.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.GraphQLError(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null==n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.getNamedType)(e.getInputType());null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,{nodes:t}))}}}};var r=n(1880),i=n(4897),o=n(4659)},5305(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoSchemaIntrospectionCustomRule=function(e){return{Field(t){const n=(0,i.getNamedType)(e.getType());n&&(0,o.isIntrospectionType)(n)&&e.reportError(new r.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}};var r=n(4897),i=n(4659),o=n(5543)},4982(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var r=n(4663),i=n(3727),o=n(1405),a=n(261),s=n(8712),c=n(288),l=n(8664),u=n(7527),d=n(4879),p=n(59),f=n(8861),h=n(7627),m=n(1619),g=n(483),v=n(8668),y=n(9404),b=n(3252),E=n(7839),_=n(3072),w=n(2055),k=n(8842),T=n(8269),S=n(2525),O=n(1950),C=n(168),x=n(8741),N=n(952),I=n(9184),A=n(5581),D=n(2520),R=n(2656),L=n(4388),P=n(7558),j=n(8885),$=n(9684);const F=Object.freeze([p.MaxIntrospectionDepthRule]);t.recommendedRules=F;const M=Object.freeze([r.ExecutableDefinitionsRule,A.UniqueOperationNamesRule,u.LoneAnonymousOperationRule,w.SingleFieldSubscriptionsRule,l.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,j.VariablesAreInputTypesRule,_.ScalarLeafsRule,i.FieldsOnCorrectTypeRule,N.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,m.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,f.NoFragmentCyclesRule,L.UniqueVariableNamesRule,h.NoUndefinedVariablesRule,g.NoUnusedVariablesRule,s.KnownDirectivesRule,O.UniqueDirectivesPerLocationRule,a.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,E.ProvidedRequiredArgumentsRule,$.VariablesInAllowedPositionRule,v.OverlappingFieldsCanBeMergedRule,I.UniqueInputFieldNamesRule,...F]);t.specifiedRules=M;const q=Object.freeze([d.LoneSchemaDefinitionRule,D.UniqueOperationTypesRule,R.UniqueTypeNamesRule,C.UniqueEnumValueNamesRule,x.UniqueFieldDefinitionNamesRule,k.UniqueArgumentDefinitionNamesRule,S.UniqueDirectiveNamesRule,l.KnownTypeNamesRule,s.KnownDirectivesRule,O.UniqueDirectivesPerLocationRule,b.PossibleTypeExtensionsRule,a.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,I.UniqueInputFieldNamesRule,E.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=q},9865(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidSDL=function(e){const t=u(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))},t.assertValidSDLExtension=function(e,t){const n=u(e,t);if(0!==n.length)throw new Error(n.map(e=>e.message).join("\n\n"))},t.validate=function(e,t,n=c.specifiedRules,u,d=new s.TypeInfo(e)){var p;const f=null!==(p=null==u?void 0:u.maxErrors)&&void 0!==p?p:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,a.assertValidSchema)(e);const h=Object.freeze({}),m=[],g=new l.ValidationContext(e,t,d,e=>{if(m.length>=f)throw m.push(new i.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)}),v=(0,o.visitInParallel)(n.map(e=>e(g)));try{(0,o.visit)(t,(0,s.visitWithTypeInfo)(d,v))}catch(e){if(e!==h)throw e}return m},t.validateSDL=u;var r=n(5269),i=n(4897),o=n(8048),a=n(1108),s=n(2518),c=n(4982),l=n(1885);function u(e,t,n=c.specifiedSDLRules){const r=[],i=new l.SDLValidationContext(e,t,e=>{r.push(e)}),a=n.map(e=>e(i));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}},1159(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionInfo=t.version=void 0,t.version="16.12.0";const n=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});t.versionInfo=n},683(e,t,n){var r,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var o={compressToBase64:function(e){if(null==e)return"";var n=o._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:o._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return null==t?"":o._compress(t,15,function(t){return e(t+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:o._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=o.compress(e),n=new Uint8Array(2*t.length),r=0,i=t.length;r<i;r++){var a=t.charCodeAt(r);n[2*r]=a>>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(t){if(null==t)return o.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=256*t[2*r]+t[2*r+1];var a=[];return n.forEach(function(t){a.push(e(t))}),o.decompress(a.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":o._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),o._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return o._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(null==e)return"";var r,i,o,a={},s={},c="",l="",u="",d=2,p=3,f=2,h=[],m=0,g=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=p++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++),a[l]=p++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete s[u]}else for(i=a[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(i=2,r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;for(;;){if(m<<=1,g==t-1){h.push(n(m));break}g++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i,o,a,s,c,l,u,d=[],p=4,f=4,h=3,m="",g=[],v={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)d[i]=i;for(a=0,c=Math.pow(2,2),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;switch(a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;u=e(a);break;case 2:return""}for(d[3]=u,o=u,g.push(u);;){if(v.index>t)return"";for(a=0,c=Math.pow(2,h),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;switch(u=a){case 0:for(a=0,c=Math.pow(2,8),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;d[f++]=e(a),u=f-1,p--;break;case 1:for(a=0,c=Math.pow(2,16),l=1;l!=c;)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),a|=(s>0?1:0)*l,l<<=1;d[f++]=e(a),u=f-1,p--;break;case 2:return g.join("")}if(0==p&&(p=Math.pow(2,h),h++),d[u])m=d[u];else{if(u!==f)return null;m=o+o.charAt(0)}g.push(m),d[f++]=o+m.charAt(0),o=m,0==--p&&(p=Math.pow(2,h),h++)}}};return o}();void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)},4826(e,t,n){"use strict";n.r(t),n.d(t,{decode:()=>y,default:()=>w,encode:()=>b,toASCII:()=>_,toUnicode:()=>E,ucs2decode:()=>f,ucs2encode:()=>h});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(c[e])}function p(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function f(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const h=e=>String.fromCodePoint(...e),m=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:i},g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},v=function(e,t,n){let r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;r+=i)e=l(e/35);return l(r+36*e/(e+38))},y=function(e){const t=[],n=e.length;let o=0,a=128,s=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n<c;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let u=c>0?c+1:0;u<n;){const c=o;for(let t=1,a=i;;a+=i){u>=n&&d("invalid-input");const c=m(e.charCodeAt(u++));c>=i&&d("invalid-input"),c>l((r-o)/t)&&d("overflow"),o+=c*t;const p=a<=s?1:a>=s+26?26:a-s;if(c<p)break;const f=i-p;t>l(r/f)&&d("overflow"),t*=f}const p=t.length+1;s=v(o-c,p,0==c),l(o/p)>r-a&&d("overflow"),a+=l(o/p),o%=p,t.splice(o++,0,a)}return String.fromCodePoint(...t)},b=function(e){const t=[],n=(e=f(e)).length;let o=128,a=0,s=72;for(const n of e)n<128&&t.push(u(n));const c=t.length;let p=c;for(c&&t.push("-");p<n;){let n=r;for(const t of e)t>=o&&t<n&&(n=t);const f=p+1;n-o>l((r-a)/f)&&d("overflow"),a+=(n-o)*f,o=n;for(const n of e)if(n<o&&++a>r&&d("overflow"),n===o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const o=e-r,a=i-r;t.push(u(g(r+o%a,0))),e=l(o/a)}t.push(u(g(e,0))),s=v(a,f,p===c),a=0,++p}++a,++o}return t.join("")},E=function(e){return p(e,function(e){return o.test(e)?y(e.slice(4).toLowerCase()):e})},_=function(e){return p(e,function(e){return a.test(e)?"xn--"+b(e):e})},w={version:"2.3.1",ucs2:{decode:f,encode:h},decode:y,encode:b,toASCII:_,toUnicode:E}},8032(e,t,n){"use strict";const r=n(7269),i=n(8605),o=n(2851),a=n(28),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(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 m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(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(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map(t=>u(t,e));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e},Object.create(null))}t.extract=f,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",i,"]"].join("")]:[...n,[l(t,e),"[",l(i,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[l(n,e),t,l(i,e)].join("")]:[[r,l(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{const i=e[n];return void 0===i?"":null===i?l(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":i.reduce(r(n),[]).join("&"):l(n,t)+"="+l(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=p(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},320(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case d:case p:return e;default:switch(e=e&&e.$$typeof){case l:case c:case u:case h:case f:case s:return e;default:return t}}case r:return t}}}(e)===f}},524(e,t,n){"use strict";e.exports=n(320)},3146(e,t,n){"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,n(1609))},2146(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var l=o[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(i=n?n.call(r,u,d,l):void 0)||void 0===i&&u!==d)return!1}return!0}},2851(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},7269(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},166(e,t,n){"use strict";n.d(t,{A:()=>ys,B:()=>Ls,C:()=>Ta,D:()=>Ps,G:()=>Vi,I:()=>No,J:()=>zi,K:()=>nl,L:()=>Da,P:()=>Ra,R:()=>$a,a:()=>Kc,c:()=>b,e:()=>tc,f:()=>Wc,g:()=>sc,h:()=>nc,i:()=>Aa,j:()=>rc,k:()=>gc,l:()=>Ca,m:()=>Zc,n:()=>Bc,o:()=>Oa,p:()=>Ia,r:()=>ws,s:()=>ks,t:()=>Na,u:()=>ic,w:()=>zs,x:()=>Bs,y:()=>ps,z:()=>fs});var r=n(5549),i=n(1609),o=n.n(i),a=n(5795),s=n.n(a),c=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&h(e,n,t[n]);if(d)for(var n of d(t))f.call(t,n)&&h(e,n,t[n]);return e},g=(e,t)=>l(e,u(t)),v=(e,t)=>c(e,"name",{value:t,configurable:!0}),y=(e,t)=>{var n={};for(var r in e)p.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&d)for(var r of d(e))t.indexOf(r)<0&&f.call(e,r)&&(n[r]=e[r]);return n},b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}v(E,"getDefaultExportFromCjs"),v(_,"getAugmentedNamespace");var w=/["'&<>]/,k=T;function T(e){var t,n=""+e,r=w.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==o&&(i+=n.substring(a,o)),a=o+1,i+=t}return a!==o?i+n.substring(a,o):i}v(T,"escapeHtml$1");var S={},O={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},C=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,x={},N={};function I(e){var t,n,r=N[e];if(r)return r;for(r=N[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function A(e,t,n){var r,i,o,a,s,c="";for("string"!=typeof t&&(n=t,t=A.defaultChars),void 0===n&&(n=!0),s=I(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))c+=e.slice(r,r+3),r+=2;else if(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){c+=encodeURIComponent(e[r]+e[r+1]),r++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[r]);return c}v(I,"getEncodeCache"),v(A,"encode$1"),A.defaultChars=";/?:@&=+$,-_.!~*'()#",A.componentChars="-_.!~*'()";var D=A,R={};function L(e){var t,n,r=R[e];if(r)return r;for(r=R[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function P(e,t){var n;return"string"!=typeof t&&(t=P.defaultChars),n=L(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,i,o,a,s,c,l="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=i<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(c=i<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l})}v(L,"getDecodeCache"),v(P,"decode$1"),P.defaultChars=";/?:@&=+$,#",P.componentChars="";var j=P,$=v(function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")},"format");function F(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}v(F,"Url");var M=/^([a-z0-9.+-]+:)/i,q=/:[0-9]*$/,V=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,z=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),B=["'"].concat(z),G=["%","/","?",";","#"].concat(B),Q=["/","?","#"],U=/^[+a-z0-9A-Z_-]{0,63}$/,H=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K={javascript:!0,"javascript:":!0},W={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Y(e,t){if(e&&e instanceof F)return e;var n=new F;return n.parse(e,t),n}v(Y,"urlParse"),F.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=V.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=M.exec(s);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&K[l]||(s=s.substr(2),this.slashes=!0)),!K[l]&&(a||l&&!W[l])){var u,d,p=-1;for(n=0;n<Q.length;n++)-1!==(o=s.indexOf(Q[n]))&&(-1===p||o<p)&&(p=o);for(-1!==(d=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(u=s.slice(0,d),s=s.slice(d+1),this.auth=u),p=-1,n=0;n<G.length;n++)-1!==(o=s.indexOf(G[n]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=s.length),":"===s[p-1]&&p--;var f=s.slice(0,p);s=s.slice(p),this.parseHost(f),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var g=m[n];if(g&&!g.match(U)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(U)){var E=m.slice(0,n),_=m.slice(n+1),w=g.match(H);w&&(E.push(w[1]),_.unshift(w[2])),_.length&&(s=_.join(".")+s),this.hostname=E.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=s.indexOf("#");-1!==k&&(this.hash=s.substr(k),s=s.slice(0,k));var T=s.indexOf("?");return-1!==T&&(this.search=s.substr(T),s=s.slice(0,T)),s&&(this.pathname=s),W[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},F.prototype.parseHost=function(e){var t=q.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var X=Y;x.encode=D,x.decode=j,x.format=$,x.parse=X;var J={},Z=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\0-\x1F\x7F-\x9F]/,te=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;J.Any=Z,J.Cc=ee,J.Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,J.P=C,J.Z=te,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}v(t,"_class"),v(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function c(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}v(i,"has"),v(o,"assign"),v(a,"arrayReplaceAt"),v(s,"isValidEntityCode"),v(c,"fromCodePoint");var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(l.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=O;function f(e,t){var n=0;return i(p,t)?p[t]:35===t.charCodeAt(0)&&d.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?c(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(l,"$1")}function m(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,function(e,t,n){return t||f(e,n)})}v(f,"replaceEntityPattern"),v(h,"unescapeMd"),v(m,"unescapeAll");var g=/[&<>"]/,y=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function E(e){return b[e]}function _(e){return g.test(e)?e.replace(y,E):e}v(E,"replaceUnsafeChar"),v(_,"escapeHtml");var w=/[.?*+^$[\]\\(){}|-]/g;function k(e){return e.replace(w,"\\$&")}function T(e){switch(e){case 9:case 32:return!0}return!1}function S(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}v(k,"escapeRE"),v(T,"isSpace"),v(S,"isWhiteSpace");var N=C;function I(e){return N.test(e)}function A(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function D(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}v(I,"isPunctChar"),v(A,"isMdAsciiPunct"),v(D,"normalizeReference"),e.lib={},e.lib.mdurl=x,e.lib.ucmicro=J,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=c,e.escapeHtml=_,e.arrayReplaceAt=a,e.isSpace=T,e.isWhiteSpace=S,e.isMdAsciiPunct=A,e.isPunctChar=I,e.escapeRE=k,e.normalizeReference=D}(S);var ne={},re=v(function(e,t,n){var r,i,o,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<c;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(s=e.pos),e.pos=l,s},"parseLinkLabel"),ie=S.unescapeAll,oe=v(function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=ie(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=ie(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},"parseLinkDestination"),ae=S.unescapeAll,se=v(function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return s.pos=t+1,s.lines=o,s.str=ae(e.slice(a+1,t)),s.ok=!0,s;if(40===r&&41===i)return s;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return s},"parseLinkTitle");ne.parseLinkLabel=re,ne.parseLinkDestination=oe,ne.parseLinkTitle=se;var ce=S.assign,le=S.unescapeAll,ue=S.escapeHtml,de={};function pe(){this.rules=ce({},de)}de.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+ue(e[t].content)+"</code>"},de.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+ue(e[t].content)+"</code></pre>\n"},de.fence=function(e,t,n,r,i){var o,a,s,c,l,u=e[t],d=u.info?le(u.info).trim():"",p="",f="";return d&&(p=(s=d.split(/(\s+)/g))[0],f=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,p,f)||ue(u.content)).indexOf("<pre")?o+"\n":d?(a=u.attrIndex("class"),c=u.attrs?u.attrs.slice():[],a<0?c.push(["class",n.langPrefix+p]):(c[a]=c[a].slice(),c[a][1]+=" "+n.langPrefix+p),l={attrs:c},"<pre><code"+i.renderAttrs(l)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"},de.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},de.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},de.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},de.text=function(e,t){return ue(e[t].content)},de.html_block=function(e,t){return e[t].content},de.html_inline=function(e,t){return e[t].content},v(pe,"Renderer$1"),pe.prototype.renderAttrs=v(function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+ue(e.attrs[t][0])+'="'+ue(e.attrs[t][1])+'"';return r},"renderAttrs"),pe.prototype.renderToken=v(function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},"renderToken"),pe.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},pe.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},pe.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var fe=pe;function he(){this.__rules__=[],this.__cache__=null}v(he,"Ruler$3"),he.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},he.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},he.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},he.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},he.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},he.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},he.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},he.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},he.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},he.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var me=he,ge=/\r\n?|\n/g,ve=/\0/g,ye=v(function(e){var t;t=(t=e.src.replace(ge,"\n")).replace(ve,"�"),e.src=t},"normalize"),be=v(function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},"block"),Ee=v(function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)},"inline"),_e=S.arrayReplaceAt;function we(e){return/^<a[>\s]/i.test(e)}function ke(e){return/^<\/a\s*>/i.test(e)}v(we,"isLinkOpen"),v(ke,"isLinkClose");var Te=v(function(e){var t,n,r,i,o,a,s,c,l,u,d,p,f,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n<r;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(f=0,t=(i=y[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(we(a.content)&&f>0&&f--,ke(a.content)&&f++),!(f>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,v=e.md.linkify.match(l),s=[],p=a.level,d=0,c=0;c<v.length;c++)h=v[c].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(g=v[c].text,g=v[c].schema?"mailto:"!==v[c].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),(u=v[c].index)>d&&((o=new e.Token("text","",0)).content=l.slice(d,u),o.level=p,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=p++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=g,o.level=p,s.push(o),(o=new e.Token("link_close","a",-1)).level=--p,o.markup="linkify",o.info="auto",s.push(o),d=v[c].lastIndex);d<l.length&&((o=new e.Token("text","",0)).content=l.slice(d),o.level=p,s.push(o)),y[n].children=i=_e(i,t,s)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--},"linkify"),Se=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Oe=/\((c|tm|r|p)\)/i,Ce=/\((c|tm|r|p)\)/gi,xe={c:"©",r:"®",p:"§",tm:"™"};function Ne(e,t){return xe[t.toLowerCase()]}function Ie(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Ce,Ne)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Ae(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Se.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}v(Ne,"replaceFn"),v(Ie,"replace_scoped"),v(Ae,"replace_rare");var De=v(function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Oe.test(e.tokens[t].content)&&Ie(e.tokens[t].children),Se.test(e.tokens[t].content)&&Ae(e.tokens[t].children))},"replace"),Re=S.isWhiteSpace,Le=S.isPunctChar,Pe=S.isMdAsciiPunct,je=/['"]/,$e=/['"]/g;function Fe(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function Me(e,t){var n,r,i,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w;for(E=[],n=0;n<e.length;n++){for(r=e[n],c=e[n].level,y=E.length-1;y>=0&&!(E[y].level<=c);y--);if(E.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a<s&&($e.lastIndex=a,o=$e.exec(i));){if(g=v=!0,a=o.index+1,b="'"===o[0],u=32,o.index-1>=0)u=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(d=32,a<s)d=i.charCodeAt(a);else for(y=n+1;y<e.length&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y++)if(e[y].content){d=e[y].content.charCodeAt(0);break}if(p=Pe(u)||Le(String.fromCharCode(u)),f=Pe(d)||Le(String.fromCharCode(d)),h=Re(u),(m=Re(d))?g=!1:f&&(h||p||(g=!1)),h?v=!1:p&&(m||f||(v=!1)),34===d&&'"'===o[0]&&u>=48&&u<=57&&(v=g=!1),g&&v&&(g=p,v=f),g||v){if(v)for(y=E.length-1;y>=0&&(l=E[y],!(E[y].level<c));y--)if(l.single===b&&E[y].level===c){l=E[y],b?(_=t.md.options.quotes[2],w=t.md.options.quotes[3]):(_=t.md.options.quotes[0],w=t.md.options.quotes[1]),r.content=Fe(r.content,o.index,w),e[l.token].content=Fe(e[l.token].content,l.pos,_),a+=w.length-1,l.token===n&&(a+=_.length-1),s=(i=r.content).length,E.length=y;continue e}g?E.push({token:n,pos:o.index,single:b,level:c}):v&&b&&(r.content=Fe(r.content,o.index,"’"))}else b&&(r.content=Fe(r.content,o.index,"’"))}}}}v(Fe,"replaceAt"),v(Me,"process_inlines");var qe=v(function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&je.test(e.tokens[t].content)&&Me(e.tokens[t].children,e)},"smartquotes");function Ve(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}v(Ve,"Token$3"),Ve.prototype.attrIndex=v(function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},"attrIndex"),Ve.prototype.attrPush=v(function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},"attrPush"),Ve.prototype.attrSet=v(function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},"attrSet"),Ve.prototype.attrGet=v(function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},"attrGet"),Ve.prototype.attrJoin=v(function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},"attrJoin");var ze=Ve,Be=ze;function Ge(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}v(Ge,"StateCore"),Ge.prototype.Token=Be;var Qe=Ge,Ue=me,He=[["normalize",ye],["block",be],["inline",Ee],["linkify",Te],["replacements",De],["smartquotes",qe]];function Ke(){this.ruler=new Ue;for(var e=0;e<He.length;e++)this.ruler.push(He[e][0],He[e][1])}v(Ke,"Core"),Ke.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},Ke.prototype.State=Qe;var We=Ke,Ye=S.isSpace;function Xe(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function Je(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}v(Xe,"getLine"),v(Je,"escapedSplit");var Ze=v(function(e,t,n,r){var i,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_;if(t+2>n)return!1;if(l=t+1,e.sCount[l]<e.blkIndent)return!1;if(e.sCount[l]-e.blkIndent>=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E)return!1;if(a>=e.eMarks[l])return!1;if(124!==(_=e.src.charCodeAt(a++))&&45!==_&&58!==_&&!Ye(_))return!1;if(45===E&&Ye(_))return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!Ye(i))return!1;a++}for(u=(o=Xe(e,t+1)).split("|"),f=[],s=0;s<u.length;s++){if(!(h=u[s].trim())){if(0===s||s===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?f.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?f.push("left"):f.push("")}if(-1===(o=Xe(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=Je(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(d=u.length)||d!==f.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(p=e.push("table_open","table",1)).map=m=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s<u.length;s++)p=e.push("th_open","th",1),f[s]&&(p.attrs=[["style","text-align:"+f[s]]]),(p=e.push("inline","",0)).content=u[s].trim(),p.children=[],p=e.push("th_close","th",-1);for(p=e.push("tr_close","tr",-1),p=e.push("thead_close","thead",-1),l=t+2;l<n&&!(e.sCount[l]<e.blkIndent);l++){for(y=!1,s=0,c=b.length;s<c;s++)if(b[s](e,l,n,!0)){y=!0;break}if(y)break;if(!(o=Xe(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=Je(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),l===t+2&&((p=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(p=e.push("tr_open","tr",1)).map=[l,l+1],s=0;s<d;s++)p=e.push("td_open","td",1),f[s]&&(p.attrs=[["style","text-align:"+f[s]]]),(p=e.push("inline","",0)).content=u[s]?u[s].trim():"",p.children=[],p=e.push("td_close","td",-1);p=e.push("tr_close","tr",-1)}return g&&(p=e.push("tbody_close","tbody",-1),g[1]=l),p=e.push("table_close","table",-1),m[1]=l,e.parentType=v,e.line=l,!0},"table"),et=v(function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0},"code"),tt=v(function(e,t,n,r){var i,o,a,s,c,l,u,d=!1,p=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>f)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(c=p,(o=(p=e.skipChars(p,i))-c)<3)return!1;if(u=e.src.slice(c,p),a=e.src.slice(p,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(p=c=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4||(p=e.skipChars(p,i))-c<o||(p=e.skipSpaces(p))<f)){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,o,!0),l.markup=u,l.map=[t,e.line],!0},"fence"),nt=S.isSpace,rt=v(function(e,t,n,r){var i,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T=e.lineMax,S=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(r)return!0;for(s=p=e.sCount[t]+1,32===e.src.charCodeAt(S)?(S++,s++,p++,i=!1,b=!0):9===e.src.charCodeAt(S)?(b=!0,(e.bsCount[t]+p)%4==3?(S++,s++,p++,i=!1):i=!0):b=!1,f=[e.bMarks[t]],e.bMarks[t]=S;S<O&&(o=e.src.charCodeAt(S),nt(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,S++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),l=S>=O,v=[e.sCount[t]],e.sCount[t]=p-s,y=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],_=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",d=t+1;d<n&&(k=e.sCount[d]<e.blkIndent,!((S=e.bMarks[d]+e.tShift[d])>=(O=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(S++)||k){if(l)break;for(E=!1,a=0,c=_.length;a<c;a++)if(_[a](e,d,n,!0)){E=!0;break}if(E){e.lineMax=d,0!==e.blkIndent&&(f.push(e.bMarks[d]),h.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}f.push(e.bMarks[d]),h.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]=-1}else{for(s=p=e.sCount[d]+1,32===e.src.charCodeAt(S)?(S++,s++,p++,i=!1,b=!0):9===e.src.charCodeAt(S)?(b=!0,(e.bsCount[d]+p)%4==3?(S++,s++,p++,i=!1):i=!0):b=!1,f.push(e.bMarks[d]),e.bMarks[d]=S;S<O&&(o=e.src.charCodeAt(S),nt(o));)9===o?p+=4-(p+e.bsCount[d]+(i?1:0))%4:p++,S++;l=S>=O,h.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(b?1:0),v.push(e.sCount[d]),e.sCount[d]=p-s,y.push(e.tShift[d]),e.tShift[d]=S-e.bMarks[d]}for(m=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=u=[t,0],e.md.block.tokenize(e,t,d),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=T,e.parentType=g,u[1]=e.line,a=0;a<y.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=y[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0},"blockquote"),it=S.isSpace,ot=v(function(e,t,n,r){var i,o,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(c++))&&45!==i&&95!==i)return!1;for(o=1;c<l;){if((a=e.src.charCodeAt(c++))!==i&&!it(a))return!1;a===i&&o++}return!(o<3||(r||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i))),0))},"hr"),at=S.isSpace;function st(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!at(o))?-1:r}function ct(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!at(n))?-1:i}function lt(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}v(st,"skipBulletListMarker"),v(ct,"skipOrderedListMarker"),v(lt,"markTightParagraphs");var ut=v(function(e,t,n,r){var i,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T,S,O,C,x,N,I,A,D=!1,R=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(D=!0),(O=ct(e,t))>=0){if(u=!0,x=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(x,O-1)),D&&1!==g)return!1}else{if(!((O=st(e,t))>=0))return!1;u=!1}if(D&&e.skipSpaces(O)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(O-1),r)return!0;for(h=e.tokens.length,u?(A=e.push("ordered_list_open","ol",1),1!==g&&(A.attrs=[["start",g]])):A=e.push("bullet_list_open","ul",1),A.map=f=[t,0],A.markup=String.fromCharCode(m),y=t,C=!1,I=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";y<n;){for(S=O,v=e.eMarks[y],l=b=e.sCount[y]+O-(e.bMarks[t]+e.tShift[t]);S<v;){if(9===(i=e.src.charCodeAt(S)))b+=4-(b+e.bsCount[y])%4;else{if(32!==i)break;b++}S++}if((c=(o=S)>=v?1:b-l)>4&&(c=1),s=l+c,(A=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),A.map=d=[t,0],u&&(A.info=e.src.slice(x,O-1)),T=e.tight,k=e.tShift[t],w=e.sCount[t],E=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!C||(R=!1),C=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[t]=k,e.sCount[t]=w,e.tight=T,(A=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,d[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(N=!1,a=0,p=I.length;a<p;a++)if(I[a](e,y,n,!0)){N=!0;break}if(N)break;if(u){if((O=ct(e,y))<0)break;x=e.bMarks[y]+e.tShift[y]}else if((O=st(e,y))<0)break;if(m!==e.src.charCodeAt(O-1))break}return(A=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),f[1]=y,e.line=y,e.parentType=_,R&<(e,h),!0},"list"),dt=S.normalizeReference,pt=S.isSpace,ft=v(function(e,t,n,r){var i,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E=0,_=e.bMarks[t]+e.tShift[t],w=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_<w;)if(93===e.src.charCodeAt(_)&&92!==e.src.charCodeAt(_-1)){if(_+1===w)return!1;if(58!==e.src.charCodeAt(_+1))return!1;break}for(s=e.lineMax,y=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";k<s&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3||e.sCount[k]<0)){for(v=!1,l=0,u=y.length;l<u;l++)if(y[l](e,k,s,!0)){v=!0;break}if(v)break}for(w=(g=e.getLines(t,k,e.blkIndent,!1).trim()).length,_=1;_<w;_++){if(91===(i=g.charCodeAt(_)))return!1;if(93===i){p=_;break}(10===i||92===i&&++_<w&&10===g.charCodeAt(_))&&E++}if(p<0||58!==g.charCodeAt(p+1))return!1;for(_=p+2;_<w;_++)if(10===(i=g.charCodeAt(_)))E++;else if(!pt(i))break;if(!(h=e.md.helpers.parseLinkDestination(g,_,w)).ok)return!1;if(c=e.md.normalizeLink(h.str),!e.md.validateLink(c))return!1;for(o=_=h.pos,a=E+=h.lines,m=_;_<w;_++)if(10===(i=g.charCodeAt(_)))E++;else if(!pt(i))break;for(h=e.md.helpers.parseLinkTitle(g,_,w),_<w&&m!==_&&h.ok?(b=h.str,_=h.pos,E+=h.lines):(b="",_=o,E=a);_<w&&(i=g.charCodeAt(_),pt(i));)_++;if(_<w&&10!==g.charCodeAt(_)&&b)for(b="",_=o,E=a;_<w&&(i=g.charCodeAt(_),pt(i));)_++;return!(_<w&&10!==g.charCodeAt(_)||!(d=dt(g.slice(1,p)))||(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:b,href:c}),e.parentType=f,e.line=t+E+1),0))},"reference"),ht={},mt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",gt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vt=new RegExp("^(?:"+mt+"|"+gt+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),yt=new RegExp("^(?:"+mt+"|"+gt+")");ht.HTML_TAG_RE=vt,ht.HTML_OPEN_CLOSE_TAG_RE=yt;var bt=ht.HTML_OPEN_CLOSE_TAG_RE,Et=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(bt.source+"\\s*$"),/^$/,!1]],_t=v(function(e,t,n,r){var i,o,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,l),i=0;i<Et.length&&!Et[i][0].test(s);i++);if(i===Et.length)return!1;if(r)return Et[i][2];if(o=t+1,!Et[i][1].test(s))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(c=e.bMarks[o]+e.tShift[o],l=e.eMarks[o],s=e.src.slice(c,l),Et[i][1].test(s)){0!==s.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},"html_block"),wt=S.isSpace,kt=v(function(e,t,n,r){var i,o,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(c))||c>=l)return!1;for(o=1,i=e.src.charCodeAt(++c);35===i&&c<l&&o<=6;)o++,i=e.src.charCodeAt(++c);return!(o>6||c<l&&!wt(i)||(r||(l=e.skipSpacesBack(l,c),(a=e.skipCharsBack(l,35,c))>c&&wt(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(c,l).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))},"heading"),Tt=v(function(e,t,n){var r,i,o,a,s,c,l,u,d,p,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),(c=e.skipSpaces(c))>=l)){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,f,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(d),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(d),e.parentType=p,!0)},"lheading"),St=v(function(e,t){var n,r,i,o,a,s,c=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";c<u&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,c,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0},"paragraph"),Ot=ze,Ct=S.isSpace;function xt(e,t,n,r){var i,o,a,s,c,l,u,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,a=s=l=u=0,c=(o=this.src).length;s<c;s++){if(i=o.charCodeAt(s),!d){if(Ct(i)){l++,9===i?u+=4-u%4:u++;continue}d=!0}10!==i&&s!==c-1||(10!==i&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),d=!1,l=0,u=0,a=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}v(xt,"StateBlock"),xt.prototype.push=function(e,t,n){var r=new Ot(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},xt.prototype.isEmpty=v(function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},"isEmpty"),xt.prototype.skipEmptyLines=v(function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},"skipEmptyLines"),xt.prototype.skipSpaces=v(function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),Ct(t));e++);return e},"skipSpaces"),xt.prototype.skipSpacesBack=v(function(e,t){if(e<=t)return e;for(;e>t;)if(!Ct(this.src.charCodeAt(--e)))return e+1;return e},"skipSpacesBack"),xt.prototype.skipChars=v(function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},"skipChars"),xt.prototype.skipCharsBack=v(function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},"skipCharsBack"),xt.prototype.getLines=v(function(e,t,n,r){var i,o,a,s,c,l,u,d=e;if(e>=t)return"";for(l=new Array(t-e),i=0;d<t;d++,i++){for(o=0,u=s=this.bMarks[d],c=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];s<c&&o<n;){if(a=this.src.charCodeAt(s),Ct(a))9===a?o+=4-(o+this.bsCount[d])%4:o++;else{if(!(s-u<this.tShift[d]))break;o++}s++}l[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(s,c):this.src.slice(s,c)}return l.join("")},"getLines"),xt.prototype.Token=Ot;var Nt=xt,It=me,At=[["table",Ze,["paragraph","reference"]],["code",et],["fence",tt,["paragraph","reference","blockquote","list"]],["blockquote",rt,["paragraph","reference","blockquote","list"]],["hr",ot,["paragraph","reference","blockquote","list"]],["list",ut,["paragraph","reference","blockquote"]],["reference",ft],["html_block",_t,["paragraph","reference","blockquote"]],["heading",kt,["paragraph","reference","blockquote"]],["lheading",Tt],["paragraph",St]];function Dt(){this.ruler=new It;for(var e=0;e<At.length;e++)this.ruler.push(At[e][0],At[e][1],{alt:(At[e][2]||[]).slice()})}v(Dt,"ParserBlock$1"),Dt.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,c=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=c){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Dt.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},Dt.prototype.State=Nt;var Rt=Dt;function Lt(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}v(Lt,"isTerminatorChar");for(var Pt=v(function(e,t){for(var n=e.pos;n<e.posMax&&!Lt(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)},"text"),jt=S.isSpace,$t=v(function(e,t){var n,r,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<r&&jt(e.src.charCodeAt(i));)i++;return e.pos=i,!0},"newline"),Ft=S.isSpace,Mt=[],qt=0;qt<256;qt++)Mt.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Mt[e.charCodeAt(0)]=1});var Vt=v(function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<i){if((n=e.src.charCodeAt(r))<256&&0!==Mt[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),r++;r<i&&(n=e.src.charCodeAt(r),Ft(n));)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0},"escape"),zt=v(function(e,t){var n,r,i,o,a,s,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(c=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[c]||0)<=n)return t||(e.pending+=i),e.pos+=c,!0;for(a=s=u;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((l=s-a)===c)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=c,!0},"backtick"),Bt={};function Gt(e,t){var n,r,i,o,a,s=[],c=t.length;for(n=0;n<c;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}Bt.tokenize=v(function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},"strikethrough"),v(Gt,"postProcess$1"),Bt.postProcess=v(function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Gt(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Gt(e,n[t].delimiters)},"strikethrough");var Qt={};function Ut(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}Qt.tokenize=v(function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},"emphasis"),v(Ut,"postProcess"),Qt.postProcess=v(function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Ut(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Ut(e,n[t].delimiters)},"emphasis");var Ht=S.normalizeReference,Kt=S.isSpace,Wt=v(function(e,t){var n,r,i,o,a,s,c,l,u="",d="",p=e.pos,f=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=o+1)<f&&40===e.src.charCodeAt(s)){for(m=!1,s++;s<f&&(r=e.src.charCodeAt(s),Kt(r)||10===r);s++);if(s>=f)return!1;if(h=s,(c=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(u=e.md.normalizeLink(c.str),e.md.validateLink(u)?s=c.pos:u="",h=s;s<f&&(r=e.src.charCodeAt(s),Kt(r)||10===r);s++);if(c=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<f&&h!==s&&c.ok)for(d=c.str,s=c.pos;s<f&&(r=e.src.charCodeAt(s),Kt(r)||10===r);s++);}(s>=f||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if(void 0===e.env.references)return!1;if(s<f&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(h,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),!(l=e.env.references[Ht(i)]))return e.pos=p,!1;u=l.href,d=l.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=f,!0},"link"),Yt=S.normalizeReference,Xt=S.isSpace,Jt=v(function(e,t){var n,r,i,o,a,s,c,l,u,d,p,f,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=a+1)<v&&40===e.src.charCodeAt(c)){for(c++;c<v&&(r=e.src.charCodeAt(c),Xt(r)||10===r);c++);if(c>=v)return!1;for(h=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?c=u.pos:m=""),h=c;c<v&&(r=e.src.charCodeAt(c),Xt(r)||10===r);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<v&&h!==c&&u.ok)for(d=u.str,c=u.pos;c<v&&(r=e.src.charCodeAt(c),Xt(r)||10===r);c++);else d="";if(c>=v||41!==e.src.charCodeAt(c))return e.pos=g,!1;c++}else{if(void 0===e.env.references)return!1;if(c<v&&91===e.src.charCodeAt(c)?(h=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?o=e.src.slice(h,c++):c=a+1):c=a+1,o||(o=e.src.slice(s,a)),!(l=e.env.references[Yt(o)]))return e.pos=g,!1;m=l.href,d=l.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,f=[]),(p=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=f,p.content=i,d&&n.push(["title",d])),e.pos=c,e.posMax=v,!0},"image"),Zt=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,en=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,tn=v(function(e,t){var n,r,i,o,a,s,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(a=e.pos,s=e.posMax;;){if(++c>=s)return!1;if(60===(o=e.src.charCodeAt(c)))return!1;if(62===o)break}return n=e.src.slice(a+1,c),en.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!Zt.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))},"autolink"),nn=ht.HTML_TAG_RE;function rn(e){var t=32|e;return t>=97&&t<=122}v(rn,"isLetter");var on=v(function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!rn(n)||!(r=e.src.slice(o).match(nn))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))},"html_inline"),an=O,sn=S.has,cn=S.isValidEntityCode,ln=S.fromCodePoint,un=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dn=/^&([a-z][a-z0-9]{1,31});/i,pn=v(function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1<o)if(35===e.src.charCodeAt(i+1)){if(r=e.src.slice(i).match(un))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=cn(n)?ln(n):ln(65533)),e.pos+=r[0].length,!0}else if((r=e.src.slice(i).match(dn))&&sn(an,r[1]))return t||(e.pending+=an[r[1]]),e.pos+=r[0].length,!0;return t||(e.pending+="&"),e.pos++,!0},"entity");function fn(e,t){var n,r,i,o,a,s,c,l,u={},d=t.length;for(n=0;n<d;n++)if((i=t[n]).length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],(r=n-i.jump-1)<-1&&(r=-1),s=r;r>a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(c=!0)),!c)){l=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+l,i.open=!1,o.end=n,o.jump=l,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}v(fn,"processDelimiters");var hn=v(function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(fn(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&fn(0,n[t].delimiters)},"link_pairs"),mn=v(function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)},"text_collapse"),gn=ze,vn=S.isWhiteSpace,yn=S.isPunctChar,bn=S.isMdAsciiPunct;function En(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}v(En,"StateInline"),En.prototype.pushPending=function(){var e=new gn("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},En.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new gn(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},En.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,c,l,u,d=e,p=!0,f=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;d<h&&this.src.charCodeAt(d)===m;)d++;return i=d-e,r=d<h?this.src.charCodeAt(d):32,c=bn(n)||yn(String.fromCharCode(n)),u=bn(r)||yn(String.fromCharCode(r)),s=vn(n),(l=vn(r))?p=!1:u&&(s||c||(p=!1)),s?f=!1:c&&(l||u||(f=!1)),t?(o=p,a=f):(o=p&&(!f||c),a=f&&(!p||u)),{can_open:o,can_close:a,length:i}},En.prototype.Token=gn;var wn=En,kn=me,Tn=[["text",Pt],["newline",$t],["escape",Vt],["backticks",zt],["strikethrough",Bt.tokenize],["emphasis",Qt.tokenize],["link",Wt],["image",Jt],["autolink",tn],["html_inline",on],["entity",pn]],Sn=[["balance_pairs",hn],["strikethrough",Bt.postProcess],["emphasis",Qt.postProcess],["text_collapse",mn]];function On(){var e;for(this.ruler=new kn,e=0;e<Tn.length;e++)this.ruler.push(Tn[e][0],Tn[e][1]);for(this.ruler2=new kn,e=0;e<Sn.length;e++)this.ruler2.push(Sn[e][0],Sn[e][1])}v(On,"ParserInline$1"),On.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},On.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},On.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},On.prototype.State=wn;var Cn=On,xn=v(function(e){var t={};t.src_Any=Z.source,t.src_Cc=ee.source,t.src_Z=te.source,t.src_P=C.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t},"re");function Nn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function In(e){return Object.prototype.toString.call(e)}function An(e){return"[object String]"===In(e)}function Dn(e){return"[object Object]"===In(e)}function Rn(e){return"[object RegExp]"===In(e)}function Ln(e){return"[object Function]"===In(e)}function Pn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}v(Nn,"assign"),v(In,"_class"),v(An,"isString"),v(Dn,"isObject$2"),v(Rn,"isRegExp"),v(Ln,"isFunction"),v(Pn,"escapeRE");var jn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $n(e){return Object.keys(e||{}).reduce(function(e,t){return e||jn.hasOwnProperty(t)},!1)}v($n,"isOptionsObj");var Fn={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Mn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function qn(e){e.__index__=-1,e.__text_cache__=""}function Vn(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function zn(e){var t=e.re=xn(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),v(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},v(o,"schemaError"),Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,Dn(n))return Rn(n.validate)?r.validate=Vn(n.validate):Ln(n.validate)?r.validate=n.validate:o(t,n),void(Ln(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});An(n)?i.push(t):o(t,n)}}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Pn).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),qn(e)}function Bn(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Gn(e,t){var n=new Bn(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Qn(e,t){if(!(this instanceof Qn))return new Qn(e,t);t||$n(e)&&(t=e,e={}),this.__opts__=Nn({},jn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Nn({},Fn,e),this.__compiled__={},this.__tlds__=Mn,this.__tlds_replaced__=!1,this.re={},zn(this)}v(qn,"resetScanCache"),v(Vn,"createValidator"),v(function(){return function(e,t){t.normalize(e)}},"createNormalizer"),v(zn,"compile"),v(Bn,"Match"),v(Gn,"createMatch"),v(Qn,"LinkifyIt$1"),Qn.prototype.add=v(function(e,t){return this.__schemas__[e]=t,zn(this),this},"add"),Qn.prototype.set=v(function(e){return this.__opts__=Nn(this.__opts__,e),this},"set"),Qn.prototype.test=v(function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},"test"),Qn.prototype.pretest=v(function(e){return this.re.pretest.test(e)},"pretest"),Qn.prototype.testSchemaAt=v(function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},"testSchemaAt"),Qn.prototype.match=v(function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(Gn(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(Gn(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},"match"),Qn.prototype.tlds=v(function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),zn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,zn(this),this)},"tlds"),Qn.prototype.normalize=v(function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},"normalize"),Qn.prototype.onCompile=v(function(){},"onCompile");var Un=Qn;const Hn=2147483647,Kn=36,Wn=/^xn--/,Yn=/[^\0-\x7E]/,Xn=/[\x2E\u3002\uFF0E\uFF61]/g,Jn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Zn=Math.floor,er=String.fromCharCode;function tr(e){throw new RangeError(Jn[e])}function nr(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function rr(e,t){const n=e.split("@");let r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+nr((e=e.replace(Xn,".")).split("."),t).join(".")}function ir(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}v(tr,"error"),v(nr,"map"),v(rr,"mapDomain"),v(ir,"ucs2decode");const or=v(e=>String.fromCodePoint(...e),"ucs2encode"),ar=v(function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Kn},"basicToDigit"),sr=v(function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},"digitToBasic"),cr=v(function(e,t,n){let r=0;for(e=n?Zn(e/700):e>>1,e+=Zn(e/t);e>455;r+=Kn)e=Zn(e/35);return Zn(r+36*e/(e+38))},"adapt"),lr=v(function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&tr("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,i=Kn;;i+=Kn){s>=n&&tr("invalid-input");const a=ar(e.charCodeAt(s++));(a>=Kn||a>Zn((Hn-r)/t))&&tr("overflow"),r+=a*t;const c=i<=o?1:i>=o+26?26:i-o;if(a<c)break;const l=Kn-c;t>Zn(Hn/l)&&tr("overflow"),t*=l}const c=t.length+1;o=cr(r-a,c,0==a),Zn(r/c)>Hn-i&&tr("overflow"),i+=Zn(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},"decode"),ur=v(function(e){const t=[];let n=(e=ir(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(er(n));let a=t.length,s=a;for(a&&t.push("-");s<n;){let n=Hn;for(const t of e)t>=r&&t<n&&(n=t);const c=s+1;n-r>Zn((Hn-i)/c)&&tr("overflow"),i+=(n-r)*c,r=n;for(const n of e)if(n<r&&++i>Hn&&tr("overflow"),n==r){let e=i;for(let n=Kn;;n+=Kn){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=Kn-r;t.push(er(sr(r+i%a,0))),e=Zn(i/a)}t.push(er(sr(e,0))),o=cr(i,c,s==a),i=0,++s}++i,++r}return t.join("")},"encode"),dr=v(function(e){return rr(e,function(e){return Wn.test(e)?lr(e.slice(4).toLowerCase()):e})},"toUnicode"),pr=v(function(e){return rr(e,function(e){return Yn.test(e)?"xn--"+ur(e):e})},"toASCII"),fr={version:"2.1.0",ucs2:{decode:ir,encode:or},decode:lr,encode:ur,toASCII:pr,toUnicode:dr};var hr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ucs2decode:ir,ucs2encode:or,decode:lr,encode:ur,toASCII:pr,toUnicode:dr,default:fr}),mr=S,gr=ne,vr=fe,yr=We,br=Rt,Er=Cn,_r=Un,wr=x,kr=_(hr),Tr={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},Sr=/^(vbscript|javascript|file|data):/,Or=/^data:image\/(gif|png|jpeg|webp);/;function Cr(e){var t=e.trim().toLowerCase();return!Sr.test(t)||!!Or.test(t)}v(Cr,"validateLink");var xr=["http:","https:","mailto:"];function Nr(e){var t=wr.parse(e,!0);if(t.hostname&&(!t.protocol||xr.indexOf(t.protocol)>=0))try{t.hostname=kr.toASCII(t.hostname)}catch(e){}return wr.encode(wr.format(t))}function Ir(e){var t=wr.parse(e,!0);if(t.hostname&&(!t.protocol||xr.indexOf(t.protocol)>=0))try{t.hostname=kr.toUnicode(t.hostname)}catch(e){}return wr.decode(wr.format(t),wr.decode.defaultChars+"%")}function Ar(e,t){if(!(this instanceof Ar))return new Ar(e,t);t||mr.isString(e)||(t=e||{},e="default"),this.inline=new Er,this.block=new br,this.core=new yr,this.renderer=new vr,this.linkify=new _r,this.validateLink=Cr,this.normalizeLink=Nr,this.normalizeLinkText=Ir,this.utils=mr,this.helpers=mr.assign({},gr),this.options={},this.configure(e),t&&this.set(t)}v(Nr,"normalizeLink"),v(Ir,"normalizeLinkText"),v(Ar,"MarkdownIt"),Ar.prototype.set=function(e){return mr.assign(this.options,e),this},Ar.prototype.configure=function(e){var t,n=this;if(mr.isString(e)&&!(e=Tr[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},Ar.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Ar.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Ar.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ar.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ar.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ar.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ar.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Dr=new Ar;var Rr=Object.defineProperty,Lr=v((e,t)=>Rr(e,"name",{value:t,configurable:!0}),"__name$j");const Pr="graphiql",jr="sublime";let $r=!1;"object"==typeof window&&($r=0===window.navigator.platform.toLowerCase().indexOf("mac"));const Fr={[$r?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Mr(e,t){const r=await n.e(338).then(n.bind(n,3338)).then(function(e){return e.c}).then(e=>"function"==typeof e?e:e.default);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Promise.all([n.e(338),n.e(669)]).then(n.bind(n,9669)).then(function(e){return e.s}),Promise.all([n.e(338),n.e(382)]).then(n.bind(n,2382)).then(function(e){return e.m}),Promise.all([n.e(338),n.e(61)]).then(n.bind(n,5061)).then(function(e){return e.c}),Promise.all([n.e(338),n.e(983)]).then(n.bind(n,5983)).then(function(e){return e.b}),Promise.all([n.e(338),n.e(148)]).then(n.bind(n,3148)).then(function(e){return e.f}),Promise.all([n.e(338),n.e(482)]).then(n.bind(n,4482)).then(function(e){return e.l}),Promise.all([n.e(338),n.e(910)]).then(n.bind(n,5910)).then(function(e){return e.s}),Promise.all([n.e(338),n.e(113)]).then(n.bind(n,6113)).then(function(e){return e.j}),Promise.all([n.e(338),n.e(924)]).then(n.bind(n,924)).then(function(e){return e.d}),Promise.all([n.e(338),n.e(391)]).then(n.bind(n,7391)).then(function(e){return e.s}),...e]),r}v(Mr,"importCodeMirror"),Lr(Mr,"importCodeMirror");var qr=Object.defineProperty,Vr=v((e,t)=>qr(e,"name",{value:t,configurable:!0}),"__name$i");function zr(e,t,n,r){function i(e){if(!(n&&r&&e.currentTarget instanceof HTMLElement&&"typeName"===e.currentTarget.className))return;const t=e.currentTarget.innerHTML,i=n.getType(t);i&&(r.show(),r.push({name:i.name,def:i}))}Mr([],{useCommonAddons:!1}).then(e=>{let n,r;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;let o;n=document.createElement("div"),n.className="CodeMirror-hint-information",n.addEventListener("click",i),e.appendChild(n),r=document.createElement("div"),r.className="CodeMirror-hint-deprecation",e.appendChild(r),e.addEventListener("DOMNodeRemoved",o=Vr(t=>{t.target===e&&(e.removeEventListener("DOMNodeRemoved",o),n&&n.removeEventListener("click",i),n=null,r=null,o=null)},"onRemoveFn"))}const o=e.description?Dr.render(e.description):"Self descriptive.",a=e.type?'<span class="infoType">'+Br(e.type)+"</span>":"";if(n.innerHTML='<div class="content">'+("<p>"===o.slice(0,3)?"<p>"+a+o.slice(3):a+o)+"</div>",e&&r&&e.deprecationReason){const t=e.deprecationReason?Dr.render(e.deprecationReason):"";r.innerHTML='<span class="deprecation-label">Deprecated</span>'+t,r.style.display="block"}else r&&(r.style.display="none")})}),v(i,"onClickHintInformation"),Vr(i,"onClickHintInformation")}function Br(e){return(0,r.isNonNullType)(e)?`${Br(e.ofType)}!`:(0,r.isListType)(e)?`[${Br(e.ofType)}]`:`<a class="typeName">${k(e.name)}</a>`}v(zr,"onHasCompletion"),Vr(zr,"onHasCompletion"),v(Br,"renderType"),Vr(Br,"renderType");var Gr={exports:{}},Qr={};function Ur(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,v(function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)},"toObject"),v(Ur,"shouldUseNative"),Ur()&&Object.assign;var Hr=o(),Kr=60103;if(Qr.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var Wr=Symbol.for;Kr=Wr("react.element"),Qr.Fragment=Wr("react.fragment")}var Yr=Hr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xr=Object.prototype.hasOwnProperty,Jr={key:!0,ref:!0,__self:!0,__source:!0};function Zr(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)Xr.call(t,r)&&!Jr.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:Kr,type:e,key:o,ref:a,props:i,_owner:Yr.current}}v(Zr,"q"),Qr.jsx=Zr,Qr.jsxs=Zr,Gr.exports=Qr;const ei=Gr.exports.jsx,ti=Gr.exports.jsxs;var ni=Object.defineProperty,ri=v((e,t)=>ni(e,"name",{value:t,configurable:!0}),"__name$h");function ii(e){var t;const[n,r]=(0,i.useState)({width:null,height:null}),[o,a]=(0,i.useState)(null),s=(0,i.useRef)(null),c=null==(t=oi(e.token))?void 0:t.href;(0,i.useEffect)(()=>{if(s.current)return c?void fetch(c,{method:"HEAD"}).then(e=>{a(e.headers.get("Content-Type"))}).catch(()=>{a(null)}):(r({width:null,height:null}),void a(null))},[c]);const l=null!==n.width&&null!==n.height?ti("div",{children:[n.width,"x",n.height,null!==o?" "+o:null]}):null;return ti("div",{children:[ei("img",{onLoad:()=>{var e,t,n,i;r({width:null!=(t=null==(e=s.current)?void 0:e.naturalWidth)?t:null,height:null!=(i=null==(n=s.current)?void 0:n.naturalHeight)?i:null})},ref:s,src:c}),l]})}function oi(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}function ai(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function si(e){return"object"==typeof e&&"function"==typeof e.then}function ci(e){return new Promise((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})}function li(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function ui(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function di(e){return new Promise((t,n)=>{var r;const i=null===(r=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(e);("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then(e=>{t(e.value),null==i||i()}).catch(e=>{n(e)})})}function pi(e){return Promise.resolve(e).then(e=>ui(e)?di(e):li(e)?ci(e):e)}v(ii,"ImagePreview"),ri(ii,"ImagePreview"),ii.shouldRender=ri(v(function(e){const t=oi(e);return!!t&&ai(t)},"shouldRender"),"shouldRender"),v(oi,"tokenToURL"),ri(oi,"tokenToURL"),v(ai,"isImageURL"),ri(ai,"isImageURL"),v(si,"isPromise"),v(ci,"observableToPromise"),v(li,"isObservable"),v(ui,"isAsyncIterable"),v(di,"asyncIterableToPromise"),v(pi,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var fi=globalThis&&globalThis.__await||function(e){return this instanceof fi?(this.v=e,this):new fi(e)};function hi(e){return JSON.stringify(e,null,2)}function mi(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function gi(e){return e instanceof Error?mi(e):e}function vi(e){return Array.isArray(e)?hi({errors:e.map(e=>gi(e))}):hi({errors:[gi(e)]})}function yi(e){return hi(e)}function bi(e,t,n){const i=[];if(!e||!t)return{insertions:i,result:t};let o;try{o=(0,r.parse)(t)}catch(e){return{insertions:i,result:t}}const a=n||Ei,s=new r.TypeInfo(e);return(0,r.visit)(o,{leave(e){s.leave(e)},enter(e){if(s.enter(e),"Field"===e.kind&&!e.selectionSet){const n=_i(Ti(s.getType()),a);if(n&&e.loc){const o=ki(t,e.loc.start);i.push({index:e.loc.end,string:" "+(0,r.print)(n).replace(/\n/g,"\n"+o)})}}}}),{insertions:i,result:wi(t,i)}}function Ei(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach(e=>{(0,r.isLeafType)(t[e].type)&&n.push(e)}),n}function _i(e,t){const n=(0,r.getNamedType)(e);if(!e||(0,r.isLeafType)(e))return;const i=t(n);return Array.isArray(i)&&0!==i.length&&"getFields"in n?{kind:r.Kind.SELECTION_SET,selections:i.map(e=>{const i=n.getFields()[e],o=i?i.type:null;return{kind:r.Kind.FIELD,name:{kind:r.Kind.NAME,value:e},selectionSet:_i(o,t)}})}:void 0}function wi(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach(({index:t,string:i})=>{n+=e.slice(r,t)+i,r=t}),n+=e.slice(r),n}function ki(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}function Ti(e){if(e)return e}function Si(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==a?void 0:a.selectionSet)&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}function Oi(e,t,n){var i;const o=n?(0,r.getNamedType)(n).name:null,a=[],s=[];for(let c of t){if("FragmentSpread"===c.kind){const t=c.name.value;if(!c.directives||0===c.directives.length){if(s.indexOf(t)>=0)continue;s.push(t)}const n=e[c.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:i}=n;c={kind:r.Kind.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:i}}}if(c.kind===r.Kind.INLINE_FRAGMENT&&(!c.directives||0===(null===(i=c.directives)||void 0===i?void 0:i.length))){const t=c.typeCondition?c.typeCondition.name.value:null;if(!t||t===o){a.push(...Oi(e,c.selectionSet.selections,n));continue}}a.push(c)}return a}function Ci(e,t){const n=t?new r.TypeInfo(t):null,i=Object.create(null);for(const t of e.definitions)t.kind===r.Kind.FRAGMENT_DEFINITION&&(i[t.name.value]=t);const o={SelectionSet(e){const t=n?n.getParentType():null;let{selections:r}=e;return r=Oi(i,r,t),r=Si(r,e=>e.alias?e.alias.value:e.name.value),Object.assign(Object.assign({},e),{selections:r})},FragmentDefinition:()=>null};return(0,r.visit)(e,n?(0,r.visitWithTypeInfo)(n,o):o)}function xi(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value});if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}function Ni(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}globalThis&&globalThis.__asyncValues,globalThis&&globalThis.__asyncGenerator,v(hi,"stringify"),v(mi,"formatSingleError"),v(gi,"handleSingleError"),v(vi,"formatError"),v(yi,"formatResult"),v(bi,"fillLeafs"),v(Ei,"defaultGetDefaultFieldNames"),v(_i,"buildSelectionSet"),v(wi,"withInsertions"),v(ki,"getIndentation"),v(Ti,"isFieldType"),v(Si,"uniqueBy"),v(Oi,"inlineRelevantFragmentSpreads"),v(Ci,"mergeAst"),v(xi,"getSelectedOperationName"),v(Ni,"isQuotaError");class Ii{constructor(e){this.storage=e||(null===e?null:"undefined"!=typeof window?window.localStorage:null)}get(e){if(!this.storage)return null;const t=`${Ai}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i=`${Ai}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(e){r=e instanceof Error?e:new Error(`${e}`),n=Ni(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}}v(Ii,"StorageAPI");const Ai="graphiql";class Di{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}v(Di,"QueryStore");class Ri{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new Di("queries",this.storage,this.maxHistoryLength),this.favorite=new Di("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,i){if(!e)return!1;try{(0,r.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!i)return!0;if(JSON.stringify(e)===JSON.stringify(i.query)){if(JSON.stringify(t)===JSON.stringify(i.variables)){if(JSON.stringify(n)===JSON.stringify(i.headers))return!1;if(n&&!i.headers)return!1}if(t&&!i.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}v(Ri,"HistoryStore");var Li=Object.defineProperty,Pi=v((e,t)=>Li(e,"name",{value:t,configurable:!0}),"__name$g");function ji(e){const t=(0,i.createContext)(null);return t.displayName=e,t}function $i(e){function t(n){var r;const o=(0,i.useContext)(e);if(null===o&&(null==n?void 0:n.nonNull))throw new Error(`Tried to use \`${(null==(r=n.caller)?void 0:r.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return o}return v(t,"useGivenContext"),Pi(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}v(ji,"createNullableContext"),Pi(ji,"createNullableContext"),v($i,"createContextHook"),Pi($i,"createContextHook");var Fi=Object.defineProperty,Mi=v((e,t)=>Fi(e,"name",{value:t,configurable:!0}),"__name$f");const qi=ji("StorageContext");function Vi(e){const t=(0,i.useRef)(!0),[n,r]=(0,i.useState)(new Ii(e.storage));return(0,i.useEffect)(()=>{t.current?t.current=!1:r(new Ii(e.storage))},[e.storage]),ei(qi.Provider,{value:n,children:e.children})}v(Vi,"StorageContextProvider"),Mi(Vi,"StorageContextProvider");const zi=$i(qi);var Bi,Gi,Qi,Ui,Hi,Ki,Wi,Yi,Xi,Ji,Zi,eo,to,no,ro,io,oo,ao,so,co,lo,uo,po,fo,ho,mo,go,vo,yo,bo,Eo;!function(e){function t(e){return"string"==typeof e}v(t,"is"),e.is=t}(Bi||(Bi={})),function(e){function t(e){return"string"==typeof e}v(t,"is"),e.is=t}(Gi||(Gi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,v(t,"is"),e.is=t}(Qi||(Qi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,v(t,"is"),e.is=t}(Ui||(Ui={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Ui.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ui.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return ka.objectLiteral(t)&&ka.uinteger(t.line)&&ka.uinteger(t.character)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Hi||(Hi={})),function(e){function t(e,t,n,r){if(ka.uinteger(e)&&ka.uinteger(t)&&ka.uinteger(n)&&ka.uinteger(r))return{start:Hi.create(e,t),end:Hi.create(n,r)};if(Hi.is(e)&&Hi.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return ka.objectLiteral(t)&&Hi.is(t.start)&&Hi.is(t.end)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Ki||(Ki={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return ka.defined(t)&&Ki.is(t.range)&&(ka.string(t.uri)||ka.undefined(t.uri))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Wi||(Wi={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return ka.defined(t)&&Ki.is(t.targetRange)&&ka.string(t.targetUri)&&Ki.is(t.targetSelectionRange)&&(Ki.is(t.originSelectionRange)||ka.undefined(t.originSelectionRange))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Yi||(Yi={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return ka.objectLiteral(t)&&ka.numberRange(t.red,0,1)&&ka.numberRange(t.green,0,1)&&ka.numberRange(t.blue,0,1)&&ka.numberRange(t.alpha,0,1)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Xi||(Xi={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return ka.objectLiteral(t)&&Ki.is(t.range)&&Xi.is(t.color)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Ji||(Ji={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.label)&&(ka.undefined(t.textEdit)||po.is(t))&&(ka.undefined(t.additionalTextEdits)||ka.typedArray(t.additionalTextEdits,po.is))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Zi||(Zi={})),(to=eo||(eo={})).Comment="comment",to.Imports="imports",to.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return ka.defined(n)&&(a.startCharacter=n),ka.defined(r)&&(a.endCharacter=r),ka.defined(i)&&(a.kind=i),ka.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return ka.objectLiteral(t)&&ka.uinteger(t.startLine)&&ka.uinteger(t.startLine)&&(ka.undefined(t.startCharacter)||ka.uinteger(t.startCharacter))&&(ka.undefined(t.endCharacter)||ka.uinteger(t.endCharacter))&&(ka.undefined(t.kind)||ka.string(t.kind))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(no||(no={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return ka.defined(t)&&Wi.is(t.location)&&ka.string(t.message)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ro||(ro={})),(oo=io||(io={})).Error=1,oo.Warning=2,oo.Information=3,oo.Hint=4,(so=ao||(ao={})).Unnecessary=1,so.Deprecated=2,function(e){function t(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.href)}v(t,"is"),e.is=t}(co||(co={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return ka.defined(n)&&(a.severity=n),ka.defined(r)&&(a.code=r),ka.defined(i)&&(a.source=i),ka.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return ka.defined(n)&&Ki.is(n.range)&&ka.string(n.message)&&(ka.number(n.severity)||ka.undefined(n.severity))&&(ka.integer(n.code)||ka.string(n.code)||ka.undefined(n.code))&&(ka.undefined(n.codeDescription)||ka.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ka.string(n.source)||ka.undefined(n.source))&&(ka.undefined(n.relatedInformation)||ka.typedArray(n.relatedInformation,ro.is))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(lo||(lo={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return ka.defined(n)&&n.length>0&&(i.arguments=n),i}function n(e){var t=e;return ka.defined(t)&&ka.string(t.title)&&ka.string(t.command)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(uo||(uo={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.newText)&&Ki.is(t.range)}v(t,"replace"),e.replace=t,v(n,"insert"),e.insert=n,v(r,"del"),e.del=r,v(i,"is"),e.is=i}(po||(po={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return ka.objectLiteral(t)&&ka.string(t.label)&&(ka.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ka.string(t.description)||void 0===t.description)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(fo||(fo={})),function(e){function t(e){var t=e;return ka.string(t)}v(t,"is"),e.is=t}(ho||(ho={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){var t=e;return po.is(t)&&(fo.is(t.annotationId)||ho.is(t.annotationId))}v(t,"replace"),e.replace=t,v(n,"insert"),e.insert=n,v(r,"del"),e.del=r,v(i,"is"),e.is=i}(mo||(mo={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return ka.defined(t)&&ko.is(t.textDocument)&&Array.isArray(t.edits)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(go||(go={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&ka.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ka.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ka.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ho.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(vo||(vo={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&ka.string(t.oldUri)&&ka.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ka.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ka.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ho.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(yo||(yo={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&ka.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ka.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ka.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||ho.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(bo||(bo={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(function(e){return ka.string(e.kind)?vo.is(e)||yo.is(e)||bo.is(e):go.is(e)}))}v(t,"is"),e.is=t}(Eo||(Eo={}));var _o,wo,ko,To,So,Oo,Co,xo,No,Io,Ao,Do,Ro,Lo,Po,jo,$o,Fo,Mo,qo,Vo,zo,Bo,Go,Qo,Uo,Ho,Ko,Wo,Yo,Xo,Jo,Zo,ea,ta,na,ra,ia,oa,aa,sa,ca,la,ua,da,pa,fa,ha,ma,ga,va,ya,ba,Ea,_a=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return v(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=po.insert(e,t):ho.is(n)?(i=n,r=mo.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=mo.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=po.replace(e,t):ho.is(n)?(i=n,r=mo.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=mo.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=po.del(e):ho.is(t)?(r=t,n=mo.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=mo.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),wa=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return v(e,"ChangeAnnotations"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(ho.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new wa(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(go.is(e)){var n=new _a(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach(function(n){var r=new _a(e.changes[n]);t._textEditChanges[n]=r})):this._workspaceEdit={}}v(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ko.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new _a(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new _a(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new wa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(fo.is(t)||ho.is(t)?r=t:n=t,void 0===r?i=vo.create(e,n):(o=ho.is(r)?r:this._changeAnnotations.manage(r),i=vo.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(fo.is(n)||ho.is(n)?i=n:r=n,void 0===i?o=yo.create(e,t,r):(a=ho.is(i)?i:this._changeAnnotations.manage(i),o=yo.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(fo.is(t)||ho.is(t)?r=t:n=t,void 0===r?i=bo.create(e,n):(o=ho.is(r)?r:this._changeAnnotations.manage(r),i=bo.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(_o||(_o={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)&&ka.integer(t.version)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(wo||(wo={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)&&(null===t.version||ka.integer(t.version))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ko||(ko={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return ka.defined(t)&&ka.string(t.uri)&&ka.string(t.languageId)&&ka.integer(t.version)&&ka.string(t.text)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(To||(To={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",v(t,"is"),e.is=t}(So||(So={})),function(e){function t(e){var t=e;return ka.objectLiteral(e)&&So.is(t.kind)&&ka.string(t.value)}v(t,"is"),e.is=t}(Oo||(Oo={})),(xo=Co||(Co={})).Text=1,xo.Method=2,xo.Function=3,xo.Constructor=4,xo.Field=5,xo.Variable=6,xo.Class=7,xo.Interface=8,xo.Module=9,xo.Property=10,xo.Unit=11,xo.Value=12,xo.Enum=13,xo.Keyword=14,xo.Snippet=15,xo.Color=16,xo.File=17,xo.Reference=18,xo.Folder=19,xo.EnumMember=20,xo.Constant=21,xo.Struct=22,xo.Event=23,xo.Operator=24,xo.TypeParameter=25,(Io=No||(No={})).PlainText=1,Io.Snippet=2,(Ao||(Ao={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&ka.string(t.newText)&&Ki.is(t.insert)&&Ki.is(t.replace)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Do||(Do={})),(Lo=Ro||(Ro={})).asIs=1,Lo.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(ka.string(t.detail)||void 0===t.detail)&&(ka.string(t.description)||void 0===t.description)}v(t,"is"),e.is=t}(Po||(Po={})),function(e){function t(e){return{label:e}}v(t,"create"),e.create=t}(jo||(jo={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}v(t,"create"),e.create=t}($o||($o={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return ka.string(t)||ka.objectLiteral(t)&&ka.string(t.language)&&ka.string(t.value)}v(t,"fromPlainText"),e.fromPlainText=t,v(n,"is"),e.is=n}(Fo||(Fo={})),function(e){function t(e){var t=e;return!!t&&ka.objectLiteral(t)&&(Oo.is(t.contents)||Fo.is(t.contents)||ka.typedArray(t.contents,Fo.is))&&(void 0===e.range||Ki.is(e.range))}v(t,"is"),e.is=t}(Mo||(Mo={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}v(t,"create"),e.create=t}(qo||(qo={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return ka.defined(t)&&(i.documentation=t),ka.defined(n)?i.parameters=n:i.parameters=[],i}v(t,"create"),e.create=t}(Vo||(Vo={})),(Bo=zo||(zo={})).Text=1,Bo.Read=2,Bo.Write=3,function(e){function t(e,t){var n={range:e};return ka.number(t)&&(n.kind=t),n}v(t,"create"),e.create=t}(Go||(Go={})),(Uo=Qo||(Qo={})).File=1,Uo.Module=2,Uo.Namespace=3,Uo.Package=4,Uo.Class=5,Uo.Method=6,Uo.Property=7,Uo.Field=8,Uo.Constructor=9,Uo.Enum=10,Uo.Interface=11,Uo.Function=12,Uo.Variable=13,Uo.Constant=14,Uo.String=15,Uo.Number=16,Uo.Boolean=17,Uo.Array=18,Uo.Object=19,Uo.Key=20,Uo.Null=21,Uo.EnumMember=22,Uo.Struct=23,Uo.Event=24,Uo.Operator=25,Uo.TypeParameter=26,(Ho||(Ho={})).Deprecated=1,function(e){function t(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}v(t,"create"),e.create=t}(Ko||(Ko={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}v(t,"create"),e.create=t}(Wo||(Wo={})),function(e){function t(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a}function n(e){var t=e;return t&&ka.string(t.name)&&ka.number(t.kind)&&Ki.is(t.range)&&Ki.is(t.selectionRange)&&(void 0===t.detail||ka.string(t.detail))&&(void 0===t.deprecated||ka.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Yo||(Yo={})),(Jo=Xo||(Xo={})).Empty="",Jo.QuickFix="quickfix",Jo.Refactor="refactor",Jo.RefactorExtract="refactor.extract",Jo.RefactorInline="refactor.inline",Jo.RefactorRewrite="refactor.rewrite",Jo.Source="source",Jo.SourceOrganizeImports="source.organizeImports",Jo.SourceFixAll="source.fixAll",(ea=Zo||(Zo={})).Invoked=1,ea.Automatic=2,function(e){function t(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r}function n(e){var t=e;return ka.defined(t)&&ka.typedArray(t.diagnostics,lo.is)&&(void 0===t.only||ka.typedArray(t.only,ka.string))&&(void 0===t.triggerKind||t.triggerKind===Zo.Invoked||t.triggerKind===Zo.Automatic)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ta||(ta={})),function(e){function t(e,t,n){var r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):uo.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r}function n(e){var t=e;return t&&ka.string(t.title)&&(void 0===t.diagnostics||ka.typedArray(t.diagnostics,lo.is))&&(void 0===t.kind||ka.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||uo.is(t.command))&&(void 0===t.isPreferred||ka.boolean(t.isPreferred))&&(void 0===t.edit||Eo.is(t.edit))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(na||(na={})),function(e){function t(e,t){var n={range:e};return ka.defined(t)&&(n.data=t),n}function n(e){var t=e;return ka.defined(t)&&Ki.is(t.range)&&(ka.undefined(t.command)||uo.is(t.command))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ra||(ra={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){var t=e;return ka.defined(t)&&ka.uinteger(t.tabSize)&&ka.boolean(t.insertSpaces)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ia||(ia={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){var t=e;return ka.defined(t)&&Ki.is(t.range)&&(ka.undefined(t.target)||ka.string(t.target))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(oa||(oa={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){var n=t;return ka.objectLiteral(n)&&Ki.is(n.range)&&(void 0===n.parent||e.is(n.parent))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(aa||(aa={})),(ca=sa||(sa={})).namespace="namespace",ca.type="type",ca.class="class",ca.enum="enum",ca.interface="interface",ca.struct="struct",ca.typeParameter="typeParameter",ca.parameter="parameter",ca.variable="variable",ca.property="property",ca.enumMember="enumMember",ca.event="event",ca.function="function",ca.method="method",ca.macro="macro",ca.keyword="keyword",ca.modifier="modifier",ca.comment="comment",ca.string="string",ca.number="number",ca.regexp="regexp",ca.operator="operator",ca.decorator="decorator",(ua=la||(la={})).declaration="declaration",ua.definition="definition",ua.readonly="readonly",ua.static="static",ua.deprecated="deprecated",ua.abstract="abstract",ua.async="async",ua.modification="modification",ua.documentation="documentation",ua.defaultLibrary="defaultLibrary",function(e){function t(e){var t=e;return ka.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}v(t,"is"),e.is=t}(da||(da={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){var t=e;return null!=t&&Ki.is(t.range)&&ka.string(t.text)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(pa||(pa={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){var t=e;return null!=t&&Ki.is(t.range)&&ka.boolean(t.caseSensitiveLookup)&&(ka.string(t.variableName)||void 0===t.variableName)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(fa||(fa={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){var t=e;return null!=t&&Ki.is(t.range)&&(ka.string(t.expression)||void 0===t.expression)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ha||(ha={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){var t=e;return ka.defined(t)&&Ki.is(e.stoppedLocation)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ma||(ma={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,v(t,"is"),e.is=t}(ga||(ga={})),function(e){function t(e){return{value:e}}function n(e){var t=e;return ka.objectLiteral(t)&&(void 0===t.tooltip||ka.string(t.tooltip)||Oo.is(t.tooltip))&&(void 0===t.location||Wi.is(t.location))&&(void 0===t.command||uo.is(t.command))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(va||(va={})),function(e){function t(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){var t=e;return ka.objectLiteral(t)&&Hi.is(t.position)&&(ka.string(t.label)||ka.typedArray(t.label,va.is))&&(void 0===t.kind||ga.is(t.kind))&&void 0===t.textEdits||ka.typedArray(t.textEdits,po.is)&&(void 0===t.tooltip||ka.string(t.tooltip)||Oo.is(t.tooltip))&&(void 0===t.paddingLeft||ka.boolean(t.paddingLeft))&&(void 0===t.paddingRight||ka.boolean(t.paddingRight))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ya||(ya={})),function(e){function t(e){var t=e;return ka.objectLiteral(t)&&Gi.is(t.uri)&&ka.string(t.name)}v(t,"is"),e.is=t}(ba||(ba={})),function(e){function t(e,t,n,r){return new Sa(e,t,n,r)}function n(e){var t=e;return!!(ka.defined(t)&&ka.string(t.uri)&&(ka.undefined(t.languageId)||ka.string(t.languageId))&&ka.uinteger(t.lineCount)&&ka.func(t.getText)&&ka.func(t.positionAt)&&ka.func(t.offsetAt))}function r(e,t){for(var n=e.getText(),r=i(t,function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),o=n.length,a=r.length-1;a>=0;a--){var s=r[a],c=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(!(l<=o))throw new Error("Overlapping edit");n=n.substring(0,c)+s.newText+n.substring(l,n.length),o=c}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,s=0,c=0;a<r.length&&s<o.length;){var l=t(r[a],o[s]);e[c++]=l<=0?r[a++]:o[s++]}for(;a<r.length;)e[c++]=r[a++];for(;s<o.length;)e[c++]=o[s++];return e}v(t,"create"),e.create=t,v(n,"is"),e.is=n,v(r,"applyEdits"),e.applyEdits=r,v(i,"mergeSort")}(Ea||(Ea={}));var ka,Ta,Sa=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return v(e,"FullTextDocument"),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Hi.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return Hi.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();function Oa(e){return{ofRule:e}}function Ca(e,t){return{ofRule:e,isList:!0,separator:t}}function xa(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function Na(e,t){return{style:t,match:t=>t.kind===e}}function Ia(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}!function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function c(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function l(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function u(e){return"[object Function]"===t.call(e)}function d(e){return null!==e&&"object"==typeof e}function p(e,t){return Array.isArray(e)&&e.every(t)}v(n,"defined"),e.defined=n,v(r,"undefined$1"),e.undefined=r,v(i,"boolean"),e.boolean=i,v(o,"string"),e.string=o,v(a,"number"),e.number=a,v(s,"numberRange"),e.numberRange=s,v(c,"integer"),e.integer=c,v(l,"uinteger"),e.uinteger=l,v(u,"func"),e.func=u,v(d,"objectLiteral"),e.objectLiteral=d,v(p,"typedArray"),e.typedArray=p}(ka||(ka={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Ta||(Ta={})),v(Oa,"opt"),v(Ca,"list"),v(xa,"butNot"),v(Na,"t"),v(Ia,"p");const Aa=v(e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,"isIgnored"),Da={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},Ra={Document:[Ca("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return r.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[La("query"),Oa(Pa("def")),Oa("VariableDefinitions"),Ca("Directive"),"SelectionSet"],Mutation:[La("mutation"),Oa(Pa("def")),Oa("VariableDefinitions"),Ca("Directive"),"SelectionSet"],Subscription:[La("subscription"),Oa(Pa("def")),Oa("VariableDefinitions"),Ca("Directive"),"SelectionSet"],VariableDefinitions:[Ia("("),Ca("VariableDefinition"),Ia(")")],VariableDefinition:["Variable",Ia(":"),"Type",Oa("DefaultValue")],Variable:[Ia("$","variable"),Pa("variable")],DefaultValue:[Ia("="),"Value"],SelectionSet:[Ia("{"),Ca("Selection"),Ia("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Pa("property"),Ia(":"),Pa("qualifier"),Oa("Arguments"),Ca("Directive"),Oa("SelectionSet")],Field:[Pa("property"),Oa("Arguments"),Ca("Directive"),Oa("SelectionSet")],Arguments:[Ia("("),Ca("Argument"),Ia(")")],Argument:[Pa("attribute"),Ia(":"),"Value"],FragmentSpread:[Ia("..."),Pa("def"),Ca("Directive")],InlineFragment:[Ia("..."),Oa("TypeCondition"),Ca("Directive"),"SelectionSet"],FragmentDefinition:[La("fragment"),Oa(xa(Pa("def"),[La("on")])),"TypeCondition",Ca("Directive"),"SelectionSet"],TypeCondition:[La("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Na("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Na("Name","builtin")],NullValue:[Na("Name","keyword")],EnumValue:[Pa("string-2")],ListValue:[Ia("["),Ca("Value"),Ia("]")],ObjectValue:[Ia("{"),Ca("ObjectField"),Ia("}")],ObjectField:[Pa("attribute"),Ia(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Ia("["),"Type",Ia("]"),Oa(Ia("!"))],NonNullType:["NamedType",Oa(Ia("!"))],NamedType:[ja("atom")],Directive:[Ia("@","meta"),Pa("meta"),Oa("Arguments")],DirectiveDef:[La("directive"),Ia("@","meta"),Pa("meta"),Oa("ArgumentsDef"),La("on"),Ca("DirectiveLocation",Ia("|"))],InterfaceDef:[La("interface"),Pa("atom"),Oa("Implements"),Ca("Directive"),Ia("{"),Ca("FieldDef"),Ia("}")],Implements:[La("implements"),Ca("NamedType",Ia("&"))],DirectiveLocation:[Pa("string-2")],SchemaDef:[La("schema"),Ca("Directive"),Ia("{"),Ca("OperationTypeDef"),Ia("}")],OperationTypeDef:[Pa("keyword"),Ia(":"),Pa("atom")],ScalarDef:[La("scalar"),Pa("atom"),Ca("Directive")],ObjectTypeDef:[La("type"),Pa("atom"),Oa("Implements"),Ca("Directive"),Ia("{"),Ca("FieldDef"),Ia("}")],FieldDef:[Pa("property"),Oa("ArgumentsDef"),Ia(":"),"Type",Ca("Directive")],ArgumentsDef:[Ia("("),Ca("InputValueDef"),Ia(")")],InputValueDef:[Pa("attribute"),Ia(":"),"Type",Oa("DefaultValue"),Ca("Directive")],UnionDef:[La("union"),Pa("atom"),Ca("Directive"),Ia("="),Ca("UnionMember",Ia("|"))],UnionMember:["NamedType"],EnumDef:[La("enum"),Pa("atom"),Ca("Directive"),Ia("{"),Ca("EnumValueDef"),Ia("}")],EnumValueDef:[Pa("string-2"),Ca("Directive")],InputDef:[La("input"),Pa("atom"),Ca("Directive"),Ia("{"),Ca("InputValueDef"),Ia("}")],ExtendDef:[La("extend"),"ObjectTypeDef"]};function La(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Pa(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function ja(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}v(La,"word"),v(Pa,"name"),v(ja,"type");const $a=Object.assign(Object.assign({},r.Kind),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"});var Fa={exports:{}};function Ma(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}v(Ma,"nullthrows"),Fa.exports=Ma,Fa.exports.default=Ma,Object.defineProperty(Fa.exports,"__esModule",{value:!0});var qa=E(Fa.exports);const Va=v((e,t)=>{if(!t)return[];const n=new Map,i=new Set;(0,r.visit)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){i.has(e.name.value)||i.add(e.name.value)}});const o=new Set;i.forEach(e=>{!n.has(e)&&t.has(e)&&o.add(qa(t.get(e)))});const a=[];return o.forEach(e=>{(0,r.visit)(e,{FragmentSpread(e){!i.has(e.name.value)&&t.get(e.name.value)&&(o.add(qa(t.get(e.name.value))),i.add(e.name.value))}}),n.has(e.name.value)||a.push(e)}),a},"getFragmentDependenciesForAST");function za(e,t){const n=Object.create(null);return t.definitions.forEach(t=>{if("OperationDefinition"===t.kind){const i=t.variableDefinitions;i&&i.forEach(({variable:t,type:i})=>{const o=(0,r.typeFromAST)(e,i);o?n[t.name.value]=o:i.kind===r.Kind.NAMED_TYPE&&"Float"===i.name.value&&(n[t.name.value]=r.GraphQLFloat)})}}),n}function Ba(e,t){const n=t?za(t,e):void 0,i=[];return(0,r.visit)(e,{OperationDefinition(e){i.push(e)}}),{variableToType:n,operations:i}}function Ga(e,t){if(t)try{const n=(0,r.parse)(t);return Object.assign(Object.assign({},Ba(n,e)),{documentAST:n})}catch(e){return}}v(za,"collectVariables"),v(Ba,"getOperationASTFacts"),v(Ga,"getOperationFacts"),globalThis&&globalThis.__awaiter;var Qa=v(function(e){return"object"==typeof e?null===e:"function"!=typeof e},"isPrimitive"),Ua=v(function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)},"isObject");function Ha(e){return!0===Ua(e)&&"[object Object]"===Object.prototype.toString.call(e)}v(Ha,"isObjectObject");var Ka=v(function(e){var t,n;return!1!==Ha(e)&&"function"==typeof(t=e.constructor)&&!1!==Ha(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},"isPlainObject");const{deleteProperty:Wa}=Reflect,Ya=Qa,Xa=Ka,Ja=v(e=>"object"==typeof e&&null!==e||"function"==typeof e,"isObject"),Za=v(e=>"__proto__"===e||"constructor"===e||"prototype"===e,"isUnsafeKey"),es=v(e=>{if(!Ya(e))throw new TypeError("Object keys must be strings or symbols");if(Za(e))throw new Error(`Cannot set unsafe key: "${e}"`)},"validateKey"),ts=v(e=>Array.isArray(e)?e.flat().map(String).join(","):e,"toStringKey"),ns=v((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n},"createMemoKey"),rs=v((e,t,n)=>{const r=ts(t?ns(e,t):e);es(r);const i=ss.cache.get(r)||n();return ss.cache.set(r,i),i},"memoize"),is=v((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=v(e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)},"push");for(let t=0;t<e.length;t++){const r=e[t];"\\"!==r?r!==n?o+=r:(a(o),o=""):o+=e[++t]}return o&&a(o),i},"splitString"),os=v((e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:rs(e,t,()=>is(e,t)),"split"),as=v((e,t,n,r)=>{if(es(t),void 0===n)Wa(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&Xa(e[t])&&Xa(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},"assignProp"),ss=v((e,t,n,r)=>{if(!t||!Ja(e))return e;const i=os(t,r);let o=e;for(let e=0;e<i.length;e++){const t=i[e],a=i[e+1];if(es(t),void 0===a){as(o,t,n,r);break}"number"!=typeof a||Array.isArray(o[t])?(Ja(o[t])||(o[t]={}),o=o[t]):o=o[t]=[]}return e},"setValue");ss.split=os,ss.cache=new Map,ss.clear=()=>{ss.cache=new Map};var cs=ss,ls=Object.defineProperty,us=v((e,t)=>ls(e,"name",{value:t,configurable:!0}),"__name$e");const ds=ji("HistoryContext");function ps(e){var t;const n=zi(),r=(0,i.useRef)(new Ri(n||new Ii(null),e.maxHistoryLength||hs)),[o,a]=(0,i.useState)((null==(t=r.current)?void 0:t.queries)||[]),[s,c]=(0,i.useState)("true"===(null==n?void 0:n.get(ms))||!1),l=(0,i.useCallback)(({query:e,variables:t,headers:n,operationName:i})=>{var o;null==(o=r.current)||o.updateHistory(e,t,n,i),a(r.current.queries)},[]),u=(0,i.useCallback)(({query:e,variables:t,headers:n,operationName:i,label:o,favorite:s})=>{r.current.editLabel(e,t,n,i,o,s),a(r.current.queries)},[]),{onToggle:d}=e,p=(0,i.useCallback)(()=>{null==d||d(!1),null==n||n.set(ms,JSON.stringify(!1)),c(!1)},[d,n]),f=(0,i.useCallback)(()=>{null==d||d(!0),null==n||n.set(ms,JSON.stringify(!0)),c(!0)},[d,n]),h=(0,i.useCallback)(()=>{c(e=>{const t=!e;return null==d||d(t),null==n||n.set(ms,JSON.stringify(t)),t})},[d,n]),m=(0,i.useCallback)(({query:e,variables:t,headers:n,operationName:i,label:o,favorite:s})=>{r.current.toggleFavorite(e,t,n,i,o,s),a(r.current.queries)},[]),g=(0,i.useMemo)(()=>({addToHistory:l,editLabel:u,hide:p,isVisible:s,items:o,show:f,toggle:h,toggleFavorite:m}),[l,u,p,s,o,f,h,m]);return ei(ds.Provider,{value:g,children:e.children})}v(ps,"HistoryContextProvider"),us(ps,"HistoryContextProvider");const fs=$i(ds),hs=20,ms="historyPaneOpen";var gs=Object.defineProperty,vs=v((e,t)=>gs(e,"name",{value:t,configurable:!0}),"__name$d");function ys(){const{headerEditor:e,queryEditor:t,variableEditor:n}=Wc({nonNull:!0,caller:ys});return r=>{var i,o,a;null==t||t.setValue(null!=(i=r.query)?i:""),null==n||n.setValue(null!=(o=r.variables)?o:""),null==e||e.setValue(null!=(a=r.headers)?a:"")}}v(ys,"useSelectHistoryItem"),vs(ys,"useSelectHistoryItem");var bs=Object.defineProperty,Es=v((e,t)=>bs(e,"name",{value:t,configurable:!0}),"__name$c");const _s=ji("ExecutionContext");function ws(e){const{externalFragments:t,headerEditor:n,queryEditor:o,responseEditor:a,shouldPersistHeaders:s,variableEditor:c,updateActiveTabValues:l}=Wc({nonNull:!0,caller:ws}),u=fs(),d=ic({caller:ws}),[p,f]=(0,i.useState)(!1),[h,g]=(0,i.useState)(null),v=(0,i.useRef)(0),b=(0,i.useCallback)(()=>{null==h||h.unsubscribe(),f(!1),g(null)},[h]),{fetcher:E}=e,_=(0,i.useCallback)(async()=>{var i,p,_;if(!o||!a)return;if(h)return void b();const w=Es(e=>{a.setValue(e),l({response:e})},"setResponse");v.current+=1;const k=v.current;let T=d()||o.getValue();const S=null==c?void 0:c.getValue();let O;try{O=Ts({json:S,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){return void w(e instanceof Error?e.message:`${e}`)}const C=null==n?void 0:n.getValue();let x;try{x=Ts({json:C,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){return void w(e instanceof Error?e.message:`${e}`)}if(t){const e=o.documentAST?Va(o.documentAST,t):[];e.length>0&&(T+="\n"+e.map(e=>(0,r.print)(e)).join("\n"))}w(""),f(!0);const N=null!=(p=null!=(i=e.operationName)?i:o.operationName)?p:void 0;null==u||u.addToHistory({query:T,variables:S,headers:C,operationName:N});try{let e={data:{}};const t=Es(t=>{if(k!==v.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){const t={data:e.data},r=[...(null==e?void 0:e.errors)||[],...n.map(e=>e.errors).flat().filter(Boolean)];r.length&&(t.errors=r);for(const r of n){const n=r,{path:i,data:o,errors:a}=n,s=y(n,["path","data","errors"]);if(i){if(!o)throw new Error(`Expected part to contain a data property, but got ${r}`);cs(t.data,i,o,{merge:!0})}else o&&(t.data=r.data);e=m(m({},t),s)}f(!1),w(yi(e))}else{const e=yi(t);f(!1),w(e)}},"handleResponse"),n=E({query:T,variables:O,operationName:N},{headers:null!=x?x:void 0,shouldPersistHeaders:s,documentAST:null!=(_=o.documentAST)?_:void 0}),r=await Promise.resolve(n);if(li(r))g(r.subscribe({next(e){t(e)},error(e){f(!1),e&&w(vi(e)),g(null)},complete(){f(!1),g(null)}}));else if(ui(r)){g({unsubscribe:()=>{var e,t;return null==(t=(e=r[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});try{for await(const e of r)t(e);f(!1),g(null)}catch(e){f(!1),w(vi(e)),g(null)}}else t(r)}catch(e){f(!1),w(vi(e)),g(null)}},[d,t,E,n,u,e.operationName,o,a,s,b,h,l,c]),w=(0,i.useMemo)(()=>{var t;return{isFetching:p,operationName:null!=(t=e.operationName)?t:null,run:_,stop:b}},[p,e.operationName,_,b]);return ei(_s.Provider,{value:w,children:e.children})}v(ws,"ExecutionContextProvider"),Es(ws,"ExecutionContextProvider");const ks=$i(_s);function Ts({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(e){throw new Error(`${t}: ${e instanceof Error?e.message:e}.`)}const i="object"==typeof r&&null!==r&&!Array.isArray(r);if(void 0!==r&&!i)throw new Error(n);return r}v(Ts,"tryParseJsonObject"),Es(Ts,"tryParseJsonObject");var Ss=v(function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}},"toggleSelection"),Os=Ss,Cs={"text/plain":"Text","text/html":"Url",default:"Text"};function xs(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Ns(e,t){var n,r,i,o,a,s,c=!1;t||(t={}),n=t.debug||!1;try{if(i=Os(),o=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=Cs[t.format]||Cs.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),r=xs("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return c}v(xs,"format"),v(Ns,"copy");var Is=Ns,As=Object.defineProperty,Ds=v((e,t)=>As(e,"name",{value:t,configurable:!0}),"__name$b");const Rs=ji("SchemaContext");function Ls(e){const{initialHeaders:t,headerEditor:n}=Wc({nonNull:!0,caller:Ls}),[o,a]=(0,i.useState)(),[s,c]=(0,i.useState)(!1),[l,u]=(0,i.useState)(null),d=(0,i.useRef)(0);(0,i.useEffect)(()=>{a((0,r.isSchema)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),d.current++},[e.schema]);const p=(0,i.useRef)(t);(0,i.useEffect)(()=>{n&&(p.current=n.getValue())});const{introspectionQuery:f,introspectionQueryName:h,introspectionQuerySansSubscriptions:m}=js({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:g,onSchemaChange:y}=e,b=(0,i.useCallback)(()=>{if((0,r.isSchema)(e.schema)||null===e.schema)return;const t=++d.current;a(void 0);const n=e.schema;async function i(){if(n)return n;const e=$s(p.current);if(!e.isValidJSON)return void u("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=pi(g({query:f,operationName:h},t));if(!si(r))return void u("Fetcher did not return a Promise for introspection.");c(!0);let i=await r;if("object"!=typeof i||null===i||!("data"in i)){const e=pi(g({query:m,operationName:h},t));if(!si(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(c(!1),(null==i?void 0:i.data)&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:yi(i);u(o)}v(i,"fetchIntrospectionData"),Ds(i,"fetchIntrospectionData"),i().then(e=>{if(t===d.current&&e)try{const t=(0,r.buildClientSchema)(e);a(t),null==y||y(t)}catch(e){u(vi(e))}}).catch(e=>{t===d.current&&(u(vi(e)),c(!1))})},[g,h,f,m,y,e.schema]);(0,i.useEffect)(()=>{b()},[b]),(0,i.useEffect)(()=>{function e(e){82===e.keyCode&&e.shiftKey&&e.ctrlKey&&b()}return v(e,"triggerIntrospection"),Ds(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)});const E=(0,i.useMemo)(()=>!o||e.dangerouslyAssumeSchemaIsValid?[]:(0,r.validateSchema)(o),[o,e.dangerouslyAssumeSchemaIsValid]),_=(0,i.useMemo)(()=>({fetchError:l,introspect:b,isFetching:s,schema:o,validationErrors:E}),[l,b,s,o,E]);return ei(Rs.Provider,{value:_,children:e.children})}v(Ls,"SchemaContextProvider"),Ds(Ls,"SchemaContextProvider");const Ps=$i(Rs);function js({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return(0,i.useMemo)(()=>{const i=t||"IntrospectionQuery";let o=(0,r.getIntrospectionQuery)({inputValueDeprecation:e,schemaDescription:n});t&&(o=o.replace("query IntrospectionQuery",`query ${i}`));const a=o.replace("subscriptionType { name }","");return{introspectionQueryName:i,introspectionQuery:o,introspectionQuerySansSubscriptions:a}},[e,t,n])}function $s(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(e){n=!1}return{headers:t,isValidJSON:n}}v(js,"useIntrospectionQuery"),Ds(js,"useIntrospectionQuery"),v($s,"parseHeaderString"),Ds($s,"parseHeaderString");var Fs=Object.defineProperty,Ms=v((e,t)=>Fs(e,"name",{value:t,configurable:!0}),"__name$a");const qs={name:"Schema",title:"Documentation Explorer"},Vs=ji("ExplorerContext");function zs(e){var t,n;const{isFetching:r}=Ps({nonNull:!0,caller:zs}),o=zi(),[a,s]=(0,i.useState)(null!=(n=null!=(t=e.isVisible)?t:"true"===(null==o?void 0:o.get(Gs)))&&n),[c,l]=(0,i.useState)([qs]),{onToggleVisibility:u}=e,d=(0,i.useRef)(!0);(0,i.useEffect)(()=>{d.current?d.current=!1:void 0!==e.isVisible&&s(e.isVisible)},[e.isVisible]);const p=(0,i.useCallback)(()=>{null==u||u(!1),null==o||o.set(Gs,"false"),s(!1)},[u,o]),f=(0,i.useCallback)(e=>{l(t=>t[t.length-1].def===e.def?t:[...t,e])},[]),h=(0,i.useCallback)(()=>{l(e=>e.length>1?e.slice(0,-1):e)},[]),v=(0,i.useCallback)(()=>{l(e=>1===e.length?e:[qs])},[]),y=(0,i.useCallback)(()=>{null==u||u(!0),null==o||o.set(Gs,"true"),s(!0)},[u,o]),b=(0,i.useCallback)(e=>{l(t=>{const n=t[t.length-1];return[...t.slice(0,-1),g(m({},n),{search:e})]})},[]);(0,i.useEffect)(()=>{r&&v()},[r,v]);const E=(0,i.useMemo)(()=>({explorerNavStack:c,hide:p,isVisible:a,push:f,pop:h,reset:v,show:y,showSearch:b}),[p,a,c,f,h,v,y,b]);return ei(Vs.Provider,{value:E,children:e.children})}v(zs,"ExplorerContextProvider"),Ms(zs,"ExplorerContextProvider");const Bs=$i(Vs),Gs="docExplorerOpen";var Qs=Object.defineProperty,Us=v((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"__name$9");function Hs(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}v(Hs,"debounce"),Us(Hs,"debounce");var Ks=Object.defineProperty,Ws=v((e,t)=>Ks(e,"name",{value:t,configurable:!0}),"__name$8");function Ys(e,t){(0,i.useEffect)(()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},[e,t])}function Xs(e,t,n){(0,i.useEffect)(()=>{e&&e.setOption(t,n)},[e,t,n])}function Js(e,t,n,r,o){const{updateActiveTabValues:a}=Wc({nonNull:!0,caller:o}),s=zi();(0,i.useEffect)(()=>{if(!e)return;const i=Hs(500,e=>{s&&null!==n&&s.set(n,e)}),o=Hs(100,e=>{a({[r]:e})}),c=Ws((e,n)=>{if(!n)return;const r=e.getValue();i(r),o(r),null==t||t(r)},"handleChange");return e.on("change",c),()=>e.off("change",c)},[t,e,s,n,r,a])}function Zs(e,t){const{schema:n}=Ps({nonNull:!0,caller:t}),r=Bs();(0,i.useEffect)(()=>{if(!e)return;const t=Ws((e,t)=>{zr(0,t,n,r)},"handleCompletion");return e.on("hasCompletion",t),()=>e.off("hasCompletion",t)},[e,r,n])}function ec(e,t,n){(0,i.useEffect)(()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}},[e,t,n])}function tc({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=Wc({nonNull:!0,caller:e||tc});return(0,i.useCallback)(()=>{if(!n)return;const e=n.getValue();Is(e),null==t||t(e)},[n,t])}function nc({caller:e}={}){const{queryEditor:t}=Wc({nonNull:!0,caller:e||nc}),{schema:n}=Ps({nonNull:!0,caller:nc});return(0,i.useCallback)(()=>{const e=null==t?void 0:t.documentAST,i=null==t?void 0:t.getValue();e&&i&&t.setValue((0,r.print)(Ci(e,n)))},[t,n])}function rc({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:o}=Wc({nonNull:!0,caller:e||rc});return(0,i.useCallback)(()=>{if(o){const e=o.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&o.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=(0,r.print)((0,r.parse)(e));n!==e&&t.setValue(n)}},[t,o,n])}function ic({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=Ps({nonNull:!0,caller:t||ic}),{queryEditor:r}=Wc({nonNull:!0,caller:t||ic});return(0,i.useCallback)(()=>{if(!r)return;const t=r.getValue(),{insertions:i,result:o}=bi(n,t,e);return i&&i.length>0&&r.operation(()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(o||"");let n=0;const a=i.map(({index:e,string:t})=>r.markText(r.posFromIndex(e+n),r.posFromIndex(e+(n+=t.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>a.forEach(e=>e.clear()),7e3);let s=t;i.forEach(({index:e,string:n})=>{e<t&&(s+=n.length)}),r.setCursor(r.posFromIndex(s))}),o},[e,r,n])}v(Ys,"useSynchronizeValue"),Ws(Ys,"useSynchronizeValue"),v(Xs,"useSynchronizeOption"),Ws(Xs,"useSynchronizeOption"),v(Js,"useChangeHandler"),Ws(Js,"useChangeHandler"),v(Zs,"useCompletion"),Ws(Zs,"useCompletion"),v(ec,"useKeyMap"),Ws(ec,"useKeyMap"),v(tc,"useCopyQuery"),Ws(tc,"useCopyQuery"),v(nc,"useMergeQuery"),Ws(nc,"useMergeQuery"),v(rc,"usePrettifyEditors"),Ws(rc,"usePrettifyEditors"),v(ic,"useAutoCompleteLeafs"),Ws(ic,"useAutoCompleteLeafs");var oc=Object.defineProperty,ac=v((e,t)=>oc(e,"name",{value:t,configurable:!0}),"__name$7");function sc({editorTheme:e=Pr,keyMap:t=jr,onEdit:r,readOnly:o=!1}={}){const{initialHeaders:a,headerEditor:s,setHeaderEditor:c,shouldPersistHeaders:l}=Wc({nonNull:!0,caller:sc}),u=ks(),d=nc({caller:sc}),p=rc({caller:sc}),f=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let t=!0;return Mr([Promise.all([n.e(338),n.e(277)]).then(n.bind(n,3277)).then(function(e){return e.j})]).then(n=>{if(!t)return;const r=f.current;if(!r)return;const i=n(r,{value:a,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Fr});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",(e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")}),c(i)}),()=>{t=!1}},[e,a,o,c]),Xs(s,"keyMap",t),Js(s,r,l?cc:null,"headers",sc),Zs(s,sc),ec(s,["Cmd-Enter","Ctrl-Enter"],null==u?void 0:u.run),ec(s,["Shift-Ctrl-P"],p),ec(s,["Shift-Ctrl-M"],d),f}v(sc,"useHeaderEditor"),ac(sc,"useHeaderEditor");const cc="headers";var lc=Object.defineProperty,uc=v((e,t)=>lc(e,"name",{value:t,configurable:!0}),"__name$6");const dc=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),pc=new RegExp("["+dc.join("")+"]","g");function fc(e){return e.replace(pc," ")}v(fc,"normalizeWhitespace"),uc(fc,"normalizeWhitespace");var hc=Object.defineProperty,mc=v((e,t)=>hc(e,"name",{value:t,configurable:!0}),"__name$5");function gc({editorTheme:e=Pr,keyMap:t=jr,onClickReference:r,onCopyQuery:o,onEdit:a,readOnly:s=!1}={}){const{schema:c}=Ps({nonNull:!0,caller:gc}),{externalFragments:l,initialQuery:u,queryEditor:d,setOperationName:p,setQueryEditor:f,validationRules:h,variableEditor:y,updateActiveTabValues:b}=Wc({nonNull:!0,caller:gc}),E=ks(),_=zi(),w=Bs(),k=tc({caller:gc,onCopyQuery:o}),T=nc({caller:gc}),S=rc({caller:gc}),O=(0,i.useRef)(null),C=(0,i.useRef)(),x=(0,i.useRef)(()=>{});(0,i.useEffect)(()=>{x.current=e=>{w&&(w.show(),e&&"Type"===e.kind?w.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?w.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&w.push({name:e.type.name,def:e.type}),null==r||r(e))}},[w,r]),(0,i.useEffect)(()=>{let t=!0;return Mr([Promise.all([n.e(338),n.e(77)]).then(n.bind(n,5077)).then(function(e){return e.c}),Promise.all([n.e(338),n.e(528)]).then(n.bind(n,1528)).then(function(e){return e.s}),Promise.all([n.e(338),n.e(331),n.e(669),n.e(627)]).then(n.bind(n,2627)),Promise.all([n.e(338),n.e(951)]).then(n.bind(n,6951)),Promise.all([n.e(338),n.e(331),n.e(420)]).then(n.bind(n,6420)),Promise.all([n.e(338),n.e(331),n.e(260)]).then(n.bind(n,1260)),Promise.all([n.e(338),n.e(93)]).then(n.bind(n,93))]).then(n=>{if(!t)return;C.current=n;const r=O.current;if(!r)return;const i=n(r,{value:u,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!s&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>Dr.render(e),onClick:e=>{x.current(e)}},jump:{schema:void 0,onClick:e=>{x.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:g(m({},Fr),{"Cmd-S"(){},"Ctrl-S"(){}})});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",(e,t)=>{Ec.test(t.key)&&e.execCommand("autocomplete")}),i.on("beforeChange",(e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(fc);null==(n=t.update)||n.call(t,t.from,t.to,e)}}),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,f(i)}),()=>{t=!1}},[e,u,s,f]),Xs(d,"keyMap",t),(0,i.useEffect)(()=>{if(!d)return;function e(e){var t,n,r,i,o;const a=Ga(c,e.getValue()),s=xi(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!=(r=null==a?void 0:a.documentAST)?r:null,e.operationName=null!=s?s:null,e.operations=null!=(i=null==a?void 0:a.operations)?i:null,y&&(y.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,y.options.lint.variableToType=null==a?void 0:a.variableToType,y.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=C.current)||o.signal(y,"change",y)),a?g(m({},a),{operationName:s}):null}v(e,"getAndUpdateOperationFacts"),mc(e,"getAndUpdateOperationFacts");const t=Hs(100,t=>{var n;const r=t.getValue();null==_||_.set(_c,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&(null==_||_.set(wc,o.operationName)),null==a||a(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&p(o.operationName),b({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})});return e(d),d.on("change",t),()=>d.off("change",t)},[a,d,c,p,_,y,b]),vc(d,null!=c?c:null,C),yc(d,null!=h?h:null,C),bc(d,l,C),Zs(d,gc);const N=null==E?void 0:E.run,I=(0,i.useCallback)(()=>{var e;if(!(N&&d&&d.operations&&d.hasFocus()))return void(null==N||N());const t=d.indexFromPos(d.getCursor());let n;for(const r of d.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==d.operationName&&p(n),N()},[d,N,p]);return ec(d,["Cmd-Enter","Ctrl-Enter"],I),ec(d,["Shift-Ctrl-C"],k),ec(d,["Shift-Ctrl-P","Shift-Ctrl-F"],S),ec(d,["Shift-Ctrl-M"],T),O}function vc(e,t,n){(0,i.useEffect)(()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function yc(e,t,n){(0,i.useEffect)(()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function bc(e,t,n){const r=(0,i.useMemo)(()=>[...t.values()],[t]);(0,i.useEffect)(()=>{if(!e)return;const t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)},[e,r,n])}v(gc,"useQueryEditor"),mc(gc,"useQueryEditor"),v(vc,"useSynchronizeSchema"),mc(vc,"useSynchronizeSchema"),v(yc,"useSynchronizeValidationRules"),mc(yc,"useSynchronizeValidationRules"),v(bc,"useSynchronizeExternalFragments"),mc(bc,"useSynchronizeExternalFragments");const Ec=/^[a-zA-Z0-9_@(]$/,_c="query",wc="operationName";var kc=Object.defineProperty,Tc=v((e,t)=>kc(e,"name",{value:t,configurable:!0}),"__name$4");function Sc({headers:e,query:t,variables:n,storage:r}){const i=null==r?void 0:r.get(qc);try{if(!i)throw new Error("Storage for tabs is empty");const r=JSON.parse(i);if(Oc(r)){const i=$c({query:t,variables:n,headers:e});let o=-1;for(let e=0;e<r.tabs.length;e++){const t=r.tabs[e];t.hash=$c({query:t.query,variables:t.variables,headers:t.headers}),t.hash===i&&(o=e)}if(o>=0)r.activeTabIndex=o;else{const o=t?Fc(t):null;r.tabs.push({id:jc(),hash:i,title:o||Mc,query:t,variables:n,headers:e,operationName:o,response:null})}return r}throw new Error("Storage for tabs is invalid")}catch(e){return null==r||r.set(qc,""),{activeTabIndex:0,tabs:[Lc()]}}}function Oc(e){return e&&"object"==typeof e&&!Array.isArray(e)&&xc(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(Cc)}function Cc(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Nc(e,"id")&&Nc(e,"title")&&Ic(e,"query")&&Ic(e,"variables")&&Ic(e,"headers")&&Ic(e,"operationName")&&Ic(e,"response")}function xc(e,t){return t in e&&"number"==typeof e[t]}function Nc(e,t){return t in e&&"string"==typeof e[t]}function Ic(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Ac({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,i.useCallback)(i=>{var o,a,s,c,l;const u=null!=(o=null==e?void 0:e.getValue())?o:null,d=null!=(a=null==t?void 0:t.getValue())?a:null,p=null!=(s=null==n?void 0:n.getValue())?s:null,f=null!=(c=null==e?void 0:e.operationName)?c:null;return Pc(i,{query:u,variables:d,headers:p,response:null!=(l=null==r?void 0:r.getValue())?l:null,operationName:f})},[e,t,n,r])}function Dc({storage:e,shouldPersistHeaders:t}){const n=(0,i.useMemo)(()=>Hs(500,t=>{null==e||e.set(qc,t)}),[e]);return(0,i.useCallback)(e=>{n(JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n))},[t,n])}function Rc({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,i.useCallback)(({query:i,variables:o,headers:a,response:s})=>{null==e||e.setValue(null!=i?i:""),null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=s?s:"")},[n,e,r,t])}function Lc(){return{id:jc(),hash:$c({query:null,variables:null,headers:null}),title:Mc,query:null,variables:null,headers:null,operationName:null,response:null}}function Pc(e,t){return g(m({},e),{tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i=m(m({},n),t);return g(m({},i),{hash:$c(i),title:i.operationName||(i.query?Fc(i.query):void 0)||Mc})})})}function jc(){const e=Tc(()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function $c(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function Fc(e){var t;const n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}v(Sc,"getDefaultTabState"),Tc(Sc,"getDefaultTabState"),v(Oc,"isTabsState"),Tc(Oc,"isTabsState"),v(Cc,"isTabState"),Tc(Cc,"isTabState"),v(xc,"hasNumberKey"),Tc(xc,"hasNumberKey"),v(Nc,"hasStringKey"),Tc(Nc,"hasStringKey"),v(Ic,"hasStringOrNullKey"),Tc(Ic,"hasStringOrNullKey"),v(Ac,"useSynchronizeActiveTabValues"),Tc(Ac,"useSynchronizeActiveTabValues"),v(Dc,"useStoreTabs"),Tc(Dc,"useStoreTabs"),v(Rc,"useSetEditorValues"),Tc(Rc,"useSetEditorValues"),v(Lc,"emptyTab"),Tc(Lc,"emptyTab"),v(Pc,"setPropertiesInActiveTab"),Tc(Pc,"setPropertiesInActiveTab"),v(jc,"guid"),Tc(jc,"guid"),v($c,"hashFromTabContents"),Tc($c,"hashFromTabContents"),v(Fc,"fuzzyExtractOperationName"),Tc(Fc,"fuzzyExtractOperationName");const Mc="<untitled>",qc="tabState";var Vc=Object.defineProperty,zc=v((e,t)=>Vc(e,"name",{value:t,configurable:!0}),"__name$3");function Bc({editorTheme:e=Pr,keyMap:t=jr,onEdit:r,readOnly:o=!1}={}){const{initialVariables:a,variableEditor:s,setVariableEditor:c}=Wc({nonNull:!0,caller:Bc}),l=ks(),u=nc({caller:Bc}),d=rc({caller:Bc}),p=(0,i.useRef)(null),f=(0,i.useRef)();return(0,i.useEffect)(()=>{let t=!0;return Mr([Promise.all([n.e(338),n.e(253)]).then(n.bind(n,9253)),Promise.all([n.e(338),n.e(385)]).then(n.bind(n,8385)),Promise.all([n.e(338),n.e(912)]).then(n.bind(n,7912))]).then(n=>{if(!t)return;f.current=n;const r=p.current;if(!r)return;const i=n(r,{value:a,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Fr});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",(e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")}),c(i)}),()=>{t=!1}},[e,a,o,c]),Xs(s,"keyMap",t),Js(s,r,Gc,"variables",Bc),Zs(s,Bc),ec(s,["Cmd-Enter","Ctrl-Enter"],null==l?void 0:l.run),ec(s,["Shift-Ctrl-P"],d),ec(s,["Shift-Ctrl-M"],u),p}v(Bc,"useVariableEditor"),zc(Bc,"useVariableEditor");const Gc="variables";var Qc=Object.defineProperty,Uc=v((e,t)=>Qc(e,"name",{value:t,configurable:!0}),"__name$2");const Hc=ji("EditorContext");function Kc(e){var t,n,o,a,s;const c=zi(),[l,u]=(0,i.useState)(null),[d,p]=(0,i.useState)(null),[f,h]=(0,i.useState)(null),[v,y]=(0,i.useState)(null);Ys(l,e.headers),Ys(d,e.query),Ys(f,e.response),Ys(v,e.variables);const[b]=(0,i.useState)(()=>{var t,n,r,i,o,a;return{headers:null!=(n=null!=(t=e.headers)?t:null==c?void 0:c.get(cc))?n:null,query:null!=(i=null!=(r=e.query)?r:null==c?void 0:c.get(_c))?i:null,variables:null!=(a=null!=(o=e.variables)?o:null==c?void 0:c.get(Gc))?a:null}}),[E,_]=(0,i.useState)(()=>Sc(g(m({},b),{storage:c}))),w=Dc({storage:c,shouldPersistHeaders:e.shouldPersistHeaders}),k=Ac({queryEditor:d,variableEditor:v,headerEditor:l,responseEditor:f}),T=Rc({queryEditor:d,variableEditor:v,headerEditor:l,responseEditor:f}),{onTabChange:S}=e,O=(0,i.useCallback)(()=>{_(e=>{const t=k(e),n={tabs:[...t.tabs,Lc()],activeTabIndex:t.tabs.length};return w(n),T(n.tabs[n.activeTabIndex]),null==S||S(n),n})},[S,T,w,k]),C=(0,i.useCallback)(e=>{_(t=>{const n=g(m({},k(t)),{activeTabIndex:e});return w(n),T(n.tabs[n.activeTabIndex]),null==S||S(n),n})},[S,T,w,k]),x=(0,i.useCallback)(e=>{_(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return w(n),T(n.tabs[n.activeTabIndex]),null==S||S(n),n})},[S,T,w]),N=(0,i.useCallback)(e=>{_(t=>{const n=Pc(t,e);return w(n),null==S||S(n),n})},[S,w]),{onEditOperationName:I}=e,A=(0,i.useCallback)(e=>{d&&(d.operationName=e,N({operationName:e}),null==I||I(e))},[I,d,N]),D=E.activeTabIndex>0?"":null!=(t=e.defaultQuery)?t:Yc,R=(0,i.useRef)({initialHeaders:null!=(n=b.headers)?n:"",initialQuery:null!=(o=b.query)?o:D,initialResponse:null!=(a=e.response)?a:"",initialVariables:null!=(s=b.variables)?s:""}),L=(0,i.useMemo)(()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"==typeof e.externalFragments)(0,r.visit)((0,r.parse)(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t},[e.externalFragments]),P=(0,i.useMemo)(()=>e.validationRules||[],[e.validationRules]),j=(0,i.useMemo)(()=>g(m(g(m({},E),{addTab:O,changeTab:C,closeTab:x,updateActiveTabValues:N,headerEditor:l,queryEditor:d,responseEditor:f,variableEditor:v,setHeaderEditor:u,setQueryEditor:p,setResponseEditor:h,setVariableEditor:y,setOperationName:A}),R.current),{externalFragments:L,validationRules:P,shouldPersistHeaders:e.shouldPersistHeaders||!1}),[E,O,C,x,N,l,d,f,v,A,L,P,e.shouldPersistHeaders]);return ei(Hc.Provider,{value:j,children:e.children})}v(Kc,"EditorContextProvider"),Uc(Kc,"EditorContextProvider");const Wc=$i(Hc),Yc='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';var Xc=Object.defineProperty,Jc=v((e,t)=>Xc(e,"name",{value:t,configurable:!0}),"__name$1");function Zc({ResponseTooltip:e,editorTheme:t=Pr,keyMap:r=jr}={}){const{fetchError:o,validationErrors:a}=Ps({nonNull:!0,caller:Zc}),{initialResponse:c,responseEditor:l,setResponseEditor:u}=Wc({nonNull:!0,caller:Zc}),d=(0,i.useRef)(null),p=(0,i.useRef)(e);return(0,i.useEffect)(()=>{p.current=e},[e]),(0,i.useEffect)(()=>{let e=!0;return Mr([Promise.all([n.e(338),n.e(148)]).then(n.bind(n,3148)).then(function(e){return e.f}),Promise.all([n.e(338),n.e(983)]).then(n.bind(n,5983)).then(function(e){return e.b}),Promise.all([n.e(338),n.e(924)]).then(n.bind(n,924)).then(function(e){return e.d}),Promise.all([n.e(338),n.e(528)]).then(n.bind(n,1528)).then(function(e){return e.s}),Promise.all([n.e(338),n.e(910)]).then(n.bind(n,5910)).then(function(e){return e.s}),Promise.all([n.e(338),n.e(113)]).then(n.bind(n,6113)).then(function(e){return e.j}),Promise.all([n.e(338),n.e(391)]).then(n.bind(n,7391)).then(function(e){return e.s}),Promise.all([n.e(338),n.e(271)]).then(n.bind(n,2271)),Promise.all([n.e(338),n.e(681)]).then(n.bind(n,6681))],{useCommonAddons:!1}).then(n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",(e,t,n,i)=>{const o=[],a=p.current;return a&&o.push(ei(a,{pos:i})),ii.shouldRender(e)&&o.push(ei(ii,{token:e},"image-preview")),o.length?(s().render(o,r),r):(s().unmountComponentAtNode(r),null)});const i=d.current;if(!i)return;const o=n(i,{value:c,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Fr});u(o)}),()=>{e=!1}},[t,c,u]),Xs(l,"keyMap",r),(0,i.useEffect)(()=>{o&&(null==l||l.setValue(o)),a.length>0&&(null==l||l.setValue(vi(a)))},[l,o,a]),d}v(Zc,"useResponseEditor"),Jc(Zc,"useResponseEditor");var el=Object.defineProperty,tl=v((e,t)=>el(e,"name",{value:t,configurable:!0}),"__name");function nl({defaultSizeRelation:e=rl,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:o=100,sizeThresholdSecond:a=100,storageKey:s}){const c=zi(),l=(0,i.useCallback)(Hs(500,e=>{c&&s&&c.set(s,e)}),[c,s]),[u,d]=(0,i.useState)(()=>{const e=c&&s?c.get(s):null;return e===il||"first"===n?"first":e===ol||"second"===n?"second":null}),p=(0,i.useCallback)(e=>{d(e),null==r||r(e)},[r]),f=(0,i.useRef)(null),h=(0,i.useRef)(null),m=(0,i.useRef)(null),g=(0,i.useRef)(`${e}`);(0,i.useLayoutEffect)(()=>{const e=c&&s&&c.get(s)||g.current,n="horizontal"===t?"row":"column";f.current&&(f.current.style.display="flex",f.current.style.flexDirection=n,f.current.style.flex=e===il||e===ol?g.current:e),m.current&&(m.current.style.display="flex",m.current.style.flexDirection=n,m.current.style.flex="1"),h.current&&(h.current.style.display="flex",h.current.style.flexDirection=n)},[t,c,s]);const y=(0,i.useCallback)(e=>{const t="first"===e?f.current:m.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",f.current)){const e=parseFloat(f.current.style.flex);(!Number.isFinite(e)||e<1)&&(f.current.style.flex="1"),f.current.style.flex}},[]),b=(0,i.useCallback)(e=>{const t="first"===e?f.current:m.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",f.current&&c&&s)){const e=null==c?void 0:c.get(s);e&&e!==il&&e!==ol&&(f.current.style.flex=e)}},[c,s]);return(0,i.useLayoutEffect)(()=>{"first"===u?y("first"):b("first"),"second"===u?y("second"):b("second")},[u,y,b]),(0,i.useEffect)(()=>{if(!h.current||!f.current||!m.current)return;const e=h.current,n=f.current,r=n.parentElement,i="horizontal"===t?"clientX":"clientY",s="horizontal"===t?"left":"top",c="horizontal"===t?"right":"bottom",u="horizontal"===t?"clientWidth":"clientHeight";function d(t){t.preventDefault();const d=t[i]-e.getBoundingClientRect()[s];function f(t){if(0===t.buttons)return h();const f=t[i]-r.getBoundingClientRect()[s]-d,m=r.getBoundingClientRect()[c]-t[i]+d-e[u];if(f<o)p("first"),l(il);else if(m<a)p("second"),l(ol);else{p(null);const e=""+f/m;n.style.flex=e,l(e)}}function h(){document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",h)}v(f,"handleMouseMove"),tl(f,"handleMouseMove"),v(h,"handleMouseUp"),tl(h,"handleMouseUp"),document.addEventListener("mousemove",f),document.addEventListener("mouseup",h)}function y(){f.current&&(f.current.style.flex=g.current),l(g.current),p(null)}return v(d,"handleMouseDown"),tl(d,"handleMouseDown"),e.addEventListener("mousedown",d),v(y,"reset"),tl(y,"reset"),e.addEventListener("dblclick",y),()=>{e.removeEventListener("mousedown",d),e.removeEventListener("dblclick",y)}},[t,p,o,a,l]),(0,i.useMemo)(()=>({dragBarRef:h,hiddenElement:u,firstRef:f,setHiddenElement:p,secondRef:m}),[u,p])}v(nl,"useDragResize"),tl(nl,"useDragResize");const rl=1,il="hide-first",ol="hide-second"},798(e,t,n){"use strict";var r=n(1609),i=n.n(r),o=n(6087);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};function s(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=s(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const c={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},l=Math.round;function u(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const d=(e,t,n)=>0===n?e:e/100;function p(e,t){const n=t||255;return e>n?n:e<0?0:e}class f{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const i=c[n.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(e instanceof f)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=p(e.r),this.g=p(e.g),this.b=p(e.b),this.a="number"==typeof e.a?p(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:l(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(void 0===this._hsv_s){const e=this.getMax()-this.getMin();this._hsv_s=0===e?0:e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(void 0===this._hsl_s){const e=this.getMax()-this.getMin();if(0===e)this._hsl_s=0;else{const t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],o={r:l(i("r")),g:l(i("g")),b:l(i("b")),a:l(100*i("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>l((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=l(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=l(100*this.getHSLSaturation()),n=l(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=p(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){const i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=l(255*n);return this.r=e,this.g=e,void(this.b=e)}let o=0,a=0,s=0;const c=i/60,u=(1-Math.abs(2*n-1))*t,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,a=d):c>=1&&c<2?(o=d,a=u):c>=2&&c<3?(a=u,s=d):c>=3&&c<4?(a=d,s=u):c>=4&&c<5?(o=d,s=u):c>=5&&c<6&&(o=u,s=d);const p=n-u/2;this.r=l(255*(o+p)),this.g=l(255*(a+p)),this.b=l(255*(s+p))}fromHsv({h:e,s:t,v:n,a:r}){const i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a="number"==typeof r?r:1;const o=l(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=i/60,s=Math.floor(a),c=a-s,u=l(n*(1-t)*255),d=l(n*(1-t*c)*255),p=l(n*(1-t*(1-c))*255);switch(s){case 0:this.g=p,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=p;break;case 3:this.r=u,this.g=d;break;case 4:this.r=p,this.g=u;break;default:this.g=u,this.b=d}}fromHsvString(e){const t=u(e,d);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=u(e,d);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=u(e,(e,t)=>t.includes("%")?l(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const h=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function m(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,r<0?r+=360:r>=360&&(r-=360),r}function g(e,t,n){if(0===e.h&&0===e.s)return e.s;let r;return r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,r>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100}function v(e,t,n){let r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}const y=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];y.primary=y[5];const b=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];b.primary=b[5];const E=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];E.primary=E[5];const _=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_.primary=_[5];const w=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];w.primary=w[5];const k=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];k.primary=k[5];const T=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];T.primary=T[5];const S=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];S.primary=S[5];const O=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];O.primary=O[5];const C=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];C.primary=C[5];const x=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];x.primary=x[5];const N=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];N.primary=N[5];const I=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];I.primary=I[5];const A=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];A.primary=A[5];const D=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];D.primary=D[5];const R=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];R.primary=R[5];const L=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];L.primary=L[5];const P=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];P.primary=P[5];const j=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];j.primary=j[5];const $=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];$.primary=$[5];const F=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];F.primary=F[5];const M=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];M.primary=M[5];const q=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];q.primary=q[5];const V=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];V.primary=V[5];const z=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];z.primary=z[5];const B=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];B.primary=B[5];const G=(0,r.createContext)({}),Q="data-rc-order",U="data-rc-priority",H=new Map;function K({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function W(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Y(e){return Array.from((H.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function X(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:r,priority:i=0}=t,o=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),a="prependQueue"===o,s=document.createElement("style");s.setAttribute(Q,o),a&&i&&s.setAttribute(U,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;const c=W(t),{firstChild:l}=c;if(r){if(a){const e=(t.styles||Y(c)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(Q)))return!1;const t=Number(e.getAttribute(U)||0);return i>=t});if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function J(e,t,n={}){const r=W(n),i=Y(r),o={...n,styles:i};!function(e,t){const n=H.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=X("",t),{parentNode:r}=n;H.set(e,r),e.removeChild(n)}}(r,o);const a=function(e,t={}){let{styles:n}=t;return n||=Y(W(t)),n.find(n=>n.getAttribute(K(t))===e)}(t,o);if(a)return o.csp?.nonce&&a.nonce!==o.csp?.nonce&&(a.nonce=o.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=X(e,o);return s.setAttribute(K(o),t),s}function Z(e){return e?.getRootNode?.()}let ee={};const te=[];function ne(e,t){}function re(e,t){}function ie(e,t,n){t||ee[n]||(e(!1,n),ee[n]=!0)}function oe(e,t){ie(ne,e,t)}function ae(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function se(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];var i;return"class"===n?(t.className=r,delete t.class):(delete t[n],t[(i=n,i.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=r),t},{})}function ce(e,t,n){return n?i().createElement(e.tag,{key:t,...se(e.attrs),...n},(e.children||[]).map((n,r)=>ce(n,`${t}-${e.tag}-${r}`))):i().createElement(e.tag,{key:t,...se(e.attrs)},(e.children||[]).map((n,r)=>ce(n,`${t}-${e.tag}-${r}`)))}function le(e){return function(e,t={}){const n=[],r=new f(e),i=r.toHsv();for(let e=5;e>0;e-=1){const t=new f({h:m(i,e,!0),s:g(i,e,!0),v:v(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=4;e+=1){const t=new f({h:m(i,e),s:g(i,e),v:v(i,e)});n.push(t)}return"dark"===t.theme?h.map(({index:e,amount:r})=>new f(t.backgroundColor||"#141414").mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function ue(e){return e?Array.isArray(e)?e:[e]:[]}oe.preMessage=e=>{te.push(e)},oe.resetWarned=function(){ee={}},oe.noteOnce=function(e,t){ie(re,e,t)};const de={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},pe=e=>{const{icon:t,className:n,onClick:i,style:o,primaryColor:a,secondaryColor:s,...c}=e,l=r.useRef(null);let u=de;if(a&&(u={primaryColor:a,secondaryColor:s||le(a)}),(e=>{const{csp:t,prefixCls:n,layer:i}=(0,r.useContext)(G);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),i&&(o=`@layer ${i} {\n${o}\n}`),(0,r.useEffect)(()=>{const n=function(e){return Z(e)instanceof ShadowRoot}(r=e.current)?Z(r):null;var r;J(o,"@ant-design-icons",{prepend:!i,csp:t,attachTo:n})},[])})(l),oe(ae(t),`[@ant-design/icons] icon should be icon definiton, but got ${t}`),!ae(t))return null;let d=t;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),ce(d.icon,`svg-${d.name}`,{className:n,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:l})};pe.displayName="IconReact",pe.getTwoToneColors=function(){return{...de}},pe.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){de.primaryColor=e,de.secondaryColor=t||le(e),de.calculated=!!t};const fe=pe;function he(e){const[t,n]=ue(e);return fe.setTwoToneColors({primaryColor:t,secondaryColor:n})}function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}he(O.primary);const ge=r.forwardRef((e,t)=>{const{className:n,icon:i,spin:o,rotate:a,tabIndex:c,onClick:l,twoToneColor:u,...d}=e,{prefixCls:p="anticon",rootClassName:f}=r.useContext(G),h=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=s(e))&&(r&&(r+=" "),r+=t);return r}(f,p,{[`${p}-${i.name}`]:!!i.name,[`${p}-spin`]:!!o||"loading"===i.name},n);let m=c;void 0===m&&l&&(m=-1);const g=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[v,y]=ue(u);return r.createElement("span",me({role:"img","aria-label":i.name},d,{ref:t,tabIndex:m,onClick:l,className:h}),r.createElement(fe,{icon:i,primaryColor:v,secondaryColor:y,style:g}))});ge.getTwoToneColor=function(){const e=fe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ge.setTwoToneColor=he;const ve=ge;function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const be=(e,t)=>r.createElement(ve,ye({},e,{ref:t,icon:a})),Ee=r.forwardRef(be),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(this,arguments)}const ke=(e,t)=>r.createElement(ve,we({},e,{ref:t,icon:_e})),Te=r.forwardRef(ke),Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(this,arguments)}const Ce=(e,t)=>r.createElement(ve,Oe({},e,{ref:t,icon:Se})),xe=r.forwardRef(Ce),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ie.apply(this,arguments)}const Ae=(e,t)=>r.createElement(ve,Ie({},e,{ref:t,icon:Ne})),De=r.forwardRef(Ae);function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Le(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Pe(e,t){if(e){if("string"==typeof e)return Re(e,t);var n={}.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)?Re(e,t):void 0}}function je(e){return function(e){if(Array.isArray(e))return Re(e)}(e)||Le(e)||Pe(e)||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.")}()}var $e=n(3373),Fe=n.n($e);function Me(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}const qe="ant",Ve="anticon",ze=["outlined","borderless","filled","underlined"],Be=r.createContext({getPrefixCls:(e,t)=>t||(e?`${qe}-${e}`:qe),iconPrefixCls:Ve}),{Consumer:Ge}=Be,Qe={};function Ue(e){const t=r.useContext(Be),{getPrefixCls:n,direction:i,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:Qe,styles:Qe},a),{getPrefixCls:n,direction:i,getPopupContainer:o})}const He=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ke(e){return Ke="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},Ke(e)}var We=Symbol.for("react.element"),Ye=Symbol.for("react.transitional.element"),Xe=Symbol.for("react.fragment");function Je(e){return e&&"object"===Ke(e)&&(e.$$typeof===We||e.$$typeof===Ye)&&e.type===Xe}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i().Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Ze(e)):Je(e)&&e.props?n=n.concat(Ze(e.props.children,t)):n.push(e))}),n}function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(null,arguments)}const tt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function nt(e){if(Array.isArray(e))return e}function rt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function it(e,t){return nt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||Pe(e,t)||rt()}function ot(e){var t=function(e){if("object"!=Ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ke(t)?t:t+""}function at(e,t,n){return(t=ot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function st(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const ct=Math.round;function lt(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ut=(e,t,n)=>0===n?e:e/100;function dt(e,t){const n=t||255;return e>n?n:e<0?0:e}class pt{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(at(this,"isValid",!0),at(this,"r",0),at(this,"g",0),at(this,"b",0),at(this,"a",1),at(this,"_h",void 0),at(this,"_s",void 0),at(this,"_l",void 0),at(this,"_v",void 0),at(this,"_max",void 0),at(this,"_min",void 0),at(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof pt)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=dt(e.r),this.g=dt(e.g),this.b=dt(e.b),this.a="number"==typeof e.a?dt(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:ct(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],o={r:ct(i("r")),g:ct(i("g")),b:ct(i("b")),a:ct(100*i("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>ct((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=ct(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ct(100*this.getSaturation()),n=ct(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=dt(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=ct(255*n);this.r=e,this.g=e,this.b=e}let i=0,o=0,a=0;const s=e/60,c=(1-Math.abs(2*n-1))*t,l=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,o=l):s>=1&&s<2?(i=l,o=c):s>=2&&s<3?(o=c,a=l):s>=3&&s<4?(o=l,a=c):s>=4&&s<5?(i=l,a=c):s>=5&&s<6&&(i=c,a=l);const u=n-c/2;this.r=ct(255*(i+u)),this.g=ct(255*(o+u)),this.b=ct(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const i=ct(255*n);if(this.r=i,this.g=i,this.b=i,t<=0)return;const o=e/60,a=Math.floor(o),s=o-a,c=ct(n*(1-t)*255),l=ct(n*(1-t*s)*255),u=ct(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=l,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=l;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=l}}fromHsvString(e){const t=lt(e,ut);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=lt(e,ut);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=lt(e,(e,t)=>t.includes("%")?ct(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var ft=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ht(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function mt(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function gt(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function vt(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new pt(e),i=r.toHsv(),o=5;o>0;o-=1){var a=new pt({h:ht(i,o,!0),s:mt(i,o,!0),v:gt(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var c=new pt({h:ht(i,s),s:mt(i,s),v:gt(i,s)});n.push(c)}return"dark"===t.theme?ft.map(function(e){var r=e.index,i=e.amount;return new pt(t.backgroundColor||"#141414").mix(n[r],i).toHexString()}):n.map(function(e){return e.toHexString()})}var yt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},bt=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bt.primary=bt[5];var Et=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Et.primary=Et[5];var _t=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];_t.primary=_t[5];var wt=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];wt.primary=wt[5];var kt=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];kt.primary=kt[5];var Tt=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Tt.primary=Tt[5];var St=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];St.primary=St[5];var Ot=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ot.primary=Ot[5];var Ct=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ct.primary=Ct[5];var xt=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];xt.primary=xt[5];var Nt=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Nt.primary=Nt[5];var It=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];It.primary=It[5];var At=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];At.primary=At[5];var Dt={red:bt,volcano:Et,orange:_t,gold:wt,yellow:kt,lime:Tt,green:St,cyan:Ot,blue:Ct,geekblue:xt,purple:Nt,magenta:It,grey:At},Rt=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Rt.primary=Rt[5];var Lt=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Lt.primary=Lt[5];var Pt=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Pt.primary=Pt[5];var jt=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];jt.primary=jt[5];var $t=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];$t.primary=$t[5];var Ft=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Ft.primary=Ft[5];var Mt=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Mt.primary=Mt[5];var qt=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];qt.primary=qt[5];var Vt=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Vt.primary=Vt[5];var zt=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];zt.primary=zt[5];var Bt=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Bt.primary=Bt[5];var Gt=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Gt.primary=Gt[5];var Qt=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Qt.primary=Qt[5];const Ut=(0,r.createContext)({});function Ht(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}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach(function(t){at(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Yt="data-rc-order",Xt="data-rc-priority",Jt=new Map;function Zt(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function en(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function tn(e){return Array.from((Jt.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Wt())return null;var n=t.csp,r=t.prepend,i=t.priority,o=void 0===i?0:i,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,c=document.createElement("style");c.setAttribute(Yt,a),s&&o&&c.setAttribute(Xt,"".concat(o)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var l=en(t),u=l.firstChild;if(r){if(s){var d=(t.styles||tn(l)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Yt)))return!1;var t=Number(e.getAttribute(Xt)||0);return o>=t});if(d.length)return l.insertBefore(c,d[d.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=en(t);return(t.styles||tn(n)).find(function(n){return n.getAttribute(Zt(t))===e})}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rn(e,t);n&&en(t).removeChild(n)}function an(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=en(n),i=tn(r),o=Kt(Kt({},n),{},{styles:i});!function(e,t){var n=Jt.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=nn("",t),i=r.parentNode;Jt.set(e,i),e.removeChild(r)}}(r,o);var a,s,c,l=rn(t,o);if(l)return null!==(a=o.csp)&&void 0!==a&&a.nonce&&l.nonce!==(null===(s=o.csp)||void 0===s?void 0:s.nonce)&&(l.nonce=null===(c=o.csp)||void 0===c?void 0:c.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var u=nn(e,o);return u.setAttribute(Zt(o),t),u}function sn(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function cn(e){return function(e){return sn(e)instanceof ShadowRoot}(e)?sn(e):null}var ln={},un=[];function dn(e,t){}function pn(e,t){}function fn(e,t,n){t||ln[n]||(e(!1,n),ln[n]=!0)}function hn(e,t){fn(dn,e,t)}hn.preMessage=function(e){un.push(e)},hn.resetWarned=function(){ln={}},hn.noteOnce=function(e,t){fn(pn,e,t)};const mn=hn;function gn(e){return"object"===Ke(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Ke(e.icon)||"function"==typeof e.icon)}function vn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,i=e[n];return"class"===n?(t.className=i,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=i),t},{})}function yn(e,t,n){return n?i().createElement(e.tag,Kt(Kt({key:t},vn(e.attrs)),n),(e.children||[]).map(function(n,r){return yn(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):i().createElement(e.tag,Kt({key:t},vn(e.attrs)),(e.children||[]).map(function(n,r){return yn(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function bn(e){return vt(e)[0]}function En(e){return e?Array.isArray(e)?e:[e]:[]}var wn=["icon","className","onClick","style","primaryColor","secondaryColor"],kn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Tn=function(e){var t,n,i,o,a,s,c,l,u=e.icon,d=e.className,p=e.onClick,f=e.style,h=e.primaryColor,m=e.secondaryColor,g=st(e,wn),v=r.useRef(),y=kn;if(h&&(y={primaryColor:h,secondaryColor:m||bn(h)}),t=v,n=(0,r.useContext)(Ut),i=n.csp,o=n.prefixCls,a=n.layer,s="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(s=s.replace(/anticon/g,o)),a&&(s="@layer ".concat(a," {\n").concat(s,"\n}")),(0,r.useEffect)(function(){var e=cn(t.current);an(s,"@ant-design-icons",{prepend:!a,csp:i,attachTo:e})},[]),c=gn(u),l="icon should be icon definiton, but got ".concat(u),mn(c,"[@ant-design/icons] ".concat(l)),!gn(u))return null;var b=u;return b&&"function"==typeof b.icon&&(b=Kt(Kt({},b),{},{icon:b.icon(y.primaryColor,y.secondaryColor)})),yn(b.icon,"svg-".concat(b.name),Kt(Kt({className:d,onClick:p,style:f,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:v}))};Tn.displayName="IconReact",Tn.getTwoToneColors=function(){return Kt({},kn)},Tn.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;kn.primaryColor=t,kn.secondaryColor=n||bn(t),kn.calculated=!!n};const Sn=Tn;function On(e){var t=it(En(e),2),n=t[0],r=t[1];return Sn.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Cn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];On(Ct.primary);var xn=r.forwardRef(function(e,t){var n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,l=e.twoToneColor,u=st(e,Cn),d=r.useContext(Ut),p=d.prefixCls,f=void 0===p?"anticon":p,h=d.rootClassName,m=Fe()(h,f,at(at({},"".concat(f,"-").concat(i.name),!!i.name),"".concat(f,"-spin"),!!o||"loading"===i.name),n),g=s;void 0===g&&c&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=it(En(l),2),b=y[0],E=y[1];return r.createElement("span",et({role:"img","aria-label":i.name},u,{ref:t,tabIndex:g,onClick:c,className:m}),r.createElement(Sn,{icon:i,primaryColor:b,secondaryColor:E,style:v}))});xn.displayName="AntdIcon",xn.getTwoToneColor=function(){var e=Sn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},xn.setTwoToneColor=On;const Nn=xn;var In=function(e,t){return r.createElement(Nn,et({},e,{ref:t,icon:tt}))};const An=r.forwardRef(In);var Dn=function(e,t){return r.createElement(Nn,et({},e,{ref:t,icon:Ne}))};const Rn=r.forwardRef(Dn);var Ln=function(e,t){return r.createElement(Nn,et({},e,{ref:t,icon:Se}))};const Pn=r.forwardRef(Ln),jn=(e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)},$n=(e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)},Fn=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Mn(e,t,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}const qn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(mn(!a,"Warning: There may be circular references"),a)return!1;if(t===i)return!0;if(n&&o>1)return!1;r.add(t);var s=o+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],i[c],s))return!1;return!0}if(t&&i&&"object"===Ke(t)&&"object"===Ke(i)){var l=Object.keys(t);return l.length===Object.keys(i).length&&l.every(function(n){return e(t[n],i[n],s)})}return!1}(e,t)};function Vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ot(r.key),r)}}function Bn(e,t,n){return t&&zn(e.prototype,t),n&&zn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gn(e){return e.join("%")}var Qn=function(){function e(t){Vn(this,e),at(this,"instanceId",void 0),at(this,"cache",new Map),at(this,"extracted",new Set),this.instanceId=t}return Bn(e,[{key:"get",value:function(e){return this.opGet(Gn(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Gn(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const Un=Qn;var Hn="data-token-hash",Kn="data-css-hash",Wn="__cssinjs_instance__";var Yn=r.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Kn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[Wn]=t[Wn]||e,t[Wn]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Kn,"]"))).forEach(function(t){var n,i=t.getAttribute(Kn);r[i]?t[Wn]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0})}return new Un(e)}(),defaultCache:!0});const Xn=Yn;new RegExp("CALC_UNIT","g");var Jn=function(){function e(){Vn(this,e),at(this,"cache",void 0),at(this,"keys",void 0),at(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Bn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){var t;i=i?null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0}),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var n=it(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),o=it(i,1)[0];this.delete(o)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,i){if(i===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var o=a.get(e);o?o.map||(o.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var i=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();at(Jn,"MAX_CACHE_SIZE",20),at(Jn,"MAX_CACHE_OFFSET",5);var Zn=0,er=function(){function e(t){Vn(this,e),at(this,"derivatives",void 0),at(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Zn,0===t.length&&t.length,Zn+=1}return Bn(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),tr=new Jn,nr=new WeakMap,rr={},ir=new WeakMap;function or(e){var t=ir.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof er?t+=r.id:r&&"object"===Ke(r)?t+=or(r):t+=r}),t=Fn(t),ir.set(e,t)),t}function ar(e,t){return Fn("".concat(t,"_").concat(or(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var sr=Wt();function cr(e){return"number"==typeof e?"".concat(e,"px"):e}function lr(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Kt(Kt({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},at(at({},Hn,t),Kn,n)),i=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var ur=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},dr=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=it(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},pr=function(e,t,n){var r={},i={};return Object.entries(e).forEach(function(e){var t,o,a=it(e,2),s=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])i[s]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(o=n.ignore)&&void 0!==o&&o[s])){var l,u=ur(s,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[s]?String(c):"".concat(c,"px"),i[s]="var(".concat(u,")")}}),[i,dr(r,t,{scope:null==n?void 0:n.scope})]},fr=Wt()?r.useLayoutEffect:r.useEffect,hr=function(e,t){var n=r.useRef(!0);fr(function(){return e(n.current)},t),fr(function(){return n.current=!1,function(){n.current=!0}},[])},mr=function(e,t){hr(function(t){if(!t)return e()},t)};const gr=hr;var vr=Kt({},r).useInsertionEffect;const yr=vr?function(e,t,n){return vr(function(){return e(),t()},n)}:function(e,t,n){r.useMemo(e,n),gr(function(){return t(!0)},n)},br=void 0!==Kt({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function Er(e,t,n,i,o){var a=r.useContext(Xn).cache,s=Gn([e].concat(je(t))),c=br([s]),l=function(e){a.opUpdate(s,function(t){var r=it(t||[void 0,void 0],2),i=r[0],o=[void 0===i?0:i,r[1]||n()];return e?e(o):o})};r.useMemo(function(){l()},[s]);var u=a.opGet(s)[1];return yr(function(){null==o||o(u)},function(e){return l(function(t){var n=it(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(u)),[r+1,i]}),function(){a.opUpdate(s,function(t){var n=it(t||[],2),r=n[0],o=void 0===r?0:r,l=n[1];return 0==o-1?(c(function(){!e&&a.opGet(s)||null==i||i(l,!1)}),null):[o-1,l]})}},[s]),u}var _r={},wr=new Map;var kr="token";function Tr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,r.useContext)(Xn),o=i.cache.instanceId,a=i.container,s=n.salt,c=void 0===s?"":s,l=n.override,u=void 0===l?_r:l,d=n.formatToken,p=n.getComputedToken,f=n.cssVar,h=function(e,n){for(var r=nr,i=0;i<n.length;i+=1){var o=n[i];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(rr)||r.set(rr,Object.assign.apply(Object,[{}].concat(je(t)))),r.get(rr)}(0,t),m=or(h),g=or(u),v=f?or(f):"",y=Er(kr,[c,e.id,m,g,v],function(){var t,n=p?p(h,u,e):function(e,t,n,r){var i=Kt(Kt({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i}(h,u,e,d),r=Kt({},n),i="";if(f){var o=it(pr(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=o[0],i=o[1]}var a=ar(n,c);n._tokenKey=a,r._tokenKey=ar(r,c);var s=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=s,function(e){wr.set(e,(wr.get(e)||0)+1)}(s);var l="".concat("css","-").concat(Fn(a));return n._hashId=l,[n,l,r,i,(null==f?void 0:f.key)||""]},function(e){!function(e,t){wr.set(e,(wr.get(e)||0)-1);var n=new Set;wr.forEach(function(e,t){e<=0&&n.add(t)}),wr.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Hn,'="').concat(e,'"]')).forEach(function(e){var n;e[Wn]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),wr.delete(e)})}(e[0]._themeKey,o)},function(e){var t=it(e,4),n=t[0],r=t[3];if(f&&r){var i=an(r,Fn("css-variables-".concat(n._themeKey)),{mark:Kn,prepend:"queue",attachTo:a,priority:-999});i[Wn]=o,i.setAttribute(Hn,n._themeKey)}});return y}const Sr={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Or="comm",Cr="rule",xr="decl",Nr=Math.abs,Ir=String.fromCharCode;function Ar(e){return e.trim()}function Dr(e,t,n){return e.replace(t,n)}function Rr(e,t,n){return e.indexOf(t,n)}function Lr(e,t){return 0|e.charCodeAt(t)}function Pr(e,t,n){return e.slice(t,n)}function jr(e){return e.length}function $r(e,t){return t.push(e),e}function Fr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Mr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case xr:return e.return=e.return||e.value;case Or:return"";case"@keyframes":return e.return=e.value+"{"+Fr(e.children,r)+"}";case Cr:if(!jr(e.value=e.props.join(",")))return""}return jr(n=Fr(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var qr=1,Vr=1,zr=0,Br=0,Gr=0,Qr="";function Ur(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:qr,column:Vr,length:a,return:"",siblings:s}}function Hr(){return Gr=Br>0?Lr(Qr,--Br):0,Vr--,10===Gr&&(Vr=1,qr--),Gr}function Kr(){return Gr=Br<zr?Lr(Qr,Br++):0,Vr++,10===Gr&&(Vr=1,qr++),Gr}function Wr(){return Lr(Qr,Br)}function Yr(){return Br}function Xr(e,t){return Pr(Qr,e,t)}function Jr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Zr(e){return Ar(Xr(Br-1,ni(91===e?e+2:40===e?e+1:e)))}function ei(e){for(;(Gr=Wr())&&Gr<33;)Kr();return Jr(e)>2||Jr(Gr)>3?"":" "}function ti(e,t){for(;--t&&Kr()&&!(Gr<48||Gr>102||Gr>57&&Gr<65||Gr>70&&Gr<97););return Xr(e,Yr()+(t<6&&32==Wr()&&32==Kr()))}function ni(e){for(;Kr();)switch(Gr){case e:return Br;case 34:case 39:34!==e&&39!==e&&ni(Gr);break;case 40:41===e&&ni(e);break;case 92:Kr()}return Br}function ri(e,t){for(;Kr()&&e+Gr!==57&&(e+Gr!==84||47!==Wr()););return"/*"+Xr(t,Br-1)+"*"+Ir(47===e?e:Kr())}function ii(e){for(;!Jr(Wr());)Kr();return Xr(e,Br)}function oi(e){return function(e){return Qr="",e}(ai("",null,null,null,[""],e=function(e){return qr=Vr=1,zr=jr(Qr=e),Br=0,[]}(e),0,[0],e))}function ai(e,t,n,r,i,o,a,s,c){for(var l=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",E=i,_=o,w=r,k=b;g;)switch(h=y,y=Kr()){case 40:if(108!=h&&58==Lr(k,d-1)){-1!=Rr(k+=Dr(Zr(y),"&","&\f"),"&\f",Nr(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Zr(y);break;case 9:case 10:case 13:case 32:k+=ei(h);break;case 92:k+=ti(Yr()-1,7);continue;case 47:switch(Wr()){case 42:case 47:$r(ci(ri(Kr(),Yr()),t,n,c),c),5!=Jr(h||1)&&5!=Jr(Wr()||1)||!jr(k)||" "===Pr(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*m:s[l++]=jr(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=Dr(k,/\f/g,"")),f>0&&(jr(k)-d||0===m&&47===h)&&$r(f>32?li(k+";",r,n,d-1,c):li(Dr(k," ","")+";",r,n,d-2,c),c);break;case 59:k+=";";default:if($r(w=si(k,t,n,l,u,i,s,b,E=[],_=[],d,o),o),123===y)if(0===u)ai(k,t,w,w,E,o,d,s,_);else{switch(p){case 99:if(110===Lr(k,3))break;case 108:if(97===Lr(k,2))break;default:u=0;case 100:case 109:case 115:}u?ai(e,w,w,r&&$r(si(e,w,w,0,0,i,s,b,i,E=[],d,_),_),i,_,d,s,r?E:_):ai(k,w,w,w,[""],_,0,s,_)}}l=u=f=0,m=v=1,b=k="",d=a;break;case 58:d=1+jr(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Hr())continue;switch(k+=Ir(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[l++]=(jr(k)-1)*v,v=1;break;case 64:45===Wr()&&(k+=Zr(Kr())),p=Wr(),u=d=jr(b=k+=ii(Yr())),y++;break;case 45:45===h&&2==jr(k)&&(m=0)}}return o}function si(e,t,n,r,i,o,a,s,c,l,u,d){for(var p=i-1,f=0===i?o:[""],h=function(e){return e.length}(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=Pr(e,p+1,p=Nr(g=a[m])),E=e;y<h;++y)(E=Ar(g>0?f[y]+" "+b:Dr(b,/&\f/g,f[y])))&&(c[v++]=E);return Ur(e,t,n,0===i?Cr:s,c,l,u,d)}function ci(e,t,n,r){return Ur(e,t,n,Or,Ir(Gr),Pr(e,2,-2),0,r)}function li(e,t,n,r,i){return Ur(e,t,n,xr,Pr(e,0,r),Pr(e,r+1,-1),r,i)}var ui,di="data-ant-cssinjs-cache-path",pi="_FILE_STYLE__",fi=!0;var hi="_multi_value_";function mi(e){return Fr(oi(e),Mr).replace(/\{%%%\:[^;];}/g,";")}var gi=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,c=n.layer,l=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,p=(n.linters,""),f={};function h(t){var r=t.getName(s);if(!f[r]){var i=it(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];f[r]="@keyframes ".concat(t.getName(s)).concat(i)}}var m=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return m.forEach(function(t){var r="string"!=typeof t||i?t:{};if("string"==typeof r)p+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=d.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(c).forEach(function(t){var r=c[t];if("object"!==Ke(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Ke(e)&&e&&("_skip_check_"in e||hi in e)}(r)){var u;function _(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;Sr[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(s)),p+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===Ke(r)&&null!=r&&r[hi]&&Array.isArray(d)?d.forEach(function(e){_(t,e)}):_(t,d)}else{var m=!1,g=t.trim(),v=!1;(i||o)&&s?g.startsWith("@")?m=!0:g=function(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",o=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(o).concat(i).concat(r.slice(o.length))].concat(je(n.slice(1))).join(" ")}).join(",")}("&"===g?"":t,s,l):!i||s||"&"!==g&&""!==g||(g="",v=!0);var y=it(e(r,n,{root:v,injectHash:m,parentSelectors:[].concat(je(a),[g])}),2),b=y[0],E=y[1];f=Kt(Kt({},f),E),p+="".concat(g).concat(b)}})}}),i?c&&(p&&(p="@layer ".concat(c.name," {").concat(p,"}")),c.dependencies&&(f["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):p="{".concat(p,"}"),[p,f]};function vi(e,t){return Fn("".concat(e.join("%")).concat(t))}function yi(){return null}var bi="style";function Ei(e,t){var n=e.token,i=e.path,o=e.hashId,a=e.layer,s=e.nonce,c=e.clientOnly,l=e.order,u=void 0===l?0:l,d=r.useContext(Xn),p=d.autoClear,f=(d.mock,d.defaultCache),h=d.hashPriority,m=d.container,g=d.ssrInline,v=d.transformers,y=d.linters,b=d.cache,E=d.layer,_=n._tokenKey,w=[_];E&&w.push("layer"),w.push.apply(w,je(i));var k=sr,T=Er(bi,w,function(){var e=w.join("|");if(function(e){return function(){if(!ui&&(ui={},Wt())){var e=document.createElement("div");e.className=di,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=it(e.split(":"),2),n=t[0],r=t[1];ui[n]=r});var n,r=document.querySelector("style[".concat(di,"]"));r&&(fi=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!ui[e]}(e)){var n=function(e){var t=ui[e],n=null;if(t&&Wt())if(fi)n=pi;else{var r=document.querySelector("style[".concat(Kn,'="').concat(ui[e],'"]'));r?n=r.innerHTML:delete ui[e]}return[n,t]}(e),r=it(n,2),s=r[0],l=r[1];if(s)return[s,_,l,{},c,u]}var d=t(),p=it(gi(d,{hashId:o,hashPriority:h,layer:E?a:void 0,path:i.join("-"),transformers:v,linters:y}),2),f=p[0],m=p[1],g=mi(f),b=vi(w,g);return[g,_,b,m,c,u]},function(e,t){var n=it(e,3)[2];(t||p)&&sr&&on(n,{mark:Kn,attachTo:m})},function(e){var t=it(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(k&&n!==pi){var o={mark:Kn,prepend:!E&&"queue",attachTo:m,priority:u},a="function"==typeof s?s():s;a&&(o.csp={nonce:a});var c=[],l=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?c.push(e):l.push(e)}),c.forEach(function(e){an(mi(i[e]),"_layer-".concat(e),Kt(Kt({},o),{},{prepend:!0}))});var d=an(n,r,o);d[Wn]=b.instanceId,d.setAttribute(Hn,_),l.forEach(function(e){an(mi(i[e]),"_effect-".concat(e),o)})}}),S=it(T,3),O=S[0],C=S[1],x=S[2];return function(e){var t;return t=g&&!k&&f?r.createElement("style",et({},at(at({},Hn,C),Kn,x),{dangerouslySetInnerHTML:{__html:O}})):r.createElement(yi,null),r.createElement(r.Fragment,null,t,e)}}var _i="cssVar";at(at(at({},bi,function(e,t,n){var r=it(e,6),i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=(n||{}).plain;if(c)return null;var d=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return d=lr(i,o,a,p,u),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=lr(mi(s[e]),o,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}}),[l,a,d]}),kr,function(e,t,n){var r=it(e,5),i=r[2],o=r[3],a=r[4],s=(n||{}).plain;if(!o)return null;var c=i._tokenKey;return[-999,c,lr(o,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}),_i,function(e,t,n){var r=it(e,4),i=r[1],o=r[2],a=r[3],s=(n||{}).plain;return i?[-999,o,lr(i,a,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null});var wi=function(){function e(t,n){Vn(this,e),at(this,"name",void 0),at(this,"style",void 0),at(this,"_keyframe",!0),this.name=t,this.style=n}return Bn(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const ki=wi;function Ti(e){return e.notSplit=!0,e}function Si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oi(e,t){return Oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oi(e,t)}function Ci(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&&Oi(e,t)}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(e)}function Ni(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ni=function(){return!!e})()}function Ii(e){var t=Ni();return function(){var n,r=xi(e);if(t){var i=xi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Si(e)}(this,n)}}Ti(["borderTop","borderBottom"]),Ti(["borderTop"]),Ti(["borderBottom"]),Ti(["borderLeft","borderRight"]),Ti(["borderLeft"]),Ti(["borderRight"]);const Ai=Bn(function e(){Vn(this,e)});var Di="CALC_UNIT",Ri=new RegExp(Di,"g");function Li(e){return"number"==typeof e?"".concat(e).concat(Di):e}var Pi=function(e){Ci(n,e);var t=Ii(n);function n(e,r){var i;Vn(this,n),at(Si(i=t.call(this)),"result",""),at(Si(i),"unitlessCssVar",void 0),at(Si(i),"lowPriority",void 0);var o=Ke(e);return i.unitlessCssVar=r,e instanceof n?i.result="(".concat(e.result,")"):"number"===o?i.result=Li(e):"string"===o&&(i.result=e),i}return Bn(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Li(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Li(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Ri,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Ai);const ji=function(e){Ci(n,e);var t=Ii(n);function n(e){var r;return Vn(this,n),at(Si(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return Bn(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Ai),$i=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Fi(e){var t=r.useRef();t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return n}function Mi(e){var t=r.useRef(!1),n=it(r.useState(e),2),i=n[0],o=n[1];return r.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[i,function(e,n){n&&t.current||o(e)}]}function qi(e){return void 0!==e}function Vi(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=it(Mi(function(){return qi(i)?i:qi(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),2),c=s[0],l=s[1],u=void 0!==i?i:c,d=a?a(u):u,p=Fi(o),f=it(Mi([u]),2),h=f[0],m=f[1];return mr(function(){var e=h[0];c!==e&&p(c,e)},[h]),mr(function(){qi(i)||l(i)},[i]),[d,Fi(function(e,t){l(e,t),m([u],t)})]}var zi=n(524),Bi=Number(r.version.split(".")[0]),Gi=function(e,t){"function"==typeof e?e(t):"object"===Ke(e)&&e&&"current"in e&&(e.current=t)},Qi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){Gi(t,e)})}},Ui=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mn(function(){return Qi.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},Hi=function(e){var t,n;if(!e)return!1;if(Ki(e)&&Bi>=19)return!0;var r=(0,zi.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===zi.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===zi.ForwardRef)};function Ki(e){return(0,r.isValidElement)(e)&&!Je(e)}var Wi=function(e){if(e&&Ki(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Yi(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Xi(e,t,n,r){if(!t.length)return n;var i,o=function(e){return nt(e)||Le(e)||Pe(e)||rt()}(t),a=o[0],s=o.slice(1);return i=e||"number"!=typeof a?Array.isArray(e)?je(e):Kt({},e):[],r&&void 0===n&&1===s.length?delete i[a][s[0]]:i[a]=Xi(i[a],s,n,r),i}function Ji(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Yi(e,t.slice(0,-1))?e:Xi(e,t,n,r)}function Zi(e){return Array.isArray(e)?[]:{}}var eo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function to(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Zi(t[0]);return t.forEach(function(e){!function t(n,i){var o,a=new Set(i),s=Yi(e,n),c=Array.isArray(s);if(c||"object"===Ke(o=s)&&null!==o&&Object.getPrototypeOf(o)===Object.prototype){if(!a.has(s)){a.add(s);var l=Yi(r,n);c?r=Ji(r,n,[]):l&&"object"===Ke(l)||(r=Ji(r,n,Zi(s))),eo(s).forEach(function(e){t([].concat(je(n),[e]),a)})}}else r=Ji(r,n,s)}([])}),r}const no=function(e,t,n,r){var i=Kt({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=it(e,2),r=n[0],o=n[1];(null!=i&&i[r]||null!=i&&i[o])&&(null!==(t=i[o])&&void 0!==t||(i[o]=null==i?void 0:i[r]))});var o=Kt(Kt({},n),i);return Object.keys(o).forEach(function(e){o[e]===t[e]&&delete o[e]}),o};var ro="undefined"!=typeof CSSINJS_STATISTIC,io=!0;function oo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ro)return Object.assign.apply(Object,[{}].concat(t));io=!1;var r={};return t.forEach(function(e){"object"===Ke(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),io=!0,r}var ao={};function so(){}const co=function(e,t,n){var r;return"function"==typeof n?n(oo(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}};var lo=function(){function e(){Vn(this,e),at(this,"map",new Map),at(this,"objectIDMap",new WeakMap),at(this,"nextID",0),at(this,"lastAccessBeat",new Map),at(this,"accessBeat",0)}return Bn(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===Ke(e)?"obj_".concat(t.getObjectID(e)):"".concat(Ke(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}(),uo=new lo;const po=function(){return{}},fo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ho=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),mo=(e,t)=>({outline:`${cr(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),go=(e,t)=>({"&:focus-visible":mo(e,t)}),vo={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},yo=Object.assign(Object.assign({},vo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),bo={token:yo,override:{override:yo},hashed:!0},Eo=i().createContext(bo);function _o(e){return(e+8)/e}const wo=(e,t)=>new pt(e).setA(t).toRgbString(),ko=(e,t)=>new pt(e).darken(t).toHexString(),To=e=>{const t=vt(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},So=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:wo(r,.88),colorTextSecondary:wo(r,.65),colorTextTertiary:wo(r,.45),colorTextQuaternary:wo(r,.25),colorFill:wo(r,.15),colorFillSecondary:wo(r,.06),colorFillTertiary:wo(r,.04),colorFillQuaternary:wo(r,.02),colorBgSolid:wo(r,1),colorBgSolidHover:wo(r,.75),colorBgSolidActive:wo(r,.95),colorBgLayout:ko(n,4),colorBgContainer:ko(n,0),colorBgElevated:ko(n,0),colorBgSpotlight:wo(r,.85),colorBgBlur:"transparent",colorBorder:ko(n,15),colorBorderSecondary:ko(n,6)}},Oo=(Co=function(e){yt.pink=yt.magenta,Dt.pink=Dt.magenta;const t=Object.keys(vo).map(t=>{const n=e[t]===yt[t]?Dt[t]:vt(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),p=t(i),f=t(o),h=t(a),m=n(c,l),g=t(e.colorLink||e.colorInfo),v=new pt(f[1]).mix(new pt(f[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:v,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new pt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:To,generateNeutralColorPalettes:So})),(e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,i=e*Math.pow(Math.E,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:_o(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},(e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}})(r))}(e))},xo=Array.isArray(Co)?Co:[Co],tr.has(xo)||tr.set(xo,new er(xo)),tr.get(xo));var Co,xo;const No=Oo;function Io(e){return e>=0&&e<=255}const Ao=function(e,t){const{r:n,g:r,b:i,a:o}=new pt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new pt(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),o=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(Io(t)&&Io(o)&&Io(l))return new pt({r:t,g:o,b:l,a:Math.round(100*e)/100}).toRgbString()}return new pt({r:n,g:r,b:i,a:1}).toRgbString()};function Do(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(yo).forEach(e=>{delete r[e]});const i=Object.assign(Object.assign({},n),r);if(!1===i.motion){const e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ao(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ao(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ao(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:3*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ao(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new pt("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new pt("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new pt("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Ro=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Lo={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Po={motionBase:!0,motionUnit:!0},jo={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},$o=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=Ro(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=Do(a),o&&Object.entries(o).forEach(([e,t])=>{const{theme:n}=t,r=Ro(t,["theme"]);let i=r;n&&(i=$o(Object.assign(Object.assign({},a),r),{override:r},n)),a[e]=i}),a};function Fo(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=i().useContext(Eo),a=`5.29.3-${t||""}`,s=n||No,[c,l,u]=Tr(s,[yo,e],{salt:a,override:r,getComputedToken:$o,formatToken:Do,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Lo,ignore:Po,preserve:jo}});return[s,u,t?l:"",c,o]}const{genStyleHooks:Mo,genComponentStyleHook:qo,genSubStyleComponent:Vo}=function(e){var t=e.useCSP,n=void 0===t?po:t,o=e.useToken,a=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,l=e.getCompUnitless;function u(t,r,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],p=it(d,1)[0],f=d.join("-"),h=e.layer||{name:"antd"};return function(e){var t,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=o(),v=g.theme,y=g.realToken,b=g.hashId,E=g.token,_=g.cssVar,w=a(),k=w.rootPrefixCls,T=w.iconPrefixCls,S=n(),O=_?"css":"js",C=(t=function(){var e=new Set;return _&&Object.keys(u.unitless||{}).forEach(function(t){e.add(ur(t,_.prefix)),e.add(ur(t,$i(p,_.prefix)))}),function(e,t){var n="css"===e?Pi:ji;return function(e){return new n(e,t)}}(O,e)},d=[O,p,null==_?void 0:_.prefix],i().useMemo(function(){var e=uo.get(d);if(e)return e;var n=t();return uo.set(d,n),n},d)),x=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return cr(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return cr(e)}).join(","),")")}}}(O),N=x.max,I=x.min,A={theme:v,token:E,hashId:b,nonce:function(){return S.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};return"function"==typeof s&&Ei(Kt(Kt({},A),{},{clientOnly:!1,path:["Shared",k]}),function(){return s(E,{prefix:{rootPrefixCls:k,iconPrefixCls:T},csp:S})}),[Ei(Kt(Kt({},A),{},{path:[f,e,T]}),function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=so;return ro&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return io&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;ao[e]={global:Array.from(t),component:Kt(Kt({},null===(r=ao[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(E),n=t.token,i=t.flush,o=co(p,y,l),a=".".concat(e),s=no(p,y,o,{deprecatedTokens:u.deprecatedTokens});_&&o&&"object"===Ke(o)&&Object.keys(o).forEach(function(e){o[e]="var(".concat(ur(e,$i(p,_.prefix)),")")});var d=oo(n,{componentCls:a,prefixCls:e,iconCls:".".concat(T),antCls:".".concat(k),calc:C,max:N,min:I},_?o:s),f=r(d,{hashId:b,prefixCls:e,rootPrefixCls:k,iconPrefixCls:T});i(p,s);var h="function"==typeof c?c(d,e,m,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}),b]}}return{genStyleHooks:function(e,t,n,a){var s=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},p=Kt(Kt({},"function"==typeof l?l(e):{}),{},at({},c("zIndexPopup"),!0));Object.keys(d).forEach(function(e){p[c(e)]=d[e]});var f=Kt(Kt({},a),{},{unitless:p,prefixToken:c}),h=u(e,t,n,f),m=function(e,t,n){var a=n.unitless,s=n.injectStyle,c=void 0===s||s,l=n.prefixToken,u=n.ignore,d=function(i){var s=i.rootCls,c=i.cssVar,d=void 0===c?{}:c,p=o().realToken;return function(e,t){var n=e.key,i=e.prefix,o=e.unitless,a=e.ignore,s=e.token,c=e.scope,l=void 0===c?"":c,u=(0,r.useContext)(Xn),d=u.cache.instanceId,p=u.container,f=s._tokenKey,h=[].concat(je(e.path),[n,l,f]),m=Er(_i,h,function(){var e=t(),r=it(pr(e,n,{prefix:i,unitless:o,ignore:a,scope:l}),2),s=r[0],c=r[1];return[s,c,vi(h,c),n]},function(e){var t=it(e,3)[2];sr&&on(t,{mark:Kn,attachTo:p})},function(e){var t=it(e,3),r=t[1],i=t[2];if(r){var o=an(r,i,{mark:Kn,prepend:"queue",attachTo:p,priority:-999});o[Wn]=d,o.setAttribute(Hn,n)}})}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:p,scope:s},function(){var r=co(e,p,t),i=no(e,p,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(function(e){i[l(e)]=i[e],delete i[e]}),i}),null};return function(t){var n=o().cssVar;return[function(r){return c&&n?i().createElement(i().Fragment,null,i().createElement(d,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]}}(s,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=it(h(e,t),2)[1],r=it(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,Kt({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(Be);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Fo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,r.useContext)(Be);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[r,{"&":r},(i=null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:Ve,{[`.${i}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${i} .${i}-icon`]:{display:"block"}})})];var i},getCommonStyle:(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},getCompUnitless:()=>Lo}),zo=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:c}=e,l=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${o}px ${l}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},Bo=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Go=Mo("Layout",e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:cr(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},zo,{deprecatedTokens:Bo}),Qo=Mo(["Layout","Sider"],e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:p,lightSiderBg:f,lightTriggerColor:h,lightTriggerBg:m,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:cr(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${cr(p)} ${cr(p)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${cr(p)} 0 0 ${cr(p)}`}},"&-light":{background:f,[`${t}-trigger`]:{color:h,background:m},[`${t}-zero-width-trigger`]:{color:h,background:m,border:`1px solid ${g}`,borderInlineStart:0}}}}},zo,{deprecatedTokens:Bo});const Uo={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ho=r.createContext({}),Ko=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Wo=r.forwardRef((e,t)=>{const{prefixCls:n,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:c="dark",style:l={},collapsible:u=!1,reverseArrow:d=!1,width:p=200,collapsedWidth:f=80,zeroWidthTriggerStyle:h,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,r.useContext)(He),[E,_]=(0,r.useState)("collapsed"in e?e.collapsed:s),[w,k]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const T=(t,n)=>{"collapsed"in e||_(t),null==g||g(t,n)},{getPrefixCls:S,direction:O}=(0,r.useContext)(Be),C=S("layout-sider",n),[x,N,I]=Qo(C),A=(0,r.useRef)(null);A.current=e=>{k(e.matches),null==v||v(e.matches),E!==e.matches&&T(e.matches,"responsive")},(0,r.useEffect)(()=>{function e(e){var t;return null===(t=A.current)||void 0===t?void 0:t.call(A,e)}let t;return void 0!==(null===window||void 0===window?void 0:window.matchMedia)&&m&&m in Uo&&(t=window.matchMedia(`screen and (max-width: ${Uo[m]})`),jn(t,e),e(t)),()=>{$n(t,e)}},[m]),(0,r.useEffect)(()=>{const e=Ko("ant-sider-");return b.addSider(e),()=>b.removeSider(e)},[]);const D=()=>{T(!E,"clickTrigger")},R=Me(y,["collapsed"]),L=E?f:p,P=(j=L,!Number.isNaN(Number.parseFloat(j))&&Number.isFinite(Number(j))?`${L}px`:String(L));var j;const $=0===Number.parseFloat(String(f||0))?r.createElement("span",{onClick:D,className:Fe()(`${C}-zero-width-trigger`,`${C}-zero-width-trigger-${d?"right":"left"}`),style:h},o||r.createElement(An,null)):null,F="rtl"===O==!d,M={expanded:F?r.createElement(Pn,null):r.createElement(Rn,null),collapsed:F?r.createElement(Rn,null):r.createElement(Pn,null)}[E?"collapsed":"expanded"],q=null!==o?$||r.createElement("div",{className:`${C}-trigger`,onClick:D,style:{width:P}},o||M):null,V=Object.assign(Object.assign({},l),{flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P}),z=Fe()(C,`${C}-${c}`,{[`${C}-collapsed`]:!!E,[`${C}-has-trigger`]:u&&null!==o&&!$,[`${C}-below`]:!!w,[`${C}-zero-width`]:0===Number.parseFloat(P)},i,N,I),B=r.useMemo(()=>({siderCollapsed:E}),[E]);return x(r.createElement(Ho.Provider,{value:B},r.createElement("aside",Object.assign({className:z},R,{style:V,ref:t}),r.createElement("div",{className:`${C}-children`},a),u||w&&$?q:null)))}),Yo=Wo;var Xo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Jo({suffixCls:e,tagName:t,displayName:n}){return n=>r.forwardRef((i,o)=>r.createElement(n,Object.assign({ref:o,suffixCls:e,tagName:t},i)))}const Zo=r.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:i,className:o,tagName:a}=e,s=Xo(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=r.useContext(Be),l=c("layout",n),[u,d,p]=Go(l),f=i?`${l}-${i}`:l;return u(r.createElement(a,Object.assign({className:Fe()(n||f,o,d,p),ref:t},s)))}),ea=r.forwardRef((e,t)=>{const{direction:n}=r.useContext(Be),[i,o]=r.useState([]),{prefixCls:a,className:s,rootClassName:c,children:l,hasSider:u,tagName:d,style:p}=e,f=Me(Xo(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,className:m,style:g}=Ue("layout"),v=h("layout",a),y=function(e,t,n){return"boolean"==typeof n?n:!!e.length||Ze(t).some(e=>e.type===Yo)}(i,l,u),[b,E,_]=Go(v),w=Fe()(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:"rtl"===n},m,s,c,E,_),k=r.useMemo(()=>({siderHook:{addSider:e=>{o(t=>[].concat(je(t),[e]))},removeSider:e=>{o(t=>t.filter(t=>t!==e))}}}),[]);return b(r.createElement(He.Provider,{value:k},r.createElement(d,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g),p)},f),l)))}),ta=Jo({tagName:"div",displayName:"Layout"})(ea),na=Jo({suffixCls:"header",tagName:"header",displayName:"Header"})(Zo),ra=Jo({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Zo),ia=Jo({suffixCls:"content",tagName:"main",displayName:"Content"})(Zo),oa=ta;oa.Header=na,oa.Footer=ra,oa.Content=ia,oa.Sider=Yo,oa._InternalSiderContext=Ho;const aa=oa;var sa=n(5795),ca=n.n(sa);function la(e){return e instanceof HTMLElement||e instanceof SVGElement}function ua(e){var t,n=function(e){return e&&"object"===Ke(e)&&la(e.nativeElement)?e.nativeElement:la(e)?e:null}(e);return n||(e instanceof i().Component?null===(t=ca().findDOMNode)||void 0===t?void 0:t.call(ca(),e):null)}var da=r.createContext(null),pa=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),fa="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ha="undefined"!=typeof globalThis&&globalThis.Math===Math?globalThis:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ma="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ha):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},ga=["top","right","bottom","left","width","height","size","weight"],va="undefined"!=typeof MutationObserver,ya=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function i(){t&&(t=!1,e()),n&&a()}function o(){ma(i)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){fa&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),va?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){fa&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ga.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ba=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Ea=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ha},_a=Oa(0,0,0,0);function wa(e){return parseFloat(e)||0}function ka(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+wa(e["border-"+n+"-width"])},0)}var Ta="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Ea(e).SVGGraphicsElement}:function(e){return e instanceof Ea(e).SVGElement&&"function"==typeof e.getBBox};function Sa(e){return fa?Ta(e)?function(e){var t=e.getBBox();return Oa(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _a;var r=Ea(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=wa(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=wa(r.width),c=wa(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=ka(r,"left","right")+o),Math.round(c+a)!==n&&(c-=ka(r,"top","bottom")+a)),!function(e){return e===Ea(e).document.documentElement}(e)){var l=Math.round(s+o)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return Oa(i.left,i.top,s,c)}(e):_a}function Oa(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Ca=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Oa(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Sa(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),xa=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return ba(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);ba(this,{target:e,contentRect:n})},Na=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new pa,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ea(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Ca(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ea(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new xa(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ia="undefined"!=typeof WeakMap?new WeakMap:new pa,Aa=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ya.getInstance(),r=new Na(t,n,this);Ia.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Aa.prototype[e]=function(){var t;return(t=Ia.get(this))[e].apply(t,arguments)}});const Da=void 0!==ha.ResizeObserver?ha.ResizeObserver:Aa;var Ra=new Map,La=new Da(function(e){e.forEach(function(e){var t,n=e.target;null===(t=Ra.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),Pa=function(e){Ci(n,e);var t=Ii(n);function n(){return Vn(this,n),t.apply(this,arguments)}return Bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function ja(e,t){var n=e.children,i=e.disabled,o=r.useRef(null),a=r.useRef(null),s=r.useContext(da),c="function"==typeof n,l=c?n(o):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(l)&&Hi(l),p=d?Wi(l):null,f=Ui(p,o),h=function(){var e;return ua(o.current)||(o.current&&"object"===Ke(o.current)?ua(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||ua(a.current)};r.useImperativeHandle(t,function(){return h()});var m=r.useRef(e);m.current=e;var g=r.useCallback(function(e){var t=m.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,a=i.height,c=e.offsetWidth,l=e.offsetHeight,d=Math.floor(o),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==c||u.current.offsetHeight!==l){var f={width:d,height:p,offsetWidth:c,offsetHeight:l};u.current=f;var h=c===Math.round(o)?o:c,g=l===Math.round(a)?a:l,v=Kt(Kt({},f),{},{offsetWidth:h,offsetHeight:g});null==s||s(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return r.useEffect(function(){var e,t,n=h();return n&&!i&&(e=n,t=g,Ra.has(e)||(Ra.set(e,new Set),La.observe(e)),Ra.get(e).add(t)),function(){return function(e,t){Ra.has(e)&&(Ra.get(e).delete(t),Ra.get(e).size||(La.unobserve(e),Ra.delete(e)))}(n,g)}},[o.current,i]),r.createElement(Pa,{ref:a},d?r.cloneElement(l,{ref:f}):l)}const $a=r.forwardRef(ja);function Fa(e,t){var n=e.children;return("function"==typeof n?[n]:Ze(n)).map(function(n,i){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement($a,et({},e,{key:o,ref:0===i?t:void 0}),n)})}var Ma=r.forwardRef(Fa);Ma.Collection=function(e){var t=e.children,n=e.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(da),s=r.useCallback(function(e,t,r){i.current+=1;var s=i.current;o.current.push({size:e,element:t,data:r}),Promise.resolve().then(function(){s===i.current&&(null==n||n(o.current),o.current=[])}),null==a||a(e,t,r)},[n,a]);return r.createElement(da.Provider,{value:s},t)};const qa=Ma;var Va=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],za=void 0;function Ba(e,t){var n=e.prefixCls,i=e.invalidate,o=e.item,a=e.renderItem,s=e.responsive,c=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,p=e.style,f=e.children,h=e.display,m=e.order,g=e.component,v=void 0===g?"div":g,y=st(e,Va),b=s&&!h;function E(e){l(u,e)}r.useEffect(function(){return function(){E(null)}},[]);var _,w=a&&o!==za?a(o,{index:m}):f;i||(_={opacity:b?0:1,height:b?0:za,overflowY:b?"hidden":za,order:s?m:za,pointerEvents:b?"none":za,position:b?"absolute":za});var k={};b&&(k["aria-hidden"]=!0);var T=r.createElement(v,et({className:Fe()(!i&&n,d),style:Kt(Kt({},_),p)},k,y,{ref:t}),w);return s&&(T=r.createElement(qa,{onResize:function(e){E(e.offsetWidth)},disabled:c},T)),T}var Ga=r.forwardRef(Ba);Ga.displayName="Item";const Qa=Ga;var Ua=function(e){return+setTimeout(e,16)},Ha=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ua=function(e){return window.requestAnimationFrame(e)},Ha=function(e){return window.cancelAnimationFrame(e)});var Ka=0,Wa=new Map;function Ya(e){Wa.delete(e)}var Xa=function(e){var t=Ka+=1;return function n(r){if(0===r)Ya(t),e();else{var i=Ua(function(){n(r-1)});Wa.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Xa.cancel=function(e){var t=Wa.get(e);return Ya(e),Ha(t)};const Ja=Xa;function Za(e,t){var n=it(r.useState(t),2),i=n[0],o=n[1];return[i,Fi(function(t){e(function(){o(t)})})]}var es=i().createContext(null),ts=["component"],ns=["className"],rs=["className"],is=function(e,t){var n=r.useContext(es);if(!n){var i=e.component,o=void 0===i?"div":i,a=st(e,ts);return r.createElement(o,et({},a,{ref:t}))}var s=n.className,c=st(n,ns),l=e.className,u=st(e,rs);return r.createElement(es.Provider,{value:null},r.createElement(Qa,et({ref:t,className:Fe()(s,l)},c,u)))},os=r.forwardRef(is);os.displayName="RawItem";const as=os;var ss=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],cs="responsive",ls="invalidate";function us(e){return"+ ".concat(e.length," ...")}function ds(e,t){var n,i=e.prefixCls,o=void 0===i?"rc-overflow":i,a=e.data,s=void 0===a?[]:a,c=e.renderItem,l=e.renderRawItem,u=e.itemKey,d=e.itemWidth,p=void 0===d?10:d,f=e.ssr,h=e.style,m=e.className,g=e.maxCount,v=e.renderRest,y=e.renderRawRest,b=e.prefix,E=e.suffix,_=e.component,w=void 0===_?"div":_,k=e.itemComponent,T=e.onVisibleChange,S=st(e,ss),O="full"===f,C=(n=r.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)Ja(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,sa.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})})),n.current.push(e)}),x=it(Za(C,null),2),N=x[0],I=x[1],A=N||0,D=it(Za(C,new Map),2),R=D[0],L=D[1],P=it(Za(C,0),2),j=P[0],$=P[1],F=it(Za(C,0),2),M=F[0],q=F[1],V=it(Za(C,0),2),z=V[0],B=V[1],G=it(Za(C,0),2),Q=G[0],U=G[1],H=it((0,r.useState)(null),2),K=H[0],W=H[1],Y=it((0,r.useState)(null),2),X=Y[0],J=Y[1],Z=r.useMemo(function(){return null===X&&O?Number.MAX_SAFE_INTEGER:X||0},[X,N]),ee=it((0,r.useState)(!1),2),te=ee[0],ne=ee[1],re="".concat(o,"-item"),ie=Math.max(j,M),oe=g===cs,ae=s.length&&oe,se=g===ls,ce=ae||"number"==typeof g&&s.length>g,le=(0,r.useMemo)(function(){var e=s;return ae?e=null===N&&O?s:s.slice(0,Math.min(s.length,A/p)):"number"==typeof g&&(e=s.slice(0,g)),e},[s,p,N,g,ae]),ue=(0,r.useMemo)(function(){return ae?s.slice(Z+1):s.slice(le.length)},[s,le,ae,Z]),de=(0,r.useCallback)(function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t},[u]),pe=(0,r.useCallback)(c||function(e){return e},[c]);function fe(e,t,n){(X!==e||void 0!==t&&t!==K)&&(J(e),n||(ne(e<s.length-1),null==T||T(e)),void 0!==t&&W(t))}function he(e,t){L(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function me(e){return R.get(de(le[e],e))}gr(function(){if(A&&"number"==typeof ie&&le){var e=z+Q,t=le.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var i=me(r);if(O&&(i=i||0),void 0===i){fe(r-1,void 0,!0);break}if(e+=i,0===n&&e<=A||r===n-1&&e+me(n)<=A){fe(n,null);break}if(e+ie>A){fe(r-1,e-i-Q+M);break}}E&&me(0)+Q>A&&W(null)}},[A,R,M,z,Q,de,le]);var ge=te&&!!ue.length,ve={};null!==K&&ae&&(ve={position:"absolute",left:K,top:0});var ye={prefixCls:re,responsive:ae,component:k,invalidate:se},be=l?function(e,t){var n=de(e,t);return r.createElement(es.Provider,{key:n,value:Kt(Kt({},ye),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=Z})},l(e,t))}:function(e,t){var n=de(e,t);return r.createElement(Qa,et({},ye,{order:t,key:n,item:e,renderItem:pe,itemKey:n,registerSize:he,display:t<=Z}))},Ee={order:ge?Z:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){q(t),$(M)},display:ge},_e=v||us,we=y?r.createElement(es.Provider,{value:Kt(Kt({},ye),Ee)},y(ue)):r.createElement(Qa,et({},ye,Ee),"function"==typeof _e?_e(ue):_e),ke=r.createElement(w,et({className:Fe()(!se&&o,m),style:h,ref:t},S),b&&r.createElement(Qa,et({},ye,{responsive:oe,responsiveDisabled:!ae,order:-1,className:"".concat(re,"-prefix"),registerSize:function(e,t){B(t)},display:!0}),b),le.map(be),ce?we:null,E&&r.createElement(Qa,et({},ye,{responsive:oe,responsiveDisabled:!ae,order:Z,className:"".concat(re,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:ve}),E));return oe?r.createElement(qa,{onResize:function(e,t){I(t.clientWidth)},disabled:!ae},ke):ke}var ps=r.forwardRef(ds);ps.displayName="Overflow",ps.Item=as,ps.RESPONSIVE=cs,ps.INVALIDATE=ls;const fs=ps;var hs=r.createContext(null);function ms(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function gs(e){return ms(r.useContext(hs),e)}var vs=["children","locked"],ys=r.createContext(null);function bs(e){var t=e.children,n=e.locked,i=st(e,vs),o=r.useContext(ys),a=Mn(function(){return e=i,t=Kt({},o),Object.keys(e).forEach(function(n){var r=e[n];void 0!==r&&(t[n]=r)}),t;var e,t},[o,i],function(e,t){return!(n||e[0]===t[0]&&qn(e[1],t[1],!0))});return r.createElement(ys.Provider,{value:a},t)}var Es=[],_s=r.createContext(null);function ws(){return r.useContext(_s)}var ks=r.createContext(Es);function Ts(e){var t=r.useContext(ks);return r.useMemo(function(){return void 0!==e?[].concat(je(t),[e]):t},[t,e])}var Ss=r.createContext(null);const Os=r.createContext({}),Cs=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1};function xs(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Cs(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Ns={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Ns.F1&&t<=Ns.F12)return!1;switch(t){case Ns.ALT:case Ns.CAPS_LOCK:case Ns.CONTEXT_MENU:case Ns.CTRL:case Ns.DOWN:case Ns.END:case Ns.ESC:case Ns.HOME:case Ns.INSERT:case Ns.LEFT:case Ns.MAC_FF_META:case Ns.META:case Ns.NUMLOCK:case Ns.NUM_CENTER:case Ns.PAGE_DOWN:case Ns.PAGE_UP:case Ns.PAUSE:case Ns.PRINT_SCREEN:case Ns.RIGHT:case Ns.SHIFT:case Ns.UP:case Ns.WIN_KEY:case Ns.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ns.ZERO&&e<=Ns.NINE)return!0;if(e>=Ns.NUM_ZERO&&e<=Ns.NUM_MULTIPLY)return!0;if(e>=Ns.A&&e<=Ns.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ns.SPACE:case Ns.QUESTION_MARK:case Ns.NUM_PLUS:case Ns.NUM_MINUS:case Ns.NUM_PERIOD:case Ns.NUM_DIVISION:case Ns.SEMICOLON:case Ns.DASH:case Ns.EQUALS:case Ns.COMMA:case Ns.PERIOD:case Ns.SLASH:case Ns.APOSTROPHE:case Ns.SINGLE_QUOTE:case Ns.OPEN_SQUARE_BRACKET:case Ns.BACKSLASH:case Ns.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Is=Ns;var As=Is.LEFT,Ds=Is.RIGHT,Rs=Is.UP,Ls=Is.DOWN,Ps=Is.ENTER,js=Is.ESC,$s=Is.HOME,Fs=Is.END,Ms=[Rs,Ls,As,Ds];function qs(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=je(e.querySelectorAll("*")).filter(function(e){return xs(e,t)});return xs(e,t)&&n.unshift(e),n}(e,!0).filter(function(e){return t.has(e)})}function Vs(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=qs(e,t),o=i.length,a=i.findIndex(function(e){return n===e});return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}var zs=function(e,t){var n=new Set,r=new Map,i=new Map;return e.forEach(function(e){var o=document.querySelector("[data-menu-id='".concat(ms(t,e),"']"));o&&(n.add(o),i.set(o,e),r.set(e,o))}),{elements:n,key2element:r,element2key:i}};var Bs="__RC_UTIL_PATH_SPLIT__",Gs=function(e){return e.join(Bs)},Qs="rc-menu-more";function Us(e){var t=r.useRef(e);t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return e?n:void 0}var Hs=Math.random().toFixed(5).toString().slice(2),Ks=0;function Ws(e,t,n,i){var o=r.useContext(ys),a=o.activeKey,s=o.onActive,c=o.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),s(e)},l.onMouseLeave=function(t){null==i||i({key:e,domEvent:t}),c(e)}),l}function Ys(e){var t=r.useContext(ys),n=t.mode,i=t.rtl,o=t.inlineIndent;return"inline"!==n?null:i?{paddingRight:e*o}:{paddingLeft:e*o}}function Xs(e){var t,n=e.icon,i=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=r.createElement(n,Kt({},i)):"boolean"!=typeof n&&(t=n),t||o||null)}var Js=["item"];function Zs(e){var t=e.item,n=st(e,Js);return Object.defineProperty(n,"item",{get:function(){return mn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ec=["title","attribute","elementRef"],tc=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],nc=["active"],rc=function(e){Ci(n,e);var t=Ii(n);function n(){return Vn(this,n),t.apply(this,arguments)}return Bn(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,i=e.elementRef,o=Me(st(e,ec),["eventKey","popupClassName","popupOffset","onTitleClick"]);return mn(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(fs.Item,et({},n,{title:"string"==typeof t?t:void 0},o,{ref:i}))}}]),n}(r.Component),ic=r.forwardRef(function(e,t){var n=e.style,i=e.className,o=e.eventKey,a=(e.warnKey,e.disabled),s=e.itemIcon,c=e.children,l=e.role,u=e.onMouseEnter,d=e.onMouseLeave,p=e.onClick,f=e.onKeyDown,h=e.onFocus,m=st(e,tc),g=gs(o),v=r.useContext(ys),y=v.prefixCls,b=v.onItemClick,E=v.disabled,_=v.overflowDisabled,w=v.itemIcon,k=v.selectedKeys,T=v.onActive,S=r.useContext(Os)._internalRenderMenuItem,O="".concat(y,"-item"),C=r.useRef(),x=r.useRef(),N=E||a,I=Ui(t,x),A=Ts(o),D=function(e){return{key:o,keyPath:je(A).reverse(),item:C.current,domEvent:e}},R=s||w,L=Ws(o,N,u,d),P=L.active,j=st(L,nc),$=k.includes(o),F=Ys(A.length),M={};"option"===e.role&&(M["aria-selected"]=$);var q=r.createElement(rc,et({ref:C,elementRef:I,role:null===l?"none":l||"menuitem",tabIndex:a?null:-1,"data-menu-id":_&&g?null:g},Me(m,["extra"]),j,M,{component:"li","aria-disabled":a,style:Kt(Kt({},F),n),className:Fe()(O,at(at(at({},"".concat(O,"-active"),P),"".concat(O,"-selected"),$),"".concat(O,"-disabled"),N),i),onClick:function(e){if(!N){var t=D(e);null==p||p(Zs(t)),b(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===Is.ENTER){var t=D(e);null==p||p(Zs(t)),b(t)}},onFocus:function(e){T(o),null==h||h(e)}}),c,r.createElement(Xs,{props:Kt(Kt({},e),{},{isSelected:$}),icon:R}));return S&&(q=S(q,e,{selected:$})),q});function oc(e,t){var n=e.eventKey,i=ws(),o=Ts(n);return r.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]),i?null:r.createElement(ic,et({},e,{ref:t}))}const ac=r.forwardRef(oc);var sc=["className","children"],cc=function(e,t){var n=e.className,i=e.children,o=st(e,sc),a=r.useContext(ys),s=a.prefixCls,c=a.mode,l=a.rtl;return r.createElement("ul",et({className:Fe()(s,l&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),i)},lc=r.forwardRef(cc);lc.displayName="SubMenuList";const uc=lc;function dc(e,t){return Ze(e).map(function(e,n){if(r.isValidElement(e)){var i,o,a=e.key,s=null!==(i=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==i?i:a;null==s&&(s="tmp_key-".concat([].concat(je(t),[n]).join("-")));var c={key:s,eventKey:s};return r.cloneElement(e,c)}return e})}const pc=r.createContext(null);var fc=[];var hc="rc-util-locker-".concat(Date.now()),mc=0;function gc(e){var t=!!e,n=it(r.useState(function(){return mc+=1,"".concat(hc,"_").concat(mc)}),1)[0];gr(function(){if(t){var e=(i=document.body,"undefined"!=typeof document&&i&&i instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,i,o=n.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),l=parseInt(s.height,10);try{var u=c?"width: ".concat(s.width,";"):"",d=l?"height: ".concat(s.height,";"):"";an("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,i=l}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,f=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),on(t),{width:p,height:f}}(i):{width:0,height:0}).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;an("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else on(n);var i;return function(){on(n)}},[t,n])}var vc=!1,yc=function(e){return!1!==e&&(Wt()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},bc=r.forwardRef(function(e,t){var n=e.open,i=e.autoLock,o=e.getContainer,a=(e.debug,e.autoDestroy),s=void 0===a||a,c=e.children,l=it(r.useState(n),2),u=l[0],d=l[1],p=u||n;r.useEffect(function(){(s||n)&&d(n)},[n,s]);var f=it(r.useState(function(){return yc(o)}),2),h=f[0],m=f[1];r.useEffect(function(){var e=yc(o);m(null!=e?e:null)});var g=function(e){var t=it(r.useState(function(){return Wt()?document.createElement("div"):null}),1)[0],n=r.useRef(!1),i=r.useContext(pc),o=it(r.useState(fc),2),a=o[0],s=o[1],c=i||(n.current?void 0:function(e){s(function(t){return[e].concat(je(t))})});function l(){t.parentElement||document.body.appendChild(t),n.current=!0}function u(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return gr(function(){return e?i?i(l):l():u(),u},[e]),gr(function(){a.length&&(a.forEach(function(e){return e()}),s(fc))},[a]),[t,c]}(p&&!h),v=it(g,2),y=v[0],b=v[1],E=null!=h?h:y;gc(i&&n&&Wt()&&(E===y||E===document.body));var _=null;c&&Hi(c)&&t&&(_=c.ref);var w=Ui(_,t);if(!p||!Wt()||void 0===h)return null;var k=!1===E||vc,T=c;return t&&(T=r.cloneElement(c,{ref:w})),r.createElement(pc.Provider,{value:b},k?T:(0,sa.createPortal)(T,E))});const Ec=bc;var _c=0,wc=Kt({},r).useId;const kc=wc?function(e){var t=wc();return e||t}:function(e){var t=it(r.useState("ssr-id"),2),n=t[0],i=t[1];return r.useEffect(function(){var e=_c;_c+=1,i("rc_unique_".concat(e))},[]),e||n},Tc=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var Sc=r.createContext({}),Oc=function(e){Ci(n,e);var t=Ii(n);function n(){return Vn(this,n),t.apply(this,arguments)}return Bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);const Cc=Oc;var xc="none",Nc="appear",Ic="enter",Ac="leave",Dc="none",Rc="prepare",Lc="start",Pc="active",jc="end",$c="prepared";function Fc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Mc,qc,Vc,zc=(Mc=Wt(),qc="undefined"!=typeof window?window:{},Vc={animationend:Fc("Animation","AnimationEnd"),transitionend:Fc("Transition","TransitionEnd")},Mc&&("AnimationEvent"in qc||delete Vc.animationend.animation,"TransitionEvent"in qc||delete Vc.transitionend.transition),Vc),Bc={};if(Wt()){var Gc=document.createElement("div");Bc=Gc.style}var Qc={};function Uc(e){if(Qc[e])return Qc[e];var t=zc[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Bc)return Qc[e]=t[o],Qc[e]}return""}var Hc=Uc("animationend"),Kc=Uc("transitionend"),Wc=!(!Hc||!Kc),Yc=Hc||"animationend",Xc=Kc||"transitionend";function Jc(e,t){return e?"object"===Ke(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}const Zc=Wt()?r.useLayoutEffect:r.useEffect;var el=[Rc,Lc,Pc,jc],tl=[Rc,$c],nl=!1;function rl(e){return e===Pc||e===jc}function il(e,t,n,i){var o,a,s,c,l=i.motionEnter,u=void 0===l||l,d=i.motionAppear,p=void 0===d||d,f=i.motionLeave,h=void 0===f||f,m=i.motionDeadline,g=i.motionLeaveImmediately,v=i.onAppearPrepare,y=i.onEnterPrepare,b=i.onLeavePrepare,E=i.onAppearStart,_=i.onEnterStart,w=i.onLeaveStart,k=i.onAppearActive,T=i.onEnterActive,S=i.onLeaveActive,O=i.onAppearEnd,C=i.onEnterEnd,x=i.onLeaveEnd,N=i.onVisibleChanged,I=it(Mi(),2),A=I[0],D=I[1],R=(o=xc,a=r.useReducer(function(e){return e+1},0),s=it(a,2)[1],c=r.useRef(o),[Fi(function(){return c.current}),Fi(function(e){c.current="function"==typeof e?e(c.current):e,s()})]),L=it(R,2),P=L[0],j=L[1],$=it(Mi(null),2),F=$[0],M=$[1],q=P(),V=(0,r.useRef)(!1),z=(0,r.useRef)(null);function B(){return n()}var G=(0,r.useRef)(!1);function Q(){j(xc),M(null,!0)}var U=Fi(function(e){var t=P();if(t!==xc){var n=B();if(!e||e.deadline||e.target===n){var r,i=G.current;t===Nc&&i?r=null==O?void 0:O(n,e):t===Ic&&i?r=null==C?void 0:C(n,e):t===Ac&&i&&(r=null==x?void 0:x(n,e)),i&&!1!==r&&Q()}}}),H=function(e){var t=(0,r.useRef)();function n(t){t&&(t.removeEventListener(Xc,e),t.removeEventListener(Yc,e))}return r.useEffect(function(){return function(){n(t.current)}},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Xc,e),r.addEventListener(Yc,e),t.current=r)},n]}(U),K=it(H,1)[0],W=function(e){switch(e){case Nc:return at(at(at({},Rc,v),Lc,E),Pc,k);case Ic:return at(at(at({},Rc,y),Lc,_),Pc,T);case Ac:return at(at(at({},Rc,b),Lc,w),Pc,S);default:return{}}},Y=r.useMemo(function(){return W(q)},[q]),X=it(function(e,t,n){var i=it(Mi(Dc),2),o=i[0],a=i[1],s=function(){var e=r.useRef(null);function t(){Ja.cancel(e.current)}return r.useEffect(function(){return function(){t()}},[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Ja(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o},t]}(),c=it(s,2),l=c[0],u=c[1],d=t?tl:el;return Zc(function(){if(o!==Dc&&o!==jc){var e=d.indexOf(o),t=d[e+1],r=n(o);r===nl?a(t,!0):t&&l(function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),r.useEffect(function(){return function(){u()}},[]),[function(){a(Rc,!0)},o]}(q,!e,function(e){if(e===Rc){var t=Y[Rc];return t?t(B()):nl}var n;return Z in Y&&M((null===(n=Y[Z])||void 0===n?void 0:n.call(Y,B(),null))||null),Z===Pc&&q!==xc&&(K(B()),m>0&&(clearTimeout(z.current),z.current=setTimeout(function(){U({deadline:!0})},m))),Z===$c&&Q(),!0}),2),J=X[0],Z=X[1],ee=rl(Z);G.current=ee;var te=(0,r.useRef)(null);Zc(function(){if(!V.current||te.current!==t){D(t);var n,r=V.current;V.current=!0,!r&&t&&p&&(n=Nc),r&&t&&u&&(n=Ic),(r&&!t&&h||!r&&g&&!t&&h)&&(n=Ac);var i=W(n);n&&(e||i[Rc])?(j(n),J()):j(xc),te.current=t}},[t]),(0,r.useEffect)(function(){(q===Nc&&!p||q===Ic&&!u||q===Ac&&!h)&&j(xc)},[p,u,h]),(0,r.useEffect)(function(){return function(){V.current=!1,clearTimeout(z.current)}},[]);var ne=r.useRef(!1);(0,r.useEffect)(function(){A&&(ne.current=!0),void 0!==A&&q===xc&&((ne.current||A)&&(null==N||N(A)),ne.current=!0)},[A,q]);var re=F;return Y[Rc]&&Z===Lc&&(re=Kt({transition:"none"},re)),[q,Z,re,null!=A?A:t]}const ol=function(e){var t=e;"object"===Ke(e)&&(t=e.transitionSupport);var n=r.forwardRef(function(e,n){var i=e.visible,o=void 0===i||i,a=e.removeOnLeave,s=void 0===a||a,c=e.forceRender,l=e.children,u=e.motionName,d=e.leavedClassName,p=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(Sc).motion),h=(0,r.useRef)(),m=(0,r.useRef)(),g=it(il(f,o,function(){try{return h.current instanceof HTMLElement?h.current:ua(m.current)}catch(e){return null}},e),4),v=g[0],y=g[1],b=g[2],E=g[3],_=r.useRef(E);E&&(_.current=!0);var w,k=r.useCallback(function(e){h.current=e,Gi(n,e)},[n]),T=Kt(Kt({},p),{},{visible:o});if(l)if(v===xc)w=E?l(Kt({},T),k):!s&&_.current&&d?l(Kt(Kt({},T),{},{className:d}),k):c||!s&&!d?l(Kt(Kt({},T),{},{style:{display:"none"}}),k):null;else{var S;y===Rc?S="prepare":rl(y)?S="active":y===Lc&&(S="start");var O=Jc(u,"".concat(v,"-").concat(S));w=l(Kt(Kt({},T),{},{className:Fe()(Jc(u,v),at(at({},O,O&&S),u,"string"==typeof u)),style:b}),k)}else w=null;return r.isValidElement(w)&&Hi(w)&&(Wi(w)||(w=r.cloneElement(w,{ref:k}))),r.createElement(Cc,{ref:m},w)});return n.displayName="CSSMotion",n}(Wc);var al="add",sl="keep",cl="remove",ll="removed";function ul(e){var t;return Kt(Kt({},t=e&&"object"===Ke(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function dl(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ul)}var pl=["component","children","onVisibleChanged","onAllRemoved"],fl=["status"],hl=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ol,t=function(t){Ci(i,t);var n=Ii(i);function i(){var e;Vn(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return at(Si(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),at(Si(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:Kt(Kt({},e),{},{status:ll})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==ll}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Bn(i,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,o=i.component,a=i.children,s=i.onVisibleChanged,c=(i.onAllRemoved,st(i,pl)),l=o||r.Fragment,u={};return hl.forEach(function(e){u[e]=c[e],delete c[e]}),delete c.keys,r.createElement(l,c,n.map(function(n,i){var o=n.status,c=st(n,fl),l=o===al||o===sl;return r.createElement(e,et({},u,{key:c.key,visible:l,eventProps:c,onVisibleChanged:function(e){null==s||s(e,{key:c.key}),e||t.removeKey(c.key)}}),function(e,t){return a(Kt(Kt({},e),{},{index:i}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=dl(n),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=dl(e),a=dl(t);o.forEach(function(e){for(var t=!1,o=r;o<i;o+=1){var s=a[o];if(s.key===e.key){r<o&&(n=n.concat(a.slice(r,o).map(function(e){return Kt(Kt({},e),{},{status:al})})),r=o),n.push(Kt(Kt({},s),{},{status:sl})),r+=1,t=!0;break}}t||n.push(Kt(Kt({},e),{},{status:cl}))}),r<i&&(n=n.concat(a.slice(r).map(function(e){return Kt(Kt({},e),{},{status:al})})));var s={};return n.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==cl})).forEach(function(t){t.key===e&&(t.status=sl)})}),n}(r,i);return{keyEntities:o.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==ll||e.status!==cl})}}}]),i}(r.Component);at(t,"defaultProps",{component:"div"})}(Wc);const ml=ol;function gl(e){var t=e.prefixCls,n=e.align,i=e.arrow,o=e.arrowPos,a=i||{},s=a.className,c=a.content,l=o.x,u=void 0===l?0:l,d=o.y,p=void 0===d?0:d,f=r.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],b=g[0],E=g[1];v!==b&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=p,y!==E&&["l","r"].includes(y)?"l"===y?h.left=0:h.right=0:h.left=u}return r.createElement("div",{ref:f,className:Fe()("".concat(t,"-arrow"),s),style:h},c)}function vl(e){var t=e.prefixCls,n=e.open,i=e.zIndex,o=e.mask,a=e.motion;return o?r.createElement(ml,et({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return r.createElement("div",{style:{zIndex:i},className:Fe()("".concat(t,"-mask"),n)})}):null}var yl=r.memo(function(e){return e.children},function(e,t){return t.cache});const bl=yl;var El=r.forwardRef(function(e,t){var n=e.popup,i=e.className,o=e.prefixCls,a=e.style,s=e.target,c=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,p=e.onClick,f=e.mask,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,E=e.getPopupContainer,_=e.autoDestroy,w=e.portal,k=e.zIndex,T=e.onMouseEnter,S=e.onMouseLeave,O=e.onPointerEnter,C=e.onPointerDownCapture,x=e.ready,N=e.offsetX,I=e.offsetY,A=e.offsetR,D=e.offsetB,R=e.onAlign,L=e.onPrepare,P=e.stretch,j=e.targetWidth,$=e.targetHeight,F="function"==typeof n?n():n,M=l||u,q=(null==E?void 0:E.length)>0,V=it(r.useState(!E||!q),2),z=V[0],B=V[1];if(gr(function(){!z&&q&&s&&B(!0)},[z,q,s]),!z)return null;var G="auto",Q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(x||!l){var U,H=g.points,K=g.dynamicInset||(null===(U=g._experimental)||void 0===U?void 0:U.dynamicInset),W=K&&"r"===H[0][1],Y=K&&"b"===H[0][0];W?(Q.right=A,Q.left=G):(Q.left=N,Q.right=G),Y?(Q.bottom=D,Q.top=G):(Q.top=I,Q.bottom=G)}var X={};return P&&(P.includes("height")&&$?X.height=$:P.includes("minHeight")&&$&&(X.minHeight=$),P.includes("width")&&j?X.width=j:P.includes("minWidth")&&j&&(X.minWidth=j)),l||(X.pointerEvents="none"),r.createElement(w,{open:b||M,getContainer:E&&function(){return E(s)},autoDestroy:_},r.createElement(vl,{prefixCls:o,open:l,zIndex:k,mask:f,motion:y}),r.createElement(qa,{onResize:R,disabled:!l},function(e){return r.createElement(ml,et({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:L,onEnterPrepare:L,visible:l,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),c(e)}}),function(n,s){var c=n.className,u=n.style,f=Fe()(o,c,i);return r.createElement("div",{ref:Qi(e,t,s),className:f,style:Kt(Kt(Kt(Kt({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},Q),X),u),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:T,onMouseLeave:S,onPointerEnter:O,onClick:p,onPointerDownCapture:C},h&&r.createElement(gl,{prefixCls:o,arrow:h,arrowPos:m,align:g}),r.createElement(bl,{cache:!l&&!d},F))})}))});const _l=El;var wl=r.forwardRef(function(e,t){var n=e.children,i=e.getTriggerDOMNode,o=Hi(n),a=r.useCallback(function(e){Gi(t,i?i(e):e)},[i]),s=Ui(a,Wi(n));return o?r.cloneElement(n,{ref:s}):n});const kl=wl,Tl=r.createContext(null);function Sl(e){return e?Array.isArray(e)?e:[e]:[]}function Ol(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Cl(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function xl(e){return e.ownerDocument.defaultView}function Nl(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=xl(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function Il(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Al(e){return Il(parseFloat(e),0)}function Dl(e,t){var n=Kt({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=xl(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=Al(o),m=Al(a),g=Al(s),v=Al(c),y=Il(Math.round(l.width/p*1e3)/1e3),b=Il(Math.round(l.height/u*1e3)/1e3),E=(p-f-g-v)*y,_=(u-d-h-m)*b,w=h*b,k=m*b,T=g*y,S=v*y,O=0,C=0;if("clip"===r){var x=Al(i);O=x*y,C=x*b}var N=l.x+T-O,I=l.y+w-C,A=N+l.width+2*O-T-S-E,D=I+l.height+2*C-w-k-_;n.left=Math.max(n.left,N),n.top=Math.max(n.top,I),n.right=Math.min(n.right,A),n.bottom=Math.min(n.bottom,D)}}),n}function Rl(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Ll(e,t){var n=it(t||[],2),r=n[0],i=n[1];return[Rl(e.width,r),Rl(e.height,i)]}function Pl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function jl(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function $l(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var Fl=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Ml=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ec,t=r.forwardRef(function(t,n){var i=t.prefixCls,o=void 0===i?"rc-trigger-popup":i,a=t.children,s=t.action,c=void 0===s?"hover":s,l=t.showAction,u=t.hideAction,d=t.popupVisible,p=t.defaultPopupVisible,f=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,y=t.focusDelay,b=t.blurDelay,E=t.mask,_=t.maskClosable,w=void 0===_||_,k=t.getPopupContainer,T=t.forceRender,S=t.autoDestroy,O=t.destroyPopupOnHide,C=t.popup,x=t.popupClassName,N=t.popupStyle,I=t.popupPlacement,A=t.builtinPlacements,D=void 0===A?{}:A,R=t.popupAlign,L=t.zIndex,P=t.stretch,j=t.getPopupClassNameFromAlign,$=t.fresh,F=t.alignPoint,M=t.onPopupClick,q=t.onPopupAlign,V=t.arrow,z=t.popupMotion,B=t.maskMotion,G=t.popupTransitionName,Q=t.popupAnimation,U=t.maskTransitionName,H=t.maskAnimation,K=t.className,W=t.getTriggerDOMNode,Y=st(t,Fl),X=S||O||!1,J=it(r.useState(!1),2),Z=J[0],ee=J[1];gr(function(){ee(Tc())},[]);var te=r.useRef({}),ne=r.useContext(Tl),re=r.useMemo(function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}},[ne]),ie=kc(),oe=it(r.useState(null),2),ae=oe[0],se=oe[1],ce=r.useRef(null),le=Fi(function(e){ce.current=e,la(e)&&ae!==e&&se(e),null==ne||ne.registerSubPopup(ie,e)}),ue=it(r.useState(null),2),de=ue[0],pe=ue[1],fe=r.useRef(null),he=Fi(function(e){la(e)&&de!==e&&(pe(e),fe.current=e)}),me=r.Children.only(a),ge=(null==me?void 0:me.props)||{},ve={},ye=Fi(function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=cn(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=cn(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),be=Cl(o,z,Q,G),Ee=Cl(o,B,H,U),_e=it(r.useState(p||!1),2),we=_e[0],ke=_e[1],Te=null!=d?d:we,Se=Fi(function(e){void 0===d&&ke(e)});gr(function(){ke(d||!1)},[d]);var Oe=r.useRef(Te);Oe.current=Te;var Ce=r.useRef([]);Ce.current=[];var xe=Fi(function(e){var t;Se(e),(null!==(t=Ce.current[Ce.current.length-1])&&void 0!==t?t:Te)!==e&&(Ce.current.push(e),null==f||f(e))}),Ne=r.useRef(),Ie=function(){clearTimeout(Ne.current)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ie(),0===t?xe(e):Ne.current=setTimeout(function(){xe(e)},1e3*t)};r.useEffect(function(){return Ie},[]);var De=it(r.useState(!1),2),Re=De[0],Le=De[1];gr(function(e){e&&!Te||Le(!0)},[Te]);var Pe=it(r.useState(null),2),$e=Pe[0],Me=Pe[1],qe=it(r.useState(null),2),Ve=qe[0],ze=qe[1],Be=function(e){ze([e.clientX,e.clientY])},Ge=function(e,t,n,i,o,a,s){var c=it(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[i]||{}}),2),l=c[0],u=c[1],d=r.useRef(0),p=r.useMemo(function(){return t?Nl(t):[]},[t]),f=r.useRef({});e||(f.current={});var h=Fi(function(){if(t&&n&&e){var r,c,l,d,h,m=t,g=m.ownerDocument,v=xl(m),y=v.getComputedStyle(m).position,b=m.style.left,E=m.style.top,_=m.style.right,w=m.style.bottom,k=m.style.overflow,T=Kt(Kt({},o[i]),a),S=g.createElement("div");if(null===(r=m.parentElement)||void 0===r||r.appendChild(S),S.style.left="".concat(m.offsetLeft,"px"),S.style.top="".concat(m.offsetTop,"px"),S.style.position=y,S.style.height="".concat(m.offsetHeight,"px"),S.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var O,C,x=n.getBoundingClientRect();x.x=null!==(O=x.x)&&void 0!==O?O:x.left,x.y=null!==(C=x.y)&&void 0!==C?C:x.top,h={x:x.x,y:x.y,width:x.width,height:x.height}}var N=m.getBoundingClientRect(),I=v.getComputedStyle(m),A=I.height,D=I.width;N.x=null!==(c=N.x)&&void 0!==c?c:N.left,N.y=null!==(l=N.y)&&void 0!==l?l:N.top;var R=g.documentElement,L=R.clientWidth,P=R.clientHeight,j=R.scrollWidth,$=R.scrollHeight,F=R.scrollTop,M=R.scrollLeft,q=N.height,V=N.width,z=h.height,B=h.width,G={left:0,top:0,right:L,bottom:P},Q={left:-M,top:-F,right:j-M,bottom:$-F},U=T.htmlRegion,H="visible",K="visibleFirst";"scroll"!==U&&U!==K&&(U=H);var W=U===K,Y=Dl(Q,p),X=Dl(G,p),J=U===H?X:Y,Z=W?X:J;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var ee=m.getBoundingClientRect();m.style.left=b,m.style.top=E,m.style.right=_,m.style.bottom=w,m.style.overflow=k,null===(d=m.parentElement)||void 0===d||d.removeChild(S);var te=Il(Math.round(V/parseFloat(D)*1e3)/1e3),ne=Il(Math.round(q/parseFloat(A)*1e3)/1e3);if(0===te||0===ne||la(n)&&!Cs(n))return;var re=T.offset,ie=T.targetOffset,oe=it(Ll(N,re),2),ae=oe[0],se=oe[1],ce=it(Ll(h,ie),2),le=ce[0],ue=ce[1];h.x-=le,h.y-=ue;var de=it(T.points||[],2),pe=de[0],fe=Pl(de[1]),he=Pl(pe),me=jl(h,fe),ge=jl(N,he),ve=Kt({},T),ye=me.x-ge.x+ae,be=me.y-ge.y+se;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=N.x+e,i=N.y+t,o=r+V,a=i+q,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(l-s)*(u-c))}var Ee,_e,we,ke,Te=ft(ye,be),Se=ft(ye,be,X),Oe=jl(h,["t","l"]),Ce=jl(N,["t","l"]),xe=jl(h,["b","r"]),Ne=jl(N,["b","r"]),Ie=T.overflow||{},Ae=Ie.adjustX,De=Ie.adjustY,Re=Ie.shiftX,Le=Ie.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};function ht(){Ee=N.y+be,_e=Ee+q,we=N.x+ye,ke=we+V}ht();var je=Pe(De),$e=he[0]===fe[0];if(je&&"t"===he[0]&&(_e>Z.bottom||f.current.bt)){var Fe=be;$e?Fe-=q-z:Fe=Oe.y-Ne.y-se;var Me=ft(ye,Fe),qe=ft(ye,Fe,X);Me>Te||Me===Te&&(!W||qe>=Se)?(f.current.bt=!0,be=Fe,se=-se,ve.points=[$l(he,0),$l(fe,0)]):f.current.bt=!1}if(je&&"b"===he[0]&&(Ee<Z.top||f.current.tb)){var Ve=be;$e?Ve+=q-z:Ve=xe.y-Ce.y-se;var ze=ft(ye,Ve),Be=ft(ye,Ve,X);ze>Te||ze===Te&&(!W||Be>=Se)?(f.current.tb=!0,be=Ve,se=-se,ve.points=[$l(he,0),$l(fe,0)]):f.current.tb=!1}var Ge=Pe(Ae),Qe=he[1]===fe[1];if(Ge&&"l"===he[1]&&(ke>Z.right||f.current.rl)){var Ue=ye;Qe?Ue-=V-B:Ue=Oe.x-Ne.x-ae;var He=ft(Ue,be),Ke=ft(Ue,be,X);He>Te||He===Te&&(!W||Ke>=Se)?(f.current.rl=!0,ye=Ue,ae=-ae,ve.points=[$l(he,1),$l(fe,1)]):f.current.rl=!1}if(Ge&&"r"===he[1]&&(we<Z.left||f.current.lr)){var We=ye;Qe?We+=V-B:We=xe.x-Ce.x-ae;var Ye=ft(We,be),Xe=ft(We,be,X);Ye>Te||Ye===Te&&(!W||Xe>=Se)?(f.current.lr=!0,ye=We,ae=-ae,ve.points=[$l(he,1),$l(fe,1)]):f.current.lr=!1}ht();var Je=!0===Re?0:Re;"number"==typeof Je&&(we<X.left&&(ye-=we-X.left-ae,h.x+B<X.left+Je&&(ye+=h.x-X.left+B-Je)),ke>X.right&&(ye-=ke-X.right-ae,h.x>X.right-Je&&(ye+=h.x-X.right+Je)));var Ze=!0===Le?0:Le;"number"==typeof Ze&&(Ee<X.top&&(be-=Ee-X.top-se,h.y+z<X.top+Ze&&(be+=h.y-X.top+z-Ze)),_e>X.bottom&&(be-=_e-X.bottom-se,h.y>X.bottom-Ze&&(be+=h.y-X.bottom+Ze)));var et=N.x+ye,tt=et+V,nt=N.y+be,rt=nt+q,ot=h.x,at=ot+B,st=h.y,ct=st+z,lt=(Math.max(et,ot)+Math.min(tt,at))/2-et,ut=(Math.max(nt,st)+Math.min(rt,ct))/2-nt;null==s||s(t,ve);var dt=ee.right-N.x-(ye+N.width),pt=ee.bottom-N.y-(be+N.height);1===te&&(ye=Math.floor(ye),dt=Math.floor(dt)),1===ne&&(be=Math.floor(be),pt=Math.floor(pt)),u({ready:!0,offsetX:ye/te,offsetY:be/ne,offsetR:dt/te,offsetB:pt/ne,arrowX:lt/te,arrowY:ut/ne,scaleX:te,scaleY:ne,align:ve})}}),m=function(){u(function(e){return Kt(Kt({},e),{},{ready:!1})})};return gr(m,[i]),gr(function(){e||m()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&h()})}]}(Te,ae,F&&null!==Ve?Ve:de,I,D,R,q),Qe=it(Ge,11),Ue=Qe[0],He=Qe[1],Ke=Qe[2],We=Qe[3],Ye=Qe[4],Xe=Qe[5],Je=Qe[6],Ze=Qe[7],et=Qe[8],tt=Qe[9],nt=Qe[10],rt=function(e,t,n,i){return r.useMemo(function(){var r=Sl(null!=n?n:t),o=Sl(null!=i?i:t),a=new Set(r),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,i])}(Z,c,l,u),ot=it(rt,2),at=ot[0],ct=ot[1],lt=at.has("click"),ut=ct.has("click")||ct.has("contextMenu"),dt=Fi(function(){Re||nt()});!function(e,t,n,r){gr(function(){if(e&&t&&n){var i=n,o=Nl(t),a=Nl(i),s=xl(i),c=new Set([s].concat(je(o),je(a)));function l(){r(),Oe.current&&F&&ut&&Ae(!1)}return c.forEach(function(e){e.addEventListener("scroll",l,{passive:!0})}),s.addEventListener("resize",l,{passive:!0}),r(),function(){c.forEach(function(e){e.removeEventListener("scroll",l),s.removeEventListener("resize",l)})}}},[e,t,n])}(Te,de,ae,dt),gr(function(){dt()},[Ve,I]),gr(function(){!Te||null!=D&&D[I]||dt()},[JSON.stringify(R)]);var pt=r.useMemo(function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,c=o[a];if(Ol(null===(s=e[c])||void 0===s?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(c)}return""}(D,o,tt,F);return Fe()(e,null==j?void 0:j(tt))},[tt,j,D,o,F]);r.useImperativeHandle(n,function(){return{nativeElement:fe.current,popupElement:ce.current,forceAlign:dt}});var ft=it(r.useState(0),2),ht=ft[0],mt=ft[1],gt=it(r.useState(0),2),vt=gt[0],yt=gt[1],bt=function(){if(P&&de){var e=de.getBoundingClientRect();mt(e.width),yt(e.height)}};function Et(e,t,n,r){ve[e]=function(i){var o;null==r||r(i),Ae(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];null===(o=ge[e])||void 0===o||o.call.apply(o,[ge,i].concat(s))}}gr(function(){$e&&(nt(),$e(),Me(null))},[$e]),(lt||ut)&&(ve.onClick=function(e){var t;Oe.current&&ut?Ae(!1):!Oe.current&<&&(Be(e),Ae(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))});var _t,wt,kt=function(e,t,n,i,o,a,s,c){var l=r.useRef(e);l.current=e;var u=r.useRef(!1);return r.useEffect(function(){if(t&&i&&(!o||a)){var e=function(){u.current=!1},r=function(e){var t;!l.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||c(!1)},d=xl(i);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",r,!0),d.addEventListener("contextmenu",r,!0);var p=cn(n);return p&&(p.addEventListener("mousedown",r,!0),p.addEventListener("contextmenu",r,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",r,!0),d.removeEventListener("contextmenu",r,!0),p&&(p.removeEventListener("mousedown",r,!0),p.removeEventListener("contextmenu",r,!0))}}},[t,n,i,o,a]),function(){u.current=!0}}(Te,ut,de,ae,E,w,ye,Ae),Tt=at.has("hover"),St=ct.has("hover");Tt&&(Et("onMouseEnter",!0,m,function(e){Be(e)}),Et("onPointerEnter",!0,m,function(e){Be(e)}),_t=function(e){(Te||Re)&&null!=ae&&ae.contains(e.target)&&Ae(!0,m)},F&&(ve.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),St&&(Et("onMouseLeave",!1,v),Et("onPointerLeave",!1,v),wt=function(){Ae(!1,v)}),at.has("focus")&&Et("onFocus",!0,y),ct.has("focus")&&Et("onBlur",!1,b),at.has("contextMenu")&&(ve.onContextMenu=function(e){var t;Oe.current&&ct.has("contextMenu")?Ae(!1):(Be(e),Ae(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),K&&(ve.className=Fe()(ge.className,K));var Ot=r.useRef(!1);Ot.current||(Ot.current=T||Te||Re);var Ct=Kt(Kt({},ge),ve),xt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){Y[e]&&(xt[e]=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=Ct[e])||void 0===t||t.call.apply(t,[Ct].concat(r)),Y[e].apply(Y,r)})});var Nt=r.cloneElement(me,Kt(Kt({},Ct),xt)),It={x:Xe,y:Je},At=V?Kt({},!0!==V?V:{}):null;return r.createElement(r.Fragment,null,r.createElement(qa,{disabled:!Te,ref:he,onResize:function(){bt(),dt()}},r.createElement(kl,{getTriggerDOMNode:W},Nt)),Ot.current&&r.createElement(Tl.Provider,{value:re},r.createElement(_l,{portal:e,ref:le,prefixCls:o,popup:C,className:Fe()(x,pt),style:N,target:de,onMouseEnter:_t,onMouseLeave:wt,onPointerEnter:_t,zIndex:L,open:Te,keepDom:Re,fresh:$,onClick:M,onPointerDownCapture:kt,mask:E,motion:be,maskMotion:Ee,onVisibleChanged:function(e){Le(!1),nt(),null==h||h(e)},onPrepare:function(){return new Promise(function(e){bt(),Me(function(){return e})})},forceRender:T,autoDestroy:X,getPopupContainer:k,align:tt,arrow:At,arrowPos:It,ready:Ue,offsetX:He,offsetY:Ke,offsetR:We,offsetB:Ye,onAlign:dt,stretch:P,targetWidth:ht/Ze,targetHeight:vt/et})))});return t}(Ec);var ql={adjustX:1,adjustY:1},Vl={topLeft:{points:["bl","tl"],overflow:ql},topRight:{points:["br","tr"],overflow:ql},bottomLeft:{points:["tl","bl"],overflow:ql},bottomRight:{points:["tr","br"],overflow:ql},leftTop:{points:["tr","tl"],overflow:ql},leftBottom:{points:["br","bl"],overflow:ql},rightTop:{points:["tl","tr"],overflow:ql},rightBottom:{points:["bl","br"],overflow:ql}},zl={topLeft:{points:["bl","tl"],overflow:ql},topRight:{points:["br","tr"],overflow:ql},bottomLeft:{points:["tl","bl"],overflow:ql},bottomRight:{points:["tr","br"],overflow:ql},rightTop:{points:["tr","tl"],overflow:ql},rightBottom:{points:["br","bl"],overflow:ql},leftTop:{points:["tl","tr"],overflow:ql},leftBottom:{points:["bl","br"],overflow:ql}};function Bl(e,t,n){return t||(n?n[e]||n.other:void 0)}var Gl={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ql(e){var t=e.prefixCls,n=e.visible,i=e.children,o=e.popup,a=e.popupStyle,s=e.popupClassName,c=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,p=r.useContext(ys),f=p.getPopupContainer,h=p.rtl,m=p.subMenuOpenDelay,g=p.subMenuCloseDelay,v=p.builtinPlacements,y=p.triggerSubMenuAction,b=p.forceSubMenuRender,E=p.rootClassName,_=p.motion,w=p.defaultMotions,k=it(r.useState(!1),2),T=k[0],S=k[1],O=Kt(Kt({},h?zl:Vl),v),C=Gl[u],x=Bl(u,_,w),N=r.useRef(x);"inline"!==u&&(N.current=x);var I=Kt(Kt({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),A=r.useRef();return r.useEffect(function(){return A.current=Ja(function(){S(n)}),function(){Ja.cancel(A.current)}},[n]),r.createElement(Ml,{prefixCls:t,popupClassName:Fe()("".concat(t,"-popup"),at({},"".concat(t,"-rtl"),h),s,E),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:C,popupVisible:T,popup:o,popupStyle:a,popupAlign:c&&{offset:c},action:l?[]:[y],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:b,popupMotion:I,fresh:!0},i)}function Ul(e){var t=e.id,n=e.open,i=e.keyPath,o=e.children,a="inline",s=r.useContext(ys),c=s.prefixCls,l=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,p=s.mode,f=r.useRef(!1);f.current=p===a;var h=it(r.useState(!f.current),2),m=h[0],g=h[1],v=!!f.current&&n;r.useEffect(function(){f.current&&g(!1)},[p]);var y=Kt({},Bl(a,u,d));i.length>1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(e){return f.current||e||g(!0),null==b?void 0:b(e)},m?null:r.createElement(bs,{mode:a,locked:!f.current},r.createElement(ml,et({visible:v},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(e){var n=e.className,i=e.style;return r.createElement(uc,{id:t,className:n,style:i},o)}))}var Hl=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Kl=["active"],Wl=r.forwardRef(function(e,t){var n=e.style,i=e.className,o=e.title,a=e.eventKey,s=(e.warnKey,e.disabled),c=e.internalPopupClose,l=e.children,u=e.itemIcon,d=e.expandIcon,p=e.popupClassName,f=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,b=e.onTitleMouseEnter,E=e.onTitleMouseLeave,_=st(e,Hl),w=gs(a),k=r.useContext(ys),T=k.prefixCls,S=k.mode,O=k.openKeys,C=k.disabled,x=k.overflowDisabled,N=k.activeKey,I=k.selectedKeys,A=k.itemIcon,D=k.expandIcon,R=k.onItemClick,L=k.onOpenChange,P=k.onActive,j=r.useContext(Os)._internalRenderSubMenuItem,$=r.useContext(Ss).isSubPathKey,F=Ts(),M="".concat(T,"-submenu"),q=C||s,V=r.useRef(),z=r.useRef(),B=null!=u?u:A,G=null!=d?d:D,Q=O.includes(a),U=!x&&Q,H=$(I,a),K=Ws(a,q,b,E),W=K.active,Y=st(K,Kl),X=it(r.useState(!1),2),J=X[0],Z=X[1],ee=function(e){q||Z(e)},te=r.useMemo(function(){return W||"inline"!==S&&(J||$([N],a))},[S,W,N,J,a,$]),ne=Ys(F.length),re=Us(function(e){null==m||m(Zs(e)),R(e)}),ie=w&&"".concat(w,"-popup"),oe=r.useMemo(function(){return r.createElement(Xs,{icon:"horizontal"!==S?G:void 0,props:Kt(Kt({},e),{},{isOpen:U,isSubMenu:!0})},r.createElement("i",{className:"".concat(M,"-arrow")}))},[S,G,e,U,M]),ae=r.createElement("div",et({role:"menuitem",style:ne,className:"".concat(M,"-title"),tabIndex:q?null:-1,ref:V,title:"string"==typeof o?o:null,"data-menu-id":x&&w?null:w,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":ie,"aria-disabled":q,onClick:function(e){q||(null==y||y({key:a,domEvent:e}),"inline"===S&&L(a,!Q))},onFocus:function(){P(a)}},Y),o,oe),se=r.useRef(S);if("inline"!==S&&F.length>1?se.current="vertical":se.current=S,!x){var ce=se.current;ae=r.createElement(Ql,{mode:ce,prefixCls:M,visible:!c&&U&&"inline"!==S,popupClassName:p,popupOffset:f,popupStyle:h,popup:r.createElement(bs,{mode:"horizontal"===ce?"vertical":ce},r.createElement(uc,{id:ie,ref:z},l)),disabled:q,onVisibleChange:function(e){"inline"!==S&&L(a,e)}},ae)}var le=r.createElement(fs.Item,et({ref:t,role:"none"},_,{component:"li",style:n,className:Fe()(M,"".concat(M,"-").concat(S),i,at(at(at(at({},"".concat(M,"-open"),U),"".concat(M,"-active"),te),"".concat(M,"-selected"),H),"".concat(M,"-disabled"),q)),onMouseEnter:function(e){ee(!0),null==g||g({key:a,domEvent:e})},onMouseLeave:function(e){ee(!1),null==v||v({key:a,domEvent:e})}}),ae,!x&&r.createElement(Ul,{id:ie,open:U,keyPath:F},l));return j&&(le=j(le,e,{selected:H,active:te,open:U,disabled:q})),r.createElement(bs,{onItemClick:re,mode:"horizontal"===S?"vertical":S,itemIcon:B,expandIcon:G},le)});const Yl=r.forwardRef(function(e,t){var n,i=e.eventKey,o=e.children,a=Ts(i),s=dc(o,a),c=ws();return r.useEffect(function(){if(c)return c.registerPath(i,a),function(){c.unregisterPath(i,a)}},[a]),n=c?s:r.createElement(Wl,et({ref:t},e),s),r.createElement(ks.Provider,{value:a},n)});function Xl(e){var t=e.className,n=e.style,i=r.useContext(ys).prefixCls;return ws()?null:r.createElement("li",{role:"separator",className:Fe()("".concat(i,"-item-divider"),t),style:n})}var Jl=["className","title","eventKey","children"],Zl=r.forwardRef(function(e,t){var n=e.className,i=e.title,o=(e.eventKey,e.children),a=st(e,Jl),s=r.useContext(ys).prefixCls,c="".concat(s,"-item-group");return r.createElement("li",et({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:Fe()(c,n)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof i?i:void 0},i),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))});const eu=r.forwardRef(function(e,t){var n=e.eventKey,i=dc(e.children,Ts(n));return ws()?i:r.createElement(Zl,et({ref:t},Me(e,["warnKey"])),i)});var tu=["label","children","key","type","extra"];function nu(e,t,n){var i=t.item,o=t.group,a=t.submenu,s=t.divider;return(e||[]).map(function(e,c){if(e&&"object"===Ke(e)){var l=e,u=l.label,d=l.children,p=l.key,f=l.type,h=l.extra,m=st(l,tu),g=null!=p?p:"tmp-".concat(c);return d||"group"===f?"group"===f?r.createElement(o,et({key:g},m,{title:u}),nu(d,t,n)):r.createElement(a,et({key:g},m,{title:u}),nu(d,t,n)):"divider"===f?r.createElement(s,et({key:g},m)):r.createElement(i,et({key:g},m,{extra:h}),u,(!!h||0===h)&&r.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(e){return e})}function ru(e,t,n,r,i){var o=e,a=Kt({divider:Xl,item:ac,group:eu,submenu:Yl},r);return t&&(o=nu(t,a,i)),dc(o,n)}var iu=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ou=[],au=r.forwardRef(function(e,t){var n,i=e,o=i.prefixCls,a=void 0===o?"rc-menu":o,s=i.rootClassName,c=i.style,l=i.className,u=i.tabIndex,d=void 0===u?0:u,p=i.items,f=i.children,h=i.direction,m=i.id,g=i.mode,v=void 0===g?"vertical":g,y=i.inlineCollapsed,b=i.disabled,E=i.disabledOverflow,_=i.subMenuOpenDelay,w=void 0===_?.1:_,k=i.subMenuCloseDelay,T=void 0===k?.1:k,S=i.forceSubMenuRender,O=i.defaultOpenKeys,C=i.openKeys,x=i.activeKey,N=i.defaultActiveFirst,I=i.selectable,A=void 0===I||I,D=i.multiple,R=void 0!==D&&D,L=i.defaultSelectedKeys,P=i.selectedKeys,j=i.onSelect,$=i.onDeselect,F=i.inlineIndent,M=void 0===F?24:F,q=i.motion,V=i.defaultMotions,z=i.triggerSubMenuAction,B=void 0===z?"hover":z,G=i.builtinPlacements,Q=i.itemIcon,U=i.expandIcon,H=i.overflowedIndicator,K=void 0===H?"...":H,W=i.overflowedIndicatorPopupClassName,Y=i.getPopupContainer,X=i.onClick,J=i.onOpenChange,Z=i.onKeyDown,ee=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),te=i._internalRenderSubMenuItem,ne=i._internalComponents,re=st(i,iu),ie=it(r.useMemo(function(){return[ru(f,p,ou,ne,a),ru(f,p,ou,{},a)]},[f,p,ne]),2),oe=ie[0],ae=ie[1],se=it(r.useState(!1),2),ce=se[0],le=se[1],ue=r.useRef(),de=function(e){var t=it(Vi(e,{value:e}),2),n=t[0],i=t[1];return r.useEffect(function(){Ks+=1;var e="".concat(Hs,"-").concat(Ks);i("rc-menu-uuid-".concat(e))},[]),n}(m),pe="rtl"===h,fe=Vi(O,{value:C,postState:function(e){return e||ou}}),he=it(fe,2),me=he[0],ge=he[1],ve=function(e){function t(){ge(e),null==J||J(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,sa.flushSync)(t):t()},ye=it(r.useState(me),2),be=ye[0],Ee=ye[1],_e=r.useRef(!1),we=it(r.useMemo(function(){return"inline"!==v&&"vertical"!==v||!y?[v,!1]:["vertical",y]},[v,y]),2),ke=we[0],Te=we[1],Se="inline"===ke,Oe=it(r.useState(ke),2),Ce=Oe[0],xe=Oe[1],Ne=it(r.useState(Te),2),Ie=Ne[0],Ae=Ne[1];r.useEffect(function(){xe(ke),Ae(Te),_e.current&&(Se?ge(be):ve(ou))},[ke,Te]);var De=it(r.useState(0),2),Re=De[0],Le=De[1],Pe=Re>=oe.length-1||"horizontal"!==Ce||E;r.useEffect(function(){Se&&Ee(me)},[me]),r.useEffect(function(){return _e.current=!0,function(){_e.current=!1}},[]);var $e=function(){var e=it(r.useState({}),2)[1],t=(0,r.useRef)(new Map),n=(0,r.useRef)(new Map),i=it(r.useState([]),2),o=i[0],a=i[1],s=(0,r.useRef)(0),c=(0,r.useRef)(!1),l=(0,r.useCallback)(function(r,i){var o=Gs(i);n.current.set(o,r),t.current.set(r,o),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(c.current||e({}))},Promise.resolve().then(a)},[]),u=(0,r.useCallback)(function(e,r){var i=Gs(r);n.current.delete(i),t.current.delete(e)},[]),d=(0,r.useCallback)(function(e){a(e)},[]),p=(0,r.useCallback)(function(e,n){var r=(t.current.get(e)||"").split(Bs);return n&&o.includes(r[0])&&r.unshift(Qs),r},[o]),f=(0,r.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return p(e,!0).includes(t)})},[p]),h=(0,r.useCallback)(function(e){var r="".concat(t.current.get(e)).concat(Bs),i=new Set;return je(n.current.keys()).forEach(function(e){e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return r.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:l,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:f,getKeyPath:p,getKeys:function(){var e=je(t.current.keys());return o.length&&e.push(Qs),e},getSubPathKeys:h}}(),Me=$e.registerPath,qe=$e.unregisterPath,Ve=$e.refreshOverflowKeys,ze=$e.isSubPathKey,Be=$e.getKeyPath,Ge=$e.getKeys,Qe=$e.getSubPathKeys,Ue=r.useMemo(function(){return{registerPath:Me,unregisterPath:qe}},[Me,qe]),He=r.useMemo(function(){return{isSubPathKey:ze}},[ze]);r.useEffect(function(){Ve(Pe?ou:oe.slice(Re+1).map(function(e){return e.key}))},[Re,Pe]);var Ke=it(Vi(x||N&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:x}),2),We=Ke[0],Ye=Ke[1],Xe=Us(function(e){Ye(e)}),Je=Us(function(){Ye(void 0)});(0,r.useImperativeHandle)(t,function(){return{list:ue.current,focus:function(e){var t,n,r=Ge(),i=zs(r,de),o=i.elements,a=i.key2element,s=i.element2key,c=qs(ue.current,o),l=null!=We?We:c[0]?s.get(c[0]):null===(t=oe.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,u=a.get(l);l&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}});var Ze=Vi(L||[],{value:P,postState:function(e){return Array.isArray(e)?e:null==e?ou:[e]}}),tt=it(Ze,2),nt=tt[0],rt=tt[1],ot=Us(function(e){null==X||X(Zs(e)),function(e){if(A){var t,n=e.key,r=nt.includes(n);t=R?r?nt.filter(function(e){return e!==n}):[].concat(je(nt),[n]):[n],rt(t);var i=Kt(Kt({},e),{},{selectedKeys:t});r?null==$||$(i):null==j||j(i)}!R&&me.length&&"inline"!==Ce&&ve(ou)}(e)}),ct=Us(function(e,t){var n=me.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==Ce){var r=Qe(e);n=n.filter(function(e){return!r.has(e)})}qn(me,n,!0)||ve(n,!0)}),lt=function(e,t,n,i,o,a,s,c,l,u){var d=r.useRef(),p=r.useRef();p.current=t;var f=function(){Ja.cancel(d.current)};return r.useEffect(function(){return function(){f()}},[]),function(r){var h=r.which;if([].concat(Ms,[Ps,js,$s,Fs]).includes(h)){var m=a(),g=zs(m,i),v=g,y=v.elements,b=v.key2element,E=v.element2key,_=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(b.get(t),y),w=E.get(_),k=function(e,t,n,r){var i,o="prev",a="next",s="children",c="parent";if("inline"===e&&r===Ps)return{inlineTrigger:!0};var l=at(at({},Rs,o),Ls,a),u=at(at(at(at({},As,n?a:o),Ds,n?o:a),Ls,s),Ps,s),d=at(at(at(at(at(at({},Rs,o),Ls,a),Ps,s),js,c),As,n?s:c),Ds,n?c:s);switch(null===(i={inline:l,horizontal:u,vertical:d,inlineSub:l,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===i?void 0:i[r]){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(e,1===s(w,!0).length,n,h);if(!k&&h!==$s&&h!==Fs)return;(Ms.includes(h)||[$s,Fs].includes(h))&&r.preventDefault();var T=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=E.get(e);c(r),f(),d.current=Ja(function(){p.current===r&&t.focus()})}};if([$s,Fs].includes(h)||k.sibling||!_){var S,O,C=qs(S=_&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(_):o.current,y);O=h===$s?C[0]:h===Fs?C[C.length-1]:Vs(S,y,_,k.offset),T(O)}else if(k.inlineTrigger)l(w);else if(k.offset>0)l(w,!0),f(),d.current=Ja(function(){g=zs(m,i);var e=_.getAttribute("aria-controls"),t=Vs(document.getElementById(e),g.elements);T(t)},5);else if(k.offset<0){var x=s(w,!0),N=x[x.length-2],I=b.get(N);l(N,!1),T(I)}}null==u||u(r)}}(Ce,We,pe,de,ue,Ge,Be,Ye,function(e,t){var n=null!=t?t:!me.includes(e);ct(e,n)},Z);r.useEffect(function(){le(!0)},[]);var ut=r.useMemo(function(){return{_internalRenderMenuItem:ee,_internalRenderSubMenuItem:te}},[ee,te]),dt="horizontal"!==Ce||E?oe:oe.map(function(e,t){return r.createElement(bs,{key:e.key,overflowDisabled:t>Re},e)}),pt=r.createElement(fs,et({id:m,ref:ue,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ac,className:Fe()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ce),l,at(at({},"".concat(a,"-inline-collapsed"),Ie),"".concat(a,"-rtl"),pe),s),dir:h,style:c,role:"menu",tabIndex:d,data:dt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?oe.slice(-t):null;return r.createElement(Yl,{eventKey:Qs,title:K,disabled:Pe,internalPopupClose:0===t,popupClassName:W},n)},maxCount:"horizontal"!==Ce||E?fs.INVALIDATE:fs.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Le(e)},onKeyDown:lt},re));return r.createElement(Os.Provider,{value:ut},r.createElement(hs.Provider,{value:de},r.createElement(bs,{prefixCls:a,rootClassName:s,mode:Ce,openKeys:me,rtl:pe,disabled:b,motion:ce?q:null,defaultMotions:ce?V:null,activeKey:We,onActive:Xe,onInactive:Je,selectedKeys:nt,inlineIndent:M,subMenuOpenDelay:w,subMenuCloseDelay:T,forceSubMenuRender:S,builtinPlacements:G,triggerSubMenuAction:B,getPopupContainer:Y,itemIcon:Q,expandIcon:U,onItemClick:ot,onOpenChange:ct},r.createElement(Ss.Provider,{value:He},pt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(_s.Provider,{value:Ue},ae)))))}),su=au;su.Item=ac,su.SubMenu=Yl,su.ItemGroup=eu,su.Divider=Xl;const cu=su,lu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var uu=function(e,t){return r.createElement(Nn,et({},e,{ref:t,icon:lu}))};const du=r.forwardRef(uu),pu=()=>({height:0,opacity:0}),fu=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},hu=e=>({height:e?e.offsetHeight:0}),mu=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,gu=(e,t,n)=>void 0!==n?n:`${e}-${t}`,vu=(e=qe)=>({motionName:`${e}-motion-collapse`,onAppearStart:pu,onEnterStart:pu,onAppearActive:fu,onEnterActive:fu,onLeaveStart:hu,onLeaveActive:pu,onAppearEnd:mu,onEnterEnd:mu,onLeaveEnd:mu,motionDeadline:500});function yu(e){return e&&i().isValidElement(e)&&e.type===i().Fragment}function bu(e,t){return((e,t,n)=>i().isValidElement(e)?i().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}const Eu=e=>{const[,,,,t]=Fo();return t?`${e}-css-var`:""},_u=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const wu=e=>{const{prefixCls:t,className:n,dashed:i}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=r.useContext(Be),s=a("menu",t),c=Fe()({[`${s}-item-divider-dashed`]:!!i},n);return r.createElement(Xl,Object.assign({className:c},o))};function ku(e){var t=e.children,n=e.prefixCls,i=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,s=e.className,c=e.style;return r.createElement("div",{className:Fe()("".concat(n,"-content"),s),style:c},r.createElement("div",{className:Fe()("".concat(n,"-inner"),a),id:i,role:"tooltip",style:o},"function"==typeof t?t():t))}var Tu={shiftX:64,adjustY:1},Su={adjustX:1,shiftY:!0},Ou=[0,0],Cu={left:{points:["cr","cl"],overflow:Su,offset:[-4,0],targetOffset:Ou},right:{points:["cl","cr"],overflow:Su,offset:[4,0],targetOffset:Ou},top:{points:["bc","tc"],overflow:Tu,offset:[0,-4],targetOffset:Ou},bottom:{points:["tc","bc"],overflow:Tu,offset:[0,4],targetOffset:Ou},topLeft:{points:["bl","tl"],overflow:Tu,offset:[0,-4],targetOffset:Ou},leftTop:{points:["tr","tl"],overflow:Su,offset:[-4,0],targetOffset:Ou},topRight:{points:["br","tr"],overflow:Tu,offset:[0,-4],targetOffset:Ou},rightTop:{points:["tl","tr"],overflow:Su,offset:[4,0],targetOffset:Ou},bottomRight:{points:["tr","br"],overflow:Tu,offset:[0,4],targetOffset:Ou},rightBottom:{points:["bl","br"],overflow:Su,offset:[4,0],targetOffset:Ou},bottomLeft:{points:["tl","bl"],overflow:Tu,offset:[0,4],targetOffset:Ou},leftBottom:{points:["br","bl"],overflow:Su,offset:[-4,0],targetOffset:Ou}},xu=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Nu=function(e,t){var n=e.overlayClassName,i=e.trigger,o=void 0===i?["hover"]:i,a=e.mouseEnterDelay,s=void 0===a?0:a,c=e.mouseLeaveDelay,l=void 0===c?.1:c,u=e.overlayStyle,d=e.prefixCls,p=void 0===d?"rc-tooltip":d,f=e.children,h=e.onVisibleChange,m=e.afterVisibleChange,g=e.transitionName,v=e.animation,y=e.motion,b=e.placement,E=void 0===b?"right":b,_=e.align,w=void 0===_?{}:_,k=e.destroyTooltipOnHide,T=void 0!==k&&k,S=e.defaultVisible,O=e.getTooltipContainer,C=e.overlayInnerStyle,x=(e.arrowContent,e.overlay),N=e.id,I=e.showArrow,A=void 0===I||I,D=e.classNames,R=e.styles,L=st(e,xu),P=kc(N),j=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,function(){return j.current});var $,F,M=Kt({},L);return"visible"in e&&(M.popupVisible=e.visible),r.createElement(Ml,et({popupClassName:Fe()(n,null==D?void 0:D.root),prefixCls:p,popup:function(){return r.createElement(ku,{key:"content",prefixCls:p,id:P,bodyClassName:null==D?void 0:D.body,overlayInnerStyle:Kt(Kt({},C),null==R?void 0:R.body)},x)},action:o,builtinPlacements:Cu,popupPlacement:E,ref:j,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:v,popupMotion:y,defaultPopupVisible:S,autoDestroy:T,mouseLeaveDelay:l,popupStyle:Kt(Kt({},u),null==R?void 0:R.root),mouseEnterDelay:s,arrow:A},M),(F=Kt(Kt({},(null==($=r.Children.only(f))?void 0:$.props)||{}),{},{"aria-describedby":x?P:null}),r.cloneElement(f,F)))};const Iu=(0,r.forwardRef)(Nu);function Au(e,t){this.v=e,this.k=t}function Du(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Du=function(e,t,n,r){function o(t,n){Du(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Du(e,t,n,r)}function Ru(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Du(l,"_invoke",function(n,r,i){var o,s,c,l=0,u=i||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,s=0,c=e,p.n=n,a}};function f(n,r){for(s=n,c=r,t=0;!d&&l&&!i&&t<u.length;t++){var i,o=u[t],f=p.p,h=o[2];n>3?(i=h===r)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&f<o[1])?(s=0,p.v=r,p.n=o[1]):f<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,p.n=h,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,c=h;(t=s<2?e:c)||!d;){o||(s?s<3?(s>1&&(p.n=-1),f(s,c)):p.n=c:p.v=c);try{if(l=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=p.n<0)?c:n.call(r,p))!==a)break}catch(t){o=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,i,o),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Du(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Du(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Du(d,"constructor",l),Du(l,"constructor",c),c.displayName="GeneratorFunction",Du(l,i,"GeneratorFunction"),Du(d),Du(d,i,"Generator"),Du(d,r,function(){return this}),Du(d,"toString",function(){return"[object Generator]"}),(Ru=function(){return{w:o,m:p}})()}function Lu(e,t){function n(r,i,o,a){try{var s=e[r](i),c=s.value;return c instanceof Au?t.resolve(c.v).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(c).then(function(e){s.value=e,o(s)},function(e){return n("throw",e,o,a)})}catch(e){a(e)}}var r;this.next||(Du(Lu.prototype),Du(Lu.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Du(this,"_invoke",function(e,i,o){function a(){return new t(function(t,r){n(e,o,t,r)})}return r=r?r.then(a,a):a()},!0)}function Pu(e,t,n,r,i){return new Lu(Ru().w(e,t,n,r),i||Promise)}function ju(e,t,n,r,i){var o=Pu(e,t,n,r,i);return o.next().then(function(e){return e.done?e.value:o.next()})}function $u(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function Fu(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Ke(e)+" is not iterable")}function Mu(){var e=Ru(),t=e.m(Mu),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,Fu(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(Mu=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new Au(e,t)},AsyncIterator:Lu,async:function(e,t,n,i,a){return(r(t)?Pu:ju)(o(e),t,n,i,a)},keys:$u,values:Fu}})()}function qu(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Vu(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){qu(o,r,i,a,s,"next",e)}function s(e){qu(o,r,i,a,s,"throw",e)}a(void 0)})}}var zu="RC_FORM_INTERNAL_HOOKS",Bu=function(){mn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Gu=r.createContext({getFieldValue:Bu,getFieldsValue:Bu,getFieldError:Bu,getFieldWarning:Bu,getFieldsError:Bu,isFieldsTouched:Bu,isFieldTouched:Bu,isFieldValidating:Bu,isFieldsValidating:Bu,resetFields:Bu,setFields:Bu,setFieldValue:Bu,setFieldsValue:Bu,validateFields:Bu,submit:Bu,getInternalHooks:function(){return Bu(),{dispatch:Bu,initEntityValue:Bu,registerField:Bu,useSubscribe:Bu,setInitialValues:Bu,destroyForm:Bu,setCallbacks:Bu,registerWatch:Bu,getFields:Bu,setValidateMessages:Bu,setPreserve:Bu,getInitialValue:Bu}}}),Qu=r.createContext(null);function Uu(e){return null==e?[]:Array.isArray(e)?e:[e]}function Hu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Ku=Hu();function Wu(e){var t="function"==typeof Map?new Map:void 0;return Wu=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ni())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Oi(i,n.prototype),i}(e,arguments,xi(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Oi(n,e)},Wu(e)}var Yu=/%[sdj%]/g;function Xu(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Ju(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(Yu,function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}});return a}return e}function Zu(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e)}function ed(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}([])}"undefined"!=typeof process&&process.env;var td=function(e){Ci(n,e);var t=Ii(n);function n(e,r){var i;return Vn(this,n),at(Si(i=t.call(this,"Async Validation Error")),"errors",void 0),at(Si(i),"fields",void 0),i.errors=e,i.fields=r,i}return Bn(n)}(Wu(Error));function nd(e,t){return function(n){var r,i;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function rd(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===Ke(r)&&"object"===Ke(e[n])?e[n]=Kt(Kt({},e[n]),r):e[n]=r}return e}var id="enum";const od=function(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!Zu(t,o||e.type)||r.push(Ju(i.messages.required,e.fullField))};var ad,sd=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,cd=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,ld=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,ud={integer:function(e){return ud.number(e)&&parseInt(e,10)===e},float:function(e){return ud.number(e)&&!ud.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===Ke(e)&&!ud.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(sd)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(cd)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(ad)return ad;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(i.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),l=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(o).concat(t(e),")"),"g")};l.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},l.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")};var u=l.v4().source,d=l.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return ad=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ld)}};const dd=od,pd=function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(Ju(i.messages.whitespace,e.fullField))},fd=function(e,t,n,r,i){if(e.required&&void 0===t)od(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(o)>-1?ud[o](t)||r.push(Ju(i.messages.types[o],e.fullField,e.type)):o&&Ke(t)!==e.type&&r.push(Ju(i.messages.types[o],e.fullField,e.type))}},hd=function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,c=t,l=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?l="number":d?l="string":p&&(l="array"),!l)return!1;p&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&r.push(Ju(i.messages[l].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(Ju(i.messages[l].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(Ju(i.messages[l].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(Ju(i.messages[l].range,e.fullField,e.min,e.max))},md=function(e,t,n,r,i){e[id]=Array.isArray(e[id])?e[id]:[],-1===e[id].indexOf(t)&&r.push(Ju(i.messages[id],e.fullField,e[id].join(", ")))},gd=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ju(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Ju(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},vd=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t,o)&&!e.required)return n();dd(e,t,r,a,i,o),Zu(t,o)||fd(e,t,r,a,i)}n(a)},yd={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t,"string")&&!e.required)return n();dd(e,t,r,o,i,"string"),Zu(t,"string")||(fd(e,t,r,o,i),hd(e,t,r,o,i),gd(e,t,r,o,i),!0===e.whitespace&&pd(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i),void 0!==t&&fd(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Zu(t)&&!e.required)return n();dd(e,t,r,o,i),void 0!==t&&(fd(e,t,r,o,i),hd(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i),void 0!==t&&fd(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i),Zu(t)||fd(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i),void 0!==t&&(fd(e,t,r,o,i),hd(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i),void 0!==t&&(fd(e,t,r,o,i),hd(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();dd(e,t,r,o,i,"array"),null!=t&&(fd(e,t,r,o,i),hd(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i),void 0!==t&&fd(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i),void 0!==t&&md(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t,"string")&&!e.required)return n();dd(e,t,r,o,i),Zu(t,"string")||gd(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t,"date")&&!e.required)return n();var a;dd(e,t,r,o,i),Zu(t,"date")||(a=t instanceof Date?t:new Date(t),fd(e,a,r,o,i),a&&hd(e,a.getTime(),r,o,i))}n(o)},url:vd,hex:vd,email:vd,tel:vd,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":Ke(t);dd(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Zu(t)&&!e.required)return n();dd(e,t,r,o,i)}n(o)}};var bd=function(){function e(t){Vn(this,e),at(this,"rules",null),at(this,"_messages",Ku),this.define(t)}return Bn(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Ke(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=rd(Hu(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof i&&(o=i,i={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,r),Promise.resolve(r);if(i.messages){var a=this.messages();a===Ku&&(a=Hu()),rd(a,i.messages),i.messages=a}else i.messages=this.messages();var s={};(i.keys||Object.keys(this.rules)).forEach(function(e){var i=n.rules[e],o=r[e];i.forEach(function(i){var a=i;"function"==typeof a.transform&&(r===t&&(r=Kt({},r)),null!=(o=r[e]=a.transform(o))&&(a.type=a.type||(Array.isArray(o)?"array":Ke(o)))),(a="function"==typeof a?{validator:a}:Kt({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:o,source:r,field:e}))})});var c={};return function(e,t,n,r,i){if(t.first){var o=new Promise(function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,je(e[n]||[]))}),t}(e);ed(a,n,function(e){return r(e),e.length?o(new td(e,Xu(e))):t(i)})});return o.catch(function(e){return e}),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(t,o){var d=function(e){if(u.push.apply(u,e),++l===c)return r(u),u.length?o(new td(u,Xu(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?ed(r,n,d):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,je(e||[])),++i===o&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}(s,i,function(t,n){var o,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==Ke(a.fields)&&"object"!==Ke(a.defaultField));function l(e,t){return Kt(Kt({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(je(a.fullFields),[e]):[e]})}function u(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(o)?o:[o];!i.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&null!==a.message&&(u=[].concat(a.message));var d=u.map(nd(a,r));if(i.first&&d.length)return c[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(nd(a,r)):i.error&&(d=[i.error(a,Ju(i.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map(function(e){p[e]=a.defaultField}),p=Kt(Kt({},p),t.rule.fields);var f={};Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(l.bind(null,e))});var h=new e(f);h.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),h.validate(t.value,t.rule.options||i,function(e){var t=[];d&&d.length&&t.push.apply(t,je(d)),e&&e.length&&t.push.apply(t,je(e)),n(t.length?t:null)})}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)o=a.asyncValidator(a,t.value,u,t.source,i);else if(a.validator){try{o=a.validator(a,t.value,u,t.source,i)}catch(e){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,e),i.suppressValidatorError||setTimeout(function(){throw e},0),u(e.message)}!0===o?u():!1===o?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function i(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,je(e)):t.push(e)}for(var a=0;a<e.length;a++)i(e[a]);t.length?(n=Xu(t),o(t,n)):o(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!yd.hasOwnProperty(e.type))throw new Error(Ju("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?yd.required:yd[this.getType(e)]||void 0}}]),e}();at(bd,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");yd[e]=t}),at(bd,"warning",function(){}),at(bd,"messages",Ku),at(bd,"validators",yd);var Ed="'${name}' is not a valid ${type}",_d={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Ed,method:Ed,array:Ed,object:Ed,number:Ed,date:Ed,boolean:Ed,integer:Ed,float:Ed,regexp:Ed,email:Ed,url:Ed,hex:Ed},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},wd=bd;function kd(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var Td="CODE_LOGIC_ERROR";function Sd(_x,e,t,n,r){return Od.apply(this,arguments)}function Od(){return Od=Vu(Mu().mark(function e(t,n,i,o,a){var s,c,l,u,d,p,f,h,m;return Mu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(s=Kt({},i)).ruleIndex,wd.warning=function(){},s.validator&&(c=s.validator,s.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Td)}}),l=null,s&&"array"===s.type&&s.defaultField&&(l=s.defaultField,delete s.defaultField),u=new wd(at({},t,[s])),d=to(_d,o.validateMessages),u.messages(d),p=[],e.prev=10,e.next=13,Promise.resolve(u.validate(at({},t,n),Kt({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(p=e.t0.errors.map(function(e,t){var n=e.message,i=n===Td?d.default:n;return r.isValidElement(i)?r.cloneElement(i,{key:"error_".concat(t)}):i}));case 18:if(!(!p.length&&l&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Sd("".concat(t,".").concat(n),e,l,o,a)}));case 21:return f=e.sent,e.abrupt("return",f.reduce(function(e,t){return[].concat(je(e),je(t))},[]));case 23:return h=Kt(Kt({},i),{},{name:t,enum:(i.enum||[]).join(", ")},a),m=p.map(function(e){return"string"==typeof e?kd(e,h):e}),e.abrupt("return",m);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),Od.apply(this,arguments)}function Cd(e,t,n,r,i,o){var a,s=e.join("."),c=n.map(function(e,t){var n=e.validator,r=Kt(Kt({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,o=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){mn(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,t)})});i=o&&"function"==typeof o.then&&"function"==typeof o.catch,mn(i,"`callback` is deprecated. Please return a promise instead."),i&&o.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,i=t.warningOnly,o=t.ruleIndex;return!!n==!!i?r-o:n?1:-1});if(!0===i)a=new Promise(function(){var e=Vu(Mu().mark(function e(n,i){var a,l,u;return Mu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return l=c[a],e.next=5,Sd(s,t,l,r,o);case 5:if(!(u=e.sent).length){e.next=9;break}return i([{errors:u,rule:l}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var l=c.map(function(e){return Sd(s,t,e,r,o).then(function(t){return{errors:t,rule:e}})});a=(i?function(e){return Nd.apply(this,arguments)}(l):function(e){return xd.apply(this,arguments)}(l)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function xd(){return(xd=Vu(Mu().mark(function e(t){return Mu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,je(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Nd(){return(Nd=Vu(Mu().mark(function e(t){var n;return Mu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Id(e){return Uu(e)}function Ad(e,t){var n={};return t.forEach(function(t){var r=Yi(e,t);n=Ji(n,t,r)}),n}function Dd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return Rd(t,e,n)})}function Rd(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t})}function Ld(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Ke(t.target)&&e in t.target?t.target[e]:t}function Pd(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(je(e.slice(0,n)),[i],je(e.slice(n,t)),je(e.slice(t+1,r))):o<0?[].concat(je(e.slice(0,t)),je(e.slice(t+1,n+1)),[i],je(e.slice(n+1,r))):e}var jd=["name"],$d=[];function Fd(e,t,n,r,i,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Md=function(e){Ci(n,e);var t=Ii(n);function n(e){var i;return Vn(this,n),at(Si(i=t.call(this,e)),"state",{resetCount:0}),at(Si(i),"cancelRegisterFunc",null),at(Si(i),"mounted",!1),at(Si(i),"touched",!1),at(Si(i),"dirty",!1),at(Si(i),"validatePromise",void 0),at(Si(i),"prevValidating",void 0),at(Si(i),"errors",$d),at(Si(i),"warnings",$d),at(Si(i),"cancelRegister",function(){var e=i.props,t=e.preserve,n=e.isListField,r=e.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,t,Id(r)),i.cancelRegisterFunc=null}),at(Si(i),"getNamePath",function(){var e=i.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(je(void 0===n?[]:n),je(t)):[]}),at(Si(i),"getRules",function(){var e=i.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(r):e})}),at(Si(i),"refresh",function(){i.mounted&&i.setState(function(e){return{resetCount:e.resetCount+1}})}),at(Si(i),"metaCache",null),at(Si(i),"triggerMetaEvent",function(e){var t=i.props.onMetaChange;if(t){var n=Kt(Kt({},i.getMeta()),{},{destroy:e});qn(i.metaCache,n)||t(n),i.metaCache=n}else i.metaCache=null}),at(Si(i),"onStoreChange",function(e,t,n){var r=i.props,o=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,c=r.onReset,l=n.store,u=i.getNamePath(),d=i.getValue(e),p=i.getValue(l),f=t&&Dd(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||qn(d,p)||(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=$d,i.warnings=$d,i.triggerMetaEvent()),n.type){case"reset":if(!t||f)return i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=$d,i.warnings=$d,i.triggerMetaEvent(),null==c||c(),void i.refresh();break;case"remove":if(o&&Fd(o,e,l,d,p,n))return void i.reRender();break;case"setField":var h=n.data;if(f)return"touched"in h&&(i.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(i.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(i.errors=h.errors||$d),"warnings"in h&&(i.warnings=h.warnings||$d),i.dirty=!0,i.triggerMetaEvent(),void i.reRender();if("value"in h&&Dd(t,u,!0))return void i.reRender();if(o&&!u.length&&Fd(o,e,l,d,p,n))return void i.reRender();break;case"dependenciesUpdate":if(s.map(Id).some(function(e){return Dd(n.relatedFields,e)}))return void i.reRender();break;default:if(f||(!s.length||u.length||o)&&Fd(o,e,l,d,p,n))return void i.reRender()}!0===o&&i.reRender()}),at(Si(i),"validateRules",function(e){var t=i.getNamePath(),n=i.getValue(),r=e||{},o=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,c=Promise.resolve().then(Vu(Mu().mark(function r(){var a,s,l,u,d,p,f;return Mu().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=i.props,s=a.validateFirst,l=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,p=i.getRules(),o&&(p=p.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||Uu(t).includes(o)})),!d||!o){r.next=10;break}return r.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(i.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(f=Cd(t,n,p,e,l,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$d;if(i.validatePromise===c){var t;i.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,i=e.errors,o=void 0===i?$d:i;t?r.push.apply(r,je(o)):n.push.apply(n,je(o))}),i.errors=n,i.warnings=r,i.triggerMetaEvent(),i.reRender()}}),r.abrupt("return",f);case 13:case"end":return r.stop()}},r)})));return s||(i.validatePromise=c,i.dirty=!0,i.errors=$d,i.warnings=$d,i.triggerMetaEvent(),i.reRender()),c}),at(Si(i),"isFieldValidating",function(){return!!i.validatePromise}),at(Si(i),"isFieldTouched",function(){return i.touched}),at(Si(i),"isFieldDirty",function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(zu).getInitialValue)(i.getNamePath())}),at(Si(i),"getErrors",function(){return i.errors}),at(Si(i),"getWarnings",function(){return i.warnings}),at(Si(i),"isListField",function(){return i.props.isListField}),at(Si(i),"isList",function(){return i.props.isList}),at(Si(i),"isPreserve",function(){return i.props.preserve}),at(Si(i),"getMeta",function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:null===i.validatePromise}}),at(Si(i),"getOnlyChild",function(e){if("function"==typeof e){var t=i.getMeta();return Kt(Kt({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=Ze(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),at(Si(i),"getValue",function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return Yi(e||t(!0),n)}),at(Si(i),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.name,r=t.trigger,o=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,c=t.valuePropName,l=t.getValueProps,u=t.fieldContext,d=void 0!==o?o:u.validateTrigger,p=i.getNamePath(),f=u.getInternalHooks,h=u.getFieldsValue,m=f(zu).dispatch,g=i.getValue(),v=l||function(e){return at({},c,e)},y=e[r],b=void 0!==n?v(g):{},E=Kt(Kt({},e),b);return E[r]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):Ld.apply(void 0,[c].concat(n)),s&&(e=s(e,g,h(!0))),e!==g&&m({type:"updateValue",namePath:p,value:e}),y&&y.apply(void 0,n)},Uu(d||[]).forEach(function(e){var t=E[e];E[e]=function(){t&&t.apply(void 0,arguments);var n=i.props.rules;n&&n.length&&m({type:"validateField",namePath:p,triggerName:e})}}),E}),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(zu).initEntityValue)(Si(i)),i}return Bn(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(zu).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,i=this.getOnlyChild(n),o=i.child;return i.isFunction?e=o:r.isValidElement(o)?e=r.cloneElement(o,this.getControlled(o.props)):(mn(!o,"`children` of Field is not validate ReactElement."),e=o),r.createElement(r.Fragment,{key:t},e)}}]),n}(r.Component);at(Md,"contextType",Gu),at(Md,"defaultProps",{trigger:"onChange",valuePropName:"value"});const qd=function(e){var t,n=e.name,i=st(e,jd),o=r.useContext(Gu),a=r.useContext(Qu),s=void 0!==n?Id(n):void 0,c=null!==(t=i.isListField)&&void 0!==t?t:!!a,l="keep";return c||(l="_".concat((s||[]).join("_"))),r.createElement(Md,et({key:l,name:s,isListField:c},i,{fieldContext:o}))};var Vd="__@field_split__";function zd(e){return e.map(function(e){return"".concat(Ke(e),":").concat(e)}).join(Vd)}var Bd=function(){function e(){Vn(this,e),at(this,"kvs",new Map)}return Bn(e,[{key:"set",value:function(e,t){this.kvs.set(zd(e),t)}},{key:"get",value:function(e){return this.kvs.get(zd(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(zd(e))}},{key:"map",value:function(e){return je(this.kvs.entries()).map(function(t){var n=it(t,2),r=n[0],i=n[1],o=r.split(Vd);return e({key:o.map(function(e){var t=it(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),value:i})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}();const Gd=Bd;var Qd=["name"],Ud=Bn(function e(t){var n=this;Vn(this,e),at(this,"formHooked",!1),at(this,"forceRootUpdate",void 0),at(this,"subscribable",!0),at(this,"store",{}),at(this,"fieldEntities",[]),at(this,"initialValues",{}),at(this,"callbacks",{}),at(this,"validateMessages",null),at(this,"preserve",null),at(this,"lastValidatePromise",null),at(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),at(this,"getInternalHooks",function(e){return e===zu?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(mn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),at(this,"useSubscribe",function(e){n.subscribable=e}),at(this,"prevWithoutPreserves",null),at(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,i=to(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;i=Ji(i,n,Yi(e,n))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),at(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new Gd;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),at(this,"getInitialValue",function(e){var t=Yi(n.initialValues,e);return e.length?to(t):t}),at(this,"setCallbacks",function(e){n.callbacks=e}),at(this,"setValidateMessages",function(e){n.validateMessages=e}),at(this,"setPreserve",function(e){n.preserve=e}),at(this,"watchList",[]),at(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),at(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),at(this,"timeoutId",null),at(this,"warningUnhooked",function(){}),at(this,"updateStore",function(e){n.store=e}),at(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),at(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Gd;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),at(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Id(e);return t.get(n)||{INVALIDATE_NAME_PATH:Id(e)}})}),at(this,"getFieldsValue",function(e,t){var r,i,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,i=t):e&&"object"===Ke(e)&&(o=e.strict,i=e.filter),!0===r&&!i)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach(function(e){var t,n,a,c,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(i){var u="getMeta"in e?e.getMeta():null;i(u)&&s.push(l)}else s.push(l)}),Ad(n.store,s.map(Id))}),at(this,"getFieldValue",function(e){n.warningUnhooked();var t=Id(e);return Yi(n.store,t)}),at(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Id(e[n]),errors:[],warnings:[]}})}),at(this,"getFieldError",function(e){n.warningUnhooked();var t=Id(e);return n.getFieldsError([t])[0].errors}),at(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Id(e);return n.getFieldsError([t])[0].warnings}),at(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,o=t[0],a=t[1],s=!1;0===t.length?i=null:1===t.length?Array.isArray(o)?(i=o.map(Id),s=!1):(i=null,s=o):(i=o.map(Id),s=a);var c=n.getFieldEntities(!0),l=function(e){return e.isFieldTouched()};if(!i)return s?c.every(function(e){return l(e)||e.isList()}):c.some(l);var u=new Gd;i.forEach(function(e){u.set(e,[])}),c.forEach(function(e){var t=e.getNamePath();i.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(je(t),[e])})})});var d=function(e){return e.some(l)},p=u.map(function(e){return e.value});return s?p.every(d):p.some(d)}),at(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),at(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(Id);return t.some(function(e){var t=e.getNamePath();return Dd(r,t)&&e.isFieldValidating()})}),at(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),at(this,"resetWithFieldInitialValue",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new Gd,i=n.getFieldEntities(!0);i.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var i=r.get(n)||new Set;i.add({entity:e,value:t}),r.set(n,i)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,i=r.get(t);i&&(n=e).push.apply(n,je(je(i).map(function(e){return e.entity})))})):e=i,e.forEach(function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==n.getInitialValue(i))mn(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=r.get(i);if(o&&o.size>1)mn(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(Ji(n.store,i,je(o)[0].value))}}}})}),at(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(to(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Id);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Ji(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),at(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var i=e.name,o=st(e,Qd),a=Id(i);r.push(a),"value"in o&&n.updateStore(Ji(n.store,a,o.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),at(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=Kt(Kt({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),at(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Yi(n.store,r)&&n.updateStore(Ji(n.store,r,t))}}),at(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),at(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!Rd(e.getNamePath(),t)})){var s=n.store;n.updateStore(Ji(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}}),at(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}}),at(this,"notifyObservers",function(e,t,r){if(n.subscribable){var i=Kt(Kt({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,i)})}else n.forceRootUpdate()}),at(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(je(r))}),r}),at(this,"updateValue",function(e,t){var r=Id(e),i=n.store;n.updateStore(Ji(n.store,r,t)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(Ad(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(je(o)))}),at(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=to(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),at(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),at(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],i=new Gd;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Id(t);i.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(i.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}})}(e),r}),at(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new Gd;t.forEach(function(e){var t=e.name,n=e.errors;o.set(t,n)}),i.forEach(function(e){e.errors=o.get(e.name)||e.errors})}var a=i.filter(function(t){var n=t.name;return Dd(e,n)});a.length&&r(a,i)}}),at(this,"validateFields",function(e,t){var r,i;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,i=t):i=e;var o=!!r,a=o?r.map(Id):[],s=[],c=String(Date.now()),l=new Set,u=i||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(o||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(l.add(t.join(c)),!o||Dd(a,t,d)){var r=e.validateRules(Kt({validateMessages:Kt(Kt({},_d),n.validateMessages)},i));s.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],i=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,je(n)):r.push.apply(r,je(n))}),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}}))}}});var f=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))})})}):Promise.resolve([])}(s);n.lastValidatePromise=f,f.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var h=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==f})});h.catch(function(e){return e});var m=a.filter(function(e){return l.has(e.join(c))});return n.triggerOnFieldsChange(m),h}),at(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});const Hd=function(e){var t=r.useRef(),n=it(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var i=new Ud(function(){n({})});t.current=i.getForm()}return[t.current]};var Kd=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const Wd=Kd;var Yd=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Xd=function(e,t){var n=e.name,i=e.initialValues,o=e.fields,a=e.form,s=e.preserve,c=e.children,l=e.component,u=void 0===l?"form":l,d=e.validateMessages,p=e.validateTrigger,f=void 0===p?"onChange":p,h=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,y=e.clearOnDestroy,b=st(e,Yd),E=r.useRef(null),_=r.useContext(Wd),w=it(Hd(a),1)[0],k=w.getInternalHooks(zu),T=k.useSubscribe,S=k.setInitialValues,O=k.setCallbacks,C=k.setValidateMessages,x=k.setPreserve,N=k.destroyForm;r.useImperativeHandle(t,function(){return Kt(Kt({},w),{},{nativeElement:E.current})}),r.useEffect(function(){return _.registerForm(n,w),function(){_.unregisterForm(n)}},[_,w,n]),C(Kt(Kt({},_.validateMessages),d)),O({onValuesChange:h,onFieldsChange:function(e){if(_.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];m.apply(void 0,[e].concat(r))}},onFinish:function(e){_.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),x(s);var I,A=r.useRef(null);S(i,!A.current),A.current||(A.current=!0),r.useEffect(function(){return function(){return N(y)}},[]);var D="function"==typeof c;I=D?c(w.getFieldsValue(!0),w):c,T(!D);var R=r.useRef();r.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Ke(e)||"object"!==Ke(t))return!1;var n=Object.keys(e),r=Object.keys(t);return je(new Set([].concat(n,r))).every(function(n){var r=e[n],i=t[n];return"function"==typeof r&&"function"==typeof i||r===i})})(R.current||[],o||[])||w.setFields(o||[]),R.current=o},[o,w]);var L=r.useMemo(function(){return Kt(Kt({},w),{},{validateTrigger:f})},[w,f]),P=r.createElement(Qu.Provider,{value:null},r.createElement(Gu.Provider,{value:L},I));return!1===u?P:r.createElement(u,et({},b,{ref:E,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),P)};function Jd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Zd=r.forwardRef(Xd);Zd.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,a=r.useContext(Kd),s=r.useRef({});return r.createElement(Kd.Provider,{value:Kt(Kt({},a),{},{validateMessages:Kt(Kt({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=Kt(Kt({},s.current),{},at({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Kt({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},o)},Zd.Field=qd,Zd.List=function(e){var t=e.name,n=e.initialValue,i=e.children,o=e.rules,a=e.validateTrigger,s=e.isListField,c=r.useContext(Gu),l=r.useContext(Qu),u=r.useRef({keys:[],id:0}).current,d=r.useMemo(function(){var e=Id(c.prefixName)||[];return[].concat(je(e),je(Id(t)))},[c.prefixName,t]),p=r.useMemo(function(){return Kt(Kt({},c),{},{prefixName:d})},[c,d]),f=r.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}},[d]);return"function"!=typeof i?(mn(!1,"Form.List only accepts function as children."),null):r.createElement(Qu.Provider,{value:f},r.createElement(Gu.Provider,{value:p},r.createElement(qd,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=s?s:!!l},function(e,t){var n=e.value,r=void 0===n?[]:n,o=e.onChange,a=c.getFieldValue,s=function(){return a(d||[])||[]},l={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(je(u.keys.slice(0,t)),[u.id],je(u.keys.slice(t))),o([].concat(je(n.slice(0,t)),[e],je(n.slice(t))))):(u.keys=[].concat(je(u.keys),[u.id]),o([].concat(je(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Pd(u.keys,e,t),o(Pd(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),i(p.map(function(__,e){var t=u.keys[e];return void 0===t&&(u.keys[e]=u.id,t=u.keys[e],u.id+=1),{name:e,key:t,isListField:!0}}),l,t)})))},Zd.useForm=Hd,Zd.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0],o=t[1],a=void 0===o?{}:o,s=function(e){return e&&!!e._init}(a)?{form:a}:a,c=s.form,l=it((0,r.useState)(),2),u=l[0],d=l[1],p=(0,r.useMemo)(function(){return Jd(u)},[u]),f=(0,r.useRef)(p);f.current=p;var h=(0,r.useContext)(Gu),m=c||h,g=m&&m._init,v=Id(i),y=(0,r.useRef)(v);return y.current=v,(0,r.useEffect)(function(){if(g){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(zu).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof i?i(n):Yi(n,y.current)},r=t(function(e,t){var r=n(e,t),i=Jd(r);f.current!==i&&(f.current=i,d(r))}),o=n(e(),e(!0));return u!==o&&d(o),r}},[g]),u};const ep=r.createContext({}),tp=({children:e,status:t,override:n})=>{const i=r.useContext(ep),o=r.useMemo(()=>{const e=Object.assign({},i);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,i]);return r.createElement(ep.Provider,{value:o},e)},np=r.createContext(void 0),rp=r.createContext(null),ip=e=>{const{children:t}=e;return r.createElement(rp.Provider,{value:null},t)},op=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let o=r;return n&&(o=i().createElement(tp,{override:!0,status:!0},o)),t&&(o=i().createElement(ip,null,o)),o},ap=i().createContext(void 0),sp=100,cp={Modal:sp,Drawer:sp,Popover:sp,Popconfirm:sp,Tooltip:sp,Tour:sp,FloatButton:sp},lp={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},up=(e,t)=>{const[,n]=Fo(),r=i().useContext(ap),o=e in cp;let a;if(void 0!==t)a=[t,t];else{let i=null!=r?r:0;i+=o?(r?0:n.zIndexPopupBase)+cp[e]:lp[e],a=[void 0===r?t:i,i]}return a},dp=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${cr(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function pp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function fp(e,t){return e?t:{}}function hp(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},dp(e,t,i)),{"&:before":{background:t}})]},fp(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${cr(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),fp(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${cr(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),fp(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),fp(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}const mp={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},gp={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},vp=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function yp(){}const bp=e=>({animationDuration:e,animationFillMode:"both"}),Ep=e=>({animationDuration:e,animationFillMode:"both"}),_p=(e,t,n,r,i=!1)=>{const o=i?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},bp(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ep(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},wp=new ki("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),kp=new ki("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Tp=new ki("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sp=new ki("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Op=new ki("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Cp=new ki("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),xp={zoom:{inKeyframes:wp,outKeyframes:kp},"zoom-big":{inKeyframes:Tp,outKeyframes:Sp},"zoom-big-fast":{inKeyframes:Tp,outKeyframes:Sp},"zoom-left":{inKeyframes:new ki("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new ki("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new ki("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new ki("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Op,outKeyframes:Cp},"zoom-down":{inKeyframes:new ki("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new ki("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Np=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=xp[t];return[_p(r,i,o,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ip=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ap(e,t){return Ip.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const Dp=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:f}=e,h=t(a).add(f).add(p).equal(),m=t(a).mul(2).add(f).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ho(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:m,minHeight:c,padding:`${cr(e.calc(u).div(2).equal())} ${cr(d)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),Ap(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},hp(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Rp=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},pp({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=i,a=1*r/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),l=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*i-c,d=l,p=2*i-a,f=s,h=2*i-0,m=o,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${o} A ${r} ${r} 0 0 0 ${a} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${f} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*i-v}px 100%, ${v}px 100%)`}}(oo(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Lp=(e,t=!0)=>{const n=Mo("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,i=oo(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Dp(i),Np(e,"zoom-big-fast")]},Rp,{resetStyle:!1,injectStyle:t});return n(e)},Pp=Ip.map(e=>`${e}-inverse`),jp=Math.round;function $p(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Fp=(e,t,n)=>0===n?e:e/100;function Mp(e,t){const n=t||255;return e>n?n:e<0?0:e}class qp{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(at(this,"isValid",!0),at(this,"r",0),at(this,"g",0),at(this,"b",0),at(this,"a",1),at(this,"_h",void 0),at(this,"_s",void 0),at(this,"_l",void 0),at(this,"_v",void 0),at(this,"_max",void 0),at(this,"_min",void 0),at(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof qp)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Mp(e.r),this.g=Mp(e.g),this.b=Mp(e.b),this.a="number"==typeof e.a?Mp(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:jp(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],o={r:jp(i("r")),g:jp(i("g")),b:jp(i("b")),a:jp(100*i("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>jp((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=jp(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=jp(100*this.getSaturation()),n=jp(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Mp(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=jp(255*n);this.r=e,this.g=e,this.b=e}let i=0,o=0,a=0;const s=e/60,c=(1-Math.abs(2*n-1))*t,l=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,o=l):s>=1&&s<2?(i=l,o=c):s>=2&&s<3?(o=c,a=l):s>=3&&s<4?(o=l,a=c):s>=4&&s<5?(i=l,a=c):s>=5&&s<6&&(i=c,a=l);const u=n-c/2;this.r=jp(255*(i+u)),this.g=jp(255*(o+u)),this.b=jp(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const i=jp(255*n);if(this.r=i,this.g=i,this.b=i,t<=0)return;const o=e/60,a=Math.floor(o),s=o-a,c=jp(n*(1-t)*255),l=jp(n*(1-t*s)*255),u=jp(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=l,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=l;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=l}}fromHsvString(e){const t=$p(e,Fp);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=$p(e,Fp);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=$p(e,(e,t)=>t.includes("%")?jp(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Vp,zp=["b"],Bp=["v"],Gp=function(e){return Math.round(Number(e||0))},Qp=function(e){Ci(n,e);var t=Ii(n);function n(e){return Vn(this,n),t.call(this,function(e){if(e instanceof qp)return e;if(e&&"object"===Ke(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return Kt(Kt({},st(t,zp)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Bn(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Gp(100*e.s),n=Gp(100*e.b),r=Gp(e.h),i=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return Kt(Kt({},st(e,Bp)),{},{b:t,a:this.a})}}]),n}(qp);(Vp="#1677ff")instanceof Qp||new Qp(Vp);let Up=function(){return Bn(function e(t){var n;if(Vn(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Qp(this.colors[0].color.metaColor)):this.metaColor=new Qp(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();function Hp(e,t){const n=function(e,t=!0){return t?[].concat(je(Pp),je(Ip)).includes(e):Ip.includes(e)}(t),r=Fe()({[`${e}-${t}`]:t&&n}),i={},o={},a=(e=>e instanceof Up?e:new Up(e))(t).toRgb(),s=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=s,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const Kp=r.forwardRef((e,t)=>{var n,i;const{prefixCls:o,openClassName:a,getTooltipContainer:s,color:c,overlayInnerStyle:l,children:u,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,destroyOnHidden:h,arrow:m=!0,title:g,overlay:v,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:E=!0,motion:_,getPopupContainer:w,placement:k="top",mouseEnterDelay:T=.1,mouseLeaveDelay:S=.1,overlayStyle:O,rootClassName:C,overlayClassName:x,styles:N,classNames:I}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),D=!!m,[,R]=Fo(),{getPopupContainer:L,getPrefixCls:P,direction:j,className:$,style:F,classNames:M,styles:q}=Ue("tooltip"),V=(()=>{const e=()=>{};return e.deprecated=yp,e})(),z=r.useRef(null),B=()=>{var e;null===(e=z.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>{var e,t;return{forceAlign:B,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),B()},nativeElement:null===(e=z.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=z.current)||void 0===t?void 0:t.popupElement}});const[G,Q]=Vi(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(i=e.defaultOpen)&&void 0!==i?i:e.defaultVisible}),U=!g&&!v&&0!==g,H=r.useMemo(()=>{var e,t;let n=b;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:b),y||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,c={},l=pp({contentRadius:o,limitVerticalRadius:!0});return Object.keys(mp).forEach(e=>{const o=r&&gp[e]||mp[e],u=Object.assign(Object.assign({},o),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,vp.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+i}if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-l.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=l.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-l.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*l.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const i=r&&"object"==typeof r?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,l,t,n),a&&(u.htmlRegion="visibleFirst")}),c}({arrowPointAtCenter:n,autoAdjustOverflow:E,arrowWidth:D?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[b,m,y,R]),K=r.useMemo(()=>0===g?g:v||g||"",[v,g]),W=r.createElement(op,{space:!0},"function"==typeof K?K():K),Y=P("tooltip",o),X=P(),J=e["data-popover-inject"];let Z=G;"open"in e||"visible"in e||!U||(Z=!1);const ee=r.isValidElement(u)&&!yu(u)?u:r.createElement("span",null,u),te=ee.props,ne=te.className&&"string"!=typeof te.className?te.className:Fe()(te.className,a||`${Y}-open`),[re,ie,oe]=Lp(Y,!J),ae=Hp(Y,c),se=ae.arrowStyle,ce=Fe()(x,{[`${Y}-rtl`]:"rtl"===j},ae.className,C,ie,oe,$,M.root,null==I?void 0:I.root),le=Fe()(M.body,null==I?void 0:I.body),[ue,de]=up("Tooltip",A.zIndex),pe=r.createElement(Iu,Object.assign({},A,{zIndex:ue,showArrow:D,placement:k,mouseEnterDelay:T,mouseLeaveDelay:S,prefixCls:Y,classNames:{root:ce,body:le},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se),q.root),F),O),null==N?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),l),null==N?void 0:N.body),ae.overlayStyle)},getTooltipContainer:w||s||L,ref:z,builtinPlacements:H,overlay:W,visible:Z,onVisibleChange:t=>{var n,r;Q(!U&&t),U||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:p,arrowContent:r.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:gu(X,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=h?h:!!f}),Z?bu(ee,{className:ne}):ee);return re(r.createElement(ap.Provider,{value:de},pe))}),Wp=Kp;Wp._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:i="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:c}=r.useContext(Be),l=c("tooltip",t),[u,d,p]=Lp(l),f=Hp(l,a),h=f.arrowStyle,m=Object.assign(Object.assign({},s),f.overlayStyle),g=Fe()(d,p,l,`${l}-pure`,`${l}-placement-${i}`,n,f.className);return u(r.createElement("div",{className:g,style:h},r.createElement("div",{className:`${l}-arrow`}),r.createElement(ku,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:m}),o)))};const Yp=Wp,Xp=e=>{var t;const{className:n,children:i,icon:o,title:a,danger:s,extra:c}=e,{prefixCls:l,firstLevel:u,direction:d,disableMenuItemTitleTooltip:p,inlineCollapsed:f}=r.useContext(_u),{siderCollapsed:h}=r.useContext(Ho);let m=a;void 0===a?m=u?i:"":!1===a&&(m="");const g={title:m};h||f||(g.title=null,g.open=!1);const v=Ze(i).length;let y=r.createElement(ac,Object.assign({},Me(e,["title","icon","danger"]),{className:Fe()({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(o?v+1:v)},n),title:"string"==typeof a?a:void 0}),bu(o,{className:Fe()(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0,`${l}-item-icon`)}),(e=>{const t=null==i?void 0:i[0],n=r.createElement("span",{className:Fe()(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!c||0===c})},i);return(!o||r.isValidElement(i)&&"span"===i.type)&&i&&e&&u&&"string"==typeof t?r.createElement("div",{className:`${l}-inline-collapsed-noicon`},t.charAt(0)):n})(f));return p||(y=r.createElement(Yp,Object.assign({},g,{placement:"rtl"===d?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y},Jp=r.createContext(null),Zp=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ef={"slide-up":{inKeyframes:new ki("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new ki("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new ki("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new ki("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new ki("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new ki("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new ki("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new ki("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},tf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=ef[t];return[_p(r,i,o,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},nf=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${cr(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},rf=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${cr(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${cr(t)})`}}}}),of=e=>mo(e),af=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:y,lineType:b,colorSplit:E,itemDisabledColor:_,dangerItemColor:w,dangerItemHoverColor:k,dangerItemSelectedColor:T,dangerItemActiveBg:S,dangerItemSelectedBg:O,popupBg:C,itemHoverBg:x,itemActiveBg:N,menuSubMenuBg:I,horizontalItemSelectedColor:A,horizontalItemSelectedBg:D,horizontalItemBorderRadius:R,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},of(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},of(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:x},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:x},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:C},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:C},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${cr(u)} solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${cr(p)} ${b} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${cr(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(",")}}}}}},sf=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:cr(n),paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:cr(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},cf=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:cr(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},sf(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},sf(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${cr(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${cr(e.calc(g).div(2).equal())} - ${cr(l)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:cr(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},fo),{paddingInline:f})}}]},lf=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},uf=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${cr(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${cr(a)})`}}}}},df=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ho(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${cr(s)} ${cr(c)}`,fontSize:y,lineHeight:v,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lf(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${cr(e.calc(r).mul(2).equal())} ${cr(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},lf(e)),uf(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),uf(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${cr(m)})`},"&::after":{transform:`rotate(45deg) translateX(${cr(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${cr(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${cr(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${cr(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},pf=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:c,colorTextDescription:l,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:y,colorBgElevated:b,marginXXS:E,padding:_,fontSize:w,controlHeightSM:k,fontSizeLG:T,colorTextLightSolid:S,colorErrorHover:O}=e,C=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,x=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,N=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new pt(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:p,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:C,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:f,activeBarBorderWidth:x,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:2*v,popupBg:b,itemMarginBlock:E,itemPaddingInline:_,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:k-w,collapsedIconSize:T,groupTitleFontSize:w,darkItemDisabledColor:new pt(S).setA(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:S,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:o,itemWidth:C?`calc(100% + ${x}px)`:`calc(100% - ${2*N}px)`}},ff=(e,t=e,n=!0)=>{const r=Mo("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:f,darkItemDisabledColor:h,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:y,darkPopupBg:b}=e,E=e.calc(r).div(7).mul(5).equal(),_=oo(e,{menuArrowSize:E,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(E).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),w=oo(_,{itemColor:i,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:a,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:o,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[df(_),nf(_),cf(_),af(_,"light"),af(w,"dark"),rf(_),Zp(_),tf(_,"slide-up"),tf(_,"slide-down"),Np(_,"zoom-big")]},pf,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return r(e,t)},hf=e=>{var t;const{popupClassName:n,icon:i,title:o,theme:a}=e,s=r.useContext(_u),{prefixCls:c,inlineCollapsed:l,theme:u}=s,d=Ts();let p;if(i){const e=r.isValidElement(o)&&"span"===o.type;p=r.createElement(r.Fragment,null,bu(i,{className:Fe()(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:void 0,`${c}-item-icon`)}),e?o:r.createElement("span",{className:`${c}-title-content`},o))}else p=l&&!d.length&&o&&"string"==typeof o?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):r.createElement("span",{className:`${c}-title-content`},o);const f=r.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[h]=up("Menu");return r.createElement(_u.Provider,{value:f},r.createElement(Yl,Object.assign({},Me(e,["icon"]),{title:p,popupClassName:Fe()(c,n,`${c}-${a||u}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};function mf(e){return null===e||!1===e}const gf={item:Xp,submenu:hf,divider:wu},vf=(0,r.forwardRef)((e,t)=>{var n;const i=r.useContext(Jp),o=i||{},{getPrefixCls:a,getPopupContainer:s,direction:c,menu:l}=r.useContext(Be),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:b,mode:E,selectable:_,onClick:w,overflowedIndicatorPopupClassName:k}=e,T=Me(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=o.validator)||void 0===n||n.call(o,{mode:E});const S=Fi((...e)=>{var t;null==w||w.apply(void 0,e),null===(t=o.onClick)||void 0===t||t.call(o)}),O=o.mode||E,C=null!=_?_:o.selectable,x=null!=v?v:y,N={horizontal:{motionName:`${u}-slide-up`},inline:vu(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||o.prefixCls),A=Eu(I),[D,R,L]=ff(I,A,!i),P=Fe()(`${I}-${h}`,null==l?void 0:l.className,p),j=r.useMemo(()=>{var e,t;if("function"==typeof m||mf(m))return m||null;if("function"==typeof o.expandIcon||mf(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==l?void 0:l.expandIcon)||mf(null==l?void 0:l.expandIcon))return(null==l?void 0:l.expandIcon)||null;const n=null!==(e=null!=m?m:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==l?void 0:l.expandIcon;return bu(n,{className:Fe()(`${I}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})},[m,null==o?void 0:o.expandIcon,null==l?void 0:l.expandIcon,I]),$=r.useMemo(()=>({prefixCls:I,inlineCollapsed:x||!1,direction:c,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:g}),[I,x,c,g,h]);return D(r.createElement(Jp.Provider,{value:null},r.createElement(_u.Provider,{value:$},r.createElement(cu,Object.assign({getPopupContainer:s,overflowedIndicator:r.createElement(du,null),overflowedIndicatorPopupClassName:Fe()(I,`${I}-${h}`,k),mode:O,selectable:C,onClick:S},T,{inlineCollapsed:x,style:Object.assign(Object.assign({},null==l?void 0:l.style),f),className:P,prefixCls:I,direction:c,defaultMotions:N,expandIcon:j,ref:t,rootClassName:Fe()(b,R,o.rootClassName,L,A),_internalComponents:gf})))))}),yf=vf,bf=(0,r.forwardRef)((e,t)=>{const n=(0,r.useRef)(null),i=r.useContext(Ho);return(0,r.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),r.createElement(yf,Object.assign({ref:n},e,i))});bf.Item=Xp,bf.SubMenu=hf,bf.Divider=wu,bf.ItemGroup=eu;const Ef=bf;var _f=function(){return _f=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},_f.apply(this,arguments)};function wf(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var kf=n(2146),Tf=n.n(kf),Sf="-ms-",Of="-moz-",Cf="-webkit-",xf="comm",Nf="rule",If="decl",Af="@keyframes",Df=Math.abs,Rf=String.fromCharCode,Lf=Object.assign;function Pf(e){return e.trim()}function jf(e,t){return(e=t.exec(e))?e[0]:e}function $f(e,t,n){return e.replace(t,n)}function Ff(e,t,n){return e.indexOf(t,n)}function Mf(e,t){return 0|e.charCodeAt(t)}function qf(e,t,n){return e.slice(t,n)}function Vf(e){return e.length}function zf(e){return e.length}function Bf(e,t){return t.push(e),e}function Gf(e,t){return e.filter(function(e){return!jf(e,t)})}var Qf=1,Uf=1,Hf=0,Kf=0,Wf=0,Yf="";function Xf(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Qf,column:Uf,length:a,return:"",siblings:s}}function Jf(e,t){return Lf(Xf("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Zf(e){for(;e.root;)e=Jf(e.root,{children:[e]});Bf(e,e.siblings)}function eh(){return Wf=Kf>0?Mf(Yf,--Kf):0,Uf--,10===Wf&&(Uf=1,Qf--),Wf}function th(){return Wf=Kf<Hf?Mf(Yf,Kf++):0,Uf++,10===Wf&&(Uf=1,Qf++),Wf}function nh(){return Mf(Yf,Kf)}function rh(){return Kf}function ih(e,t){return qf(Yf,e,t)}function oh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ah(e){return Pf(ih(Kf-1,lh(91===e?e+2:40===e?e+1:e)))}function sh(e){for(;(Wf=nh())&&Wf<33;)th();return oh(e)>2||oh(Wf)>3?"":" "}function ch(e,t){for(;--t&&th()&&!(Wf<48||Wf>102||Wf>57&&Wf<65||Wf>70&&Wf<97););return ih(e,rh()+(t<6&&32==nh()&&32==th()))}function lh(e){for(;th();)switch(Wf){case e:return Kf;case 34:case 39:34!==e&&39!==e&&lh(Wf);break;case 40:41===e&&lh(e);break;case 92:th()}return Kf}function uh(e,t){for(;th()&&e+Wf!==57&&(e+Wf!==84||47!==nh()););return"/*"+ih(t,Kf-1)+"*"+Rf(47===e?e:th())}function dh(e){for(;!oh(nh());)th();return ih(e,Kf)}function ph(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function fh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case If:return e.return=e.return||e.value;case xf:return"";case Af:return e.return=e.value+"{"+ph(e.children,r)+"}";case Nf:if(!Vf(e.value=e.props.join(",")))return""}return Vf(n=ph(e.children,r))?e.return=e.value+"{"+n+"}":""}function hh(e,t,n){switch(function(e,t){return 45^Mf(e,0)?(((t<<2^Mf(e,0))<<2^Mf(e,1))<<2^Mf(e,2))<<2^Mf(e,3):0}(e,t)){case 5103:return Cf+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Cf+e+e;case 4855:return Cf+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Of+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cf+e+Of+e+Sf+e+e;case 5936:switch(Mf(e,t+11)){case 114:return Cf+e+Sf+$f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cf+e+Sf+$f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cf+e+Sf+$f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Cf+e+Sf+e+e;case 6165:return Cf+e+Sf+"flex-"+e+e;case 5187:return Cf+e+$f(e,/(\w+).+(:[^]+)/,Cf+"box-$1$2"+Sf+"flex-$1$2")+e;case 5443:return Cf+e+Sf+"flex-item-"+$f(e,/flex-|-self/g,"")+(jf(e,/flex-|baseline/)?"":Sf+"grid-row-"+$f(e,/flex-|-self/g,""))+e;case 4675:return Cf+e+Sf+"flex-line-pack"+$f(e,/align-content|flex-|-self/g,"")+e;case 5548:return Cf+e+Sf+$f(e,"shrink","negative")+e;case 5292:return Cf+e+Sf+$f(e,"basis","preferred-size")+e;case 6060:return Cf+"box-"+$f(e,"-grow","")+Cf+e+Sf+$f(e,"grow","positive")+e;case 4554:return Cf+$f(e,/([^-])(transform)/g,"$1"+Cf+"$2")+e;case 6187:return $f($f($f(e,/(zoom-|grab)/,Cf+"$1"),/(image-set)/,Cf+"$1"),e,"")+e;case 5495:case 3959:return $f(e,/(image-set\([^]*)/,Cf+"$1$`$1");case 4968:return $f($f(e,/(.+:)(flex-)?(.*)/,Cf+"box-pack:$3"+Sf+"flex-pack:$3"),/space-between/,"justify")+Cf+e+e;case 4200:if(!jf(e,/flex-|baseline/))return Sf+"grid-column-align"+qf(e,t)+e;break;case 2592:case 3360:return Sf+$f(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,jf(e.props,/grid-\w+-end/)})?~Ff(e+(n=n[t].value),"span",0)?e:Sf+$f(e,"-start","")+e+Sf+"grid-row-span:"+(~Ff(n,"span",0)?jf(n,/\d+/):+jf(n,/\d+/)-+jf(e,/\d+/))+";":Sf+$f(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return jf(e.props,/grid-\w+-start/)})?e:Sf+$f($f(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return $f(e,/(.+)-inline(.+)/,Cf+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vf(e)-1-t>6)switch(Mf(e,t+1)){case 109:if(45!==Mf(e,t+4))break;case 102:return $f(e,/(.+:)(.+)-([^]+)/,"$1"+Cf+"$2-$3$1"+Of+(108==Mf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ff(e,"stretch",0)?hh($f(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return $f(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,a,s){return Sf+n+":"+r+s+(i?Sf+n+"-span:"+(o?a:+a-+r)+s:"")+e});case 4949:if(121===Mf(e,t+6))return $f(e,":",":"+Cf)+e;break;case 6444:switch(Mf(e,45===Mf(e,14)?18:11)){case 120:return $f(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Cf+(45===Mf(e,14)?"inline-":"")+"box$3$1"+Cf+"$2$3$1"+Sf+"$2box$3")+e;case 100:return $f(e,":",":"+Sf)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return $f(e,"scroll-","scroll-snap-")+e}return e}function mh(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case If:return void(e.return=hh(e.value,e.length,n));case Af:return ph([Jf(e,{value:$f(e.value,"@","@"+Cf)})],r);case Nf:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(jf(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Zf(Jf(e,{props:[$f(t,/:(read-\w+)/,":-moz-$1")]})),Zf(Jf(e,{props:[t]})),Lf(e,{props:Gf(n,r)});break;case"::placeholder":Zf(Jf(e,{props:[$f(t,/:(plac\w+)/,":"+Cf+"input-$1")]})),Zf(Jf(e,{props:[$f(t,/:(plac\w+)/,":-moz-$1")]})),Zf(Jf(e,{props:[$f(t,/:(plac\w+)/,Sf+"input-$1")]})),Zf(Jf(e,{props:[t]})),Lf(e,{props:Gf(n,r)})}return""})}}function gh(e){return function(e){return Yf="",e}(vh("",null,null,null,[""],e=function(e){return Qf=Uf=1,Hf=Vf(Yf=e),Kf=0,[]}(e),0,[0],e))}function vh(e,t,n,r,i,o,a,s,c){for(var l=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",E=i,_=o,w=r,k=b;g;)switch(h=y,y=th()){case 40:if(108!=h&&58==Mf(k,d-1)){-1!=Ff(k+=$f(ah(y),"&","&\f"),"&\f",Df(l?s[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=ah(y);break;case 9:case 10:case 13:case 32:k+=sh(h);break;case 92:k+=ch(rh()-1,7);continue;case 47:switch(nh()){case 42:case 47:Bf(bh(uh(th(),rh()),t,n,c),c),5!=oh(h||1)&&5!=oh(nh()||1)||!Vf(k)||" "===qf(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*m:s[l++]=Vf(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=$f(k,/\f/g,"")),f>0&&(Vf(k)-d||0===m&&47===h)&&Bf(f>32?Eh(k+";",r,n,d-1,c):Eh($f(k," ","")+";",r,n,d-2,c),c);break;case 59:k+=";";default:if(Bf(w=yh(k,t,n,l,u,i,s,b,E=[],_=[],d,o),o),123===y)if(0===u)vh(k,t,w,w,E,o,d,s,_);else{switch(p){case 99:if(110===Mf(k,3))break;case 108:if(97===Mf(k,2))break;default:u=0;case 100:case 109:case 115:}u?vh(e,w,w,r&&Bf(yh(e,w,w,0,0,i,s,b,i,E=[],d,_),_),i,_,d,s,r?E:_):vh(k,w,w,w,[""],_,0,s,_)}}l=u=f=0,m=v=1,b=k="",d=a;break;case 58:d=1+Vf(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==eh())continue;switch(k+=Rf(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[l++]=(Vf(k)-1)*v,v=1;break;case 64:45===nh()&&(k+=ah(th())),p=nh(),u=d=Vf(b=k+=dh(rh())),y++;break;case 45:45===h&&2==Vf(k)&&(m=0)}}return o}function yh(e,t,n,r,i,o,a,s,c,l,u,d){for(var p=i-1,f=0===i?o:[""],h=zf(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=qf(e,p+1,p=Df(g=a[m])),E=e;y<h;++y)(E=Pf(g>0?f[y]+" "+b:$f(b,/&\f/g,f[y])))&&(c[v++]=E);return Xf(e,t,n,0===i?Nf:s,c,l,u,d)}function bh(e,t,n,r){return Xf(e,t,n,xf,Rf(Wf),qf(e,2,-2),0,r)}function Eh(e,t,n,r,i){return Xf(e,t,n,If,qf(e,0,r),qf(e,r+1,-1),r,i)}var _h={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wh="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",kh="active",Th="data-styled-version",Sh="6.2.0",Oh="/*!sc*/\n",Ch="undefined"!=typeof window&&"undefined"!=typeof document,xh=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Nh=(new Set,Object.freeze([])),Ih=Object.freeze({});var Ah=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Dh=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Rh=/(^-|-$)/g;function Lh(e){return e.replace(Dh,"-").replace(Rh,"")}var Ph=/(a)(d)/gi,jh=function(e){return String.fromCharCode(e+(e>25?39:97))};function $h(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=jh(t%52)+n;return(jh(t%52)+n).replace(Ph,"$1-$2")}var Fh,Mh=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},qh=function(e){return Mh(5381,e)};function Vh(e){return"string"==typeof e&&!0}var zh="function"==typeof Symbol&&Symbol.for,Bh=zh?Symbol.for("react.memo"):60115,Gh=zh?Symbol.for("react.forward_ref"):60112,Qh={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Uh={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Hh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kh=((Fh={})[Gh]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fh[Bh]=Hh,Fh);function Wh(e){return("type"in(t=e)&&t.type.$$typeof)===Bh?Hh:"$$typeof"in e?Kh[e.$$typeof]:Qh;var t}var Yh=Object.defineProperty,Xh=Object.getOwnPropertyNames,Jh=Object.getOwnPropertySymbols,Zh=Object.getOwnPropertyDescriptor,em=Object.getPrototypeOf,tm=Object.prototype;function nm(e,t,n){if("string"!=typeof t){if(tm){var r=em(t);r&&r!==tm&&nm(e,r,n)}var i=Xh(t);Jh&&(i=i.concat(Jh(t)));for(var o=Wh(e),a=Wh(t),s=0;s<i.length;++s){var c=i[s];if(!(c in Uh||n&&n[c]||a&&c in a||o&&c in o)){var l=Zh(t,c);try{Yh(e,c,l)}catch(e){}}}}return e}function rm(e){return"function"==typeof e}function im(e){return"object"==typeof e&&"styledComponentId"in e}function om(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function am(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function sm(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function cm(e,t,n){if(void 0===n&&(n=!1),!n&&!sm(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=cm(e[r],t[r]);else if(sm(t))for(var r in t)e[r]=cm(e[r],t[r]);return e}function lm(e,t){Object.defineProperty(e,"toString",{value:t})}function um(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var dm=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw um(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(Oh);return t},e}(),pm=new Map,fm=new Map,hm=1,mm=function(e){if(pm.has(e))return pm.get(e);for(;fm.has(hm);)hm++;var t=hm++;return pm.set(e,t),fm.set(t,e),t},gm=function(e,t){hm=t+1,pm.set(e,t),fm.set(t,e)},vm="style[".concat(wh,"][").concat(Th,'="').concat(Sh,'"]'),ym=new RegExp("^".concat(wh,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),bm=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},Em=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Oh),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var c=s.match(ym);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(gm(u,l),bm(e,u,c[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},_m=function(e){for(var t=document.querySelectorAll(vm),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(wh)!==kh&&(Em(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function wm(){return n.nc}var km=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(wh,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(wh,kh),r.setAttribute(Th,Sh);var a=wm();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Tm=function(){function e(e){this.element=km(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw um(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Sm=function(){function e(e){this.element=km(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Om=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Cm=Ch,xm={isServer:!Ch,useCSSOMInjection:!xh},Nm=function(){function e(e,t,n){void 0===e&&(e=Ih),void 0===t&&(t={});var r=this;this.options=_f(_f({},xm),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ch&&Cm&&(Cm=!1,_m(this)),lm(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return fm.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(n);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(wh,".g").concat(n,'[id="').concat(i,'"]'),c="";void 0!==o&&o.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat(Oh)},o=0;o<n;o++)i(o);return r}(r)})}return e.registerId=function(e){return mm(e)},e.prototype.rehydrate=function(){!this.server&&Ch&&_m(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(_f(_f({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Om(n):t?new Tm(n):new Sm(n)}(this.options),new dm(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(mm(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(mm(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(mm(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Im=/&/g,Am=/^\s*\/\/.*$/gm;function Dm(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Dm(e.children,t)),e})}function Rm(e){var t,n,r,i=void 0===e?Ih:e,o=i.options,a=void 0===o?Ih:o,s=i.plugins,c=void 0===s?Nh:s,l=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===Nf&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Im,n).replace(r,l))}),a.prefix&&u.push(mh),u.push(fh);var d=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Am,""),l=gh(o||i?"".concat(o," ").concat(i," { ").concat(c," }"):c);a.namespace&&(l=Dm(l,a.namespace));var d,p,f,h=[];return ph(l,(d=u.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=zf(d),function(e,t,n,r){for(var i="",o=0;o<p;o++)i+=d[o](e,t,n,r)||"";return i})),h};return d.hash=c.length?c.reduce(function(e,t){return t.name||um(15),Mh(e,t.name)},5381).toString():"",d}var Lm=new Nm,Pm=Rm(),jm=i().createContext({shouldForwardProp:void 0,styleSheet:Lm,stylis:Pm}),$m=(jm.Consumer,i().createContext(void 0));function Fm(){return(0,r.useContext)(jm)}function Mm(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],o=t[1],a=Fm().styleSheet,s=(0,r.useMemo)(function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,a]),c=(0,r.useMemo)(function(){return Rm({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,r.useEffect)(function(){Tf()(n,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]);var l=(0,r.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}},[e.shouldForwardProp,s,c]);return i().createElement(jm.Provider,{value:l},i().createElement($m.Provider,{value:c},e.children))}var qm=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Pm);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,lm(this,function(){throw um(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Pm),this.name+e.hash},e}(),Vm=function(e){return e>="A"&&e<="Z"};function zm(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Vm(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Bm=function(e){return null==e||!1===e||""===e},Gm=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!Bm(o)&&(Array.isArray(o)&&o.isCss||rm(o)?r.push("".concat(zm(i),":"),o,";"):sm(o)?r.push.apply(r,wf(wf(["".concat(i," {")],Gm(o),!1),["}"],!1)):r.push("".concat(zm(i),": ").concat((t=i,null==(n=o)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in _h||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Qm(e,t,n,r){return Bm(e)?[]:im(e)?[".".concat(e.styledComponentId)]:rm(e)?!rm(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Qm(e(t),t,n,r):e instanceof qm?n?(e.inject(n,r),[e.getName(r)]):[e]:sm(e)?Gm(e):Array.isArray(e)?Array.prototype.concat.apply(Nh,e.map(function(e){return Qm(e,t,n,r)})):[e.toString()];var i}function Um(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(rm(n)&&!im(n))return!1}return!0}var Hm=qh(Sh),Km=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Um(e),this.componentId=t,this.baseHash=Mh(Hm,t),this.baseStyle=n,Nm.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=om(r,this.staticRulesId);else{var i=am(Qm(this.rules,e,t,n)),o=$h(Mh(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=om(r,o),this.staticRulesId=o}else{for(var s=Mh(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u;else if(u){var d=am(Qm(u,e,t,n));s=Mh(s,d+l),c+=d}}if(c){var p=$h(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(c,".".concat(p),void 0,this.componentId)),r=om(r,p)}}return r},e}(),Wm=i().createContext(void 0);Wm.Consumer;var Ym={};function Xm(e,t,n){var o=im(e),a=e,s=!Vh(e),c=t.attrs,l=void 0===c?Nh:c,u=t.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Lh(e);Ym[n]=(Ym[n]||0)+1;var r="".concat(n,"-").concat(function(e){return $h(qh(e)>>>0)}(Sh+n+Ym[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):u,p=t.displayName,f=void 0===p?function(e){return Vh(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Lh(t.displayName),"-").concat(t.componentId):t.componentId||d,m=o&&a.attrs?a.attrs.concat(l).filter(Boolean):l,g=t.shouldForwardProp;if(o&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new Km(n,h,o?a.componentStyle:void 0);function E(e,t){return function(e,t,n){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.styledComponentId,u=e.target,d=i().useContext(Wm),p=Fm(),f=e.shouldForwardProp||p.shouldForwardProp,h=function(e,t,n){return void 0===n&&(n=Ih),e.theme!==n.theme&&e.theme||t||n.theme}(t,d,s)||Ih,m=function(e,t,n){for(var r,i=_f(_f({},t),{className:void 0,theme:n}),o=0;o<e.length;o+=1){var a=rm(r=e[o])?r(i):r;for(var s in a)"className"===s?i.className=om(i.className,a[s]):"style"===s?i.style=_f(_f({},i.style),a[s]):i[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(i.className=om(i.className,t.className)),i}(o,t,h),g=m.as||u,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var n=Fm();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,m),E=om(c,l);return b&&(E+=" "+b),m.className&&(E+=" "+m.className),v[Vh(g)&&!Ah.has(g)?"class":"className"]=E,n&&(v.ref=n),(0,r.createElement)(g,v)}(_,e,t)}E.displayName=f;var _=i().forwardRef(E);return _.attrs=m,_.componentStyle=b,_.displayName=f,_.shouldForwardProp=g,_.foldedComponentIds=o?om(a.foldedComponentIds,a.styledComponentId):"",_.styledComponentId=h,_.target=o?a.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)cm(e,i[r],!0);return e}({},a.defaultProps,e):e}}),lm(_,function(){return".".concat(_.styledComponentId)}),s&&nm(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Jm(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Zm=function(e){return Object.assign(e,{isCss:!0})};function eg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(rm(e)||sm(e))return Zm(Qm(Jm(Nh,wf([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Qm(r):Zm(Qm(Jm(r,t)))}function tg(e,t,n){if(void 0===n&&(n=Ih),!t)throw um(1,t);var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e(t,n,eg.apply(void 0,wf([r],i,!1)))};return r.attrs=function(r){return tg(e,t,_f(_f({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return tg(e,t,_f(_f({},n),r))},r}var ng=function(e){return tg(Xm,e)},rg=ng;Ah.forEach(function(e){rg[e]=ng(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Um(e),Nm.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var i=r(am(Qm(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Nm.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=wm(),r=am([n&&'nonce="'.concat(n,'"'),"".concat(wh,'="true"'),"".concat(Th,'="').concat(Sh,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw um(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw um(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[wh]="",t[Th]=Sh,t.dangerouslySetInnerHTML={__html:n},t),o=wm();return o&&(r.nonce=o),[i().createElement("style",_f({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Nm({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw um(2);return i().createElement(Mm,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw um(3)}}(),"__sc-".concat(wh,"__");var ig=n(3408);const og=r.createContext(void 0),ag=e=>{const t=i().useContext(og);return i().useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])},sg=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},cg=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ho(e)),{borderBlockStart:`${cr(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${cr(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${cr(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${cr(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${cr(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${cr(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${cr(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},lg=Mo("Divider",e=>{const t=oo(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[cg(t),sg(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});const ug={small:"sm",middle:"md"},dg=e=>{const{getPrefixCls:t,direction:n,className:i,style:o}=Ue("divider"),{prefixCls:a,type:s="horizontal",orientation:c="center",orientationMargin:l,className:u,rootClassName:d,children:p,dashed:f,variant:h="solid",plain:m,style:g,size:v}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),b=t("divider",a),[E,_,w]=lg(b),k=ag(v),T=ug[k],S=!!p,O=r.useMemo(()=>"left"===c?"rtl"===n?"end":"start":"right"===c?"rtl"===n?"start":"end":c,[n,c]),C="start"===O&&null!=l,x="end"===O&&null!=l,N=Fe()(b,i,_,w,`${b}-${s}`,{[`${b}-with-text`]:S,[`${b}-with-text-${O}`]:S,[`${b}-dashed`]:!!f,[`${b}-${h}`]:"solid"!==h,[`${b}-plain`]:!!m,[`${b}-rtl`]:"rtl"===n,[`${b}-no-default-orientation-margin-start`]:C,[`${b}-no-default-orientation-margin-end`]:x,[`${b}-${T}`]:!!T},u,d),I=r.useMemo(()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l,[l]),A={marginInlineStart:C?I:void 0,marginInlineEnd:x?I:void 0};return E(r.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},o),g)},y,{role:"separator"}),p&&"vertical"!==s&&r.createElement("span",{className:`${b}-inner-text`,style:A},p)))},pg=["xxl","xl","lg","md","sm","xs"],fg=()=>{const[,e]=Fo(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(pg).reverse();return n.forEach((e,r)=>{const i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw new Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(r<n.length-1){const e=`screen${i}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const o=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[o]))throw new Error(`${e}<=${o} fails : !(${t[e]}<=${t[o]})`)}}),e})(e));return i().useMemo(()=>{const e=new Map;let n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},i=window.matchMedia(t);jn(i,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];$n(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[t])},hg=(0,r.createContext)({}),mg=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},gg=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let e=i;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/i*100}%`,maxWidth:e/i*100+"%"}],o[`${r}${t}-push-${e}`]={insetInlineStart:e/i*100+"%"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:e/i*100+"%"},o[`${r}${t}-offset-${e}`]={marginInlineStart:e/i*100+"%"},o[`${r}${t}-order-${e}`]={order:e});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o})(e,t),vg=Mo("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),yg=Mo("Grid",e=>{const t=oo(e,{gridColumns:24}),n=(e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}))(t);return delete n.xs,[mg(t),gg(t,""),gg(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${cr(t)})`]:Object.assign({},gg(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));function bg(e,t){const[n,i]=r.useState("string"==typeof e?e:"");return r.useEffect(()=>{(()=>{if("string"==typeof e&&i(e),"object"==typeof e)for(let n=0;n<pg.length;n++){const r=pg[n];if(!t||!t[r])continue;const o=e[r];if(void 0!==o)return void i(o)}})()},[JSON.stringify(e),t]),n}const Eg=r.forwardRef((e,t)=>{const{prefixCls:n,justify:o,align:a,className:s,style:c,children:l,gutter:u=0,wrap:d}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=r.useContext(Be),m=function(e=!0,t={}){const n=(0,r.useRef)(t),[,o]=i().useReducer(e=>e+1,0),a=fg();return gr(()=>{const t=a.subscribe(t=>{n.current=t,e&&o()});return()=>a.unsubscribe(t)},[]),n.current}(!0,null),g=bg(a,m),v=bg(o,m),y=f("row",n),[b,E,_]=vg(y),w=function(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let r=0;r<pg.length;r++){const o=pg[r];if(i[o]&&void 0!==e[o]){n[t]=e[o];break}}else n[t]=e}),n}(u,m),k=Fe()(y,{[`${y}-no-wrap`]:!1===d,[`${y}-${v}`]:v,[`${y}-${g}`]:g,[`${y}-rtl`]:"rtl"===h},s,E,_),T={};if(null==w?void 0:w[0]){const e="number"==typeof w[0]?w[0]/-2+"px":`calc(${w[0]} / -2)`;T.marginLeft=e,T.marginRight=e}const[S,O]=w;T.rowGap=O;const C=r.useMemo(()=>({gutter:[S,O],wrap:d}),[S,O,d]);return b(r.createElement(hg.Provider,{value:C},r.createElement("div",Object.assign({},p,{className:k,style:Object.assign(Object.assign({},T),c),ref:t}),l)))}),_g=Eg;function wg(e){return"auto"===e?"1 1 auto":"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const kg=["xs","sm","md","lg","xl","xxl"],Tg=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:i}=r.useContext(Be),{gutter:o,wrap:a}=r.useContext(hg),{prefixCls:s,span:c,order:l,offset:u,push:d,pull:p,className:f,children:h,flex:m,style:g}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",s),[b,E,_]=yg(y),w={};let k={};kg.forEach(t=>{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete v[t],k=Object.assign(Object.assign({},k),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===i}),n.flex&&(k[`${y}-${t}-flex`]=!0,w[`--${y}-${t}-flex`]=wg(n.flex))});const T=Fe()(y,{[`${y}-${c}`]:void 0!==c,[`${y}-order-${l}`]:l,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${p}`]:p},f,k,E,_),S={};if(null==o?void 0:o[0]){const e="number"==typeof o[0]?o[0]/2+"px":`calc(${o[0]} / 2)`;S.paddingLeft=e,S.paddingRight=e}return m&&(S.flex=wg(m),!1!==a||S.minWidth||(S.minWidth=0)),b(r.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},S),g),w),className:T,ref:t}),h))}),Sg=Tg,Og=e=>{const{prefixCls:t,className:n,style:i,size:o,shape:a}=e,s=Fe()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),c=Fe()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),l=r.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return r.createElement("span",{className:Fe()(t,s,c,n),style:Object.assign(Object.assign({},l),i)})},Cg=new ki("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),xg=e=>({height:e,lineHeight:cr(e)}),Ng=e=>Object.assign({width:e},xg(e)),Ig=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Cg,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ag=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},xg(e)),Dg=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ng(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ng(i)),[`${t}${t}-sm`]:Object.assign({},Ng(o))}},Rg=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Ag(t,s)),[`${r}-lg`]:Object.assign({},Ag(i,s)),[`${r}-sm`]:Object.assign({},Ag(o,s))}},Lg=e=>Object.assign({width:e},xg(e)),Pg=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},Lg(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Lg(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},jg=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},$g=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},xg(e)),Fg=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},$g(r,s))},jg(e,r,n)),{[`${n}-lg`]:Object.assign({},$g(i,s))}),jg(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},$g(o,s))}),jg(e,o,`${n}-sm`))},Mg=Mo("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:c,controlHeightLG:l,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Ng(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ng(l)),[`${n}-sm`]:Object.assign({},Ng(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:d,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Fg(e)),Dg(e)),Rg(e)),Pg(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${i} > li,\n ${n},\n ${o},\n ${a},\n ${s}\n `]:Object.assign({},Ig(e))}}})(oo(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),qg=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},Vg=e=>{const{prefixCls:t,className:n,style:i,rows:o=0}=e,a=Array.from({length:o}).map((t,n)=>r.createElement("li",{key:n,style:{width:qg(n,e)}}));return r.createElement("ul",{className:Fe()(t,n),style:i},a)},zg=({prefixCls:e,className:t,width:n,style:i})=>r.createElement("h3",{className:Fe()(e,t),style:Object.assign({width:n},i)});function Bg(e){return e&&"object"==typeof e?e:{}}const Gg=e=>{const{prefixCls:t,loading:n,className:i,rootClassName:o,style:a,children:s,avatar:c=!1,title:l=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:f,direction:h,className:m,style:g}=Ue("skeleton"),v=f("skeleton",t),[y,b,E]=Mg(v);if(n||!("loading"in e)){const e=!!c,t=!!l,n=!!u;let s,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Bg(c));s=r.createElement("div",{className:`${v}-header`},r.createElement(Og,Object.assign({},e)))}if(t||n){let i,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Bg(l));i=r.createElement(zg,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Bg(u));o=r.createElement(Vg,Object.assign({},n))}f=r.createElement("div",{className:`${v}-content`},i,o)}const _=Fe()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===h,[`${v}-round`]:p},m,i,o,b,E);return y(r.createElement("div",{className:_,style:Object.assign(Object.assign({},g),a)},s,f))}return null!=s?s:null};Gg.Button=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a=!1,size:s="default"}=e,{getPrefixCls:c}=r.useContext(Be),l=c("skeleton",t),[u,d,p]=Mg(l),f=Me(e,["prefixCls"]),h=Fe()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Og,Object.assign({prefixCls:`${l}-button`,size:s},f))))},Gg.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,shape:a="circle",size:s="default"}=e,{getPrefixCls:c}=r.useContext(Be),l=c("skeleton",t),[u,d,p]=Mg(l),f=Me(e,["prefixCls","className"]),h=Fe()(l,`${l}-element`,{[`${l}-active`]:o},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Og,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:s},f))))},Gg.Input=e=>{const{prefixCls:t,className:n,rootClassName:i,active:o,block:a,size:s="default"}=e,{getPrefixCls:c}=r.useContext(Be),l=c("skeleton",t),[u,d,p]=Mg(l),f=Me(e,["prefixCls"]),h=Fe()(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,i,d,p);return u(r.createElement("div",{className:h},r.createElement(Og,Object.assign({prefixCls:`${l}-input`,size:s},f))))},Gg.Image=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a}=e,{getPrefixCls:s}=r.useContext(Be),c=s("skeleton",t),[l,u,d]=Mg(c),p=Fe()(c,`${c}-element`,{[`${c}-active`]:a},n,i,u,d);return l(r.createElement("div",{className:p},r.createElement("div",{className:Fe()(`${c}-image`,n),style:o},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},Gg.Node=e=>{const{prefixCls:t,className:n,rootClassName:i,style:o,active:a,children:s}=e,{getPrefixCls:c}=r.useContext(Be),l=c("skeleton",t),[u,d,p]=Mg(l),f=Fe()(l,`${l}-element`,{[`${l}-active`]:a},d,n,i,p);return u(r.createElement("div",{className:f},r.createElement("div",{className:Fe()(`${l}-image`,n),style:o},s)))};const Qg=Gg,Ug={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Hg=function(e,t){return r.createElement(Nn,et({},e,{ref:t,icon:Ug}))};const Kg=r.forwardRef(Hg),Wg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Yg=function(e,t){return r.createElement(Nn,et({},e,{ref:t,icon:Wg}))};const Xg=r.forwardRef(Yg),Jg=(0,r.createContext)(null);var Zg={width:0,height:0,left:0,top:0};function ev(e,t){var n=r.useRef(e),i=it(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var tv=Math.pow(.995,20);function nv(e){var t=it((0,r.useState)(0),2),n=t[0],i=t[1],o=(0,r.useRef)(0),a=(0,r.useRef)();return a.current=e,mr(function(){var e;null===(e=a.current)||void 0===e||e.call(a)},[n]),function(){o.current===n&&(o.current+=1,i(o.current))}}var rv={width:0,height:0,left:0,top:0,right:0};function iv(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function ov(e){return String(e).replace(/"/g,"TABS_DQ")}function av(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var sv=r.forwardRef(function(e,t){var n=e.prefixCls,i=e.editable,o=e.locale,a=e.style;return i&&!1!==i.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null});const cv=sv;var lv=r.forwardRef(function(e,t){var n,i=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==Ke(a)||r.isValidElement(a)?s.right=a:s=a,"right"===i&&(n=s.right),"left"===i&&(n=s.left),n?r.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null});const uv=lv;var dv=Is.ESC,pv=Is.TAB;const fv=(0,r.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,s=(0,r.useMemo)(function(){return"function"==typeof n?n():n},[n]),c=Qi(t,Wi(s));return i().createElement(i().Fragment,null,o&&i().createElement("div",{className:"".concat(a,"-arrow")}),i().cloneElement(s,{ref:Hi(s)?c:void 0}))});var hv={adjustX:1,adjustY:1},mv=[0,0];const gv={topLeft:{points:["bl","tl"],overflow:hv,offset:[0,-4],targetOffset:mv},top:{points:["bc","tc"],overflow:hv,offset:[0,-4],targetOffset:mv},topRight:{points:["br","tr"],overflow:hv,offset:[0,-4],targetOffset:mv},bottomLeft:{points:["tl","bl"],overflow:hv,offset:[0,4],targetOffset:mv},bottom:{points:["tc","bc"],overflow:hv,offset:[0,4],targetOffset:mv},bottomRight:{points:["tr","br"],overflow:hv,offset:[0,4],targetOffset:mv}};var vv=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function yv(e,t){var n,o=e.arrow,a=void 0!==o&&o,s=e.prefixCls,c=void 0===s?"rc-dropdown":s,l=e.transitionName,u=e.animation,d=e.align,p=e.placement,f=void 0===p?"bottomLeft":p,h=e.placements,m=void 0===h?gv:h,g=e.getPopupContainer,v=e.showAction,y=e.hideAction,b=e.overlayClassName,E=e.overlayStyle,_=e.visible,w=e.trigger,k=void 0===w?["hover"]:w,T=e.autoFocus,S=e.overlay,O=e.children,C=e.onVisibleChange,x=st(e,vv),N=it(i().useState(),2),I=N[0],A=N[1],D="visible"in e?_:I,R=i().useRef(null),L=i().useRef(null),P=i().useRef(null);i().useImperativeHandle(t,function(){return R.current});var j=function(e){A(e),null==C||C(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,s=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==i||i(!1))},l=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case dv:c();break;case pv:var t=!1;s.current||(t=l()),t?e.preventDefault():c()}};r.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Ja(l,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}},[t])}({visible:D,triggerRef:P,onVisibleChange:j,autoFocus:T,overlayRef:L});var $,F,M,q=function(){return i().createElement(fv,{ref:L,overlay:S,prefixCls:c,arrow:a})},V=i().cloneElement(O,{className:Fe()(null===(n=O.props)||void 0===n?void 0:n.className,D&&($=e.openClassName,void 0!==$?$:"".concat(c,"-open"))),ref:Hi(O)?Qi(P,Wi(O)):void 0}),z=y;return z||-1===k.indexOf("contextMenu")||(z=["click"]),i().createElement(Ml,et({builtinPlacements:m},x,{prefixCls:c,ref:R,popupClassName:Fe()(b,at({},"".concat(c,"-show-arrow"),a)),popupStyle:E,action:k,showAction:v,hideAction:z,popupPlacement:f,popupAlign:d,popupTransitionName:l,popupAnimation:u,popupVisible:D,stretch:(F=e.minOverlayWidthMatchTrigger,M=e.alignPoint,("minOverlayWidthMatchTrigger"in e?F:!M)?"minWidth":""),popup:"function"==typeof S?q:q(),onPopupVisibleChange:j,onPopupClick:function(t){var n=e.onOverlayClick;A(!1),n&&n(t)},getPopupContainer:g}),V)}const bv=i().forwardRef(yv);var Ev=r.forwardRef(function(e,t){var n=e.prefixCls,i=e.id,o=e.tabs,a=e.locale,s=e.mobile,c=e.more,l=void 0===c?{}:c,u=e.style,d=e.className,p=e.editable,f=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,b=it((0,r.useState)(!1),2),E=b[0],_=b[1],w=it((0,r.useState)(null),2),k=w[0],T=w[1],S=l.icon,O=void 0===S?"More":S,C="".concat(i,"-more-popup"),x="".concat(n,"-dropdown"),N=null!==k?"".concat(C,"-").concat(k):null,I=null==a?void 0:a.dropdownAriaLabel,A=r.createElement(cu,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),_(!1)},prefixCls:"".concat(x,"-menu"),id:C,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[k],"aria-label":void 0!==I?I:"expanded dropdown"},o.map(function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,s=e.label,c=av(t,o,p,n);return r.createElement(ac,{key:a,id:"".concat(C,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},r.createElement("span",null,s),c&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(x,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,a)}},o||p.removeIcon||"×"))}));function D(e){for(var t=o.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===k})||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void T(a.key)}}(0,r.useEffect)(function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[k]),(0,r.useEffect)(function(){E||T(null)},[E]);var R=at({},h?"marginRight":"marginLeft",f);o.length||(R.visibility="hidden",R.order=1);var L=Fe()(at({},"".concat(x,"-rtl"),h)),P=s?null:r.createElement(bv,et({prefixCls:x,overlay:A,visible:!!o.length&&E,onVisibleChange:_,overlayClassName:Fe()(L,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),r.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,"aria-haspopup":"listbox","aria-controls":C,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:function(e){var t=e.which;if(E)switch(t){case Is.UP:D(-1),e.preventDefault();break;case Is.DOWN:D(1),e.preventDefault();break;case Is.ESC:_(!1);break;case Is.SPACE:case Is.ENTER:null!==k&&g(k,e)}else[Is.DOWN,Is.SPACE,Is.ENTER].includes(t)&&(_(!0),e.preventDefault())}},O));return r.createElement("div",{className:Fe()("".concat(n,"-nav-operations"),d),style:u,ref:t},P,r.createElement(cv,{prefixCls:n,locale:a,editable:p}))});const _v=r.memo(Ev,function(e,t){return t.tabMoving}),wv=function(e){var t=e.prefixCls,n=e.id,i=e.active,o=e.focus,a=e.tab,s=a.key,c=a.label,l=a.disabled,u=a.closeIcon,d=a.icon,p=e.closable,f=e.renderWrapper,h=e.removeAriaLabel,m=e.editable,g=e.onClick,v=e.onFocus,y=e.onBlur,b=e.onKeyDown,E=e.onMouseDown,_=e.onMouseUp,w=e.style,k=e.tabCount,T=e.currentPosition,S="".concat(t,"-tab"),O=av(p,u,m,l);function C(e){l||g(e)}var x=r.useMemo(function(){return d&&"string"==typeof c?r.createElement("span",null,c):c},[c,d]),N=r.useRef(null);r.useEffect(function(){o&&N.current&&N.current.focus()},[o]);var I=r.createElement("div",{key:s,"data-node-key":ov(s),className:Fe()(S,at(at(at(at({},"".concat(S,"-with-remove"),O),"".concat(S,"-active"),i),"".concat(S,"-disabled"),l),"".concat(S,"-focus"),o)),style:w,onClick:C},r.createElement("div",{ref:N,role:"tab","aria-selected":i,id:n&&"".concat(n,"-tab-").concat(s),className:"".concat(S,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(s),"aria-disabled":l,tabIndex:l?null:i?0:-1,onClick:function(e){e.stopPropagation(),C(e)},onKeyDown:b,onMouseDown:E,onMouseUp:_,onFocus:v,onBlur:y},o&&r.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(T," of ").concat(k)),d&&r.createElement("span",{className:"".concat(S,"-icon")},d),c&&x),O&&r.createElement("button",{type:"button",role:"tab","aria-label":h||"remove",tabIndex:i?0:-1,className:"".concat(S,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:s,event:t})}},u||m.removeIcon||"×"));return f?f(I):I};var kv=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,i=t.offsetHeight,o=void 0===i?0:i;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,c=a.height;if(Math.abs(s-r)<1)return[s,c]}return[r,o]},Tv=function(e,t){return e[t?0:1]},Sv=r.forwardRef(function(e,t){var n,o,a,s,c,l=e.className,u=e.style,d=e.id,p=e.animated,f=e.activeKey,h=e.rtl,m=e.extra,g=e.editable,v=e.locale,y=e.tabPosition,b=e.tabBarGutter,E=e.children,_=e.onTabClick,w=e.onTabScroll,k=e.indicator,T=r.useContext(Jg),S=T.prefixCls,O=T.tabs,C=(0,r.useRef)(null),x=(0,r.useRef)(null),N=(0,r.useRef)(null),I=(0,r.useRef)(null),A=(0,r.useRef)(null),D=(0,r.useRef)(null),R=(0,r.useRef)(null),L="top"===y||"bottom"===y,P=ev(0,function(e,t){L&&w&&w({direction:e>t?"left":"right"})}),j=it(P,2),$=j[0],F=j[1],M=ev(0,function(e,t){!L&&w&&w({direction:e>t?"top":"bottom"})}),q=it(M,2),V=q[0],z=q[1],B=it((0,r.useState)([0,0]),2),G=B[0],Q=B[1],U=it((0,r.useState)([0,0]),2),H=U[0],K=U[1],W=it((0,r.useState)([0,0]),2),Y=W[0],X=W[1],J=it((0,r.useState)([0,0]),2),Z=J[0],ee=J[1],te=(n=new Map,o=(0,r.useRef)([]),a=it((0,r.useState)({}),2)[1],s=(0,r.useRef)("function"==typeof n?n():n),c=nv(function(){var e=s.current;o.current.forEach(function(t){e=t(e)}),o.current=[],s.current=e,a({})}),[s.current,function(e){o.current.push(e),c()}]),ne=it(te,2),re=ne[0],ie=ne[1],oe=function(e,t,n){return(0,r.useMemo)(function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Zg,o=i.left+i.width,a=0;a<e.length;a+=1){var s,c=e[a].key,l=t.get(c);l||(l=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||Zg);var u=r.get(c)||Kt({},l);u.right=o-u.left-u.width,r.set(c,u)}return r},[e.map(function(e){return e.key}).join("_"),t,n])}(O,re,H[0]),ae=Tv(G,L),se=Tv(H,L),ce=Tv(Y,L),le=Tv(Z,L),ue=Math.floor(ae)<Math.floor(se+ce),de=ue?ae-le:ae-ce,pe="".concat(S,"-nav-operations-hidden"),fe=0,he=0;function me(e){return e<fe?fe:e>he?he:e}L&&h?(fe=0,he=Math.max(0,se-de)):(fe=Math.min(0,de-se),he=0);var ge=(0,r.useRef)(null),ve=it((0,r.useState)(),2),ye=ve[0],be=ve[1];function Ee(){be(Date.now())}function _e(){ge.current&&clearTimeout(ge.current)}!function(e,t){var n=it((0,r.useState)(),2),i=n[0],o=n[1],a=it((0,r.useState)(0),2),s=a[0],c=a[1],l=it((0,r.useState)(0),2),u=l[0],d=l[1],p=it((0,r.useState)(),2),f=p[0],h=p[1],m=(0,r.useRef)(),g=(0,r.useRef)(),v=(0,r.useRef)(null);v.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(m.current)},onTouchMove:function(e){if(i){var n=e.touches[0],r=n.screenX,a=n.screenY;o({x:r,y:a});var l=r-i.x,u=a-i.y;t(l,u);var p=Date.now();c(p),d(p-s),h({x:l,y:u})}},onTouchEnd:function(){if(i&&(o(null),h(null),f)){var e=f.x/u,n=f.y/u,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var s=e,c=n;m.current=window.setInterval(function(){Math.abs(s)<.01&&Math.abs(c)<.01?window.clearInterval(m.current):t(20*(s*=tv),20*(c*=tv))},20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,i=0,o=Math.abs(n),a=Math.abs(r);o===a?i="x"===g.current?n:r:o>a?(i=n,g.current="x"):(i=r,g.current="y"),t(-i,-i)&&e.preventDefault()}},r.useEffect(function(){function t(e){v.current.onTouchMove(e)}function n(e){v.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){v.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){v.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(I,function(e,t){function n(e,t){e(function(e){return me(e+t)})}return!!ue&&(L?n(F,e):n(z,t),_e(),Ee(),!0)}),(0,r.useEffect)(function(){return _e(),ye&&(ge.current=setTimeout(function(){be(0)},100)),_e},[ye]);var we=function(e,t,n,i,o,a,s){var c,l,u,d=s.tabs,p=s.tabPosition,f=s.rtl;return["top","bottom"].includes(p)?(c="width",l=f?"right":"left",u=Math.abs(n)):(c="height",l="top",u=-n),(0,r.useMemo)(function(){if(!d.length)return[0,0];for(var n=d.length,r=n,i=0;i<n;i+=1){var o=e.get(d[i].key)||rv;if(Math.floor(o[l]+o[c])>Math.floor(u+t)){r=i-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(d[s].key)||rv)[l]<u){a=s+1;break}return a>r?[0,-1]:[a,r]},[e,t,i,o,a,u,p,d.map(function(e){return e.key}).join("_"),f])}(oe,de,L?$:V,se,ce,le,Kt(Kt({},e),{},{tabs:O})),ke=it(we,2),Te=ke[0],Se=ke[1],Oe=Fi(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=oe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(L){var n=$;h?t.right<$?n=t.right:t.right+t.width>$+de&&(n=t.right+t.width-de):t.left<-$?n=-t.left:t.left+t.width>-$+de&&(n=-(t.left+t.width-de)),z(0),F(me(n))}else{var r=V;t.top<-V?r=-t.top:t.top+t.height>-V+de&&(r=-(t.top+t.height-de)),F(0),z(me(r))}}),Ce=it((0,r.useState)(),2),xe=Ce[0],Ne=Ce[1],Ie=it((0,r.useState)(!1),2),Ae=Ie[0],De=Ie[1],Re=O.filter(function(e){return!e.disabled}).map(function(e){return e.key}),Le=function(e){var t=Re.indexOf(xe||f),n=Re.length,r=Re[(t+e+n)%n];Ne(r)},Pe=function(e,t){var n=Re.indexOf(e),r=O.find(function(t){return t.key===e});av(null==r?void 0:r.closable,null==r?void 0:r.closeIcon,g,null==r?void 0:r.disabled)&&(t.preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:e,event:t}),n===Re.length-1?Le(-1):Le(1))},$e=function(e){var t=e.code,n=h&&L,r=Re[0],i=Re[Re.length-1];switch(t){case"ArrowLeft":L&&Le(n?1:-1);break;case"ArrowRight":L&&Le(n?-1:1);break;case"ArrowUp":e.preventDefault(),L||Le(-1);break;case"ArrowDown":e.preventDefault(),L||Le(1);break;case"Home":e.preventDefault(),Ne(r);break;case"End":e.preventDefault(),Ne(i);break;case"Enter":case"Space":e.preventDefault(),_(null!=xe?xe:f,e);break;case"Backspace":case"Delete":Pe(xe,e)}},Me={};L?Me[h?"marginRight":"marginLeft"]=b:Me.marginTop=b;var qe=O.map(function(e,t){var n=e.key;return r.createElement(wv,{id:d,prefixCls:S,key:n,tab:e,style:0===t?void 0:Me,closable:e.closable,editable:g,active:n===f,focus:n===xe,renderWrapper:E,removeAriaLabel:null==v?void 0:v.removeAriaLabel,tabCount:Re.length,currentPosition:t+1,onClick:function(e){_(n,e)},onKeyDown:$e,onFocus:function(){Ae||Ne(n),Oe(n),Ee(),I.current&&(h||(I.current.scrollLeft=0),I.current.scrollTop=0)},onBlur:function(){Ne(void 0)},onMouseDown:function(e){return function(e,t){De(!0),1===t.button&&Pe(e,t)}(n,e)},onMouseUp:function(){De(!1)}})}),Ve=function(){return ie(function(){var e,t=new Map,n=null===(e=A.current)||void 0===e?void 0:e.getBoundingClientRect();return O.forEach(function(e){var r,i=e.key,o=null===(r=A.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(ov(i),'"]'));if(o){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,i=e.offsetTop,o=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,c=a.height,l=a.left,u=a.top;return Math.abs(s-n)<1?[s,c,l-t.left,u-t.top]:[n,r,o,i]}(o,n),s=it(a,4),c=s[0],l=s[1],u=s[2],d=s[3];t.set(i,{width:c,height:l,left:u,top:d})}}),t})};(0,r.useEffect)(function(){Ve()},[O.map(function(e){return e.key}).join("_")]);var ze=nv(function(){var e=kv(C),t=kv(x),n=kv(N);Q([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=kv(R);X(r);var i=kv(D);ee(i);var o=kv(A);K([o[0]-r[0],o[1]-r[1]]),Ve()}),Be=O.slice(0,Te),Ge=O.slice(Se+1),Qe=[].concat(je(Be),je(Ge)),Ue=oe.get(f),He=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,a=e.indicator,s=void 0===a?{}:a,c=s.size,l=s.align,u=void 0===l?"center":l,d=it((0,r.useState)(),2),p=d[0],f=d[1],h=(0,r.useRef)(),m=i().useCallback(function(e){return"function"==typeof c?c(e):"number"==typeof c?c:e},[c]);function g(){Ja.cancel(h.current)}return(0,r.useEffect)(function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===u&&(e[r]=t[r]),"center"===u&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return g(),h.current=Ja(function(){var t=p&&e&&Object.keys(e).every(function(t){var n=e[t],r=p[t];return"number"==typeof n&&"number"==typeof r?Math.round(n)===Math.round(r):n===r});t||f(e)}),g},[JSON.stringify(t),n,o,u,m]),{style:p}}({activeTabOffset:Ue,horizontal:L,indicator:k,rtl:h}).style;(0,r.useEffect)(function(){Oe()},[f,fe,he,iv(Ue),iv(oe),L]),(0,r.useEffect)(function(){ze()},[h]);var Ke,We,Ye,Xe,Je=!!Qe.length,Ze="".concat(S,"-nav-wrap");return L?h?(We=$>0,Ke=$!==he):(Ke=$<0,We=$!==fe):(Ye=V<0,Xe=V!==fe),r.createElement(qa,{onResize:ze},r.createElement("div",{ref:Ui(t,C),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:Fe()("".concat(S,"-nav"),l),style:u,onKeyDown:function(){Ee()}},r.createElement(uv,{ref:x,position:"left",extra:m,prefixCls:S}),r.createElement(qa,{onResize:ze},r.createElement("div",{className:Fe()(Ze,at(at(at(at({},"".concat(Ze,"-ping-left"),Ke),"".concat(Ze,"-ping-right"),We),"".concat(Ze,"-ping-top"),Ye),"".concat(Ze,"-ping-bottom"),Xe)),ref:I},r.createElement(qa,{onResize:ze},r.createElement("div",{ref:A,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat($,"px, ").concat(V,"px)"),transition:ye?"none":void 0}},qe,r.createElement(cv,{ref:R,prefixCls:S,locale:v,editable:g,style:Kt(Kt({},0===qe.length?void 0:Me),{},{visibility:Je?"hidden":null})}),r.createElement("div",{className:Fe()("".concat(S,"-ink-bar"),at({},"".concat(S,"-ink-bar-animated"),p.inkBar)),style:He}))))),r.createElement(_v,et({},e,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:D,prefixCls:S,tabs:Qe,className:!Je&&pe,tabMoving:!!ye})),r.createElement(uv,{ref:N,position:"right",extra:m,prefixCls:S})))});const Ov=Sv;var Cv=r.forwardRef(function(e,t){var n=e.prefixCls,i=e.className,o=e.style,a=e.id,s=e.active,c=e.tabKey,l=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!s,style:o,className:Fe()(n,s&&"".concat(n,"-active"),i),ref:t},l)});const xv=Cv;var Nv=["renderTabBar"],Iv=["label","key"];const Av=function(e){var t=e.renderTabBar,n=st(e,Nv),i=r.useContext(Jg).tabs;return t?t(Kt(Kt({},n),{},{panes:i.map(function(e){var t=e.label,n=e.key,i=st(e,Iv);return r.createElement(xv,et({tab:t,key:n,tabKey:n},i))})}),Ov):r.createElement(Ov,n)};var Dv=["key","forceRender","style","className","destroyInactiveTabPane"];const Rv=function(e){var t=e.id,n=e.activeKey,i=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,s=r.useContext(Jg),c=s.prefixCls,l=s.tabs,u=i.tabPane,d="".concat(c,"-tabpane");return r.createElement("div",{className:Fe()("".concat(c,"-content-holder"))},r.createElement("div",{className:Fe()("".concat(c,"-content"),"".concat(c,"-content-").concat(o),at({},"".concat(c,"-content-animated"),u))},l.map(function(e){var o=e.key,s=e.forceRender,c=e.style,l=e.className,p=e.destroyInactiveTabPane,f=st(e,Dv),h=o===n;return r.createElement(ml,et({key:o,visible:h,forceRender:s,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(e,n){var i=e.style,a=e.className;return r.createElement(xv,et({},f,{prefixCls:d,id:t,tabKey:o,animated:u,active:h,style:Kt(Kt({},c),i),className:Fe()(l,a),ref:n}))})})))};var Lv=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Pv=0,jv=r.forwardRef(function(e,t){var n=e.id,i=e.prefixCls,o=void 0===i?"rc-tabs":i,a=e.className,s=e.items,c=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,p=e.animated,f=e.tabPosition,h=void 0===f?"top":f,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,b=e.more,E=e.destroyInactiveTabPane,_=e.renderTabBar,w=e.onChange,k=e.onTabClick,T=e.onTabScroll,S=e.getPopupContainer,O=e.popupClassName,C=e.indicator,x=st(e,Lv),N=r.useMemo(function(){return(s||[]).filter(function(e){return e&&"object"===Ke(e)&&"key"in e})},[s]),I="rtl"===c,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Kt({inkBar:!0},"object"===Ke(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),D=it((0,r.useState)(!1),2),R=D[0],L=D[1];(0,r.useEffect)(function(){L(Tc())},[]);var P=it(Vi(function(){var e;return null===(e=N[0])||void 0===e?void 0:e.key},{value:l,defaultValue:u}),2),j=P[0],$=P[1],F=it((0,r.useState)(function(){return N.findIndex(function(e){return e.key===j})}),2),M=F[0],q=F[1];(0,r.useEffect)(function(){var e,t=N.findIndex(function(e){return e.key===j});-1===t&&(t=Math.max(0,Math.min(M,N.length-1)),$(null===(e=N[t])||void 0===e?void 0:e.key)),q(t)},[N.map(function(e){return e.key}).join("_"),j,M]);var V=it(Vi(null,{value:n}),2),z=V[0],B=V[1];(0,r.useEffect)(function(){n||(B("rc-tabs-".concat(Pv)),Pv+=1)},[]);var G={id:z,activeKey:j,animated:A,tabPosition:h,rtl:I,mobile:R},Q=Kt(Kt({},G),{},{editable:d,locale:y,more:b,tabBarGutter:m,onTabClick:function(e,t){null==k||k(e,t);var n=e!==j;$(e),n&&(null==w||w(e))},onTabScroll:T,extra:v,style:g,panes:null,getPopupContainer:S,popupClassName:O,indicator:C});return r.createElement(Jg.Provider,{value:{tabs:N,prefixCls:o}},r.createElement("div",et({ref:t,id:n,className:Fe()(o,"".concat(o,"-").concat(h),at(at(at({},"".concat(o,"-mobile"),R),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),I),a)},x),r.createElement(Av,et({},Q,{renderTabBar:_})),r.createElement(Rv,et({destroyInactiveTabPane:E},G,{animated:A}))))});const $v=jv,Fv={motionAppear:!1,motionEnter:!0,motionLeave:!0};const Mv=function(e,t){if(e)return e.map(e=>{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})});const n=Ze(t).map(e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:i}=r,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(r,["tab"]);return Object.assign(Object.assign({key:String(t)},o),{label:i})}return null});return function(e){return e.filter(e=>e)}(n)},qv=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[tf(e,"slide-up"),tf(e,"slide-down")]]},Vv=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${cr(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:mo(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:cr(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:cr(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${cr(e.borderRadiusLG)} 0 0 ${cr(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},zv=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ho(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${cr(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},fo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${cr(e.paddingXXS)} ${cr(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Bv=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${cr(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:cr(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${cr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${cr(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gv=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:o,horizontalItemPaddingSM:a,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${cr(e.borderRadius)} ${cr(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${cr(e.borderRadius)} ${cr(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${cr(e.borderRadius)} ${cr(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${cr(e.borderRadius)} 0 0 ${cr(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},Qv=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},go(e)),"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-focus ${l}-btn:focus-visible`]:mo(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:o}}}},Uv=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:cr(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:cr(e.marginXS)},marginLeft:{_skip_check_:!0,value:cr(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Hv=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ho(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${cr(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},go(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Qv(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},go(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Kv=Mo("Tabs",e=>{const t=oo(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${cr(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${cr(e.horizontalItemGutter)}`});return[Gv(t),Uv(t),Bv(t),zv(t),Vv(t),Hv(t),qv(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:o}=e,a=t||o,s=n||i,c=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});const Wv=r.forwardRef((e,t)=>{var n,i,o,a,s,c,l,u,d,p,f;const{type:h,className:m,rootClassName:g,size:v,onEdit:y,hideAdd:b,centered:E,addIcon:_,removeIcon:w,moreIcon:k,more:T,popupClassName:S,children:O,items:C,animated:x,style:N,indicatorSize:I,indicator:A,destroyInactiveTabPane:D,destroyOnHidden:R}=e,L=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:P}=L,{direction:j,tabs:$,getPrefixCls:F,getPopupContainer:M}=r.useContext(Be),q=F("tabs",P),V=Eu(q),[z,B,G]=Kv(q,V),Q=r.useRef(null);let U;r.useImperativeHandle(t,()=>({nativeElement:Q.current})),"editable-card"===h&&(U={onEdit:(e,{key:t,event:n})=>{null==y||y("add"===e?n:t,e)},removeIcon:null!==(n=null!=w?w:null==$?void 0:$.removeIcon)&&void 0!==n?n:r.createElement(Kg,null),addIcon:(null!=_?_:null==$?void 0:$.addIcon)||r.createElement(Xg,null),showAdd:!0!==b});const H=F(),K=ag(v),W=Mv(C,O),Y=function(e,t={inkBar:!0,tabPane:!1}){let n;return n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof t?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Fv),{motionName:gu(e,"switch")})),n}(q,x),X=Object.assign(Object.assign({},null==$?void 0:$.style),N),J={align:null!==(i=null==A?void 0:A.align)&&void 0!==i?i:null===(o=null==$?void 0:$.indicator)||void 0===o?void 0:o.align,size:null!==(l=null!==(s=null!==(a=null==A?void 0:A.size)&&void 0!==a?a:I)&&void 0!==s?s:null===(c=null==$?void 0:$.indicator)||void 0===c?void 0:c.size)&&void 0!==l?l:null==$?void 0:$.indicatorSize};return z(r.createElement($v,Object.assign({ref:Q,direction:j,getPopupContainer:M},L,{items:W,className:Fe()({[`${q}-${K}`]:K,[`${q}-card`]:["card","editable-card"].includes(h),[`${q}-editable-card`]:"editable-card"===h,[`${q}-centered`]:E},null==$?void 0:$.className,m,g,B,G,V),popupClassName:Fe()(S,B,G,V),style:X,editable:U,more:Object.assign({icon:null!==(f=null!==(p=null!==(d=null===(u=null==$?void 0:$.more)||void 0===u?void 0:u.icon)&&void 0!==d?d:null==$?void 0:$.moreIcon)&&void 0!==p?p:k)&&void 0!==f?f:r.createElement(du,null),transitionName:`${H}-slide-up`},T),prefixCls:q,animated:Y,indicator:J,destroyInactiveTabPane:null!=R?R:D})))}),Yv=Wv;Yv.TabPane=()=>null;const Xv=Yv;const Jv=e=>{var{prefixCls:t,className:n,hoverable:i=!0}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=r.useContext(Be),s=a("card",t),c=Fe()(`${s}-grid`,n,{[`${s}-grid-hoverable`]:i});return r.createElement("div",Object.assign({},o,{className:c}))},Zv=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${cr(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${cr(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},fo),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${cr(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ey=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${cr(i)} 0 0 0 ${n},\n 0 ${cr(i)} 0 0 ${n},\n ${cr(i)} ${cr(i)} 0 0 ${n},\n ${cr(i)} 0 0 0 ${n} inset,\n 0 ${cr(i)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ty=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${cr(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:cr(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:cr(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${cr(e.lineWidth)} ${e.lineType} ${o}`}}})},ny=e=>Object.assign(Object.assign({margin:`${cr(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},fo),"&-description":{color:e.colorTextDescription}}),ry=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${cr(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${cr(e.padding)} ${cr(i)}`}}},iy=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},oy=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ho(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:Zv(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)}`},[`${t}-grid`]:ey(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ty(e),[`${t}-meta`]:ny(e)}),[`${t}-bordered`]:{border:`${cr(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${cr(e.borderRadiusLG)} ${cr(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:ry(e),[`${t}-loading`]:iy(e),[`${t}-rtl`]:{direction:"rtl"}}},ay=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${cr(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},sy=Mo("Card",e=>{const t=oo(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[oy(t),ay(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}});var cy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ly=e=>{const{actionClasses:t,actions:n=[],actionStyle:i}=e;return r.createElement("ul",{className:t,style:i},n.map((e,t)=>{const i=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:i},r.createElement("span",null,e))}))},uy=r.forwardRef((e,t)=>{const{prefixCls:n,className:i,rootClassName:o,style:a,extra:s,headStyle:c={},bodyStyle:l={},title:u,loading:d,bordered:p,variant:f,size:h,type:m,cover:g,actions:v,tabList:y,children:b,activeTabKey:E,defaultActiveTabKey:_,tabBarExtraContent:w,hoverable:k,tabProps:T={},classNames:S,styles:O}=e,C=cy(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:x,direction:N,card:I}=r.useContext(Be),[A]=((e,t,n)=>{var i,o;const{variant:a,[e]:s}=r.useContext(Be),c=r.useContext(np),l=null==s?void 0:s.variant;let u;return u=void 0!==t?t:!1===n?"borderless":null!==(o=null!==(i=null!=c?c:l)&&void 0!==i?i:a)&&void 0!==o?o:"outlined",[u,ze.includes(u)]})("card",f,p),D=e=>{var t;return Fe()(null===(t=null==I?void 0:I.classNames)||void 0===t?void 0:t[e],null==S?void 0:S[e])},R=e=>{var t;return Object.assign(Object.assign({},null===(t=null==I?void 0:I.styles)||void 0===t?void 0:t[e]),null==O?void 0:O[e])},L=r.useMemo(()=>{let e=!1;return r.Children.forEach(b,t=>{(null==t?void 0:t.type)===Jv&&(e=!0)}),e},[b]),P=x("card",n),[j,$,F]=sy(P),M=r.createElement(Qg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),q=void 0!==E,V=Object.assign(Object.assign({},T),{[q?"activeKey":"defaultActiveKey"]:q?E:_,tabBarExtraContent:w});let z;const B=ag(h),G=B&&"default"!==B?B:"large",Q=y?r.createElement(Xv,Object.assign({size:G},V,{className:`${P}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:y.map(e=>{var{tab:t}=e,n=cy(e,["tab"]);return Object.assign({label:t},n)})})):null;if(u||s||Q){const e=Fe()(`${P}-head`,D("header")),t=Fe()(`${P}-head-title`,D("title")),n=Fe()(`${P}-extra`,D("extra")),i=Object.assign(Object.assign({},c),R("header"));z=r.createElement("div",{className:e,style:i},r.createElement("div",{className:`${P}-head-wrapper`},u&&r.createElement("div",{className:t,style:R("title")},u),s&&r.createElement("div",{className:n,style:R("extra")},s)),Q)}const U=Fe()(`${P}-cover`,D("cover")),H=g?r.createElement("div",{className:U,style:R("cover")},g):null,K=Fe()(`${P}-body`,D("body")),W=Object.assign(Object.assign({},l),R("body")),Y=r.createElement("div",{className:K,style:W},d?M:b),X=Fe()(`${P}-actions`,D("actions")),J=(null==v?void 0:v.length)?r.createElement(ly,{actionClasses:X,actionStyle:R("actions"),actions:v}):null,Z=Me(C,["onTabChange"]),ee=Fe()(P,null==I?void 0:I.className,{[`${P}-loading`]:d,[`${P}-bordered`]:"borderless"!==A,[`${P}-hoverable`]:k,[`${P}-contain-grid`]:L,[`${P}-contain-tabs`]:null==y?void 0:y.length,[`${P}-${B}`]:B,[`${P}-type-${m}`]:!!m,[`${P}-rtl`]:"rtl"===N},i,o,$,F),te=Object.assign(Object.assign({},null==I?void 0:I.style),a);return j(r.createElement("div",Object.assign({ref:t},Z,{className:ee,style:te}),z,H,Y,J))});const dy=uy;dy.Grid=Jv,dy.Meta=e=>{const{prefixCls:t,className:n,avatar:i,title:o,description:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=r.useContext(Be),l=c("card",t),u=Fe()(`${l}-meta`,n),d=i?r.createElement("div",{className:`${l}-meta-avatar`},i):null,p=o?r.createElement("div",{className:`${l}-meta-title`},o):null,f=a?r.createElement("div",{className:`${l}-meta-description`},a):null,h=p||f?r.createElement("div",{className:`${l}-meta-detail`},p,f):null;return r.createElement("div",Object.assign({},s,{className:u}),d,h)};const py=dy,fy=qo("Wave",e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),hy=`${qe}-wave-target`;var my,gy=Kt({},sa),vy=gy.version,yy=gy.render,by=gy.unmountComponentAtNode;try{Number((vy||"").split(".")[0])>=18&&(my=gy.createRoot)}catch(e){}function Ey(e){var t=gy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Ke(t)&&(t.usingClientEntryPoint=e)}var _y="__rc_react_root__";function wy(_x){return ky.apply(this,arguments)}function ky(){return(ky=Vu(Mu().mark(function e(t){return Mu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[_y])||void 0===e||e.unmount(),delete t[_y]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ty(e){by(e)}function Sy(){return(Sy=Vu(Mu().mark(function e(t){return Mu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===my){e.next=2;break}return e.abrupt("return",wy(t));case 2:Ty(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let Oy=(e,t)=>(function(e,t){my?function(e,t){Ey(!0);var n=t[_y]||my(t);Ey(!1),n.render(e),t[_y]=n}(e,t):function(e,t){null==yy||yy(e,t)}(e,t)}(e,t),()=>function(e){return Sy.apply(this,arguments)}(t));function Cy(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function xy(e){return Number.isNaN(e)?0:e}const Ny=e=>{const{className:t,target:n,component:i,registerUnmount:o}=e,a=r.useRef(null),s=r.useRef(null);r.useEffect(()=>{s.current=o()},[]);const[c,l]=r.useState(null),[u,d]=r.useState([]),[p,f]=r.useState(0),[h,m]=r.useState(0),[g,v]=r.useState(0),[y,b]=r.useState(0),[E,_]=r.useState(!1),w={left:p,top:h,width:g,height:y,borderRadius:u.map(e=>`${e}px`).join(" ")};function k(){const e=getComputedStyle(n);l(function(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:i}=getComputedStyle(e);return null!==(t=[n,r,i].find(Cy))&&void 0!==t?t:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:i}=e;f(t?n.offsetLeft:xy(-Number.parseFloat(r))),m(t?n.offsetTop:xy(-Number.parseFloat(i))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;d([o,a,c,s].map(e=>xy(Number.parseFloat(e))))}if(c&&(w["--wave-color"]=c),r.useEffect(()=>{if(n){const e=Ja(()=>{k(),_(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(k),t.observe(n)),()=>{Ja.cancel(e),null==t||t.disconnect()}}},[n]),!E)return null;const T=("Checkbox"===i||"Radio"===i)&&(null==n?void 0:n.classList.contains(hy));return r.createElement(ml,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=s.current)||void 0===r||r.call(s).then(()=>{null==e||e.remove()})}return!1}},({className:e},n)=>r.createElement("div",{ref:Qi(a,n),className:Fe()(t,e,{"wave-quick":T}),style:w}))},Iy=(e,t)=>{var n;const{component:i}=t;if("Checkbox"===i&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);let a=null;a=Oy(r.createElement(Ny,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),o)},Ay=(e,t,n)=>{const{wave:i}=r.useContext(Be),[,o,a]=Fo(),s=Fi(r=>{const s=e.current;if((null==i?void 0:i.disabled)||!s)return;const c=s.querySelector(`.${hy}`)||s,{showEffect:l}=i||{};(l||Iy)(c,{className:t,token:o,component:n,event:r,hashId:a})}),c=r.useRef(null);return e=>{Ja.cancel(c.current),c.current=Ja(()=>{s(e)})}},Dy=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:a}=(0,r.useContext)(Be),s=(0,r.useRef)(null),c=a("wave"),[,l]=fy(c),u=Ay(s,Fe()(c,l),o);return i().useEffect(()=>{const e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!Cs(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),i().isValidElement(t)?bu(t,{ref:Hi(t)?Qi(Wi(t),s):s}):null!=t?t:null},Ry=r.createContext(!1);const Ly=r.createContext(void 0),Py=/^[\u4E00-\u9FA5]{2}$/,jy=Py.test.bind(Py);function $y(e){return"string"==typeof e}function Fy(e){return"text"===e||"link"===e}["default","primary","danger"].concat(je(Ip));const My={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var qy=function(e,t){return r.createElement(Nn,et({},e,{ref:t,icon:My}))};const Vy=r.forwardRef(qy),zy=(0,r.forwardRef)((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,s=Fe()(`${a}-icon`,n);return i().createElement("span",{ref:t,className:s,style:r},o)}),By=zy,Gy=(0,r.forwardRef)((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,s=Fe()(`${n}-loading-icon`,r);return i().createElement(By,{prefixCls:n,className:s,style:o,ref:t},i().createElement(Vy,{className:a}))}),Qy=()=>({width:0,opacity:0,transform:"scale(0)"}),Uy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Hy=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:s}=e,c=!!n;return r?i().createElement(Gy,{prefixCls:t,className:o,style:a}):i().createElement(ml,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Qy,onAppearActive:Uy,onEnterStart:Qy,onEnterActive:Uy,onLeaveStart:Uy,onLeaveActive:Qy},({className:e,style:n},r)=>{const s=Object.assign(Object.assign({},a),n);return i().createElement(Gy,{prefixCls:t,className:Fe()(o,e),style:s,ref:r})})},Ky=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Wy=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ky(`${t}-primary`,i),Ky(`${t}-danger`,o)]}},Yy=e=>{const{paddingInline:t,onlyIconSize:n}=e;return oo(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Xy=e=>{var t,n,r,i,o,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,l=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(i=e.contentLineHeight)&&void 0!==i?i:_o(s),d=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:_o(c),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:_o(l),f=((e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Qp(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:.299*n+.587*r+.114*i>192})(new Up(e.colorBgSolid),"#fff")?"#000":"#fff",h=Ip.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${cr(e.controlOutlineWidth)} 0 ${Ao(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:l,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*p)/2-e.lineWidth,0)})},Jy=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,iconGap:s,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${cr(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":go(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},Zy=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),eb=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),tb=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),nb=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Zy(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),rb=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},tb(e))}),ib=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ob=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?ib:rb;return Object.assign(Object.assign({},i(e)),Zy(e.componentCls,t,n))},ab=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ob(e,r,i))}),sb=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ob(e,r,i))}),cb=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),lb=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ob(e,n,r))}),ub=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ob(e,r,i,n))}),db=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ab(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),cb(e)),lb(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),nb(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ub(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),pb=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},sb(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),cb(e)),lb(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),ub(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ub(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),nb(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),fb=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ab(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),sb(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cb(e)),lb(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),ub(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ub(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),nb(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hb=e=>Object.assign(Object.assign({},ub(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),nb(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),mb=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:db(e),[`${t}-color-primary`]:pb(e),[`${t}-color-dangerous`]:fb(e),[`${t}-color-link`]:hb(e)},(e=>{const{componentCls:t}=e;return Ip.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],l=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:e[`${r}ShadowColor`]},ab(e,e.colorTextLightSolid,i,{background:a},{background:l})),sb(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:l,borderColor:l,background:e.colorBgContainer})),cb(e)),lb(e,o,{color:i,background:s},{color:i,background:c})),ub(e,i,"link",{color:a},{color:l})),ub(e,i,"text",{color:a,background:o},{color:l,background:c}))})},{})})(e))},gb=e=>Object.assign(Object.assign(Object.assign(Object.assign({},sb(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ub(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ab(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ub(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),vb=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${cr(c)} ${cr(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:eb(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},yb=e=>{const t=oo(e,{fontSize:e.contentFontSize});return vb(t,e.componentCls)},bb=e=>{const t=oo(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return vb(t,`${e.componentCls}-sm`)},Eb=e=>{const t=oo(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return vb(t,`${e.componentCls}-lg`)},_b=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},wb=Mo("Button",e=>{const t=Yy(e);return[Jy(t),yb(t),bb(t),Eb(t),_b(t),mb(t),gb(t),Wy(t)]},Xy,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function kb(e,t,n,r){const{focusElCls:i,focus:o,borderElCls:a}=n,s=a?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Tb(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Sb(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,o=`${i}-compact`;return{[o]:Object.assign(Object.assign({},kb(e,o,t,i)),Tb(i,o,t))}}function Ob(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Cb(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ob(e,t,e.componentCls)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const xb=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=e=>{const i=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${i} + ${i}::before`]:{position:"absolute",top:e?o:0,insetInlineStart:e?0:o,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Nb=Vo(["Button","compact"],e=>{const t=Yy(e);return[Sb(t),Cb(t),xb(t)]},Xy);const Ib={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Ab=i().forwardRef((e,t)=>{var n,o;const{loading:a=!1,prefixCls:s,color:c,variant:l,type:u,danger:d=!1,shape:p,size:f,styles:h,disabled:m,className:g,rootClassName:v,children:y,icon:b,iconPosition:E="start",ghost:_=!1,block:w=!1,htmlType:k="button",classNames:T,style:S={},autoInsertSpace:O,autoFocus:C}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=u||"default",{button:I}=i().useContext(Be),A=p||(null==I?void 0:I.shape)||"default",[D,R]=(0,r.useMemo)(()=>{if(c&&l)return[c,l];if(u||d){const e=Ib[N]||[];return d?["danger",e[1]]:e}return(null==I?void 0:I.color)&&(null==I?void 0:I.variant)?[I.color,I.variant]:["default","outlined"]},[c,l,u,d,null==I?void 0:I.color,null==I?void 0:I.variant,N]),L="danger"===D?"dangerous":D,{getPrefixCls:P,direction:j,autoInsertSpace:$,className:F,style:M,classNames:q,styles:V}=Ue("button"),z=null===(n=null!=O?O:$)||void 0===n||n,B=P("btn",s),[G,Q,U]=wb(B),H=(0,r.useContext)(Ry),K=null!=m?m:H,W=(0,r.useContext)(Ly),Y=(0,r.useMemo)(()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a),[a]),[X,J]=(0,r.useState)(Y.loading),[Z,ee]=(0,r.useState)(!1),te=(0,r.useRef)(null),ne=Ui(t,te),re=1===r.Children.count(y)&&!b&&!Fy(R),ie=(0,r.useRef)(!0);i().useEffect(()=>(ie.current=!1,()=>{ie.current=!0}),[]),gr(()=>{let e=null;return Y.delay>0?e=setTimeout(()=>{e=null,J(!0)},Y.delay):J(Y.loading),function(){e&&(clearTimeout(e),e=null)}},[Y.delay,Y.loading]),(0,r.useEffect)(()=>{if(!te.current||!z)return;const e=te.current.textContent||"";re&&jy(e)?Z||ee(!0):Z&&ee(!1)}),(0,r.useEffect)(()=>{C&&te.current&&te.current.focus()},[]);const oe=i().useCallback(t=>{var n;X||K?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,X,K]),{compactSize:ae,compactItemClassnames:se}=((e,t)=>{const n=r.useContext(rp),i=r.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:o}=n,a="vertical"===r?"-vertical-":"-";return Fe()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:i,[`${e}-compact${a}last-item`]:o,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:i}})(B,j),ce=ag(e=>{var t,n;return null!==(n=null!==(t=null!=f?f:ae)&&void 0!==t?t:W)&&void 0!==n?n:e}),le=ce&&null!==(o={large:"lg",small:"sm",middle:void 0}[ce])&&void 0!==o?o:"",ue=X?"loading":b,de=Me(x,["navigate"]),pe=Fe()(B,Q,U,{[`${B}-${A}`]:"default"!==A&&A,[`${B}-${N}`]:N,[`${B}-dangerous`]:d,[`${B}-color-${L}`]:L,[`${B}-variant-${R}`]:R,[`${B}-${le}`]:le,[`${B}-icon-only`]:!y&&0!==y&&!!ue,[`${B}-background-ghost`]:_&&!Fy(R),[`${B}-loading`]:X,[`${B}-two-chinese-chars`]:Z&&z&&!X,[`${B}-block`]:w,[`${B}-rtl`]:"rtl"===j,[`${B}-icon-end`]:"end"===E},se,g,v,F),fe=Object.assign(Object.assign({},M),S),he=Fe()(null==T?void 0:T.icon,q.icon),me=Object.assign(Object.assign({},(null==h?void 0:h.icon)||{}),V.icon||{}),ge=e=>i().createElement(By,{prefixCls:B,className:he,style:me},e);let ve;ve=b&&!X?ge(b):a&&"object"==typeof a&&a.icon?ge(a.icon):i().createElement(Hy,{existIcon:!!b,prefixCls:B,loading:X,mount:ie.current});const ye=y||0===y?function(e,t){let n=!1;const r=[];return i().Children.forEach(e,e=>{const t=typeof e,i="string"===t||"number"===t;if(n&&i){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=i}),i().Children.map(r,e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&$y(e.type)&&jy(e.props.children)?bu(e,{children:e.props.children.split("").join(n)}):$y(e)?jy(e)?i().createElement("span",null,e.split("").join(n)):i().createElement("span",null,e):yu(e)?i().createElement("span",null,e):e}(e,t))}(y,re&&z):null;if(void 0!==de.href)return G(i().createElement("a",Object.assign({},de,{className:Fe()(pe,{[`${B}-disabled`]:K}),href:K?void 0:de.href,style:fe,onClick:oe,ref:ne,tabIndex:K?-1:0,"aria-disabled":K}),ve,ye));let be=i().createElement("button",Object.assign({},x,{type:k,className:pe,style:fe,onClick:oe,disabled:K,ref:ne}),ve,ye,se&&i().createElement(Nb,{prefixCls:B}));return Fy(R)||(be=i().createElement(Dy,{component:"Button",disabled:X},be)),G(be)}),Db=Ab;Db.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(Be),{prefixCls:i,size:o,className:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","size","className"]),c=t("btn-group",i),[,,l]=Fo(),u=r.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=Fe()(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},a,l);return r.createElement(Ly.Provider,{value:o},r.createElement("div",Object.assign({},s,{className:d})))},Db.__ANT_BUTTON=!0;const Rb=Db,Lb=rg.div`
padding: 24px;
overflow-y: scroll;
`,Pb=()=>(0,r.createElement)(Lb,null,(0,r.createElement)("h2",null,"Help"),(0,r.createElement)("p",null,"On this page you will find resources to help you understand WPGraphQL, how to use GraphQL with WordPress, how to customize it and make it work for you, and how to get plugged into the community."),(0,r.createElement)(dg,null),(0,r.createElement)("h3",null,"Documentation"),(0,r.createElement)("p",null,"Below are helpful links to the official WPGraphQL documentation."),(0,r.createElement)(_g,{gutter:[16,16]},(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Getting Started",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/introduction/",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Get Started with WPGraphQL"))]},(0,r.createElement)("p",null,"In the Getting Started are resources to learn about GraphQL, WordPress, how they work together, and more."))),(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Beginner Guides",actions:[(0,r.createElement)("a",{target:"_blank",href:"https://www.wpgraphql.com/docs/intro-to-graphql/",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Beginner Guides"))]},(0,r.createElement)("p",null,"The Beginner guides go over specific topics such as GraphQL, WordPress, tools and techniques to interact with GraphQL APIs and more."))),(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Using WPGraphQL",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/posts-and-pages/",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Using WPGraphQL"))]},(0,r.createElement)("p",null,"This section covers how WPGraphQL exposes WordPress data to the Graph, and shows how you can interact with this data using GraphQL."))),(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Advanced Concepts",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/docs/wpgraphql-concepts/",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Advanced Concepts"))]},(0,r.createElement)("p",null,'Learn about concepts such as "connections", "edges", "nodes", "what is an application data graph?" and more'," ")))),(0,r.createElement)(dg,null),(0,r.createElement)("h3",null,"Developer Reference"),(0,r.createElement)("p",null,"Below are helpful links to the WPGraphQL developer reference. These links will be most helpful to developers looking to customize WPGraphQL"," "),(0,r.createElement)(_g,{gutter:[16,16]},(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Recipes",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/recipes",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Recipes"))]},(0,r.createElement)("p",null,"Here you will find snippets of code you can use to customize WPGraphQL. Most snippets are PHP and intended to be included in your theme or plugin."))),(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Actions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/actions",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Actions"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "actions" that are used in the WPGraphQL codebase. Actions can be used to customize behaviors.'))),(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Filters",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/filters",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Filters"))]},(0,r.createElement)("p",null,'Here you will find an index of the WordPress "filters" that are used in the WPGraphQL codebase. Filters are used to customize the Schema and more.'))),(0,r.createElement)(Sg,{xs:24,sm:24,md:12,lg:12,xl:6},(0,r.createElement)(py,{style:{height:"100%"},title:"Functions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/functions",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Functions"))]},(0,r.createElement)("p",null,'Here you will find functions that can be used to customize the WPGraphQL Schema. Learn how to register GraphQL "fields", "types", and more.')))),(0,r.createElement)(dg,null),(0,r.createElement)("h3",null,"Community"),(0,r.createElement)(_g,{gutter:[16,16]},(0,r.createElement)(Sg,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(py,{style:{height:"100%"},title:"Blog",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Blog",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Read the Blog"))]},(0,r.createElement)("p",null,"Keep up to date with the latest news and updates from the WPGraphQL team."))),(0,r.createElement)(Sg,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(py,{style:{height:"100%"},title:"Extensions",actions:[(0,r.createElement)("a",{href:"https://www.wpgraphql.com/Extensions",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"View Extensions"))]},(0,r.createElement)("p",null,"Browse the list of extensions that are available to extend WPGraphQL to work with other popular WordPress plugins."))),(0,r.createElement)(Sg,{xs:24,sm:24,md:24,lg:8,xl:8},(0,r.createElement)(py,{style:{height:"100%"},title:"Join us in Discord",actions:[(0,r.createElement)("a",{href:"https://discord.gg/AGVBqqyaUY",target:"_blank",rel:"noreferrer"},(0,r.createElement)(Rb,{type:"primary"},"Join us in Discord"))]},(0,r.createElement)("p",null,"Join the WPGraphQL Community in Discord where you can ask questions, show off projects and help other WPGraphQL users. Join us today!")))));var jb=function(){return jb=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},jb.apply(this,arguments)};var $b={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=function(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;var n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}(e,!0);return null==t?t:String(t)}},Fb=n(8032),Mb=function(){return Mb=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},Mb.apply(this,arguments)};function qb(e,t,n){var r=(0,Fb.stringify)(e,n);n&&n.transformSearchString&&(r=n.transformSearchString(r));var i=r.length?"?"+r:"",o=(0,Fb.parseUrl)(t.href||"").url+i;return Mb(Mb({},t),{key:""+Date.now(),href:o,search:i,query:e})}function Vb(e,t){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r],a=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==a?a:String(a)}return n}'{}[],":'.split("").map(function(e){return[e,encodeURIComponent(e)]});var zb=Object.prototype.hasOwnProperty;function Bb(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Gb(e,t,n){var r,i;if(Bb(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=0;s<o.length;s++){var c=null!==(i=null===(r=null==n?void 0:n[o[s]])||void 0===r?void 0:r.equals)&&void 0!==i?i:Bb;if(!zb.call(t,o[s])||!c(e[o[s]],t[o[s]]))return!1}return!0}function Qb(e,t,n){void 0===n&&(n=Gb);var i=(null==e.current||null==t)&&e.current===t||!n(e.current,t);r.useEffect(function(){i&&(e.current=t)},[e,t,i])}function Ub(e){return"object"==typeof e?"undefined"!=typeof window?e.search:(0,Fb.extract)(""+e.pathname+(e.search?e.search:"")):""}var Hb=r.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}});function Kb(e){var t=e.history,n=e.location,i=e.children,o=e.stringifyOptions,a=r.useRef(n);r.useEffect(function(){a.current=n},[n]);var s=r.useCallback(function(){return a.current},[a]),c=r.useCallback(function(e,n){a.current=function(e,t,n,r){switch(void 0===n&&(n="pushIn"),n){case"replace":case"push":return qb(e,t,r);default:return function(e,t,n){var r=(0,Fb.parse)(t.search,{parseNumbers:!1});return qb(Mb(Mb({},r),e),t,n)}(e,t,r)}}(e,null==t||null==t.location?a.current:t.location,n,o),t&&function(e,t,n){switch(void 0===n&&(n="pushIn"),n){case"pushIn":case"push":e.push(t);break;default:e.replace(t)}}(t,a.current,n)},[t,o]);return r.createElement(Hb.Provider,{value:{location:n,getLocation:s,setLocation:c}},i)}var Wb,Yb,Xb=(Wb=void 0,Yb=(0,Fb.parse)(Wb||""),function(e){return Wb!==e&&(Wb=e,Yb=(0,Fb.parse)(Wb)),Yb});function Jb(e,t,n,r,i,o){var a=!Gb(n.current,t),s=Xb(Ub(e));if(r.current===s&&!a&&void 0!==i.current)return{encodedValues:i.current,decodedValues:o.current};for(var c=i.current||{},l=o.current||{},u={},d={},p=0,f=Object.keys(t);p<f.length;p++){var h=f[p],m=t[h],g=void 0,v=void 0;!Gb(c[h],s[h])||void 0===c[h]&&void 0===l[h]?(g=s[h],v=m.decode(g)):(g=c[h],v=l[h]),u[h]=g,d[h]=v}return{encodedValues:u,decodedValues:Gb(o.current,d,t)?o.current:d}}var Zb=function(e){var t=r.useContext(Hb),n=t.location,i=t.getLocation,o=t.setLocation,a=Xb(Ub(n)),s=r.useRef(e),c=r.useRef(a),l=r.useRef(void 0),u=r.useRef({}),d=Jb(n,e=Gb(e,s.current)?s.current:e,s,c,l,u),p=d.encodedValues,f=d.decodedValues;Qb(c,a),Qb(s,e),Qb(l,p),Qb(u,f,function(t,n){return Gb(t,n,e)});var h={paramConfigMap:e,setLocation:o,getLocation:i},m=r.useRef(h);return m.current=h,[f,r.useCallback(function(e,t){var n,r=m.current;if("function"==typeof e){var i=Jb(r.getLocation(),r.paramConfigMap,s,c,l,u).decodedValues;u.current=i,n=Vb(r.paramConfigMap,e(i))}else n=Vb(r.paramConfigMap,e);r.setLocation(n,t)},[])]};const eE=Zb;var tE=function(){return tE=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},tE.apply(this,arguments)};var nE,rE,iE,oE,aE=function(e){var t=e.config,n=e.children,r=eE(t);return n({query:r[0],setQuery:r[1]})},sE=function(){return sE=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},sE.apply(this,arguments)};function cE(e){if(e===iE&&null!=oE)return oE;var t={replace:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!0})},push:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!1})},get location(){return e.location}};return iE=e,oE=t,t}function lE(e){var t=void 0===e?{}:e,n=t.history,r=t.location;if("undefined"!=typeof window&&(n||(n=function(e){if(e===nE&&null!=rE)return rE;var t={replace:function(t){e.replaceState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},push:function(t){e.pushState(t.state,"",t.protocol+"//"+t.host+t.pathname+t.search)},get location(){return window.location}};return nE=e,rE=t,t}(window.history)),r||(r=window.location)),!r)throw new Error("\n Could not read the location. Is the router wired up correctly?\n ");return{history:n,location:r}}function uE(e){var t=e.children,n=e.ReactRouterRoute,i=e.reachHistory,o=e.history,a=e.location,s=e.stringifyOptions,c=r.useRef(s),l=Gb(c.current,s)?c.current:s;return r.useEffect(function(){c.current=l},[l]),n?r.createElement(n,null,function(e){return r.createElement(Kb,sE({stringifyOptions:l},lE(e)),t)}):i?r.createElement(Kb,sE({stringifyOptions:l},lE({history:cE(i),location:a})),t):r.createElement(Kb,sE({stringifyOptions:l},lE({history:o,location:a})),t)}var dE=n(166),pE=n(5549),fE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function hE(){var e=(0,dE.f)({nonNull:!0}),t=e.queryEditor,n=e.setOperationName,o=(0,dE.s)({nonNull:!0}),a=o.isFetching,s=o.operationName,c=o.run,l=o.stop,u=fE((0,r.useState)(!1),2),d=u[0],p=u[1],f=fE((0,r.useState)(null),2),h=f[0],m=f[1],g=(null==t?void 0:t.operations)||[],v=g.length>1&&"string"!=typeof s;return i().createElement("div",{className:"execute-button-wrap"},i().createElement("button",{type:"button",className:"execute-button",onMouseDown:a||!v||d?void 0:function(e){var t=!0,n=e.currentTarget;m(null),p(!0);var r=function(e){var i;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(i=n.parentNode)||void 0===i?void 0:i.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||p(!1))};document.addEventListener("mouseup",r)},onClick:a||!v?function(){a?l():c()}:void 0,title:"Execute Query (Ctrl-Enter)"},i().createElement("svg",{width:"34",height:"34"},a?i().createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):i().createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),v&&d?i().createElement("ul",{className:"execute-options"},g.map(function(e,r){var o=e.name?e.name.value:"<Unnamed ".concat(e.operation,">");return i().createElement("li",{key:"".concat(o,"-").concat(r),className:e===h?"selected":void 0,onMouseOver:function(){return m(e)},onMouseOut:function(){return m(null)},onMouseUp:function(){var r;p(!1);var i=null===(r=e.name)||void 0===r?void 0:r.value;t&&i&&i!==t.operationName&&n(i),c()}},o)})):null)}var mE,gE=(mE=function(e,t){return mE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},mE(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}mE(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),vE=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){if(e instanceof Error)return void n.setState({error:e});throw e}},n.state={error:null},n}return gE(t,e),t.prototype.render=function(){var e=this.state.error;return i().createElement("button",{type:"button",className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(i().Component);function yE(e){var t=e.children;return i().createElement("div",{className:"toolbar-button-group"},t)}var bE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),EE=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){wE(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return bE(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return i().createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:wE,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,i().createElement("svg",{width:"14",height:"8"},i().createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i().createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(i().Component),_E=function(e){var t=e.onSelect,n=e.title,r=e.label;return i().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:wE,onMouseUp:t,title:n},r)};function wE(e){e.preventDefault()}function kE(e){var t=(0,dE.k)(e);return i().createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:t})}function TE(e){var t=e.active,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["active"]),r=(0,dE.n)(n);return i().createElement("div",{className:"codemirrorWrap",style:{position:t?"relative":"absolute",visibility:t?"visible":"hidden"},ref:r})}function SE(e){var t=e.active,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["active"]),r=(0,dE.g)(n);return i().createElement("div",{className:"codemirrorWrap",style:{position:t?"relative":"absolute",visibility:t?"visible":"hidden"},ref:r})}function OE(e){var t=(0,dE.m)(e);return i().createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}function CE(e){var t=(0,dE.x)({nonNull:!0,caller:CE}).push;if(!e.type)return null;var n=e.type;return(0,pE.isNonNullType)(n)?i().createElement(i().Fragment,null,i().createElement(CE,{type:n.ofType}),"!"):(0,pE.isListType)(n)?i().createElement(i().Fragment,null,"[",i().createElement(CE,{type:n.ofType}),"]"):i().createElement("a",{className:"type-name",onClick:function(e){e.preventDefault(),t({name:n.name,def:n})},href:"#"},n.name)}function xE(e){var t,n=e.field;return"defaultValue"in n&&void 0!==n.defaultValue?i().createElement("span",null," = ",i().createElement("span",{className:"arg-default-value"},(t=(0,pE.astFromValue)(n.defaultValue,n.type))?(0,pE.print)(t):"")):null}function NE(e){var t=e.arg,n=e.showDefaultValue;return i().createElement("span",{className:"arg"},i().createElement("span",{className:"arg-name"},t.name),": ",i().createElement(CE,{type:t.type}),!1!==n&&i().createElement(xE,{field:t}))}function IE(e){var t=e.directive;return i().createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var AE=n(2922),DE=new(n.n(AE)())({breaks:!0,linkify:!0});function RE(e){var t=e.markdown,n=e.className;return t?i().createElement("div",{className:n,dangerouslySetInnerHTML:{__html:DE.render(t)}}):i().createElement("div",null)}function LE(){var e,t,n,r,o=(0,dE.x)({nonNull:!0}).explorerNavStack,a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(i().useState(!1),2),s=a[0],c=a[1],l=o[o.length-1].def;if(!l||(0,pE.isType)(l))return null;if(l&&"args"in l&&l.args.length>0){t=i().createElement("div",{id:"doc-args",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"arguments"),l.args.filter(function(e){return!e.deprecationReason}).map(function(e){return i().createElement("div",{key:e.name,className:"doc-category-item"},i().createElement("div",null,i().createElement(NE,{arg:e})),i().createElement(RE,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(RE,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))}));var u=l.args.filter(function(e){return Boolean(e.deprecationReason)});u.length>0&&(n=i().createElement("div",{id:"doc-deprecated-args",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated arguments"),s?u.map(function(e,t){return i().createElement("div",{key:t},i().createElement("div",null,i().createElement(NE,{arg:e})),i().createElement(RE,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i().createElement(RE,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))}):i().createElement("button",{type:"button",className:"show-btn",onClick:function(){return c(!s)}},"Show deprecated arguments...")))}return(null===(e=null==l?void 0:l.astNode)||void 0===e?void 0:e.directives)&&l.astNode.directives.length>0&&(r=i().createElement("div",{id:"doc-directives",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"directives"),l.astNode.directives.map(function(e){return i().createElement("div",{key:e.name.value,className:"doc-category-item"},i().createElement("div",null,i().createElement(IE,{directive:e})))}))),i().createElement("div",null,i().createElement(RE,{className:"doc-type-description",markdown:l.description||"No Description"}),l&&"deprecationReason"in l&&i().createElement(RE,{className:"doc-deprecation",markdown:l.deprecationReason}),i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"type"),i().createElement(CE,{type:l.type})),t,r,n)}function PE(){var e,t,n=(0,dE.D)({nonNull:!0}).schema;if(!n)return null;var r=n.getQueryType(),o=null===(e=n.getMutationType)||void 0===e?void 0:e.call(n),a=null===(t=n.getSubscriptionType)||void 0===t?void 0:t.call(n);return i().createElement("div",null,i().createElement(RE,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"root types"),r?i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"query"),": ",i().createElement(CE,{type:r})):null,o&&i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"mutation"),": ",i().createElement(CE,{type:o})),a&&i().createElement("div",{className:"doc-category-item"},i().createElement("span",{className:"keyword"},"subscription"),": ",i().createElement(CE,{type:a}))))}var jE=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),$E=function(e){function t(t){var n,r,i=e.call(this,t)||this;return i.handleChange=function(e){var t=e.currentTarget.value;i.setState({value:t}),i.debouncedOnSearch(t)},i.handleClear=function(){i.setState({value:""}),i.props.onSearch("")},i.state={value:t.value||""},i.debouncedOnSearch=(n=i.props.onSearch,function(){for(var e=this,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];r&&window.clearTimeout(r),r=window.setTimeout(function(){r=null,n.apply(e,t)},200)}),i}return jE(t,e),t.prototype.render=function(){return i().createElement("label",{className:"search-box"},i().createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),i().createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&i().createElement("button",{type:"button",className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))},t}(i().Component);const FE=$E;function ME(e){var t=(0,dE.x)({nonNull:!0}).push;return i().createElement("a",{className:"field-name",onClick:function(n){n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#"},e.field.name)}function qE(){var e,t,n=(0,dE.x)({nonNull:!0}).explorerNavStack,r=(0,dE.D)({nonNull:!0}).schema,o=n[n.length-1];if(!r||!o.search)return null;var a=o.search,s=o.def,c=[],l=[],u=[],d=r.getTypeMap(),p=Object.keys(d);s&&(p=p.filter(function(e){return e!==s.name})).unshift(s.name);var f=function(e){if(c.length+l.length+u.length>=100)return"break";var t=d[e];if(s!==t&&VE(e,a)&&l.push(i().createElement("div",{className:"doc-category-item",key:e},i().createElement(CE,{type:t}))),t&&"getFields"in t){var n=t.getFields();Object.keys(n).forEach(function(r){var o,l=n[r];if(!VE(r,a)){if(!("args"in l)||!l.args.length)return;if(0===(o=l.args.filter(function(e){return VE(e.name,a)})).length)return}var d=i().createElement("div",{className:"doc-category-item",key:e+"."+r},s!==t&&[i().createElement(CE,{key:"type",type:t}),"."],i().createElement(ME,{field:l}),o&&["(",i().createElement("span",{key:"args"},o.map(function(e){return i().createElement(NE,{key:e.name,arg:e,showDefaultValue:!1})})),")"]);s===t?c.push(d):u.push(d)})}};try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(p),m=h.next();!m.done&&"break"!==f(m.value);m=h.next());}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return c.length+l.length+u.length===0?i().createElement("span",{className:"doc-alert-text"},"No results found."):s&&l.length+u.length>0?i().createElement("div",null,c,i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"other results"),l,u)):i().createElement("div",{className:"doc-search-items"},c,l,u)}function VE(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,function(e){return"\\"+e});return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}function zE(){var e=(0,dE.D)({nonNull:!0}).schema,t=(0,dE.x)({nonNull:!0}).explorerNavStack,n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,r.useState)(!1),2),o=n[0],a=n[1],s=t[t.length-1].def;if(!e||!(0,pE.isNamedType)(s))return null;var c,l,u,d,p,f=null,h=[];if((0,pE.isUnionType)(s)?(f="possible types",h=e.getPossibleTypes(s)):(0,pE.isInterfaceType)(s)?(f="implementations",h=e.getPossibleTypes(s)):(0,pE.isObjectType)(s)&&(f="implements",h=s.getInterfaces()),h&&h.length>0&&(c=i().createElement("div",{id:"doc-types",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},f),h.map(function(e){return i().createElement("div",{key:e.name,className:"doc-category-item"},i().createElement(CE,{type:e}))}))),s&&"getFields"in s){var m=s.getFields(),g=Object.keys(m).map(function(e){return m[e]});l=i().createElement("div",{id:"doc-fields",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"fields"),g.filter(function(e){return!e.deprecationReason}).map(function(e){return i().createElement(BE,{key:e.name,type:s,field:e})}));var v=g.filter(function(e){return Boolean(e.deprecationReason)});v.length>0&&(u=i().createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated fields"),o?v.map(function(e){return i().createElement(BE,{key:e.name,type:s,field:e})}):i().createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated fields...")))}if((0,pE.isEnumType)(s)){var y=s.getValues();d=i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"values"),y.filter(function(e){return Boolean(!e.deprecationReason)}).map(function(e){return i().createElement(GE,{key:e.name,value:e})}));var b=y.filter(function(e){return Boolean(e.deprecationReason)});b.length>0&&(p=i().createElement("div",{className:"doc-category"},i().createElement("div",{className:"doc-category-title"},"deprecated values"),o?b.map(function(e){return i().createElement(GE,{key:e.name,value:e})}):i().createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated values...")))}return i().createElement("div",null,i().createElement(RE,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),(0,pE.isObjectType)(s)&&c,l,u,d,p,!(0,pE.isObjectType)(s)&&c)}function BE(e){var t=e.field;return i().createElement("div",{className:"doc-category-item"},i().createElement(ME,{field:t}),"args"in t&&t.args&&t.args.length>0&&["(",i().createElement("span",{key:"args"},t.args.filter(function(e){return!e.deprecationReason}).map(function(e){return i().createElement(NE,{key:e.name,arg:e})})),")"],": ",i().createElement(CE,{type:t.type}),i().createElement(xE,{field:t}),t.description&&i().createElement(RE,{className:"field-short-description",markdown:t.description}),"deprecationReason"in t&&t.deprecationReason&&i().createElement(RE,{className:"doc-deprecation",markdown:t.deprecationReason}))}function GE(e){var t=e.value;return i().createElement("div",{className:"doc-category-item"},i().createElement("div",{className:"enum-value"},t.name),i().createElement(RE,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i().createElement(RE,{className:"doc-deprecation",markdown:t.deprecationReason}))}function QE(e){var t=(0,dE.D)({nonNull:!0}),n=t.fetchError,r=t.isFetching,o=t.schema,a=t.validationErrors,s=(0,dE.x)({nonNull:!0}),c=s.explorerNavStack,l=s.hide,u=s.pop,d=s.showSearch,p=c[c.length-1],f=void 0===e.schema?o:e.schema,h=null;n?h=i().createElement("div",{className:"error-container"},"Error fetching schema"):a.length>0?h=i().createElement("div",{className:"error-container"},"Schema is invalid: ",a[0].message):r?h=i().createElement("div",{className:"spinner-container"},i().createElement("div",{className:"spinner"})):f?p.search?h=i().createElement(qE,null):1===c.length?h=i().createElement(PE,null):(0,pE.isType)(p.def)?h=i().createElement(zE,null):p.def&&(h=i().createElement(LE,null)):h=i().createElement("div",{className:"error-container"},"No Schema Available");var m,g=1===c.length||(0,pE.isType)(p.def)&&"getFields"in p.def;return c.length>1&&(m=c[c.length-2].name),i().createElement("section",{className:"doc-explorer",key:p.name,"aria-label":"Documentation Explorer"},i().createElement("div",{className:"doc-explorer-title-bar"},m&&i().createElement("button",{type:"button",className:"doc-explorer-back",onClick:u,"aria-label":"Go back to ".concat(m)},m),i().createElement("div",{className:"doc-explorer-title"},p.title||p.name),i().createElement("div",{className:"doc-explorer-rhs"},i().createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){var t;l(),null===(t=e.onClose)||void 0===t||t.call(e)},"aria-label":"Close Documentation Explorer"},"✕"))),i().createElement("div",{className:"doc-explorer-contents"},g&&i().createElement(FE,{value:p.search,placeholder:"Search ".concat(p.name,"..."),onSearch:d}),h))}var UE=function(){return UE=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},UE.apply(this,arguments)};function HE(){var e=(0,dE.z)({nonNull:!0}),t=e.hide,n=e.items;return i().createElement("section",{"aria-label":"History"},i().createElement("div",{className:"history-title-bar"},i().createElement("div",{className:"history-title"},"History"),i().createElement("div",{className:"doc-explorer-rhs"},i().createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){return t()},"aria-label":"Close History"},"✕"))),i().createElement("ul",{className:"history-contents"},n.slice().reverse().map(function(e,t){return i().createElement(KE,{key:"".concat(t,":").concat(e.label||e.query),item:e})})))}function KE(e){var t,n=(0,dE.z)({nonNull:!0}),o=n.editLabel,a=n.toggleFavorite,s=(0,dE.A)(),c=(0,r.useRef)(null),l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}((0,r.useState)(!1),2),u=l[0],d=l[1];(0,r.useEffect)(function(){u&&c.current&&c.current.focus()},[u]);var p=e.item.label||e.item.operationName||(null===(t=e.item.query)||void 0===t?void 0:t.split("\n").filter(function(e){return 0!==e.indexOf("#")}).join("")),f=e.item.favorite?"★":"☆";return i().createElement("li",{className:u?"editable":void 0},u?i().createElement("input",{type:"text",defaultValue:e.item.label,ref:c,onBlur:function(t){t.stopPropagation(),d(!1),o(UE(UE({},e.item),{label:t.target.value}))},onKeyDown:function(t){13===t.keyCode&&(t.stopPropagation(),d(!1),o(UE(UE({},e.item),{label:t.currentTarget.value})))},placeholder:"Type a label"}):i().createElement("button",{type:"button",className:"history-label",onClick:function(){s(e.item)}},p),i().createElement("button",{type:"button",onClick:function(e){e.stopPropagation(),d(!0)},"aria-label":"Edit label"},"✎"),i().createElement("button",{type:"button",onClick:function(t){t.stopPropagation(),a(e.item)},"aria-label":e.item.favorite?"Remove favorite":"Add favorite"},f))}function WE(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function YE(e){return JSON.stringify(e,null,2)}function XE(e){return e instanceof Error?function(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}(e):e}var JE=function(){return JE=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},JE.apply(this,arguments)};function ZE(e){return i().createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(t){t.stopPropagation(),e.onClick()}})}function e_(e){return i().createElement("button",JE({},e.tabProps,{role:"tab",type:"button","aria-selected":e.isActive,title:e.title,className:"tab".concat(e.isActive?" active":""),onClick:e.onSelect}),e.title,e.isCloseable?i().createElement(ZE,{onClick:function(){return e.onClose()}}):null)}function t_(e){return i().createElement("button",{type:"button",onClick:e.onClick,className:"tab-add",title:"Create new tab"},i().createElement("span",null,"+"))}function n_(e){return i().createElement("div",JE({role:"tablist",className:"tabs"},e.tabsProps),e.children)}var r_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),i_=function(){return i_=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},i_.apply(this,arguments)},o_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};if(parseInt(i().version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));var a_=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=null,n}return r_(t,e),t.prototype.componentDidMount=function(){"undefined"!=typeof window&&(window.g=this)},t.prototype.render=function(){var e=this;return i().createElement(s_,i_({},this.props,{ref:function(t){e.ref=t}}))},t.prototype.getQueryEditor=function(){var e;return console.warn("The method `GraphiQL.getQueryEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `query` prop. To react on changes of the editor value you can pass a callback to the `onEditQuery` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getQueryEditor())||null},t.prototype.getVariableEditor=function(){var e;return console.warn("The method `GraphiQL.getVariableEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `variables` prop. To react on changes of the editor value you can pass a callback to the `onEditVariables` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getVariableEditor())||null},t.prototype.getHeaderEditor=function(){var e;return console.warn("The method `GraphiQL.getHeaderEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `headers` prop. To react on changes of the editor value you can pass a callback to the `onEditHeaders` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getHeaderEditor())||null},t.prototype.refresh=function(){var e;console.warn("The method `GraphiQL.refresh` is deprecated and will be removed in the next major version. Already now, all editors should automatically refresh when their size changes."),null===(e=this.ref)||void 0===e||e.refresh()},t.prototype.autoCompleteLeafs=function(){var e;return console.warn("The method `GraphiQL.autoCompleteLeafs` is deprecated and will be removed in the next major version. Please switch to using the `autoCompleteLeafs` function provided by the `EditorContext` from the `@graphiql/react` package."),null===(e=this.ref)||void 0===e?void 0:e.autoCompleteLeafs()},t.formatResult=function(e){return console.warn("The function `GraphiQL.formatResult` is deprecated and will be removed in the next major version. Please switch to using the `formatResult` function provided by the `@graphiql/toolkit` package."),function(e){return YE(e)}(e)},t.formatError=function(e){return console.warn("The function `GraphiQL.formatError` is deprecated and will be removed in the next major version. Please switch to using the `formatError` function provided by the `@graphiql/toolkit` package."),function(e){return Array.isArray(e)?YE({errors:e.map(e=>XE(e))}):YE({errors:[XE(e)]})}(e)},t.Logo=u_,t.Toolbar=d_,t.Footer=p_,t.QueryEditor=kE,t.VariableEditor=TE,t.HeaderEditor=SE,t.ResultViewer=OE,t.Button=vE,t.ToolbarButton=vE,t.Group=yE,t.Menu=EE,t.MenuItem=_E,t}(i().Component),s_=(0,r.forwardRef)(function(e,t){var n=e.dangerouslyAssumeSchemaIsValid,r=e.docExplorerOpen,o=e.externalFragments,a=e.fetcher,s=e.headers,c=e.inputValueDeprecation,l=e.introspectionQueryName,u=e.maxHistoryLength,d=e.onEditOperationName,p=e.onSchemaChange,f=e.onToggleHistory,h=e.onToggleDocs,m=e.operationName,g=e.query,v=e.response,y=e.storage,b=e.schema,E=e.schemaDescription,_=e.shouldPersistHeaders,w=e.validationRules,k=e.variables,T=o_(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","externalFragments","fetcher","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onToggleHistory","onToggleDocs","operationName","query","response","storage","schema","schemaDescription","shouldPersistHeaders","validationRules","variables"]);if("function"!=typeof a)throw new TypeError("GraphiQL requires a fetcher function.");return i().createElement(dE.G,{storage:y},i().createElement(dE.y,{maxHistoryLength:u,onToggle:f},i().createElement(dE.a,{defaultQuery:T.defaultQuery,externalFragments:o,headers:s,onEditOperationName:d,onTabChange:"object"==typeof T.tabs?T.tabs.onTabChange:void 0,query:g,response:v,shouldPersistHeaders:_,validationRules:w,variables:k},i().createElement(dE.B,{dangerouslyAssumeSchemaIsValid:n,fetcher:a,inputValueDeprecation:c,introspectionQueryName:l,onSchemaChange:p,schema:b,schemaDescription:E},i().createElement(dE.r,{fetcher:a,operationName:m},i().createElement(dE.w,{isVisible:r,onToggleVisibility:h},i().createElement(c_,i_({},T,{ref:t}))))))))}),c_=(0,r.forwardRef)(function(e,t){var n=e.getDefaultFieldNames,r=o_(e,["getDefaultFieldNames"]),o=(0,dE.f)({nonNull:!0}),a=(0,dE.s)({nonNull:!0}),s=(0,dE.x)(),c=(0,dE.z)(),l=(0,dE.D)({nonNull:!0}),u=(0,dE.J)(),d=(0,dE.u)({getDefaultFieldNames:n}),p=(0,dE.e)({onCopyQuery:r.onCopyQuery}),f=(0,dE.h)(),h=(0,dE.j)(),m=(0,dE.K)({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:(null==s?void 0:s.isVisible)?void 0:"second",onHiddenElementChange:function(e){"second"===e?null==s||s.hide():null==s||s.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),g=(0,dE.K)({direction:"horizontal",storageKey:"editorFlex"}),v=(0,dE.K)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:void 0!==r.defaultVariableEditorOpen?r.defaultVariableEditorOpen?void 0:"second":void 0!==r.defaultSecondaryEditorOpen?r.defaultSecondaryEditorOpen?void 0:"second":o.initialVariables||o.initialHeaders?void 0:"second",sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return i().createElement(l_,i_({},r,{editorContext:o,executionContext:a,explorerContext:s,historyContext:c,schemaContext:l,storageContext:u,autoCompleteLeafs:d,copy:p,merge:f,prettify:h,docResize:m,editorResize:g,secondaryEditorResize:v,ref:t}))}),l_=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activeSecondaryEditor:"variable"},n}return r_(t,e),t.prototype.render=function(){var e,t,n,r,o=this,a=i().Children.toArray(this.props.children),s=WE(a,function(e){return f_(e,a_.Logo)})||i().createElement(a_.Logo,null),c=WE(a,function(e){return f_(e,a_.Toolbar)})||i().createElement(a_.Toolbar,null,i().createElement(vE,{onClick:function(){o.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),i().createElement(vE,{onClick:function(){o.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),i().createElement(vE,{onClick:function(){o.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),i().createElement(vE,{onClick:function(){var e;return null===(e=o.props.historyContext)||void 0===e?void 0:e.toggle()},title:(null===(e=this.props.historyContext)||void 0===e?void 0:e.isVisible)?"Hide History":"Show History",label:"History"}),i().createElement(vE,{onClick:function(){return o.props.schemaContext.introspect()},title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),(null===(t=this.props.toolbar)||void 0===t?void 0:t.additionalContent)?this.props.toolbar.additionalContent:null),l=WE(a,function(e){return f_(e,a_.Footer)}),u=null===(n=this.props.headerEditorEnabled)||void 0===n||n;return i().createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},i().createElement("div",{ref:this.props.docResize.firstRef},(null===(r=this.props.historyContext)||void 0===r?void 0:r.isVisible)&&i().createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},i().createElement(HE,null)),i().createElement("div",{className:"editorWrap"},i().createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,i().createElement("div",{className:"topBar"},s,i().createElement(hE,null),c),this.props.explorerContext&&!this.props.explorerContext.isVisible&&i().createElement("button",{type:"button",className:"docExplorerShow",onClick:function(){var e;null===(e=o.props.explorerContext)||void 0===e||e.show(),o.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?i().createElement(n_,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map(function(e,t){return i().createElement(e_,{key:e.id,isActive:t===o.props.editorContext.activeTabIndex,title:e.title,isCloseable:o.props.editorContext.tabs.length>1,onSelect:function(){o.props.executionContext.stop(),o.props.editorContext.changeTab(t)},onClose:function(){o.props.editorContext.activeTabIndex===t&&o.props.executionContext.stop(),o.props.editorContext.closeTab(t)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(t)}})}),i().createElement(t_,{onClick:function(){o.props.editorContext.addTab()}})):null,i().createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},i().createElement("div",{ref:this.props.editorResize.firstRef},i().createElement("div",{className:"queryWrap"},i().createElement("div",{ref:this.props.secondaryEditorResize.firstRef},i().createElement(kE,{editorTheme:this.props.editorTheme,onClickReference:function(){"second"===o.props.docResize.hiddenElement&&o.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),i().createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},i().createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},i().createElement("div",{className:"variable-editor-title-text".concat("variable"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"variable"},function(){var e;null===(e=o.props.editorContext.variableEditor)||void 0===e||e.refresh()})}},"Query Variables"),u&&i().createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat("header"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===o.props.secondaryEditorResize.hiddenElement&&o.props.secondaryEditorResize.setHiddenElement(null),o.setState({activeSecondaryEditor:"header"},function(){var e;null===(e=o.props.editorContext.headerEditor)||void 0===e||e.refresh()})}},"Request Headers"))),i().createElement("div",{ref:this.props.secondaryEditorResize.secondRef},i().createElement("section",{className:"variable-editor secondary-editor","aria-label":"variable"===this.state.activeSecondaryEditor?"Query Variables":"Request Headers"},i().createElement(TE,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:"variable"===this.state.activeSecondaryEditor,keyMap:this.props.keyMap}),u&&i().createElement(SE,{active:"header"===this.state.activeSecondaryEditor,editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),i().createElement("div",{ref:this.props.editorResize.dragBarRef},i().createElement("div",{className:"editor-drag-bar"})),i().createElement("div",{ref:this.props.editorResize.secondRef},i().createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&i().createElement("div",{className:"spinner-container"},i().createElement("div",{className:"spinner"})),i().createElement(OE,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),l))))),i().createElement("div",{ref:this.props.docResize.dragBarRef},i().createElement("div",{className:"docExplorerResizer"})),i().createElement("div",{ref:this.props.docResize.secondRef},i().createElement("div",{className:"docExplorerWrap"},i().createElement(QE,{onClose:function(){return o.props.docResize.setHiddenElement("second")}}))))},t.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},t.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},t.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},t.prototype.refresh=function(){var e,t,n,r;null===(e=this.props.editorContext.queryEditor)||void 0===e||e.refresh(),null===(t=this.props.editorContext.variableEditor)||void 0===t||t.refresh(),null===(n=this.props.editorContext.headerEditor)||void 0===n||n.refresh(),null===(r=this.props.editorContext.responseEditor)||void 0===r||r.refresh()},t.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},t}(i().Component);function u_(e){return i().createElement("div",{className:"title"},e.children||i().createElement("span",null,"Graph",i().createElement("em",null,"i"),"QL"))}function d_(e){return i().createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function p_(e){return i().createElement("div",{className:"footer"},e.children)}function f_(e,t){var n;return!(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}u_.displayName="GraphiQLLogo",d_.displayName="GraphiQLToolbar",p_.displayName="GraphiQLFooter";var h_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function __(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}}(),m_=function(){return m_=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},m_.apply(this,arguments)};function g_(e){var t=e.onSelect,n=e.label,r=e.selected;return i().createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:v_,onMouseUp:t},n,r&&i().createElement("svg",{width:"13",height:"13"},i().createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835\n 10.686,0 13,2.314 4.851,10.462"})))}function v_(e){e.preventDefault()}!function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){v_(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}h_(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e,t=this,n=this.state.visible,r=i().Children.map(this.props.children,function(n,r){var o;if(!function(e){return!(!e||"object"!=typeof e||!("props"in e))}(n))return null;e&&!n.props.selected||(e=n);var a=n.props.onSelect||(null===(o=t.props.onSelect)||void 0===o?void 0:o.bind(null,n.props.value,r));return i().createElement(g_,m_({},n.props,{onSelect:a}))});return i().createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:v_,ref:function(e){t._node=e},title:this.props.title},null==e?void 0:e.props.label,i().createElement("svg",{width:"13",height:"10"},i().createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),i().createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),i().createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},r))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(v_(e),this.setState({visible:!1}),this._release())}}(i().Component);const y_=a_;const b_=80*Math.PI,E_=e=>{const{dotClassName:t,style:n,hasCircleCls:i}=e;return r.createElement("circle",{className:Fe()(`${t}-circle`,{[`${t}-circle-bg`]:i}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},w_=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,i=`${n}-holder`,o=`${i}-hidden`,[a,s]=r.useState(!1);gr(()=>{0!==e&&s(!0)},[0!==e]);const c=Math.max(Math.min(e,100),0);if(!a)return null;const l={strokeDashoffset:""+b_/4,strokeDasharray:`${b_*c/100} ${b_*(100-c)/100}`};return r.createElement("span",{className:Fe()(i,`${n}-progress`,c<=0&&o)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},r.createElement(E_,{dotClassName:n,hasCircleCls:!0}),r.createElement(E_,{dotClassName:n,style:l})))};function k_(e){const{prefixCls:t,percent:n=0}=e,i=`${t}-dot`,o=`${i}-holder`,a=`${o}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:Fe()(o,n>0&&a)},r.createElement("span",{className:Fe()(i,`${t}-dot-spin`)},[1,2,3,4].map(e=>r.createElement("i",{className:`${t}-dot-item`,key:e})))),r.createElement(w_,{prefixCls:t,percent:n}))}function T_(e){var t;const{prefixCls:n,indicator:i,percent:o}=e,a=`${n}-dot`;return i&&r.isValidElement(i)?bu(i,{className:Fe()(null===(t=i.props)||void 0===t?void 0:t.className,a),percent:o}):r.createElement(k_,{prefixCls:n,percent:o})}const S_=new ki("antSpinMove",{to:{opacity:1}}),O_=new ki("antRotate",{to:{transform:"rotate(405deg)"}}),C_=Mo("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ho(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:S_,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:O_,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}})(oo(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),x_=[[30,.05],[70,.03],[96,.01]];let N_;const I_=e=>{var t;const{prefixCls:n,spinning:i=!0,delay:o=0,className:a,rootClassName:s,size:c="default",tip:l,wrapperClassName:u,style:d,children:p,fullscreen:f=!1,indicator:h,percent:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:b,style:E,indicator:_}=Ue("spin"),w=v("spin",n),[k,T,S]=C_(w),[O,C]=r.useState(()=>i&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(i,o)),x=function(e,t){const[n,i]=r.useState(0),o=r.useRef(null),a="auto"===t;return r.useEffect(()=>(a&&e&&(i(0),o.current=setInterval(()=>{i(e=>{const t=100-e;for(let n=0;n<x_.length;n+=1){const[r,i]=x_[n];if(e<=r)return e+t*i}return e})},200)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[a,e]),a?n:t}(O,m);r.useEffect(()=>{if(i){const e=function(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,c=void 0!==s&&s,l=i.debounceMode,u=void 0===l?void 0:l,d=!1,p=0;function f(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=this,l=Date.now()-p;function h(){p=Date.now(),t.apply(s,i)}function m(){r=void 0}d||(c||!u||r||h(),f(),void 0===u&&l>e?c?(p=Date.now(),a||(r=setTimeout(u?m:h,e))):h():!0!==a&&(r=setTimeout(u?m:h,void 0===u?e-l:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}(o,()=>{C(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}C(!1)},[o,i]);const N=r.useMemo(()=>void 0!==p&&!f,[p,f]),I=Fe()(w,b,{[`${w}-sm`]:"small"===c,[`${w}-lg`]:"large"===c,[`${w}-spinning`]:O,[`${w}-show-text`]:!!l,[`${w}-rtl`]:"rtl"===y},a,!f&&s,T,S),A=Fe()(`${w}-container`,{[`${w}-blur`]:O}),D=null!==(t=null!=h?h:_)&&void 0!==t?t:N_,R=Object.assign(Object.assign({},E),d),L=r.createElement("div",Object.assign({},g,{style:R,className:I,"aria-live":"polite","aria-busy":O}),r.createElement(T_,{prefixCls:w,indicator:D,percent:x}),l&&(N||f)?r.createElement("div",{className:`${w}-text`},l):null);return k(N?r.createElement("div",Object.assign({},g,{className:Fe()(`${w}-nested-loading`,u,T,S)}),O&&r.createElement("div",{key:"loading"},L),r.createElement("div",{className:A,key:"container"},p)):f?r.createElement("div",{className:Fe()(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:O},s,T,S)},L):L)};I_.setDefaultIndicator=e=>{N_=e};const A_=I_;var D_=n(683),R_=n.n(D_);const{parse:L_}=window.wpGraphiQL.GraphQL;var P_=n(9991);const{hooks:j_,useAppContext:$_}=window.wpGraphiQL,F_=(0,o.createContext)(),M_=()=>(0,o.useContext)(F_),q_=({children:e})=>{var t;const{queryParams:n,setQueryParams:i}=$_(),a=null!==(t=window&&window?.localStorage?.getItem("graphiql:variables"))&&void 0!==t?t:null,[s,c]=(0,o.useState)((()=>{var e;let t="";const r=null!==(e=n.query)&&void 0!==e?e:null;r&&(t=R_().decompressFromEncodedURIComponent(r),null===t&&(t=r));try{t=(0,P_.print)((0,P_.parse)(t))}catch(e){var i;t=null!==(i=window?.localStorage?.getItem("graphiql:query"))&&void 0!==i?i:null}return t})()),[l,u]=(0,o.useState)(a),[d,p]=(0,o.useState)((()=>{var e;const t=null!==(e=wpGraphiQLSettings?.externalFragments)&&void 0!==e?e:null;if(!t)return[];const n=[];return t.map(e=>{let t,r;try{var i;t=L_(e),r=null!==(i=t?.definitions[0])&&void 0!==i?i:null}catch(e){}r&&n.push(r)}),n})()),f=j_.applyFilters("graphiql_context_default_value",{query:s,setQuery:async e=>{const t=s;j_.doAction("graphiql_update_query",{currentQuery:t,newQuery:e});let r,o,a=!1;if(null!==e&&e===s)return;if(null===e||""===e)a=!0;else{o=R_().decompressFromEncodedURIComponent(e),r=null===o?R_().compressToEncodedURIComponent(e):e;try{(0,P_.parse)(e),a=!0}catch(t){return void console.warn({error:{e:t,newQuery:e}})}}if(!a)return;window&&window.localStorage&&""!==e&&null!==e&&window?.localStorage.setItem("graphiql:query",e);const l={...n,query:r};JSON.stringify(l!==JSON.stringify(n))&&i(l),t!==e&&await c(e)},variables:l,setVariables:e=>{window&&window.localStorage&&window.localStorage.setItem("graphiql:variables",e),u(e)},externalFragments:d,setExternalFragments:p});return(0,r.createElement)(F_.Provider,{value:f},e)},{hooks:V_}=wpGraphiQL,z_=e=>{const{graphiql:t}=e,n=(0,dE.j)(),i=(0,dE.z)(),o=[{label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)",onClick:()=>{n&&n()}},{label:"History",title:"Show History",onClick:()=>{i&&i.toggle()}}],a=M_(),s={...e,GraphiQL:a_,graphiqlContext:a},c=V_.applyFilters("graphiql_toolbar_buttons",o,s),l=V_.applyFilters("graphiql_toolbar_before_buttons",[],s),u=V_.applyFilters("graphiql_toolbar_after_buttons",[],s);return(0,r.createElement)("div",{"data-testid":"graphiql-toolbar",style:{display:"flex"}},l.length>0?l:null,c&&c.length&&c.map((e,n)=>{const{label:i,title:o,onClick:a}=e;return(0,r.createElement)(a_.Button,{"data-testid":i,key:n,onClick:()=>{0===a.length?a():a(t)},label:i,title:o})}),u.length>0?u:null)},{hooks:B_,useAppContext:G_,GraphQL:Q_}=wpGraphiQL,{parse:U_,specifiedRules:H_}=Q_,K_=rg.div`
display: flex;
.topBar {
height: 50px;
}
.doc-explorer-title,
.history-title {
padding-top: 5px;
overflow: hidden;
}
.doc-explorer-back {
overflow: hidden;
}
height: 100%;
display: flex;
flex-direction: row;
margin: 0;
overflow: hidden;
width: 100%;
.graphiql-container {
border: 1px solid #ccc;
}
.graphiql-container .execute-button-wrap {
margin: 0 14px;
}
padding: 20px;
`,W_=e=>{try{return JSON.parse(e)&&!!e}catch(e){return!1}},Y_=()=>{const e=(0,o.useRef)(null),t=G_(),n=M_(),{query:i,setQuery:a,externalFragments:s,variables:c,setVariables:l}=n,{endpoint:u,nonce:d,schema:p,setSchema:f}=t;let h=((e,t)=>{const{nonce:n}=t;return t=>{const r={method:"POST",headers:{Accept:"application/json","content-type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t),credentials:"include"};return fetch(e,r).then(e=>e.json())}})(u,{nonce:d});h=B_.applyFilters("graphiql_fetcher",h,t);const m=B_.applyFilters("graphiql_before_graphiql",[],{...t,...n}),g=B_.applyFilters("graphiql_after_graphiql",[],{...t,...n});return(0,r.createElement)(K_,{"data-testid":"wp-graphiql-wrapper",id:"wp-graphiql-wrapper"},m.length>0?m:null,(0,r.createElement)(y_,{ref:e,fetcher:e=>h(e),schema:p,query:i,onEditQuery:e=>{let t=!1;if(e!==i){if(null===e||""===e)t=!0;else try{U_(e),t=!0}catch(e){return}t&&a(e)}},onEditVariables:e=>{W_(e)&&l(e)},variables:W_(c)?c:null,validationRules:H_,readOnly:!1,externalFragments:s,headerEditorEnabled:!1,onSchemaChange:e=>{p!==e&&f(e)}},(0,r.createElement)(y_.Toolbar,null,(0,r.createElement)(z_,{graphiql:()=>e.current})),(0,r.createElement)(y_.Logo,null,(0,r.createElement)(r.Fragment,null))),g.length>0?g:null)},X_=()=>{const e=G_(),{schemaLoading:t}=e;return t?(0,r.createElement)(A_,{style:{margin:"50px"}}):(0,r.createElement)(q_,{appContext:e},(0,r.createElement)(Y_,null))};var J_=function(e,t){return J_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},J_(e,t)};function Z_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}J_(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var ew=function(){return ew=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},ew.apply(this,arguments)};function tw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function nw(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function rw(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function iw(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ow="Invariant Violation",aw=Object.setPrototypeOf,sw=void 0===aw?function(e,t){return e.__proto__=t,e}:aw,cw=function(e){function t(n){void 0===n&&(n=ow);var r=e.call(this,"number"==typeof n?ow+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=ow,sw(r,t.prototype),r}return Z_(t,e),t}(Error);function lw(e,t){if(!e)throw new cw(t)}var uw,dw=["debug","log","warn","error","silent"],pw=dw.indexOf("log");function fw(e){return function(){if(dw.indexOf(e)>=pw)return(console[e]||console.log).apply(console,arguments)}}(uw=lw||(lw={})).debug=fw("debug"),uw.log=fw("log"),uw.warn=fw("warn"),uw.error=fw("error");var hw="3.14.0";function mw(e){try{return e()}catch(e){}}const gw=mw(function(){return globalThis})||mw(function(){return window})||mw(function(){return self})||mw(function(){return globalThis})||mw(function(){return mw.constructor("return this")()});var vw=new Map;function yw(e){var t=vw.get(e)||1;return vw.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function bw(e,t){void 0===t&&(t=0);var n=yw("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}function Ew(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=Sw(i))||(t=Ow(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var _w=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||lw(e,Sw(t,n)||Ow(t,n))},{debug:Ew(lw.debug),log:Ew(lw.log),warn:Ew(lw.warn),error:Ew(lw.error)});function ww(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new cw(Sw(e,t)||Ow(e,t))}var kw=Symbol.for("ApolloErrorMessageHandler_"+hw);function Tw(e){if("string"==typeof e)return e;try{return bw(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function Sw(e,t){if(void 0===t&&(t=[]),e)return gw[kw]&&gw[kw](e,t.map(Tw))}function Ow(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:hw,message:e,args:t.map(Tw)})))}function Cw(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}function xw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nw(e,t,n){return t&&xw(e.prototype,t),n&&xw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}globalThis.__DEV__;var Iw=function(){return"function"==typeof Symbol},Aw=function(e){return Iw()&&Boolean(Symbol[e])},Dw=function(e){return Aw(e)?Symbol[e]:"@@"+e};Iw()&&!Aw("observable")&&(Symbol.observable=Symbol("observable"));var Rw=Dw("iterator"),Lw=Dw("observable"),Pw=Dw("species");function jw(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function $w(e){var t=e.constructor;return void 0!==t&&null===(t=t[Pw])&&(t=void 0),void 0!==t?t:Hw}function Fw(e){return e instanceof Hw}function Mw(e){Mw.log?Mw.log(e):setTimeout(function(){throw e})}function qw(e){Promise.resolve().then(function(){try{e()}catch(e){Mw(e)}})}function Vw(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=jw(t,"unsubscribe");n&&n.call(t)}}catch(e){Mw(e)}}function zw(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Bw(e,t,n){e._state="running";var r=e._observer;try{var i=jw(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(zw(e),!i)throw n;i.call(r,n);break;case"complete":zw(e),i&&i.call(r)}}catch(e){Mw(e)}"closed"===e._state?Vw(e):"running"===e._state&&(e._state="ready")}function Gw(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void qw(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Bw(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void Bw(e,t,n);e._queue.push({type:t,value:n})}}var Qw=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Uw(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(zw(this),Vw(this))},Nw(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Uw=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Gw(this._subscription,"next",e)},t.error=function(e){Gw(this._subscription,"error",e)},t.complete=function(){Gw(this._subscription,"complete")},Nw(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Hw=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Qw(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new($w(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new($w(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=$w(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=$w(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=$w(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[Lw]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=jw(t,Lw);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Fw(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Aw("iterator")&&(r=jw(t,Rw)))return new n(function(e){qw(function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Cw(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)?Cw(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){qw(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){qw(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},Nw(e,null,[{key:Pw,get:function(){return this}}]),e}();function Kw(e){return null!==e&&"object"==typeof e}function Ww(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw ww(113,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(_w(1===r.length,114,r.length),n=r[0].name.value),ew(ew({},e),{definitions:iw([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Yw(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function Xw(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return _w(r,115,n),r||null;default:return null}}function Jw(){}Iw()&&Object.defineProperty(Hw,Symbol("extensions"),{value:{symbol:Lw,hostReportError:Mw},configurable:!0});const Zw=Jw,ek="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},tk="undefined"!=typeof WeakMap?WeakMap:Map,nk="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:Jw,unregister:Jw}};class rk{constructor(e=1/0,t=Zw){this.max=e,this.dispose=t,this.map=new tk,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new ek(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new nk(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function ik(){}class ok{constructor(e=1/0,t=ik){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var ak=new WeakSet;function sk(e){e.size<=(e.max||-1)||ak.has(e)||(ak.add(e),setTimeout(function(){e.clean(),ak.delete(e)},100))}var ck=function(e,t){var n=new rk(e,t);return n.set=function(e,t){var n=rk.prototype.set.call(this,e,t);return sk(this),n},n},lk=function(e,t){var n=new ok(e,t);return n.set=function(e,t){var n=ok.prototype.set.call(this,e,t);return sk(this),n},n},uk=Symbol.for("apollo.cacheSize"),dk=ew({},gw[uk]),pk={};function fk(e,t){pk[e]=t}var hk=!1!==globalThis.__DEV__?function(){var e,t,n,r,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],n=e[1];return[t,dk[t]||n]})),sizes:ew({print:null===(e=pk.print)||void 0===e?void 0:e.call(pk),parser:null===(t=pk.parser)||void 0===t?void 0:t.call(pk),canonicalStringify:null===(n=pk.canonicalStringify)||void 0===n?void 0:n.call(pk),links:wk(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Ek(this.queryManager.documentTransform)}},null===(i=(r=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(r))}}:void 0,mk=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return ew(ew({},vk.apply(this)),{addTypenameDocumentTransform:Ek(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:yk(this.storeReader.executeSelectionSet),executeSubSelectedArray:yk(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:yk(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:yk(null==e?void 0:e.findFragmentSpreads),lookup:yk(null==e?void 0:e.lookup),transform:yk(null==e?void 0:e.transform)}})}:void 0,gk=!1!==globalThis.__DEV__?vk:void 0;function vk(){return{cache:{fragmentQueryDocuments:yk(this.getFragmentDoc)}}}function yk(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function bk(e){return null!=e}function Ek(e){return _k(e).map(function(e){return{cache:e}})}function _k(e){return e?iw(iw([yk(null==e?void 0:e.performWork)],_k(null==e?void 0:e.left),!0),_k(null==e?void 0:e.right),!0).filter(bk):[]}function wk(e){var t;return e?iw(iw([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],wk(null==e?void 0:e.left),!0),wk(null==e?void 0:e.right),!0).filter(bk):[]}var kk,Tk=Object.assign(function(e){return JSON.stringify(e,Sk)},{reset:function(){kk=new lk(dk.canonicalStringify||1e3)}});function Sk(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(Ok))return t;var i=JSON.stringify(r),o=kk.get(i);if(!o){r.sort();var a=JSON.stringify(r);o=kk.get(a)||r,kk.set(i,o),kk.set(a,o)}var s=Object.create(n);return o.forEach(function(e){s[e]=t[e]}),s}}return t}function Ok(e,t,n){return 0===t||n[t-1]<=e}function Ck(e){return{__ref:String(e)}}function xk(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Nk(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(e){return Nk(i,e.name,e.value,r)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return Nk(n,t,e,r),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw ww(124,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&fk("canonicalStringify",function(){return kk.size}),Tk.reset();var Ik=["connection","include","skip","client","rest","export","nonreactive"],Ak=Tk,Dk=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(Ak(i),")")}return n.connection.key}var o=e;if(t){var a=Ak(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===Ik.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(Ak(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=Ak;return Ak=e,t}});function Rk(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return Nk(n,r,i,t)}),n}return null}function Lk(e){return e.alias?e.alias.value:e.name.value}function Pk(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++)if(jk(c=o[i])){if("__typename"===c.name.value)return e[Lk(c)]}else r?r.push(c):r=[c];if("string"==typeof e.__typename)return e.__typename;if(r)for(var a=0,s=r;a<s.length;a++){var c,l=Pk(e,Xw(c=s[a],n).selectionSet,n);if("string"==typeof l)return l}}function jk(e){return"Field"===e.kind}function $k(e){_w(e&&"Document"===e.kind,116);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw ww(117,e.kind);return e});return _w(t.length<=1,118,t.length),e}function Fk(e){return $k(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function Mk(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function qk(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function Vk(e){var t=Fk(e);return _w(t&&"query"===t.operation,119),t}function zk(e){_w("Document"===e.kind,120),_w(e.definitions.length<=1,121);var t=e.definitions[0];return _w("FragmentDefinition"===t.kind,122),t}function Bk(e){var t;$k(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw ww(123)}function Gk(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&Nk(t,e.variable.name,e.defaultValue)}),t}const Qk=()=>Object.create(null),{forEach:Uk,slice:Hk}=Array.prototype,{hasOwnProperty:Kk}=Object.prototype;class Wk{constructor(e=!0,t=Qk){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Uk.call(e,e=>t=t.getChildTrie(e)),Kk.call(t,"data")?t.data:t.data=this.makeData(Hk.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(Hk.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new Wk(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}let Yk=null;const Xk={};let Jk=1;function Zk(e){try{return e()}catch(e){}}const eT="@wry/context:Slot",tT=Zk(()=>globalThis)||Zk(()=>globalThis)||Object.create(null),nT=tT[eT]||Array[eT]||function(e){try{Object.defineProperty(tT,eT,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Jk++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Yk;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Xk)break;return e!==Yk&&(Yk.slots[this.id]=t),!0}return Yk&&(Yk.slots[this.id]=Xk),!1}getValue(){if(this.hasValue())return Yk.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Yk;Yk={parent:o,slots:i};try{return t.apply(r,n)}finally{Yk=o}}static bind(e){const t=Yk;return function(){const n=Yk;try{return Yk=t,e.apply(this,arguments)}finally{Yk=n}}}static noContext(e,t,n){if(!Yk)return e.apply(n,t);{const r=Yk;try{return Yk=null,e.apply(n,t)}finally{Yk=r}}}}),{bind:rT,noContext:iT}=nT,oT=new nT,{hasOwnProperty:aT}=Object.prototype,sT=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function cT(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const lT=[];function uT(e,t){if(!e)throw new Error(t||"assertion failure")}function dT(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function pT(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function fT(e){return e.slice(0)}class hT{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++hT.count}peek(){if(1===this.value.length&&!vT(this))return mT(this),this.value[0]}recompute(e){return uT(!this.recomputing,"already recomputing"),mT(this),vT(this)?function(e,t){return TT(e),oT.withValue(e,gT,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{cT(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,vT(e)||bT(e)}(e),pT(e.value)}(this,e):pT(this.value)}setDirty(){this.dirty||(this.dirty=!0,yT(this),cT(this))}dispose(){this.setDirty(),TT(this),ET(this,(e,t)=>{e.setDirty(),ST(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=lT.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(sT(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),lT.push(this.deps),this.deps=null)}}function mT(e){const t=oT.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),vT(e)?_T(t,e):wT(t,e),t}function gT(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=fT(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!dT(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function vT(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function yT(e){ET(e,_T)}function bT(e){ET(e,wT)}function ET(e,t){const n=e.parents.size;if(n){const r=sT(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function _T(e,t){uT(e.childValues.has(t)),uT(vT(t));const n=!vT(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=lT.pop()||new Set;e.dirtyChildren.add(t),n&&yT(e)}function wT(e,t){uT(e.childValues.has(t)),uT(!vT(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,fT(t.value)):dT(n,t.value)||e.setDirty(),kT(e,t),vT(e)||bT(e)}function kT(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(lT.length<100&&lT.push(n),e.dirtyChildren=null))}function TT(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{ST(e,n)}),e.forgetDeps(),uT(null===e.dirtyChildren)}function ST(e,t){t.parents.delete(e),e.childValues.delete(t),kT(e,t)}hT.count=0;const OT={setDirty:!0,dispose:!0,forget:!0};function CT(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=oT.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(cT(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&aT.call(OT,n)?n:"setDirty";sT(r).forEach(e=>e[i]()),t.delete(e),cT(r)}},r}let xT;function NT(...e){return(xT||(xT=new Wk("function"==typeof WeakMap))).lookupArray(e)}const IT=new Set;function AT(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=NT,normalizeResult:i,subscribe:o,cache:a=ok}=Object.create(null)){const s="function"==typeof a?new a(t,e=>e.dispose()):a,c=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new hT(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const c=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),IT.add(s),oT.hasValue()||(IT.forEach(e=>e.clean()),IT.clear()),c};function l(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))},c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}var DT=Symbol.for("apollo.deprecations"),RT=gw,LT=new nT;function PT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return LT.withValue.apply(LT,iw([Array.isArray(e)?e:[e]],t,!1))}function jT(e,t,n,r){void 0===r&&(r="Please remove this option."),$T(t,function(){t in e&&!1!==globalThis.__DEV__&&_w.warn(104,n,t,r)})}function $T(e,t){(function(e){return RT[DT]||(LT.getValue()||[]).includes(e)})(e)||t()}function FT(e,t){return t?t(e):Hw.of()}function MT(e){return"function"==typeof e?new VT(e):e}function qT(e){return e.request.length<=1}var VT=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return Hw.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(MT).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i,o=MT(n),a=MT(r||new e(FT));return i=qT(o)&&qT(a)?new e(function(e){return t(e)?o.request(e)||Hw.of():a.request(e)||Hw.of()}):new e(function(e,n){return t(e)?o.request(e,n)||Hw.of():a.request(e,n)||Hw.of()}),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var n=ew({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=ew(ew({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return ew({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Mk(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw ww(58,i)}return e}(t))))||Hw.of()},e.concat=function(t,n){var r=MT(t);if(qT(r))return!1!==globalThis.__DEV__&&_w.warn(47,r),r;var i,o=MT(n);return i=qT(o)?new e(function(e){return r.request(e,function(e){return o.request(e)||Hw.of()})||Hw.of()}):new e(function(e,t){return r.request(e,function(e){return o.request(e,t)||Hw.of()})||Hw.of()}),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(FT)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw ww(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&$T("onError",function(){!1!==globalThis.__DEV__&&_w.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&_w.warn(50),this.onError=e,this},e}();function zT(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach(function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;_w(n&&1===n.length,107,r);var i=n[0];_w(i.name&&"if"===i.name.value,108,r);var o=i.value;_w(o&&("Variable"===o.kind||"BooleanValue"===o.kind),109,r),t.push({directive:e,ifArgument:i})}}),t}(n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],_w(void 0!==i,106,n.name.value)):i=r.value.value,"skip"===n.name.value?!i:i})}function BT(e,t,n){var r=new Set(e),i=r.size;return(0,pE.visit)(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return pE.BREAK}}),n?!r.size:r.size<i}function GT(e){return e&&BT(["client","export"],e,!0)}function QT(e){var t,n,r=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!r)return"mask";var i=null===(n=r.arguments)||void 0===n?void 0:n.find(function(e){return"mode"===e.name.value});return!1!==globalThis.__DEV__&&i&&(i.value.kind===pE.Kind.VARIABLE?!1!==globalThis.__DEV__&&_w.warn(110):i.value.kind!==pE.Kind.STRING?!1!==globalThis.__DEV__&&_w.warn(111):"migrate"!==i.value.value&&!1!==globalThis.__DEV__&&_w.warn(112,i.value.value)),i&&"value"in i.value&&"migrate"===i.value.value?"migrate":"unmask"}var UT=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=ww(54,t,e.message);throw r.parseError=e,r}return n},HT="ReactNative"==mw(function(){return navigator.product}),KT="function"==typeof WeakMap&&!(HT&&!globalThis.HermesInternal),WT="function"==typeof WeakSet,YT="function"==typeof Symbol&&"function"==typeof Symbol.for,XT=YT&&Symbol.asyncIterator;function JT(e){var t={next:function(){return e.read()}};return XT&&(t[Symbol.asyncIterator]=function(){return this}),t}function ZT(e){var t,n,r,i,o=e;if(e.body&&(o=e.body),i=o,XT&&i[Symbol.asyncIterator])return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(o);if(function(e){return!!e.getReader}(o))return JT(o.getReader());if(function(e){return!!e.stream}(o))return JT(o.stream().getReader());if(function(e){return!!e.arrayBuffer}(o))return t=o.arrayBuffer(),n=!1,r={next:function(){return n?Promise.resolve({value:void 0,done:!0}):(n=!0,new Promise(function(e,n){t.then(function(t){e({value:t,done:!1})}).catch(n)}))}},XT&&(r[Symbol.asyncIterator]=function(){return this}),r;if(function(e){return!!e.pipe}(o))return function(e){var t=null,n=null,r=!1,i=[],o=[];function a(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,o.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return XT&&(l[Symbol.asyncIterator]=function(){return this}),l}(o);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}mw(function(){return window.document.createElement}),mw(function(){return navigator.userAgent.indexOf("jsdom")>=0});var eS=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},tS=Symbol();function nS(e){return e.hasOwnProperty("graphQLErrors")}var rS=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.protocolErrors,s=n.clientErrors,c=n.networkError,l=n.errorMessage,u=n.extraInfo,d=e.call(this,l)||this;return d.name="ApolloError",d.graphQLErrors=o||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=c||null,d.message=l||(i=iw(iw(iw([],(r=d).graphQLErrors,!0),r.clientErrors,!0),r.protocolErrors,!0),r.networkError&&i.push(r.networkError),i.map(function(e){return Kw(e)&&e.message||"Error message not found."}).join("\n")),d.extraInfo=u,d.cause=iw(iw(iw([c],o||[],!0),a||[],!0),s||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}return Z_(t,e),t}(Error),iS=Array.isArray;function oS(e){return Array.isArray(e)&&e.length>0}var aS=Object.prototype.hasOwnProperty;function sS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cS(e)}function cS(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new uS,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var lS=function(e,t,n){return this.merge(e[n],t[n])},uS=function(){function e(e){void 0===e&&(e=lS),this.reconciler=e,this.isObject=Kw,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Kw(t)&&Kw(e)?(Object.keys(t).forEach(function(i){if(aS.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,iw([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return Kw(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):ew({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function dS(e){return"incremental"in e}function pS(e){return Kw(e)&&"payload"in e}function fS(e,t){var n=e,r=new uS;return dS(t)&&oS(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}n=r.merge(n,t)}),n}var hS=Object.prototype.hasOwnProperty;function mS(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}function gS(e,t){e.status>=300&&eS(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var vS,yS=Object.assign(function(e){var t=vS.get(e);return t||(t=(0,pE.print)(e),vS.set(e,t)),t},{reset:function(){vS=new ck(dk.print||2e3)}});yS.reset(),!1!==globalThis.__DEV__&&fk("print",function(){return vS?vS.size:0});var bS={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ES=function(e,t){return t(e)};function _S(e){return new Hw(function(t){t.error(e)})}var wS={kind:pE.Kind.FIELD,name:{kind:pE.Kind.NAME,value:"__typename"}};function kS(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===pE.Kind.FRAGMENT_SPREAD&&kS(t[e.name.value],t)})}function TS(e){return kS(Fk(e)||zk(e),Yw(qk(e)))?null:e}function SS(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function OS(e,t){$k(t);for(var n=SS(""),r=SS(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!iS(i)){if(i.kind===pE.Kind.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===pE.Kind.FRAGMENT_DEFINITION)return r(i.name.value)}return!1!==globalThis.__DEV__&&_w.error(125),null},o=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===pE.Kind.OPERATION_DEFINITION&&++o;var s,c,l,u=(s=e,c=new Map,l=new Map,s.forEach(function(e){e&&(e.name?c.set(e.name,e):e.test&&l.set(e.test,e))}),function(e){var t=c.get(e.name.value);return!t&&l.size&&l.forEach(function(n,r){r(e)&&(t=n)}),t}),d=function(e){return oS(e)&&e.map(u).some(function(e){return e&&e.remove})},p=new Map,f=!1,h={enter:function(e){if(d(e.directives))return f=!0,null}},m=(0,pE.visit)(t,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(d(e.directives))return f=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){p.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===p.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every(function(e){return e.kind===pE.Kind.FIELD&&"__typename"===e.name.value})?(r(e.name.value).removed=!0,f=!0,null):void 0}},Directive:{leave:function(e){if(u(e))return f=!0,null}}});if(!f)return t;var g=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){g(r(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},v=new Set;m.definitions.forEach(function(e){e.kind===pE.Kind.OPERATION_DEFINITION?g(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){v.add(e)}):e.kind!==pE.Kind.FRAGMENT_DEFINITION||0!==o||r(e.name.value).removed||v.add(e.name.value)}),v.forEach(function(e){g(r(e)).fragmentSpreads.forEach(function(e){v.add(e)})});var y={enter:function(e){if(t=e.name.value,!v.has(t)||r(t).removed)return null;var t}};return TS((0,pE.visit)(m,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=g(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return ew(ew({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var CS=Object.assign(function(e){return(0,pE.visit)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==pE.Kind.OPERATION_DEFINITION){var r=e.selections;if(r&&!r.some(function(e){return jk(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(jk(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return ew(ew({},e),{selections:iw(iw([],r,!0),[wS],!1)})}}}}})},{added:function(e){return e===wS}});function xS(e){if("query"===Bk(e).operation)return e;var t=(0,pE.visit)(e,{OperationDefinition:{enter:function(e){return ew(ew({},e),{operation:"query"})}}});return t}function NS(e){return $k(e),OS([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function IS(e){return $k(e),(0,pE.visit)(e,{FragmentSpread:function(e){var t;if(!(null===(t=e.directives)||void 0===t?void 0:t.some(function(e){return"unmask"===e.name.value})))return ew(ew({},e),{directives:iw(iw([],e.directives||[],!0),[{kind:pE.Kind.DIRECTIVE,name:{kind:pE.Kind.NAME,value:"nonreactive"}}],!1)})}})}var AS=mw(function(){return fetch}),DS=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?ES:i,a=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=void 0!==l&&l,d=tw(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw ww(51)}(r||AS);var p={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new VT(function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var s=i.clientAwareness,l=s.name,d=s.version;l&&(a["apollographql-client-name"]=l),d&&(a["apollographql-client-version"]=d)}var f=ew(ew({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:f};if(BT(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&_w.warn(52);var m=NS(e.query);if(!m)return _S(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var g,v,y,b,E,_=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach(function(e){i=ew(ew(ew({},i),e.options),{headers:ew(ew({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=ew(ew({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,c=e.variables,l=e.query,u={operationName:a,variables:c};return o.includeExtensions&&(u.extensions=s),o.includeQuery&&(u.query=t(l,yS)),{options:i,body:u}}(e,o,bS,p,h),w=_.options,k=_.body;k.variables&&!u&&(k.variables=(g=k.variables,v=e.query,y=ew({},g),b=new Set(Object.keys(g)),(0,pE.visit)(v,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.forEach(function(e){delete y[e]}),y)),w.signal||"undefined"==typeof AbortController||(E=new AbortController,w.signal=E.signal);var T,S="OperationDefinition"===(T=Bk(e.query)).kind&&"subscription"===T.operation,O=BT(["defer"],e.query);if(c&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(w.method="GET"),O||S){w.headers=w.headers||{};var C="multipart/mixed;";S&&O&&!1!==globalThis.__DEV__&&_w.warn(53),S?C+="boundary=graphql;subscriptionSpec=1.0,application/json":O&&(C+="deferSpec=20220824,application/json"),w.headers.accept=C}if("GET"===w.method){var x=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=UT(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=UT(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+a}}(t,k),N=x.newURI,I=x.parseError;if(I)return _S(I);t=N}else try{w.body=UT(k,"Payload")}catch(I){return _S(I)}return new Hw(function(n){var i=r||mw(function(){return fetch})||AS,o=n.next.bind(n);return i(t,w).then(function(t){var n;e.setContext({response:t});var r,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return nw(this,void 0,void 0,function(){var n,r,i,o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T,S;return rw(this,function(O){switch(O.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(S=e.headers)||void 0===S?void 0:S.get("content-type"),i="boundary=",o=(null==r?void 0:r.includes(i))?null==r?void 0:r.substring((null==r?void 0:r.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",c=ZT(e),l=!0,O.label=1;case 1:return l?[4,c.next()]:[3,3];case 2:for(u=O.sent(),d=u.value,p=u.done,f="string"==typeof d?d:n.decode(d),h=s.length-a.length+1,l=!p,m=(s+=f).indexOf(a,h);m>-1;){if(g=void 0,k=[s.slice(0,m),s.slice(m+a.length)],s=k[1],v=(g=k[0]).indexOf("\r\n\r\n"),y=mS(g.slice(0,v)),(b=y["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(E=g.slice(v))if(_=gS(e,E),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if(pS(_)){if(w={},"payload"in _){if(1===Object.keys(_).length&&null===_.payload)return[2];w=ew({},_.payload)}"errors"in _&&(w=ew(ew({},w),{extensions:ew(ew({},"extensions"in w?w.extensions:null),(T={},T[tS]=_.errors,T))})),t(w)}else t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];m=s.indexOf(a)}return[3,1];case 3:return[2]}})})}(t,o):(r=e,function(e){return e.text().then(function(t){return gS(e,t)}).then(function(t){return Array.isArray(t)||hS.call(t,"data")||hS.call(t,"errors")||eS(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map(function(e){return e.operationName}):r.operationName,"'.")),t})})(t).then(o)}).then(function(){E=void 0,n.complete()}).catch(function(e){E=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)}),function(){E&&E.abort()}})})},RS=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,DS(t).request)||this;return n.options=t,n}return Z_(t,e),t}(VT),LS=VT.execute;const{toString:PS,hasOwnProperty:jS}=Object.prototype,$S=Function.prototype.toString,FS=new Map;function MS(e,t){try{return VS(e,t)}finally{FS.clear()}}const qS=MS;function VS(e,t){if(e===t)return!0;const n=PS.call(e);if(n!==PS.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(QS(e,t))return!0;const n=zS(e),r=zS(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!jS.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!VS(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(QS(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n))return!1;if(i&&!VS(o,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=$S.call(e);return n===$S.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,GS)}}return!1}function zS(e){return Object.keys(e).filter(BS,e)}function BS(e){return void 0!==this[e]}const GS="{ [native code] }";function QS(e,t){let n=FS.get(e);if(n){if(n.has(t))return!0}else FS.set(e,n=new Set);return n.add(t),!1}function US(e){return e}var HS=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=WT?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(US,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Wk(KT);this.performWork=AT(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return _w(Array.isArray(r),105),n.lookupArray(r)},max:dk["documentTransform.cache"],cache:rk})}},e.prototype.performWork=function(e){return $k(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}();function KS(e,t,n){return new Hw(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}function WS(e){return oS(YS(e))}function YS(e){var t=oS(e.errors)?e.errors.slice(0):[];return dS(e)&&oS(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function XS(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function JS(e){function t(t){Object.defineProperty(e,t,{value:Hw})}return YT&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ZS(e){return e&&"function"==typeof e.then}var eO,tO=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),XS(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),XS(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?ZS(i)?i.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),XS(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new Hw(t)]),ZS(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return Z_(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(Hw);function nO(e){return!!e&&e<7}function rO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}JS(tO),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(eO||(eO={}));var iO=Object.prototype.toString;function oO(e){return aO(e)}function aO(e,t){switch(iO.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=aO(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=aO(e[n],t)}),r;default:return e}}function sO(e,t,n,r){var i=t.data,o=tw(t,["data"]),a=n.data,s=tw(n,["data"]);return qS(o,s)&&cO(Bk(e).selectionSet,i,a,{fragmentMap:Yw(qk(e)),variables:r})}function cO(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(e){if(i.has(e))return!0;if(i.add(e),!zT(e,r.variables))return!0;if(lO(e))return!0;if(jk(e)){var o=Lk(e),a=t&&t[o],s=n&&n[o],c=e.selectionSet;if(!c)return qS(a,s);var l=Array.isArray(a),u=Array.isArray(s);if(l!==u)return!1;if(l&&u){var d=a.length;if(s.length!==d)return!1;for(var p=0;p<d;++p)if(!cO(c,a[p],s[p],r))return!1;return!0}return cO(c,a,s,r)}var f=Xw(e,r.fragmentMap);return f?!!lO(f)||cO(f.selectionSet,t,n,r):void 0})}function lO(e){return!!e.directives&&e.directives.some(uO)}function uO(e){return"nonreactive"===e.name.value}var dO=Object.assign,pO=Object.hasOwnProperty,fO=function(e){function t(n){var r=n.queryManager,i=n.queryInfo,o=n.options,a=this,s=t.inactiveOnCreation.getValue();(a=e.call(this,function(e){a._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=hO)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(a.maskResult(r.result)),n&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this).observers=new Set,a.subscriptions=new Set,a.dirty=!1,a._getOrCreateQuery=function(){return s&&(r.queries.set(a.queryId,i),s=!1),a.queryManager.getOrCreateQuery(a.queryId)},a.queryInfo=i,a.queryManager=r,a.waitForOwnResult=gO(o.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var c=r.defaultOptions.watchQuery,l=(void 0===c?{}:c).fetchPolicy,u=void 0===l?"cache-first":l,d=o.fetchPolicy,p=void 0===d?u:d,f=o.initialFetchPolicy,h=void 0===f?"standby"===p?u:p:f;a.options=ew(ew({},o),{initialFetchPolicy:h,fetchPolicy:p}),a.queryId=i.queryId||r.generateQueryId();var m=Fk(a.query);return a.queryName=m&&m.name&&m.name.value,a}return Z_(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return!1!==globalThis.__DEV__&&$T("observableQuery.result",function(){!1!==globalThis.__DEV__&&_w.warn(23)}),new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;void 0===e&&(e=!0);var n=PT("getLastResult",function(){return t.getLastResult(!0)}),r=this.queryInfo.networkStatus||n&&n.networkStatus||eO.ready,i=ew(ew({},n),{loading:nO(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if(gO(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),MS(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,!s.complete||i.networkStatus!==eO.loading||"cache-first"!==a&&"cache-only"!==a||(i.networkStatus=eO.ready,i.loading=!1)):i.partial=!0,i.networkStatus===eO.ready&&(i.error||i.errors)&&(i.networkStatus=eO.error),!1===globalThis.__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||mO(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,i=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!sO(i,this.last.result,e,this.variables):!MS(this.last.result,e))||t&&!MS(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||MS(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return!1!==globalThis.__DEV__&&$T("getLastResult",function(){!1!==globalThis.__DEV__&&_w.warn(24)}),this.getLast("result",e)},t.prototype.getLastError=function(e){return!1!==globalThis.__DEV__&&$T("getLastError",function(){!1!==globalThis.__DEV__&&_w.warn(25)}),this.getLast("error",e)},t.prototype.resetLastResults=function(){!1!==globalThis.__DEV__&&$T("resetLastResults",function(){!1!==globalThis.__DEV__&&_w.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&_w.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="no-cache"===r?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&pO.call(e,"variables")){var i=Vk(this.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||!1!==globalThis.__DEV__&&_w.warn(28,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!MS(this.options.variables,e)&&(n.variables=this.options.variables=ew(ew({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,eO.refetch)},t.prototype.fetchMore=function(e){var t=this,n=ew(ew({},e.query?e:ew(ew(ew(ew({},this.options),{query:this.options.query}),e),{variables:ew(ew({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=eO.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set,s=null==e?void 0:e.updateQuery,c="no-cache"!==this.options.fetchPolicy;return c||_w(s,29),this.queryManager.fetchQuery(r,n,eO.fetchMore).then(function(l){if(t.queryManager.removeQuery(r),i.networkStatus===eO.fetchMore&&(i.networkStatus=o),c)t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:l.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:l.data})},onWatchUpdated:function(e){a.add(e.query)}});else{var u=t.getLast("result"),d=s(u.data,{fetchMoreResult:l.data,variables:n.variables});t.reportResult(ew(ew({},u),{networkStatus:o,loading:nO(o),data:d}),t.variables)}return t.maskResult(l)}).finally(function(){c&&!a.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,ew({subscriptionData:n},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&_w.error(30,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return!1!==globalThis.__DEV__&&(jT(e,"canonizeResults","setOptions"),$T("setOptions",function(){!1!==globalThis.__DEV__&&_w.warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=rO(this.options,e||{});dO(this.options,t)},t.prototype.setVariables=function(e){var t=this;return MS(this.variables,e)?this.observers.size?PT("observableQuery.result",function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},eO.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,i=n.complete,o=e(r,{variables:this.variables,complete:!!i,previousData:r});o&&(t.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){var r=this._getOrCreateQuery();return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n&&this.hasObservers()){if(!t||t.interval!==n){_w(n,32),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&(nO(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},eO.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){var n=this;void 0===t&&(t=this.variables);var r=PT("getLastError",function(){return n.getLastError()});return r&&this.last&&!MS(t,this.last.variables)&&(r=void 0),this.last=ew({result:this.queryManager.assumeImmutableResults?e:oO(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===eO.refetch||t===eO.fetchMore||t===eO.poll,i=this.options.variables,o=this.options.fetchPolicy,a=rO(this.options,e||{}),s=r?a:dO(this.options,a),c=this.transformDocument(s.query);this.lastQuery=c,r||(this.updatePolling(),!e||!e.variables||MS(e.variables,i)||"standby"===s.fetchPolicy||s.fetchPolicy!==o&&"function"!=typeof s.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=eO.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=gO(s.fetchPolicy));var l=function(){n.concast===p&&(n.waitForOwnResult=!1)},u=s.variables&&ew({},s.variables),d=this.fetch(s,t,c),p=d.concast,f=d.fromLink,h={next:function(e){MS(n.variables,u)&&(l(),n.reportResult(e,u))},error:function(e){MS(n.variables,u)&&(nS(e)||(e=new rS({networkError:e})),l(),n.reportError(e,u))}};return r||!f&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=h),p.addObserver(h),p},t.prototype.reobserve=function(e,t){return(n=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),n;var n},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.last;PT("resetLastResults",function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=r,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this,r=PT("getLastError",function(){return n.getLastError()}),i=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||i)&&XS(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var n=this,r=ew(ew({},PT("getLastResult",function(){return n.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:eO.error,loading:!1});this.updateLastResult(r,t),XS(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?ew(ew({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"!=this.options.fetchPolicy&&"cache-and-network"!=this.options.fetchPolicy&&nO(this.queryInfo.networkStatus)||(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst())),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,r){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,r):t}}):this.reobserve()},t.inactiveOnCreation=new nT,t}(Hw);function hO(e){!1!==globalThis.__DEV__&&_w.error(33,e.message,e.stack)}function mO(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&_w.debug(34,e)}function gO(e){return"network-only"===e||"no-cache"===e||"standby"===e}JS(fO);var vO=new(KT?WeakMap:Map);function yO(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return vO.set(e,(vO.get(e)+1)%1e15),n.apply(this,arguments)})}var bO=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;vO.has(n)||(vO.set(n,0),yO(n,"evict"),yO(n,"modify"),yO(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||eO.loading;return this.variables&&this.networkStatus!==eO.loading&&!MS(this.variables,e.variables)&&(t=eO.setVariables),MS(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&MS(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=PT("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&PT("getLastError",function(){var e;return null===(e=n.observableQuery)||void 0===e?void 0:e.getLastError()})||(this.updateLastDiff(e),MS(r&&r.result,e&&e.result)||null===(t=this.observableQuery)||void 0===t||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=ew(ew({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&MS(r,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===vO.get(this.cache)&&MS(t,n.variables)&&MS(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i,o=this,a=new uS,s=oS(e.errors)?e.errors.slice(0):[];if(null===(i=this.observableQuery)||void 0===i||i.resetNotifications(),"incremental"in e&&oS(e.incremental)){var c=fS(this.getDiff().result,e);e.data=c}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=a.merge(l.result,e.data)}this.graphQLErrors=s,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(EO(e,n.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,n.variables))i.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:e,variables:n.variables,dmCount:vO.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(e.data=o.lastDiff.diff.result);var a=o.getDiffOptions(n.variables),s=PT("canonizeResults",function(){return i.diff(a)});!o.stopped&&MS(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=eO.ready},e.prototype.markError=function(e){var t;return this.networkStatus=eO.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function EO(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!WS(e);return!r&&n&&e.data&&(r=!0),r}function _O(e){return!1!==globalThis.__DEV__&&(t=e,(n=new Set([t])).forEach(function(e){Kw(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(t){Kw(e[t])&&n.add(e[t])})})),e;var t,n}var wO=KT?WeakMap:Map,kO=WT?WeakSet:Set,TO=new nT,SO=!1;function OO(){SO||(SO=!0,!1!==globalThis.__DEV__&&_w.warn(64))}function CO(e,t,n){return TO.withValue(!0,function(){var r=xO(e,t,n,!1);return Object.isFrozen(e)&&_O(r),r})}function xO(e,t,n,r,i){var o,a=n.knownChanged,s=function(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(var c=0,l=Array.from(e.entries());c<l.length;c++){var u=l[c],d=u[0],p=u[1];if(null!==p){var f=xO(p,t,n,r,!1!==globalThis.__DEV__?"".concat(i||"","[").concat(d,"]"):void 0);a.has(f)&&a.add(s),s[d]=f}else s[d]=null}return a.has(s)?s:e}for(var h=0,m=t.selections;h<m.length;h++){var g=m[h],v=void 0;if(r&&a.add(s),g.kind===pE.Kind.FIELD){var y=Lk(g),b=g.selectionSet;if(void 0===(v=s[y]||e[y]))continue;b&&null!==v&&(f=xO(e[y],b,n,r,!1!==globalThis.__DEV__?"".concat(i||"",".").concat(y):void 0),a.has(f)&&(v=f)),!1===globalThis.__DEV__&&(s[y]=v),!1!==globalThis.__DEV__&&(r&&"__typename"!==y&&!(null===(o=Object.getOwnPropertyDescriptor(s,y))||void 0===o?void 0:o.value)?Object.defineProperty(s,y,NO(y,v,i||"",n.operationName,n.operationType)):(delete s[y],s[y]=v))}if(g.kind!==pE.Kind.INLINE_FRAGMENT||g.typeCondition&&!n.cache.fragmentMatches(g,e.__typename)||(v=xO(e,g.selectionSet,n,r,i)),g.kind===pE.Kind.FRAGMENT_SPREAD){var E=g.name.value,_=n.fragmentMap[E]||(n.fragmentMap[E]=n.cache.lookupFragment(E));_w(_,59,E);var w=QT(g);"mask"!==w&&(v=xO(e,_.selectionSet,n,"migrate"===w,i))}a.has(v)&&a.add(s)}return"__typename"in e&&!("__typename"in s)&&(s.__typename=e.__typename),Object.keys(s).length!==Object.keys(e).length&&a.add(s),a.has(s)?s:e}function NO(e,t,n,r,i){var o=function(){return TO.getValue()||(!1!==globalThis.__DEV__&&_w.warn(60,r?"".concat(i," '").concat(r,"'"):"anonymous ".concat(i),"".concat(n,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}function IO(e,t,n,r){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&OO(),e;var i=t.definitions.filter(function(e){return e.kind===pE.Kind.FRAGMENT_DEFINITION});void 0===r&&(_w(1===i.length,61,i.length),r=i[0].name.value);var o=i.find(function(e){return e.name.value===r});return _w(!!o,62,r),null==e||qS(e,{})?e:CO(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:Yw(qk(t)),cache:n,mutableTargets:new wO,knownChanged:new kO})}var AO=Object.prototype.hasOwnProperty,DO=Object.create(null),RO=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ck(dk["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Wk(!1),this.noCacheWarningsByQueryId=new Set;var n=new HS(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(ww(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return nw(this,arguments,void 0,function(e){var t,n,r,i,o,a,s,c=e.mutation,l=e.variables,u=e.optimisticResponse,d=e.updateQueries,p=e.refetchQueries,f=void 0===p?[]:p,h=e.awaitRefetchQueries,m=void 0!==h&&h,g=e.update,v=e.onQueryUpdated,y=e.fetchPolicy,b=void 0===y?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":y,E=e.errorPolicy,_=void 0===E?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":E,w=e.keepRootFields,k=e.context;return rw(this,function(e){switch(e.label){case 0:return _w(c,36),_w("network-only"===b||"no-cache"===b,37),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),n=this.getDocumentInfo(c).hasClientExports,l=this.getVariables(c,l),n?[4,this.localState.addExportedVariables(c,l,k)]:[3,2];case 1:l=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:l,loading:!0,error:null}),i=u&&this.markMutationOptimistic(u,{mutationId:t,document:c,variables:l,fetchPolicy:b,errorPolicy:_,context:k,updateQueries:d,update:g,keepRootFields:w}),this.broadcastQueries(),o=this,[2,new Promise(function(e,n){return KS(o.getObservableFromLink(c,ew(ew({},k),{optimisticResponse:i?u:void 0}),l,{},!1),function(e){if(WS(e)&&"none"===_)throw new rS({graphQLErrors:YS(e)});r&&(r.loading=!1,r.error=null);var n=ew({},e);return"function"==typeof f&&(f=f(n)),"ignore"===_&&WS(n)&&delete n.errors,o.markMutationResult({mutationId:t,result:n,document:c,variables:l,fetchPolicy:b,errorPolicy:_,context:k,update:g,updateQueries:d,awaitRefetchQueries:m,refetchQueries:f,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:w})}).subscribe({next:function(n){o.broadcastQueries(),"hasNext"in n&&!1!==n.hasNext||e(ew(ew({},n),{data:o.maskOperation({document:c,data:n.data,fetchPolicy:b,id:t})}))},error:function(e){r&&(r.loading=!1,r.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),n(e instanceof rS?e:new rS({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&EO(r,e.errorPolicy)){if(dS(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),dS(r)&&oS(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=fS(a.result,r)),void 0!==s&&(r.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&AO.call(c,s)){var l=c[s],u=n.queries.get(o),d=u.document,p=u.variables,f=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=l(h,{mutationResult:r,queryName:d&&Mk(d)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,c=!(dS(a=r)||function(e){return"hasNext"in e&&"data"in e}(a))||dS(r)&&!r.hasNext;if(s){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(r=ew(ew({},r),{data:l.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}c&&s(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables,{IGNORE:DO}):e;return r!==DO&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(ew(ew({},t),{result:{data:r}}),e)}catch(e){!1!==globalThis.__DEV__&&_w.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:GT(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:BT(["nonreactive"],e),nonReactiveQuery:IS(e),clientQuery:this.localState.clientQuery(e),serverQuery:OS([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:Gk(Fk(e)),asQuery:ew(ew({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?ew(ew({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return ew(ew({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=ew(ew({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new bO(this),r=new fO({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,fO.inactiveOnCreation.getValue()||this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),_w(e.query,38),_w("Document"===e.query.kind,39),_w(!e.returnPartialData,40),_w(!e.pollInterval,41);var r=this.transform(e.query);return this.fetchQuery(t,ew(ew({},e),{query:r})).then(function(i){return i&&ew(ew({},i),{data:n.maskOperation({document:r,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(ww(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=eO.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)r.set(e,e),i.set(e,!1);else if(Kw(a=e)&&"Document"===a.kind&&Array.isArray(a.definitions)){var n=yS(t.transform(e));r.set(n,Mk(e)),i.set(n,!1)}else Kw(e)&&e.query&&o.add(e);var a}),this.queries.forEach(function(t,r){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(r,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&i.has(s)||a&&i.has(yS(a)))&&(n.set(r,o),s&&i.set(s,!0),a&&i.set(yS(a),!0))}}),o.size&&o.forEach(function(e){var r=yw("legacyOneTimeQuery"),i=t.getOrCreateQuery(r).init({document:e.query,variables:e.variables}),o=new fO({queryManager:t,queryInfo:i,options:ew(ew({},e),{fetchPolicy:"network-only"})});_w(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(e,t){if(!e){var n=r.get(t);n?!1!==globalThis.__DEV__&&_w.warn(43,n):!1!==globalThis.__DEV__&&_w.warn(44)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;PT("resetLastResults",function(){return r.resetLastResults()}),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),(t.queries.get(i)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,c=void 0===s?{}:s,l=e.extensions,u=void 0===l?{}:l;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,c,e,u).map(function(r){"no-cache"!==i&&(EO(r,a)&&t.cache.write({query:n,result:r.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=WS(r),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[tS])}(r);if(o||s){var c={};if(o&&(c.graphQLErrors=r.errors),s&&(c.protocolErrors=r.extensions[tS]),"none"===a||s)throw new rS(c)}return"ignore"===a&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var p=this.localState.addExportedVariables(n,r,c).then(d);return new Hw(function(e){var t=null;return p.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r,i){var o,a,s=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,u=c.clientQuery;if(l){var d=this.inFlightLinkObservables,p=this.link,f={query:l,variables:n,operationName:Mk(l)||void 0,context:this.prepareContext(ew(ew({},t),{forceFetch:!i})),extensions:r};if(t=f.context,i){var h=yS(l),m=Tk(n),g=d.lookup(h,m);if(!(a=g.observable)){var v=new tO([LS(p,f)]);a=g.observable=v,v.beforeNext(function e(t,n){"next"===t&&"hasNext"in n&&n.hasNext?v.beforeNext(e):d.remove(h,m)})}}else a=new tO([LS(p,f)])}else a=new tO([Hw.of({data:{}})]),t=this.prepareContext(t);return u&&(a=KS(a,function(e){return s.localState.runResolvers({document:u,remoteResult:e,context:t,variables:n})})),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return KS(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=YS(o),s=a.length>0,c=n.errorPolicy;if(r>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new rS({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:eO.ready};return s&&"none"===c&&(l.data=void 0),s&&"ignore"!==c&&(l.errors=a,l.networkStatus=eO.error),l},function(t){var n=nS(t)?t:new rS({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;void 0===n&&(n=eO.loading),void 0===r&&(r=t.query);var o,a,s=this.getVariables(r,t.variables),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,u=void 0===l?c&&c.fetchPolicy||"cache-first":l,d=t.errorPolicy,p=void 0===d?c&&c.errorPolicy||"none":d,f=t.returnPartialData,h=void 0!==f&&f,m=t.notifyOnNetworkStatusChange,g=void 0!==m&&m,v=t.context,y=void 0===v?{}:v,b=Object.assign({},t,{query:r,variables:s,fetchPolicy:u,errorPolicy:p,returnPartialData:h,notifyOnNetworkStatusChange:g,context:y}),E=function(r){b.variables=r;var o=i.fetchQueryByPolicy(e,b,n);return"standby"!==b.fetchPolicy&&o.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),o},_=function(){return i.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){_(),setTimeout(function(){return o.cancel(e)})}),this.getDocumentInfo(b.query).hasClientExports)o=new tO(this.localState.addExportedVariables(b.query,b.variables,b.context).then(E).then(function(e){return e.sources})),a=!0;else{var w=E(b.variables);a=w.fromLink,o=new tO(w.sources)}return o.promise.then(_,_),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?yw("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof bO&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;c&&(a||(a=PT("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),r=c(i,a,o)),c&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t,n,r,i=e.document,o=e.data;if(!1!==globalThis.__DEV__){var a=e.fetchPolicy,s=e.id,c=null===(t=Fk(i))||void 0===t?void 0:t.operation,l=(null!==(n=null==c?void 0:c[0])&&void 0!==n?n:"o")+s;!this.dataMasking||"no-cache"!==a||function(e){var t=!0;return(0,pE.visit)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return pE.BREAK}}),t}(i)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&_w.warn(45,null!==(r=Mk(i))&&void 0!==r?r:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,n){var r;if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&OO(),e;var i=Fk(t);return _w(i,63),null==e?e:CO(e,i.selectionSet,{operationType:i.operation,operationName:null===(r=i.name)||void 0===r?void 0:r.value,fragmentMap:Yw(qk(t)),cache:n,mutableTargets:new wO,knownChanged:new kO})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?IO(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var f=function(){return e.getDiff()},h=function(t,n){void 0===n&&(n=e.networkStatus||eO.loading);var a=t.result;!1===globalThis.__DEV__||l||MS(a,{})||mO(t.missing);var s=function(e){return Hw.of(ew({data:e,loading:nO(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===c&&n===eO.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:n===eO.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{query:i,variables:o,context:u,fetchPolicy:a,errorPolicy:c})},v=d&&"number"==typeof p&&p!==n&&nO(n);switch(a){default:case"cache-first":return(y=f()).complete?{fromLink:!1,sources:[h(y,e.markReady())]}:l||v?{fromLink:!0,sources:[h(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var y;return(y=f()).complete||l||v?{fromLink:!0,sources:[h(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[h(f(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[h(f()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return v?{fromLink:!0,sources:[h(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new bO(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return ew(ew(ew({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),LO=new nT,PO=new WeakMap;function jO(e){var t=PO.get(e);return t||PO.set(e,t={vars:new Set,dep:CT()}),t}function $O(e){jO(e).vars.forEach(function(t){return t.forgetCache(e)})}function FO(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){jO(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var a=Array.from(n);n.clear(),a.forEach(function(t){return t(e)})}}else{var s=LO.getValue();s&&(i(s),jO(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),jO(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var MO=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=sS(t.resolvers,e)}):this.resolvers=sS(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return nw(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return rw(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return ew(ew({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return BT(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return NS(e)},e.prototype.prepareContext=function(e){var t=this.cache;return ew(ew({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return nw(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),rw(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return ew(ew({},t),e.exportedVariables)})]:[2,ew({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,pE.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return pE.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:xS(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return nw(this,arguments,void 0,function(e,t,n,r,i,o){var a,s,c,l,u,d,p,f,h,m;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),rw(this,function(g){return a=Bk(e),s=qk(e),c=Yw(s),l=this.collectSelectionsToResolve(a,c),u=a.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",f=(p=this).cache,h=p.client,m={fragmentMap:c,context:ew(ew({},n),{cache:f,client:h}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return nw(this,void 0,void 0,function(){var i,o,a,s,c,l=this;return rw(this,function(u){return i=r.fragmentMap,o=r.context,a=r.variables,s=[n],c=function(e){return nw(l,void 0,void 0,function(){var c,l;return rw(this,function(u){return(t||r.selectionsToResolve.has(e))&&zT(e,a)?jk(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;void 0!==t&&s.push(((n={})[Lk(e)]=t,n))})]:(function(e){return"InlineFragment"===e.kind}(e)?c=e:(c=i[e.name.value],_w(c,21,e.name.value)),c&&c.typeCondition&&(l=c.typeCondition.name.value,r.fragmentMatcher(n,l,o))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return cS(s)})]})})},e.prototype.resolveField=function(e,t,n,r){return nw(this,void 0,void 0,function(){var i,o,a,s,c,l,u,d,p,f=this;return rw(this,function(h){return n?(i=r.variables,o=e.name.value,a=Lk(e),s=o!==a,c=n[a]||n[o],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(p=d[s?o:a])&&(l=Promise.resolve(LO.withValue(this.cache,p,[n,Rk(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then(function(n){var i,o;if(void 0===n&&(n=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet)return n;if(null==n)return n;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?f.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),(0,pE.visit)(i,{Directive:function(e,t,__,r,i){"client"===e.name.value&&i.forEach(function(e){n(e)&&(0,pE.isSelectionNode)(e)&&o.add(e)})},FragmentSpread:function(r,i,__,a,s){var c=t[r.name.value];_w(c,22,r.name.value);var l=e(c);l.size>0&&(s.forEach(function(e){n(e)&&(0,pE.isSelectionNode)(e)&&o.add(e)}),o.add(r),l.forEach(function(e){o.add(e)}))}})}return r.get(i)}(e)},e}();function qO(e,t){return rO(e,t,t.variables&&{variables:rO(ew(ew({},e&&e.variables),t.variables))})}var VO=!1,zO=function(){function e(e){var t,n,r,i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw ww(16);var o=e.uri,a=e.credentials,s=e.headers,c=e.cache,l=e.documentTransform,u=e.ssrMode,d=void 0!==u&&u,p=e.ssrForceFetchDelay,f=void 0===p?0:p,h=e.connectToDevTools,m=e.queryDeduplication,g=void 0===m||m,v=e.defaultOptions,y=e.defaultContext,b=e.assumeImmutableResults,E=void 0===b?c.assumeImmutableResults:b,_=e.resolvers,w=e.typeDefs,k=e.fragmentMatcher,T=e.clientAwareness,S=e.name,O=e.version,C=e.devtools,x=e.dataMasking;!1!==globalThis.__DEV__&&(jT(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),jT(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),jT(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),jT(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),jT(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),jT(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),jT(e,"typeDefs","ApolloClient"),e.link||!1!==globalThis.__DEV__&&_w.warn(17));var N=e.link;N||(N=o?new RS({uri:o,credentials:a,headers:s}):VT.empty()),this.link=N,this.cache=c,this.disableNetworkFetches=d||f>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=w,this.devtoolsConfig=ew(ew({},C),{enabled:null!==(t=null==C?void 0:C.enabled)&&void 0!==t?t:h}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),f&&setTimeout(function(){return i.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=hw,this.localState=new MO({cache:c,client:this,resolvers:_,fragmentMatcher:k}),this.queryManager=new RO({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:y,documentTransform:l,queryDeduplication:g,ssrMode:d,dataMasking:!!x,clientAwareness:{name:null!==(n=null==T?void 0:T.name)&&void 0!==n?n:S,version:null!==(r=null==T?void 0:T.version)&&void 0!==r?r:O},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,VO||!1===globalThis.__DEV__||(VO=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&_w.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=qO(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=ew(ew({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&(jT(e,"canonizeResults","client.watchQuery"),jT(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=qO(this.defaultOptions.query,e)),_w("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=ew(ew({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&(jT(e,"canonizeResults","client.query"),jT(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&_w.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=qO(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(r){return ew(ew({},r),{data:t.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(ew(ew({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return LS(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){!1!==globalThis.__DEV__&&_w.debug(20,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(zO.prototype.getMemoryInternals=hk);var BO=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=AT(Ww,{max:dk["cache.fragmentQueryDocuments"]||1e3,cache:rk})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var n=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&jT(e,"canonizeResults","cache.readQuery"),PT("canonizeResults",function(){return n.read(ew(ew({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t=this,n=e.fragment,r=e.fragmentName,i=e.from,o=e.optimistic,a=void 0===o||o,s=tw(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(n,r),l=void 0===i||"string"==typeof i?i:this.identify(i),u=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var d=r||zk(n).name.value;l||!1!==globalThis.__DEV__&&_w.warn(1,d)}var p,f=ew(ew({},s),{returnPartialData:!0,id:l,query:c,optimistic:a});return new Hw(function(i){return t.watch(ew(ew({},f),{immediate:!0,callback:function(o){var a=u?IO(o.result,n,t,r):o.result;if(!p||!sO(c,{data:p.result},{data:a},e.variables)){var s={data:a,complete:!!o.complete};o.missing&&(s.missing=cS(o.missing.map(function(e){return e.missing}))),p=ew(ew({},o),{result:a}),i.next(s)}}}))})},e.prototype.readFragment=function(e,t){var n=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&jT(e,"canonizeResults","cache.readFragment"),PT("canonizeResults",function(){return n.read(ew(ew({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=tw(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=tw(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&jT(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(n){var r=PT("canonizeResults",function(){return n.readQuery(e)}),i=t(r);return null==i?r:(n.writeQuery(ew(ew({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&jT(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(n){var r=PT("canonizeResults",function(){return n.readFragment(e)}),i=t(r);return null==i?r:(n.writeFragment(ew(ew({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(BO.prototype.getMemoryInternals=gk);var GO=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return Z_(t,e),t}(Error),QO=Object.prototype.hasOwnProperty;function UO(e){return null==e}function HO(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=UO(r)?UO(i)?void 0:{_id:i}:{id:r}),UO(r)&&!UO(i)&&(r=i),!UO(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var KO={dataIdFromObject:HO,addTypename:!0,resultCaching:!0,canonizeResults:!1};function WO(e){var t=e.canonizeResults;return void 0===t?KO.canonizeResults:t}var YO=/^[_a-z][_0-9a-z]*/i;function XO(e){var t=e.match(YO);return t?t[0]:e}function JO(e,t,n){return!!Kw(t)&&(iS(t)?t.every(function(t){return JO(e,t,n)}):e.selections.every(function(e){if(jk(e)&&zT(e,n)){var r=Lk(e);return QO.call(t,r)&&(!e.selectionSet||JO(e.selectionSet,t[r],n))}return!0}))}function ZO(e){return Kw(e)&&!xk(e)&&!iS(e)}function eC(e,t){var n=Yw(qk(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var tC=Object.create(null),nC=function(){return tC},rC=Object.create(null),iC=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return _O(xk(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return xk(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Ck(e);if(xk(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Ck(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return ew({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),QO.call(this.data,e)){var n=this.data[e];if(n&&QO.call(n,t))return n[t]}return"__typename"===t&&QO.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof cC?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),QO.call(this.data,e)?this.data[e]:this instanceof cC?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;xk(e)&&(e=e.__ref),xk(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){_w("string"==typeof n,2);var a=new uS(uC).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=XO(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof cC||delete a[e]}}),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:tC,INVALIDATE:rC,isReference:xk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Ck(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(c){var l=XO(c),u=r[c];if(void 0!==u){var d="function"==typeof t?t:t[c]||t[l];if(d){var p=d===nC?tC:d(_O(u),ew(ew({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(p===rC)n.group.dirty(e,c);else if(p===tC&&(p=void 0),p!==u&&(i[c]=p,o=!0,u=p,!1!==globalThis.__DEV__)){var f=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&_w.warn(3,e),!0};if(xk(p))f(p);else if(Array.isArray(p))for(var h=!1,m=void 0,g=0,v=p;g<v.length;g++){var y=v[g];if(xk(y)){if(h=!0,f(y))break}else"object"==typeof y&&y&&n.policies.identify(y)[0]&&(m=y);if(h&&void 0!==m){!1!==globalThis.__DEV__&&_w.warn(4,m);break}}}}void 0!==u&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof cC?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=nC,r):nC)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(QO.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof cC&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){QO.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&QO.call(e,n)||t.delete(n)}),e){var n=e.__META,r=tw(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof cC?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){QO.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof cC;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!QO.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){xk(e)&&(t[e.__ref]=!0),Kw(e)&&Object.keys(e).forEach(function(t){var n=e[t];Kw(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),oC=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?CT():null,this.keyMaker=new Wk(KT)},e.prototype.depend=function(e,t){if(this.d){this.d(aC(e,t));var n=XO(t);n!==t&&this.d(aC(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(aC(e,t),"__exists"===t?"forget":"setDirty")},e}();function aC(e,t){return t+"#"+e}function sC(e,t){dC(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new oC(i))||this;return a.stump=new lC(a),a.storageTrie=new Wk(KT),o&&a.replace(o),a}return Z_(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(iC||(iC={}));var cC=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return Z_(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){MS(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return ew(ew({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return QO.call(this.data,t)?ew(ew({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(iC),lC=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new oC(t.group.caching,t.group))||this}return Z_(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(cC);function uC(e,t,n){var r=e[n],i=t[n];return MS(r,i)?r:i}function dC(e){return!!(e instanceof iC&&e.group.caching)}var pC=function(){function e(){this.known=new(WT?WeakSet:Set),this.pool=new Wk(KT),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Kw(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Kw(e)){var t=function(e){return Kw(e)?iS(e)?e.slice(0):ew({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Kw(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach(function(n){o.push(t.admit(e[n]))}),!(s=this.pool.lookupArray(o)).object){var l=s.object=Object.create(i);this.known.add(l),a.sorted.forEach(function(e,t){l[e]=o[c+t]}),!1!==globalThis.__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function fC(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var hC=function(){function e(e){var t=this;this.knownResults=new(KT?WeakMap:Map),this.config=rO(e,{addTypename:!1!==e.addTypename,canonizeResults:WO(e)}),this.canon=e.canon||new pC,this.executeSelectionSet=AT(function(e){var n,r=e.context.canonizeResults,i=fC(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?ew(ew({},o),{result:t.canon.admit(o.result)}):o:(sC(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||dk["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:fC,makeCacheKey:function(e,t,n,r){if(dC(n.store))return n.store.makeCacheKey(e,xk(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=AT(function(e){return sC(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||dk["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(dC(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new pC},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=ew(ew({},Gk(Vk(n))),o);var d,p=Ck(i),f=this.executeSelectionSet({selectionSet:Bk(n).selectionSet,objectOrReference:p,enclosingRef:p,context:ew({store:t,query:n,policies:u,variables:o,varString:Tk(o),canonizeResults:l},eC(n,this.config.fragments))});if(f.missing&&(d=[new GO(mC(f.missing),f.missing,n,o)],!s))throw d[0];return{result:f.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(dC(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(xk(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,c=o.policies,l=o.store.getFieldValue(r,"__typename"),u=[],d=new uS;function p(e,t){var n;return e.missing&&(a=d.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&u.push({__typename:l});var f=new Set(n.selections);f.forEach(function(e){var n,h;if(zT(e,s))if(jk(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),g=Lk(e);void 0===m?CS.added(e)||(a=d.merge(a,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(xk(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):iS(m)?m.length>0&&(m=p(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:o}),g)):e.selectionSet?null!=m&&(m=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:xk(m)?m:i,context:o}),g)):o.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&u.push(((h={})[g]=m,h))}else{var v=Xw(e,o.lookupFragment);if(!v&&e.kind===pE.Kind.FRAGMENT_SPREAD)throw ww(10,e.name.value);v&&c.fragmentMatches(v,l)&&v.selectionSet.selections.forEach(f.add,f)}});var h={result:cS(u),missing:a},m=o.canonizeResults?this.canon.admit(h):_O(h);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new uS;function c(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:iS(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:xk(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){Kw(n)&&(_w(!xk(n),11,function(e,t){return xk(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function mC(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}var gC=Object.create(null);function vC(e){var t=JSON.stringify(e);return gC[t]||(gC[t]=Object.create(null))}function yC(e){var t=vC(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=EC(e,function(e){var i=kC(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&QO.call(t,e[0])&&(i=kC(t,e,wC)),_w(void 0!==i,5,e.join("."),t),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function bC(e){var t=vC(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=EC(e,function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return kC(t,e)}else{var a=n.slice(1);if(i&&QO.call(i,a)){var s=e.slice(0);return s[0]=a,kC(i,s)}}else if(r&&oS(r.directives)){var c=n.slice(1),l=r.directives.find(function(e){return e.name.value===c}),u=l&&Rk(l,i);return u&&kC(u,e.slice(1))}}),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function EC(e,t){var n=new uS;return _C(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function _C(e){var t=vC(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(t,i){iS(t)?(_C(t).forEach(function(e){return n.push(r.concat(e))}),r.length=0):(r.push(t),iS(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function wC(e,t){return e[t]}function kC(e,t,n){return n=n||wC,TC(t.reduce(function e(t,r){return iS(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function TC(e){return Kw(e)?iS(e)?e.map(TC):EC(Object.keys(e).sort(),function(t){return kC(e,t)}):e}function SC(e){return void 0!==e.args?e.args:e.field?Rk(e.field,e.variables):null}var OC=function(){},CC=function(e,t){return t.fieldName},xC=function(e,t,n){return(0,n.mergeObjects)(e,t)},NC=function(e,t){return t},IC=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ew({dataIdFromObject:HO},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o,a=t&&t.storeObject||e,s=ew(ew({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=DC(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),l=c&&c.keyFn||this.config.dataIdFromObject;return TO.withValue(!0,function(){for(;l;){var t=l(ew(ew({},e),a),s);if(!iS(t)){o=t;break}l=yC(t)}}),o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=tw(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),QO.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]})},e.prototype.updateTypePolicy=function(e,t,n){var r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?xC:!1===t?NC:e.merge}a(r,t.merge),r.keyFn=!1===i?OC:iS(i)?yC(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n[t];r&&(null==r?void 0:r.typename)===e||(r=n[t]={typename:e});var i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=!1===s?CC:iS(s)?bC(s):"function"==typeof s?s:r.keyFn,"function"==typeof c&&(r.read=c),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||CC)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(_w(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(YO);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!QO.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return r.add(e)})}})),r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields,o=tw(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var p=s[d];if(p.has(o))return a.has(o)||(u&&!1!==globalThis.__DEV__&&_w.warn(7,t,o),a.add(o)),!0;p.forEach(c),l&&d===s.length-1&&JO(e.selectionSet,n,r)&&(l=!1,u=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=SC(e);o;){var c=o(s,a);if(!iS(c)){t=c||r;break}o=bC(c)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return Nk(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return Nk(r,n,i,t)})),Dk(e.name.value,r,n)}(e.field,e.variables):Dk(r,SC(e))),!1===t?r:r===XO(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=XO(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o),c=s&&s.read;if(c){var l=AC(this,n,e,t,t.store.getStorage(xk(n)?n.__ref:n,i));return LO.withValue(this.cache,c,[a,l])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===xC?RC(r.store)(e,t):s===NC?t:(r.overwrite&&(e=void 0),s(e,t,AC(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function AC(e,t,n,r,i){var o=e.getStoreFieldName(n),a=XO(o),s=n.variables||r.variables,c=r.store,l=c.toReference,u=c.canRead;return{args:SC(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:xk,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(DC(arguments,t,s),r)},mergeObjects:RC(r.store)}}function DC(e,t,n){var r,i=e[0],o=e[1],a=e.length;return"string"==typeof i?r={fieldName:i,from:a>1?o:t}:(r=ew({},i),QO.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&_w.warn(8,bw(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function RC(e){return function(t,n){if(iS(t)||iS(n))throw ww(9);if(Kw(t)&&Kw(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(xk(t)&&ZO(n))return e.merge(t.__ref,n),t;if(ZO(t)&&xk(n))return e.merge(t,n.__ref),n;if(ZO(t)&&ZO(n))return ew(ew({},t),n)}return n}}function LC(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:ew(ew({},e),{clientOnly:t,deferred:n})),i}var PC=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=Fk(r),l=new uS;a=ew(ew({},Gk(c)),a);var u=ew(ew({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:Tk(a)},eC(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!xk(d))throw ww(12,i);return u.incomingById.forEach(function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=Ck(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,u);if(xk(c))return;i=c}if(!1!==globalThis.__DEV__&&!u.overwrite){var l=Object.create(null);a.forEach(function(e){e.selectionSet&&(l[e.name.value]=!0)}),Object.keys(i).forEach(function(e){(function(e){return!0===l[XO(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!xk(o)&&!MS(o,a)&&!Object.keys(o).every(function(e){return void 0!==r.getFieldValue(a,e)})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=XO(n),l="".concat(s,".").concat(c);if(!VC.has(l)){VC.add(l);var u=[];iS(o)||iS(a)||[o,a].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)}),!1!==globalThis.__DEV__&&_w.warn(15,c,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,ew({},o),ew({},a))}}}}(s,i,e,u.store)})}e.merge(r,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||Pk(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof l&&(c.__typename=l);var u=function(){var e=DC(arguments,c,o.variables);if(xk(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(ew(ew({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},d=new Set;this.flattenFields(i,r,o,l).forEach(function(e,n){var i,o=Lk(n),p=r[o];if(d.add(n),void 0!==p){var f=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),h=$C(a,f),m=t.processFieldValue(p,n,n.selectionSet?LC(e,!1,!1):e,h),g=void 0;n.selectionSet&&(xk(m)||ZO(m))&&(g=u("__typename",m));var v=s.getMergeFunction(l,n.name.value,g);v?h.info={field:n,typename:l,merge:v}:qC(a,f),c=e.merge(c,((i={})[f]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||CS.added(n)||s.getReadFunction(l,n.name.value)||!1!==globalThis.__DEV__&&_w.error(13,Lk(n),r)});try{var p=s.identify(r,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),f=p[0],h=p[1];n=n||f,h&&(c=o.merge(c,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=Ck(n),g=o.written[n]||(o.written[n]=[]);if(g.indexOf(i)>=0)return m;if(g.push(i),this.reader&&this.reader.isFresh(r,m,i,o))return m;var v=o.incomingById.get(n);return v?(v.storeObject=o.merge(v.storeObject,c),v.mergeTree=FC(v.mergeTree,a),d.forEach(function(e){return v.fieldNodeSet.add(e)})):o.incomingById.set(n,{storeObject:c,mergeTree:MC(a)?void 0:a,fieldNodeSet:d}),m}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?iS(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,$C(r,o));return qC(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?oO(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=Pk(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new Wk(!1);return function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(a){if(zT(a,n.variables)){var s=c.clientOnly,l=c.deferred;if(s&&l||!oS(a.directives)||a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=Rk(e,n.variables);r&&!1===r.if||(l=!0)}}),jk(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(a,LC(n,s,l))}else{var d=Xw(a,n.lookupFragment);if(!d&&a.kind===pE.Kind.FRAGMENT_SPREAD)throw ww(14,a.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,LC(n,s,l))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!xk(n)){var s,c=iS(n)||!xk(t)&&!ZO(t)?void 0:t,l=n;c&&!i&&(i=[xk(c)?c.__ref:c]);var u=function(e,t){return iS(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=u(c,t),o=u(l,t);if(void 0!==o){i&&i.push(t);var d=a.applyMerges(e,n,o,r,i);d!==o&&(s=s||new Map).set(t,d),i&&_w(i.pop()===t)}}),s&&(n=iS(l)?l.slice(0):ew({},l),s.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),jC=[];function $C(e,t){var n=e.map;return n.has(t)||n.set(t,jC.pop()||{map:new Map}),n.get(t)}function FC(e,t){if(e===t||!t||MC(t))return e;if(!e||MC(e))return t;var n=e.info&&t.info?ew(ew({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach(function(e,n){i.map.set(n,FC(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,FC(t.map.get(n),e.map.get(n)))})}return i}function MC(e){return!e||!(e.info||e.map.size)}function qC(e,t){var n=e.map,r=n.get(t);r&&MC(r)&&(jC.push(r),n.delete(t))}var VC=new Set,zC=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new HS(CS),n.assumeImmutableResults=!0,n.makeVar=FO,n.txCount=0,!1!==globalThis.__DEV__&&(jT(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),jT(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),n.config=function(e){return rO(KO,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new IC({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Z_(t,e),t.prototype.init=function(){var e=this.data=new iC.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.addTypenameTransform.resetCache(),null==r||r.resetCaches(),this.storeWriter=new PC(this,this.storeReader=new hC({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:WO(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=AT(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||dk["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(dC(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,Tk({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){!1!==globalThis.__DEV__&&jT(e,"canonizeResults","cache.read");var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(ew(ew({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof GO)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(QO.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return!1!==globalThis.__DEV__&&jT(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(ew(ew({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||jO(t=this).vars.forEach(function(e){return e.attachCache(t)}),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&$O(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&jT(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),Tk.reset(),yS.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(xk(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&_w.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(QO.call(e,"id"))return!1;e=ew(ew({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Tk.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),$O(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return s&&!this.txCount&&this.broadcastWatches(ew(ew({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches(ew(ew({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=this,r=e.lastDiff,i=PT("canonizeResults",function(){return n.diff(e)});t&&(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,i,r))||r&&MS(r.result,i.result)||e.callback(e.lastDiff=i,r)},t}(BO);!1!==globalThis.__DEV__&&(zC.prototype.getMemoryInternals=mk);var BC=n(4291);const GC=e=>{const t=(0,BC.m9)(),n=new RS({uri:e,credentials:"include",headers:t?{"X-WP-Nonce":t}:{}});return new zO({link:n,connectToDevTools:!0,cache:new zC({})})};var QC=new Map,UC=new Map,HC=!0,KC=!1;function WC(e){return e.replace(/[\s,]+/g," ").trim()}function YC(e){var t,n,r,i=WC(e);if(!QC.has(i)){var o=(0,pE.parse)(e,{experimentalFragmentVariables:KC,allowLegacyFragmentVariables:KC});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");QC.set(i,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"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=o,n=new Set,r=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=WC((a=e.loc).source.body.substring(a.start,a.end)),o=UC.get(t);o&&!o.has(i)?HC&&console.warn("Warning: fragment with name "+t+" 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"):o||UC.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a}),ew(ew({},t),{definitions:r}))))}return QC.get(i)}function XC(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]}),YC(r)}var JC,ZC=XC;(JC=XC||(XC={})).gql=ZC,JC.resetCaches=function(){QC.clear(),UC.clear()},JC.disableFragmentWarnings=function(){HC=!1},JC.enableExperimentalFragmentVariables=function(){KC=!0},JC.disableExperimentalFragmentVariables=function(){KC=!1},XC.default=XC;const ex=XC,{useAppContext:tx,GraphQL:nx}=wpGraphiQL,{getIntrospectionQuery:rx,buildClientSchema:ix}=nx,{Sider:ox}=aa,ax=rg.div`
.graphiql-app-screen-sider .ant-layout-sider-trigger {
position: relative;
}
border: 0;
width: 100%;
`,sx=e=>{const{setQueryParams:t,setCurrentScreen:n,currentScreen:i,screens:a}=e,[s,c]=(0,o.useState)(!0);return(0,r.createElement)(ox,{id:"graphiql-router-sider","data-testid":"graphiql-router-sider",className:"graphiql-app-screen-sider",collapsible:!0,defaultCollapsed:s,collapsed:s,trigger:(0,r.createElement)("span",{"data-testid":"router-menu-collapse-trigger"},s?(0,r.createElement)(xe,null):(0,r.createElement)(De,null)),onCollapse:()=>{c(!s)}},(0,r.createElement)(Ef,{theme:"dark",mode:"inline",selectedKeys:i,activeKey:i,items:(()=>{const e=[];return a&&a.map(r=>{e.push({"data-testid":`router-menu-item-${r.id}`,id:`router-menu-item-${r.id}`,key:r.id,icon:r.icon,onClick:()=>{(e=>{n(e),t({screen:e})})(r.id)},label:r.title})}),e})()}))},cx=(lx={screen:(px=$b,fx="graphiql",void 0===hx&&(hx=!0),jb(jb({},px),{decode:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=px.decode.apply(px,e);return void 0===n||hx&&null===n?fx:n}}))},dx=function(e){var t=eE(lx),n=t[0],i=t[1];return r.createElement(ux,tE({query:n,setQuery:i},e))},dx.displayName="withQueryParams("+((ux=e=>{const[t,n]=Zb({screen:$b}),{endpoint:i,schema:a,setSchema:s,setSchemaLoading:c,setSchemaError:l,urlMismatch:u}=tx(),{screen:d}=t,[p,f]=(0,o.useState)((()=>{const e=[{id:"graphiql",title:"GraphiQL",icon:(0,r.createElement)(Ee,null),render:()=>(0,r.createElement)(X_,null)},{id:"help",title:"Help",icon:(0,r.createElement)(Te,null),render:()=>(0,r.createElement)(Pb,null)}],t=ig.J.applyFilters("graphiql_router_screens",e);return!0===Array.isArray(t)?t:e})());(0,o.useEffect)(()=>{if(null!==a)return;const e=rx();c(!0),l(null),GC(i).query({query:ex`
${e}
`}).then(e=>{if(e?.errors?.length>0){const t=e.errors.map(e=>e.message).join("; ");return console.error(`GraphQL introspection errors: ${t}`),l({message:t,type:"graphql",urlMismatch:u}),void c(!1)}const t=e?.data?ix(e.data):null;t!==a&&(s(t),l(null)),c(!1)},e=>{console.error("Failure running getIntrospectionQuery:",e);let t="Failed to load schema",n="network";e?.networkError?e.networkError.result?.errors?(t=e.networkError.result.errors.map(e=>e.message).join("; "),n="auth"):e.networkError.message&&(t=e.networkError.message):e?.graphQLErrors?.length>0?(t=e.graphQLErrors.map(e=>e.message).join("; "),n="graphql"):e?.message&&(t=e.message),l({message:t,type:n,urlMismatch:u}),c(!1)})},[i,a,s,l,c,u]);const[h,m]=(0,o.useState)((()=>{const e=p&&p.find(e=>e.id===d);return e?e.id:"graphiql"})());return h?(0,r.createElement)(ax,{"data-testid":"graphiql-router"},(0,r.createElement)(aa,{style:{height:"calc(100vh - 32px)",width:"100%"}},(0,r.createElement)(sx,{setQueryParams:n,setCurrentScreen:m,currentScreen:h,screens:p}),(0,r.createElement)(aa,{className:"screen-layout",style:{background:"#fff"}},(e=>{const t=null!==(n=p.find(e=>e.id===h))&&void 0!==n?n:p[0];var n;return t?(0,r.createElement)(aa,{className:"router-screen","data-testid":`router-screen-${t.id}`},t?.render(e)):null})(e)))):null}).displayName||ux.name||"Component")+")",dx);var lx,ux,dx,px,fx,hx,mx=n(3146),gx=n.t(mx,2),vx=YT?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";var yx=function(e){var t=e.client,n=e.children,r=function(){_w("createContext"in gx,69);var e=mx.createContext[vx];return e||(Object.defineProperty(mx.createContext,vx,{value:e=mx.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}(),i=mx.useContext(r),o=mx.useMemo(function(){return ew(ew({},i),{client:t||i.client})},[i,t]);return _w(o.client,71),mx.createElement(r.Provider,{value:o},n)};const{hooks:bx,AppContextProvider:Ex,useAppContext:wx}=window.wpGraphiQL,kx=()=>{const e=wx();return bx.applyFilters("graphiql_app",(0,r.createElement)(cx,null),{appContext:e})},Tx={push:e=>{history.replaceState(null,null,e.href)},replace:e=>{history.replaceState(null,null,e.href)}},Sx=()=>{const e=bx.applyFilters("graphiql_query_params_provider_config",{query:$b,variables:$b}),[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!t){const e=document.getElementById("graphiql");e&&e.classList.remove("graphiql-container"),bx.doAction("graphiql_rendered"),n(!0)}},[t]),t?(0,r.createElement)(uE,{history:Tx},(0,r.createElement)(aE,{config:e},e=>{const{query:t,setQuery:n}=e;return(0,r.createElement)(Ex,{queryParams:t,setQueryParams:n},(0,r.createElement)(yx,{client:GC((0,BC.yP)())},(0,r.createElement)(kx,null)))})):null};document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("graphiql");e&&(o.createRoot?(0,o.createRoot)(e).render((0,r.createElement)(Sx,null)):(0,o.render)((0,r.createElement)(Sx,null),e))})},4291(e,t,n){"use strict";n.d(t,{QG:()=>u,Us:()=>s,m9:()=>l,yP:()=>c});var r=n(1609),i=n(6087),o=n(3408);const a=(0,i.createContext)(),s=()=>(0,i.useContext)(a),c=()=>{var e;return null!==(e=window?.wpGraphiQLSettings?.graphqlEndpoint)&&void 0!==e?e:null},l=()=>{var e;return null!==(e=window?.wpGraphiQLSettings?.nonce)&&void 0!==e?e:null},u=({children:e,setQueryParams:t,queryParams:n})=>{const s=c(),u=(e=>{if(!e)return null;try{const t=new URL(e),n=new URL(window.location.href);if(t.origin!==n.origin)return{currentOrigin:n.origin,endpointOrigin:t.origin}}catch{return null}return null})(s),d=(e=>{if(!e)return e;try{const t=new URL(e),n=new URL(window.location.href);return t.origin===n.origin?e:new URL(t.pathname+t.search,n.origin).toString()}catch{return e}})(s),[p,f]=(0,i.useState)(null),[h,m]=(0,i.useState)(!0),[g,v]=(0,i.useState)(null),[y,b]=(0,i.useState)(l()),[E,_]=(0,i.useState)(d),[w,k]=(0,i.useState)(n),T={endpoint:E,setEndpoint:_,nonce:y,setNonce:b,schema:p,setSchema:f,schemaLoading:h,setSchemaLoading:m,schemaError:g,setSchemaError:v,urlMismatch:u,queryParams:w,setQueryParams:e=>{k(e),t(e)}},S=o.J.applyFilters("graphiql_app_context",T);return(0,r.createElement)(a.Provider,{value:S},e)}},3408(e,t,n){"use strict";n.d(t,{J:()=>a});var r=n(9991);const i=window.wp.hooks;var o=n(4291);const a=(0,i.createHooks)();window.wpGraphiQL={GraphQL:r,hooks:a,useAppContext:o.Us,AppContextProvider:o.QG}},2833(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},c={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(2879)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return"[object RegExp]"!==i(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):c.push(t)}}),c.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},2879(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(6027).source,t.src_Cc=n(592).source,t.src_Z=n(3978).source,t.src_P=n(2828).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},2922(e,t,n){"use strict";e.exports=n(1246)},8359(e,t,n){"use strict";e.exports=n(4357)},1358(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},6557(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.l=r,e.exports.p=i},2344(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(8359),d=/[&<>"]/,p=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function h(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g,g=n(2828);t.lib={},t.lib.mdurl=n(6781),t.lib.ucmicro=n(9295),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,function(e,t,n){return t||function(e,t){var n=0;return i(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)})},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return d.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},3592(e,t,n){"use strict";t.parseLinkLabel=n(1947),t.parseLinkDestination=n(8949),t.parseLinkTitle=n(7311)},8949(e,t,n){"use strict";var r=n(2344).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t)))return s;if(60===i)return s;if(62===i)return s.pos=t+1,s.str=r(e.slice(a+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++o>32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},1947(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<c;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(s=e.pos),e.pos=l,s}},7311(e,t,n){"use strict";var r=n(2344).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return c;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return c.pos=t+1,c.lines=a,c.str=r(e.slice(s+1,t)),c.ok=!0,c;if(40===i&&41===o)return c;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return c}},1246(e,t,n){"use strict";var r=n(2344),i=n(3592),o=n(4847),a=n(6321),s=n(1525),c=n(3171),l=n(2833),u=n(6781),d=n(4826),p={default:n(5092),zero:n(4719),commonmark:n(73)},f=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new l,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=p[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},1525(e,t,n){"use strict";var r=n(2378),i=[["table",n(4752),["paragraph","reference"]],["code",n(5711)],["fence",n(2373),["paragraph","reference","blockquote","list"]],["blockquote",n(2941),["paragraph","reference","blockquote","list"]],["hr",n(8e3),["paragraph","reference","blockquote","list"]],["list",n(6686),["paragraph","reference","blockquote"]],["reference",n(6897)],["html_block",n(1857),["paragraph","reference","blockquote"]],["heading",n(634),["paragraph","reference","blockquote"]],["lheading",n(9648)],["paragraph",n(7046)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,c=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=c){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(7759),e.exports=o},6321(e,t,n){"use strict";var r=n(2378),i=[["normalize",n(803)],["block",n(3437)],["inline",n(3547)],["linkify",n(986)],["replacements",n(203)],["smartquotes",n(5260)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(1839),e.exports=o},3171(e,t,n){"use strict";var r=n(2378),i=[["text",n(2015)],["newline",n(2534)],["escape",n(1231)],["backticks",n(6757)],["strikethrough",n(7141).q],["emphasis",n(3898).q],["link",n(6552)],["image",n(3707)],["autolink",n(6955)],["html_inline",n(961)],["entity",n(8103)]],o=[["balance_pairs",n(5940)],["strikethrough",n(7141).g],["emphasis",n(3898).g],["text_collapse",n(7729)]];function a(){var e;for(this.ruler=new r,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},a.prototype.State=n(979),e.exports=a},73(e){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},5092(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},4719(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},4847(e,t,n){"use strict";var r=n(2344).assign,i=n(2344).unescapeAll,o=n(2344).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return"<code"+i.renderAttrs(a)+">"+o(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,i){var a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+o(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,c,l,u,d,p=e[t],f=p.info?i(p.info).trim():"",h="",m="";return f&&(h=(l=f.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(s=n.highlight&&n.highlight(p.content,h,m)||o(p.content)).indexOf("<pre")?s+"\n":f?(c=p.attrIndex("class"),u=p.attrs?p.attrs.slice():[],c<0?u.push(["class",n.langPrefix+h]):(u[c]=u[c].slice(),u[c][1]+=" "+n.langPrefix+h),d={attrs:u},"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},2378(e){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},2941(e,t,n){"use strict";var r=n(2344).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T,S=e.lineMax,O=e.bMarks[t]+e.tShift[t],C=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(O++))return!1;if(i)return!0;for(c=f=e.sCount[t]+1,32===e.src.charCodeAt(O)?(O++,c++,f++,o=!1,E=!0):9===e.src.charCodeAt(O)?(E=!0,(e.bsCount[t]+f)%4==3?(O++,c++,f++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=O;O<C&&(a=e.src.charCodeAt(O),r(a));)9===a?f+=4-(f+e.bsCount[t]+(o?1:0))%4:f++,O++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(E?1:0),u=O>=C,y=[e.sCount[t]],e.sCount[t]=f-c,b=[e.tShift[t]],e.tShift[t]=O-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(T=e.sCount[p]<e.blkIndent,!((O=e.bMarks[p]+e.tShift[p])>=(C=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(O++)||T){if(u)break;for(_=!1,s=0,l=w.length;s<l;s++)if(w[s](e,p,n,!0)){_=!0;break}if(_){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(c=f=e.sCount[p]+1,32===e.src.charCodeAt(O)?(O++,c++,f++,o=!1,E=!0):9===e.src.charCodeAt(O)?(E=!0,(e.bsCount[p]+f)%4==3?(O++,c++,f++,o=!1):o=!0):E=!1,h.push(e.bMarks[p]),e.bMarks[p]=O;O<C&&(a=e.src.charCodeAt(O),r(a));)9===a?f+=4-(f+e.bsCount[p]+(o?1:0))%4:f++,O++;u=O>=C,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(E?1:0),y.push(e.sCount[p]),e.sCount[p]=f-c,b.push(e.tShift[p]),e.tShift[p]=O-e.bMarks[p]}for(g=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=d=[t,0],e.md.block.tokenize(e,t,p),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=v,d[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=g,!0}},5711(e){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},2373(e){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,c,l,u,d=!1,p=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>f)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(c=p,(o=(p=e.skipChars(p,i))-c)<3)return!1;if(u=e.src.slice(c,p),a=e.src.slice(p,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(p=c=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4||(p=e.skipChars(p,i))-c<o||(p=e.skipSpaces(p))<f)){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,o,!0),l.markup=u,l.map=[t,e.line],!0}},634(e,t,n){"use strict";var r=n(2344).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=u)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l<u&&a<=6;)a++,o=e.src.charCodeAt(++l);return!(a>6||l<u&&!r(o)||(i||(u=e.skipSpacesBack(u,l),(s=e.skipCharsBack(u,35,l))>l&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(c=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},8e3(e,t,n){"use strict";var r=n(2344).isSpace;e.exports=function(e,t,n,i){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(a=1;l<u;){if((s=e.src.charCodeAt(l++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3||(i||(e.line=t+1,(c=e.push("hr","hr",0)).map=[t,e.line],c.markup=Array(a+1).join(String.fromCharCode(o))),0))}},1857(e,t,n){"use strict";var r=n(1358),i=n(6557).p,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),i=0;i<o.length&&!o[i][0].test(c);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(c))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(l=e.bMarks[a]+e.tShift[a],u=e.eMarks[a],c=e.src.slice(l,u),o[i][1].test(c)){0!==c.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},9648(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,c,l,u,d,p,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(d=e.src.charCodeAt(c))||61===d)&&(c=e.skipChars(c,d),(c=e.skipSpaces(c))>=l)){u=61===d?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,f,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(d),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(d),e.parentType=p,!0)}},6686(e,t,n){"use strict";var r=n(2344).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T,S,O,C,x,N,I,A,D,R,L=!1,P=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(L=!0),(x=o(e,t))>=0){if(p=!0,I=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(I,x-1)),L&&1!==y)return!1}else{if(!((x=i(e,t))>=0))return!1;p=!1}if(L&&e.skipSpaces(x)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(x-1),r)return!0;for(g=e.tokens.length,p?(R=e.push("ordered_list_open","ol",1),1!==y&&(R.attrs=[["start",y]])):R=e.push("bullet_list_open","ul",1),R.map=m=[t,0],R.markup=String.fromCharCode(v),E=t,N=!1,D=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";E<n;){for(C=x,b=e.eMarks[E],d=_=e.sCount[E]+x-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))_+=4-(_+e.bsCount[E])%4;else{if(32!==a)break;_++}C++}if((u=(s=C)>=b?1:_-d)>4&&(u=1),l=d+u,(R=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),R.map=f=[t,0],p&&(R.info=e.src.slice(I,x-1)),O=e.tight,S=e.tShift[t],T=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=_,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(P=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=S,e.sCount[t]=T,e.tight=O,(R=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),E=t=e.line,f[1]=E,s=e.bMarks[t],E>=n)break;if(e.sCount[E]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(A=!1,c=0,h=D.length;c<h;c++)if(D[c](e,E,n,!0)){A=!0;break}if(A)break;if(p){if((x=o(e,E))<0)break;I=e.bMarks[E]+e.tShift[E]}else if((x=i(e,E))<0)break;if(v!==e.src.charCodeAt(x-1))break}return(R=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=E,e.line=E,e.parentType=k,P&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}},7046(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";c<u&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,c,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},6897(e,t,n){"use strict";var r=n(2344).normalizeReference,i=n(2344).isSpace;e.exports=function(e,t,n,o){var a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w=0,k=e.bMarks[t]+e.tShift[t],T=e.eMarks[t],S=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(k))return!1;for(;++k<T;)if(93===e.src.charCodeAt(k)&&92!==e.src.charCodeAt(k-1)){if(k+1===T)return!1;if(58!==e.src.charCodeAt(k+1))return!1;break}for(l=e.lineMax,E=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";S<l&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3||e.sCount[S]<0)){for(b=!1,d=0,p=E.length;d<p;d++)if(E[d](e,S,l,!0)){b=!0;break}if(b)break}for(T=(y=e.getLines(t,S,e.blkIndent,!1).trim()).length,k=1;k<T;k++){if(91===(a=y.charCodeAt(k)))return!1;if(93===a){h=k;break}(10===a||92===a&&++k<T&&10===y.charCodeAt(k))&&w++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(k=h+2;k<T;k++)if(10===(a=y.charCodeAt(k)))w++;else if(!i(a))break;if(!(g=e.md.helpers.parseLinkDestination(y,k,T)).ok)return!1;if(u=e.md.normalizeLink(g.str),!e.md.validateLink(u))return!1;for(s=k=g.pos,c=w+=g.lines,v=k;k<T;k++)if(10===(a=y.charCodeAt(k)))w++;else if(!i(a))break;for(g=e.md.helpers.parseLinkTitle(y,k,T),k<T&&v!==k&&g.ok?(_=g.str,k=g.pos,w+=g.lines):(_="",k=s,w=c);k<T&&(a=y.charCodeAt(k),i(a));)k++;if(k<T&&10!==y.charCodeAt(k)&&_)for(_="",k=s,w=c;k<T&&(a=y.charCodeAt(k),i(a));)k++;return!(k<T&&10!==y.charCodeAt(k)||!(f=r(y.slice(1,h)))||(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:_,href:u}),e.parentType=m,e.line=t+w+1),0))}},7759(e,t,n){"use strict";var r=n(5099),i=n(2344).isSpace;function o(e,t,n,r){var o,a,s,c,l,u,d,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,s=c=u=d=0,l=(a=this.src).length;c<l;c++){if(o=a.charCodeAt(c),!p){if(i(o)){u++,9===o?d+=4-d%4:d++;continue}p=!0}10!==o&&c!==l-1||(10!==o&&c++,this.bMarks.push(s),this.eMarks.push(c),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),p=!1,u=0,d=0,s=c+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,c,l,u,d,p=e;if(e>=t)return"";for(u=new Array(t-e),o=0;p<t;p++,o++){for(a=0,d=c=this.bMarks[p],l=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];c<l&&a<n;){if(s=this.src.charCodeAt(c),i(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(c-d<this.tShift[p]))break;a++}c++}u[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},o.prototype.Token=r,e.exports=o},4752(e,t,n){"use strict";var r=n(2344).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}e.exports=function(e,t,n,a){var s,c,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(k=e.src.charCodeAt(l++))&&45!==k&&58!==k)return!1;if(l>=e.eMarks[p])return!1;if(124!==(T=e.src.charCodeAt(l++))&&45!==T&&58!==T&&!r(T))return!1;if(45===k&&r(T))return!1;for(;l<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(l))&&45!==s&&58!==s&&!r(s))return!1;l++}for(f=(c=i(e,t+1)).split("|"),g=[],u=0;u<f.length;u++){if(!(v=f[u].trim())){if(0===u||u===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(c=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((f=o(c)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(h=f.length)||h!==g.length)return!1;if(a)return!0;for(E=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<f.length;u++)m=e.push("th_open","th",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),p=t+2;p<n&&!(e.sCount[p]<e.blkIndent);p++){for(_=!1,u=0,d=w.length;u<d;u++)if(w[u](e,p,n,!0)){_=!0;break}if(_)break;if(!(c=i(e,p).trim()))break;if(e.sCount[p]-e.blkIndent>=4)break;for((f=o(c)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),p===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[p,p+1],u=0;u<h;u++)m=e.push("td_open","td",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u]?f[u].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=p),m=e.push("table_close","table",-1),y[1]=p,e.parentType=E,e.line=p,!0}},3437(e){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},3547(e){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},986(e,t,n){"use strict";var r=n(2344).arrayReplaceAt;function i(e){return/^<a[>\s]/i.test(e)}function o(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,a,s,c,l,u,d,p,f,h,m,g,v,y,b,E,_=e.tokens;if(e.md.options.linkify)for(n=0,a=_.length;n<a;n++)if("inline"===_[n].type&&e.md.linkify.pretest(_[n].content))for(g=0,t=(s=_[n].children).length-1;t>=0;t--)if("link_close"!==(l=s[t]).type){if("html_inline"===l.type&&(i(l.content)&&g>0&&g--,o(l.content)&&g++),!(g>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(p=l.content,E=e.md.linkify.match(p),u=[],m=l.level,h=0,d=0;d<E.length;d++)v=E[d].url,y=e.md.normalizeLink(v),e.md.validateLink(y)&&(b=E[d].text,b=E[d].schema?"mailto:"!==E[d].schema||/^mailto:/i.test(b)?e.md.normalizeLinkText(b):e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),(f=E[d].index)>h&&((c=new e.Token("text","",0)).content=p.slice(h,f),c.level=m,u.push(c)),(c=new e.Token("link_open","a",1)).attrs=[["href",y]],c.level=m++,c.markup="linkify",c.info="auto",u.push(c),(c=new e.Token("text","",0)).content=b,c.level=m,u.push(c),(c=new e.Token("link_close","a",-1)).level=--m,c.markup="linkify",c.info="auto",u.push(c),h=E[d].lastIndex);h<p.length&&((c=new e.Token("text","",0)).content=p.slice(h),c.level=m,u.push(c)),_[n].children=s=r(s,t,u)}}else for(t--;s[t].level!==l.level&&"link_open"!==s[t].type;)t--}},803(e){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},203(e){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},5260(e,t,n){"use strict";var r=n(2344).isWhiteSpace,i=n(2344).isPunctChar,o=n(2344).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function c(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,t){var n,a,l,u,d,p,f,h,m,g,v,y,b,E,_,w,k,T,S,O,C;for(S=[],n=0;n<e.length;n++){for(a=e[n],f=e[n].level,k=S.length-1;k>=0&&!(S[k].level<=f);k--);if(S.length=k+1,"text"===a.type){d=0,p=(l=a.content).length;e:for(;d<p&&(s.lastIndex=d,u=s.exec(l));){if(_=w=!0,d=u.index+1,T="'"===u[0],m=32,u.index-1>=0)m=l.charCodeAt(u.index-1);else for(k=n-1;k>=0&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k--)if(e[k].content){m=e[k].content.charCodeAt(e[k].content.length-1);break}if(g=32,d<p)g=l.charCodeAt(d);else for(k=n+1;k<e.length&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k++)if(e[k].content){g=e[k].content.charCodeAt(0);break}if(v=o(m)||i(String.fromCharCode(m)),y=o(g)||i(String.fromCharCode(g)),b=r(m),(E=r(g))?_=!1:y&&(b||v||(_=!1)),b?w=!1:v&&(E||y||(w=!1)),34===g&&'"'===u[0]&&m>=48&&m<=57&&(w=_=!1),_&&w&&(_=v,w=y),_||w){if(w)for(k=S.length-1;k>=0&&(h=S[k],!(S[k].level<f));k--)if(h.single===T&&S[k].level===f){h=S[k],T?(O=t.md.options.quotes[2],C=t.md.options.quotes[3]):(O=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=c(a.content,u.index,C),e[h.token].content=c(e[h.token].content,h.pos,O),d+=C.length-1,h.token===n&&(d+=O.length-1),p=(l=a.content).length,S.length=k;continue e}_?S.push({token:n,pos:u.index,single:T,level:f}):w&&T&&(a.content=c(a.content,u.index,"’"))}else T&&(a.content=c(a.content,u.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},1839(e,t,n){"use strict";var r=n(5099);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},6955(e){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,c,l,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(c=e.pos,l=e.posMax;;){if(++u>=l)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return i=e.src.slice(c+1,u),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},6757(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(c=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[c]||0)<=n)return t||(e.pending+=i),e.pos+=c,!0;for(a=s=u;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((l=s-a)===c)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=c,!0}},5940(e){"use strict";function t(e,t){var n,r,i,o,a,s,c,l,u={},d=t.length;if(d){var p=0,f=-2,h=[];for(n=0;n<d;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&f===i.token-1||(p=n),f=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],s=r=p-h[p]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(c=!0)),!c)){l=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+l,h[r]=l,i.open=!1,o.end=n,o.close=!1,s=-1,f=-2;break}-1!==s&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}},3898(e){"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.q=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},8103(e,t,n){"use strict";var r=n(8359),i=n(2344).has,o=n(2344).isValidEntityCode,a=n(2344).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,c=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,u=e.pos,d=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<d)if(35===e.src.charCodeAt(u+1)){if(l=e.src.slice(u).match(s))return t||(n="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(u).match(c))&&i(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},1231(e,t,n){"use strict";for(var r=n(2344).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<a){if((n=e.src.charCodeAt(o))<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},961(e,t,n){"use strict";var r=n(6557).l;e.exports=function(e,t){var n,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(a).match(r))||(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}},3707(e,t,n){"use strict";var r=n(2344).normalizeReference,i=n(2344).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,d,p,f,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)<b&&40===e.src.charCodeAt(u)){for(u++;u<b&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(u>=b)return!1;for(g=u,(p=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(v=e.md.normalizeLink(p.str),e.md.validateLink(v)?u=p.pos:v=""),g=u;u<b&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(p=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<b&&g!==u&&p.ok)for(f=p.str,u=p.pos;u<b&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);else f="";if(u>=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if(void 0===e.env.references)return!1;if(u<b&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(g,u++):u=c+1):u=c+1,s||(s=e.src.slice(l,c)),!(d=e.env.references[r(s)]))return e.pos=y,!1;v=d.href,f=d.title}return t||(a=e.src.slice(l,c),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=m,h.content=a,f&&n.push(["title",f])),e.pos=u,e.posMax=b,!0}},6552(e,t,n){"use strict";var r=n(2344).normalizeReference,i=n(2344).isSpace;e.exports=function(e,t){var n,o,a,s,c,l,u,d,p="",f="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)<m&&40===e.src.charCodeAt(l)){for(v=!1,l++;l<m&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(l>=m)return!1;if(g=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(p=e.md.normalizeLink(u.str),e.md.validateLink(p)?l=u.pos:p="",g=l;l<m&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&g!==l&&u.ok)for(f=u.str,l=u.pos;l<m&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);}(l>=m||41!==e.src.charCodeAt(l))&&(v=!0),l++}if(v){if(void 0===e.env.references)return!1;if(l<m&&91===e.src.charCodeAt(l)?(g=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?a=e.src.slice(g,l++):l=s+1):l=s+1,a||(a=e.src.slice(c,s)),!(d=e.env.references[r(a)]))return e.pos=h,!1;p=d.href,f=d.title}return t||(e.pos=c,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",p]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},2534(e,t,n){"use strict";var r=n(2344).isSpace;e.exports=function(e,t){var n,i,o,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&r(e.src.charCodeAt(a));)a++;return e.pos=a,!0}},979(e,t,n){"use strict";var r=n(5099),i=n(2344).isWhiteSpace,o=n(2344).isPunctChar,a=n(2344).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,c,l,u,d,p,f,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<v&&this.src.charCodeAt(h)===y;)h++;return s=h-e,r=h<v?this.src.charCodeAt(h):32,d=a(n)||o(String.fromCharCode(n)),f=a(r)||o(String.fromCharCode(r)),u=i(n),(p=i(r))?m=!1:f&&(u||d||(m=!1)),u?g=!1:d&&(p||f||(g=!1)),t?(c=m,l=g):(c=m&&(!g||d),l=g&&(!m||f)),{can_open:c,can_close:l,length:s}},s.prototype.Token=r,e.exports=s},7141(e){"use strict";function t(e,t){var n,r,i,o,a,s=[],c=t.length;for(n=0;n<c;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.q=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},2015(e){"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}},7729(e){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},5099(e){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},3527(e){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,n,r,o,a,s,c,l="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?l+=i[r]:192==(224&r)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=r<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(c=r<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l})}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},3331(e){"use strict";var t={};function n(e,r,i){var o,a,s,c,l,u="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),l=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))u+=e.slice(o,o+3),o+=2;else if(s<128)u+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(c=e.charCodeAt(o+1))>=56320&&c<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},6998(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},6781(e,t,n){"use strict";e.exports.encode=n(3331),e.exports.decode=n(3527),e.exports.format=n(6998),e.exports.parse=n(4994)},4994(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,f,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(a=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||v&&d[v]||(m=m.substr(2),this.slashes=!0)),!d[v]&&(h||v&&!p[v])){var y,b,E=-1;for(r=0;r<c.length;r++)-1!==(f=m.indexOf(c[r]))&&(-1===E||f<E)&&(E=f);for(-1!==(b=-1===E?m.lastIndexOf("@"):m.lastIndexOf("@",E))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),E=-1,r=0;r<s.length;r++)-1!==(f=m.indexOf(s[r]))&&(-1===E||f<E)&&(E=f);-1===E&&(E=m.length),":"===m[E-1]&&E--;var _=m.slice(0,E);m=m.slice(E),this.parseHost(_),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w){var k=this.hostname.split(/\./);for(r=0,o=k.length;r<o;r++){var T=k[r];if(T&&!T.match(l)){for(var S="",O=0,C=T.length;O<C;O++)T.charCodeAt(O)>127?S+="x":S+=T[O];if(!S.match(l)){var x=k.slice(0,r),N=k.slice(r+1),I=T.match(u);I&&(x.push(I[1]),N.unshift(I[2])),N.length&&(m=N.join(".")+m),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=m.indexOf("#");-1!==A&&(this.hash=m.substr(A),m=m.slice(0,A));var D=m.indexOf("?");return-1!==D&&(this.search=m.substr(D),m=m.slice(0,D)),m&&(this.pathname=m),p[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},592(e){e.exports=/[\0-\x1F\x7F-\x9F]/},2675(e){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},2828(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},3978(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},9295(e,t,n){"use strict";t.Any=n(6027),t.Cc=n(592),t.Cf=n(2675),t.P=n(2828),t.Z=n(3978)},6027(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},5549(e){"use strict";e.exports=wpGraphiQL.GraphQL},1609(e){"use strict";e.exports=window.React},5795(e){"use strict";e.exports=window.ReactDOM},6087(e){"use strict";e.exports=window.wp.element},3373(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4357(e){"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}s.m=o,e=[],s.O=(t,n,r,i)=>{if(!n){var o=1/0;for(u=0;u<e.length;u++){for(var[n,r,i]=e[u],a=!0,c=0;c<n.length;c++)(!1&i||o>=i)&&Object.keys(s.O).every(e=>s.O[e](n[c]))?n.splice(c--,1):(a=!1,i<o&&(o=i));if(a){e.splice(u--,1);var l=r();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);s.r(i);var o={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach(t=>o[t]=()=>e[t]);return o.default=()=>e,s.d(i,o),i},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+".js",s.miniCssF=e=>{},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},i="@wpgraphql/wp-graphql:",s.l=(e,t,n,o)=>{if(r[e])r[e].push(t);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+n),a.src=e),r[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var i=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach(e=>e(n)),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={57:0,524:0,431:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(431!=t){var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=s.p+s.u(t),a=new Error;s.l(o,n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}},"chunk-"+t,t)}else e[t]=0},s.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[o,a,c]=n,l=0;if(o.some(t=>0!==e[t])){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(c)var u=c(s)}for(t&&t(n);l<o.length;l++)i=o[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(u)},n=globalThis.webpackChunk_wpgraphql_wp_graphql=globalThis.webpackChunk_wpgraphql_wp_graphql||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var c=s.O(void 0,[431],()=>s(798));c=s.O(c)})();