graphiql-rails 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/graphiql/rails/application.js +2 -4
- data/app/assets/stylesheets/graphiql/rails/application.css +1 -1
- data/app/assets/stylesheets/graphiql/rails/{graphiql-3.1.1.css → graphiql-3.8.3.css} +2008 -3
- data/app/views/graphiql/rails/editors/show.html.erb +4 -10
- data/lib/graphiql/rails/engine.rb +1 -4
- data/lib/graphiql/rails/version.rb +1 -1
- metadata +3 -7
- data/app/assets/javascripts/graphiql/rails/graphiql-3.1.1.js +0 -83731
- data/app/assets/javascripts/graphiql/rails/graphiql_show.js +0 -90
- data/app/assets/javascripts/graphiql/rails/react-18.2.0.js +0 -31
- data/app/assets/javascripts/graphiql/rails/react-dom-18.2.0.js +0 -267
@@ -1,4 +1,2 @@
|
|
1
|
-
|
2
|
-
//= require ./react-dom-18.2.0
|
3
|
-
//= require ./graphiql-3.1.1
|
4
|
-
//= require ./graphiql_show
|
1
|
+
/*! For license information please see application.js.LICENSE.txt */
|
2
|
+
(()=>{var e,t,n={129:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});const r=10,i=2;function o(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:a(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const n=Math.min(r,e.length),o=e.length-n,s=[];for(let r=0;r<n;++r)s.push(a(e[r],t));return 1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`),"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+a(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},155:(e,t,n)=>{"use strict";n.r(t);var r=n(4538),i=n(5237),o=n.n(i),a=n(3525),s=n(7905);function l(e,t,n,i){const o=document.createElement("span");o.className="type-name-pill",i instanceof r.Gc?(u(o,t,n,i.ofType),d(o,"!")):i instanceof r.KT?(d(o,"["),u(o,t,n,i.ofType),d(o,"]")):d(o,(null==i?void 0:i.name)||"","type-name",n,(0,s.a2)(t,i)),e.append(o)}function u(e,t,n,i){i instanceof r.Gc?(u(e,t,n,i.ofType),d(e,"!")):i instanceof r.KT?(d(e,"["),u(e,t,n,i.ofType),d(e,"]")):d(e,(null==i?void 0:i.name)||"","type-name",n,(0,s.a2)(t,i))}function c(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}!function(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),n.append(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.append(document.createTextNode(r)),n.append(o)}}(e,t,n)}function d(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",(e=>{e.preventDefault(),o(i,e)}))):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}n(7402),o().registerHelper("info","graphql",((e,t)=>{var n;if(!t.schema||!e.state)return;const{kind:r,step:i}=e.state,o=(0,a.A)(t.schema,e.state);if("Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef||"ObjectField"===r&&0===i&&o.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){(function(e,t,n){var r;d(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,(0,s.Q0)(t))})(e,t,n),l(e,t,n,t.type)}(e,o,t);const n=document.createElement("div");return n.append(e),c(n,t,o.fieldDef),n}if("Directive"===r&&1===i&&o.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;d(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,(0,s.t8)(t))}(e,o,t);const n=document.createElement("div");return n.append(e),c(n,t,o.directiveDef),n}if("Argument"===r&&0===i&&o.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;d(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,(0,s.Hh)(t)),l(e,t,n,t.inputType)}(e,o,t);const n=document.createElement("div");return n.append(e),c(n,t,o.argDef),n}if("EnumValue"===r&&(null===(n=o.enumValue)||void 0===n?void 0:n.description)){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;const i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";u(e,t,n,t.inputType),d(e,"."),d(e,i,"enum-value",n,(0,s.IR)(t))}(e,o,t);const n=document.createElement("div");return n.append(e),c(n,t,o.enumValue),n}if("NamedType"===r&&o.type&&o.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",u(e,o,t,o.type);const n=document.createElement("div");return n.append(e),c(n,t,o.type),n}}))},163:(e,t,n)=>{"use strict";var r=n(5237),i=n.n(r),o=n(4538),a=n(3770),s=n(4294);function l(e,t,n){const r=function(e,t){if(!t)return u(e,(e=>!e.isDeprecated));return u(u(e.map((e=>({proximity:d(c(e.text),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length)).map((e=>e.entry))}(n,c(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function u(e,t){const n=e.filter(t);return 0===n.length?e:n}function c(e){return e.toLowerCase().replaceAll(/\W/g,"")}function d(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}i().registerHelper("hint","graphql-variables",((e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),u=function(e,t,n){const r="Invalid"===t.state.kind?t.state.prevState:t.state,{kind:i,step:u}=r;if("Document"===i&&0===u)return l(e,t,[{text:"{"}]);const{variableToType:c}=n;if(!c)return;const d=function(e,t){const n={type:null,fields:null};return(0,s.A)(t,(t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?(0,o.yl)(n.type):void 0;n.type=e instanceof o.KT?e.ofType:null;break}case"ObjectValue":{const e=n.type?(0,o.MR)(n.type):void 0;n.fields=e instanceof o.zP?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}})),n}(c,t.state);if("Document"===i||"Variable"===i&&0===u)return l(e,t,Object.keys(c).map((e=>({text:`"${e}": `,type:c[e]}))));if(("ObjectValue"===i||"ObjectField"===i&&0===u)&&d.fields)return l(e,t,Object.keys(d.fields).map((e=>d.fields[e])).map((e=>({text:`"${e.name}": `,type:e.type,description:e.description}))));if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===u||"ObjectField"===i&&2===u||"Variable"===i&&2===u){const n=d.type?(0,o.MR)(d.type):void 0;if(n instanceof o.zP)return l(e,t,[{text:"{"}]);if(n instanceof o.Zb)return l(e,t,n.getValues().map((e=>({text:`"${e.name}"`,type:n,description:e.description}))));if(n===a.kk)return l(e,t,[{text:"true",type:a.kk,description:"Not false."},{text:"false",type:a.kk,description:"Not true."}])}}(n,r,t);return(null==u?void 0:u.list)&&u.list.length>0&&(u.from=i().Pos(u.from.line,u.from.ch),u.to=i().Pos(u.to.line,u.to.ch),i().signal(e,"hasCompletion",e,u,r)),u}))},398:(e,t,n)=>{"use strict";n.d(t,{qg:()=>M,$x:()=>R});var r=n(5571);function i(e,t,n){return new r.eO(`Syntax Error: ${n}`,{source:e,positions:[t]})}var o,a,s=n(475),l=n(2369),u=n(3298),c=n(5995),d=n(9646);(a=o||(o={})).SOF="<SOF>",a.EOF="<EOF>",a.BANG="!",a.DOLLAR="$",a.AMP="&",a.PAREN_L="(",a.PAREN_R=")",a.SPREAD="...",a.COLON=":",a.EQUALS="=",a.AT="@",a.BRACKET_L="[",a.BRACKET_R="]",a.BRACE_L="{",a.PIPE="|",a.BRACE_R="}",a.NAME="Name",a.INT="Int",a.FLOAT="Float",a.STRING="String",a.BLOCK_STRING="BlockString",a.COMMENT="Comment";class f{constructor(e){const t=new s.ou(o.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==o.EOF)do{if(e.next)e=e.next;else{const t=b(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===o.COMMENT);return e}}function p(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function h(e,t){return m(e.charCodeAt(t))&&g(e.charCodeAt(t+1))}function m(e){return e>=55296&&e<=56319}function g(e){return e>=56320&&e<=57343}function v(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return o.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function y(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new s.ou(t,n,r,o,a,i)}function b(e,t){const n=e.source.body,r=n.length;let a=t;for(;a<r;){const t=n.charCodeAt(a);switch(t){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===n.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 35:return x(e,a);case 33:return y(e,o.BANG,a,a+1);case 36:return y(e,o.DOLLAR,a,a+1);case 38:return y(e,o.AMP,a,a+1);case 40:return y(e,o.PAREN_L,a,a+1);case 41:return y(e,o.PAREN_R,a,a+1);case 46:if(46===n.charCodeAt(a+1)&&46===n.charCodeAt(a+2))return y(e,o.SPREAD,a,a+3);break;case 58:return y(e,o.COLON,a,a+1);case 61:return y(e,o.EQUALS,a,a+1);case 64:return y(e,o.AT,a,a+1);case 91:return y(e,o.BRACKET_L,a,a+1);case 93:return y(e,o.BRACKET_R,a,a+1);case 123:return y(e,o.BRACE_L,a,a+1);case 124:return y(e,o.PIPE,a,a+1);case 125:return y(e,o.BRACE_R,a,a+1);case 34:return 34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)?D(e,a):k(e,a)}if((0,d.yp)(t)||45===t)return E(e,a,t);if((0,d.un)(t))return A(e,a);throw i(e.source,a,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":p(t)||h(n,a)?`Unexpected character: ${v(e,a)}.`:`Invalid character: ${v(e,a)}.`)}return y(e,o.EOF,r,r)}function x(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(p(e))++i;else{if(!h(n,i))break;i+=2}}return y(e,o.COMMENT,t,i,n.slice(t+1,i))}function E(e,t,n){const r=e.source.body;let a=t,s=n,l=!1;if(45===s&&(s=r.charCodeAt(++a)),48===s){if(s=r.charCodeAt(++a),(0,d.yp)(s))throw i(e.source,a,`Invalid number, unexpected digit after 0: ${v(e,a)}.`)}else a=w(e,a,s),s=r.charCodeAt(a);if(46===s&&(l=!0,s=r.charCodeAt(++a),a=w(e,a,s),s=r.charCodeAt(a)),69!==s&&101!==s||(l=!0,s=r.charCodeAt(++a),43!==s&&45!==s||(s=r.charCodeAt(++a)),a=w(e,a,s),s=r.charCodeAt(a)),46===s||(0,d.un)(s))throw i(e.source,a,`Invalid number, expected digit but got: ${v(e,a)}.`);return y(e,l?o.FLOAT:o.INT,t,a,r.slice(t,a))}function w(e,t,n){if(!(0,d.yp)(n))throw i(e.source,t,`Invalid number, expected digit but got: ${v(e,t)}.`);const r=e.source.body;let o=t+1;for(;(0,d.yp)(r.charCodeAt(o));)++o;return o}function k(e,t){const n=e.source.body,r=n.length;let a=t+1,s=a,l="";for(;a<r;){const r=n.charCodeAt(a);if(34===r)return l+=n.slice(s,a),y(e,o.STRING,t,a+1,l);if(92!==r){if(10===r||13===r)break;if(p(r))++a;else{if(!h(n,a))throw i(e.source,a,`Invalid character within String: ${v(e,a)}.`);a+=2}}else{l+=n.slice(s,a);const t=117===n.charCodeAt(a+1)?123===n.charCodeAt(a+2)?C(e,a):S(e,a):_(e,a);l+=t.value,a+=t.size,s=a}}throw i(e.source,a,"Unterminated string.")}function C(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!p(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|N(e),r<0)break}throw i(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function S(e,t){const n=e.source.body,r=T(n,t+2);if(p(r))return{value:String.fromCodePoint(r),size:6};if(m(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=T(n,t+8);if(g(e))return{value:String.fromCodePoint(r,e),size:12}}throw i(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function T(e,t){return N(e.charCodeAt(t))<<12|N(e.charCodeAt(t+1))<<8|N(e.charCodeAt(t+2))<<4|N(e.charCodeAt(t+3))}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function _(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 i(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function D(e,t){const n=e.source.body,r=n.length;let a=e.lineStart,s=t+3,l=s,u="";const d=[];for(;s<r;){const r=n.charCodeAt(s);if(34===r&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){u+=n.slice(l,s),d.push(u);const r=y(e,o.BLOCK_STRING,t,s+3,(0,c.OC)(d).join("\n"));return e.line+=d.length-1,e.lineStart=a,r}if(92!==r||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==r&&13!==r)if(p(r))++s;else{if(!h(n,s))throw i(e.source,s,`Invalid character within String: ${v(e,s)}.`);s+=2}else u+=n.slice(l,s),d.push(u),13===r&&10===n.charCodeAt(s+1)?s+=2:++s,u="",l=s,a=s;else u+=n.slice(l,s),l=s+1,s+=4}throw i(e.source,s,"Unterminated string.")}function A(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,d.xr)(e))break;++i}return y(e,o.NAME,t,i,n.slice(t,i))}var O=n(6286),L=n(129),I=n(4621);class F{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,O.U)(!1,`Body must be a string. Received: ${(0,L.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,O.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,O.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function M(e,t){const n=new P(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function R(e,t){const n=new P(e,t);n.expectToken(o.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(o.EOF),r}class P{constructor(e,t={}){const n=function(e){return(0,I.h)(e,F)}(e)?e:new F(e);this._lexer=new f(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(o.NAME);return this.node(e,{kind:u.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:u.b.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===o.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw i(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(e,{kind:u.b.OPERATION_DEFINITION,operation:s.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(o.NAME)&&(n=this.parseName()),this.node(e,{kind:u.b.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(o.NAME);switch(e.value){case"query":return s.cE.QUERY;case"mutation":return s.cE.MUTATION;case"subscription":return s.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:u.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(e,{kind:u.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:u.b.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(o.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:u.b.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,t,o.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:u.b.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(o.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(o.NAME)?this.node(e,{kind:u.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:u.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:u.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:u.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case o.BRACKET_L:return this.parseList(e);case o.BRACE_L:return this.parseObject(e);case o.INT:return this.advanceLexer(),this.node(t,{kind:u.b.INT,value:t.value});case o.FLOAT:return this.advanceLexer(),this.node(t,{kind:u.b.FLOAT,value:t.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:u.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:u.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:u.b.NULL});default:return this.node(t,{kind:u.b.ENUM,value:t.value})}case o.DOLLAR:if(e){if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){const e=this._lexer.token.value;throw i(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:u.b.STRING,value:e.value,block:e.kind===o.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:u.b.LIST,values:this.any(o.BRACKET_L,(()=>this.parseValueLiteral(e)),o.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:u.b.OBJECT,fields:this.any(o.BRACE_L,(()=>this.parseObjectField(e)),o.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:u.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(o.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(o.AT),this.node(t,{kind:u.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(o.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(o.BRACKET_R),t=this.node(e,{kind:u.b.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(e,{kind:u.b.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:u.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(e,{kind:u.b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(o.COLON);const n=this.parseNamedType();return this.node(e,{kind:u.b.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:u.b.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:u.b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(o.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:u.b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(o.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(o.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:u.b.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}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:u.b.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:u.b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:u.b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:u.b.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 i(this._lexer.source,this._lexer.token.start,`${j(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:u.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===o.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.b.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:u.b.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:u.b.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:u.b.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:u.b.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:u.b.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:u.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:u.b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(l.H,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new s.aZ(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 i(this._lexer.source,t.start,`Expected ${V(e)}, found ${j(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==o.NAME||t.value!==e)throw i(this._lexer.source,t.start,`Expected "${e}", found ${j(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===o.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return i(this._lexer.source,t.start,`Unexpected ${j(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!==o.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw i(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function j(e){const t=e.value;return V(e.kind)+(null!=t?` "${t}"`:"")}function V(e){return function(e){return e===o.BANG||e===o.DOLLAR||e===o.AMP||e===o.PAREN_L||e===o.PAREN_R||e===o.SPREAD||e===o.COLON||e===o.EQUALS||e===o.AT||e===o.BRACKET_L||e===o.BRACKET_R||e===o.BRACE_L||e===o.PIPE||e===o.BRACE_R}(e)?`"${e}"`:e}},475:(e,t,n)=>{"use strict";n.d(t,{Ll:()=>s,aD:()=>o,aZ:()=>r,cE:()=>l,ou:()=>i});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},528:(e,t,n)=>{"use strict";var r=n(5237),i=n.n(r),o=n(3525),a=n(7905);function s(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&d(e)}function l(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&f(e):e.state.jump.cursor=null}function u(e,t){if(e.state.jump.isHoldingModifier||t.key!==(c?"Meta":"Control"))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&d(e);const n=a=>{a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&f(e),i().off(document,"keyup",n),i().off(document,"click",r),e.off("mousedown",o))},r=t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)},o=(t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)};i().on(document,"keyup",n),i().on(document,"click",r),e.on("mousedown",o)}i().defineOption("jump",!1,((e,t,n)=>{if(n&&n!==i().Init){const t=e.state.jump.onMouseOver;i().off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;i().off(e.getWrapperElement(),"mouseout",n),i().off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:s.bind(null,e),onMouseOut:l.bind(null,e),onKeyDown:u.bind(null,e)};i().on(e.getWrapperElement(),"mouseover",n.onMouseOver),i().on(e.getWrapperElement(),"mouseout",n.onMouseOut),i().on(document,"keydown",n.onKeyDown)}}));const c="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac");function d(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const t=o(i,n,e);if(t){const n=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function f(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}i().registerHelper("jump","graphql",((e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,s=(0,o.A)(t.schema,n);return"Field"===r&&0===i&&s.fieldDef||"AliasedField"===r&&2===i&&s.fieldDef?(0,a.Q0)(s):"Directive"===r&&1===i&&s.directiveDef?(0,a.t8)(s):"Argument"===r&&0===i&&s.argDef?(0,a.Hh)(s):"EnumValue"===r&&s.enumValue?(0,a.IR)(s):"NamedType"===r&&s.type?(0,a.a2)(s):void 0}))},617:(e,t,n)=>{"use strict";n.d(t,{Y:()=>f,i:()=>d});var r=n(129),i=n(5571),o=n(475),a=n(1578),s=n(4538),l=n(7613),u=n(9488),c=n(8746);function d(e){if((0,c.GU)(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.YQ)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.N)(n)}.`,null!==(i=h(t,o.cE.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var l;a&&!(0,s.YQ)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.N)(a)}.`,null!==(l=h(t,o.cE.MUTATION))&&void 0!==l?l:a.astNode);const u=t.getSubscriptionType();var c;u&&!(0,s.YQ)(u)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.N)(u)}.`,null!==(c=h(t,o.cE.SUBSCRIPTION))&&void 0!==c?c:u.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.qT)(n)){m(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;m(e,i),(0,s.dX)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.N)(i.type)}.`,i.astNode),(0,s.xP)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[T(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.N)(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.bd)(t.type)&&(0,s.qK)(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.sy)(i)?((0,u.Yh)(i)||m(e,i),(0,s.YQ)(i)||(0,s.kD)(i)?(g(e,i),v(e,i)):(0,s.CK)(i)?x(e,i):(0,s.oF)(i)?E(e,i):(0,s.qK)(i)&&(w(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.N)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function f(e){const t=d(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\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.eO(e,{nodes:n}))}getErrors(){return this._errors}}function h(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 m(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function g(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 l of n){var i;m(e,l),(0,s.oH)(l.type)||e.reportError(`The type of ${t.name}.${l.name} must be Output Type but got: ${(0,r.N)(l.type)}.`,null===(i=l.astNode)||void 0===i?void 0:i.type);for(const n of l.args){const i=n.name;var o,a;m(e,n),(0,s.dX)(n.type)||e.reportError(`The type of ${t.name}.${l.name}(${i}:) must be Input Type but got: ${(0,r.N)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,s.xP)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${l.name}(${i}:) cannot be deprecated.`,[T(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function v(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.kD)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,C(t,i)):(n[i.name]=!0,b(e,t,i),y(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,C(t,i)):e.reportError(`Type ${(0,r.N)(t)} must only implement Interface types, it cannot implement ${(0,r.N)(i)}.`,C(t,i))}function y(e,t,n){const i=t.getFields();for(const d of Object.values(n.getFields())){const f=d.name,p=i[f];if(p){var o,l;(0,a.sP)(e.schema,p.type,d.type)||e.reportError(`Interface field ${n.name}.${f} expects type ${(0,r.N)(d.type)} but ${t.name}.${f} is type ${(0,r.N)(p.type)}.`,[null===(o=d.astNode)||void 0===o?void 0:o.type,null===(l=p.astNode)||void 0===l?void 0:l.type]);for(const i of d.args){const o=i.name,s=p.args.find((e=>e.name===o));var u,c;s?(0,a.n8)(i.type,s.type)||e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expects type ${(0,r.N)(i.type)} but ${t.name}.${f}(${o}:) is type ${(0,r.N)(s.type)}.`,[null===(u=i.astNode)||void 0===u?void 0:u.type,null===(c=s.astNode)||void 0===c?void 0:c.type]):e.reportError(`Interface field argument ${n.name}.${f}(${o}:) expected but ${t.name}.${f} does not provide it.`,[i.astNode,p.astNode])}for(const r of p.args){const i=r.name;!d.args.find((e=>e.name===i))&&(0,s.xP)(r)&&e.reportError(`Object field ${t.name}.${f} includes required argument ${i} that is missing from the Interface field ${n.name}.${f}.`,[r.astNode,d.astNode])}}else e.reportError(`Interface field ${n.name}.${f} expected but ${t.name} does not provide it.`,[d.astNode,t.astNode,...t.extensionASTNodes])}}function b(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}.`,[...C(n,i),...C(t,n)])}function x(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.`,S(t,o.name)):(i[o.name]=!0,(0,s.YQ)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.N)(o)}.`,S(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)m(e,t)}function w(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;m(e,a),(0,s.dX)(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.N)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type),(0,s.YX)(a)&&null!=a.deprecationReason&&e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[T(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&k(t,a,e)}}function k(e,t,n){var r;(0,s.bd)(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 C(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 S(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 T(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===l.yK.name))}},726:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(129),i=n(1181),o=n(2242),a=n(3298),s=n(4538);function l(e,t,n){if(e){if(e.kind===a.b.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&(0,s.bd)(t))return;return i}if((0,s.bd)(t)){if(e.kind===a.b.NULL)return;return l(e,t.ofType,n)}if(e.kind===a.b.NULL)return null;if((0,s.Fs)(t)){const r=t.ofType;if(e.kind===a.b.LIST){const t=[];for(const i of e.values)if(u(i,n)){if((0,s.bd)(r))return;t.push(null)}else{const e=l(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=l(e,r,n);if(void 0===i)return;return[i]}if((0,s.qK)(t)){if(e.kind!==a.b.OBJECT)return;const r=Object.create(null),i=(0,o.K)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||u(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if((0,s.bd)(e.type))return;continue}const o=l(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if((0,s.zf)(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,i.V)(!1,"Unexpected input type: "+(0,r.N)(t))}}function u(e,t){return e.kind===a.b.VARIABLE&&(null==t||void 0===t[e.name.value])}},795:(e,t,n)=>{!function(e){"use strict";function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&u<r.ch)break;if(a=n.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(a))return{ch:u+1,tokenType:a,pair:t};s=u-1}else{if(1==l)break;l=1,s=o.length}}}function s(t){var r,o,a=1,s=n.lastLine(),l=t.ch;e:for(var u=i;u<=s;++u)for(var c=n.getLine(u),d=u==i?l:0;;){var f=c.indexOf(t.pair[0],d),p=c.indexOf(t.pair[1],d);if(f<0&&(f=c.length),p<0&&(p=c.length),(d=Math.min(f,p))==c.length)break;if(n.getTokenTypeAt(e.Pos(u,d+1))==t.tokenType)if(d==f)++a;else if(! --a){r=u,o=d;break e}++d}return null==r||i==r?null:{from:e.Pos(i,l),to:e.Pos(r,o)}}for(var l=[],u=0;u<t.length;u++){var c=a(t[u]);c&&l.push(c)}for(l.sort((function(e,t){return e.ch-t.ch})),u=0;u<l.length;u++){var d=s(l[u]);if(d)return d}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}(n(5237))},801:e=>{"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},902:(e,t,n)=>{"use strict";n.r(t);var r=n(5237),i=n.n(r),o=n(4849);const a=["error","warning","information","hint"],s={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};i().registerHelper("lint","graphql",((e,t)=>{const{schema:n,validationRules:r,externalFragments:l}=t;return(0,o.VS)(e,n,r,void 0,l).map((e=>({message:e.message,severity:e.severity?a[e.severity-1]:a[0],type:e.source?s[e.source]:void 0,from:i().Pos(e.range.start.line,e.range.start.character),to:i().Pos(e.range.end.line,e.range.end.character)})))}))},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1020:(e,t,n)=>{"use strict";var r=n(6540),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},1071:(e,t,n)=>{"use strict";var r=n(5237),i=n.n(r),o=n(4538);let a,s,l,u,c,d,f;function p(){const e=l,t=[];if(v("{"),!x("}")){do{t.push(h())}while(x(","));v("}")}return{kind:"Object",start:e,end:c,members:t}}function h(){const e=l,t="String"===f?g():null;v("String"),v(":");const n=m();return{kind:"Member",start:e,end:c,key:t,value:n}}function m(){switch(f){case"[":return function(){const e=l,t=[];if(v("["),!x("]")){do{t.push(m())}while(x(","));v("]")}return{kind:"Array",start:e,end:c,values:t}}();case"{":return p();case"String":case"Number":case"Boolean":case"Null":const e=g();return w(),e}v("Value")}function g(){return{kind:f,start:l,end:u,value:JSON.parse(a.slice(l,u))}}function v(e){if(f===e)return void w();let t;if("EOF"===f)t="[end of file]";else if(u-l>1)t="`"+a.slice(l,u)+"`";else{const e=a.slice(l).match(/^.+?\b/);t="`"+(e?e[0]:a[l])+"`"}throw b(`Expected ${e} but found ${t}.`)}class y extends Error{constructor(e,t){super(e),this.position=t}}function b(e){return new y(e,{start:l,end:u})}function x(e){if(f===e)return w(),!0}function E(){return u<s&&(u++,d=u===s?0:a.charCodeAt(u)),d}function w(){for(c=u;9===d||10===d||13===d||32===d;)E();if(0!==d){switch(l=u,d){case 34:return f="String",function(){for(E();34!==d&&d>31;)if(92===d)switch(d=E(),d){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:E();break;case 117:E(),k(),k(),k(),k();break;default:throw b("Bad character escape sequence.")}else{if(u===s)throw b("Unterminated string.");E()}if(34!==d)throw b("Unterminated string.");E()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return f="Number",45===d&&E(),48===d?E():C(),46===d&&(E(),C()),void(69!==d&&101!==d||(d=E(),43!==d&&45!==d||E(),C()));case 102:if("false"!==a.slice(l,l+5))break;return u+=4,E(),void(f="Boolean");case 110:if("null"!==a.slice(l,l+4))break;return u+=3,E(),void(f="Null");case 116:if("true"!==a.slice(l,l+4))break;return u+=3,E(),void(f="Boolean")}f=a[l],E()}else f="EOF"}function k(){if(d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102)return E();throw b("Expected hexadecimal digit.")}function C(){if(d<48||d>57)throw b("Expected decimal digit.");do{E()}while(d>=48&&d<=57)}function S(e,t){if(!e||!t)return[];if(e instanceof o.Gc)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:S(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof o.KT){const n=e.ofType;return"Array"===t.kind?N(t.values||[],(e=>S(n,e))):S(n,t)}if(e instanceof o.zP){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=N(t.members,(t=>{var r;const i=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[i]=!0;const o=e.getFields()[i];return o?S(o?o.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]}));for(const i of Object.keys(e.getFields())){const a=e.getFields()[i];!n[i]&&a.type instanceof o.Gc&&!a.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof o.Zb||e instanceof o.Ag)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(n=e.parseValue(t.value))||n!=n)?[[t,`Expected value of type "${e}".`]]:[];var n}function T(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function N(e,t){return Array.prototype.concat.apply([],e.map(t))}i().registerHelper("lint","graphql-variables",((e,t,n)=>{if(!e)return[];let r;try{r=function(e){a=e,s=e.length,l=u=c=-1,E(),w();const t=p();return v("EOF"),t}(e)}catch(e){if(e instanceof y)return[T(n,e.position,e.message)];throw e}const{variableToType:i}=t;return i?function(e,t,n){var r;const i=[];for(const o of n.members)if(o){const n=null===(r=o.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,n]of S(a,o.value))i.push(T(e,t,n));else i.push(T(e,o.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return i}(n,i,r):[]}))},1181:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{V:()=>r})},1274:(e,t,n)=>{!function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("changes",c),t.off("viewportChange",d),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",c),t.off("optionChange",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",l),t.on("changes",c),t.on("viewportChange",d),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",c),t.on("optionChange",u))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var s=e.state.foldGutter.options,l=n-1,u=e.foldOption(s,"minFoldSize"),c=e.foldOption(s,"rangeFinder"),d="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),f="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,(function(n){++l;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,l)){if(d&&a&&d.test(a.className))return;o=i(s.indicatorFolded)}else{var p=t(l,0),h=c&&c(e,p);if(h&&h.to.line-h.from.line>=u){if(f&&a&&f.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e,t){"mode"==t&&c(e)}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}(n(5237),n(8948))},1421:()=>{},1561:(e,t,n)=>{!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);var n=Math.max(0,t.clientY-i.offsetHeight-5),r=Math.max(0,Math.min(t.clientX+5,i.ownerDocument.defaultView.innerWidth-i.offsetWidth));i.style.top=n+"px",i.style.left=r+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var l=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)}),400);e.on(o,"mouseout",s)}function i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),u=[],c=0;c<s.length;++c){var d=s[c].__annotation;d&&u.push(d)}u.length&&function(e,t,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a];o.appendChild(l(s))}r(e,n,o,i)}(e,u,t)}}(e,t)},this.waitingFor=0}var o={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function a(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&function(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function s(t,n,i,o,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,o&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",(function(e){r(t,e,n,l)})),s}function l(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function u(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)!function(t,n){var r=t.state.lint,i=++r.waitingFor;function o(){i=-1,t.off("change",o)}t.on("change",o),n(t.getValue(),(function(n,a){t.off("change",o),r.waitingFor==i&&(a&&n instanceof e&&(n=a),t.operation((function(){c(t,n)})))}),r.linterOptions,t)}(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){c(t,e)}))})):t.operation((function(){c(t,o)}))}}}function c(e,n){var r,i,o=e.state.lint;if(o){var u=o.options;a(e);for(var c=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),d=0;d<c.length;++d){var f=c[d];if(f){for(var p=null,h=o.hasGutter&&document.createDocumentFragment(),m=0;m<f.length;++m){var g=f[m],v=g.severity;v||(v="error"),i=v,p="error"==(r=p)?r:i,u.formatAnnotation&&(g=u.formatAnnotation(g)),o.hasGutter&&h.appendChild(l(g)),g.to&&o.marked.push(e.markText(g.from,g.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+v,__annotation:g}))}o.hasGutter&&e.setGutterMarker(d,t,s(e,h,p,f.length>1,u.tooltips)),u.highlightLines&&e.addLineClass(d,"wrap","CodeMirror-lint-line-"+p)}}u.onUpdateLinting&&u.onUpdateLinting(n,c,e)}}function d(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){u(e)}),t.options.delay))}e.defineOption("lint",!1,(function(n,r,o){if(o&&o!=e.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",d),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),l=!1,c=0;c<s.length;++c)s[c]==t&&(l=!0);var f=n.state.lint=new i(n,r,l);f.options.lintOnChange&&n.on("change",d),0!=f.options.tooltips&&"gutter"!=f.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",f.onMouseOver),u(n)}})),e.defineExtension("performLint",(function(){u(this)}))}(n(5237))},1578:(e,t,n)=>{"use strict";n.d(t,{n8:()=>i,sP:()=>o,uI:()=>a});var r=n(4538);function i(e,t){return e===t||((0,r.bd)(e)&&(0,r.bd)(t)||!(!(0,r.Fs)(e)||!(0,r.Fs)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||((0,r.bd)(n)?!!(0,r.bd)(t)&&o(e,t.ofType,n.ofType):(0,r.bd)(t)?o(e,t.ofType,n):(0,r.Fs)(n)?!!(0,r.Fs)(t)&&o(e,t.ofType,n.ofType):!(0,r.Fs)(t)&&(0,r.Lc)(n)&&((0,r.kD)(t)||(0,r.YQ)(t))&&e.isSubType(n,t))}function a(e,t,n){return t===n||((0,r.Lc)(t)?(0,r.Lc)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.Lc)(n)&&e.isSubType(n,t))}},1728:(e,t,n)=>{function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i,o,a=r(n(6540));const{useRef:s,useEffect:l,isValidElement:u}=a,c=(null!==(i=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)&&void 0!==i||a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Symbol.for("react.memo_cache_sentinel")),d="function"==typeof(null===(o=a.__COMPILER_RUNTIME)||void 0===o?void 0:o.c)?a.__COMPILER_RUNTIME.c:function(e){return a.useMemo((()=>{const t=new Array(e);for(let n=0;n<e;n++)t[n]=c;return t[c]=!0,t}),[])},f={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach((e=>{f[e]=()=>{throw new Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}}));var p;f.useMemoCache=e=>{throw new Error("React Compiler internal invariant violation: unexpected null dispatcher")},function(e){e[e.PushGuardContext=0]="PushGuardContext",e[e.PopGuardContext=1]="PopGuardContext",e[e.PushExpectHook=2]="PushExpectHook",e[e.PopExpectHook=3]="PopExpectHook"}(p||(p={}));new Map,new Set;t.c=d},2239:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(9779);function i(e,t){const n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=i.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.p)(e,t)}))}class o{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=a(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=a(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const l=this._rows;for(let e=0;e<=s;e++)l[0][e]=e;for(let e=1;e<=o;e++){const n=l[(e-1)%3],o=l[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 u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=l[(e-2)%3][t-2];u=Math.min(u,n+1)}u<a&&(a=u),o[t]=u}if(a>t)return}const u=l[o%3][s];return u<=t?u:void 0}}function a(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},2242:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}n.d(t,{K:()=>r})},2300:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,I:()=>a});var r=n(6286),i=n(5571),o=n(9646);function a(e){if(null!=e||(0,r.U)(!1,"Must provide name."),"string"==typeof e||(0,r.U)(!1,"Expected name to be a string."),0===e.length)throw new i.eO("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,o.xr)(e.charCodeAt(t)))throw new i.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.un)(e.charCodeAt(0)))throw new i.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function s(e){if("true"===e||"false"===e||"null"===e)throw new i.eO(`Enum values cannot be named: ${e}`);return a(e)}},2327:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,S:()=>d});var r=n(475),i=n(3298),o=n(4705),a=n(4538),s=n(9488),l=n(9581);class u{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:c,t&&((0,a.dX)(t)&&this._inputTypeStack.push(t),(0,a.ML)(t)&&this._parentTypeStack.push(t),(0,a.oH)(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.b.SELECTION_SET:{const e=(0,a.MR)(this.getType());this._parentTypeStack.push((0,a.ML)(e)?e:void 0);break}case i.b.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.oH)(i)?i:void 0);break}case i.b.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.b.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.YQ)(n)?n:void 0);break}case i.b.INLINE_FRAGMENT:case i.b.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,l.v)(t,n):(0,a.MR)(this.getType());this._typeStack.push((0,a.oH)(r)?r:void 0);break}case i.b.VARIABLE_DEFINITION:{const n=(0,l.v)(t,e.type);this._inputTypeStack.push((0,a.dX)(n)?n:void 0);break}case i.b.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.dX)(r)?r:void 0);break}case i.b.LIST:{const e=(0,a.yl)(this.getInputType()),t=(0,a.Fs)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.dX)(t)?t:void 0);break}case i.b.OBJECT_FIELD:{const t=(0,a.MR)(this.getInputType());let n,r;(0,a.qK)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.dX)(n)?n:void 0);break}case i.b.ENUM:{const t=(0,a.MR)(this.getInputType());let n;(0,a.oF)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.b.SELECTION_SET:this._parentTypeStack.pop();break;case i.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.b.DIRECTIVE:this._directive=null;break;case i.b.OPERATION_DEFINITION:case i.b.INLINE_FRAGMENT:case i.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.b.LIST:case i.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.b.ENUM:this._enumValue=null}}}function c(e,t,n){const r=n.name.value;return r===s.S0.name&&e.getQueryType()===t?s.S0:r===s.Xe.name&&e.getQueryType()===t?s.Xe:r===s.of.name&&(0,a.ML)(t)?s.of:(0,a.YQ)(t)||(0,a.kD)(t)?t.getFields()[r]:void 0}function d(e,t){return{enter(...n){const i=n[0];e.enter(i);const a=(0,o.XO)(t,i.kind).enter;if(a){const o=a.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.Ll)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.XO)(t,r.kind).leave;let a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}},2369:(e,t,n)=>{"use strict";var r;n.d(t,{H:()=>r}),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"}(r||(r={}))},2475:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{Z:()=>r})},2551:(e,t,n)=>{"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),N=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=F&&e[F]||e["@@iterator"])?e:null}var R,P=Object.assign;function j(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var V=!1;function B(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function U(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case w:return"Portal";case S:return"Profiler";case C:return"StrictMode";case D:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return P({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return P({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function oe(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=P({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,ke=null,Ce=null;function Se(e){if(e=gi(e)){if("function"!=typeof we)throw Error(o(280));var t=e.stateNode;t&&(t=yi(t),we(e.stateNode,e.type,t))}}function Te(e){ke?Ce?Ce.push(e):Ce=[e]:ke=e}function Ne(){if(ke){var e=ke,t=Ce;if(Ce=ke=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function _e(e,t){return e(t)}function De(){}var Ae=!1;function Oe(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return _e(e,t,n)}finally{Ae=!1,(null!==ke||null!==Ce)&&(De(),Ne())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=yi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ie=!1;if(c)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ce){Ie=!1}function Me(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Re=!1,Pe=null,je=!1,Ve=null,Be={onError:function(e){Re=!0,Pe=e}};function Ue(e,t,n,r,i,o,a,s,l){Re=!1,Pe=null,Me.apply(Be,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function qe(e){if(ze(e)!==e)throw Error(o(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return qe(i),e;if(a===r)return qe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Xe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,Et,wt,kt,Ct,St=!1,Tt=[],Nt=null,_t=null,Dt=null,At=new Map,Ot=new Map,Lt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=gi(t))&&Et(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Rt(e){var t=mi(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=gi(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function jt(e,t,n){Pt(e)&&n.delete(t)}function Vt(){St=!1,null!==Nt&&Pt(Nt)&&(Nt=null),null!==_t&&Pt(_t)&&(_t=null),null!==Dt&&Pt(Dt)&&(Dt=null),At.forEach(jt),Ot.forEach(jt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function Ut(e){function t(t){return Bt(t,e)}if(0<Tt.length){Bt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Bt(Nt,e),null!==_t&&Bt(_t,e),null!==Dt&&Bt(Dt,e),At.forEach(t),Ot.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Rt(n),null===n.blockedOn&&Lt.shift()}var zt=x.ReactCurrentBatchConfig;function Ht(e,t,n,r){var i=yt,o=zt.transition;zt.transition=null;try{yt=1,$t(e,t,n,r)}finally{yt=i,zt.transition=o}}function qt(e,t,n,r){var i=yt,o=zt.transition;zt.transition=null;try{yt=4,$t(e,t,n,r)}finally{yt=i,zt.transition=o}}function $t(e,t,n,r){var i=Gt(e,t,n,r);if(null===i)zr(e,t,r,Wt,n),Ft(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,i),!0;case"dragenter":return _t=Mt(_t,e,t,n,r,i),!0;case"mouseover":return Dt=Mt(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return At.set(o,Mt(At.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ot.set(o,Mt(Ot.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<It.indexOf(e)){for(;null!==i;){var o=gi(i);if(null!==o&&xt(o),null===(o=Gt(e,t,n,r))&&zr(e,t,r,Wt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else zr(e,t,r,null,n)}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=mi(e=Ee(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Qt=null,Xt=null;function Zt(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?en:tn,this.isPropagationStopped=tn,this}return P(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=nn(sn),un=P({},sn,{view:0,detail:0}),cn=nn(un),dn=P({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),fn=nn(dn),pn=nn(P({},dn,{dataTransfer:0})),hn=nn(P({},un,{relatedTarget:0})),mn=nn(P({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=P({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=nn(gn),yn=nn(P({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function kn(){return wn}var Cn=P({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=nn(Cn),Tn=nn(P({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=nn(P({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),_n=nn(P({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=P({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=nn(Dn),On=[9,13,27,32],Ln=c&&"CompositionEvent"in window,In=null;c&&"documentMode"in document&&(In=document.documentMode);var Fn=c&&"TextEvent"in window&&!In,Mn=c&&(!Ln||In&&8<In&&11>=In),Rn=String.fromCharCode(32),Pn=!1;function jn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Hn(e,t,n,r){Te(r),0<(t=qr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Wn(e){Rr(e,0)}function Gn(e){if(G(vi(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Qn;if(c){var Xn="oninput"in document;if(!Xn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Xn="function"==typeof Zn.oninput}Qn=Xn}else Qn=!1;Yn=Qn&&(!document.documentMode||9<document.documentMode)}function Jn(){qn&&(qn.detachEvent("onpropertychange",er),$n=qn=null)}function er(e){if("value"===e.propertyName&&Gn($n)){var t=[];Hn(t,$n,e,Ee(e)),Oe(Wn,t)}}function tr(e,t,n){"focusin"===e?(Jn(),$n=n,(qn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Jn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function rr(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!or(e[i],t[i]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=lr(n,o);var a=lr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=c&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==K(r)||(r="selectionStart"in(r=hr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ar(gr,r)||(gr=r,0<(r=qr(mr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},Er={},wr={};function kr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return Er[e]=n[t];return e}c&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=kr("animationend"),Sr=kr("animationiteration"),Tr=kr("animationstart"),Nr=kr("transitionend"),_r=new Map,Dr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){_r.set(e,t),l(t,[e])}for(var Or=0;Or<Dr.length;Or++){var Lr=Dr[Or];Ar(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Ar(Cr,"onAnimationEnd"),Ar(Sr,"onAnimationIteration"),Ar(Tr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Nr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Ue.apply(this,arguments),Re){if(!Re)throw Error(o(198));var c=Pe;Re=!1,Pe=null,je||(je=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Rr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Mr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Mr(i,s,u),o=l}}}if(je)throw e=Ve,je=!1,Ve=null,e}function Pr(e,t){var n=t[fi];void 0===n&&(n=t[fi]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||jr(t,!1,e),jr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,jr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Kt(t)){case 1:var i=Ht;break;case 4:i=qt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=mi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe((function(){var r=o,i=Ee(n),a=[];e:{var s=_r.get(e);if(void 0!==s){var l=ln,u=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":u="focus",l=hn;break;case"focusout":u="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Cr:case Sr:case Tr:l=mn;break;case Nr:l=_n;break;case"scroll":l=cn;break;case"wheel":l=An;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Le(h,f))&&c.push(Hr(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!mi(u)&&!u[di])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?mi(u):null)&&(u!==(d=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:vi(l),p=null==u?s:vi(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,mi(i)===r&&((c=new c(f,h+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=$r(p))h++;for(p=0,m=f;m;m=$r(m))p++;for(;0<h-p;)c=$r(c),h--;for(;0<p-h;)f=$r(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==l&&Wr(a,s,l,c,!1),null!==u&&null!==d&&Wr(a,d,u,c,!0)}if("select"===(l=(s=r?vi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Kn;else if(zn(s))if(Yn)g=ir;else{g=nr;var v=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=rr);switch(g&&(g=g(e,r))?Hn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?vi(r):window,e){case"focusin":(zn(v)||"true"===v.contentEditable)&&(hr=v,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(a,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=Zt()):(Qt="value"in(Yt=i)?Yt.value:Yt.textContent,Bn=!0)),0<(v=qr(r,b)).length&&(b=new yn(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=Vn(n)))&&(b.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Pn=!0,Rn);case"textInput":return(e=t.data)===Rn&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Ln&&jn(e,t)?(e=Zt(),Xt=Qt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(i=new yn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Rr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Le(e,n))&&r.unshift(Hr(e,o,i)),null!=(o=Le(e,t))&&r.push(Hr(e,o,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Le(n,o))&&a.unshift(Hr(n,l,s)):i||null!=(l=Le(n,o))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Kr,"")}function Qr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(o(425))}function Xr(){}var Zr=null;function Jr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ei="function"==typeof setTimeout?setTimeout:void 0,ti="function"==typeof clearTimeout?clearTimeout:void 0,ni="function"==typeof Promise?Promise:void 0,ri="function"==typeof queueMicrotask?queueMicrotask:void 0!==ni?function(e){return ni.resolve(null).then(e).catch(ii)}:ei;function ii(e){setTimeout((function(){throw e}))}function oi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ut(t)}function ai(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function si(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var li=Math.random().toString(36).slice(2),ui="__reactFiber$"+li,ci="__reactProps$"+li,di="__reactContainer$"+li,fi="__reactEvents$"+li,pi="__reactListeners$"+li,hi="__reactHandles$"+li;function mi(e){var t=e[ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[di]||n[ui]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=si(e);null!==e;){if(n=e[ui])return n;e=si(e)}return t}n=(e=n).parentNode}return null}function gi(e){return!(e=e[ui]||e[di])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function vi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function yi(e){return e[ci]||null}var bi=[],xi=-1;function Ei(e){return{current:e}}function wi(e){0>xi||(e.current=bi[xi],bi[xi]=null,xi--)}function ki(e,t){xi++,bi[xi]=e.current,e.current=t}var Ci={},Si=Ei(Ci),Ti=Ei(!1),Ni=Ci;function _i(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Di(e){return null!=e.childContextTypes}function Ai(){wi(Ti),wi(Si)}function Oi(e,t,n){if(Si.current!==Ci)throw Error(o(168));ki(Si,t),ki(Ti,n)}function Li(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return P({},n,r)}function Ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Ni=Si.current,ki(Si,e),ki(Ti,Ti.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Li(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,wi(Ti),wi(Si),ki(Si,e)):wi(Ti),ki(Ti,n)}var Mi=null,Ri=!1,Pi=!1;function ji(e){null===Mi?Mi=[e]:Mi.push(e)}function Vi(){if(!Pi&&null!==Mi){Pi=!0;var e=0,t=yt;try{var n=Mi;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Mi=null,Ri=!1}catch(t){throw null!==Mi&&(Mi=Mi.slice(e+1)),Ge(Je,Vi),t}finally{yt=t,Pi=!1}}return null}var Bi=x.ReactCurrentBatchConfig;function Ui(e,t){if(e&&e.defaultProps){for(var n in t=P({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var zi=Ei(null),Hi=null,qi=null,$i=null;function Wi(){$i=qi=Hi=null}function Gi(e){var t=zi.current;wi(zi),e._currentValue=t}function Ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yi(e,t){Hi=e,$i=qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Qi(e){var t=e._currentValue;if($i!==e)if(e={context:e,memoizedValue:t,next:null},null===qi){if(null===Hi)throw Error(o(308));qi=e,Hi.dependencies={lanes:0,firstContext:e}}else qi=qi.next=e;return t}var Xi=null,Zi=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function to(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function no(e,t){var n=e.updateQueue;null!==n&&(n=n.shared,null!==yl&&1&e.mode&&!(2&vl)?(null===(e=n.interleaved)?(t.next=t,null===Xi?Xi=[n]:Xi.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function ro(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function io(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oo(e,t,n,r){var i=e.updateQueue;Zi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=P({},d,f);break e;case 2:Zi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Sl|=a,e.lanes=a,e.memoizedState=d}}function ao(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var so=(new r.Component).refs;function lo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:P({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var uo={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=zl(),i=Hl(e),o=to(r,i);o.payload=t,null!=n&&(o.callback=n),no(e,o),null!==(t=ql(e,i,r))&&ro(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=zl(),i=Hl(e),o=to(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),no(e,o),null!==(t=ql(e,i,r))&&ro(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zl(),r=Hl(e),i=to(n,r);i.tag=2,null!=t&&(i.callback=t),no(e,i),null!==(t=ql(e,r,n))&&ro(t,e,r)}};function co(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ar(n,r)&&ar(i,o))}function fo(e,t,n){var r=!1,i=Ci,o=t.contextType;return"object"==typeof o&&null!==o?o=Qi(o):(i=Di(t)?Ni:Si.current,o=(r=null!=(r=t.contextTypes))?_i(e,i):Ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=uo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function po(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&uo.enqueueReplaceState(t,t.state,null)}function ho(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=so,Ji(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Qi(o):(o=Di(t)?Ni:Si.current,i.context=_i(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(lo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&uo.enqueueReplaceState(i,i.state,null),oo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}var mo=[],go=0,vo=null,yo=0,bo=[],xo=0,Eo=null,wo=1,ko="";function Co(e,t){mo[go++]=yo,mo[go++]=vo,vo=e,yo=t}function So(e,t,n){bo[xo++]=wo,bo[xo++]=ko,bo[xo++]=Eo,Eo=e;var r=wo;e=ko;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,wo=1<<32-at(t)+i|n<<i|r,ko=o+e}else wo=1<<o|n<<i|r,ko=e}function To(e){null!==e.return&&(Co(e,1),So(e,1,0))}function No(e){for(;e===vo;)vo=mo[--go],mo[go]=null,yo=mo[--go],mo[go]=null;for(;e===Eo;)Eo=bo[--xo],bo[xo]=null,ko=bo[--xo],bo[xo]=null,wo=bo[--xo],bo[xo]=null}var _o=null,Do=null,Ao=!1,Oo=null;function Lo(e,t){var n=xu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,_o=e,Do=ai(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,_o=e,Do=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Eo?{id:wo,overflow:ko}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,_o=e,Do=null,!0);default:return!1}}function Fo(e){return!(!(1&e.mode)||128&e.flags)}function Mo(e){if(Ao){var t=Do;if(t){var n=t;if(!Io(e,t)){if(Fo(e))throw Error(o(418));t=ai(n.nextSibling);var r=_o;t&&Io(e,t)?Lo(r,n):(e.flags=-4097&e.flags|2,Ao=!1,_o=e)}}else{if(Fo(e))throw Error(o(418));e.flags=-4097&e.flags|2,Ao=!1,_o=e}}}function Ro(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;_o=e}function Po(e){if(e!==_o)return!1;if(!Ao)return Ro(e),Ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Jr(e.type,e.memoizedProps)),t&&(t=Do)){if(Fo(e)){for(e=Do;e;)e=ai(e.nextSibling);throw Error(o(418))}for(;t;)Lo(e,t),t=ai(t.nextSibling)}if(Ro(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Do=ai(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Do=null}}else Do=_o?ai(e.stateNode.nextSibling):null;return!0}function jo(){Do=_o=null,Ao=!1}function Vo(e){null===Oo?Oo=[e]:Oo.push(e)}function Bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===so&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Uo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zo(e){return(0,e._init)(e._payload)}function Ho(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=wu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Tu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===L&&zo(o)===t.type)?((r=i(t,n.props)).ref=Bo(e,t,n),r.return=e,r):((r=ku(n.type,n.key,n.props,null,e.mode,r)).ref=Bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Cu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Tu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=ku(t.type,t.key,t.props,null,e.mode,n)).ref=Bo(e,null,t),n.return=e,n;case w:return(t=Nu(t,e.mode,n)).return=e,t;case L:return f(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Cu(t,e.mode,n,null)).return=e,t;Uo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===i?u(e,t,n,r):null;case w:return n.key===i?c(e,t,n,r):null;case L:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||M(n))return null!==i?null:d(e,t,n,r,null);Uo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case L:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,i,null);Uo(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(i,d),Ao&&Co(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return Ao&&Co(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),Ao&&Co(i,m),u}function g(i,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),Ao&&Co(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return Ao&&Co(i,g),c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),Ao&&Co(i,g),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===L&&zo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Bo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((o=Cu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=ku(a.type,a.key,a.props,null,r.mode,l)).ref=Bo(r,o,a),l.return=r,r=l)}return s(r);case w:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Nu(a,r.mode,l)).return=r,r=o}return s(r);case L:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(M(a))return g(r,o,a,l);Uo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Tu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var qo=Ho(!0),$o=Ho(!1),Wo={},Go=Ei(Wo),Ko=Ei(Wo),Yo=Ei(Wo);function Qo(e){if(e===Wo)throw Error(o(174));return e}function Xo(e,t){switch(ki(Yo,t),ki(Ko,e),ki(Go,Wo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wi(Go),ki(Go,t)}function Zo(){wi(Go),wi(Ko),wi(Yo)}function Jo(e){Qo(Yo.current);var t=Qo(Go.current),n=le(t,e.type);t!==n&&(ki(Ko,e),ki(Go,n))}function ea(e){Ko.current===e&&(wi(Go),wi(Ko))}var ta=Ei(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function ia(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var oa=x.ReactCurrentDispatcher,aa=x.ReactCurrentBatchConfig,sa=0,la=null,ua=null,ca=null,da=!1,fa=!1,pa=0,ha=0;function ma(){throw Error(o(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function va(e,t,n,r,i,a){if(sa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(o(301));a+=1,ca=ua=null,t.updateQueue=null,oa.current=ts,e=n(r,i)}while(fa)}if(oa.current=Za,t=null!==ua&&null!==ua.next,sa=0,ca=ua=la=null,da=!1,t)throw Error(o(300));return e}function ya(){var e=0!==pa;return pa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function xa(){if(null===ua){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,ua=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function Ea(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=xa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ua,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((sa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,la.lanes|=d,Sl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,or(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,la.lanes|=a,Sl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=xa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);or(a,t.memoizedState)||(ys=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function Sa(e,t){var n=la,r=xa(),i=t(),a=!or(r.memoizedState,i);if(a&&(r.memoizedState=i,ys=!0),r=r.queue,Ra(_a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Oa(9,Na.bind(null,n,r,i,t),void 0,null),null===yl)throw Error(o(349));30&sa||Ta(n,t,i)}return i}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&ql(e,1,-1)}function _a(e,t,n){return n((function(){Da(t)&&ql(e,1,-1)}))}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(e){return!0}}function Aa(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,la,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return xa().memoizedState}function Ia(e,t,n,r){var i=ba();la.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function Fa(e,t,n,r){var i=xa();r=void 0===r?null:r;var o=void 0;if(null!==ua){var a=ua.memoizedState;if(o=a.destroy,null!==r&&ga(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}la.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Ma(e,t){return Ia(8390656,8,e,t)}function Ra(e,t){return Fa(2048,8,e,t)}function Pa(e,t){return Fa(4,2,e,t)}function ja(e,t){return Fa(4,4,e,t)}function Va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Fa(4,4,Va.bind(null,t,e),n)}function Ua(){}function za(e,t){var n=xa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=xa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qa(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{yt=n,aa.transition=r}}function $a(){return xa().memoizedState}function Wa(e,t,n){var r=Hl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e)?Ya(t,n):(Qa(e,t,n),null!==(e=ql(e,r,n=zl()))&&Xa(e,t,r))}function Ga(e,t,n){var r=Hl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Ya(t,i);else{Qa(e,t,i);var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,or(s,a))return}catch(e){}null!==(e=ql(e,r,n=zl()))&&Xa(e,t,r)}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ya(e,t){fa=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){null!==yl&&1&e.mode&&!(2&vl)?(null===(e=t.interleaved)?(n.next=n,null===Xi?Xi=[t]:Xi.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Za={readContext:Qi,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useInsertionEffect:ma,useLayoutEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useMutableSource:ma,useSyncExternalStore:ma,useId:ma,unstable_isNewReconciler:!1},Ja={readContext:Qi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Qi,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ia(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ia(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wa.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Aa,useDebugValue:Ua,useDeferredValue:function(e){var t=Aa(e),n=t[0],r=t[1];return Ma((function(){var t=aa.transition;aa.transition={};try{r(e)}finally{aa.transition=t}}),[e]),n},useTransition:function(){var e=Aa(!1),t=e[0];return e=qa.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,i=ba();if(Ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===yl)throw Error(o(349));30&sa||Ta(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ma(_a.bind(null,r,a,e),[e]),r.flags|=2048,Oa(9,Na.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=yl.identifierPrefix;if(Ao){var n=ko;t=":"+t+"R"+(n=(wo&~(1<<32-at(wo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Qi,useCallback:za,useContext:Qi,useEffect:Ra,useImperativeHandle:Ba,useInsertionEffect:Pa,useLayoutEffect:ja,useMemo:Ha,useReducer:wa,useRef:La,useState:function(){return wa(Ea)},useDebugValue:Ua,useDeferredValue:function(e){var t=wa(Ea),n=t[0],r=t[1];return Ra((function(){var t=aa.transition;aa.transition={};try{r(e)}finally{aa.transition=t}}),[e]),n},useTransition:function(){return[wa(Ea)[0],xa().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:$a,unstable_isNewReconciler:!1},ts={readContext:Qi,useCallback:za,useContext:Qi,useEffect:Ra,useImperativeHandle:Ba,useInsertionEffect:Pa,useLayoutEffect:ja,useMemo:Ha,useReducer:ka,useRef:La,useState:function(){return ka(Ea)},useDebugValue:Ua,useDeferredValue:function(e){var t=ka(Ea),n=t[0],r=t[1];return Ra((function(){var t=aa.transition;aa.transition={};try{r(e)}finally{aa.transition=t}}),[e]),n},useTransition:function(){return[ka(Ea)[0],xa().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Sa,useId:$a,unstable_isNewReconciler:!1};function ns(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function rs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var is,os,as,ss,ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=to(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,Il=r),rs(0,t)},n}function cs(e,t,n){(n=to(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){rs(0,t),"function"!=typeof r&&(null===Fl?Fl=new Set([this]):Fl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ds(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ls;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=hu.bind(null,e,t,n),t.then(e,e))}function fs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ps(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=to(-1,1)).tag=2,no(n,t))),n.lanes|=1),e)}function hs(e,t){if(!Ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ms(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gs(e,t,n){var r=t.pendingProps;switch(No(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ms(t),null;case 1:case 17:return Di(t.type)&&Ai(),ms(t),null;case 3:return r=t.stateNode,Zo(),wi(Ti),wi(Si),ia(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Oo&&(Yl(Oo),Oo=null))),os(e,t),ms(t),null;case 5:ea(t);var i=Qo(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)as(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return ms(t),null}if(e=Qo(Go.current),Po(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ui]=t,r[ci]=a,e=!!(1&t.mode),n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(i=0;i<Ir.length;i++)Pr(Ir[i],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":Q(r,a),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Pr("invalid",r);break;case"textarea":ie(r,a),Pr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(Qr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(Qr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Pr("scroll",r)}switch(n){case"input":W(r),J(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ui]=t,e[ci]=r,is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ir.length;i++)Pr(Ir[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":Q(e,r),i=Y(e,r),Pr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=P({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Pr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Pr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":W(e),J(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ms(t),null;case 6:if(e&&null!=t.stateNode)ss(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Qo(Yo.current),Qo(Go.current),Po(t)){if(r=t.stateNode,n=t.memoizedProps,r[ui]=t,(a=r.nodeValue!==n)&&null!==(e=_o))switch(l=!!(1&e.mode),e.tag){case 3:Qr(r.nodeValue,n,l);break;case 5:!0!==e.memoizedProps[void 0]&&Qr(r.nodeValue,n,l)}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ui]=t,t.stateNode=r}return ms(t),null;case 13:if(wi(ta),r=t.memoizedState,Ao&&null!==Do&&1&t.mode&&!(128&t.flags)){for(r=Do;r;)r=ai(r.nextSibling);return jo(),t.flags|=98560,t}if(null!==r&&null!==r.dehydrated){if(r=Po(t),null===e){if(!r)throw Error(o(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(o(317));r[ui]=t}else jo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;return ms(t),null}return null!==Oo&&(Yl(Oo),Oo=null),128&t.flags?(t.lanes=n,t):(r=null!==r,n=!1,null===e?Po(t):n=null!==e.memoizedState,r&&!n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===kl&&(kl=3):iu())),null!==t.updateQueue&&(t.flags|=4),ms(t),null);case 4:return Zo(),os(e,t),null===e&&Br(t.stateNode.containerInfo),ms(t),null;case 10:return Gi(t.type._context),ms(t),null;case 19:if(wi(ta),null===(a=t.memoizedState))return ms(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)hs(a,!1);else{if(0!==kl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=na(e))){for(t.flags|=128,hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ta,1&ta.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Ol&&(t.flags|=128,r=!0,hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=na(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!Ao)return ms(t),null}else 2*Xe()-a.renderingStartTime>Ol&&1073741824!==n&&(t.flags|=128,r=!0,hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ta.current,ki(ta,r?1&n|2:1&n),t):(ms(t),null);case 22:case 23:return eu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&El)&&(ms(t),6&t.subtreeFlags&&(t.flags|=8192)):ms(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},os=function(){},as=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Qo(Go.current);var o,a=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),a=[];break;case"select":i=P({},i,{value:void 0}),r=P({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Pr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},ss=function(e,t,n,r){n!==r&&(t.flags|=4)};var vs=x.ReactCurrentOwner,ys=!1;function bs(e,t,n,r){t.child=null===e?$o(t,null,n,r):qo(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var o=t.ref;return Yi(t,i),r=va(e,t,n,r,o,i),n=ya(),null===e||ys?(Ao&&n&&To(t),t.flags|=1,bs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Es(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Eu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ku(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ws(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return Bs(e,t,i)}return t.flags|=1,(e=wu(o,r)).ref=t.ref,e.return=t,t.child=e}function ws(e,t,n,r,i){if(null!==e&&ar(e.memoizedProps,r)&&e.ref===t.ref){if(ys=!1,!(e.lanes&i))return t.lanes=e.lanes,Bs(e,t,i);131072&e.flags&&(ys=!0)}return Ss(e,t,n,r,i)}function ks(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,ki(wl,El),El|=e,null;t.memoizedState={baseLanes:0,cachePool:null},r=null!==o?o.baseLanes:n,ki(wl,El),El|=r}else t.memoizedState={baseLanes:0,cachePool:null},ki(wl,El),El|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(wl,El),El|=r;return bs(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,i){var o=Di(n)?Ni:Si.current;return o=_i(t,o),Yi(t,i),n=va(e,t,n,r,o,i),r=ya(),null===e||ys?(Ao&&r&&To(t),t.flags|=1,bs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Ts(e,t,n,r,i){if(Di(n)){var o=!0;Ii(t)}else o=!1;if(Yi(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),fo(t,n,r),ho(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Qi(u):_i(t,u=Di(n)?Ni:Si.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&po(t,a,r,u),Zi=!1;var f=t.memoizedState;a.state=f,oo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ti.current||Zi?("function"==typeof c&&(lo(t,n,c,r),l=t.memoizedState),(s=Zi||co(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,eo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ui(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Qi(l):_i(t,l=Di(n)?Ni:Si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&po(t,a,r,l),Zi=!1,f=t.memoizedState,a.state=f,oo(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Ti.current||Zi?("function"==typeof p&&(lo(t,n,p,r),h=t.memoizedState),(u=Zi||co(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,o,i)}function Ns(e,t,n,r,i,o){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Fi(t,n,!1),Bs(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=qo(t,e.child,null,o),t.child=qo(t,null,s,o)):bs(e,t,s,o),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function _s(e){var t=e.stateNode;t.pendingContext?Oi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oi(0,t.context,!1),Xo(e,t.containerInfo)}function Ds(e,t,n,r,i){return jo(),Vo(i),t.flags|=256,bs(e,t,n,r),t.child}var As={dehydrated:null,treeContext:null,retryLane:0};function Os(e){return{baseLanes:e,cachePool:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ta.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ta,1&a),null===e)return Mo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,s?(i=t.mode,s=t.child,a={mode:"hidden",children:a},1&i||null===s?s=Su(a,i,0,null):(s.childLanes=0,s.pendingProps=a),e=Cu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Os(n),t.memoizedState=As,e):Is(t,a));if(null!==(a=e.memoizedState)){if(null!==(r=a.dehydrated)){if(l)return 256&t.flags?(t.flags&=-257,Rs(e,t,n,Error(o(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,a=t.mode,i=Su({mode:"visible",children:i.children},a,0,null),(s=Cu(s,a,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,1&t.mode&&qo(t,e.child,null,n),t.child.memoizedState=Os(n),t.memoizedState=As,s);if(1&t.mode)if("$!"===r.data)t=Rs(e,t,n,Error(o(419)));else if(i=!!(n&e.childLanes),ys||i){if(null!==(i=yl)){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(i=s&(i.suspendedLanes|n)?0:s)&&i!==a.retryLane&&(a.retryLane=i,ql(e,i,-1))}iu(),t=Rs(e,t,n,Error(o(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=gu.bind(null,e),r._reactRetry=t,t=null):(n=a.treeContext,Do=ai(r.nextSibling),_o=t,Ao=!0,Oo=null,null!==n&&(bo[xo++]=wo,bo[xo++]=ko,bo[xo++]=Eo,wo=n.id,ko=n.overflow,Eo=t),(t=Is(t,t.pendingProps.children)).flags|=4096);else t=Rs(e,t,n,null);return t}return s?(i=Ms(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Os(n):{baseLanes:a.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=As,i):(n=Fs(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=Ms(e,t,i.children,i.fallback,n),s=t.child,a=e.child.memoizedState,s.memoizedState=null===a?Os(n):{baseLanes:a.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=As,i):(n=Fs(e,t,i.children,n),t.memoizedState=null,n)}function Is(e,t){return(t=Su({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){var i=e.child;return e=i.sibling,n=wu(i,{mode:"visible",children:n}),!(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Ms(e,t,n,r,i){var o=t.mode,a=(e=e.child).sibling,s={mode:"hidden",children:n};return 1&o||t.child===e?(n=wu(e,s)).subtreeFlags=14680064&e.subtreeFlags:((n=t.child).childLanes=0,n.pendingProps=s,t.deletions=null),null!==a?r=wu(a,r):(r=Cu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Rs(e,t,n,r){return null!==r&&Vo(r),qo(t,e.child,null,n),(e=Is(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ps(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ki(e.return,t,n)}function js(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(bs(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ps(e,n,t);else if(19===e.tag)Ps(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ta,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),js(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===na(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}js(t,!0,n,null,o);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Sl|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=wu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(e,t){switch(No(t),t.tag){case 1:return Di(t.type)&&Ai(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),wi(Ti),wi(Si),ia(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(wi(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));jo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wi(ta),null;case 4:return Zo(),null;case 10:return Gi(t.type._context),null;case 22:case 23:return eu(),null;default:return null}}var zs=!1,Hs=!1,qs="function"==typeof WeakSet?WeakSet:Set,$s=null;function Ws(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){pu(e,t,n)}else n.current=null}function Gs(e,t,n){try{n()}catch(n){pu(e,t,n)}}var Ks=!1;function Ys(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Gs(t,n,o)}i=i.next}while(i!==r)}}function Qs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xs(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Zs(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var i=r,o=i.destroy;i=i.tag,void 0!==o&&(2&i||4&i)&&Gs(t,n,o),r=r.next}while(r!==e)}break;case 1:if(Ws(t,n),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){pu(t,n,e)}break;case 5:Ws(t,n);break;case 4:ol(e,t,n)}}function Js(e){var t=e.alternate;null!==t&&(e.alternate=null,Js(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ui],delete t[ci],delete t[fi],delete t[pi],delete t[hi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function el(e){return 5===e.tag||3===e.tag||4===e.tag}function tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||el(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function nl(e){e:{for(var t=e.return;null!==t;){if(el(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,32&n.flags&&(fe(t,""),n.flags&=-33),il(e,n=tl(e),t);break;case 3:case 4:t=n.stateNode.containerInfo,rl(e,n=tl(e),t);break;default:throw Error(o(161))}}function rl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(rl(e,t,n),e=e.sibling;null!==e;)rl(e,t,n),e=e.sibling}function il(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(il(e,t,n),e=e.sibling;null!==e;)il(e,t,n),e=e.sibling}function ol(e,t,n){for(var r,i,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(o(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var l=e,u=a,c=n,d=u;;)if(Zs(l,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===u)break e;for(;null===d.sibling;){if(null===d.return||d.return===u)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(l=r,u=a.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(a.stateNode)}else if(18===a.tag)i?(l=r,u=a.stateNode,8===l.nodeType?oi(l.parentNode,u):1===l.nodeType&&oi(l,u),Ut(l)):oi(r,a.stateNode);else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(Zs(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function al(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return Ys(3,t,t.return),Qs(3,t),void Ys(5,t,t.return);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for("input"===e&&"radio"===r.type&&null!=r.name&&X(n,r),be(e,i),t=be(e,r),i=0;i<a.length;i+=2){var s=a[i],l=a[i+1];"style"===s?ge(n,l):"dangerouslySetInnerHTML"===s?de(n,l):"children"===s?fe(n,l):b(n,s,l,t)}switch(e){case"input":Z(n,r);break;case"textarea":oe(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?ne(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?ne(n,!!r.multiple,r.defaultValue,!0):ne(n,!!r.multiple,r.multiple?[]:"",!1))}n[ci]=r}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void(null!==e&&e.memoizedState.isDehydrated&&Ut(t.stateNode.containerInfo));case 13:case 19:return void function(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new qs),t.forEach((function(t){var r=vu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}(t)}throw Error(o(163))}function sl(e,t,n){$s=e,ll(e,t,n)}function ll(e,t,n){for(var r=!!(1&e.mode);null!==$s;){var i=$s,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||zs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Hs;s=zs;var u=Hs;if(zs=a,(Hs=l)&&!u)for($s=i;null!==$s;)l=(a=$s).child,22===a.tag&&null!==a.memoizedState?dl(i):null!==l?(l.return=a,$s=l):dl(i);for(;null!==o;)$s=o,ll(o,t,n),o=o.sibling;$s=i,zs=s,Hs=u}ul(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,$s=o):ul(e)}}function ul(e){for(;null!==$s;){var t=$s;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Hs||Qs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Hs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ui(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&ao(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}ao(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ut(f)}}}break;default:throw Error(o(163))}Hs||512&t.flags&&Xs(t)}catch(e){pu(t,t.return,e)}}if(t===e){$s=null;break}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}function cl(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$s=n;break}$s=t.return}}function dl(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qs(4,t)}catch(e){pu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){pu(t,i,e)}}var o=t.return;try{Xs(t)}catch(e){pu(t,o,e)}break;case 5:var a=t.return;try{Xs(t)}catch(e){pu(t,a,e)}}}catch(e){pu(t,t.return,e)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var fl,pl=Math.ceil,hl=x.ReactCurrentDispatcher,ml=x.ReactCurrentOwner,gl=x.ReactCurrentBatchConfig,vl=0,yl=null,bl=null,xl=0,El=0,wl=Ei(0),kl=0,Cl=null,Sl=0,Tl=0,Nl=0,_l=null,Dl=null,Al=0,Ol=1/0,Ll=!1,Il=null,Fl=null,Ml=!1,Rl=null,Pl=0,jl=0,Vl=null,Bl=-1,Ul=0;function zl(){return 6&vl?Xe():-1!==Bl?Bl:Bl=Xe()}function Hl(e){return 1&e.mode?2&vl&&0!==xl?xl&-xl:null!==Bi.transition?(0===Ul&&(e=ut,!(4194240&(ut<<=1))&&(ut=64),Ul=e),Ul):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function ql(e,t,n){if(50<jl)throw jl=0,Vl=null,Error(o(185));var r=$l(e,t);return null===r?null:(gt(r,t,n),2&vl&&r===yl||(r===yl&&(!(2&vl)&&(Tl|=t),4===kl&&Ql(r,xl)),Wl(r,n),1===t&&0===vl&&!(1&e.mode)&&(Ol=Xe()+500,Ri&&Vi())),r)}function $l(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Wl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===yl?xl:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Ri=!0,ji(e)}(Xl.bind(null,e)):ji(Xl.bind(null,e)),ri((function(){0===vl&&Vi()})),n=null;else{switch(bt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=yu(n,Gl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gl(e,t){if(Bl=-1,Ul=0,6&vl)throw Error(o(327));var n=e.callbackNode;if(du()&&e.callbackNode!==n)return null;var r=ft(e,e===yl?xl:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=ou(e,r);else{t=r;var i=vl;vl|=2;var a=ru();for(yl===e&&xl===t||(Ol=Xe()+500,tu(e,t));;)try{su();break}catch(t){nu(e,t)}Wi(),hl.current=a,vl=i,null!==bl?t=0:(yl=null,xl=0,t=kl)}if(0!==t){if(2===t&&0!==(i=ht(e))&&(r=i,t=Kl(e,i)),1===t)throw n=Cl,tu(e,0),Ql(e,r),Wl(e,Xe()),n;if(6===t)Ql(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!or(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=ou(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=Kl(e,a))),1!==t)))throw n=Cl,tu(e,0),Ql(e,r),Wl(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:cu(e,Dl);break;case 3:if(Ql(e,r),(130023424&r)===r&&10<(t=Al+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){zl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ei(cu.bind(null,e,Dl),t);break}cu(e,Dl);break;case 4:if(Ql(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pl(r/1960))-r)){e.timeoutHandle=ei(cu.bind(null,e,Dl),r);break}cu(e,Dl);break;default:throw Error(o(329))}}}return Wl(e,Xe()),e.callbackNode===n?Gl.bind(null,e):null}function Kl(e,t){var n=_l;return e.current.memoizedState.isDehydrated&&(tu(e,t).flags|=256),2!==(e=ou(e,t))&&(t=Dl,Dl=n,null!==t&&Yl(t)),e}function Yl(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function Ql(e,t){for(t&=~Nl,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function Xl(e){if(6&vl)throw Error(o(327));du();var t=ft(e,0);if(!(1&t))return Wl(e,Xe()),null;var n=ou(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=Kl(e,r))}if(1===n)throw n=Cl,tu(e,0),Ql(e,t),Wl(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cu(e,Dl),Wl(e,Xe()),null}function Zl(e,t){var n=vl;vl|=1;try{return e(t)}finally{0===(vl=n)&&(Ol=Xe()+500,Ri&&Vi())}}function Jl(e){null!==Rl&&0===Rl.tag&&!(6&vl)&&du();var t=vl;vl|=1;var n=gl.transition,r=yt;try{if(gl.transition=null,yt=1,e)return e()}finally{yt=r,gl.transition=n,!(6&(vl=t))&&Vi()}}function eu(){El=wl.current,wi(wl)}function tu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ti(n)),null!==bl)for(n=bl.return;null!==n;){var r=n;switch(No(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ai();break;case 3:Zo(),wi(Ti),wi(Si),ia();break;case 5:ea(r);break;case 4:Zo();break;case 13:case 19:wi(ta);break;case 10:Gi(r.type._context);break;case 22:case 23:eu()}n=n.return}if(yl=e,bl=e=wu(e.current,null),xl=El=t,kl=0,Cl=null,Nl=Tl=Sl=0,Dl=_l=null,null!==Xi){for(t=0;t<Xi.length;t++)if(null!==(r=(n=Xi[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Xi=null}return e}function nu(e,t){for(;;){var n=bl;try{if(Wi(),oa.current=Za,da){for(var r=la.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}da=!1}if(sa=0,ca=ua=la=null,fa=!1,pa=0,ml.current=null,null===n||null===n.return){kl=1,Cl=t,bl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=xl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=fs(s);if(null!==h){h.flags&=-257,ps(h,s,l,0,t),1&h.mode&&ds(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ds(a,c,t),iu();break e}u=Error(o(426))}else if(Ao&&1&l.mode){var v=fs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ps(v,s,l,0,t),Vo(u);break e}}a=u,4!==kl&&(kl=2),null===_l?_l=[a]:_l.push(a),u=ns(u,l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,io(l,us(0,u,t));break e;case 1:a=u;var y=l.type,b=l.stateNode;if(!(128&l.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Fl&&Fl.has(b)))){l.flags|=65536,t&=-t,l.lanes|=t,io(l,cs(l,a,t));break e}}l=l.return}while(null!==l)}uu(n)}catch(e){t=e,bl===n&&null!==n&&(bl=n=n.return);continue}break}}function ru(){var e=hl.current;return hl.current=Za,null===e?Za:e}function iu(){0!==kl&&3!==kl&&2!==kl||(kl=4),null===yl||!(268435455&Sl)&&!(268435455&Tl)||Ql(yl,xl)}function ou(e,t){var n=vl;vl|=2;var r=ru();for(yl===e&&xl===t||tu(e,t);;)try{au();break}catch(t){nu(e,t)}if(Wi(),vl=n,hl.current=r,null!==bl)throw Error(o(261));return yl=null,xl=0,kl}function au(){for(;null!==bl;)lu(bl)}function su(){for(;null!==bl&&!Ye();)lu(bl)}function lu(e){var t=fl(e.alternate,e,El);e.memoizedProps=e.pendingProps,null===t?uu(e):bl=t,ml.current=null}function uu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Us(n,t)))return n.flags&=32767,void(bl=n);if(null===e)return kl=6,void(bl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=gs(n,t,El)))return void(bl=n);if(null!==(t=t.sibling))return void(bl=t);bl=t=e}while(null!==t);0===kl&&(kl=5)}function cu(e,t){var n=yt,r=gl.transition;try{gl.transition=null,yt=1,function(e,t,n){do{du()}while(null!==Rl);if(6&vl)throw Error(o(327));var r=e.finishedWork,i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===yl&&(bl=yl=null,xl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Ml||(Ml=!0,yu(tt,(function(){return du(),null}))),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=gl.transition,gl.transition=null;var s=yt;yt=1;var l=vl;vl|=4,ml.current=null,function(e,t){if(dr(e=cr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zr={focusedElem:e,selectionRange:n},$s=t;null!==$s;)if(e=(t=$s).child,1028&t.subtreeFlags&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ui(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;if(1===x.nodeType)x.textContent="";else if(9===x.nodeType){var E=x.body;null!=E&&(E.textContent="")}break;default:throw Error(o(163))}}catch(e){pu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}m=Ks,Ks=!1}(e,r),function(e,t){for($s=t;null!==$s;){var n=(t=$s).deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{ol(e,i,t);var o=i.alternate;null!==o&&(o.return=null),i.return=null}catch(e){pu(i,t,e)}}if(n=t.child,12854&t.subtreeFlags&&null!==n)n.return=t,$s=n;else for(;null!==$s;){t=$s;try{var a=t.flags;if(32&a&&fe(t.stateNode,""),512&a){var s=t.alternate;if(null!==s){var l=s.ref;null!==l&&("function"==typeof l?l(null):l.current=null)}}if(8192&a)switch(t.tag){case 13:if(null!==t.memoizedState){var u=t.alternate;null!==u&&null!==u.memoizedState||(Al=Xe())}break;case 22:var c=null!==t.memoizedState,d=t.alternate,f=null!==d&&null!==d.memoizedState;e:{i=c;for(var p=null,h=r=n=t;;){if(5===h.tag){if(null===p){p=h;var m=h.stateNode;if(i){var g=m.style;"function"==typeof g.setProperty?g.setProperty("display","none","important"):g.display="none"}else{var v=h.stateNode,y=h.memoizedProps.style,b=null!=y&&y.hasOwnProperty("display")?y.display:null;v.style.display=me("display",b)}}}else if(6===h.tag)null===p&&(h.stateNode.nodeValue=i?"":h.memoizedProps);else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===r)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===r)break;for(;null===h.sibling;){if(null===h.return||h.return===r)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}if(c&&!f&&1&n.mode){$s=n;for(var x=n.child;null!==x;){for(n=$s=x;null!==$s;){var E=(r=$s).child;switch(r.tag){case 0:case 11:case 14:case 15:Ys(4,r,r.return);break;case 1:Ws(r,r.return);var w=r.stateNode;if("function"==typeof w.componentWillUnmount){var k=r.return;try{w.props=r.memoizedProps,w.state=r.memoizedState,w.componentWillUnmount()}catch(e){pu(r,k,e)}}break;case 5:Ws(r,r.return);break;case 22:if(null!==r.memoizedState){cl(n);continue}}null!==E?(E.return=r,$s=E):cl(n)}x=x.sibling}}}switch(4102&a){case 2:nl(t),t.flags&=-3;break;case 6:nl(t),t.flags&=-3,al(t.alternate,t);break;case 4096:t.flags&=-4097;break;case 4100:t.flags&=-4097,al(t.alternate,t);break;case 4:al(t.alternate,t)}}catch(e){pu(t,t.return,e)}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}}(e,r),fr(Zr),Zr=null,e.current=r,sl(r,e,i),Qe(),vl=l,yt=s,gl.transition=a}else e.current=r;if(Ml&&(Ml=!1,Rl=e,Pl=i),0===(a=e.pendingLanes)&&(Fl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),Wl(e,Xe()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n(t[r]);if(Ll)throw Ll=!1,e=Il,Il=null,e;!!(1&Pl)&&0!==e.tag&&du(),1&(a=e.pendingLanes)?e===Vl?jl++:(jl=0,Vl=e):jl=0,Vi()}(e,t,n)}finally{gl.transition=r,yt=n}return null}function du(){if(null!==Rl){var e=bt(Pl),t=gl.transition,n=yt;try{if(gl.transition=null,yt=16>e?16:e,null===Rl)var r=!1;else{if(e=Rl,Rl=null,Pl=0,6&vl)throw Error(o(331));var i=vl;for(vl|=4,$s=e.current;null!==$s;){var a=$s,s=a.child;if(16&$s.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for($s=c;null!==$s;){var d=$s;switch(d.tag){case 0:case 11:case 15:Ys(8,d,a)}var f=d.child;if(null!==f)f.return=d,$s=f;else for(;null!==$s;){var p=(d=$s).sibling,h=d.return;if(Js(d),d===c){$s=null;break}if(null!==p){p.return=h,$s=p;break}$s=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}$s=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,$s=s;else e:for(;null!==$s;){if(2048&(a=$s).flags)switch(a.tag){case 0:case 11:case 15:Ys(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,$s=y;break e}$s=a.return}}var b=e.current;for($s=b;null!==$s;){var x=(s=$s).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,$s=x;else e:for(s=b;null!==$s;){if(2048&(l=$s).flags)try{switch(l.tag){case 0:case 11:case 15:Qs(9,l)}}catch(e){pu(l,l.return,e)}if(l===s){$s=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,$s=E;break e}$s=l.return}}if(vl=i,Vi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{yt=n,gl.transition=t}}return!1}function fu(e,t,n){no(e,t=us(0,t=ns(n,t),1)),t=zl(),null!==(e=$l(e,1))&&(gt(e,1,t),Wl(e,t))}function pu(e,t,n){if(3===e.tag)fu(e,e,n);else for(;null!==t;){if(3===t.tag){fu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Fl||!Fl.has(r))){no(t,e=cs(t,e=ns(n,e),1)),e=zl(),null!==(t=$l(t,1))&&(gt(t,1,e),Wl(t,e));break}}t=t.return}}function hu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=zl(),e.pingedLanes|=e.suspendedLanes&n,yl===e&&(xl&n)===n&&(4===kl||3===kl&&(130023424&xl)===xl&&500>Xe()-Al?tu(e,0):Nl|=n),Wl(e,t)}function mu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=zl();null!==(e=$l(e,t))&&(gt(e,t,n),Wl(e,n))}function gu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mu(e,n)}function vu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),mu(e,n)}function yu(e,t){return Ge(e,t)}function bu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xu(e,t,n,r){return new bu(e,t,n,r)}function Eu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function wu(e,t){var n=e.alternate;return null===n?((n=xu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ku(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Eu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Cu(n.children,i,a,t);case C:s=8,i|=8;break;case S:return(e=xu(12,n,t,2|i)).elementType=S,e.lanes=a,e;case D:return(e=xu(13,n,t,i)).elementType=D,e.lanes=a,e;case A:return(e=xu(19,n,t,i)).elementType=A,e.lanes=a,e;case I:return Su(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case N:s=9;break e;case _:s=11;break e;case O:s=14;break e;case L:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=xu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Cu(e,t,n,r){return(e=xu(7,e,r,t)).lanes=n,e}function Su(e,t,n,r){return(e=xu(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={},e}function Tu(e,t,n){return(e=xu(6,e,null,t)).lanes=n,e}function Nu(e,t,n){return(t=xu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _u(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,i,o,a,s,l){return e=new _u(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=xu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},Ji(o),e}function Au(e){if(!e)return Ci;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Di(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Di(n))return Li(e,n,t)}return t}function Ou(e,t,n,r,i,o,a,s,l){return(e=Du(n,r,!0,e,0,o,0,s,l)).context=Au(null),n=e.current,(o=to(r=zl(),i=Hl(n))).callback=null!=t?t:null,no(n,o),e.current.lanes=i,gt(e,i,r),Wl(e,r),e}function Lu(e,t,n,r){var i=t.current,o=zl(),a=Hl(i);return n=Au(n),null===t.context?t.context=n:t.pendingContext=n,(t=to(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),no(i,t),null!==(e=ql(i,a,o))&&ro(e,i,a),a}function Iu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Fu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Mu(e,t){Fu(e,t),(e=e.alternate)&&Fu(e,t)}fl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)ys=!0;else{if(!(e.lanes&n||128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:_s(t),jo();break;case 5:Jo(t);break;case 1:Di(t.type)&&Ii(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(zi,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ta,1&ta.current),t.flags|=128,null):n&t.child.childLanes?Ls(e,t,n):(ki(ta,1&ta.current),null!==(e=Bs(e,t,n))?e.sibling:null);ki(ta,1&ta.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Vs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Bs(e,t,n)}(e,t,n);ys=!!(131072&e.flags)}else ys=!1,Ao&&1048576&t.flags&&So(t,yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=_i(t,Si.current);Yi(t,n),i=va(null,t,r,e,i,n);var a=ya();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Di(r)?(a=!0,Ii(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ji(t),i.updater=uo,t.stateNode=i,i._reactInternals=t,ho(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,Ao&&a&&To(t),bs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Eu(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===O)return 14}return 2}(r),e=Ui(r,e),i){case 0:t=Ss(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Es(null,t,r,Ui(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:Ui(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:Ui(r,i),n);case 3:e:{if(_s(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,eo(e,t),oo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ds(e,t,r,n,i=Error(o(423)));break e}if(r!==i){t=Ds(e,t,r,n,i=Error(o(424)));break e}for(Do=ai(t.stateNode.containerInfo.firstChild),_o=t,Ao=!0,Oo=null,n=$o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(jo(),r===i){t=Bs(e,t,n);break e}bs(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&Mo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Jr(r,i)?s=null:null!==a&&Jr(r,a)&&(t.flags|=32),Cs(e,t),bs(e,t,s,n),t.child;case 6:return null===e&&Mo(t),null;case 13:return Ls(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=qo(t,null,r,n):bs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:Ui(r,i),n);case 7:return bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(zi,r._currentValue),r._currentValue=s,null!==a)if(or(a.value,s)){if(a.children===i.children&&!Ti.current){t=Bs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=to(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Ki(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ki(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}bs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yi(t,n),r=r(i=Qi(i)),t.flags|=1,bs(e,t,r,n),t.child;case 14:return i=Ui(r=t.type,t.pendingProps),Es(e,t,r,i=Ui(r.type,i),n);case 15:return ws(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ui(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Di(r)?(e=!0,Ii(t)):e=!1,Yi(t,n),fo(t,r,i),ho(t,r,i,n),Ns(null,t,r,!0,e,n);case 19:return Vs(e,t,n);case 22:return ks(e,t,n)}throw Error(o(156,t.tag))};var Ru="function"==typeof reportError?reportError:function(e){console.error(e)};function Pu(e){this._internalRoot=e}function ju(e){this._internalRoot=e}function Vu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Bu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Uu(){}function zu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Iu(a);s.call(e)}}Lu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Iu(a);o.call(e)}}var a=Ou(t,r,e,0,null,!1,0,"",Uu);return e._reactRootContainer=a,e[di]=a.current,Br(8===e.nodeType?e.parentNode:e),Jl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Iu(l);s.call(e)}}var l=Du(e,0,!1,null,0,!1,0,"",Uu);return e._reactRootContainer=l,e[di]=l.current,Br(8===e.nodeType?e.parentNode:e),Jl((function(){Lu(t,l,n,r)})),l}(n,t,e,i,r);return Iu(a)}ju.prototype.render=Pu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Lu(e,t,null,null)},ju.prototype.unmount=Pu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Jl((function(){Lu(null,e,null,null)})),t[di]=null}},ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Rt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),Wl(t,Xe()),!(6&vl)&&(Ol=Xe()+500,Vi()))}break;case 13:var r=zl();Jl((function(){return ql(e,1,r)})),Mu(e,1)}},Et=function(e){13===e.tag&&(ql(e,134217728,zl()),Mu(e,134217728))},wt=function(e){if(13===e.tag){var t=zl(),n=Hl(e);ql(e,n,t),Mu(e,n)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},we=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=yi(r);if(!i)throw Error(o(90));G(r),Z(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=Zl,De=Jl;var Hu={usingClientEntryPoint:!1,Events:[gi,vi,yi,Te,Ne,Zl]},qu={findFiberByHostInstance:mi,bundleType:0,version:"18.0.0-fc46dba67-20220329",rendererPackageName:"react-dom"},$u={bundleType:qu.bundleType,version:qu.version,rendererPackageName:qu.rendererPackageName,rendererConfig:qu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:qu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wu.isDisabled&&Wu.supportsFiber)try{it=Wu.inject($u),ot=Wu}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Vu(e))throw Error(o(299));var n=!1,r="",i=Ru;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Du(e,1,!1,null,0,n,0,r,i),e[di]=t.current,Br(8===e.nodeType?e.parentNode:e),new Pu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return Jl(e)},t.hydrate=function(e,t,n){if(!Bu(t))throw Error(o(200));return zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Vu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ru;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Ou(t,null,e,1,null!=n?n:null,i,0,a,s),e[di]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ju(t)},t.render=function(e,t,n){if(!Bu(t))throw Error(o(200));return zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Bu(e))throw Error(o(40));return!!e._reactRootContainer&&(Jl((function(){zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[di]=null}))})),!0)},t.unstable_batchedUpdates=Zl,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Bu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return zu(e,t,n,!1,r)},t.version="18.0.0-fc46dba67-20220329"},2969:(e,t,n)=>{"use strict";function r(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((i&&0!==i.length?i.at(-1)-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):o)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}n.d(t,{A:()=>r})},3298:(e,t,n)=>{"use strict";var r;n.d(t,{b:()=>r}),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"}(r||(r={}))},3525:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4538),i=n(9488),o=n(4294);function a(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,o.A)(t,(t=>{var i,o;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?s(e,n.parentType,t.name):null,n.type=null===(i=n.fieldDef)||void 0===i?void 0:i.type;break;case"SelectionSet":n.parentType=n.type?(0,r.MR)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(o=n.argDef)||void 0===o?void 0:o.type;break;case"EnumValue":const l=n.inputType?(0,r.MR)(n.inputType):null;n.enumValue=l instanceof r.Zb?function(e){for(let n=0;n<e.length;n++)if(e[n].value===t.name)return e[n]}(l.getValues()):null;break;case"ListValue":const u=n.inputType?(0,r.yl)(n.inputType):null;n.inputType=u instanceof r.KT?u.ofType:null;break;case"ObjectValue":const c=n.inputType?(0,r.MR)(n.inputType):null;n.objectFieldDefs=c instanceof r.zP?c.getFields():null;break;case"ObjectField":const d=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==d?void 0:d.type,n.fieldDef=d;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function s(e,t,n){return n===i.S0.name&&e.getQueryType()===t?i.S0:n===i.Xe.name&&e.getQueryType()===t?i.Xe:n===i.of.name&&(0,r.ML)(t)?i.of:t&&t.getFields?t.getFields()[n]:void 0}},3653:(e,t,n)=>{!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<l&&!(u>c);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p<s&&d>=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),x=l[l.length-1];if(b.slice(0,x.length)==x)return{from:r(u,d(p,h,g,s)+c),to:r(u+l.length-1,d(y,b,x.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.firstLine()-1+l.length;u>=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(u,d(p,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(5237))},3770:(e,t,n)=>{"use strict";n.d(t,{FV:()=>p,N1:()=>m,YC:()=>g,kk:()=>h,qS:()=>f});var r=n(129),i=n(2475),o=n(5571),a=n(3298),s=n(6547),l=n(4538);const u=2147483647,c=-2147483648,d=new l.Ag({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.eO(`Int cannot represent non-integer value: ${(0,r.N)(t)}`);if(n>u||n<c)throw new o.eO("Int cannot represent non 32-bit signed integer value: "+(0,r.N)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.eO(`Int cannot represent non-integer value: ${(0,r.N)(e)}`);if(e>u||e<c)throw new o.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.b.INT)throw new o.eO(`Int cannot represent non-integer value: ${(0,s.y)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>u||t<c)throw new o.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),f=new l.Ag({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.eO(`Float cannot represent non numeric value: ${(0,r.N)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.eO(`Float cannot represent non numeric value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.FLOAT&&e.kind!==a.b.INT)throw new o.eO(`Float cannot represent non numeric value: ${(0,s.y)(e)}`,e);return parseFloat(e.value)}}),p=new l.Ag({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.eO(`String cannot represent value: ${(0,r.N)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.eO(`String cannot represent a non string value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.STRING)throw new o.eO(`String cannot represent a non string value: ${(0,s.y)(e)}`,{nodes:e});return e.value}}),h=new l.Ag({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.eO(`Boolean cannot represent a non boolean value: ${(0,r.N)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.BOOLEAN)throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,s.y)(e)}`,{nodes:e});return e.value}}),m=new l.Ag({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.eO(`ID cannot represent value: ${(0,r.N)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.eO(`ID cannot represent value: ${(0,r.N)(e)}`)},parseLiteral(e){if(e.kind!==a.b.STRING&&e.kind!==a.b.INT)throw new o.eO("ID cannot represent a non-string and non-integer value: "+(0,s.y)(e),{nodes:e});return e.value}}),g=Object.freeze([p,d,f,h,m]);function v(e){if((0,i.Z)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}},3798:e=>{"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},4279:(e,t,n)=>{"use strict";function r(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}n.d(t,{z:()=>r})},4294:(e,t,n)=>{"use strict";function r(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{A:()=>r})},4538:(e,t,n)=>{"use strict";n.d(t,{Zb:()=>ie,zP:()=>se,VA:()=>te,KT:()=>R,Gc:()=>P,bh:()=>G,Ag:()=>W,hI:()=>ne,g0:()=>J,N_:()=>M,qL:()=>C,wG:()=>B,qC:()=>w,Kx:()=>Q,MR:()=>H,yl:()=>U,Lc:()=>F,ML:()=>I,oF:()=>T,qK:()=>N,dX:()=>A,kD:()=>k,zf:()=>L,Fs:()=>_,sy:()=>z,bd:()=>D,YQ:()=>E,oH:()=>O,xP:()=>ee,YX:()=>ue,lg:()=>x,Xj:()=>b,CK:()=>S});var r=n(6286),i=n(8100);function o(e){return e}var a=n(129),s=n(4621),l=n(2475),u=n(2242),c=n(9321);function d(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}var f=n(2239),p=n(4279),h=n(5571),m=n(3298),g=n(6547);function v(e,t){switch(e.kind){case m.b.NULL:return null;case m.b.INT:return parseInt(e.value,10);case m.b.FLOAT:return parseFloat(e.value);case m.b.STRING:case m.b.ENUM:case m.b.BOOLEAN:return e.value;case m.b.LIST:return e.values.map((e=>v(e,t)));case m.b.OBJECT:return(0,c.L)(e.fields,(e=>e.name.value),(e=>v(e.value,t)));case m.b.VARIABLE:return null==t?void 0:t[e.name.value]}}var y=n(2300);function b(e){return x(e)||E(e)||k(e)||S(e)||T(e)||N(e)||_(e)||D(e)}function x(e){return(0,s.h)(e,W)}function E(e){return(0,s.h)(e,G)}function w(e){if(!E(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Object type.`);return e}function k(e){return(0,s.h)(e,te)}function C(e){if(!k(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Interface type.`);return e}function S(e){return(0,s.h)(e,ne)}function T(e){return(0,s.h)(e,ie)}function N(e){return(0,s.h)(e,se)}function _(e){return(0,s.h)(e,R)}function D(e){return(0,s.h)(e,P)}function A(e){return x(e)||T(e)||N(e)||j(e)&&A(e.ofType)}function O(e){return x(e)||E(e)||k(e)||S(e)||T(e)||j(e)&&O(e.ofType)}function L(e){return x(e)||T(e)}function I(e){return E(e)||k(e)||S(e)}function F(e){return k(e)||S(e)}function M(e){if(!F(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL abstract type.`);return e}class R{constructor(e){b(e)||(0,r.U)(!1,`Expected ${(0,a.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class P{constructor(e){V(e)||(0,r.U)(!1,`Expected ${(0,a.N)(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 j(e){return _(e)||D(e)}function V(e){return b(e)&&!D(e)}function B(e){if(!V(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL nullable type.`);return e}function U(e){if(e)return D(e)?e.ofType:e}function z(e){return x(e)||E(e)||k(e)||S(e)||T(e)||N(e)}function H(e){if(e){let t=e;for(;j(t);)t=t.ofType;return t}}function q(e){return"function"==typeof e?e():e}function $(e){return"function"==typeof e?e():e}class W{constructor(e){var t,n,i,s;const l=null!==(t=e.parseValue)&&void 0!==t?t:o;this.name=(0,y.I)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o,this.parseValue=l,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>l(v(e,t)),this.extensions=(0,p.z)(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.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.U)(!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.U)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class G{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Y(e),this._interfaces=()=>K(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.N)(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:Z(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function K(e){var t;const n=q(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Y(e){const t=$(e.fields);return X(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),d(t,((t,n)=>{var i;X(t)||(0,r.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.N)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return X(o)||(0,r.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,y.I)(n),description:t.description,type:t.type,args:Q(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.z)(t.extensions),astNode:t.astNode}}))}function Q(e){return Object.entries(e).map((([e,t])=>({name:(0,y.I)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.z)(t.extensions),astNode:t.astNode})))}function X(e){return(0,l.Z)(e)&&!Array.isArray(e)}function Z(e){return d(e,(e=>({description:e.description,type:e.type,args:J(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function J(e){return(0,c.L)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function ee(e){return D(e.type)&&void 0===e.defaultValue}class te{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Y.bind(void 0,e),this._interfaces=K.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.N)(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:Z(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ne{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=re.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.N)(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 re(e){const t=q(e.types);return Array.isArray(t)||(0,r.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class ie{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.extensions=(0,p.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:ae(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=ae(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,u.K)(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.eO(`Enum "${this.name}" cannot represent value: ${(0,a.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,a.N)(e);throw new h.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+oe(this,t))}const t=this.getValue(e);if(null==t)throw new h.eO(`Value "${e}" does not exist in "${this.name}" enum.`+oe(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.b.ENUM){const t=(0,g.y)(e);throw new h.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+oe(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.y)(e);throw new h.eO(`Value "${t}" does not exist in "${this.name}" enum.`+oe(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,c.L)(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 oe(e,t){const n=e.getValues().map((e=>e.name)),r=(0,f.x)(t,n);return(0,i.a)("the enum value",r)}function ae(e,t){return X(t)||(0,r.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(X(n)||(0,r.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,a.N)(n)}.`),{name:(0,y.A)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,p.z)(n.extensions),astNode:n.astNode})))}class se{constructor(e){var t,n;this.name=(0,y.I)(e.name),this.description=e.description,this.extensions=(0,p.z)(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=le.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=d(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 le(e){const t=$(e.fields);return X(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),d(t,((t,n)=>(!("resolve"in t)||(0,r.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,y.I)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.z)(t.extensions),astNode:t.astNode})))}function ue(e){return D(e.type)&&void 0===e.defaultValue}},4621:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(129);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.N)(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}},4705:(e,t,n)=>{"use strict";n.d(t,{XO:()=>c,YR:()=>l,oP:()=>u,sP:()=>s});var r=n(6286),i=n(129),o=n(475),a=n(3298);const s=Object.freeze({});function l(e,t,n=o.aD){const l=new Map;for(const e of Object.values(a.b))l.set(e,c(t,e));let u,d,f,p=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=f,f=b.pop(),a)if(p){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=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[e,t]of g)v[e]=t}m=u.index,h=u.keys,g=u.edits,p=u.inArray,u=u.prev}else if(f){if(d=p?m:h[m],v=f[d],null==v)continue;y.push(d)}let c;if(!Array.isArray(v)){var x,E;(0,o.Ll)(v)||(0,r.U)(!1,`Invalid AST Node: ${(0,i.N)(v)}.`);const n=e?null===(x=l.get(v.kind))||void 0===x?void 0:x.leave:null===(E=l.get(v.kind))||void 0===E?void 0:E.enter;if(c=null==n?void 0:n.call(t,v,d,f,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.Ll)(c)){y.pop();continue}v=c}}var w;void 0===c&&a&&g.push([d,v]),e?y.pop():(u={inArray:p,index:m,keys:h,edits:g,prev:u},p=Array.isArray(v),h=p?v:null!==(w=n[v.kind])&&void 0!==w?w:[],m=-1,g=[],f&&b.push(f),f=v)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e}function u(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.b)){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 l=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===l)t[a]=r;else if(l===s)t[a]=s;else if(void 0!==l)return l}},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}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}}},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},4849:(e,t,n)=>{"use strict";n.d(t,{kr:()=>rt,Rq:()=>qe,vM:()=>$e,yX:()=>At,CE:()=>xt,VS:()=>Jn,JR:()=>_t,Jb:()=>$n,pi:()=>He,p_:()=>Be,r5:()=>Ke,m7:()=>Ve,p:()=>ze,t:()=>Ue});var r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,x,E,w,k,C,S,T,N,_,D,A,O,L,I,F,M,R,P,j,V,B,U,z,H,q,$,W,G,K,Y,Q,X,Z,J,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,de,fe,pe,he,me,ge,ve,ye,be,xe,Ee,we,ke,Ce,Se,Te,Ne,_e,De=n(4705),Ae=n(398),Oe=n(3298),Le=n(4538),Ie=n(9488),Fe=n(3770),Me=n(1578),Re=n(2369);!function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(a||(a={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=a.MAX_VALUE),t===Number.MAX_VALUE&&(t=a.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return _e.objectLiteral(t)&&_e.uinteger(t.line)&&_e.uinteger(t.character)}}(s||(s={})),function(e){e.create=function(e,t,n,r){if(_e.uinteger(e)&&_e.uinteger(t)&&_e.uinteger(n)&&_e.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return _e.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return _e.objectLiteral(t)&&l.is(t.range)&&(_e.string(t.uri)||_e.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return _e.objectLiteral(t)&&l.is(t.targetRange)&&_e.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||_e.undefined(t.originSelectionRange))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.numberRange(t.red,0,1)&&_e.numberRange(t.green,0,1)&&_e.numberRange(t.blue,0,1)&&_e.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&l.is(t.range)&&d.is(t.color)}}(f||(f={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.label)&&(_e.undefined(t.textEdit)||w.is(t))&&(_e.undefined(t.additionalTextEdits)||_e.typedArray(t.additionalTextEdits,w.is))}}(p||(p={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(h||(h={})),function(e){e.create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return _e.defined(n)&&(a.startCharacter=n),_e.defined(r)&&(a.endCharacter=r),_e.defined(i)&&(a.kind=i),_e.defined(o)&&(a.collapsedText=o),a},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.uinteger(t.startLine)&&_e.uinteger(t.startLine)&&(_e.undefined(t.startCharacter)||_e.uinteger(t.startCharacter))&&(_e.undefined(t.endCharacter)||_e.uinteger(t.endCharacter))&&(_e.undefined(t.kind)||_e.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return _e.defined(t)&&u.is(t.location)&&_e.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(v||(v={})),function(e){e.Unnecessary=1,e.Deprecated=2}(y||(y={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,i,o){let a={range:e,message:t};return _e.defined(n)&&(a.severity=n),_e.defined(r)&&(a.code=r),_e.defined(i)&&(a.source=i),_e.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t;let n=e;return _e.defined(n)&&l.is(n.range)&&_e.string(n.message)&&(_e.number(n.severity)||_e.undefined(n.severity))&&(_e.integer(n.code)||_e.string(n.code)||_e.undefined(n.code))&&(_e.undefined(n.codeDescription)||_e.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(_e.string(n.source)||_e.undefined(n.source))&&(_e.undefined(n.relatedInformation)||_e.typedArray(n.relatedInformation,g.is))}}(x||(x={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return _e.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.title)&&_e.string(t.command)}}(E||(E={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.newText)&&l.is(t.range)}}(w||(w={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return _e.objectLiteral(t)&&_e.string(t.label)&&(_e.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(_e.string(t.description)||void 0===t.description)}}(k||(k={})),function(e){e.is=function(e){const t=e;return _e.string(t)}}(C||(C={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return w.is(t)&&(k.is(t.annotationId)||C.is(t.annotationId))}}(S||(S={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return _e.defined(t)&&I.is(t.textDocument)&&Array.isArray(t.edits)}}(T||(T={})),function(e){e.create=function(e,t,n){let 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},e.is=function(e){let t=e;return t&&"create"===t.kind&&_e.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||_e.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||_e.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(N||(N={})),function(e){e.create=function(e,t,n,r){let 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},e.is=function(e){let t=e;return t&&"rename"===t.kind&&_e.string(t.oldUri)&&_e.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||_e.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||_e.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(_||(_={})),function(e){e.create=function(e,t,n){let 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},e.is=function(e){let t=e;return t&&"delete"===t.kind&&_e.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||_e.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||_e.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||C.is(t.annotationId))}}(D||(D={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>_e.string(e.kind)?N.is(e)||_.is(e)||D.is(e):T.is(e))))}}(A||(A={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)}}(O||(O={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)&&_e.integer(t.version)}}(L||(L={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)&&(null===t.version||_e.integer(t.version))}}(I||(I={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return _e.defined(t)&&_e.string(t.uri)&&_e.string(t.languageId)&&_e.integer(t.version)&&_e.string(t.text)}}(F||(F={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(M||(M={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(e)&&M.is(t.kind)&&_e.string(t.value)}}(R||(R={})),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}(P||(P={})),function(e){e.PlainText=1,e.Snippet=2}(j||(j={})),function(e){e.Deprecated=1}(V||(V={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&_e.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}(B||(B={})),function(e){e.asIs=1,e.adjustIndentation=2}(U||(U={})),function(e){e.is=function(e){const t=e;return t&&(_e.string(t.detail)||void 0===t.detail)&&(_e.string(t.description)||void 0===t.description)}}(z||(z={})),function(e){e.create=function(e){return{label:e}}}(H||(H={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(q||(q={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return _e.string(t)||_e.objectLiteral(t)&&_e.string(t.language)&&_e.string(t.value)}}($||($={})),function(e){e.is=function(e){let t=e;return!!t&&_e.objectLiteral(t)&&(R.is(t.contents)||$.is(t.contents)||_e.typedArray(t.contents,$.is))&&(void 0===e.range||l.is(e.range))}}(W||(W={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(G||(G={})),function(e){e.create=function(e,t,...n){let r={label:e};return _e.defined(t)&&(r.documentation=t),_e.defined(n)?r.parameters=n:r.parameters=[],r}}(K||(K={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Y||(Y={})),function(e){e.create=function(e,t){let n={range:e};return _e.number(t)&&(n.kind=t),n}}(Q||(Q={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(X||(X={})),function(e){e.Deprecated=1}(Z||(Z={})),function(e){e.create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(J||(J={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(ee||(ee={})),function(e){e.create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){let t=e;return t&&_e.string(t.name)&&_e.number(t.kind)&&l.is(t.range)&&l.is(t.selectionRange)&&(void 0===t.detail||_e.string(t.detail))&&(void 0===t.deprecated||_e.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(te||(te={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ne||(ne={})),function(e){e.Invoked=1,e.Automatic=2}(re||(re={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return _e.defined(t)&&_e.typedArray(t.diagnostics,x.is)&&(void 0===t.only||_e.typedArray(t.only,_e.string))&&(void 0===t.triggerKind||t.triggerKind===re.Invoked||t.triggerKind===re.Automatic)}}(ie||(ie={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):E.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&_e.string(t.title)&&(void 0===t.diagnostics||_e.typedArray(t.diagnostics,x.is))&&(void 0===t.kind||_e.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||E.is(t.command))&&(void 0===t.isPreferred||_e.boolean(t.isPreferred))&&(void 0===t.edit||A.is(t.edit))}}(oe||(oe={})),function(e){e.create=function(e,t){let n={range:e};return _e.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return _e.defined(t)&&l.is(t.range)&&(_e.undefined(t.command)||E.is(t.command))}}(ae||(ae={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return _e.defined(t)&&_e.uinteger(t.tabSize)&&_e.boolean(t.insertSpaces)}}(se||(se={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return _e.defined(t)&&l.is(t.range)&&(_e.undefined(t.target)||_e.string(t.target))}}(le||(le={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return _e.objectLiteral(n)&&l.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(ue||(ue={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(ce||(ce={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(de||(de={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(fe||(fe={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&_e.string(t.text)}}(pe||(pe={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&_e.boolean(t.caseSensitiveLookup)&&(_e.string(t.variableName)||void 0===t.variableName)}}(he||(he={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&(_e.string(t.expression)||void 0===t.expression)}}(me||(me={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return _e.defined(t)&&l.is(e.stoppedLocation)}}(ge||(ge={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(ve||(ve={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return _e.objectLiteral(t)&&(void 0===t.tooltip||_e.string(t.tooltip)||R.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||E.is(t.command))}}(ye||(ye={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return _e.objectLiteral(t)&&s.is(t.position)&&(_e.string(t.label)||_e.typedArray(t.label,ye.is))&&(void 0===t.kind||ve.is(t.kind))&&void 0===t.textEdits||_e.typedArray(t.textEdits,w.is)&&(void 0===t.tooltip||_e.string(t.tooltip)||R.is(t.tooltip))&&(void 0===t.paddingLeft||_e.boolean(t.paddingLeft))&&(void 0===t.paddingRight||_e.boolean(t.paddingRight))}}(be||(be={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(xe||(xe={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Ee||(Ee={})),function(e){e.create=function(e){return{items:e}}}(we||(we={})),function(e){e.Invoked=0,e.Automatic=1}(ke||(ke={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Ce||(Ce={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Se||(Se={})),function(e){e.is=function(e){const t=e;return _e.objectLiteral(t)&&i.is(t.uri)&&_e.string(t.name)}}(Te||(Te={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,l=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[l++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[l++]=i[a++];for(;s<o.length;)e[l++]=o[s++];return e}e.create=function(e,t,n,r){return new Pe(e,t,n,r)},e.is=function(e){let t=e;return!!(_e.defined(t)&&_e.string(t.uri)&&(_e.undefined(t.languageId)||_e.string(t.languageId))&&_e.uinteger(t.lineCount)&&_e.func(t.getText)&&_e.func(t.positionAt)&&_e.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Ne||(Ne={}));class Pe{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let 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}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return s.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return s.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let 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)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(_e||(_e={}));class je{constructor(e){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=null==i?void 0:i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function Ve(e){return{ofRule:e}}function Be(e,t){return{ofRule:e,isList:!0,separator:t}}function Ue(e,t){return{style:t,match:t=>t.kind===e}}function ze(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const He=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,qe={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:/^#.*/},$e={Document:[Be("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Oe.b.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:[We("query"),Ve(Ge("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],Mutation:[We("mutation"),Ve(Ge("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],Subscription:[We("subscription"),Ve(Ge("def")),Ve("VariableDefinitions"),Be("Directive"),"SelectionSet"],VariableDefinitions:[ze("("),Be("VariableDefinition"),ze(")")],VariableDefinition:["Variable",ze(":"),"Type",Ve("DefaultValue")],Variable:[ze("$","variable"),Ge("variable")],DefaultValue:[ze("="),"Value"],SelectionSet:[ze("{"),Be("Selection"),ze("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Ge("property"),ze(":"),Ge("qualifier"),Ve("Arguments"),Be("Directive"),Ve("SelectionSet")],Field:[Ge("property"),Ve("Arguments"),Be("Directive"),Ve("SelectionSet")],Arguments:[ze("("),Be("Argument"),ze(")")],Argument:[Ge("attribute"),ze(":"),"Value"],FragmentSpread:[ze("..."),Ge("def"),Be("Directive")],InlineFragment:[ze("..."),Ve("TypeCondition"),Be("Directive"),"SelectionSet"],FragmentDefinition:[We("fragment"),Ve(function(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}(Ge("def"),[We("on")])),"TypeCondition",Be("Directive"),"SelectionSet"],TypeCondition:[We("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:[Ue("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Ue("Name","builtin")],NullValue:[Ue("Name","keyword")],EnumValue:[Ge("string-2")],ListValue:[ze("["),Be("Value"),ze("]")],ObjectValue:[ze("{"),Be("ObjectField"),ze("}")],ObjectField:[Ge("attribute"),ze(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[ze("["),"Type",ze("]"),Ve(ze("!"))],NonNullType:["NamedType",Ve(ze("!"))],NamedType:[{style:"atom",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)}}],Directive:[ze("@","meta"),Ge("meta"),Ve("Arguments")],DirectiveDef:[We("directive"),ze("@","meta"),Ge("meta"),Ve("ArgumentsDef"),We("on"),Be("DirectiveLocation",ze("|"))],InterfaceDef:[We("interface"),Ge("atom"),Ve("Implements"),Be("Directive"),ze("{"),Be("FieldDef"),ze("}")],Implements:[We("implements"),Be("NamedType",ze("&"))],DirectiveLocation:[Ge("string-2")],SchemaDef:[We("schema"),Be("Directive"),ze("{"),Be("OperationTypeDef"),ze("}")],OperationTypeDef:[Ge("keyword"),ze(":"),Ge("atom")],ScalarDef:[We("scalar"),Ge("atom"),Be("Directive")],ObjectTypeDef:[We("type"),Ge("atom"),Ve("Implements"),Be("Directive"),ze("{"),Be("FieldDef"),ze("}")],FieldDef:[Ge("property"),Ve("ArgumentsDef"),ze(":"),"Type",Be("Directive")],ArgumentsDef:[ze("("),Be("InputValueDef"),ze(")")],InputValueDef:[Ge("attribute"),ze(":"),"Type",Ve("DefaultValue"),Be("Directive")],UnionDef:[We("union"),Ge("atom"),Be("Directive"),ze("="),Be("UnionMember",ze("|"))],UnionMember:["NamedType"],EnumDef:[We("enum"),Ge("atom"),Be("Directive"),ze("{"),Be("EnumValueDef"),ze("}")],EnumValueDef:[Ge("string-2"),Be("Directive")],InputDef:[We("input"),Ge("atom"),Be("Directive"),ze("{"),Be("InputValueDef"),ze("}")],ExtendDef:[We("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Oe.b.SCHEMA_EXTENSION;case"scalar":return Oe.b.SCALAR_TYPE_EXTENSION;case"type":return Oe.b.OBJECT_TYPE_EXTENSION;case"interface":return Oe.b.INTERFACE_TYPE_EXTENSION;case"union":return Oe.b.UNION_TYPE_EXTENSION;case"enum":return Oe.b.ENUM_TYPE_EXTENSION;case"input":return Oe.b.INPUT_OBJECT_TYPE_EXTENSION}},[Oe.b.SCHEMA_EXTENSION]:["SchemaDef"],[Oe.b.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Oe.b.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Oe.b.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Oe.b.UNION_TYPE_EXTENSION]:["UnionDef"],[Oe.b.ENUM_TYPE_EXTENSION]:["EnumDef"],[Oe.b.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function We(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Ge(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ke(e={eatWhitespace:e=>e.eatWhile(He),lexRules:qe,parseRules:$e,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Xe(e.parseRules,t,Oe.b.DOCUMENT),t},token:(t,n)=>function(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?Ze(t):t.needsAdvance&&(t.needsAdvance=!1,Je(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=function(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(i,e);if(!l)return e.match(/\S+/)||e.match(/\s/),Xe(Qe,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return Xe(Qe,t,"Comment"),"comment";const u=Ye({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e.at(-1)<t.indentLevel&&(t.indentLevel=e.at(-1))}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){Xe(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?Je(t,!0):t.needsAdvance=!0,n.style}tt(t)}return Ye(t,u),Xe(Qe,t,"Invalid"),"invalidchar"}(t,n,e)}}function Ye(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const Qe={Invalid:[],Comment:[]};function Xe(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function Ze(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function Je(e,t){var n;if(et(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const{separator:t}=n;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)Ze(e),e.rule&&(et(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function et(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function tt(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)Ze(e);e.rule&&Je(e,!1)}function nt(e,t){const n=e.split("\n"),r=Ke();let i=r.startState(),o="",a=new je("");for(let e=0;e<n.length;e++){for(a=new je(n[e]);!a.eol()&&(o=r.token(a,i),"BREAK"!==t(a,i,o,e)););t(a,i,o,e),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}var rt;!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(rt||(rt={}));const it=[Oe.b.SCHEMA_DEFINITION,Oe.b.OPERATION_TYPE_DEFINITION,Oe.b.SCALAR_TYPE_DEFINITION,Oe.b.OBJECT_TYPE_DEFINITION,Oe.b.INTERFACE_TYPE_DEFINITION,Oe.b.UNION_TYPE_DEFINITION,Oe.b.ENUM_TYPE_DEFINITION,Oe.b.INPUT_OBJECT_TYPE_DEFINITION,Oe.b.DIRECTIVE_DEFINITION,Oe.b.SCHEMA_EXTENSION,Oe.b.SCALAR_TYPE_EXTENSION,Oe.b.OBJECT_TYPE_EXTENSION,Oe.b.INTERFACE_TYPE_EXTENSION,Oe.b.UNION_TYPE_EXTENSION,Oe.b.ENUM_TYPE_EXTENSION,Oe.b.INPUT_OBJECT_TYPE_EXTENSION],ot=e=>{let t=rt.UNKNOWN;if(e)try{(0,De.YR)((0,Ae.qg)(e),{enter(e){if("Document"!==e.kind)return!!it.includes(e.kind)&&(t=rt.TYPE_SYSTEM,De.sP);t=rt.EXECUTABLE}})}catch(e){return t}return t};function at(e,t,n){return n===Ie.S0.name&&e.getQueryType()===t?Ie.S0:n===Ie.Xe.name&&e.getQueryType()===t?Ie.Xe:n===Ie.of.name&&(0,Le.ML)(t)?Ie.of:"getFields"in t?t.getFields()[n]:null}function st(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}const lt=Object.assign(Object.assign({},Oe.b),{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",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"});var ut;function ct(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function dt(e,t){return function(e,t){if(!t||""===t.trim()||":"===t.trim()||"{"===t.trim())return ft(e,(e=>!e.isDeprecated));return ft(ft(e.map((e=>({proximity:ht(pt(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry))}(t,pt(e.string))}function ft(e,t){const n=e.filter(t);return 0===n.length?e:n}function pt(e){return e.toLowerCase().replaceAll(/\W/g,"")}function ht(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}!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}(ut||(ut={}));const mt=(e,t,n)=>{if(!t)return null!=n?n:e;const r=(0,Le.MR)(t);return(0,Le.YQ)(r)||(0,Le.qK)(r)||(0,Le.Fs)(r)||(0,Le.Lc)(r)?e+" {\n $1\n}":null!=n?n:e},gt=(e,t,n)=>{if((0,Le.Fs)(t)){const n=(0,Le.MR)(t.ofType);return e+`[${mt("",n,"$1")}]`}return mt(e,t,n)},vt=e=>{const t=e.args.filter((e=>e.type.toString().endsWith("!")));if(t.length)return e.name+`(${t.map(((e,t)=>`${e.name}: $${t+1}`))}) ${mt("",e.type,"\n")}`},yt={command:"editor.action.triggerSuggest",title:"Suggestions"},bt=e=>{const t=[];if(e)try{(0,De.YR)((0,Ae.qg)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t};function xt(e,t,n,r,i,o){var a;const s=Object.assign(Object.assign({},o),{schema:e}),l=function(e,t,n,r,i){const o=r||function(e,t,n=0){let r=null,i=null,o=null;const a=nt(e,((e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n<t.character+1))return r=s,i=Object.assign({},a),o=e.current(),"BREAK"}));return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:r||a.style}}(e,t,1);if(!o)return null;const a="Invalid"===o.state.kind?o.state.prevState:o.state;if(!a)return null;const s=function(e,t){let n,r,i,o,a,s,l,u,c,d,f;return st(t,(t=>{var p;switch(t.kind){case lt.QUERY:case"ShortQuery":d=e.getQueryType();break;case lt.MUTATION:d=e.getMutationType();break;case lt.SUBSCRIPTION:d=e.getSubscriptionType();break;case lt.INLINE_FRAGMENT:case lt.FRAGMENT_DEFINITION:t.type&&(d=e.getType(t.type));break;case lt.FIELD:case lt.ALIASED_FIELD:d&&t.name?(a=c?at(e,c,t.name):null,d=a?a.type:null):a=null;break;case lt.SELECTION_SET:c=(0,Le.MR)(d);break;case lt.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case lt.INTERFACE_DEF:t.name&&(l=null,f=new Le.VA({name:t.name,interfaces:[],fields:{}}));break;case lt.OBJECT_TYPE_DEF:t.name&&(f=null,l=new Le.bh({name:t.name,interfaces:[],fields:{}}));break;case lt.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case lt.FIELD:r=a&&a.args;break;case lt.DIRECTIVE:r=i&&i.args;break;case lt.ALIASED_FIELD:{const n=null===(p=t.prevState)||void 0===p?void 0:p.name;if(!n){r=null;break}const i=c?at(e,c,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case lt.ARGUMENT:if(r)for(let e=0;e<r.length;e++)if(r[e].name===t.name){n=r[e];break}s=null==n?void 0:n.type;break;case lt.VARIABLE_DEFINITION:case lt.VARIABLE:d=s;break;case lt.ENUM_VALUE:const h=(0,Le.MR)(s);o=h instanceof Le.Zb?h.getValues().find((e=>e.value===t.name)):null;break;case lt.LIST_VALUE:const m=(0,Le.yl)(s);s=m instanceof Le.KT?m.ofType:null;break;case lt.OBJECT_VALUE:const g=(0,Le.MR)(s);u=g instanceof Le.zP?g.getFields():null;break;case lt.OBJECT_FIELD:const v=t.name&&u?u[t.name]:null;s=null==v?void 0:v.type,a=v,d=a?a.type:null;break;case lt.NAMED_TYPE:t.name&&(d=e.getType(t.name))}})),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:u,parentType:c,type:d,interfaceDef:f,objectTypeDef:l}}(n,o.state);var l,u;return{token:o,state:a,typeInfo:s,mode:(null==i?void 0:i.mode)||(l=e,(null==(u=null==i?void 0:i.uri)?void 0:u.endsWith(".graphqls"))?rt.TYPE_SYSTEM:ot(l))}}(t,n,e,r,o);if(!l)return[];const{state:u,typeInfo:c,mode:d,token:f}=l,{kind:p,step:h,prevState:m}=u;if(p===lt.DOCUMENT)return d===rt.TYPE_SYSTEM?function(e){return dt(e,[{label:"extend",kind:ut.Function},...Et])}(f):d===rt.EXECUTABLE?function(e){return dt(e,wt)}(f):function(e){return dt(e,[{label:"extend",kind:ut.Function},...wt,...Et])}(f);if(p===lt.EXTEND_DEF)return function(e){return dt(e,Et)}(f);if((null===(a=null==m?void 0:m.prevState)||void 0===a?void 0:a.kind)===lt.EXTENSION_DEFINITION&&u.name)return dt(f,[]);if((null==m?void 0:m.kind)===Oe.b.SCALAR_TYPE_EXTENSION)return dt(f,Object.values(e.getTypeMap()).filter(Le.lg).map((e=>({label:e.name,kind:ut.Function}))));if((null==m?void 0:m.kind)===Oe.b.OBJECT_TYPE_EXTENSION)return dt(f,Object.values(e.getTypeMap()).filter((e=>(0,Le.YQ)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:ut.Function}))));if((null==m?void 0:m.kind)===Oe.b.INTERFACE_TYPE_EXTENSION)return dt(f,Object.values(e.getTypeMap()).filter(Le.kD).map((e=>({label:e.name,kind:ut.Function}))));if((null==m?void 0:m.kind)===Oe.b.UNION_TYPE_EXTENSION)return dt(f,Object.values(e.getTypeMap()).filter(Le.CK).map((e=>({label:e.name,kind:ut.Function}))));if((null==m?void 0:m.kind)===Oe.b.ENUM_TYPE_EXTENSION)return dt(f,Object.values(e.getTypeMap()).filter((e=>(0,Le.oF)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:ut.Function}))));if((null==m?void 0:m.kind)===Oe.b.INPUT_OBJECT_TYPE_EXTENSION)return dt(f,Object.values(e.getTypeMap()).filter(Le.qK).map((e=>({label:e.name,kind:ut.Function}))));if(p===lt.IMPLEMENTS||p===lt.NAMED_TYPE&&(null==m?void 0:m.kind)===lt.IMPLEMENTS)return function(e,t,n,r,i){if(t.needsSeparator)return[];const o=ct(n.getTypeMap()).filter(Le.kD),a=o.map((({name:e})=>e)),s=new Set;nt(r,((e,t)=>{var r,o,l,u,c;if(t.name&&(t.kind!==lt.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===lt.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===lt.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(l=i.interfaceDef)||void 0===l?void 0:l.toConfig();i.interfaceDef=new Le.VA(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Le.VA({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(u=i.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(c=i.objectTypeDef)||void 0===c?void 0:c.toConfig();i.objectTypeDef=new Le.bh(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Le.VA({name:t.name,fields:{}})]}))}}));const l=i.interfaceDef||i.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map((({name:e})=>e));return dt(e,o.concat([...s].map((e=>({name:e})))).filter((({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:ut.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(f,u,e,t,c);if(p===lt.SELECTION_SET||p===lt.FIELD||p===lt.ALIASED_FIELD)return function(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=ct(i.getFields())),(0,Le.ML)(i)&&o.push(Ie.of),i===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&o.push(Ie.S0,Ie.Xe),dt(e,o.map(((t,r)=>{var i;const o={sortText:String(r)+t.name,label:t.name,detail:String(t.type),documentation:null!==(i=t.description)&&void 0!==i?i:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:ut.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=vt(t),o.insertText||(o.insertText=mt(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=j.Snippet,o.insertTextMode=U.adjustIndentation,o.command=yt)),o})))}return[]}(f,c,s);if(p===lt.ARGUMENTS||p===lt.ARGUMENT&&0===h){const{argDefs:e}=c;if(e)return dt(f,e.map((e=>{var t;return{label:e.name,insertText:gt(e.name+": ",e.type),insertTextMode:U.adjustIndentation,insertTextFormat:j.Snippet,command:yt,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:ut.Variable,type:e.type}})))}if((p===lt.OBJECT_VALUE||p===lt.OBJECT_FIELD&&0===h)&&c.objectFieldDefs){const e=ct(c.objectFieldDefs),t=p===lt.OBJECT_VALUE?ut.Value:ut.Field;return dt(f,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:gt(e.name+": ",e.type),insertTextMode:U.adjustIndentation,insertTextFormat:j.Snippet,command:yt}})))}if(p===lt.ENUM_VALUE||p===lt.LIST_VALUE&&1===h||p===lt.OBJECT_FIELD&&2===h||p===lt.ARGUMENT&&2===h)return function(e,t,n,r){const i=(0,Le.MR)(t.inputType),o=Ct(n,r,e).filter((e=>e.detail===(null==i?void 0:i.name)));return i instanceof Le.Zb?dt(e,i.getValues().map((e=>{var t;return{label:e.name,detail:String(i),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:ut.EnumMember,type:i}})).concat(o)):i===Fe.kk?dt(e,o.concat([{label:"true",detail:String(Fe.kk),documentation:"Not false.",kind:ut.Variable,type:Fe.kk},{label:"false",detail:String(Fe.kk),documentation:"Not true.",kind:ut.Variable,type:Fe.kk}])):o}(f,c,t,e);if(p===lt.VARIABLE&&1===h){const n=(0,Le.MR)(c.inputType);return dt(f,Ct(t,e,f).filter((e=>e.detail===(null==n?void 0:n.name))))}if(p===lt.TYPE_CONDITION&&1===h||p===lt.NAMED_TYPE&&null!=m&&m.kind===lt.TYPE_CONDITION)return function(e,t,n){let r;if(t.parentType)if((0,Le.Lc)(t.parentType)){const e=(0,Le.N_)(t.parentType),i=n.getPossibleTypes(e),o=Object.create(null);for(const e of i)for(const t of e.getInterfaces())o[t.name]=t;r=i.concat(ct(o))}else r=[t.parentType];else r=ct(n.getTypeMap()).filter((e=>(0,Le.ML)(e)&&!e.name.startsWith("__")));return dt(e,r.map((e=>{const t=(0,Le.MR)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:ut.Field}})))}(f,c,e);if(p===lt.FRAGMENT_SPREAD&&1===h)return function(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=function(e){let t;return st(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}(e.state),s=function(e){const t=[];return nt(e,((e,n)=>{n.kind===lt.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:lt.FRAGMENT_DEFINITION,name:{kind:Oe.b.NAME,value:n.name},selectionSet:{kind:lt.SELECTION_SET,selections:[]},typeCondition:{kind:lt.NAMED_TYPE,name:{kind:Oe.b.NAME,value:n.type}}})})),t}(r);i&&i.length>0&&s.push(...i);return dt(e,s.filter((e=>o[e.typeCondition.name.value]&&!(a&&a.kind===lt.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,Le.ML)(t.parentType)&&(0,Le.ML)(o[e.typeCondition.name.value])&&(0,Me.uI)(n,t.parentType,o[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:ut.Field,type:o[e.typeCondition.name.value]}))))}(f,c,e,t,Array.isArray(i)?i:bt(i));const g=St(u);return g.kind===lt.FIELD_DEF?dt(f,Object.values(e.getTypeMap()).filter((e=>(0,Le.oH)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:ut.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:U.adjustIndentation})))):g.kind===lt.INPUT_VALUE_DEF&&2===h?dt(f,Object.values(e.getTypeMap()).filter((e=>(0,Le.dX)(e)&&!e.name.startsWith("__"))).map((e=>({label:e.name,kind:ut.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:U.adjustIndentation,insertTextFormat:j.Snippet})))):p===lt.VARIABLE_DEFINITION&&2===h||p===lt.LIST_TYPE&&1===h||p===lt.NAMED_TYPE&&m&&(m.kind===lt.VARIABLE_DEFINITION||m.kind===lt.LIST_TYPE||m.kind===lt.NON_NULL_TYPE)?function(e,t){return dt(e,ct(t.getTypeMap()).filter(Le.dX).map((e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:ut.Variable}))))}(f,e):p===lt.DIRECTIVE?function(e,t,n){var r;if(null===(r=t.prevState)||void 0===r?void 0:r.kind){const r=n.getDirectives().filter((e=>function(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case lt.QUERY:return i.includes(Re.H.QUERY);case lt.MUTATION:return i.includes(Re.H.MUTATION);case lt.SUBSCRIPTION:return i.includes(Re.H.SUBSCRIPTION);case lt.FIELD:case lt.ALIASED_FIELD:return i.includes(Re.H.FIELD);case lt.FRAGMENT_DEFINITION:return i.includes(Re.H.FRAGMENT_DEFINITION);case lt.FRAGMENT_SPREAD:return i.includes(Re.H.FRAGMENT_SPREAD);case lt.INLINE_FRAGMENT:return i.includes(Re.H.INLINE_FRAGMENT);case lt.SCHEMA_DEF:return i.includes(Re.H.SCHEMA);case lt.SCALAR_DEF:return i.includes(Re.H.SCALAR);case lt.OBJECT_TYPE_DEF:return i.includes(Re.H.OBJECT);case lt.FIELD_DEF:return i.includes(Re.H.FIELD_DEFINITION);case lt.INTERFACE_DEF:return i.includes(Re.H.INTERFACE);case lt.UNION_DEF:return i.includes(Re.H.UNION);case lt.ENUM_DEF:return i.includes(Re.H.ENUM);case lt.ENUM_VALUE:return i.includes(Re.H.ENUM_VALUE);case lt.INPUT_DEF:return i.includes(Re.H.INPUT_OBJECT);case lt.INPUT_VALUE_DEF:switch(null==r?void 0:r.kind){case lt.ARGUMENTS_DEF:return i.includes(Re.H.ARGUMENT_DEFINITION);case lt.INPUT_DEF:return i.includes(Re.H.INPUT_FIELD_DEFINITION)}}return!1}(t.prevState,e)));return dt(e,r.map((e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:ut.Function}))))}return[]}(f,u,e):p===lt.DIRECTIVE_DEF?function(e,t,n){const r=n.getDirectives().find((e=>e.name===t.name));return dt(e,(null==r?void 0:r.args.map((e=>({label:e.name,documentation:e.description||"",kind:ut.Field}))))||[])}(f,u,e):[]}const Et=[{label:"type",kind:ut.Function},{label:"interface",kind:ut.Function},{label:"union",kind:ut.Function},{label:"input",kind:ut.Function},{label:"scalar",kind:ut.Function},{label:"schema",kind:ut.Function}],wt=[{label:"query",kind:ut.Function},{label:"mutation",kind:ut.Function},{label:"subscription",kind:ut.Function},{label:"fragment",kind:ut.Function},{label:"{",kind:ut.Constructor}],kt=(e,t)=>{var n,r,i,o,a,s,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0};function Ct(e,t,n){let r,i=null;const o=Object.create({});return nt(e,((e,a)=>{var s;if((null==a?void 0:a.kind)===lt.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===lt.NAMED_TYPE&&i){const e=kt(a,lt.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(i&&r&&!o[i]){const e="$"===n.string||"Variable"===(null===(s=null==n?void 0:n.state)||void 0===s?void 0:s.kind)?i:"$"+i;o[i]={detail:r.toString(),insertText:e,label:"$"+i,rawInsert:e,type:r,kind:ut.Variable},i=null,r=null}})),ct(o)}function St(e){return e.prevState&&e.kind&&[lt.NAMED_TYPE,lt.LIST_TYPE,lt.TYPE,lt.NON_NULL_TYPE].includes(e.kind)?St(e.prevState):e}var Tt=n(801),Nt=n.n(Tt);const _t=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,De.YR)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const e of r)!n.has(e)&&t.has(e)&&i.add(Nt()(t.get(e)));const o=[];for(const e of i)(0,De.YR)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(Nt()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e);return o};class Dt{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new At(e,t)}setEnd(e,t){this.end=new At(e,t)}}class At{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}var Ot=n(5571);function Lt(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(t){o?e.reportError(new Ot.eO("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new Ot.eO("Must provide only one schema definition.",{nodes:t})),++a)}}}function It(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new Ot.eO(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):o?e.reportError(new Ot.eO(`There can be only one ${i} type in schema.`,{nodes:[o,t]})):n[i]=t}return!1}}function Ft(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new Ot.eO(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new Ot.eO(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function Mt(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o];for(const t of a){const r=t.name.value,i=n[o];(0,Le.oF)(i)&&i.getValue(r)?e.reportError(new Ot.eO(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new Ot.eO(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function Rt(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o];for(const t of a){const r=t.name.value;Pt(n[o],r)?e.reportError(new Ot.eO(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new Ot.eO(`Field "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function Pt(e,t){return!!((0,Le.YQ)(e)||(0,Le.kD)(e)||(0,Le.qK)(e))&&null!=e.getFields()[t]}function jt(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new Ot.eO(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new Ot.eO(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}var Vt=n(8100),Bt=n(2239);function Ut(e){return e.kind===Oe.b.OPERATION_DEFINITION||e.kind===Oe.b.FRAGMENT_DEFINITION}function zt(e){return e.kind===Oe.b.SCALAR_TYPE_DEFINITION||e.kind===Oe.b.OBJECT_TYPE_DEFINITION||e.kind===Oe.b.INTERFACE_TYPE_DEFINITION||e.kind===Oe.b.UNION_TYPE_DEFINITION||e.kind===Oe.b.ENUM_TYPE_DEFINITION||e.kind===Oe.b.INPUT_OBJECT_TYPE_DEFINITION}function Ht(e){return e.kind===Oe.b.SCALAR_TYPE_EXTENSION||e.kind===Oe.b.OBJECT_TYPE_EXTENSION||e.kind===Oe.b.INTERFACE_TYPE_EXTENSION||e.kind===Oe.b.UNION_TYPE_EXTENSION||e.kind===Oe.b.ENUM_TYPE_EXTENSION||e.kind===Oe.b.INPUT_OBJECT_TYPE_EXTENSION}function qt(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)zt(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){const u=t.name.value;if(!n[u]&&!r[u]){var c;const n=null!==(c=l[2])&&void 0!==c?c:a,r=null!=n&&"kind"in(d=n)&&(function(e){return e.kind===Oe.b.SCHEMA_DEFINITION||zt(e)||e.kind===Oe.b.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===Oe.b.SCHEMA_EXTENSION||Ht(e)}(d));if(r&&$t.includes(u))return;const o=(0,Bt.x)(u,r?$t.concat(i):i);e.reportError(new Ot.eO(`Unknown type "${u}".`+(0,Vt.a)(o),{nodes:t}))}var d}}}const $t=[...Fe.YC,...Ie.V4].map((e=>e.name));var Wt=n(129),Gt=n(1181),Kt=n(475),Yt=n(7613);function Qt(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yt.rc;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===Oe.b.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,r,i,o,a){const s=n.name.value,l=t[s];if(!l)return void e.reportError(new Ot.eO(`Unknown directive "@${s}".`,{nodes:n}));const u=function(e){const t=e[e.length-1];switch("kind"in t||(0,Gt.V)(!1),t.kind){case Oe.b.OPERATION_DEFINITION:return function(e){switch(e){case Kt.cE.QUERY:return Re.H.QUERY;case Kt.cE.MUTATION:return Re.H.MUTATION;case Kt.cE.SUBSCRIPTION:return Re.H.SUBSCRIPTION}}(t.operation);case Oe.b.FIELD:return Re.H.FIELD;case Oe.b.FRAGMENT_SPREAD:return Re.H.FRAGMENT_SPREAD;case Oe.b.INLINE_FRAGMENT:return Re.H.INLINE_FRAGMENT;case Oe.b.FRAGMENT_DEFINITION:return Re.H.FRAGMENT_DEFINITION;case Oe.b.VARIABLE_DEFINITION:return Re.H.VARIABLE_DEFINITION;case Oe.b.SCHEMA_DEFINITION:case Oe.b.SCHEMA_EXTENSION:return Re.H.SCHEMA;case Oe.b.SCALAR_TYPE_DEFINITION:case Oe.b.SCALAR_TYPE_EXTENSION:return Re.H.SCALAR;case Oe.b.OBJECT_TYPE_DEFINITION:case Oe.b.OBJECT_TYPE_EXTENSION:return Re.H.OBJECT;case Oe.b.FIELD_DEFINITION:return Re.H.FIELD_DEFINITION;case Oe.b.INTERFACE_TYPE_DEFINITION:case Oe.b.INTERFACE_TYPE_EXTENSION:return Re.H.INTERFACE;case Oe.b.UNION_TYPE_DEFINITION:case Oe.b.UNION_TYPE_EXTENSION:return Re.H.UNION;case Oe.b.ENUM_TYPE_DEFINITION:case Oe.b.ENUM_TYPE_EXTENSION:return Re.H.ENUM;case Oe.b.ENUM_VALUE_DEFINITION:return Re.H.ENUM_VALUE;case Oe.b.INPUT_OBJECT_TYPE_DEFINITION:case Oe.b.INPUT_OBJECT_TYPE_EXTENSION:return Re.H.INPUT_OBJECT;case Oe.b.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,Gt.V)(!1),t.kind===Oe.b.INPUT_OBJECT_TYPE_DEFINITION?Re.H.INPUT_FIELD_DEFINITION:Re.H.ARGUMENT_DEFINITION}default:(0,Gt.V)(!1,"Unexpected kind: "+(0,Wt.N)(t.kind))}}(a);u&&!l.includes(u)&&e.reportError(new Ot.eO(`Directive "@${s}" may not be used on ${u}.`,{nodes:n}))}}}function Xt(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yt.rc;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===Oe.b.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===Oe.b.SCHEMA_DEFINITION||n.kind===Oe.b.SCHEMA_EXTENSION)r=o;else if(zt(n)||Ht(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new Ot.eO(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function Zt(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)zt(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],a=null==t?void 0:t.getType(i);let s;if(o?s=Jt[o.kind]:a&&(l=a,s=(0,Le.lg)(l)?Oe.b.SCALAR_TYPE_EXTENSION:(0,Le.YQ)(l)?Oe.b.OBJECT_TYPE_EXTENSION:(0,Le.kD)(l)?Oe.b.INTERFACE_TYPE_EXTENSION:(0,Le.CK)(l)?Oe.b.UNION_TYPE_EXTENSION:(0,Le.oF)(l)?Oe.b.ENUM_TYPE_EXTENSION:(0,Le.qK)(l)?Oe.b.INPUT_OBJECT_TYPE_EXTENSION:void(0,Gt.V)(!1,"Unexpected type: "+(0,Wt.N)(l))),s){if(s!==r.kind){const t=function(e){switch(e){case Oe.b.SCALAR_TYPE_EXTENSION:return"scalar";case Oe.b.OBJECT_TYPE_EXTENSION:return"object";case Oe.b.INTERFACE_TYPE_EXTENSION:return"interface";case Oe.b.UNION_TYPE_EXTENSION:return"union";case Oe.b.ENUM_TYPE_EXTENSION:return"enum";case Oe.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Gt.V)(!1,"Unexpected kind: "+(0,Wt.N)(e))}}(r.kind);e.reportError(new Ot.eO(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),a=(0,Bt.x)(i,o);e.reportError(new Ot.eO(`Cannot extend type "${i}" because it is not defined.`+(0,Vt.a)(a),{nodes:r.name}))}var l}}const Jt={[Oe.b.SCALAR_TYPE_DEFINITION]:Oe.b.SCALAR_TYPE_EXTENSION,[Oe.b.OBJECT_TYPE_DEFINITION]:Oe.b.OBJECT_TYPE_EXTENSION,[Oe.b.INTERFACE_TYPE_DEFINITION]:Oe.b.INTERFACE_TYPE_EXTENSION,[Oe.b.UNION_TYPE_DEFINITION]:Oe.b.UNION_TYPE_EXTENSION,[Oe.b.ENUM_TYPE_DEFINITION]:Oe.b.ENUM_TYPE_EXTENSION,[Oe.b.INPUT_OBJECT_TYPE_DEFINITION]:Oe.b.INPUT_OBJECT_TYPE_EXTENSION};function en(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function tn(e){return{Field:t,Directive:t};function t(t){var n;const r=en(null!==(n=t.arguments)&&void 0!==n?n:[],(e=>e.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new Ot.eO(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}}function nn(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,Gt.V)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new Ot.eO(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function rn(e){return{OperationDefinition(t){var n;const r=en(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],(e=>e.variable.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new Ot.eO(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}}var on=n(6547),an=n(9581);function sn(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,an.v)(e.getSchema(),n);if(t&&!(0,Le.ML)(t)){const t=(0,on.y)(n);e.reportError(new Ot.eO(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,an.v)(e.getSchema(),t.typeCondition);if(n&&!(0,Le.ML)(n)){const n=(0,on.y)(t.typeCondition);e.reportError(new Ot.eO(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}var ln=n(2242);function un(e){return{...cn(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of r.args)if(!i.has(n.name)&&(0,Le.xP)(n)){const i=(0,Wt.N)(n.type);e.reportError(new Ot.eO(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function cn(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:Yt.rc;for(const e of i)n[e.name]=(0,ln.K)(e.args.filter(Le.xP),(e=>e.name));const o=e.getDocument().definitions;for(const e of o)if(e.kind===Oe.b.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=(0,ln.K)(t.filter(dn),(e=>e.name.value))}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],a=new Set(n.map((e=>e.name.value)));for(const[n,o]of Object.entries(i))if(!a.has(n)){const i=(0,Le.Xj)(o.type)?(0,Wt.N)(o.type):(0,on.y)(o.type);e.reportError(new Ot.eO(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function dn(e){return e.type.kind===Oe.b.NON_NULL_TYPE&&null==e.defaultValue}function fn(e){return{Document(t){for(const n of t.definitions)if(!Ut(n)){const t=n.kind===Oe.b.SCHEMA_DEFINITION||n.kind===Oe.b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Ot.eO(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}var pn=n(9779);function hn(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yt.rc;for(const e of r)t[e.name]=e.args.map((e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===Oe.b.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=(0,Bt.x)(n,i);e.reportError(new Ot.eO(`Unknown argument "${n}" on directive "@${r}".`+(0,Vt.a)(o),{nodes:t}))}}return!1}}}function mn(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new Ot.eO(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function gn(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new Ot.eO(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function vn(e){switch(e.kind){case Oe.b.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:vn(e.value)}))).sort(((e,t)=>(0,pn.p)(e.name.value,t.name.value))))};case Oe.b.LIST:return{...e,values:e.values.map(vn)};case Oe.b.INT:case Oe.b.FLOAT:case Oe.b.STRING:case Oe.b.BOOLEAN:case Oe.b.NULL:case Oe.b.ENUM:case Oe.b.VARIABLE:return e}var t}function yn(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+yn(t))).join(" and "):e}function bn(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);const l=e.getFragment(s);if(!l)return;const[u,c]=Tn(e,n,l);if(a!==u){En(e,t,n,r,i,o,a,u);for(const s of c)bn(e,t,n,r,i,o,a,s)}}function xn(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 l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;const[c,d]=Tn(e,n,l),[f,p]=Tn(e,n,u);En(e,t,n,r,i,o,c,f);for(const s of p)xn(e,t,n,r,i,o,a,s);for(const a of d)xn(e,t,n,r,i,o,a,s)}function En(e,t,n,r,i,o,a,s){for(const[l,u]of Object.entries(a)){const a=s[l];if(a)for(const s of u)for(const u of a){const a=wn(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function wn(e,t,n,r,i,o,a,s){const[l,u,c]=a,[d,f,p]=s,h=i||l!==d&&(0,Le.YQ)(l)&&(0,Le.YQ)(d);if(!h){const e=u.name.value,t=f.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[f]];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&&kn(t)===kn(n)}))}(u,f))return[[o,"they have differing arguments"],[u],[f]]}const m=null==c?void 0:c.type,g=null==p?void 0:p.type;if(m&&g&&Cn(m,g))return[[o,`they return conflicting types "${(0,Wt.N)(m)}" and "${(0,Wt.N)(g)}"`],[u],[f]];const v=u.selectionSet,y=f.selectionSet;if(v&&y){const i=function(e,t,n,r,i,o,a,s,l){const u=[],[c,d]=Sn(e,t,o,a),[f,p]=Sn(e,t,s,l);En(e,u,t,n,r,i,c,f);for(const o of p)bn(e,u,t,n,r,i,c,o);for(const o of d)bn(e,u,t,n,r,i,f,o);for(const o of d)for(const a of p)xn(e,u,t,n,r,i,o,a);return u}(e,t,n,r,h,(0,Le.MR)(m),v,(0,Le.MR)(g),y);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()]]}(i,o,u,f)}}function kn(e){return(0,on.y)(vn(e))}function Cn(e,t){return(0,Le.Fs)(e)?!(0,Le.Fs)(t)||Cn(e.ofType,t.ofType):!!(0,Le.Fs)(t)||((0,Le.bd)(e)?!(0,Le.bd)(t)||Cn(e.ofType,t.ofType):!!(0,Le.bd)(t)||!(!(0,Le.zf)(e)&&!(0,Le.zf)(t))&&e!==t)}function Sn(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);Nn(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function Tn(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,an.v)(e.getSchema(),n.typeCondition);return Sn(e,t,i,n.selectionSet)}function Nn(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case Oe.b.FIELD:{const e=o.name.value;let n;((0,Le.YQ)(t)||(0,Le.kD)(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case Oe.b.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Oe.b.INLINE_FRAGMENT:{const n=o.typeCondition,a=n?(0,an.v)(e.getSchema(),n):t;Nn(e,a,o.selectionSet,r,i);break}}}class _n{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 Dn{constructor(){this._orderedPairSet=new _n}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)}}var An=n(726);function On(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 function(e,t,n){var r;const i={},o=null!==(r=t.arguments)&&void 0!==r?r:[],a=(0,ln.K)(o,(e=>e.name.value));for(const r of e.args){const e=r.name,o=r.type,u=a[e];if(!u){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if((0,Le.bd)(o))throw new Ot.eO(`Argument "${e}" of required type "${(0,Wt.N)(o)}" was not provided.`,{nodes:t});continue}const c=u.value;let d=c.kind===Oe.b.NULL;if(c.kind===Oe.b.VARIABLE){const t=c.name.value;if(null==n||(s=n,l=t,!Object.prototype.hasOwnProperty.call(s,l))){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if((0,Le.bd)(o))throw new Ot.eO(`Argument "${e}" of required type "${(0,Wt.N)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:c});continue}d=null==n[t]}if(d&&(0,Le.bd)(o))throw new Ot.eO(`Argument "${e}" of non-null type "${(0,Wt.N)(o)}" must not be null.`,{nodes:c});const f=(0,An.i)(c,o,n);if(void 0===f)throw new Ot.eO(`Argument "${e}" has invalid value ${(0,on.y)(c)}.`,{nodes:c});i[e]=f}var s,l;return i}(e,i,n)}function Ln(e,t,n,r,i,o,a){for(const l of i.selections)switch(l.kind){case Oe.b.FIELD:{if(!In(n,l))continue;const e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case Oe.b.INLINE_FRAGMENT:if(!In(n,l)||!Fn(e,l,r))continue;Ln(e,t,n,r,l.selectionSet,o,a);break;case Oe.b.FRAGMENT_SPREAD:{const i=l.name.value;if(a.has(i)||!In(n,l))continue;a.add(i);const s=t[i];if(!s||!Fn(e,s,r))continue;Ln(e,t,n,r,s.selectionSet,o,a);break}}var s}function In(e,t){const n=On(Yt.MQ,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=On(Yt.HQ,t,e);return!1!==(null==r?void 0:r.if)}function Fn(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=(0,an.v)(e,r);return i===n||!!(0,Le.Lc)(i)&&e.isSubType(i,n)}function Mn(e,t){const n=e.getInputType();if(!n)return;const r=(0,Le.MR)(n);if((0,Le.zf)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,Wt.N)(n);e.reportError(new Ot.eO(`Expected value of type "${r}", found ${(0,on.y)(t)}.`,{nodes:t}))}}catch(r){const i=(0,Wt.N)(n);r instanceof Ot.eO?e.reportError(r):e.reportError(new Ot.eO(`Expected value of type "${i}", found ${(0,on.y)(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=(0,Wt.N)(n);e.reportError(new Ot.eO(`Expected value of type "${r}", found ${(0,on.y)(t)}.`,{nodes:t}))}}function Rn(e,t,n,r,i){if((0,Le.bd)(r)&&!(0,Le.bd)(t)){if((null==n||n.kind===Oe.b.NULL)&&void 0===i)return!1;const o=r.ofType;return(0,Me.sP)(e,t,o)}return(0,Me.sP)(e,t,r)}const Pn=Object.freeze([function(e){function t(n,r=Object.create(null),i=0){if(n.kind===Oe.b.FRAGMENT_SPREAD){const o=n.name.value;if(!0===r[o])return!1;const a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===Oe.b.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,i))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new Ot.eO("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}]),jn=Object.freeze([fn,function(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new Ot.eO(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}},function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===Oe.b.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Ot.eO("This anonymous operation must be the only defined operation.",{nodes:n}))}}},function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===Oe.b.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const l=function(e,t,n,r,i){const o=new Map;return Ln(e,t,n,r,i,o,new Set),o}(n,s,o,r,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new Ot.eO(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new Ot.eO(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}},qt,sn,function(e){return{VariableDefinition(t){const n=(0,an.v)(e.getSchema(),t.type);if(void 0!==n&&!(0,Le.dX)(n)){const n=t.variable.name.value,r=(0,on.y)(t.type);e.reportError(new Ot.eO(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}},function(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if((0,Le.zf)((0,Le.MR)(n))){if(r){const i=t.name.value,o=(0,Wt.N)(n);e.reportError(new Ot.eO(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=t.name.value,i=(0,Wt.N)(n);e.reportError(new Ot.eO(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,i=(0,Wt.N)(n);e.reportError(new Ot.eO(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}},function(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=(0,Vt.a)("to use an inline fragment on",function(e,t,n){if(!(0,Le.Lc)(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const e of a.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:(0,Le.kD)(t)&&e.isSubType(t,n)?-1:(0,Le.kD)(n)&&e.isSubType(n,t)?1:(0,pn.p)(t.name,n.name)})).map((e=>e.name))}(r,n,i));""===o&&(o=(0,Vt.a)(function(e,t){if((0,Le.YQ)(e)||(0,Le.kD)(e)){const n=Object.keys(e.getFields());return(0,Bt.x)(t,n)}return[]}(n,i))),e.reportError(new Ot.eO(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}},function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new Ot.eO(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}},mn,gn,function(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if((0,Le.ML)(n)&&(0,Le.ML)(r)&&!(0,Me.uI)(e.getSchema(),n,r)){const i=(0,Wt.N)(r),o=(0,Wt.N)(n);e.reportError(new Ot.eO(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=(0,an.v)(e.getSchema(),n.typeCondition);if((0,Le.ML)(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!(0,Me.uI)(e.getSchema(),r,i)){const o=(0,Wt.N)(i),a=(0,Wt.N)(r);e.reportError(new Ot.eO(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}},function(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const a=o.name.value;t[a]=!0;const s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(const t of s){const o=t.name.value,a=r[o];if(n.push(t),void 0===a){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(a),r=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new Ot.eO(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}}},rn,function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new Ot.eO(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}},function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new Ot.eO(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}},Qt,Xt,function(e){return{...hn(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=r.args.map((e=>e.name)),a=(0,Bt.x)(n,o);e.reportError(new Ot.eO(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+(0,Vt.a)(a),{nodes:t}))}}}},tn,function(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const n=(0,Le.yl)(e.getParentInputType());if(!(0,Le.Fs)(n))return Mn(e,t),!1},ObjectValue(n){const r=(0,Le.MR)(e.getInputType());if(!(0,Le.qK)(r))return Mn(e,n),!1;const i=(0,ln.K)(n.fields,(e=>e.name.value));for(const t of Object.values(r.getFields()))if(!i[t.name]&&(0,Le.YX)(t)){const i=(0,Wt.N)(t.type);e.reportError(new Ot.eO(`Field "${r.name}.${t.name}" of required type "${i}" was not provided.`,{nodes:n}))}r.isOneOf&&function(e,t,n,r,i){var o;const a=Object.keys(r);if(1!==a.length)return void e.reportError(new Ot.eO(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const s=null===(o=r[a[0]])||void 0===o?void 0:o.value,l=!s||s.kind===Oe.b.NULL,u=(null==s?void 0:s.kind)===Oe.b.VARIABLE;if(l)e.reportError(new Ot.eO(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));else if(u){const r=s.name.value;i[r].type.kind!==Oe.b.NON_NULL_TYPE&&e.reportError(new Ot.eO(`Variable "${r}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}(e,n,r,i,t)},ObjectField(t){const n=(0,Le.MR)(e.getParentInputType());if(!e.getInputType()&&(0,Le.qK)(n)){const r=(0,Bt.x)(t.name.value,Object.keys(n.getFields()));e.reportError(new Ot.eO(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,Vt.a)(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,Le.bd)(n)&&e.reportError(new Ot.eO(`Expected value of type "${(0,Wt.N)(n)}", found ${(0,on.y)(t)}.`,{nodes:t}))},EnumValue:t=>Mn(e,t),IntValue:t=>Mn(e,t),FloatValue:t=>Mn(e,t),StringValue:t=>Mn(e,t),BooleanValue:t=>Mn(e,t)}},un,function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o}of r){const r=n.name.value,a=t[r];if(a&&i){const t=e.getSchema(),s=(0,an.v)(t,a.type);if(s&&!Rn(t,s,a.defaultValue,i,o)){const t=(0,Wt.N)(s),o=(0,Wt.N)(i);e.reportError(new Ot.eO(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,{nodes:[a,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}},function(e){const t=new _n,n=new Dn,r=new Map;return{SelectionSet(i){const o=function(e,t,n,r,i,o){const a=[],[s,l]=Sn(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 l=o+1;l<s.length;l++){const u=wn(e,n,r,i,!1,a,s[o],s[l]);u&&t.push(u)}}(e,a,t,n,r,s),0!==l.length)for(let i=0;i<l.length;i++){bn(e,a,t,n,r,!1,s,l[i]);for(let o=i+1;o<l.length;o++)xn(e,a,t,n,r,!1,l[i],l[o])}return a}(e,r,t,n,e.getParentType(),i);for(const[[t,n],r,i]of o){const o=yn(n);e.reportError(new Ot.eO(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(i)}))}}}},nn,...Pn]);Object.freeze([Lt,It,Ft,Mt,Rt,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 r=en(n,(e=>e.name.value));for(const[n,i]of r)i.length>1&&e.reportError(new Ot.eO(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map((e=>e.name))}));return!1}},jt,qt,Qt,Xt,Zt,hn,tn,nn,cn]);var Vn=n(6286),Bn=n(617),Un=n(2327);class zn{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===Oe.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===Oe.b.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}}Symbol.toStringTag;class Hn extends zn{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 Un.D(this._schema);(0,De.YR)(e,(0,Un.S)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function qn(e,t,n=jn,r,i=new Un.D(e)){var o;const a=null!==(o=null==r?void 0:r.maxErrors)&&void 0!==o?o:100;t||(0,Vn.U)(!1,"Must provide document."),(0,Bn.Y)(e);const s=Object.freeze({}),l=[],u=new Hn(e,t,i,(e=>{if(l.length>=a)throw l.push(new Ot.eO("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)})),c=(0,De.oP)(n.map((e=>e(u))));try{(0,De.YR)(t,(0,Un.S)(i,c))}catch(e){if(e!==s)throw e}return l}function $n(e,t){if(t)try{const n=(0,Ae.qg)(t);return Object.assign(Object.assign({},function(e,t){const n=t?function(e,t){const n=Object.create(null);for(const r of t.definitions)if("OperationDefinition"===r.kind){const{variableDefinitions:t}=r;if(t)for(const{variable:r,type:i}of t){const t=(0,an.v)(e,i);t?n[r.name.value]=t:i.kind===Oe.b.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=Fe.qS)}}return n}(t,e):void 0,r=[];return(0,De.YR)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}(n,e)),{documentAST:n})}catch(e){return}}function Wn(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||(0,Gt.V)(!1),e.reportError(new Ot.eO(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new Ot.eO(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||(0,Gt.V)(!1),e.reportError(new Ot.eO(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=(0,Le.MR)(e.getParentInputType());if((0,Le.qK)(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new Ot.eO(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=(0,Le.MR)(e.getInputType());null!=i||(0,Gt.V)(!1),e.reportError(new Ot.eO(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}const Gn="Error",Kn="Warning",Yn="Information",Qn="Hint",Xn={[Gn]:1,[Kn]:2,[Yn]:3,[Qn]:4},Zn=(e,t)=>{if(!e)throw new Error(t)};function Jn(e,t=null,n,r,i){var o,a;let s=null,l="";i&&(l="string"==typeof i?i:i.reduce(((e,t)=>e+(0,on.y)(t)+"\n\n"),""));const u=l?`${e}\n\n${l}`:e;try{s=(0,Ae.qg)(u)}catch(e){if(e instanceof Ot.eO){const t=function(e,t){const n=Ke(),r=n.startState(),i=t.split("\n");Zn(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t<e.line;t++)for(o=new je(i[t]);!o.eol()&&"invalidchar"!==n.token(o,r););Zn(o,"Expected Parser stream to be available.");const a=e.line-1,s=o.getStartOfToken(),l=o.getCurrentPosition();return new Dt(new At(a,s),new At(a,l))}(null!==(a=null===(o=e.locations)||void 0===o?void 0:o[0])&&void 0!==a?a:{line:0,column:0},u);return[{severity:Xn.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return function(e,t=null,n,r){if(!t)return[];const i=function(e,t,n,r){const i=jn.filter((e=>e!==gn&&e!==fn&&(!r||e!==mn)));return n&&Array.prototype.push.apply(i,n),qn(e,t,i).filter((e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===Oe.b.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}(t,e,n,r).flatMap((e=>er(e,Xn.Error,"Validation"))),o=qn(t,e,[Wn]).flatMap((e=>er(e,Xn.Warning,"Deprecation")));return i.concat(o)}(s,t,n,r)}function er(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const a="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(a){Zn(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=tr(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new Dt(new At(o.line-1,o.column-1),new At(o.line-1,l))})}}return r}function tr(e){const t=e.loc;return Zn(t,"Expected ASTNode to have a location."),t}const{INLINE_FRAGMENT:nr}=Oe.b},5218:(e,t,n)=>{!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var u=c(t,a[l].head);if(!u||o.indexOf(u)%2!=0)return e.Pass}for(l=a.length-1;l>=0;l--){var d=a[l].head;t.replaceRange("",n(d.line,d.ch-1),n(d.line,d.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var u=c(t,o[a].head);if(!u||i.indexOf(u)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),l(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),c=a.indexOf(i);if(-1==c)return e.Pass;for(var f,p=r(o,"closeBefore"),h=r(o,"triples"),m=a.charAt(c+1)==i,g=t.listSelections(),v=c%2==0,y=0;y<g.length;y++){var b,x=g[y],E=x.head,w=t.getRange(E,n(E.line,E.ch+1));if(v&&!x.empty())b="surround";else if(!m&&v||w!=i)if(m&&E.ch>1&&h.indexOf(i)>=0&&t.getRange(n(E.line,E.ch-2),E)==i+i){if(E.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(E.line,E.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==E.ch?" ":t.getRange(n(E.line,E.ch-1),E);if(e.isWordChar(w)||k==i||e.isWordChar(k))return e.Pass;b="both"}else{if(!v||!(0===w.length||/\s/.test(w)||p.indexOf(w)>-1))return e.Pass;b="both"}else b=m&&d(t,E)?"both":h.indexOf(i)>=0&&t.getRange(E,n(E.line,E.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=b)return e.Pass}else f=b}var C=c%2?a.charAt(c-1):i,S=c%2?i:a.charAt(c+1);t.operation((function(){if("skip"==f)l(t,1);else if("skipThree"==f)l(t,3);else if("surround"==f){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=C+e[n]+S;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=u(e[n]);t.setSelections(e)}else"both"==f?(t.replaceSelection(C+S,null),t.triggerElectric(C+S),l(t,-1)):"addFour"==f&&(t.replaceSelection(C+C+C+C,"before"),l(t,1))}))}(i,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var s=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function u(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function c(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function d(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(5237))},5237:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),x=/\bCrOS\b/.test(e),E=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var k=b&&(u||f&&(null==w||w<12.11)),C=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,N=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function _(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return _(e).appendChild(t)}function A(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function O(e,t,n,r){var i=A(e,t,n,r);return i.setAttribute("role","presentation"),i}function L(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function F(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}T=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var R=function(e){e.select()};function P(e){return e.display.wrapper.ownerDocument}function j(e){return V(e.display.wrapper)}function V(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function B(e){return P(e).defaultView}function U(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function z(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function H(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(R=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};function $(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var W={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},K={origin:"*mouse"},Y={origin:"+move"};function Q(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function Z(e){for(;X.length<=e;)X.push(J(X)+" ");return X[e]}function J(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&z(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ue(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ce(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var de=null;function fe(e,t,n){var r;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var pe=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l,u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c=a.length,d=[],f=0;f<c;++f)d.push((l=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var p=0,h=u;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=u;g<c;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":n.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,x=d[0];b<c-1;++b){var E=d[b];"+"==E&&"1"==x&&"1"==d[b+1]?d[b]="1":","!=E||x!=d[b+1]||"1"!=x&&"n"!=x||(d[b]=x),x=E}for(var w=0;w<c;++w){var k=d[w];if(","==k)d[w]="N";else if("%"==k){var C=void 0;for(C=w+1;C<c&&"%"==d[C];++C);for(var S=w&&"!"==d[w-1]||C<c&&"1"==d[C]?"1":"N",T=w;T<C;++T)d[T]=S;w=C-1}}for(var N=0,_=u;N<c;++N){var D=d[N];"L"==_&&"1"==D?d[N]="L":n.test(D)&&(_=D)}for(var A=0;A<c;++A)if(t.test(d[A])){var O=void 0;for(O=A+1;O<c&&t.test(d[O]);++O);for(var L="L"==(A?d[A-1]:u),I=L==("L"==(O<c?d[O]:u))?L?"L":"R":u,F=A;F<O;++F)d[F]=I;A=O-1}for(var M,R=[],P=0;P<c;)if(r.test(d[P])){var j=P;for(++P;P<c&&r.test(d[P]);++P);R.push(new o(0,j,P))}else{var V=P,B=R.length,U="rtl"==s?1:0;for(++P;P<c&&"L"!=d[P];++P);for(var z=V;z<P;)if(i.test(d[z])){V<z&&(R.splice(B,0,new o(1,V,z)),B+=U);var H=z;for(++z;z<P&&i.test(d[z]);++z);R.splice(B,0,new o(2,H,z)),B+=U,V=z}else++z;V<P&&R.splice(B,0,new o(1,V,P))}return"ltr"==s&&(1==R[0].level&&(M=a.match(/^\s+/))&&(R[0].from=M[0].length,R.unshift(new o(0,0,M[0].length))),1==J(R).level&&(M=a.match(/\s+$/))&&(J(R).to-=M[0].length,R.push(new o(0,c-M[0].length,c)))),"rtl"==s?R.reverse():R}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=pe(e.text,t)),n}var me=[],ge=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||me).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||me}function ye(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=$(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function xe(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),Te(t)||t.codemirrorIgnore}function Ee(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==$(n,t[r])&&n.push(t[r])}function we(e,t){return ve(e,t).length>0}function ke(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ne(e){Ce(e),Se(e)}function _e(e){return e.target||e.srcElement}function De(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Ae,Oe,Le=function(){if(a&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==Ae){var t=A("span","");D(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ae?A("span",""):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Fe(e){if(null!=Oe)return Oe;var t=D(e,document.createTextNode("AخA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return _(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Me,Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},je="oncopy"in(Me=A("div"))||(Me.setAttribute("oncopy","return;"),"function"==typeof Me.oncopy),Ve=null;var Be={},Ue={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function He(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return He("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return He("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=He(t);var n=Be[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $e={};function We(e,t){z(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var Qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ze(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Je(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=$(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return ot(e.line,e.ch)}function ut(e,t){return at(e,t)<0?t:e}function ct(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Xe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}(t,Xe(e,t.line).text.length)}function pt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=H(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return H(this.string,null,this.tabSize)-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function gt(e,t,n,r){var i=[e.state.modeGen],o={};St(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,St(e,t.text,s.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function vt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=yt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&Ge(e.doc.mode,r.state),o=gt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Xe(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ht?u.lookAhead:0)<=o.modeFrontier))return s;var c=H(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Xe(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,Ye(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new Qe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&xt(i,n.state);!o.eol();)Et(i,o,n.state),o.start=o.pos}function xt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof ht?new mt(e,Ge(e.mode,t.state),n,t.lookAhead):new mt(e,Ge(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var wt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Xe(a,(t=ft(a,t)).line),u=yt(e,t.line,n),c=new Qe(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Et(s,c,u.state),r&&o.push(new wt(c,i,Ge(a.mode,u.state)));return r?o:new wt(c,i,u.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function St(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Qe(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&Ct(xt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,l=null):l=Ct(Et(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}var Tt=!1,Nt=!1;function _t(e,t,n){this.marker=e,this.from=t,this.to=n}function Dt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function At(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ot(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Xe(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new _t(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=J(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Dt(l,f.marker);p?u&&(f.to=null==p.to?null:p.to+c):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Dt(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Lt(s)),l&&l!=s&&(l=Lt(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new _t(s[b].marker,null,null));for(var x=0;x<y;++x)g.push(v);g.push(l)}return g}function Lt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function It(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ft(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Mt(e){return e.inclusiveLeft?-1:0}function Rt(e){return e.inclusiveRight?1:0}function Pt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||Mt(e)-Mt(t);return o?-o:at(r.to,i.to)||Rt(e)-Rt(t)||t.id-e.id}function jt(e,t){var n,r=Nt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Pt(n,i.marker)<0)&&(n=i.marker);return n}function Vt(e){return jt(e,!0)}function Bt(e){return jt(e,!1)}function Ut(e,t){var n,r=Nt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Pt(n,o.marker)<0)&&(n=o.marker)}return n}function zt(e,t,n,r,i){var o=Xe(e,t),a=Nt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=at(u.from,n)||Mt(l.marker)-Mt(i),d=at(u.to,r)||Rt(l.marker)-Rt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.to,n)>=0:at(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.from,r)<=0:at(u.from,r)<0)))return!0}}}function Ht(e){for(var t;t=Vt(e);)e=t.find(-1,!0).line;return e}function qt(e,t){var n=Xe(e,t),r=Ht(n);return n==r?t:tt(r)}function $t(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!Wt(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return tt(r)+1}function Wt(e,t){var n=Nt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Gt(e,t,r))return!0}}function Gt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Gt(e,r.line,Dt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Gt(e,t,i))return!0}function Kt(e){for(var t=0,n=(e=Ht(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Yt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Vt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Bt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Qt(e){var t=e.display,n=e.doc;t.maxLine=Xe(n,n.first),t.maxLineLength=Yt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Yt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Xt=function(e,t,n){this.text=e,Ft(this,t),this.height=n?n(this):1};function Zt(e){e.parent=null,It(e)}Xt.prototype.lineNo=function(){return tt(this)},ke(Xt);var Jt={},en={};function tn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?en:Jt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function nn(e,t){var n=O("span",null,null,l?"padding-right: .1px":null),r={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=on,Fe(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=an(r.addToken,a)),r.map=[],ln(o,r,vt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function rn(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function on(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&s<9?u.appendChild(A("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(A("span",Z(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(A("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||l){var x=n||"";r&&(x+=r),i&&(x+=i);var E=A("span",[u],x,o);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&E.setAttribute(w,l[w]);return e.content.appendChild(E)}e.content.appendChild(u)}}function an(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>u&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function sn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ln(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var E=r[x],w=E.marker;if("bookmark"==w.type&&E.from==h&&w.widgetNode)y.push(w);else if(E.from<=h&&(null==E.to||E.to>h||w.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&v>E.to&&(v=E.to,u=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&E.from==h&&(c+=" "+w.startStyle),w.endStyle&&E.to==v&&(b||(b=[])).push(w.endStyle,E.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var k in w.attributes)(f||(f={}))[k]=w.attributes[k];w.collapsed&&(!d||Pt(d.marker,w)<0)&&(d=E)}else E.from>h&&v>E.from&&(v=E.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(u+=" "+b[C]);if(!d||d.from==h)for(var S=0;S<y.length;++S)sn(t,0,y[S]);if(d&&(d.from||0)==h){if(sn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var T=Math.min(p,v);;){if(g){var N=h+g.length;if(!d){var _=N>T?g.slice(0,T-h):g;t.addToken(t,_,a?a+l:l,c,h+_.length==v?u:"",s,f)}if(N>=T){g=g.slice(T-h),h=T;break}h=N,c=""}g=i.slice(o,o=n[m++]),a=tn(n[m++],t.cm.options)}}else for(var D=1;D<n.length;D+=2)t.addToken(t,i.slice(o,o=n[D]),tn(n[D+1],t.cm.options))}function un(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Bt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?tt(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Wt(e,t)}function cn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new un(e.doc,Xe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var dn=null;var fn=null;function pn(e,t){var n=ve(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);dn?r=dn.delayedCallbacks:fn?r=fn:(r=fn=[],setTimeout(hn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function hn(){var e=fn;fn=null;for(var t=0;t<e.length;++t)e[t]()}function mn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?yn(e,t):"gutter"==o?xn(e,t,n,r):"class"==o?bn(e,t):"widget"==o&&En(e,t,r)}t.changes=null}function gn(e){return e.node==e.text&&(e.node=A("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function vn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):nn(e,t)}function yn(e,t){var n=t.text.className,r=vn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,bn(e,t)):n&&(t.text.className=n)}function bn(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=gn(t);t.background=r.insertBefore(A("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?gn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function xn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=gn(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=gn(t),s=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(A("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function En(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);kn(e,t,n)}function wn(e,t,n,r){var i=vn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),bn(e,t),xn(e,t,n,r),kn(e,t,r),t.node}function kn(e,t,n){if(Cn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Cn(e,t.rest[r],t,n,!1)}function Cn(e,t,n,r,i){if(t.widgets)for(var o=gn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=A("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Sn(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),pn(l,"redraw")}}function Sn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Tn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!L(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),D(t.display.measure,A("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Nn(e,t){for(var n=_e(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function _n(e){return e.lineSpace.offsetTop}function Dn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function An(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=D(e.measure,A("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function On(e){return 50-e.display.nativeBarWidth}function Ln(e){return e.display.scroller.clientWidth-On(e)-e.display.barWidth}function In(e){return e.display.scroller.clientHeight-On(e)-e.display.barHeight}function Fn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Mn(e,t,n,r){return jn(e,Pn(e,t),n,r)}function Rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[mr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Pn(e,t){var n=tt(t),r=Rn(e,n);r&&!r.text?r=null:r&&r.changes&&(mn(e,r,n,cr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=tt(t=Ht(t)),r=e.display.externalMeasured=new un(e.doc,t,n);r.lineN=n;var i=r.built=nn(e,r);return r.text=i.pre,D(e.display.lineMeasure,i.pre),r}(e,t));var i=Fn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function jn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Ln(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Un(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&le(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&le(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():zn(T(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Ve)return Ve;var t=D(e,A("span","x")),n=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return Ve=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ur(e.display),top:h.top,bottom:h.bottom}:Bn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var x=b?y[b-1]:0,E=y[b],w={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:x,bottom:E};return i.left||i.right||(w.bogus=!0),e.options.singleCursorHeightPerLine||(w.rtop=m,w.rbottom=g),w}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Vn,Bn={left:0,right:0,top:0,bottom:0};function Un(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function zn(e,t){var n=Bn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Hn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function qn(e){e.display.externalMeasure=null,_(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Hn(e.display.view[t])}function $n(e){qn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Wn(e){return c&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Gn(e){return c&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Kn(e){var t=Ht(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Tn(t[r]));return n}function Yn(e,t,n,r,i){if(!i){var o=Kn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Kt(t);if("local"==r?a+=_n(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Gn(P(e)));var l=s.left+("window"==r?0:Wn(P(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Qn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Wn(P(e)),i-=Gn(P(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Xn(e,t,n,r,i){return r||(r=Xe(e.doc,t.line)),Yn(e,r,Mn(e,r,t.ch,i),n)}function Zn(e,t,n,r,i,o){function a(t,a){var s=jn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Yn(e,r,s,n)}r=r||Xe(e.doc,t.line),i||(i=Pn(e,r));var s=he(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=fe(s,l,u),f=de,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Jn(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=ur(e.display)*t.ch);var r=Xe(e.doc,t.line),i=Kt(r)+_n(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function er(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function tr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return er(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return er(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,i);;){var s=or(e,a,i,t,n),l=Ut(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Xe(r,i=u.line)}}function nr(e,t,n,r){r-=Kn(t);var i=t.text.length,o=ce((function(t){return jn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ce((function(t){return jn(e,n,t).top>r}),o,i)}}function rr(e,t,n,r){return n||(n=Pn(e,t)),nr(e,t,n,Yn(e,t,jn(e,n,r),"line").top)}function ir(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function or(e,t,n,r,i){i-=Kt(t);var o=Pn(e,t),a=Kn(t),s=0,l=t.text.length,u=!0,c=he(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?sr:ar)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=ce((function(t){var n=jn(e,o,t);return n.top+=a,n.bottom+=a,!!ir(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",f=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":jn(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var x=Zn(e,ot(n,g,p),"line",t,o);f=x.left,v=i<x.top?-1:i>=x.bottom?1:0}return er(n,g=ue(t.text,g,1),p,v,r-f)}function ar(e,t,n,r,i,o,a){var s=ce((function(s){var l=i[s],u=1!=l.level;return ir(Zn(e,ot(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Zn(e,ot(n,u?l.from:l.to,u?"after":"before"),"line",t,r);ir(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function sr(e,t,n,r,i,o,a){var s=nr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=u||p.to<=l)){var h=jn(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function lr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Vn){Vn=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Vn.appendChild(document.createTextNode("x")),Vn.appendChild(A("br"));Vn.appendChild(document.createTextNode("x"))}D(e.measure,Vn);var n=Vn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),_(e.measure),n||1}function ur(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");D(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function cr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function fr(e){var t=lr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ur(e.display)-3);return function(i){if(Wt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function pr(e){var t=e.doc,n=fr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function hr(e,t,n,r){var i=e.display;if(!n&&"true"==_e(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=tr(e,o,a);if(r&&u.xRel>0&&(l=Xe(e.doc,u.line).text).length==u.ch){var c=H(l,l.length,e.options.tabSize)-l.length;u=ot(u.line,Math.max(0,Math.round((o-An(e.display).left)/ur(e.display))-c))}return u}function mr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function gr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Nt&&qt(e.doc,t)<i.viewTo&&yr(e);else if(n<=i.viewFrom)Nt&&$t(e.doc,n+r)>i.viewFrom?yr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)yr(e);else if(t<=i.viewFrom){var o=br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):yr(e)}else if(n>=i.viewTo){var a=br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):yr(e)}else{var s=br(e,t,t,-1),l=br(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(cn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):yr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function vr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[mr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==$(a,n)&&a.push(n)}}}function yr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function br(e,t,n,r){var i,o=mr(e,t),a=e.display.view;if(!Nt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;qt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function xr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Er(e){e.display.input.showSelection(e.display.input.prepareSelection())}function wr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&kr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&kr(e,l.head,i);u||Sr(e,l,o)}}return r}function kr(e,t,n){var r=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(A("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Xn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Cr(e,t){return e.top-t.top||e.left-t.left}function Sr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=An(e.display),s=a.left,l=Math.max(r.sizerWidth,Ln(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Xe(i,t),f=d.text.length;function p(n,r){return Xn(e,ot(t,n),"div",d,r)}function h(t,n,r){var i=rr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,x=null==r&&t==f,E=0==d,w=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?x:b)&&w,C=(u?b:x)&&E?s:(g?v:y).left,S=k?l:(g?y:v).right;c(C,v.top,S-C,v.bottom)}else{var T,N,_,D;g?(T=u&&b&&E?s:v.left,N=u?l:h(e,i,"before"),_=u?s:h(t,i,"after"),D=u&&x&&w?l:y.right):(T=u?h(e,i,"before"):s,N=!u&&b&&E?l:v.right,_=!u&&x&&w?s:y.left,D=u?h(t,i,"after"):l),c(T,v.top,N-T,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(_,y.top,D-_,y.bottom)}(!o||Cr(v,o)<0)&&(o=v),Cr(y,o)<0&&(o=y),(!a||Cr(v,a)<0)&&(a=v),Cr(y,a)<0&&(a=y)})),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=Xe(i,f.line),m=Xe(i,p.line),g=Ht(h)==Ht(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,y=d(p.line,g?0:null,p.ch).start;g&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function Tr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Ar(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Nr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Dr(e))}function _r(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ar(e))}),100)}function Dr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Tr(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,N(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Or(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,d=void 0,f=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var p=u.node.offsetTop+u.node.offsetHeight;d=p-n,n=p}else{var h=u.node.getBoundingClientRect();d=h.bottom-h.top,!c&&u.text.firstChild&&(f=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),et(u.line,d),Lr(u.line),u.rest))for(var g=0;g<u.rest.length;g++)Lr(u.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/ur(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Lr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Ir(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-_n(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=nt(t,Kt(Xe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=nt(t,Kt(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Fr(e,t){var n=e.display,r=lr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=In(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Dn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Ln(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Mr(e,t){null!=t&&(jr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Rr(e){jr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Pr(e,t,n){null==t&&null==n||jr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function jr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Vr(e,Jn(e,t.from),Jn(e,t.to),t.margin))}function Vr(e,t,n,r){var i=Fr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Pr(e,i.scrollLeft,i.scrollTop)}function Br(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||pi(e,{top:t}),Ur(e,t,!0),n&&pi(e),li(e,100))}function Ur(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function zr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,gi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Hr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Dn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+On(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var qr=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ge(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};qr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},qr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qr.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},qr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}))},qr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $r=function(){};function Wr(e,t){t||(t=Hr(e));var n=e.display.barWidth,r=e.display.barHeight;Gr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Or(e),Gr(e,Hr(e)),n=e.display.barWidth,r=e.display.barHeight}function Gr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}$r.prototype.update=function(){return{bottom:0,right:0}},$r.prototype.setScrollLeft=function(){},$r.prototype.setScrollTop=function(){},$r.prototype.clear=function(){};var Kr={native:qr,null:$r};function Yr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Kr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?zr(e,t):Br(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var Qr=0;function Xr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Qr,markArrays:null},t=e.curOp,dn?dn.ops.push(t):t.ownsGroup=dn={ops:[t],delayedCallbacks:[]}}function Zr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{dn=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Jr(t[n]);for(var r=0;r<t.length;r++)ei(t[r]);for(var i=0;i<t.length;i++)ti(t[i]);for(var o=0;o<t.length;o++)ni(t[o]);for(var a=0;a<t.length;a++)ri(t[a])}(e)}))}function Jr(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=On(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=On(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&Qt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ci(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ei(e){e.updatedDisplay=e.mustUpdate&&di(e.cm,e.update)}function ti(e){var t=e.cm,n=t.display;e.updatedDisplay&&Or(t),e.barMeasure=Hr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+On(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ln(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ni(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==I(j(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Wr(t,e.barMeasure),e.updatedDisplay&&mi(t,e.barMeasure),e.selectionChanged&&Tr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Nr(e.cm)}function ri(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&fi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Ur(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&zr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!xe(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=A("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-_n(e.display))+"px;\n height: "+(t.bottom-t.top+On(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Zn(e,t),l=n&&n!=t?Zn(e,n):s,u=Fr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Br(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(zr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||be(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&be(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ii(e,t){if(e.curOp)return t();Xr(e);try{return t()}finally{Zr(e)}}function oi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Xr(e);try{return t.apply(e,arguments)}finally{Zr(e)}}}function ai(e){return function(){if(this.curOp)return e.apply(this,arguments);Xr(this);try{return e.apply(this,arguments)}finally{Zr(this)}}}function si(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Xr(t);try{return e.apply(this,arguments)}finally{Zr(t)}}}function li(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,U(ui,e))}function ui(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,l=gt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return li(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ii(e,(function(){for(var t=0;t<i.length;t++)vr(e,i[t],"text")}))}}var ci=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Ir(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ln(e),this.force=n,this.dims=cr(e),this.events=[]};function di(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return yr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==xr(e))return!1;vi(e)&&(yr(e),t.dims=cr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Nt&&(o=qt(e.doc,o),a=$t(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=cn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(mr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(cn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,mr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Kt(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=xr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=I(j(e));if(!t||!L(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=B(e).getSelection();r.anchorNode&&r.extend&&L(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d<u.length;d++){var f=u[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var p=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&($(f.changes,"gutter")>-1&&(p=!1),mn(e,f,c,n)),p&&(_(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(it(e.options,c)))),a=f.node.nextSibling}else{var h=wn(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=I(V(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&L(document.body,e.anchorNode)&&L(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),_(n.cursorDiv),_(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,li(e,400)),n.updateLineNumbers=null,!0}function fi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ln(e))r&&(t.visible=Ir(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Dn(e.display)-In(e),n.top)}),t.visible=Ir(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!di(e,t))break;Or(e);var i=Hr(e);Er(e),Wr(e,i),mi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function pi(e,t){var n=new ci(e,t);if(di(e,n)){Or(e),fi(e,n);var r=Hr(e);Er(e),Wr(e,r),mi(e,r),n.finish()}}function hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",pn(e,"gutterChanged",e)}function mi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+On(e)+"px"}function gi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function vi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(A("div",[A("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",hi(e.display),!0}return!1}function yi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function bi(e){var t=e.gutters,n=e.gutterSpecs;_(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(A("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",hi(e)}function xi(e){bi(e.display),gr(e),gi(e)}function Ei(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=O("div",null,"CodeMirror-code"),o.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=A("div",null,"CodeMirror-cursors"),o.measure=A("div",null,"CodeMirror-measure"),o.lineMeasure=A("div",null,"CodeMirror-measure"),o.lineSpace=O("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=O("div",[o.lineSpace],"CodeMirror-lines");o.mover=A("div",[u],null,"position: relative"),o.sizer=A("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=A("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=A("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=A("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=A("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&d>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=yi(i.gutters,i.lineNumbers),bi(o),r.init(o)}ci.prototype.signal=function(e,t){we(e,t)&&this.events.push(arguments)},ci.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var wi=0,ki=null;function Ci(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Si(e){var t=Ci(e);return t.x*=ki,t.y*=ki,t}function Ti(e,t){c&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=Ci(t),i=r.x,o=r.y,a=ki;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,u=s.scroller,p=u.scrollWidth>u.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&p||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!f&&null!=a)return o&&h&&Br(e,Math.max(0,u.scrollTop+o*a)),zr(e,Math.max(0,u.scrollLeft+i*a)),(!o||o&&h)&&Ce(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,x=e.doc.scrollTop,E=x+s.wrapper.clientHeight;y<0?x=Math.max(0,x+y-50):E=Math.min(e.doc.height,E+y+50),pi(e,{top:x,bottom:E})}wi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ki=(ki*wi+n)/(wi+1),++wi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?ki=-.53:n?ki=15:c?ki=-.7:p&&(ki=-1/3);var Ni=function(e,t){this.ranges=e,this.primIndex=t};Ni.prototype.primary=function(){return this.ranges[this.primIndex]},Ni.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!st(n.anchor,r.anchor)||!st(n.head,r.head))return!1}return!0},Ni.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new _i(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new Ni(e,this.primIndex)},Ni.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ni.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var _i=function(e,t){this.anchor=e,this.head=t};function Di(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=$(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ct(s.from(),a.from()),c=ut(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new _i(d?c:u,d?u:c))}}return new Ni(t,n)}function Ai(e,t){return new Ni([new _i(e,t||e)],0)}function Oi(e){return e.text?ot(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Li(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return Oi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Oi(t).ch-t.to.ch),ot(n,r)}function Ii(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new _i(Li(i.anchor,t),Li(i.head,t)))}return Di(e.cm,n,e.sel.primIndex)}function Fi(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function Mi(e){e.doc.mode=qe(e.options,e.doc.modeOption),Ri(e)}function Ri(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,li(e,100),e.state.modeGen++,e.curOp&&gr(e)}function Pi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ji(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){(function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),It(e),Ft(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)})(e,n,i,r),pn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Xt(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Xe(e,s.line),d=Xe(e,l.line),f=J(u),p=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Pi(e,t)){var m=a(0,u.length-1);o(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==d)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(l.ch),p);else{var g=a(1,u.length-1);g.push(new Xt(f+c.text.slice(l.ch),p,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(d,f+d.text.slice(l.ch),p);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}pn(e,"change",e,t)}function Vi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Bi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,pr(e),Mi(e),Ui(e),e.options.direction=t.direction,e.options.lineWrapping||Qt(e),e.options.mode=t.modeOption,gr(e)}function Ui(e){("rtl"==e.doc.direction?F:N)(e.display.lineDiv,"CodeMirror-rtl")}function zi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Hi(e,t){var n={from:lt(t.from),to:Oi(t),text:Ze(e,t.from,t.to)};return Ki(e,n,t.from.line,t.to.line+1),Vi(e,(function(e){return Ki(e,n,t.from.line,t.to.line+1)}),!0),n}function qi(e){for(;e.length&&J(e).ranges;)e.pop()}function $i(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(qi(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=Oi(t):o.changes.push(Hi(e,t));else{var l=J(i.done);for(l&&l.ranges||Gi(e.sel,i.done),o={changes:[Hi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Wi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,J(i.done),t))?i.done[i.done.length-1]=t:Gi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&qi(i.undone)}function Gi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ki(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Yi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Qi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Yi(n[i]));return r}(e,t),r=Ot(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Xi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Ni.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&$(t,Number(c[1]))>-1&&(J(s)[d]=u[d],delete u[d])}}}return r}function Zi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new _i(i,t)}return new _i(n||t,t)}function Ji(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),io(e,new Ni([Zi(e.sel.primary(),t,n,i)],0),r)}function eo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Zi(e.sel.ranges[o],t[o],null,i);io(e,Di(e.cm,r,e.sel.primIndex),n)}function to(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,io(e,Di(e.cm,i,e.sel.primIndex),r)}function no(e,t,n,r){io(e,Ai(t,n),r)}function ro(e,t,n){var r=e.history.done,i=J(r);i&&i.ranges?(r[r.length-1]=t,oo(e,t,n)):io(e,t,n)}function io(e,t,n){oo(e,t,n),Wi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function oo(e,t,n){(we(e,"beforeSelectionChange")||e.cm&&we(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new _i(ft(e,t[n].anchor),ft(e,t[n].head))},origin:n&&n.origin};return be(e,"beforeSelectionChange",e,r),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Di(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);ao(e,lo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Rr(e.cm)}function ao(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ee(e.cm)),pn(e,"cursorActivity",e))}function so(e){ao(e,lo(e,e.sel,null,!1))}function lo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=co(e,a.anchor,s&&s.anchor,n,r),u=a.head==a.anchor?l:co(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new _i(l,u))}return i?Di(e.cm,i,t.primIndex):t}function uo(e,t,n,r,i){var o=Xe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=fo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=at(d,n))&&(r<0?f<0:f>0))return uo(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=fo(e,p,r,p.line==t.line?o:null)),p?uo(e,p,t,r,i):null}}return t}function co(e,t,n,r,i){var o=r||1;return uo(e,t,n,o,i)||!i&&uo(e,t,n,o,!0)||uo(e,t,n,-o,i)||!i&&uo(e,t,n,-o,!0)||(e.cantEdit=!0,ot(e.first,0))}function fo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function po(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),G)}function ho(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function mo(e,t,n){if(e.cm){if(!e.cm.curOp)return oi(e.cm,mo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"))||(t=ho(e,t,!0))){var r=Tt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=$(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(at(u.to,s.from)<0||at(u.from,s.to)>0)){var c=[l,1],d=at(u.from,s.from),f=at(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)go(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else go(e,t)}}function go(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=Ii(e,t);$i(e,t,n,e.cm?e.cm.curOp.id:NaN),bo(e,t,n,Ot(e,t));var r=[];Vi(e,(function(e,n){n||-1!=$(r,e.history)||(ko(e.history,t),r.push(e.history)),bo(e,t,null,Ot(e,t))}))}}function vo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Gi(i,l),n&&!i.equals(e.sel))return void io(e,i,{clearRedo:!1});a=i}var c=[];Gi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!ho(e,r,!1))return s.length=0,{};c.push(Hi(e,r));var o=n?Ii(e,r):J(s);bo(e,r,o,Qi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Oi(r)});var a=[];Vi(e,(function(e,t){t||-1!=$(a,e.history)||(ko(e.history,r),a.push(e.history)),bo(e,r,null,Qi(e,r))}))},p=i.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function yo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ni(ee(e.sel.ranges,(function(e){return new _i(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){gr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)vr(e.cm,r,"gutter")}}function bo(e,t,n,r){if(e.cm&&!e.cm.curOp)return oi(e.cm,bo)(e,t,n,r);if(t.to.line<e.first)yo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);yo(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=Ii(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Ht(Xe(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Ee(e),ji(r,t,n,fr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Yt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Xe(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),li(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?gr(e):o.line!=a.line||1!=t.text.length||Pi(e.doc,t)?gr(e,o.line,a.line+1,u):vr(e,o.line,"text");var c=we(e,"changes"),d=we(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&pn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):ji(e,t,r),oo(e,n,G),e.cantEdit&&co(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function xo(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),mo(e,{from:n,to:r,text:t,origin:i})}function Eo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function wo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)Eo(o.ranges[s].anchor,t,n,r),Eo(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=ot(u.from.line+r,u.from.ch),u.to=ot(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ko(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;wo(e.done,n,r,i),wo(e.undone,n,r,i)}function Co(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Xe(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&vr(e.cm,i,n),o)}function So(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function To(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}_i.prototype.from=function(){return ct(this.anchor,this.head)},_i.prototype.to=function(){return ut(this.anchor,this.head)},_i.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},So.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Zt(i),pn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},To.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof So))){var s=[];this.collapse(s),this.children=[new So(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new So(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new To(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=$(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new To(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var No=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function _o(e,t,n){Kt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Mr(e,n)}No.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Tn(this);et(n,Math.max(0,n.height-o)),e&&(ii(e,(function(){_o(e,n,-o),vr(e,r,"widget")})),pn(e,"lineWidgetCleared",e,this,r))}},No.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Tn(this)-t;i&&(Wt(this.doc,r)||et(r,r.height+i),n&&ii(n,(function(){n.curOp.forceUpdate=!0,_o(n,r,i),pn(n,"lineWidgetChanged",n,e,tt(r))})))},ke(No);var Do=0,Ao=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Do};function Oo(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=z(r)).shared=!1;var o=[Oo(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Vi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Oo(e,ft(e,t),ft(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=J(o)})),new Lo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return oi(e.cm,Oo)(e,t,n,r,i);var o=new Ao(e,i),a=at(t,n);if(r&&z(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(e,t.line,t,n,o)||t.line!=n.line&&zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nt=!0}o.addToHistory&&$i(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&Ht(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new _t(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Wt(e,t)&&et(t,0)})),o.clearOnEnter&&ge(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Tt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Do,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)gr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)vr(u,c,"text");o.atomic&&so(u.doc),pn(u,"markerAdded",u,o)}return o}Ao.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Xr(e),we(this,"clear")){var n=this.find();n&&pn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Dt(a.markedSpans,this);e&&!this.collapsed?vr(e,tt(a),"text"):e&&(null!=s.to&&(i=tt(a)),null!=s.from&&(r=tt(a))),a.markedSpans=At(a.markedSpans,s),null==s.from&&this.collapsed&&!Wt(this.doc,a)&&e&&et(a,lr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Ht(this.lines[l]),c=Yt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&gr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&so(e.doc)),e&&pn(e,"markerCleared",e,this,r,i),t&&Zr(e),this.parent&&this.parent.clear()}},Ao.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Dt(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},Ao.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ii(r,(function(){var i=t.line,o=tt(t.line),a=Rn(r,o);if(a&&(Hn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Wt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Tn(n)-s;l&&et(i,i.height+l)}pn(r,"markerChanged",r,e)}))},Ao.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=$(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ao.prototype.detachLine=function(e){if(this.lines.splice($(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ke(Ao);var Lo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Io(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),(function(e){return e.parent}))}function Fo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Vi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==$(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Lo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();pn(this,"clear")}},Lo.prototype.find=function(e,t){return this.primary.find(e,t)},ke(Lo);var Mo=0,Ro=function(e,t,n,r,i){if(!(this instanceof Ro))return new Ro(e,t,n,r,i);null==n&&(n=0),To.call(this,[new So([new Xt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=Ai(o),this.history=new zi(null),this.id=++Mo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ji(this,{from:o,to:o,text:e}),io(this,Ai(o),G)};Ro.prototype=ne(To.prototype,{constructor:Ro,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:si((function(e){var t=ot(this.first,0),n=this.first+this.size-1;mo(this,{from:t,to:ot(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Pr(this.cm,0,0),io(this,Ai(t),G)})),replaceRange:function(e,t,n,r){xo(this,e,t=ft(this,t),n=n?ft(this,n):t,r)},getRange:function(e,t,n){var r=Ze(this,ft(this,e),ft(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Xe(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xe(this,e)),Ht(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:si((function(e,t,n){no(this,ft(this,"number"==typeof e?ot(e,t||0):e),null,n)})),setSelection:si((function(e,t,n){no(this,ft(this,e),ft(this,t||e),n)})),extendSelection:si((function(e,t,n){Ji(this,ft(this,e),t&&ft(this,t),n)})),extendSelections:si((function(e,t){eo(this,pt(this,e),t)})),extendSelectionsBy:si((function(e,t){eo(this,pt(this,ee(this.sel.ranges,e)),t)})),setSelections:si((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new _i(ft(this,e[i].anchor),ft(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),io(this,Di(this.cm,r,t),n)}})),addSelection:si((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new _i(ft(this,e),ft(this,t||e))),io(this,Di(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:si((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Fi(s.from,i,o),u=Fi(Oi(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=at(c.head,c.anchor)<0;r[a]=new _i(d?u:l,d?l:u)}else r[a]=new _i(l,l)}return new Ni(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)mo(this,r[l]);s?ro(this,s):this.cm&&Rr(this.cm)})),undo:si((function(){vo(this,"undo")})),redo:si((function(){vo(this,"redo")})),undoSelection:si((function(){vo(this,"undo",!0)})),redoSelection:si((function(){vo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new zi(this.history),Vi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Xi(this.history.done),undone:Xi(this.history.undone)}},setHistory:function(e){var t=this.history=new zi(this.history);t.done=Xi(e.done.slice(0),null,!0),t.undone=Xi(e.undone.slice(0),null,!0)},setGutterMarker:si((function(e,t,n){return Co(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:si((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Co(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Xe(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:si((function(e,t,n){return Co(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:si((function(e,t,n){return Co(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:si((function(e,t,n){return function(e,t,n,r){var i=new No(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Co(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Wt(e,t)){var r=Kt(t)<e.scrollTop;et(t,t.height+Tn(i)),r&&Mr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&pn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Oo(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Oo(this,e=ft(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Xe(this,(e=ft(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ro(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ro(Je(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var s=Oo(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Io(this)),r},unlinkDoc:function(e){if(e instanceof La&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Fo(Io(this));break}if(e.history==this.history){var n=[e.id];Vi(e,(function(e){return n.push(e.id)}),!0),e.history=new zi(null),e.history.done=Xi(this.history.done,n),e.history.undone=Xi(this.history.undone,n)}},iterLinkedDocs:function(e){Vi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:si((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ii(t=this.cm,(function(){Ui(t),gr(t)})))}))}),Ro.prototype.eachLine=Ro.prototype.iter;var Po=0;function jo(e){var t=this;if(Vo(t),!xe(t,e)&&!Nn(t.display,e)){Ce(e),a&&(Po=+new Date);var n=hr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&oi(t,(function(){var e={from:n=ft(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};mo(t.doc,e),ro(t.doc,Ai(ft(t.doc,n),ft(t.doc,Oi(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==$(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),oo(t.doc,Ai(n,n)),f)for(var p=0;p<f.length;++p)xo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Vo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Bo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Uo=!1;function zo(){var e;Uo||(ge(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Bo(Ho)}),100))})),ge(window,"blur",(function(){return Bo(Ar)})),Uo=!0)}function Ho(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var qo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},$o=0;$o<10;$o++)qo[$o+48]=qo[$o+96]=String($o);for(var Wo=65;Wo<=90;Wo++)qo[Wo]=String.fromCharCode(Wo);for(var Go=1;Go<=12;Go++)qo[Go+111]=qo[Go+63235]="F"+Go;var Ko={};function Yo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Qo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=ee(n.split(" "),Yo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Xo(e,t,n,r){var i=(t=ta(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Xo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Xo(e,t.fallthrough[o],n,r);if(a)return a}}}function Zo(e){var t="string"==typeof e?e:qo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Jo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(k?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(k?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function ea(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=qo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Jo(n,e,t))}function ta(e){return"string"==typeof e?Ko[e]:e}function na(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,J(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ii(e,(function(){for(var t=r.length-1;t>=0;t--)xo(e.doc,"",r[t].from,r[t].to,"+delete");Rr(e)}))}function ra(e,t,n){var r=ue(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ia(e,t,n){var r=ra(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function oa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Pn(t,n);a=i<0?n.text.length-1:0;var c=jn(t,u,a).top;a=ce((function(e){return jn(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ra(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}Ko.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ko.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ko.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ko.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ko.default=b?Ko.macDefault:Ko.pcDefault;var aa={selectAll:po,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return na(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return na(e,(function(t){return{from:ot(t.from().line,0),to:ft(e.doc,ot(t.to().line+1,0))}}))},delLineLeft:function(e){return na(e,(function(e){return{from:ot(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return na(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return na(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return sa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return la(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Xe(e.doc,t),r=function(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=tt(r)),oa(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),Y)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),Y)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?la(e,t.head):r}),Y)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=H(e.getLine(o.line),o.ch,r);t.push(Z(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ii(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Xe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Xe(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new _i(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ii(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Rr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function sa(e,t){var n=Xe(e.doc,t),r=Ht(n);return r!=n&&(t=tt(r)),oa(!0,e,r,t,1)}function la(e,t){var n=sa(e,t.line),r=Xe(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function ua(e,t,n){if("string"==typeof t&&!(t=aa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=W}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var ca=new q;function da(e,t,n,r){var i=e.state.keySeq;if(i){if(Zo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ca.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),fa(e,i+" "+t,n,r))return!0}return fa(e,t,n,r)}function fa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Xo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Xo(t,e.options.extraKeys,n,e)||Xo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&pn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ce(n),Tr(e)),!!i}function pa(e,t){var n=ea(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?da(e,"Shift-"+n,t,(function(t){return ua(e,t,!0)}))||da(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ua(e,t)})):da(e,n,t,(function(t){return ua(e,t)})))}var ha=null;function ma(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=I(j(t)),xe(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=pa(t,e);f&&(ha=i?r:null,i||88!=r||je||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(N(t,"CodeMirror-crosshair"),ye(document,"keyup",n),ye(document,"mouseover",n))}F(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n)}(t)}}function ga(e){16==e.keyCode&&(this.doc.sel.shift=!1),xe(this,e)}function va(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Nn(t.display,e)||xe(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ha)return ha=null,void Ce(e);if(!f||e.which&&!(e.which<10)||!pa(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return da(e,"'"+n+"'",t,(function(t){return ua(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var ya,ba,xa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function Ea(e){var t=this,n=t.display;if(!(xe(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Nn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ca(t,e)){var r=hr(t,e),i=De(e),o=r?function(e,t){var n=+new Date;return ba&&ba.compare(n,e,t)?(ya=ba=null,"triple"):ya&&ya.compare(n,e,t)?(ba=new xa(n,e,t),ya=null,"double"):(ya=new xa(n,e,t),ba=null,"single")}(r,i):"single";B(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),da(e,Jo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=aa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=W}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(U(Nr,e),0):e.curOp.focus=I(j(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=x?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&Le&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(at((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=oi(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_r(e)),ye(i.wrapper.ownerDocument,"mouseup",u),ye(i.wrapper.ownerDocument,"mousemove",c),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",u),o||(Ce(t),r.addNew||Ji(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&_r(e);var i=e.display,o=e.doc;Ce(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new _i(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new _i(n,n)),n=hr(e,t,!0,!0),l=-1;else{var d=wa(e,n,r.unit);s=r.extend?Zi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,io(o,Di(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(io(o,Di(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):to(o,l,s,K):(l=0,io(o,new Ni([s],0),K),u=o.sel);var f=n;function p(t){if(0!=at(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=H(Xe(o,n.line).text,n.ch,a),d=H(Xe(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Xe(o,m).text,y=Q(v,p,a);p==h?i.push(new _i(ot(m,y),ot(m,y))):v.length>y&&i.push(new _i(ot(m,y),ot(m,Q(v,h,a))))}i.length||i.push(new _i(n,n)),io(o,Di(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=s,E=wa(e,t,r.unit),w=x.anchor;at(E.anchor,w)>0?(b=E.head,w=ct(x.from(),E.anchor)):(b=E.anchor,w=ut(x.to(),E.head));var k=u.ranges.slice(0);k[l]=function(e,t){var n=t.anchor,r=t.head,i=Xe(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new _i(new ot(n.line,h,m),r)}(e,new _i(ft(o,w),b)),io(o,Di(e,k,l),K)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=hr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,f)){e.curOp.focus=I(j(e)),p(a);var s=Ir(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(oi(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(oi(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Ce(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",y),ye(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=oi(e,(function(e){0!==e.buttons&&De(e)?g(e):v(e)})),b=oi(e,v);e.state.selectingText=b,ge(i.wrapper.ownerDocument,"mousemove",y),ge(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):_e(e)==n.scroller&&Ce(e):2==i?(r&&Ji(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?t.display.input.onContextMenu(e):_r(t)))}}function wa(e,t,n){if("char"==n)return new _i(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new _i(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var r=n(e,t);return new _i(r.from,r.to)}function ka(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!we(e,n))return Te(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return be(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),Te(t)}}function Ca(e,t){return ka(e,t,"gutterClick",!0)}function Sa(e,t){Nn(e.display,t)||function(e,t){return!!we(e,"gutterContextMenu")&&ka(e,t,"gutterContextMenu",!1)}(e,t)||xe(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Ta(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),$n(e)}xa.prototype.compare=function(e,t,n){return this.time+400>e&&0==at(t,this.pos)&&n==this.button};var Na={toString:function(){return"CodeMirror.Init"}},_a={},Da={};function Aa(e,t,n){if(!t!=!(n&&n!=Na)){var r=e.display.dragFunctions,i=t?ge:ye;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Oa(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(N(e.display.wrapper,"CodeMirror-wrap"),Qt(e)),pr(e),gr(e),$n(e),setTimeout((function(){return Wr(e)}),100)}function La(e,t){var n=this;if(!(this instanceof La))return new La(e,t);this.options=t=t?z(t):{},z(_a,t,!1);var r=t.value;"string"==typeof r?r=new Ro(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new La.inputStyles[t.inputStyle](this),o=this.display=new Ei(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Ta(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;ge(t.scroller,"mousedown",oi(e,Ea)),ge(t.scroller,"dblclick",a&&s<11?oi(e,(function(t){if(!xe(e,t)){var n=hr(e,t);if(n&&!Ca(e,t)&&!Nn(e.display,t)){Ce(t);var r=e.findWordAt(n);Ji(e.doc,r.anchor,r.head)}}})):function(t){return xe(e,t)||Ce(t)}),ge(t.scroller,"contextmenu",(function(t){return Sa(e,t)})),ge(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Sa(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ge(t.scroller,"touchstart",(function(i){if(!xe(e,i)&&!o(i)&&!Ca(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ge(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ge(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Nn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new _i(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new _i(ot(a.line,0),ft(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ce(n)}i()})),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Br(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),ge(t.scroller,"mousewheel",(function(t){return Ti(e,t)})),ge(t.scroller,"DOMMouseScroll",(function(t){return Ti(e,t)})),ge(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){xe(e,t)||Ne(t)},over:function(t){xe(e,t)||(function(e,t){var n=hr(e,t);if(n){var r=document.createDocumentFragment();kr(e,n,r),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),D(e.display.dragCursor,r)}}(e,t),Ne(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Po<100))Ne(t);else if(!xe(e,t)&&!Nn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:oi(e,jo),leave:function(t){xe(e,t)||Vo(e)}};var u=t.input.getField();ge(u,"keyup",(function(t){return ga.call(e,t)})),ge(u,"keydown",oi(e,ma)),ge(u,"keypress",oi(e,va)),ge(u,"focus",(function(t){return Dr(e,t)})),ge(u,"blur",(function(t){return Ar(e,t)}))}(this),zo(),Xr(this),this.curOp.forceUpdate=!0,Bi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Dr(n)}),20):Ar(this),Da)Da.hasOwnProperty(u)&&Da[u](this,t[u],Na);vi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Ia.length;++c)Ia[c](this);Zr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}La.defaults=_a,La.optionHandlers=Da;var Ia=[];function Fa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,s=Xe(o,t),l=H(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==W||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?H(Xe(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=Z(u-f)),d!=c)return xo(o,d,ot(t,0),ot(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=ot(t,c.length);to(o,h,new _i(g,g));break}}}La.defineInitHook=function(e){return Ia.push(e)};var Ma=null;function Ra(e){Ma=e}function Pa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Re(t),u=null;if(s&&r.ranges.length>1)if(Ma&&Ma.text.join("\n")==t){if(r.ranges.length%Ma.text.length==0){u=[];for(var c=0;c<Ma.text.length;c++)u.push(o.splitLines(Ma.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=ee(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?m=ot(m.line,Math.min(Xe(o,m.line).text.length,m.ch+J(l).length)):s&&Ma&&Ma.lineWise&&Ma.text.join("\n")==l.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};mo(e.doc,g),pn(e,"inputRead",e,g)}t&&!s&&Va(e,t),Rr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ja(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ii(t,(function(){return Pa(t,n,0,null,"paste")})),!0}function Va(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Fa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Fa(e,i.head.line,"smart"));a&&pn(e,"electricInput",e,i.head.line)}}}function Ba(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ua(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function za(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function Ha(e,t,n,r,i){var o=t,a=n,s=Xe(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(o){var a,u;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return ia(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ia(t,n,r);var s,l=function(e,n){return ra(t,e instanceof ot?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||Pn(e,t),rr(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=c.end:f>=a.from&&f>=c.begin)){var p=d?"before":"after";return new ot(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var g=r>0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):ia(s,t,n);if(null==a){if(o||((u=t.line+l)<e.first||u>=e.first+e.size||(t=new ot(u,t.ch,t.sticky),!(s=Xe(e,u)))))return!1;t=oa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=oe(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=co(e,t,o,a,!0);return st(o,g)&&(g.hitSide=!0),g}function qa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,B(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*lr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=tr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var $a=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Wa(e,t){var n=Rn(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),i=Fn(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var s=Un(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ga(e,t){return t&&(e.bad=!0),e}function Ka(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ga(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ya(o,t,n)}}function Ya(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!L(r,t))return Ga(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?J(e.rest):e.line;return Ga(ot(tt(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ot(c,d)}}}var d=c(a,s,n);if(d)return Ga(d,i);for(var f=s.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=c(f,f.firstChild,0))return Ga(ot(d.line,d.ch-p),i);p+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=c(h,h.firstChild,-1))return Ga(ot(d.line,d.ch+m),i);m+=h.textContent.length}}$a.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!xe(r,e)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);Ra({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,G),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Ma.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=za(),l=s.firstChild;Ua(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ma.text.join("\n");var u=I(V(i));R(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Ua(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ge(i,"paste",(function(e){!o(e)||xe(r,e)||ja(e,r)||s<=11&&setTimeout(oi(r,(function(){return t.updateFromDOM()})),20)})),ge(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ge(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ge(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ge(i,"touchstart",(function(){return n.forceCompositionEnd()})),ge(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ge(i,"copy",a),ge(i,"cut",a)},$a.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var e=wr(this.cm,!1);return e.focus=I(V(this.div))==this.div,e},$a.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$a.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$a.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ka(t,e.anchorNode,e.anchorOffset),s=Ka(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ct(a,s),i)||0!=at(ut(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Wa(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Wa(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=T(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},$a.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},$a.prototype.showMultipleSelections=function(e){D(this.cm.display.cursorDiv,e.cursors),D(this.cm.display.selectionDiv,e.selection)},$a.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$a.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return L(this.div,t)},$a.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I(V(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},$a.prototype.blur=function(){this.div.blur()},$a.prototype.getField=function(){return this.div},$a.prototype.supportsTouch=function(){return!0},$a.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):ii(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},$a.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$a.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ka(t,e.anchorNode,e.anchorOffset),r=Ka(t,e.focusNode,e.focusOffset);n&&r&&ii(t,(function(){io(t.doc,Ai(n,r),G),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},$a.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Xe(r.doc,a.line-1).length)),s.ch==Xe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ot(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=mr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=mr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=tt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(ot(r,0),ot(i+1,0),(g=+f,function(e){return e.id==g}));return void(p.length&&(o=p[0].find(0))&&c(Ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),f=Ze(r.doc,ot(t,0),ot(l,Xe(r.doc,l).text.length));d.length>1&&f.length>1;)if(J(d)==J(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=J(d),b=J(f),x=Math.min(y.length-(1==d.length?p:0),b.length-(1==f.length?p:0));h<x&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var E=ot(t,p),w=ot(l,f.length?J(f).length-h:0);return d.length>1||d[0]||at(E,w)?(xo(r.doc,d,E,w,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},$a.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ii(this.cm,(function(){return gr(e.cm)}))},$a.prototype.setUneditable=function(e){e.contentEditable="false"},$a.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||oi(this.cm,Pa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},$a.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var Qa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};Qa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!xe(r,e)){if(r.somethingSelected())Ra({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);Ra({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ge(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ge(i,"paste",(function(e){xe(r,e)||ja(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",(function(t){if(!Nn(e,t)&&!xe(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ge(e.lineSpace,"selectstart",(function(t){Nn(e,t)||Ce(t)})),ge(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ge(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Qa.prototype.createField=function(e){this.wrapper=za(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ua(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Qa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=wr(e);if(e.options.moveInputWithCursor){var i=Zn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Qa.prototype.showSelection=function(e){var t=this.cm.display;D(t.cursorDiv,e.cursors),D(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Qa.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Qa.prototype.getField=function(){return this.textarea},Qa.prototype.supportsTouch=function(){return!1},Qa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I(V(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},Qa.prototype.blur=function(){this.textarea.blur()},Qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qa.prototype.receivedFocus=function(){this.slowPoll()},Qa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Qa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Qa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return ii(t,(function(){Pa(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Qa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=hr(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&oi(n,io)(n.doc,Ai(o),G);var c,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),C){Ne(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ge(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?oi(n,po)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Qa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Qa.prototype.setUneditable=function(){},Qa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Na&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Na,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Mi(e)}),!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ri(e),$n(e),gr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)xo(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Na&&e.refresh()})),n("specialCharPlaceholder",rn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ta(e),xi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=ta(t),i=n!=Na&&ta(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Oa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=yi(t,e.options.lineNumbers),xi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Wr(e)}),!0),n("scrollbarStyle","native",(function(e){Yr(e),Wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=yi(e.options.gutters,t),xi(e)}),!0),n("firstLineNumber",1,xi,!0),n("lineNumberFormatter",(function(e){return e}),xi,!0),n("showCursorWhenSelecting",!1,Er,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Aa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Er,!0),n("singleCursorHeightPerLine",!0,Er,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ri,!0),n("addModeClass",!1,Ri,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ri,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(La),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){B(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&oi(this,t[e])(this,n,i),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](ta(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ai((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");(function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)})(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,gr(this)})),removeOverlay:ai((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void gr(this)}})),indentLine:ai((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Fa(this,e,t,n)})),indentSelection:ai((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Fa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Rr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Fa(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&to(this.doc,r,new _i(o,u[r].to()),G)}}})),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=vt(this,Xe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==$(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return yt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Zn(this,null==e?n.head:"object"==typeof e?ft(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Xn(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return tr(this,(e=Qn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Qn(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Xe(this.doc,e)}else r=e;return Yn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Kt(r):0)},defaultTextHeight:function(){return lr(this.display)},defaultCharWidth:function(){return ur(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=Zn(this,ft(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var d=Math.max(l.wrapper.clientHeight,this.doc.height),f=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Fr(o,a)).scrollTop&&Br(o,s.scrollTop),null!=s.scrollLeft&&zr(o,s.scrollLeft))},triggerOnKeyDown:ai(ma),triggerOnKeyPress:ai(va),triggerOnKeyUp:ga,triggerOnMouseDown:ai(Ea),execCommand:function(e){if(aa.hasOwnProperty(e))return aa[e].call(null,this)},triggerElectric:ai((function(e){Va(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),a=0;a<t&&!(o=Ha(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ai((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ha(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),Y)})),deleteH:ai((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):na(this,(function(n){var i=Ha(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ft(this.doc,e),s=0;s<t;++s){var l=Zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=qa(this,l,i,n)).hitSide)break}return a},moveV:ai((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Zn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=qa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Mr(n,Xn(n,l,"div").top-s.top),l}),Y),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Xe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new _i(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):N(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I(j(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ai((function(e,t){Pr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-On(this)-this.display.barHeight,width:e.scrollWidth-On(this)-this.display.barWidth,clientHeight:In(this),clientWidth:Ln(this)}},scrollIntoView:ai((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){jr(e),e.curOp.scrollToPos=t}(this,e):Vr(this,e.from,e.to,e.margin)})),setSize:ai((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&qn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){vr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,be(this,"refresh",this)})),operation:function(e){return ii(this,e)},startOperation:function(){return Xr(this)},endOperation:function(){return Zr(this)},refresh:ai((function(){var e=this.display.cachedTextHeight;gr(this),this.curOp.forceUpdate=!0,$n(this),Pr(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(null==e||Math.abs(e-lr(this.display))>.5||this.options.lineWrapping)&&pr(this),be(this,"refresh",this)})),swapDoc:ai((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Bi(this,e),$n(this),this.display.input.reset(),Pr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,pn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(La);var Xa="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ro.prototype)Ro.prototype.hasOwnProperty(Za)&&$(Xa,Za)<0&&(La.prototype[Za]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ro.prototype[Za]));return ke(Ro),La.inputStyles={textarea:Qa,contenteditable:$a},La.defineMode=function(e){La.defaults.mode||"null"==e||(La.defaults.mode=e),ze.apply(this,arguments)},La.defineMIME=function(e,t){Ue[e]=t},La.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),La.defineMIME("text/plain","null"),La.defineExtension=function(e,t){La.prototype[e]=t},La.defineDocExtension=function(e,t){Ro.prototype[e]=t},La.fromTextArea=function(e,t){if((t=t?z(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I(V(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=La((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=ye,e.on=ge,e.wheelEventPixels=Si,e.Doc=Ro,e.splitLines=Re,e.countColumn=H,e.findColumn=Q,e.isWordChar=ie,e.Pass=W,e.signal=be,e.Line=Xt,e.changeEnd=Oi,e.scrollbarModel=Kr,e.Pos=ot,e.cmpPos=at,e.modes=Be,e.mimeModes=Ue,e.resolveMode=He,e.getMode=qe,e.modeExtensions=$e,e.extendMode=We,e.copyState=Ge,e.startState=Ye,e.innerMode=Ke,e.commands=aa,e.keyMap=Ko,e.keyName=ea,e.isModifierKey=Zo,e.lookupKey=Xo,e.normalizeKeyMap=Qo,e.StringStream=Qe,e.SharedTextMarker=Lo,e.TextMarker=Ao,e.LineWidget=No,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=Ne,e.addClass=F,e.contains=L,e.rmClass=N,e.keyNames=qo}(La),La.version="5.65.18",La}()},5287:(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"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var E=Array.isArray,w=Object.prototype.hasOwnProperty,k={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:k.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+_(l,0):o,E(a)?(i="",null!=e&&(i=e.replace(N,"$&/")+"/"),D(a,t,i,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(N,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",E(e))for(var u=0;u<e.length;u++){var c=o+_(s=e[u],u);l+=D(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=D(s=s.value,t,i,c=o+_(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],i=0;return D(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},I={transition:null},F={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:I,ReactCurrentOwner:k};t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.0.0-fc46dba67-20220329"},5338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},5363:(e,t,n)=>{const r=n(3798);function i(e,t,n){return"function"==typeof n.join?n.join(e):e[0]+t+e[1]}function o(e,t,n){return"function"!=typeof n.isValid||n.isValid(e,t)}function a(e){return r(e)||Array.isArray(e)||"function"==typeof e}e.exports=function(e,t,n){if(r(n)||(n={default:n}),!a(e))return void 0!==n.default?n.default:e;"number"==typeof t&&(t=String(t));const s=Array.isArray(t),l="string"==typeof t,u=n.separator||".",c=n.joinChar||("string"==typeof u?u:".");if(!l&&!s)return e;if(l&&t in e)return o(t,e,n)?e[t]:n.default;let d=s?t:function(e,t,n){return"function"==typeof n.split?n.split(e):e.split(t)}(t,u,n),f=d.length,p=0;do{let t=d[p];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=i([t.slice(0,-1),d[++p]||""],c,n);if(t in e){if(!o(t,e,n))return n.default;e=e[t]}else{let r=!1,a=p+1;for(;a<f;)if(t=i([t,d[a++]],c,n),r=t in e){if(!o(t,e,n))return n.default;e=e[t],p=a-1;break}if(!r)return n.default}}while(++p<f&&a(e));return p===f?e:n.default}},5571:(e,t,n)=>{"use strict";n.d(t,{eO:()=>u});var r=n(2475),i=n(1181);const o=/\r\n|[\n\r]/g;function a(e,t){let n=0,r=1;for(const a of e.body.matchAll(o)){if("number"==typeof a.index||(0,i.V)(!1),a.index>=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,c=`${e.name}:${a}:${u}\n`,d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return c+l([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+l([[a-1+" |",d[i-1]],[`${a} |`,f],["|","^".padStart(u)],[`${a+1} |`,d[i+1]]])}function l(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class u extends Error{constructor(e,...t){var n,i,o;const{nodes:s,source:l,positions:d,path:f,originalError:p,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!=f?f:void 0,this.originalError=null!=p?p:void 0,this.nodes=c(Array.isArray(s)?s:s?[s]:void 0);const m=c(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=l?l:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&l?d.map((e=>a(l,e))):null==m?void 0:m.map((e=>a(e.source,e.start)));const g=(0,r.Z)(null==p?void 0:p.extensions)?null==p?void 0:p.extensions:void 0;this.extensions=null!==(o=null!=h?h:g)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):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 n of this.nodes)n.loc&&(e+="\n\n"+s((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+s(this.source,t);var 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 c(e){return void 0===e||0===e.length?void 0:e}},5835:(e,t,n)=>{"use strict";var r=n(5237),i=n.n(r),o=n(4849),a=n(2969);i().defineMode("graphql",(e=>{const t=(0,o.r5)({eatWhitespace:e=>e.eatWhile(o.pi),lexRules:o.Rq,parseRules:o.vM,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a.A,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}))},5995:(e,t,n)=>{"use strict";n.d(t,{OC:()=>i,yo:()=>a});var r=n(9646);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],l=o(s);l!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,i=t,0!==t&&l<n&&(n=l))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t<e.length&&(0,r.i0)(e.charCodeAt(t));)++t;return t}function a(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.i0)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||s);let f="";const p=o&&(0,r.i0)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=n,(d||c)&&(f+="\n"),'"""'+f+'"""'}},6283:(e,t,n)=>{"use strict";n.r(t);var r=n(5237),i=n.n(r),o=n(4849),a=n(2969);i().defineMode("graphql-results",(e=>{const t=(0,o.r5)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a.A,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},l={Document:[(0,o.p)("{"),(0,o.p_)("Entry",(0,o.p)(",")),(0,o.p)("}")],Entry:[(0,o.t)("String","def"),(0,o.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.p_)("Value",(0,o.p)(",")),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.p_)("ObjectField",(0,o.p)(",")),(0,o.p)("}")],ObjectField:[(0,o.t)("String","property"),(0,o.p)(":"),"Value"]}},6286:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{U:()=>r})},6426:e=>{e.exports=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()}}},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6547:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r=n(5995);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const a=["\\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"];var s=n(4705);function l(e){return(0,s.YR)(e,u)}const u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f("(",c(e.variableDefinitions,", "),")"),n=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+f(" = ",n)+f(" ",c(r," "))},SelectionSet:{leave:({selections:e})=>d(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=f("",e,": ")+t;let a=o+f("(",c(n,", "),")");return a.length>80&&(a=o+f("(\n",p(c(n,"\n")),"\n)")),c([a,c(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>c(["...",f("on ",e),c(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${f("(",c(n,", "),")")} on ${t} ${f("",c(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.yo)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>f("",e,"\n")+c(["schema",c(t," "),d(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+c(["scalar",t,c(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+c(["type",t,f("implements ",c(n," & ")),c(r," "),d(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>f("",e,"\n")+t+(h(n)?f("(\n",p(c(n,"\n")),"\n)"):f("(",c(n,", "),")"))+": "+r+f(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>f("",e,"\n")+c([t+": "+n,f("= ",r),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+c(["interface",t,f("implements ",c(n," & ")),c(r," "),d(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>f("",e,"\n")+c(["union",t,c(n," "),f("= ",c(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>f("",e,"\n")+c(["enum",t,c(n," "),d(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+c([t,c(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>f("",e,"\n")+c(["input",t,c(n," "),d(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>f("",e,"\n")+"directive @"+t+(h(n)?f("(\n",p(c(n,"\n")),"\n)"):f("(",c(n,", "),")"))+(r?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),d(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend type",e,f("implements ",c(t," & ")),c(n," "),d(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend interface",e,f("implements ",c(t," & ")),c(n," "),d(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>c(["extend union",e,c(t," "),f("= ",c(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>c(["extend enum",e,c(t," "),d(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>c(["extend input",e,c(t," "),d(n)]," ")}};function c(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function d(e){return f("{\n",p(c(e,"\n")),"\n}")}function f(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return f(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},6792:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Je(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(d))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function E(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function k(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?z:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&w(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function T(){return S.apply(null,arguments),!0}function N(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function _(e){var t=C.state;if(C.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=D(e,t.context);if(null!=r)return void(t.context=r)}else if(!N(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!N(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}}function D(e,t){if(t){if(t.block){var n=D(e,t.prev);return n?n==t.prev?t:new O(n,t.vars,!0):null}return N(e,t.vars)?t:new O(t.prev,new L(e,t.vars),!1)}return null}function A(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var I=new L("this",new L("arguments",null));function F(){C.state.context=new O(C.state.context,C.state.localVars,!1),C.state.localVars=I}function M(){C.state.context=new O(C.state.context,C.state.localVars,!0),C.state.localVars=null}function R(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function P(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new E(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function j(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?S():T(t)}}function B(e,t){return"var"==e?T(P("vardef",t),Ce,V(";"),j):"keyword a"==e?T(P("form"),q,B,j):"keyword b"==e?T(P("form"),B,j):"keyword d"==e?C.stream.match(/^\s*$/,!1)?T():T(P("stat"),W,V(";"),j):"debugger"==e?T(V(";")):"{"==e?T(P("}"),M,le,j,R):";"==e?T():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==j&&C.state.cc.pop()(),T(P("form"),q,B,j,Ae)):"function"==e?T(Fe):"for"==e?T(P("form"),M,Oe,B,R,j):"class"==e||c&&"interface"==t?(C.marked="keyword",T(P("form","class"==e?e:t),Ve,j)):"variable"==e?c&&"declare"==t?(C.marked="keyword",T(B)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?T(Xe):"type"==t?T(Re,V("operator"),pe,V(";")):T(P("form"),Se,V("{"),P("}"),le,j,j)):c&&"namespace"==t?(C.marked="keyword",T(P("form"),z,B,j)):c&&"abstract"==t?(C.marked="keyword",T(B)):T(P("stat"),te):"switch"==e?T(P("form"),q,V("{"),P("}","switch"),M,le,j,j,R):"case"==e?T(z,V(":")):"default"==e?T(V(":")):"catch"==e?T(P("form"),F,U,B,j,R):"export"==e?T(P("stat"),He,j):"import"==e?T(P("stat"),$e,j):"async"==e?T(B):"@"==t?T(z,B):S(P("stat"),z,V(";"),j)}function U(e){if("("==e)return T(Pe,V(")"))}function z(e,t){return $(e,t,!1)}function H(e,t){return $(e,t,!0)}function q(e){return"("!=e?S():T(P(")"),W,V(")"),j)}function $(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?Z:X;if("("==e)return T(F,P(")"),ae(Pe,")"),j,V("=>"),r,R);if("variable"==e)return S(F,Se,V("=>"),r,R)}var i=n?K:G;return x.hasOwnProperty(e)?T(i):"function"==e?T(Fe,i):"class"==e||c&&"interface"==t?(C.marked="keyword",T(P("form"),je,j)):"keyword c"==e||"async"==e?T(n?H:z):"("==e?T(P(")"),W,V(")"),j,i):"operator"==e||"spread"==e?T(n?H:z):"["==e?T(P("]"),Qe,j,i):"{"==e?se(re,"}",null,i):"quasi"==e?S(Y,i):"new"==e?T(function(e){return function(t){return"."==t?T(e?ee:J):"variable"==t&&c?T(Ee,e?K:G):S(e?H:z)}}(n)):T()}function W(e){return e.match(/[;\}\)\],]/)?S():S(z)}function G(e,t){return","==e?T(W):K(e,t,!1)}function K(e,t,n){var r=0==n?G:K,i=0==n?z:H;return"=>"==e?T(F,n?Z:X,R):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?T(r):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(P(">"),ae(pe,">"),j,r):"?"==t?T(z,V(":"),i):T(i):"quasi"==e?S(Y,r):";"!=e?"("==e?se(H,")","call",r):"."==e?T(ne,r):"["==e?T(P("]"),W,V("]"),j,r):c&&"as"==t?(C.marked="keyword",T(pe,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),T(i)):void 0:void 0}function Y(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(Y):T(W,Q)}function Q(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(Y)}function X(e){return b(C.stream,C.state),S("{"==e?B:z)}function Z(e){return b(C.stream,C.state),S("{"==e?B:H)}function J(e,t){if("target"==t)return C.marked="keyword",T(G)}function ee(e,t){if("target"==t)return C.marked="keyword",T(K)}function te(e){return":"==e?T(j,B):S(G,V(";"),j)}function ne(e){if("variable"==e)return C.marked="property",T()}function re(e,t){return"async"==e?(C.marked="property",T(re)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?T(ie):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),T(oe))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",T(oe)):"jsonld-keyword"==e?T(oe):c&&A(t)?(C.marked="keyword",T(re)):"["==e?T(z,ue,V("]"),oe):"spread"==e?T(H,oe):"*"==t?(C.marked="keyword",T(re)):":"==e?S(oe):void 0;var n}function ie(e){return"variable"!=e?S(oe):(C.marked="property",T(Fe))}function oe(e){return":"==e?T(H):"("==e?S(Fe):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T((function(n,r){return n==t||r==t?S():S(e)}),r)}return i==t||o==t?T():n&&n.indexOf(";")>-1?S(e):T(V(t))}return function(n,i){return n==t||i==t?T():S(e,r)}}function se(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return T(P(t,n),ae(e,t),j)}function le(e){return"}"==e?T():S(B,le)}function ue(e,t){if(c){if(":"==e)return T(pe);if("?"==t)return T(ue)}}function ce(e,t){if(c&&(":"==e||"in"==t))return T(pe)}function de(e){if(c&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?T(z,fe,pe):T(pe)}function fe(e,t){if("is"==t)return C.marked="keyword",T()}function pe(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(C.marked="keyword",T("typeof"==t?H:pe)):"variable"==e||"void"==t?(C.marked="type",T(xe)):"|"==t||"&"==t?T(pe):"string"==e||"number"==e||"atom"==e?T(xe):"["==e?T(P("]"),ae(pe,"]",","),j,xe):"{"==e?T(P("}"),me,j,xe):"("==e?T(ae(be,")"),he,xe):"<"==e?T(ae(pe,">"),pe):"quasi"==e?S(ve,xe):void 0}function he(e){if("=>"==e)return T(pe)}function me(e){return e.match(/[\}\)\]]/)?T():","==e||";"==e?T(me):S(ge,me)}function ge(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",T(ge)):"?"==t||"number"==e||"string"==e?T(ge):":"==e?T(pe):"["==e?T(V("variable"),ce,V("]"),ge):"("==e?S(Me,ge):e.match(/[;\}\)\],]/)?void 0:T()}function ve(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(ve):T(pe,ye)}function ye(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(ve)}function be(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?T(be):":"==e?T(pe):"spread"==e?T(be):S(pe)}function xe(e,t){return"<"==t?T(P(">"),ae(pe,">"),j,xe):"|"==t||"."==e||"&"==t?T(pe):"["==e?T(pe,V("]"),xe):"extends"==t||"implements"==t?(C.marked="keyword",T(pe)):"?"==t?T(pe,V(":"),pe):void 0}function Ee(e,t){if("<"==t)return T(P(">"),ae(pe,">"),j,xe)}function we(){return S(pe,ke)}function ke(e,t){if("="==t)return T(pe)}function Ce(e,t){return"enum"==t?(C.marked="keyword",T(Xe)):S(Se,ue,_e,De)}function Se(e,t){return c&&A(t)?(C.marked="keyword",T(Se)):"variable"==e?(_(t),T()):"spread"==e?T(Se):"["==e?se(Ne,"]"):"{"==e?se(Te,"}"):void 0}function Te(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?T(Se):"}"==e?S():"["==e?T(z,V("]"),V(":"),Te):T(V(":"),Se,_e)):(_(t),T(_e))}function Ne(){return S(Se,_e)}function _e(e,t){if("="==t)return T(H)}function De(e){if(","==e)return T(Ce)}function Ae(e,t){if("keyword b"==e&&"else"==t)return T(P("form","else"),B,j)}function Oe(e,t){return"await"==t?T(Oe):"("==e?T(P(")"),Le,j):void 0}function Le(e){return"var"==e?T(Ce,Ie):"variable"==e?T(Ie):S(Ie)}function Ie(e,t){return")"==e?T():";"==e?T(Ie):"in"==t||"of"==t?(C.marked="keyword",T(z,Ie)):S(z,Ie)}function Fe(e,t){return"*"==t?(C.marked="keyword",T(Fe)):"variable"==e?(_(t),T(Fe)):"("==e?T(F,P(")"),ae(Pe,")"),j,de,B,R):c&&"<"==t?T(P(">"),ae(we,">"),j,Fe):void 0}function Me(e,t){return"*"==t?(C.marked="keyword",T(Me)):"variable"==e?(_(t),T(Me)):"("==e?T(F,P(")"),ae(Pe,")"),j,de,R):c&&"<"==t?T(P(">"),ae(we,">"),j,Me):void 0}function Re(e,t){return"keyword"==e||"variable"==e?(C.marked="type",T(Re)):"<"==t?T(P(">"),ae(we,">"),j):void 0}function Pe(e,t){return"@"==t&&T(z,Pe),"spread"==e?T(Pe):c&&A(t)?(C.marked="keyword",T(Pe)):c&&"this"==e?T(ue,_e):S(Se,ue,_e)}function je(e,t){return"variable"==e?Ve(e,t):Be(e,t)}function Ve(e,t){if("variable"==e)return _(t),T(Be)}function Be(e,t){return"<"==t?T(P(">"),ae(we,">"),j,Be):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),T(c?pe:z,Be)):"{"==e?T(P("}"),Ue,j):void 0}function Ue(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&A(t))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",T(Ue)):"variable"==e||"keyword"==C.style?(C.marked="property",T(ze,Ue)):"number"==e||"string"==e?T(ze,Ue):"["==e?T(z,ue,V("]"),ze,Ue):"*"==t?(C.marked="keyword",T(Ue)):c&&"("==e?S(Me,Ue):";"==e||","==e?T(Ue):"}"==e?T():"@"==t?T(z,Ue):void 0}function ze(e,t){if("!"==t)return T(ze);if("?"==t)return T(ze);if(":"==e)return T(pe,_e);if("="==t)return T(H);var n=C.state.lexical.prev;return S(n&&"interface"==n.info?Me:Fe)}function He(e,t){return"*"==t?(C.marked="keyword",T(Ye,V(";"))):"default"==t?(C.marked="keyword",T(z,V(";"))):"{"==e?T(ae(qe,"}"),Ye,V(";")):S(B)}function qe(e,t){return"as"==t?(C.marked="keyword",T(V("variable"))):"variable"==e?S(H,qe):void 0}function $e(e){return"string"==e?T():"("==e?S(z):"."==e?S(G):S(We,Ge,Ye)}function We(e,t){return"{"==e?se(We,"}"):("variable"==e&&_(t),"*"==t&&(C.marked="keyword"),T(Ke))}function Ge(e){if(","==e)return T(We,Ge)}function Ke(e,t){if("as"==t)return C.marked="keyword",T(We)}function Ye(e,t){if("from"==t)return C.marked="keyword",T(z)}function Qe(e){return"]"==e?T():S(ae(H,"]"))}function Xe(){return S(P("form"),Se,V("{"),P("}"),ae(Ze,"}"),j,j)}function Ze(){return S(Se,_e)}function Je(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return F.lex=M.lex=!0,R.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new E((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",k(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==j)l=l.prev;else if(c!=Ae&&c!=R)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==G||i==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Je,skipExpression:function(t){k(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(5237))},6895:(e,t,n)=>{!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var s=n(t);if(s.query)return c(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var f=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),f&&(f.style.opacity=1),c(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)})))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:i,bottom:e.options.search.bottom})})(t,p(t),u,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&u&&(l(t,s,u),c(t,r))}else o(t,p(t),"Search for:",u,(function(e){e&&!s.query&&t.operation((function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),c(t,r)}))}))}function c(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function d(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function f(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function p(e){var t=f("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),f("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return t.setAttribute("for","CodeMirror-search-field"),f("",null,t," ",f("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function h(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function m(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,l=t?e.phrase("Replace all:"):e.phrase("Replace:"),u=f("",null,f("span",{className:"CodeMirror-search-label"},l),function(e){return f("",null," ",f("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",f("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}(e));o(e,u,l,r,(function(n){n&&(n=s(n),o(e,function(e){return f("",null,f("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",f("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)h(e,n,r);else{d(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return f("",null,f("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",f("button",{},e.phrase("Yes"))," ",f("button",{},e.phrase("No"))," ",f("button",{},e.phrase("All"))," ",f("button",{},e.phrase("Stop")))}(e),e.phrase("Replace?"),[function(){l(t)},s,function(){h(e,n,r)}]))},l=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){d(e),u(e)},e.commands.findPersistent=function(e){d(e),u(e,!1,!0)},e.commands.findPersistentNext=function(e){u(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){u(e,!0,!0,!0)},e.commands.findNext=u,e.commands.findPrev=function(e){u(e,!0)},e.commands.clearSearch=d,e.commands.replace=m,e.commands.replaceAll=function(e){m(e,!0)}}(n(5237),n(3653),n(8527))},7128:(e,t,n)=>{"use strict";var r=n(3798);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&"function"==typeof(t=e.constructor)&&!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},7402:(e,t,n)=>{"use strict";n.r(t);var r=n(5237),i=n.n(r);function o(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement))return;if("SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;const o=r.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,u)},s=function(){i().off(document,"mousemove",a),i().off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){i().off(document,"mousemove",a),i().off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),r=e.state.info,{options:o}=r,a=o.render||e.getHelper(n,"info");if(a){const r=e.getTokenAt(n,!0);if(r){const s=a(r,o,e,n);s&&function(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const o=r.getBoundingClientRect(),a=window.getComputedStyle(r),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),l=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom);let u=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(u=t.top-l),u<0&&(u=t.bottom);let c,d=Math.max(0,window.innerWidth-s-15);d>t.left&&(d=t.left),r.style.opacity="1",r.style.top=u+"px",r.style.left=d+"px";const f=function(){clearTimeout(c)},p=function(){clearTimeout(c),c=setTimeout(h,200)},h=function(){i().off(r,"mouseover",f),i().off(r,"mouseout",p),i().off(e.getWrapperElement(),"mouseout",p),r.style.opacity?(r.style.opacity="0",setTimeout((()=>{r.parentNode&&r.remove()}),600)):r.parentNode&&r.remove()};i().on(r,"mouseover",f),i().on(r,"mouseout",p),i().on(e.getWrapperElement(),"mouseout",p)}(e,t,s)}}}(e,o)},u=function(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}(e);n.hoverTimeout=setTimeout(l,u),i().on(document,"mousemove",a),i().on(e.getWrapperElement(),"mouseout",s)}i().defineOption("info",!1,((e,t,n)=>{if(n&&n!==i().Init){const t=e.state.info.onMouseOver;i().off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);n.onMouseOver=o.bind(null,e),i().on(e.getWrapperElement(),"mouseover",n.onMouseOver)}}))},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,I(w);else{var t=r(c);null!==t&&F(E,t.startTime-e)}}function w(e,n){m=!1,g&&(g=!1,y(T),T=-1),h=!0;var o=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!D());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&i(u),x(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&F(E,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,C=!1,S=null,T=-1,N=5,_=-1;function D(){return!(t.unstable_now()-_<N)}function A(){if(null!==S){var e=t.unstable_now();_=e;var n=!0;try{n=S(!0,e)}finally{n?k():(C=!1,S=null)}}else C=!1}if("function"==typeof b)k=function(){b(A)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,L=O.port2;O.port1.onmessage=A,k=function(){L.postMessage(null)}}else k=function(){v(A,0)};function I(e){S=e,C||(C=!0,k())}function F(e,n){T=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,I(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(y(T),T=-1):g=!0,F(E,o-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,I(w))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7613:(e,t,n)=>{"use strict";n.d(t,{HQ:()=>p,MQ:()=>h,RR:()=>f,qT:()=>d,rc:()=>y,yK:()=>m});var r=n(6286),i=n(4621),o=n(2475),a=n(4279),s=n(2369),l=n(2300),u=n(4538),c=n(3770);function d(e){return(0,i.h)(e,f)}class f{constructor(e){var t,n;this.name=(0,l.I)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,a.z)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.U)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,o.Z)(i)&&!Array.isArray(i)||(0,r.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,u.Kx)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,u.g0)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const p=new f({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[s.H.FIELD,s.H.FRAGMENT_SPREAD,s.H.INLINE_FRAGMENT],args:{if:{type:new u.Gc(c.kk),description:"Included when true."}}}),h=new f({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[s.H.FIELD,s.H.FRAGMENT_SPREAD,s.H.INLINE_FRAGMENT],args:{if:{type:new u.Gc(c.kk),description:"Skipped when true."}}}),m=new f({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[s.H.FIELD_DEFINITION,s.H.ARGUMENT_DEFINITION,s.H.INPUT_FIELD_DEFINITION,s.H.ENUM_VALUE],args:{reason:{type:c.FV,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:"No longer supported"}}}),g=new f({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[s.H.SCALAR],args:{url:{type:new u.Gc(c.FV),description:"The URL that specifies the behavior of this scalar."}}}),v=new f({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[s.H.INPUT_OBJECT],args:{}}),y=Object.freeze([p,h,m,g,v])},7829:(e,t,n)=>{!function(e){"use strict";var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var l,u,c=this,d=a(c,e),f=c.getLine(e.line);if(null!=f&&(l=e,u=f,!/\bstring\b/.test(c.getTokenTypeAt(r(l.line,0)))||/^[\'\"\`]/.test(u))){var p=s.lineComment||d.lineComment;if(p){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,c.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==i.line;c.operation((function(){if(s.indent){for(var t=null,i=e.line;i<h;++i){var a=-1===(l=c.getLine(i)).search(n)?l:l.slice(0,o(l));(null==t||t.length>a.length)&&(t=a)}for(i=e.line;i<h;++i){var l=c.getLine(i),u=t.length;(g||n.test(l))&&(l.slice(0,u)!=t&&(u=o(l)),c.replaceRange(t+p+m,r(i,0),r(i,u)))}}else for(i=e.line;i<h;++i)(g||n.test(c.getLine(i)))&&c.replaceRange(p+m,r(i,0))}))}else(s.blockCommentStart||d.blockCommentStart)&&(s.fullLines=!0,c.blockComment(e,i,s))}})),e.defineExtension("blockComment",(function(e,o,s){s||(s=t);var l=this,u=a(l,e),c=s.blockCommentStart||u.blockCommentStart,d=s.blockCommentEnd||u.blockCommentEnd;if(c&&d){if(!/\bcomment\b/.test(l.getTokenTypeAt(r(e.line,0)))){var f=Math.min(o.line,l.lastLine());f!=e.line&&0==o.ch&&n.test(l.getLine(f))&&--f;var p=null==s.padding?" ":s.padding;e.line>f||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(f));l.replaceRange(p+d,r(f)),l.replaceRange(c+p,r(e.line,0));var a=s.blockCommentLead||u.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&l.replaceRange(a+p,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(d,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(c,e)}}))}}else(s.lineComment||u.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var s,l=this,u=a(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),d=Math.min(e.line,c),f=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=d;m<=c;++m){var g=l.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(l.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(l.operation((function(){for(var e=d;e<=c;++e){var t=p[e-d],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var x=o.blockCommentLead||u.blockCommentLead,E=l.getLine(d),w=E.indexOf(y);if(-1==w)return!1;var k=c==d?E:l.getLine(c),C=k.indexOf(b,c==d?w+y.length:0),S=r(d,w+1),T=r(c,C+1);if(-1==C||!/comment/.test(l.getTokenTypeAt(S))||!/comment/.test(l.getTokenTypeAt(T))||l.getRange(S,T,"\n").indexOf(b)>-1)return!1;var N=E.lastIndexOf(y,e.ch),_=-1==N?-1:E.slice(0,e.ch).indexOf(b,N+y.length);if(-1!=N&&-1!=_&&_+b.length!=e.ch)return!1;_=k.indexOf(b,i.ch);var D=k.slice(i.ch).lastIndexOf(y,_-i.ch);return N=-1==_||-1==D?-1:i.ch+D,(-1==_||-1==N||N==i.ch)&&(l.operation((function(){l.replaceRange("",r(c,C-(h&&k.slice(C-h.length,C)==h?h.length:0)),r(c,C+b.length));var e=w+y.length;if(h&&E.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(d,w),r(d,e)),x)for(var t=d+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(x);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+x.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(5237))},7905:(e,t,n)=>{"use strict";n.d(t,{Hh:()=>a,IR:()=>s,Q0:()=>i,a2:()=>l,t8:()=>o});var r=n(4538);function i(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:u(e.fieldDef)?null:e.parentType}}function o(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function a(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:u(e.fieldDef)?null:e.parentType}}function s(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,r.MR)(e.inputType):void 0}}function l(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function u(e){return"__"===e.name.slice(0,2)}},7923:(e,t,n)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].empty()&&o(e,u[c].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var f=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:f})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:f}))}}if(l.length){t&&e.state.focused&&e.focus();var p=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!r)return p;setTimeout(p,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(5237))},7965:(e,t,n)=>{"use strict";var r=n(6426),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.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 o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},8100:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});const r=5;function i(e,t){const[n,i]=t?[e,t]:[void 0,e];let o=" Did you mean ";n&&(o+=n+" ");const a=i.map((e=>`"${e}"`));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}const s=a.slice(0,r),l=s.pop();return o+s.join(", ")+", or "+l+"?"}},8208:(e,t,n)=>{!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(u,i),d=c.findNext();if(d||(d=(c=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),c.from(),c.to()))return;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var s="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],l=a.head,u=t.scanForBracket(l,-1);if(!u)return!1;for(;;){var c=t.scanForBracket(l,1);if(!c)return!1;if(c.ch==s.charAt(s.indexOf(u.ch)+1)){var d=n(u.pos.line,u.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(c.pos,a.to())){i.push({anchor:d,head:c.pos});break}if(!(u=t.scanForBracket(u.pos,-1)))return!1}l=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(i),!0}function u(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function c(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l];if(!u.empty()){for(var c=u.from().line,d=u.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(c,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],u=s[a+1],c=n(l,0),d=n(u),f=t.getRange(c,d,!1);r?f.sort((function(e,t){return e<t?-i:e==t?0:i})):f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(f,c,d),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)}))}function d(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){c(e,!0,1)},t.reverseSortLines=function(e){c(e,!0,-1)},t.sortLinesInsensitive=function(e){c(e,!1,1)},t.reverseSortLinesInsensitive=function(e){c(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){d(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){d(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime);var m=h.default==h.macDefault;h.sublime=m?h.macSublime:h.pcSublime}(n(5237),n(3653),n(7923))},8527:(e,t,n)=>{!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",(function(e){o.onInput(e,d.value,u)})),o.onKeyUp&&e.on(d,"keyup",(function(e){o.onKeyUp(e,d.value,u)})),e.on(d,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f<s.length;++f){var p=s[f];!function(t){e.on(p,"click",(function(n){e.e_preventDefault(n),d(),t&&t(u)}))}(i[f]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),u()})),l&&(o=setTimeout(u,l)),u}))}(n(5237))},8738:(e,t,n)=>{"use strict";n.r(t);var r=n(5237),i=n.n(r),o=n(4849),a=n(2969);i().defineMode("graphql-variables",(e=>{const t=(0,o.r5)({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a.A,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));const s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},l={Document:[(0,o.p)("{"),(0,o.p_)("Variable",(0,o.m7)((0,o.p)(","))),(0,o.p)("}")],Variable:[u("variable"),(0,o.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.p_)("Value",(0,o.m7)((0,o.p)(","))),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.p_)("ObjectField",(0,o.m7)((0,o.p)(","))),(0,o.p)("}")],ObjectField:[u("attribute"),(0,o.p)(":"),"Value"]};function u(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}},8746:(e,t,n)=>{"use strict";n.d(t,{GU:()=>p,V4:()=>h,Wl:()=>f});var r=n(6286),i=n(129),o=n(4621),a=n(2475),s=n(4279),l=n(475),u=n(4538),c=n(7613),d=n(9488);function f(e){return(0,o.h)(e,h)}function p(e){if(!f(e))throw new Error(`Expected ${(0,i.N)(e)} to be a GraphQL schema.`);return e}class h{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.Z)(e)||(0,r.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.U)(!1,`"types" must be Array if provided but got: ${(0,i.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.U)(!1,`"directives" must be Array if provided but got: ${(0,i.N)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.z)(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:c.rc;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),m(t,o);null!=this._queryType&&m(this._queryType,o),null!=this._mutationType&&m(this._mutationType,o),null!=this._subscriptionType&&m(this._subscriptionType,o);for(const e of this._directives)if((0,c.qT)(e))for(const t of e.args)m(t.type,o);m(d.em,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.U)(!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,u.kD)(e)){for(const t of e.getInterfaces())if((0,u.kD)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,u.YQ)(e))for(const t of e.getInterfaces())if((0,u.kD)(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 l.cE.QUERY:return this.getQueryType();case l.cE.MUTATION:return this.getMutationType();case l.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.CK)(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,u.CK)(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 m(e,t){const n=(0,u.MR)(e);if(!t.has(n))if(t.add(n),(0,u.CK)(n))for(const e of n.getTypes())m(e,t);else if((0,u.YQ)(n)||(0,u.kD)(n)){for(const e of n.getInterfaces())m(e,t);for(const e of Object.values(n.getFields())){m(e.type,t);for(const n of e.args)m(n.type,t)}}else if((0,u.qK)(n))for(const e of Object.values(n.getFields()))m(e.type,t);return t}},8770:(e,t,n)=>{"use strict";n.r(t);var r=n(5237),i=n.n(r),o=(n(9751),n(4849));i().registerHelper("hint","graphql",((e,t)=>{const{schema:n,externalFragments:r,autocompleteOptions:a}=t;if(!n)return;const s=e.getCursor(),l=e.getTokenAt(s),u=null!==l.type&&/"|\w/.test(l.string[0])?l.start:l.end,c=new o.yX(s.line,u),d={list:(0,o.CE)(n,e.getValue(),c,l,r,a).map((e=>{var t;return{text:null!==(t=null==e?void 0:e.rawInsert)&&void 0!==t?t:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})),from:{line:s.line,ch:u},to:{line:s.line,ch:l.end}};return(null==d?void 0:d.list)&&d.list.length>0&&(d.from=i().Pos(d.from.line,d.from.ch),d.to=i().Pos(d.to.line,d.to.ch),i().signal(e,"hasCompletion",e,d,l)),d}))},8820:(e,t,n)=>{!function(e){"use strict";function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(5237),n(8527))},8948:(e,t,n)=>{!function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;if("fold"===o)return r;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var u=l(!0);if(r(t,i,"scanUp"))for(;!u&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,u);e.on(c,"mousedown",(function(t){d.clear(),e.e_preventDefault(t)}));var d=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return r(this,e,t)}))}(n(5237))},9268:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(129),i=n(1181),o=n(2475),a=n(3298),s=n(4538),l=n(3770);function u(e,t){if((0,s.bd)(t)){const n=u(e,t.ofType);return(null==n?void 0:n.kind)===a.b.NULL?null:n}if(null===e)return{kind:a.b.NULL};if(void 0===e)return null;if((0,s.Fs)(t)){const r=t.ofType;if("object"==typeof(n=e)&&"function"==typeof(null==n?void 0:n[Symbol.iterator])){const t=[];for(const n of e){const e=u(n,r);null!=e&&t.push(e)}return{kind:a.b.LIST,values:t}}return u(e,r)}var n;if((0,s.qK)(t)){if(!(0,o.Z)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=u(e[r.name],r.type);t&&n.push({kind:a.b.OBJECT_FIELD,name:{kind:a.b.NAME,value:r.name},value:t})}return{kind:a.b.OBJECT,fields:n}}if((0,s.zf)(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:a.b.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return c.test(e)?{kind:a.b.INT,value:e}:{kind:a.b.FLOAT,value:e}}if("string"==typeof n)return(0,s.oF)(t)?{kind:a.b.ENUM,value:n}:t===l.N1&&c.test(n)?{kind:a.b.INT,value:n}:{kind:a.b.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,r.N)(n)}.`)}(0,i.V)(!1,"Unexpected input type: "+(0,r.N)(t))}const c=/^-?(?:0|[1-9][0-9]*)$/},9321:(e,t,n)=>{"use strict";function r(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}n.d(t,{L:()=>r})},9488:(e,t,n)=>{"use strict";n.d(t,{S0:()=>b,V4:()=>w,Xe:()=>x,Yh:()=>k,em:()=>c,fY:()=>v,of:()=>E});var r=n(129),i=n(1181),o=n(2369),a=n(6547),s=n(9268),l=n(4538),u=n(3770);const c=new l.bh({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:u.FV,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.Gc(new l.KT(new l.Gc(p))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.Gc(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.Gc(new l.KT(new l.Gc(d))),resolve:e=>e.getDirectives()}})}),d=new l.bh({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 l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},isRepeatable:{type:new l.Gc(u.kk),resolve:e=>e.isRepeatable},locations:{type:new l.Gc(new l.KT(new l.Gc(f))),resolve:e=>e.locations},args:{type:new l.Gc(new l.KT(new l.Gc(m))),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),f=new l.Zb({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.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),p=new l.bh({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 l.Gc(y),resolve:e=>(0,l.lg)(e)?v.SCALAR:(0,l.YQ)(e)?v.OBJECT:(0,l.kD)(e)?v.INTERFACE:(0,l.CK)(e)?v.UNION:(0,l.oF)(e)?v.ENUM:(0,l.qK)(e)?v.INPUT_OBJECT:(0,l.Fs)(e)?v.LIST:(0,l.bd)(e)?v.NON_NULL:void(0,i.V)(!1,`Unexpected type: "${(0,r.N)(e)}".`)},name:{type:u.FV,resolve:e=>"name"in e?e.name:void 0},description:{type:u.FV,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:u.FV,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.KT(new l.Gc(h)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.YQ)(e)||(0,l.kD)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new l.KT(new l.Gc(p)),resolve(e){if((0,l.YQ)(e)||(0,l.kD)(e))return e.getInterfaces()}},possibleTypes:{type:new l.KT(new l.Gc(p)),resolve(e,t,n,{schema:r}){if((0,l.Lc)(e))return r.getPossibleTypes(e)}},enumValues:{type:new l.KT(new l.Gc(g)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.oF)(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new l.KT(new l.Gc(m)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.qK)(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:u.kk,resolve:e=>{if((0,l.qK)(e))return e.isOneOf}}})}),h=new l.bh({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 l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},args:{type:new l.Gc(new l.KT(new l.Gc(m))),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new l.Gc(p),resolve:e=>e.type},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})}),m=new l.bh({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 l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},type:{type:new l.Gc(p),resolve:e=>e.type},defaultValue:{type:u.FV,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.K)(n,t);return r?(0,a.y)(r):null}},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})}),g=new l.bh({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 l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})});var 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||(v={}));const y=new l.Zb({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."}}}),b={name:"__schema",type:new l.Gc(c),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},x={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.Gc(u.FV),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},E={name:"__typename",type:new l.Gc(u.FV),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},w=Object.freeze([c,d,f,p,h,m,g,y]);function k(e){return w.some((({name:t})=>e.name===t))}},9575:(e,t,n)=>{"use strict";const{deleteProperty:r}=Reflect,i=n(9969),o=n(7128),a=e=>"object"==typeof e&&null!==e||"function"==typeof e,s=e=>{if(!i(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},l=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:((e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((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})(e,t):e);s(r);const i=c.cache.get(r)||n();return c.cache.set(r,i),i})(e,t,(()=>((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=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};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})(e,t))),u=(e,t,n,i)=>{if(s(t),void 0===n)r(e,t);else if(i&&i.merge){const r="function"===i.merge?i.merge:Object.assign;r&&o(e[t])&&o(n)?e[t]=r(e[t],n):e[t]=n}else e[t]=n;return e},c=(e,t,n,r)=>{if(!t||!a(e))return e;const i=l(t,r);let o=e;for(let e=0;e<i.length;e++){const t=i[e],l=i[e+1];if(s(t),void 0===l){u(o,t,n,r);break}"number"!=typeof l||Array.isArray(o[t])?(a(o[t])||(o[t]={}),o=o[t]):o=o[t]=[]}return e};c.split=l,c.cache=new Map,c.clear=()=>{c.cache=new Map},e.exports=c},9581:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(3298),i=n(4538);function o(e,t){switch(t.kind){case r.b.LIST_TYPE:{const n=o(e,t.type);return n&&new i.KT(n)}case r.b.NON_NULL_TYPE:{const n=o(e,t.type);return n&&new i.Gc(n)}case r.b.NAMED_TYPE:return e.getType(t.name.value)}}},9646:(e,t,n)=>{"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{i0:()=>r,un:()=>a,xr:()=>s,yp:()=>i})},9751:(e,t,n)=>{!function(e){"use strict";var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new n(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var r=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function o(e){return"string"==typeof e?e:e.text}function a(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function s(n,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=r,this.picked=!1;var i=this,s=n.cm,l=s.getInputField().ownerDocument,u=l.defaultView||l.parentWindow,c=this.hints=l.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id;var d=n.cm.options.theme;c.className="CodeMirror-hints "+d,this.selectedHint=r.selectedHint||0;for(var f=r.list,p=0;p<f.length;++p){var h=c.appendChild(l.createElement("li")),m=f[p],g="CodeMirror-hint"+(p!=this.selectedHint?"":" "+t);null!=m.className&&(g=m.className+" "+g),h.className=g,p==this.selectedHint&&h.setAttribute("aria-selected","true"),h.id=this.id+"-"+p,h.setAttribute("role","option"),m.render?m.render(h,r,m):h.appendChild(l.createTextNode(m.displayText||o(m))),h.hintId=p}var v=n.options.container||l.body,y=s.cursorCoords(n.options.alignWithWord?r.from:null),b=y.left,x=y.bottom,E=!0,w=0,k=0;if(v!==l.body){var C=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(v).position)?v:v.offsetParent,S=C.getBoundingClientRect(),T=l.body.getBoundingClientRect();w=S.left-T.left-C.scrollLeft,k=S.top-T.top-C.scrollTop}c.style.left=b-w+"px",c.style.top=x-k+"px";var N=u.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),_=u.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight);v.appendChild(c),s.getInputField().setAttribute("aria-autocomplete","list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var D,A=n.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,O=!!n.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout((function(){D=s.getScrollInfo()})),A.bottom-_>0){var L=A.bottom-A.top,I=A.top-(y.bottom-y.top)-2;_-A.top<I?(L>I&&(c.style.height=(L=I)+"px"),c.style.top=(x=y.top-L)+k+"px",E=!1):c.style.height=_-A.top-2+"px"}var F,M=A.right-N;if(O&&(M+=s.display.nativeBarWidth),M>0&&(A.right-A.left>N&&(c.style.width=N-5+"px",M-=A.right-A.left-N),c.style.left=(b=Math.max(y.left-M-w,0))+"px"),O)for(var R=c.firstChild;R;R=R.nextSibling)R.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:f.length,close:function(){n.close()},pick:function(){i.pick()},data:r})),n.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){F=setTimeout((function(){n.close()}),100)}),s.on("focus",this.onFocus=function(){clearTimeout(F)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();D||(D=s.getScrollInfo());var r=x+D.top-e.top,i=r-(u.pageYOffset||(l.documentElement||l.body).scrollTop);if(E||(i+=c.offsetHeight),i<=t.top||i>=t.bottom)return n.close();c.style.top=r+"px",c.style.left=b+D.left-e.left+"px"}),e.on(c,"dblclick",(function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())})),e.on(c,"click",(function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())})),e.on(c,"mousedown",(function(){setTimeout((function(){s.focus()}),20)}));var P=this.getSelectedHintRange();return 0===P.from&&0===P.to||this.scrollToActive(),e.signal(r,"select",f[this.selectedHint],c.childNodes[this.selectedHint]),!0}function l(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(o(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=r((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;l(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new s(this,t),e.signal(t,"shown")))}},s.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(n,r){if(n>=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-1),this.selectedHint!=n){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+t,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);l(r[o],e,n,(function(e){e&&e.list.length>0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var u={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n(5237))},9779:(e,t,n)=>{"use strict";function r(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let o=e.charCodeAt(n),s=t.charCodeAt(r);if(a(o)&&a(s)){let l=0;do{++n,l=10*l+o-i,o=e.charCodeAt(n)}while(a(o)&&l>0);let u=0;do{++r,u=10*u+s-i,s=t.charCodeAt(r)}while(a(s)&&u>0);if(l<u)return-1;if(l>u)return 1}else{if(o<s)return-1;if(o>s)return 1;++n,++r}}return e.length-t.length}n.d(t,{p:()=>r});const i=48,o=57;function a(e){return!isNaN(e)&&i<=e&&e<=o}},9969:e=>{"use strict";e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0,(()=>{"use strict";var e={};i.r(e),i.d(e,{decode:()=>Ha,encode:()=>Wa,format:()=>Ga,parse:()=>as});var t={};i.r(t),i.d(t,{Any:()=>us,Cc:()=>cs,Cf:()=>ds,P:()=>ss,S:()=>ls,Z:()=>fs});var n={};i.r(n),i.d(n,{arrayReplaceAt:()=>Hs,assign:()=>zs,escapeHtml:()=>tl,escapeRE:()=>rl,fromCodePoint:()=>$s,has:()=>Us,isMdAsciiPunct:()=>sl,isPunctChar:()=>al,isSpace:()=>il,isString:()=>Vs,isValidEntityCode:()=>qs,isWhiteSpace:()=>ol,lib:()=>ul,normalizeReference:()=>ll,unescapeAll:()=>Qs,unescapeMd:()=>Ys});var r={};i.r(r),i.d(r,{parseLinkDestination:()=>dl,parseLinkLabel:()=>cl,parseLinkTitle:()=>fl});var o=i(4848),a=i(1728),s=i(6540),l=i.t(s,2);function u(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function c(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=u(e))&&(r&&(r+=" "),r+=t);return r}var d=i(6547),f=i(9268),p=i(8746),h=i(6286),m=i(129),g=i(2475),v=i(9321),y=i(398),b=i(4538),x=i(7613),E=i(9488),w=i(3770),k=i(726);var C=i(617),S=i(4705),T=Object.defineProperty,N=Object.defineProperties,_=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,L=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),I=(e,t,n)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))A.call(t,n)&&I(e,n,t[n]);if(D)for(var n of D(t))O.call(t,n)&&I(e,n,t[n]);return e},M=(e,t)=>N(e,_(t)),R=function(e,t){this[0]=e,this[1]=t};function P(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}function j(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function V(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}async function B(e){const t=await e;return V(t)?async function(e){var t;const n=null==(t=("return"in e?e:e[Symbol.asyncIterator]()).return)?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return null==n||n(),r.value}(t):j(t)?(n=t,new Promise(((e,t)=>{const r=n.subscribe({next(t){e(t),r.unsubscribe()},error:t,complete(){t(new Error("no value resolved"))}})}))):t;var n}i(1421);var U=new TextDecoder;function z(e,t,n){const r=async function*(){yield*e}(),i=r.return.bind(r);if(t&&(r.return=(...e)=>(t(),i(...e))),n){const e=r.throw.bind(r);r.throw=t=>(n(t),e(t))}return r}function H(){const e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}const q=e=>{const{pushValue:t,asyncIterableIterator:n}=function(){let e={type:"running"},t=H();const n=[];return{pushValue:function(r){"running"===e.type&&(n.push(r),t.resolve(),t=H())},asyncIterableIterator:z(async function*(){for(;;)if(n.length>0)yield n.shift();else{if("error"===e.type)throw e.error;if("finished"===e.type)return;await t.promise}}(),(()=>{"running"===e.type&&(e={type:"finished"},t.resolve())}),(n=>{"running"===e.type&&(e={type:"error",error:n},t.resolve())}))}}(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),i=n.return;let o;return n.return=()=>(void 0===o&&(r(),o=i()),o),n},$=e=>t=>q((n=>e.subscribe(t,M(F({},n),{error(e){e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(e)}})))),W=(e,t)=>function(n,r){return i=function*(){const i=yield new R(t(e.url,{method:"POST",body:JSON.stringify(n),headers:F(F({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==r?void 0:r.headers)}).then((e=>async function(e){if(!e.ok||!e.body||e.bodyUsed)return e;let t=e.headers.get("content-type");if(!t||!~t.indexOf("multipart/"))return e;let n=t.indexOf("boundary="),r="-";if(~n){let e=n+9,i=t.indexOf(";",e);r=t.slice(e,i>-1?i:void 0).trim().replace(/"/g,"")}return async function*(e,t,n){let r,i,o,a=e.getReader(),s=!n||!n.multiple,l=t.length,u="",c=[];try{let e;e:for(;!(e=await a.read()).done;){let n=U.decode(e.value);r=u.length,u+=n;let a=n.indexOf(t);for(~a?r+=a:r=u.indexOf(t),c=[];~r;){let e=u.slice(0,r),n=u.slice(r+l);if(i){let t=e.indexOf("\r\n\r\n")+4,r=e.lastIndexOf("\r\n",t),i=!1,a=e.slice(t,r>-1?void 0:r),l=String(e.slice(0,t)).trim().split("\r\n"),u={},d=l.length;for(;o=l[--d];o=o.split(": "),u[o.shift().toLowerCase()]=o.join(": "));if(o=u["content-type"],o&&~o.indexOf("application/json"))try{a=JSON.parse(a),i=!0}catch(e){}if(o={headers:u,body:a,json:i},s?yield o:c.push(o),"--"===n.slice(0,2))break e}else t="\r\n"+t,i=l+=2;u=n,r=u.indexOf(t)}c.length&&(yield c)}}finally{c.length&&(yield c),await a.cancel()}}(e.body,`--${r}`,{multiple:!0})}(e))));if("object"!=typeof(o=i)||null===o||!("AsyncGenerator"===o[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in o))return yield i.json();var o;try{for(var a,s,l,u=((e,t,n)=>(t=e[L("asyncIterator")])?t.call(e):(e=e[L("iterator")](),t={},(n=(n,r)=>(r=e[n])&&(t[n]=t=>new Promise(((n,i,o)=>(t=r.call(e,t),o=t.done,Promise.resolve(t.value).then((e=>n({value:e,done:o})),i))))))("next"),n("return"),t))(i);a=!(s=yield new R(u.next())).done;a=!1){const e=s.value;if(e.some((e=>!e.json))){const t=e.map((e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`));throw new Error(`Expected multipart chunks to be of json type. got:\n${t}`)}yield e.map((e=>e.body))}}catch(s){l=[s]}finally{try{a&&(s=u.return)&&(yield new R(s.call(u)))}finally{if(l)throw l[0]}}},o=(e,t,n,r)=>{try{var a=i[e](t),s=(t=a.value)instanceof R,l=a.done;Promise.resolve(s?t[0]:t).then((i=>s?o("return"===e?e:"next",t[1]?{done:i.done,value:i.value}:i,n,r):n({value:i,done:l}))).catch((e=>o("throw",e,n,r)))}catch(e){r(e)}},a=e=>s[e]=t=>new Promise(((n,r)=>o(e,t,n,r))),s={},i=i.apply(this,null),s[L("asyncIterator")]=()=>s,a("next"),a("throw"),a("return"),s;var i,o,a,s};function G(e){const t=e.fetch||"undefined"!=typeof window&&window.fetch;if(!t)throw new Error("No valid fetcher implementation available");e.enableIncrementalDelivery=!1!==e.enableIncrementalDelivery;const n=((e,t)=>async(n,r)=>(await t(e.url,{method:"POST",body:JSON.stringify(n),headers:F(F({"content-type":"application/json"},e.headers),null==r?void 0:r.headers)})).json())(e,t),r=e.enableIncrementalDelivery?W(e,t):n;return async(t,i)=>{if("IntrospectionQuery"===t.operationName)return(e.schemaFetcher||n)(t,i);if(null!=i&&i.documentAST&&((e,t)=>{let n=!1;return(0,S.YR)(e,{OperationDefinition(e){var r;t===(null==(r=e.name)?void 0:r.value)&&"subscription"===e.operation&&(n=!0)}}),n})(i.documentAST,t.operationName||void 0)){const n=await async function(e,t){if(e.wsClient)return $(e.wsClient);if(e.subscriptionUrl)return async function(e,t){let n;try{const{createClient:r}=await Promise.resolve().then((function(){var e=new Error("Cannot find module 'graphql-ws'");throw e.code="MODULE_NOT_FOUND",e}));return n=r({url:e,connectionParams:t}),$(n)}catch(t){if((e=>"object"==typeof e&&null!==e&&"code"in e)(t)&&"MODULE_NOT_FOUND"===t.code)throw new Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for ${e}`,t)}}(e.subscriptionUrl,F(F({},e.wsConnectionParams),null==t?void 0:t.headers));const n=e.legacyClient||e.legacyWsClient;return n?(r=n,e=>{const t=r.request(e);return q((e=>t.subscribe(e).unsubscribe))}):void 0;var r}(e,i);if(!n)throw new Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. "+(e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."));return n(t)}return r(t,i)}}function K(e){return JSON.stringify(e,null,2)}function Y(e){return e instanceof Error?function(e){return M(F({},e),{message:e.message,stack:e.stack})}(e):e}function Q(e){return Array.isArray(e)?K({errors:e.map((e=>Y(e)))}):K({errors:[Y(e)]})}function X(e){return K(e)}var Z=i(2327),J=i(3298);function ee(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=(0,y.qg)(t)}catch(e){return{insertions:r,result:t}}const o=n||te,a=new Z.D(e);return(0,S.YR)(i,{leave(e){a.leave(e)},enter(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){const n=ne(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){const i=function(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.slice(n,r)}(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,d.y)(n).replaceAll("\n","\n"+i)})}}}}),{insertions:r,result:re(t,r)}}function te(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=[];for(const e of Object.keys(t))(0,b.zf)(t[e].type)&&n.push(e);return n}function ne(e,t){const n=(0,b.MR)(e);if(!e||(0,b.zf)(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:J.b.SELECTION_SET,selections:r.map((e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:J.b.FIELD,name:{kind:J.b.NAME,value:e},selectionSet:ne(i,t)}}))}:void 0}function re(e,t){if(0===t.length)return e;let n="",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function ie(e,t,n){var r;const i=n?(0,b.MR)(n).name:null,o=[],a=[];for(let s of t){if("FragmentSpread"===s.kind){const t=s.name.value;if(!s.directives||0===s.directives.length){if(a.includes(t))continue;a.push(t)}const n=e[s.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;s={kind:J.b.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(s.kind===J.b.INLINE_FRAGMENT&&(!s.directives||0===(null==(r=s.directives)?void 0:r.length))){const t=s.typeCondition?s.typeCondition.name.value:null;if(!t||t===i){o.push(...ie(e,s.selectionSet.selections,n));continue}}o.push(s)}return o}function oe(e,t){const n=t?new Z.D(t):null,r=Object.create(null);for(const t of e.definitions)t.kind===J.b.FRAGMENT_DEFINITION&&(r[t.name.value]=t);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=ie(r,i,t),M(F({},e),{selections:i})},FragmentDefinition:()=>null},o=(0,S.YR)(e,n?(0,Z.S)(n,i):i);return(0,S.YR)(o,{SelectionSet(e){let{selections:t}=e;return t=function(e){var t;const n=new Map,r=[];for(const o of e)if("Field"===o.kind){const e=(i=o).alias?i.alias.value:i.name.value,a=n.get(e);if(null!=(t=o.directives)&&t.length){const e=F({},o);r.push(e)}else if(null!=a&&a.selectionSet&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=F({},o);n.set(e,t),r.push(t)}}else r.push(o);var i;return r}(t),M(F({},e),{selections:t})},FragmentDefinition:()=>null})}class ae{constructor(e){e?this.storage=e:null===e||"undefined"==typeof window?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let e=0;for(const t in localStorage)0===t.indexOf(`${se}:`)&&(e+=1);return e},clear(){for(const e in localStorage)0===e.indexOf(`${se}:`)&&localStorage.removeItem(e)}}}get(e){if(!this.storage)return null;const t=`${se}:${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=`${se}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(e){r=e instanceof Error?e:new Error(`${e}`),n=function(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}(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}clear(){this.storage&&this.storage.clear()}}const se="graphiql";class le{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,t){if("number"==typeof t&&this.items[t]){const n=this.items[t];if(n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)return this.items.splice(t,1,e),void this.save()}const n=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==n&&(this.items.splice(n,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.at(-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(null!=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}))}}class ue{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=({query:e,variables:t,headers:n,operationName:r})=>{if(!this.shouldSaveQuery(e,t,n,this.history.fetchRecent()))return;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.deleteHistory=({query:e,variables:t,headers:n,operationName:r,favorite:i},o=!1)=>{function a(i){const o=i.items.find((i=>i.query===e&&i.variables===t&&i.headers===n&&i.operationName===r));o&&i.delete(o)}(i||o)&&a(this.favorite),(!i||o)&&a(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new le("queries",this.storage,this.maxHistoryLength),this.favorite=new le("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{(0,y.qg)(e)}catch(e){return!1}return!(e.length>1e5||r&&JSON.stringify(e)===JSON.stringify(r.query)&&(JSON.stringify(t)===JSON.stringify(r.variables)&&(JSON.stringify(n)===JSON.stringify(r.headers)||n&&!r.headers)||t&&!r.variables))}toggleFavorite({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o}){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?(a.favorite=!1,this.favorite.delete(a),this.history.push(a)):(a.favorite=!0,this.favorite.push(a),this.history.delete(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o},a){const s={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(M(F({},s),{favorite:o}),a):this.history.edit(s,a),this.queries=[...this.history.items,...this.favorite.items]}}var ce=i(4849),de=i(9575),fe=i(5363),pe=i(7965);function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function me(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ge(...e){return t=>{let n=!1;const r=e.map((e=>{const r=me(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():me(e[t],null)}}}}function ve(...e){return s.useCallback(ge(...e),e)}function ye(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>s.createContext(e)));return function(n){const r=n?.[e]||t;return s.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const i=s.createContext(r),a=n.length;n=[...n,r];const l=t=>{const{scope:n,children:r,...l}=t,u=n?.[e]?.[a]||i,c=s.useMemo((()=>l),Object.values(l));return(0,o.jsx)(u.Provider,{value:c,children:r})};return l.displayName=t+"Provider",[l,function(n,o){const l=o?.[e]?.[a]||i,u=s.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},be(r,...t)]}function be(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return s.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var xe=Boolean(globalThis?.document)?s.useLayoutEffect:()=>{},Ee=l["useId".toString()]||(()=>{}),we=0;function ke(e){const[t,n]=s.useState(Ee());return xe((()=>{e||n((e=>e??String(we++)))}),[e]),e||(t?`radix-${t}`:"")}function Ce(e){const t=s.useRef(e);return s.useEffect((()=>{t.current=e})),s.useMemo((()=>(...e)=>t.current?.(...e)),[])}function Se({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=function({defaultProp:e,onChange:t}){const n=s.useState(e),[r]=n,i=s.useRef(r),o=Ce(t);return s.useEffect((()=>{i.current!==r&&(o(r),i.current=r)}),[r,i,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,a=o?e:r,l=Ce(n);return[a,s.useCallback((t=>{if(o){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[o,e,i,l])]}var Te=i(961),Ne=s.forwardRef(((e,t)=>{const{children:n,...r}=e,i=s.Children.toArray(n),a=i.find(Ae);if(a){const e=a.props.children,n=i.map((t=>t===a?s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null:t));return(0,o.jsx)(_e,{...r,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,o.jsx)(_e,{...r,ref:t,children:n})}));Ne.displayName="Slot";var _e=s.forwardRef(((e,t)=>{const{children:n,...r}=e;if(s.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),i=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==s.Fragment&&(i.ref=t?ge(t,e):e),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null}));_e.displayName="SlotClone";var De=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function Ae(e){return s.isValidElement(e)&&e.type===De}var Oe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=s.forwardRef(((e,n)=>{const{asChild:r,...i}=e,a=r?Ne:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a,{...i,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Le(e,t){e&&Te.flushSync((()=>e.dispatchEvent(t)))}var Ie,Fe="dismissableLayer.update",Me=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Re=s.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...c}=e,d=s.useContext(Me),[f,p]=s.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=s.useState({}),g=ve(t,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=f?v.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,w=x>=b,k=function(e,t=globalThis?.document){const n=Ce(e),r=s.useRef(!1),i=s.useRef((()=>{}));return s.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){je("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));w&&!n&&(i?.(e),l?.(e),e.defaultPrevented||u?.())}),h),C=function(e,t=globalThis?.document){const n=Ce(e),r=s.useRef(!1);return s.useEffect((()=>{const e=e=>{e.target&&!r.current&&je("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(a?.(e),l?.(e),e.defaultPrevented||u?.())}),h);return function(e,t=globalThis?.document){const n=Ce(e);s.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{x===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),h),s.useEffect((()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ie=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Pe(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ie)}}),[f,h,n,d]),s.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Pe())}),[f,d]),s.useEffect((()=>{const e=()=>m({});return document.addEventListener(Fe,e),()=>document.removeEventListener(Fe,e)}),[]),(0,o.jsx)(Oe.div,{...c,ref:g,style:{pointerEvents:E?w?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,C.onFocusCapture),onBlurCapture:he(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,k.onPointerDownCapture)})}));function Pe(){const e=new CustomEvent(Fe);document.dispatchEvent(e)}function je(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Le(i,o):i.dispatchEvent(o)}Re.displayName="DismissableLayer",s.forwardRef(((e,t)=>{const n=s.useContext(Me),r=s.useRef(null),i=ve(t,r);return s.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,o.jsx)(Oe.div,{...e,ref:i})})).displayName="DismissableLayerBranch";var Ve="focusScope.autoFocusOnMount",Be="focusScope.autoFocusOnUnmount",Ue={bubbles:!1,cancelable:!0},ze=s.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...l}=e,[u,c]=s.useState(null),d=Ce(i),f=Ce(a),p=s.useRef(null),h=ve(t,(e=>c(e))),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect((()=>{if(r){let e=function(e){if(m.paused||!u)return;const t=e.target;u.contains(t)?p.current=t:We(p.current,{select:!0})},t=function(e){if(m.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||We(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&We(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,u,m.paused]),s.useEffect((()=>{if(u){Ge.add(m);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(Ve,Ue);u.addEventListener(Ve,d),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}(He(u).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&We(u))}return()=>{u.removeEventListener(Ve,d),setTimeout((()=>{const t=new CustomEvent(Be,Ue);u.addEventListener(Be,f),u.dispatchEvent(t),t.defaultPrevented||We(e??document.body,{select:!0}),u.removeEventListener(Be,f),Ge.remove(m)}),0)}}}),[u,d,f,m]);const g=s.useCallback((e=>{if(!n&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=He(e);return[qe(t,e),qe(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&We(o,{select:!0})):(e.preventDefault(),n&&We(r,{select:!0})):i===t&&e.preventDefault()}}),[n,r,m.paused]);return(0,o.jsx)(Oe.div,{tabIndex:-1,...l,ref:h,onKeyDown:g})}));function He(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qe(e,t){for(const n of e)if(!$e(n,{upTo:t}))return n}function $e(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}ze.displayName="FocusScope";var Ge=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ke(e,t),e.unshift(t)},remove(t){e=Ke(e,t),e[0]?.resume()}}}();function Ke(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ye=s.forwardRef(((e,t)=>{const{container:n,...r}=e,[i,a]=s.useState(!1);xe((()=>a(!0)),[]);const l=n||i&&globalThis?.document?.body;return l?Te.createPortal((0,o.jsx)(Oe.div,{...r,ref:t}),l):null}));Ye.displayName="Portal";var Qe=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=s.useState(),r=s.useRef({}),i=s.useRef(e),o=s.useRef("none"),a=e?"mounted":"unmounted",[l,u]=function(e,t){return s.useReducer(((e,n)=>t[e][n]??e),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect((()=>{const e=Xe(r.current);o.current="mounted"===l?e:"none"}),[l]),xe((()=>{const t=r.current,n=i.current;if(n!==e){const r=o.current,a=Xe(t);u(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),i.current=e}}),[e,u]),xe((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=o=>{const a=Xe(r.current).includes(o.animationName);if(o.target===t&&a&&(u("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=Xe(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),i="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),o=ve(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(i));return"function"==typeof n||r.isPresent?s.cloneElement(i,{ref:o}):null};function Xe(e){return e?.animationName||"none"}Qe.displayName="Presence";var Ze=0;function Je(){s.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??et()),document.body.insertAdjacentElement("beforeend",e[1]??et()),Ze++,()=>{1===Ze&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Ze--}}),[])}function et(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tt=function(e,t){return tt=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])},tt(e,t)};function nt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rt=function(){return rt=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},rt.apply(this,arguments)};function it(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 ot(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 at(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 st="right-scroll-bar-position",lt="width-before-scroll-bar";function ut(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ct="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,dt=new WeakMap;function ft(e){return e}var pt=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ft);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=rt({async:!0,ssr:!1},e),t}(),ht=function(){},mt=s.forwardRef((function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:ht,onWheelCapture:ht,onTouchMoveCapture:ht}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,x=it(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,w=function(e,t){var n,r,i,o=(n=t||null,r=function(t){return e.forEach((function(e){return ut(e,t)}))},(i=(0,s.useState)((function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=r,i.facade);return ct((function(){var t=dt.get(o);if(t){var n=new Set(t),r=new Set(e),i=o.current;n.forEach((function(e){r.has(e)||ut(e,null)})),r.forEach((function(e){n.has(e)||ut(e,i)}))}dt.set(o,e)}),[e]),o}([n,t]),k=rt(rt({},x),i);return s.createElement(s.Fragment,null,d&&s.createElement(E,{sideCar:pt,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:b}),a?s.cloneElement(s.Children.only(l),rt(rt({},k),{ref:w})):s.createElement(y,rt({},k,{className:u,ref:w}),l))}));mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mt.classNames={fullWidth:lt,zeroRight:st};var gt=function(e){var t=e.sideCar,n=it(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,rt({},n))};gt.isSideCarExport=!0;var vt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i.nc;return t&&e.setAttribute("nonce",t),e}())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yt=function(){var e,t=(e=vt(),function(t,n){s.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},bt={left:0,top:0,right:0,gap:0},xt=function(e){return parseInt(e||"",10)||0},Et=yt(),wt="data-scroll-locked",kt=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(wt,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(st," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(lt," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(st," .").concat(st," {\n right: 0 ").concat(r,";\n }\n \n .").concat(lt," .").concat(lt," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(wt,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Ct=function(){var e=parseInt(document.body.getAttribute(wt)||"0",10);return isFinite(e)?e:0},St=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;s.useEffect((function(){return document.body.setAttribute(wt,(Ct()+1).toString()),function(){var e=Ct()-1;e<=0?document.body.removeAttribute(wt):document.body.setAttribute(wt,e.toString())}}),[]);var o=s.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return bt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[xt(n),xt(r),xt(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(i)}),[i]);return s.createElement(Et,{styles:kt(o,!t,i,n?"":"!important")})},Tt=!1;if("undefined"!=typeof window)try{var Nt=Object.defineProperty({},"passive",{get:function(){return Tt=!0,!0}});window.addEventListener("test",Nt,Nt),window.removeEventListener("test",Nt,Nt)}catch(e){Tt=!1}var _t=!!Tt&&{passive:!1},Dt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},At=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Ot(e,r)){var i=Lt(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ot=function(e,t){return"v"===e?function(e){return Dt(e,"overflowY")}(t):function(e){return Dt(e,"overflowX")}(t)},Lt=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},It=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ft=function(e){return[e.deltaX,e.deltaY]},Mt=function(e){return e&&"current"in e?e.current:e},Rt=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Pt=0,jt=[];function Vt(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bt=(Ut=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),i=s.useState(Pt++)[0],o=s.useState(yt)[0],a=s.useRef(e);s.useEffect((function(){a.current=e}),[e]),s.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=at([e.lockRef.current],(e.shards||[]).map(Mt),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=It(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=At(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=At(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var p=r.current||i;return function(e,t,n,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,s=t.contains(a),l=!1,u=o>0,c=0,d=0;do{var f=Lt(e,a),p=f[0],h=f[1]-f[2]-i*p;(p||h)&&Ot(e,a)&&(c+=h,d+=p),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:u)}),[]),u=s.useCallback((function(e){var n=e;if(jt.length&&jt[jt.length-1]===o){var r="deltaY"in n?Ft(n):It(n),i=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i}))[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var s=(a.current.shards||[]).map(Mt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=s.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:Vt(r)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=s.useCallback((function(e){n.current=It(e),r.current=void 0}),[]),f=s.useCallback((function(t){c(t.type,Ft(t),t.target,l(t,e.lockRef.current))}),[]),p=s.useCallback((function(t){c(t.type,It(t),t.target,l(t,e.lockRef.current))}),[]);s.useEffect((function(){return jt.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,_t),document.addEventListener("touchmove",u,_t),document.addEventListener("touchstart",d,_t),function(){jt=jt.filter((function(e){return e!==o})),document.removeEventListener("wheel",u,_t),document.removeEventListener("touchmove",u,_t),document.removeEventListener("touchstart",d,_t)}}),[]);var h=e.removeScrollBar,m=e.inert;return s.createElement(s.Fragment,null,m?s.createElement(o,{styles:Rt(i)}):null,h?s.createElement(St,{gapMode:e.gapMode}):null)},pt.useMedium(Ut),gt);var Ut,zt=s.forwardRef((function(e,t){return s.createElement(mt,rt({},e,{ref:t,sideCar:Bt}))}));zt.classNames=mt.classNames;const Ht=zt;var qt=new WeakMap,$t=new WeakMap,Wt={},Gt=0,Kt=function(e){return e&&(e.host||Kt(e.parentNode))},Yt=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),function(e,t,n,r){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Kt(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Wt[n]||(Wt[n]=new WeakMap);var o=Wt[n],a=[],s=new Set,l=new Set(i),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(qt.get(e)||0)+1,u=(o.get(e)||0)+1;qt.set(e,l),o.set(e,u),a.push(e),1===l&&i&&$t.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),Gt++,function(){a.forEach((function(e){var t=qt.get(e)-1,i=o.get(e)-1;qt.set(e,t),o.set(e,i),t||($t.has(e)||e.removeAttribute(r),$t.delete(e)),i||e.removeAttribute(n)})),--Gt||(qt=new WeakMap,qt=new WeakMap,$t=new WeakMap,Wt={})}}(r,i,n,"aria-hidden")):function(){return null}},Qt="Dialog",[Xt,Zt]=ye(Qt),[Jt,en]=Xt(Qt),tn=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,u=s.useRef(null),c=s.useRef(null),[d=!1,f]=Se({prop:r,defaultProp:i,onChange:a});return(0,o.jsx)(Jt,{scope:t,triggerRef:u,contentRef:c,contentId:ke(),titleId:ke(),descriptionId:ke(),open:d,onOpenChange:f,onOpenToggle:s.useCallback((()=>f((e=>!e))),[f]),modal:l,children:n})};tn.displayName=Qt;var nn="DialogTrigger",rn=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=en(nn,n),a=ve(t,i.triggerRef);return(0,o.jsx)(Oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":kn(i.open),...r,ref:a,onClick:he(e.onClick,i.onOpenToggle)})}));rn.displayName=nn;var on="DialogPortal",[an,sn]=Xt(on,{forceMount:void 0}),ln=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=en(on,t);return(0,o.jsx)(an,{scope:t,forceMount:n,children:s.Children.map(r,(e=>(0,o.jsx)(Qe,{present:n||a.open,children:(0,o.jsx)(Ye,{asChild:!0,container:i,children:e})})))})};ln.displayName=on;var un="DialogOverlay",cn=s.forwardRef(((e,t)=>{const n=sn(un,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=en(un,e.__scopeDialog);return a.modal?(0,o.jsx)(Qe,{present:r||a.open,children:(0,o.jsx)(dn,{...i,ref:t})}):null}));cn.displayName=un;var dn=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=en(un,n);return(0,o.jsx)(Ht,{as:Ne,allowPinchZoom:!0,shards:[i.contentRef],children:(0,o.jsx)(Oe.div,{"data-state":kn(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),fn="DialogContent",pn=s.forwardRef(((e,t)=>{const n=sn(fn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=en(fn,e.__scopeDialog);return(0,o.jsx)(Qe,{present:r||a.open,children:a.modal?(0,o.jsx)(hn,{...i,ref:t}):(0,o.jsx)(mn,{...i,ref:t})})}));pn.displayName=fn;var hn=s.forwardRef(((e,t)=>{const n=en(fn,e.__scopeDialog),r=s.useRef(null),i=ve(t,n.contentRef,r);return s.useEffect((()=>{const e=r.current;if(e)return Yt(e)}),[]),(0,o.jsx)(gn,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:he(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:he(e.onFocusOutside,(e=>e.preventDefault()))})})),mn=s.forwardRef(((e,t)=>{const n=en(fn,e.__scopeDialog),r=s.useRef(!1),i=s.useRef(!1);return(0,o.jsx)(gn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=n.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),gn=s.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=e,u=en(fn,n),c=s.useRef(null),d=ve(t,c);return Je(),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ze,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,o.jsx)(Re,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":kn(u.open),...l,ref:d,onDismiss:()=>u.onOpenChange(!1)})}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Nn,{titleId:u.titleId}),(0,o.jsx)(_n,{contentRef:c,descriptionId:u.descriptionId})]})]})})),vn="DialogTitle",yn=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=en(vn,n);return(0,o.jsx)(Oe.h2,{id:i.titleId,...r,ref:t})}));yn.displayName=vn;var bn="DialogDescription",xn=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=en(bn,n);return(0,o.jsx)(Oe.p,{id:i.descriptionId,...r,ref:t})}));xn.displayName=bn;var En="DialogClose",wn=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,i=en(En,n);return(0,o.jsx)(Oe.button,{type:"button",...r,ref:t,onClick:he(e.onClick,(()=>i.onOpenChange(!1)))})}));function kn(e){return e?"open":"closed"}wn.displayName=En;var Cn="DialogTitleWarning",[Sn,Tn]=function(e,t){const n=s.createContext(t),r=e=>{const{children:t,...r}=e,i=s.useMemo((()=>r),Object.values(r));return(0,o.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){const i=s.useContext(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Cn,{contentName:fn,titleName:vn,docsSlug:"dialog"}),Nn=({titleId:e})=>{const t=Tn(Cn),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},_n=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Tn("DialogDescriptionWarning").contentName}}.`;return s.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},Dn=tn,An=rn,On=ln,Ln=cn,In=pn,Fn=yn,Mn=xn,Rn=wn,Pn=s.forwardRef(((e,t)=>(0,o.jsx)(Oe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));Pn.displayName="VisuallyHidden";var jn=Pn;function Vn(e){const t=e+"CollectionProvider",[n,r]=ye(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{const{scope:t,children:n}=e,r=s.useRef(null),a=s.useRef(new Map).current;return(0,o.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};l.displayName=t;const u=e+"CollectionSlot",c=s.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=ve(t,a(u,n).collectionRef);return(0,o.jsx)(Ne,{ref:i,children:r})}));c.displayName=u;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=s.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,l=s.useRef(null),u=ve(t,l),c=a(d,n);return s.useEffect((()=>(c.itemMap.set(l,{ref:l,...i}),()=>{c.itemMap.delete(l)}))),(0,o.jsx)(Ne,{[f]:"",ref:u,children:r})}));return p.displayName=d,[{Provider:l,Slot:c,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t);return s.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}var Bn=s.createContext(void 0);function Un(e){const t=s.useContext(Bn);return e||t||"ltr"}const zn=["top","right","bottom","left"],Hn=Math.min,qn=Math.max,$n=Math.round,Wn=Math.floor,Gn=e=>({x:e,y:e}),Kn={left:"right",right:"left",bottom:"top",top:"bottom"},Yn={start:"end",end:"start"};function Qn(e,t,n){return qn(e,Hn(t,n))}function Xn(e,t){return"function"==typeof e?e(t):e}function Zn(e){return e.split("-")[0]}function Jn(e){return e.split("-")[1]}function er(e){return"x"===e?"y":"x"}function tr(e){return"y"===e?"height":"width"}function nr(e){return["top","bottom"].includes(Zn(e))?"y":"x"}function rr(e){return er(nr(e))}function ir(e){return e.replace(/start|end/g,(e=>Yn[e]))}function or(e){return e.replace(/left|right|bottom|top/g,(e=>Kn[e]))}function ar(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function sr(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function lr(e,t,n){let{reference:r,floating:i}=e;const o=nr(t),a=rr(t),s=tr(a),l=Zn(t),u="y"===o,c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Jn(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function ur(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Xn(t,e),h=ar(p),m=s[f?"floating"===d?"reference":"floating":d],g=sr(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},x=sr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-x.top+h.top)/b.y,bottom:(x.bottom-g.bottom+h.bottom)/b.y,left:(g.left-x.left+h.left)/b.x,right:(x.right-g.right+h.right)/b.x}}function cr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dr(e){return zn.some((t=>e[t]>=0))}function fr(){return"undefined"!=typeof window}function pr(e){return gr(e)?(e.nodeName||"").toLowerCase():"#document"}function hr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mr(e){var t;return null==(t=(gr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function gr(e){return!!fr()&&(e instanceof Node||e instanceof hr(e).Node)}function vr(e){return!!fr()&&(e instanceof Element||e instanceof hr(e).Element)}function yr(e){return!!fr()&&(e instanceof HTMLElement||e instanceof hr(e).HTMLElement)}function br(e){return!(!fr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof hr(e).ShadowRoot)}function xr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Er(e){return["table","td","th"].includes(pr(e))}function wr(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function kr(e){const t=Cr(),n=vr(e)?Tr(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Cr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Sr(e){return["html","body","#document"].includes(pr(e))}function Tr(e){return hr(e).getComputedStyle(e)}function Nr(e){return vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _r(e){if("html"===pr(e))return e;const t=e.assignedSlot||e.parentNode||br(e)&&e.host||mr(e);return br(t)?t.host:t}function Dr(e){const t=_r(e);return Sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:yr(t)&&xr(t)?t:Dr(t)}function Ar(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Dr(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=hr(i);if(o){const e=Or(a);return t.concat(a,a.visualViewport||[],xr(i)?i:[],e&&n?Ar(e):[])}return t.concat(i,Ar(i,[],n))}function Or(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lr(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yr(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=$n(n)!==o||$n(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Ir(e){return vr(e)?e:e.contextElement}function Fr(e){const t=Ir(e);if(!yr(t))return Gn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Lr(t);let a=(o?$n(n.width):n.width)/r,s=(o?$n(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Mr=Gn(0);function Rr(e){const t=hr(e);return Cr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Mr}function Pr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ir(e);let a=Gn(1);t&&(r?vr(r)&&(a=Fr(r)):a=Fr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==hr(e))&&t}(o,n,r)?Rr(o):Gn(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const e=hr(o),t=r&&vr(r)?hr(r):r;let n=e,i=Or(n);for(;i&&r&&t!==n;){const e=Fr(i),t=i.getBoundingClientRect(),r=Tr(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,n=hr(i),i=Or(n)}}return sr({width:c,height:d,x:l,y:u})}function jr(e,t){const n=Nr(e).scrollLeft;return t?t.left+n:Pr(mr(e)).left+n}function Vr(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:jr(e,r)),y:r.top+t.scrollTop}}function Br(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=hr(e),r=mr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Cr();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=mr(e),n=Nr(e),r=e.ownerDocument.body,i=qn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jr(e);const s=-n.scrollTop;return"rtl"===Tr(r).direction&&(a+=qn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(mr(e));else if(vr(t))r=function(e,t){const n=Pr(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=yr(e)?Fr(e):Gn(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=Rr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return sr(r)}function Ur(e,t){const n=_r(e);return!(n===t||!vr(n)||Sr(n))&&("fixed"===Tr(n).position||Ur(n,t))}function zr(e,t,n){const r=yr(t),i=mr(t),o="fixed"===n,a=Pr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Gn(0);if(r||!r&&!o)if(("body"!==pr(t)||xr(i))&&(s=Nr(t)),r){const e=Pr(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=jr(i));const u=!i||r||o?Gn(0):Vr(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Hr(e){return"static"===Tr(e).position}function qr(e,t){if(!yr(e)||"fixed"===Tr(e).position)return null;if(t)return t(e);let n=e.offsetParent;return mr(e)===n&&(n=n.ownerDocument.body),n}function $r(e,t){const n=hr(e);if(wr(e))return n;if(!yr(e)){let t=_r(e);for(;t&&!Sr(t);){if(vr(t)&&!Hr(t))return t;t=_r(t)}return n}let r=qr(e,t);for(;r&&Er(r)&&Hr(r);)r=qr(r,t);return r&&Sr(r)&&Hr(r)&&!kr(r)?n:r||function(e){let t=_r(e);for(;yr(t)&&!Sr(t);){if(kr(t))return t;if(wr(t))return null;t=_r(t)}return null}(e)||n}const Wr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=mr(r),s=!!t&&wr(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Gn(1);const c=Gn(0),d=yr(r);if((d||!d&&!o)&&(("body"!==pr(r)||xr(a))&&(l=Nr(r)),yr(r))){const e=Pr(r);u=Fr(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!a||d||o?Gn(0):Vr(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:mr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?wr(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ar(e,[],!1).filter((e=>vr(e)&&"body"!==pr(e))),i=null;const o="fixed"===Tr(e).position;let a=o?_r(e):e;for(;vr(a)&&!Sr(a);){const t=Tr(a),n=kr(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||xr(a)&&!n&&Ur(e,a))?r=r.filter((e=>e!==a)):i=t,a=_r(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Br(t,n,i);return e.top=qn(r.top,e.top),e.right=Hn(r.right,e.right),e.bottom=Hn(r.bottom,e.bottom),e.left=qn(r.left,e.left),e}),Br(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:$r,getElementRects:async function(e){const t=this.getOffsetParent||$r,n=this.getDimensions,r=await n(e.floating);return{reference:zr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Lr(e);return{width:t,height:n}},getScale:Fr,isElement:vr,isRTL:function(e){return"rtl"===Tr(e).direction}};function Gr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Kr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=Zn(n),s=Jn(n),l="y"===nr(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=Xn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Yr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Xn(e,t),u={x:n,y:r},c=await ur(t,l),d=nr(Zn(i)),f=er(d);let p=u[f],h=u[d];if(o){const e="y"===f?"bottom":"right";p=Qn(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=Qn(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:o,[d]:a}}}}}},Qr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Xn(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Zn(i),y=nr(s),b=Zn(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(u.floating)),E=f||(b||!m?[or(s)]:function(e){const t=or(e);return[ir(e),t,ir(t)]}(s)),w="none"!==h;!f&&w&&E.push(...function(e,t,n,r){const i=Jn(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(Zn(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(ir)))),o}(s,m,h,x));const k=[s,...E],C=await ur(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Jn(e),i=rr(e),o=tr(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=or(a)),[a,or(a)]}(i,a,x);S.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:i,overflows:S}],!S.every((e=>e<=0))){var N,_;const e=((null==(N=o.flip)?void 0:N.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(_=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=T.filter((e=>{if(w){const t=nr(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Xr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Xn(e,t),c=await ur(t,u),d=Zn(i),f=Jn(i),p="y"===nr(i),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,x=Hn(m-c[g],y),E=Hn(h-c[v],b),w=!t.middlewareData.shift;let k=x,C=E;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),w&&!f){const e=qn(c.left,0),t=qn(c.right,0),n=qn(c.top,0),r=qn(c.bottom,0);p?C=h-2*(0!==e||0!==t?e+t:qn(c.left,c.right)):k=m-2*(0!==n||0!==r?n+r:qn(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:k});const S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Zr=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Xn(e,t);switch(r){case"referenceHidden":{const e=cr(await ur(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:dr(e)}}}case"escaped":{const e=cr(await ur(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:dr(e)}}}default:return{}}}}},Jr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Xn(e,t)||{};if(null==u)return{};const d=ar(c),f={x:n,y:r},p=rr(i),h=tr(p),m=await a.getDimensions(u),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[p]-f[p]-o.floating[h],E=f[p]-o.reference[p],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let k=w?w[b]:0;k&&await(null==a.isElement?void 0:a.isElement(w))||(k=s.floating[b]||o.floating[h]);const C=x/2-E/2,S=k/2-m[h]/2-1,T=Hn(d[v],S),N=Hn(d[y],S),_=T,D=k-m[h]-N,A=k/2-m[h]/2+C,O=Qn(_,A,D),L=!l.arrow&&null!=Jn(i)&&A!==O&&o.reference[h]/2-(A<_?T:N)-m[h]/2<0,I=L?A<_?A-_:A-D:0;return{[p]:f[p]+I,data:{[p]:O,centerOffset:A-O-I,...L&&{alignmentOffset:I}},reset:L}}}),ei=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Xn(e,t),c={x:n,y:r},d=nr(i),f=er(d);let p=c[f],h=c[d];const m=Xn(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,n=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(Zn(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}};var ti="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function ni(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ni(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(!("_owner"===n&&e.$$typeof||ni(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function ri(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ii(e,t){const n=ri(e);return Math.round(t*n)/n}function oi(e){const t=s.useRef(e);return ti((()=>{t.current=e})),t}const ai=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?Jr({element:n.current,padding:r}).fn(t):{}:n?Jr({element:n,padding:r}).fn(t):{};var i}}),si=(e,t)=>({...Yr(e),options:[e,t]}),li=(e,t)=>({...ei(e),options:[e,t]}),ui=(e,t)=>({...Qr(e),options:[e,t]}),ci=(e,t)=>({...Xr(e),options:[e,t]}),di=(e,t)=>({...Zr(e),options:[e,t]}),fi=(e,t)=>({...ai(e),options:[e,t]});var pi=s.forwardRef(((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return(0,o.jsx)(Oe.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,o.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));pi.displayName="Arrow";var hi=pi,mi="Popper",[gi,vi]=ye(mi),[yi,bi]=gi(mi),xi=e=>{const{__scopePopper:t,children:n}=e,[r,i]=s.useState(null);return(0,o.jsx)(yi,{scope:t,anchor:r,onAnchorChange:i,children:n})};xi.displayName=mi;var Ei="PopperAnchor",wi=s.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=bi(Ei,n),l=s.useRef(null),u=ve(t,l);return s.useEffect((()=>{a.onAnchorChange(r?.current||l.current)})),r?null:(0,o.jsx)(Oe.div,{...i,ref:u})}));wi.displayName=Ei;var ki="PopperContent",[Ci,Si]=gi(ki),Ti=s.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=e,y=bi(ki,n),[b,x]=s.useState(null),E=ve(t,(e=>x(e))),[w,k]=s.useState(null),C=function(e){const[t,n]=s.useState(void 0);return xe((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let i,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(w),S=C?.width??0,T=C?.height??0,N=r+("center"!==a?"-"+a:""),_="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(d)?d:[d],A=D.length>0,O={padding:_,boundary:D.filter(Ai),altBoundary:A},{refs:L,floatingStyles:I,placement:F,isPositioned:M,middlewareData:R}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=s.useState(r);ni(p,r)||h(r);const[m,g]=s.useState(null),[v,y]=s.useState(null),b=s.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),x=s.useCallback((e=>{e!==C.current&&(C.current=e,y(e))}),[]),E=o||m,w=a||v,k=s.useRef(null),C=s.useRef(null),S=s.useRef(d),T=null!=u,N=oi(u),_=oi(i),D=oi(c),A=s.useCallback((()=>{if(!k.current||!C.current)return;const e={placement:t,strategy:n,middleware:p};_.current&&(e.platform=_.current),((e,t,n)=>{const r=new Map,i={platform:Wr,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=lr(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[o]:{...p[o],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:c,y:d}=lr(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}})(e,t,{...i,platform:o})})(k.current,C.current,e).then((e=>{const t={...e,isPositioned:!1!==D.current};O.current&&!ni(S.current,t)&&(S.current=t,Te.flushSync((()=>{f(t)})))}))}),[p,t,n,_,D]);ti((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const O=s.useRef(!1);ti((()=>(O.current=!0,()=>{O.current=!1})),[]),ti((()=>{if(E&&(k.current=E),w&&(C.current=w),E&&w){if(N.current)return N.current(E,w,A);A()}}),[E,w,A,N,T]);const L=s.useMemo((()=>({reference:k,floating:C,setReference:b,setFloating:x})),[b,x]),I=s.useMemo((()=>({reference:E,floating:w})),[E,w]),F=s.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=ii(I.floating,d.x),r=ii(I.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ri(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,I.floating,d.x,d.y]);return s.useMemo((()=>({...d,update:A,refs:L,elements:I,floatingStyles:F})),[d,A,L,I,F])}({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Ir(e),c=i||o?[...u?Ar(u):[],...Ar(t)]:[];c.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const i=mr(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-Wn(d)+"px "+-Wn(i.clientWidth-(c+f))+"px "+-Wn(i.clientHeight-(d+p))+"px "+-Wn(c)+"px",threshold:qn(0,Hn(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||Gr(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),o}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?Pr(e):null;return l&&function t(){const r=Pr(e);m&&!Gr(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(...e,{animationFrame:"always"===m}),elements:{reference:y.anchor},middleware:[(P={mainAxis:i+T,alignmentAxis:l},{...Kr(P),options:[P,undefined]}),c&&si({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?li():void 0,...O}),c&&ui({...O}),ci({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),w&&fi({element:w,padding:u}),Oi({arrowWidth:S,arrowHeight:T}),h&&di({strategy:"referenceHidden",...O})]});var P;const[j,V]=Li(F),B=Ce(g);xe((()=>{M&&B?.()}),[M,B]);const U=R.arrow?.x,z=R.arrow?.y,H=0!==R.arrow?.centerOffset,[q,$]=s.useState();return xe((()=>{b&&$(window.getComputedStyle(b).zIndex)}),[b]),(0,o.jsx)("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:M?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,o.jsx)(Ci,{scope:n,placedSide:j,onArrowChange:k,arrowX:U,arrowY:z,shouldHideArrow:H,children:(0,o.jsx)(Oe.div,{"data-side":j,"data-align":V,...v,ref:E,style:{...v.style,animation:M?void 0:"none"}})})})}));Ti.displayName=ki;var Ni="PopperArrow",_i={top:"bottom",right:"left",bottom:"top",left:"right"},Di=s.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,i=Si(Ni,n),a=_i[i.placedSide];return(0,o.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,o.jsx)(hi,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Ai(e){return null!==e}Di.displayName=Ni;var Oi=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=0!==i.arrow?.centerOffset,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,u]=Li(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=o?c:`${d}px`,h=-s+"px"):"top"===l?(p=o?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=o?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=o?c:`${f}px`),{data:{x:p,y:h}}}});function Li(e){const[t,n="center"]=e.split("-");return[t,n]}var Ii=xi,Fi=wi,Mi=Ti,Ri=Di,Pi="rovingFocusGroup.onEntryFocus",ji={bubbles:!1,cancelable:!0},Vi="RovingFocusGroup",[Bi,Ui,zi]=Vn(Vi),[Hi,qi]=ye(Vi,[zi]),[$i,Wi]=Hi(Vi),Gi=s.forwardRef(((e,t)=>(0,o.jsx)(Bi.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(Bi.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(Ki,{...e,ref:t})})})));Gi.displayName=Vi;var Ki=s.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=s.useRef(null),m=ve(t,h),g=Un(a),[v=null,y]=Se({prop:l,defaultProp:u,onChange:c}),[b,x]=s.useState(!1),E=Ce(d),w=Ui(n),k=s.useRef(!1),[C,S]=s.useState(0);return s.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(Pi,E),()=>e.removeEventListener(Pi,E)}),[E]),(0,o.jsx)($i,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:v,onItemFocus:s.useCallback((e=>y(e)),[y]),onItemShiftTab:s.useCallback((()=>x(!0)),[]),onFocusableItemAdd:s.useCallback((()=>S((e=>e+1))),[]),onFocusableItemRemove:s.useCallback((()=>S((e=>e-1))),[]),children:(0,o.jsx)(Oe.div,{tabIndex:b||0===C?-1:0,"data-orientation":r,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,(()=>{k.current=!0})),onFocus:he(e.onFocus,(e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(Pi,ji);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));Zi([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}k.current=!1})),onBlur:he(e.onBlur,(()=>x(!1)))})})})),Yi="RovingFocusGroupItem",Qi=s.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...l}=e,u=ke(),c=a||u,d=Wi(Yi,n),f=d.currentTabStopId===c,p=Ui(n),{onFocusableItemAdd:h,onFocusableItemRemove:m}=d;return s.useEffect((()=>{if(r)return h(),()=>m()}),[r,h,m]),(0,o.jsx)(Bi.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:(0,o.jsx)(Oe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:he(e.onMouseDown,(e=>{r?d.onItemFocus(c):e.preventDefault()})),onFocus:he(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:he(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Xi[r]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=d.loop?(r=o+1,(n=i).map(((e,t)=>n[(r+t)%n.length]))):i.slice(o+1)}setTimeout((()=>Zi(i)))}var n,r}))})})}));Qi.displayName=Yi;var Xi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Zi(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Ji=Gi,eo=Qi,to=["Enter"," "],no=["ArrowUp","PageDown","End"],ro=["ArrowDown","PageUp","Home",...no],io={ltr:[...to,"ArrowRight"],rtl:[...to,"ArrowLeft"]},oo={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ao="Menu",[so,lo,uo]=Vn(ao),[co,fo]=ye(ao,[uo,vi,qi]),po=vi(),ho=qi(),[mo,go]=co(ao),[vo,yo]=co(ao),bo=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:l=!0}=e,u=po(t),[c,d]=s.useState(null),f=s.useRef(!1),p=Ce(a),h=Un(i);return s.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,o.jsx)(Ii,{...u,children:(0,o.jsx)(mo,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,o.jsx)(vo,{scope:t,onClose:s.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:h,modal:l,children:r})})})};bo.displayName=ao;var xo=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,i=po(n);return(0,o.jsx)(Fi,{...i,...r,ref:t})}));xo.displayName="MenuAnchor";var Eo="MenuPortal",[wo,ko]=co(Eo,{forceMount:void 0}),Co=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=go(Eo,t);return(0,o.jsx)(wo,{scope:t,forceMount:n,children:(0,o.jsx)(Qe,{present:n||a.open,children:(0,o.jsx)(Ye,{asChild:!0,container:i,children:r})})})};Co.displayName=Eo;var So="MenuContent",[To,No]=co(So),_o=s.forwardRef(((e,t)=>{const n=ko(So,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=go(So,e.__scopeMenu),s=yo(So,e.__scopeMenu);return(0,o.jsx)(so.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(Qe,{present:r||a.open,children:(0,o.jsx)(so.Slot,{scope:e.__scopeMenu,children:s.modal?(0,o.jsx)(Do,{...i,ref:t}):(0,o.jsx)(Ao,{...i,ref:t})})})})})),Do=s.forwardRef(((e,t)=>{const n=go(So,e.__scopeMenu),r=s.useRef(null),i=ve(t,r);return s.useEffect((()=>{const e=r.current;if(e)return Yt(e)}),[]),(0,o.jsx)(Oo,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),Ao=s.forwardRef(((e,t)=>{const n=go(So,e.__scopeMenu);return(0,o.jsx)(Oo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Oo=s.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...v}=e,y=go(So,n),b=yo(So,n),x=po(n),E=ho(n),w=lo(n),[k,C]=s.useState(null),S=s.useRef(null),T=ve(t,S,y.onContentChange),N=s.useRef(0),_=s.useRef(""),D=s.useRef(0),A=s.useRef(null),O=s.useRef("right"),L=s.useRef(0),I=g?Ht:s.Fragment,F=g?{as:Ne,allowPinchZoom:!0}:void 0;s.useEffect((()=>()=>window.clearTimeout(N.current)),[]),Je();const M=s.useCallback((e=>O.current===A.current?.side&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:r}=e;let i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,A.current?.area)),[]);return(0,o.jsx)(To,{scope:n,searchRef:_,onItemEnter:s.useCallback((e=>{M(e)&&e.preventDefault()}),[M]),onItemLeave:s.useCallback((e=>{M(e)||(S.current?.focus(),C(null))}),[M]),onTriggerLeave:s.useCallback((e=>{M(e)&&e.preventDefault()}),[M]),pointerGraceTimerRef:D,onPointerGraceIntentChange:s.useCallback((e=>{A.current=e}),[]),children:(0,o.jsx)(I,{...F,children:(0,o.jsx)(ze,{asChild:!0,trapped:i,onMountAutoFocus:he(a,(e=>{e.preventDefault(),S.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:l,children:(0,o.jsx)(Re,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,children:(0,o.jsx)(Ji,{asChild:!0,...E,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:C,onEntryFocus:he(c,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:(0,o.jsx)(Mi,{role:"menu","aria-orientation":"vertical","data-state":ia(y.open),"data-radix-menu-content":"",dir:b.dir,...x,...v,ref:T,style:{outline:"none",...v.style},onKeyDown:he(v.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{const t=_.current+e,n=w().filter((e=>!e.disabled)),r=document.activeElement,i=n.find((e=>e.ref.current===r))?.textValue,o=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,i=n?e.indexOf(n):-1;let o=(a=e,s=Math.max(i,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(o=o.filter((e=>e!==n)));const l=o.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return l!==n?l:void 0}(n.map((e=>e.textValue)),t,i),a=n.find((e=>e.textValue===o))?.ref.current;!function e(t){_.current=t,window.clearTimeout(N.current),""!==t&&(N.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))})(e.key));const i=S.current;if(e.target!==i)return;if(!ro.includes(e.key))return;e.preventDefault();const o=w().filter((e=>!e.disabled)).map((e=>e.ref.current));no.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(o)})),onBlur:he(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),_.current="")})),onPointerMove:he(e.onPointerMove,sa((e=>{const t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>L.current?"right":"left";O.current=t,L.current=e.clientX}})))})})})})})})}));_o.displayName=So;var Lo=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,o.jsx)(Oe.div,{role:"group",...r,ref:t})}));Lo.displayName="MenuGroup";var Io=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,o.jsx)(Oe.div,{...r,ref:t})}));Io.displayName="MenuLabel";var Fo="MenuItem",Mo="menu.itemSelect",Ro=s.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=s.useRef(null),l=yo(Fo,e.__scopeMenu),u=No(Fo,e.__scopeMenu),c=ve(t,a),d=s.useRef(!1);return(0,o.jsx)(Po,{...i,ref:c,disabled:n,onClick:he(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Mo,{bubbles:!0,cancelable:!0});e.addEventListener(Mo,(e=>r?.(e)),{once:!0}),Le(e,t),t.defaultPrevented?d.current=!1:l.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:he(e.onPointerUp,(e=>{d.current||e.currentTarget?.click()})),onKeyDown:he(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;n||t&&" "===e.key||to.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Ro.displayName=Fo;var Po=s.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,l=No(Fo,n),u=ho(n),c=s.useRef(null),d=ve(t,c),[f,p]=s.useState(!1),[h,m]=s.useState("");return s.useEffect((()=>{const e=c.current;e&&m((e.textContent??"").trim())}),[a.children]),(0,o.jsx)(so.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:(0,o.jsx)(eo,{asChild:!0,...u,focusable:!r,children:(0,o.jsx)(Oe.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:he(e.onPointerMove,sa((e=>{r?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))}))),onPointerLeave:he(e.onPointerLeave,sa((e=>l.onItemLeave(e)))),onFocus:he(e.onFocus,(()=>p(!0))),onBlur:he(e.onBlur,(()=>p(!1)))})})})})),jo=s.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return(0,o.jsx)(Wo,{scope:e.__scopeMenu,checked:n,children:(0,o.jsx)(Ro,{role:"menuitemcheckbox","aria-checked":oa(n)?"mixed":n,...i,ref:t,"data-state":aa(n),onSelect:he(i.onSelect,(()=>r?.(!!oa(n)||!n)),{checkForDefaultPrevented:!1})})})}));jo.displayName="MenuCheckboxItem";var Vo="MenuRadioGroup",[Bo,Uo]=co(Vo,{value:void 0,onValueChange:()=>{}}),zo=s.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...i}=e,a=Ce(r);return(0,o.jsx)(Bo,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,o.jsx)(Lo,{...i,ref:t})})}));zo.displayName=Vo;var Ho="MenuRadioItem",qo=s.forwardRef(((e,t)=>{const{value:n,...r}=e,i=Uo(Ho,e.__scopeMenu),a=n===i.value;return(0,o.jsx)(Wo,{scope:e.__scopeMenu,checked:a,children:(0,o.jsx)(Ro,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":aa(a),onSelect:he(r.onSelect,(()=>i.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));qo.displayName=Ho;var $o="MenuItemIndicator",[Wo,Go]=co($o,{checked:!1}),Ko=s.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=Go($o,n);return(0,o.jsx)(Qe,{present:r||oa(a.checked)||!0===a.checked,children:(0,o.jsx)(Oe.span,{...i,ref:t,"data-state":aa(a.checked)})})}));Ko.displayName=$o;var Yo=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,o.jsx)(Oe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));Yo.displayName="MenuSeparator";var Qo=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,i=po(n);return(0,o.jsx)(Ri,{...i,...r,ref:t})}));Qo.displayName="MenuArrow";var Xo="MenuSub",[Zo,Jo]=co(Xo),ea="MenuSubTrigger",ta=s.forwardRef(((e,t)=>{const n=go(ea,e.__scopeMenu),r=yo(ea,e.__scopeMenu),i=Jo(ea,e.__scopeMenu),a=No(ea,e.__scopeMenu),l=s.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=a,d={__scopeMenu:e.__scopeMenu},f=s.useCallback((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return s.useEffect((()=>f),[f]),s.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),c(null)}}),[u,c]),(0,o.jsx)(xo,{asChild:!0,...d,children:(0,o.jsx)(Po,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":ia(n.open),...e,ref:ge(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,sa((t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||l.current||(a.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{n.onOpenChange(!0),f()}),100))}))),onPointerLeave:he(e.onPointerLeave,sa((e=>{f();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,i="right"===r,o=i?-5:5,s=t[i?"left":"right"],l=t[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:he(e.onKeyDown,(t=>{const i=""!==a.searchRef.current;e.disabled||i&&" "===t.key||io[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));ta.displayName=ea;var na="MenuSubContent",ra=s.forwardRef(((e,t)=>{const n=ko(So,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=go(So,e.__scopeMenu),l=yo(So,e.__scopeMenu),u=Jo(na,e.__scopeMenu),c=s.useRef(null),d=ve(t,c);return(0,o.jsx)(so.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(Qe,{present:r||a.open,children:(0,o.jsx)(so.Slot,{scope:e.__scopeMenu,children:(0,o.jsx)(Oo,{id:u.contentId,"aria-labelledby":u.triggerId,...i,ref:d,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:he(e.onFocusOutside,(e=>{e.target!==u.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:he(e.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:he(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=oo[l.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())}))})})})})}));function ia(e){return e?"open":"closed"}function oa(e){return"indeterminate"===e}function aa(e){return oa(e)?"indeterminate":e?"checked":"unchecked"}function sa(e){return t=>"mouse"===t.pointerType?e(t):void 0}ra.displayName=na;var la=bo,ua=xo,ca=Co,da=_o,fa=Lo,pa=Io,ha=Ro,ma=jo,ga=zo,va=qo,ya=Ko,ba=Yo,xa=Qo,Ea=ta,wa=ra,ka="DropdownMenu",[Ca,Sa]=ye(ka,[fo]),Ta=fo(),[Na,_a]=Ca(ka),Da=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,c=Ta(t),d=s.useRef(null),[f=!1,p]=Se({prop:i,defaultProp:a,onChange:l});return(0,o.jsx)(Na,{scope:t,triggerId:ke(),triggerRef:d,contentId:ke(),open:f,onOpenChange:p,onOpenToggle:s.useCallback((()=>p((e=>!e))),[p]),modal:u,children:(0,o.jsx)(la,{...c,open:f,onOpenChange:p,dir:r,modal:u,children:n})})};Da.displayName=ka;var Aa="DropdownMenuTrigger",Oa=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=_a(Aa,n),s=Ta(n);return(0,o.jsx)(ua,{asChild:!0,...s,children:(0,o.jsx)(Oe.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:ge(t,a.triggerRef),onPointerDown:he(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:he(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Oa.displayName=Aa;var La=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ta(t);return(0,o.jsx)(ca,{...r,...n})};La.displayName="DropdownMenuPortal";var Ia="DropdownMenuContent",Fa=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_a(Ia,n),a=Ta(n),l=s.useRef(!1);return(0,o.jsx)(da,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,(e=>{l.current||i.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:he(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(l.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));Fa.displayName=Ia,s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(fa,{...i,...r,ref:t})})).displayName="DropdownMenuGroup",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(pa,{...i,...r,ref:t})})).displayName="DropdownMenuLabel";var Ma=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(ha,{...i,...r,ref:t})}));Ma.displayName="DropdownMenuItem",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(ma,{...i,...r,ref:t})})).displayName="DropdownMenuCheckboxItem",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(ga,{...i,...r,ref:t})})).displayName="DropdownMenuRadioGroup",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(va,{...i,...r,ref:t})})).displayName="DropdownMenuRadioItem",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(ya,{...i,...r,ref:t})})).displayName="DropdownMenuItemIndicator",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(ba,{...i,...r,ref:t})})).displayName="DropdownMenuSeparator",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(xa,{...i,...r,ref:t})})).displayName="DropdownMenuArrow",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(Ea,{...i,...r,ref:t})})).displayName="DropdownMenuSubTrigger",s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Ta(n);return(0,o.jsx)(wa,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})})).displayName="DropdownMenuSubContent";var Ra=Da,Pa=Oa,ja=La,Va=Fa,Ba=Ma;const Ua={};function za(e,t){"string"!=typeof t&&(t=za.defaultChars);const n=function(e){let t=Ua[e];if(t)return t;t=Ua[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let t="";for(let r=0,i=e.length;r<i;r+=3){const o=parseInt(e.slice(r+1,r+3),16);if(o<128)t+=n[o];else{if(192==(224&o)&&r+3<i){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=o<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&o)&&r+6<i){const n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&i)){const e=o<<12&61440|n<<6&4032|63&i;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&o)&&r+9<i){const n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),a=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&i)&&128==(192&a)){let e=o<<18&1835008|n<<12&258048|i<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t}))}za.defaultChars=";/?:@&=+$,#",za.componentChars="";const Ha=za,qa={};function $a(e,t,n){"string"!=typeof t&&(n=t,t=$a.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=qa[e];if(t)return t;t=qa[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let i="";for(let t=0,o=e.length;t<o;t++){const a=e.charCodeAt(t);if(n&&37===a&&t+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))i+=e.slice(t,t+3),t+=2;else if(a<128)i+=r[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<o){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[t])}return i}$a.defaultChars=";/?:@&=+$,-_.!~*'()#",$a.componentChars="-_.!~*'()";const Wa=$a;function Ga(e){let 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||"",t+=e.hash||"",t}function Ka(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Ya=/^([a-z0-9.+-]+:)/i,Qa=/:[0-9]*$/,Xa=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Za=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Ja=["'"].concat(Za),es=["%","/","?",";","#"].concat(Ja),ts=["/","?","#"],ns=/^[+a-z0-9A-Z_-]{0,63}$/,rs=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,is={javascript:!0,"javascript:":!0},os={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};Ka.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){const e=Xa.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=Ya.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2),!i||a&&is[a]||(o=o.substr(2),this.slashes=!0)),!is[a]&&(i||a&&!os[a])){let e,t,n=-1;for(let e=0;e<ts.length;e++)r=o.indexOf(ts[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?o.lastIndexOf("@"):o.lastIndexOf("@",n),-1!==t&&(e=o.slice(0,t),o=o.slice(t+1),this.auth=e),n=-1;for(let e=0;e<es.length;e++)r=o.indexOf(es[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=o.length),":"===o[n-1]&&n--;const i=o.slice(0,n);o=o.slice(n),this.parseHost(i),this.hostname=this.hostname||"";const a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(ns)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(ns)){const r=e.slice(0,t),i=e.slice(t+1),a=n.match(rs);a&&(r.push(a[1]),i.unshift(a[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");-1!==s&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),os[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ka.prototype.parseHost=function(e){let t=Qa.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const as=function(e,t){if(e&&e instanceof Ka)return e;const n=new Ka;return n.parse(e,t),n},ss=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\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-\u2E4F\u2E52-\u2E5D\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[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ls=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,us=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cs=/[\0-\x1F\x7F-\x9F]/,ds=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,fs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ps=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),hs=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var ms;const gs=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),vs=null!==(ms=String.fromCodePoint)&&void 0!==ms?ms:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var ys,bs,xs,Es,ws,ks,Cs,Ss;function Ts(e){return e>=ys.ZERO&&e<=ys.NINE}(bs=ys||(ys={}))[bs.NUM=35]="NUM",bs[bs.SEMI=59]="SEMI",bs[bs.EQUALS=61]="EQUALS",bs[bs.ZERO=48]="ZERO",bs[bs.NINE=57]="NINE",bs[bs.LOWER_A=97]="LOWER_A",bs[bs.LOWER_F=102]="LOWER_F",bs[bs.LOWER_X=120]="LOWER_X",bs[bs.LOWER_Z=122]="LOWER_Z",bs[bs.UPPER_A=65]="UPPER_A",bs[bs.UPPER_F=70]="UPPER_F",bs[bs.UPPER_Z=90]="UPPER_Z",(Es=xs||(xs={}))[Es.VALUE_LENGTH=49152]="VALUE_LENGTH",Es[Es.BRANCH_LENGTH=16256]="BRANCH_LENGTH",Es[Es.JUMP_TABLE=127]="JUMP_TABLE",(ks=ws||(ws={}))[ks.EntityStart=0]="EntityStart",ks[ks.NumericStart=1]="NumericStart",ks[ks.NumericDecimal=2]="NumericDecimal",ks[ks.NumericHex=3]="NumericHex",ks[ks.NamedEntity=4]="NamedEntity",(Ss=Cs||(Cs={}))[Ss.Legacy=0]="Legacy",Ss[Ss.Strict=1]="Strict",Ss[Ss.Attribute=2]="Attribute";class Ns{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ws.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cs.Strict}startEntity(e){this.decodeMode=e,this.state=ws.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ws.EntityStart:return e.charCodeAt(t)===ys.NUM?(this.state=ws.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ws.NamedEntity,this.stateNamedEntity(e,t));case ws.NumericStart:return this.stateNumericStart(e,t);case ws.NumericDecimal:return this.stateNumericDecimal(e,t);case ws.NumericHex:return this.stateNumericHex(e,t);case ws.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===ys.LOWER_X?(this.state=ws.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ws.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!(Ts(i)||(r=i,r>=ys.UPPER_A&&r<=ys.UPPER_F||r>=ys.LOWER_A&&r<=ys.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Ts(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ys.SEMI)this.consumed+=1;else if(this.decodeMode===Cs.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=gs.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==ys.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&xs.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=Ds(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===Cs.Attribute&&(0===i||((o=a)===ys.EQUALS||function(e){return e>=ys.UPPER_A&&e<=ys.UPPER_Z||e>=ys.LOWER_A&&e<=ys.LOWER_Z||Ts(e)}(o)))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&xs.VALUE_LENGTH)>>14,0!==i){if(a===ys.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Cs.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var o;return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&xs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~xs.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ws.NamedEntity:return 0===this.result||this.decodeMode===Cs.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case ws.NumericDecimal:return this.emitNumericEntity(0,2);case ws.NumericHex:return this.emitNumericEntity(0,3);case ws.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ws.EntityStart:return 0}}}function _s(e){let t="";const n=new Ns(e,(e=>t+=vs(e)));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}const a=t+e.slice(i);return t="",a}}function Ds(e,t,n,r){const i=(t&xs.BRANCH_LENGTH)>>7,o=t&xs.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return-1}const As=_s(ps);function Os(e,t=Cs.Legacy){return As(e,t)}function Ls(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}_s(hs),new Map(Ls([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(Ls([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Ls([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(Ls([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));const Is=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function Fs(e,t){return function(n){let r,i=0,o="";for(;r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}var Ms,Rs,Ps,js;function Vs(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}String.prototype.codePointAt,Fs(/[&<>'"]/g,Is),Fs(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Fs(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),(Rs=Ms||(Ms={}))[Rs.XML=0]="XML",Rs[Rs.HTML=1]="HTML",(js=Ps||(Ps={}))[js.UTF8=0]="UTF8",js[js.ASCII=1]="ASCII",js[js.Extensive=2]="Extensive",js[js.Attribute=3]="Attribute",js[js.Text=4]="Text";const Bs=Object.prototype.hasOwnProperty;function Us(e,t){return Bs.call(e,t)}function zs(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 Hs(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function qs(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 $s(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Ws=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Gs=new RegExp(Ws.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Ks=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ys(e){return e.indexOf("\\")<0?e:e.replace(Ws,"$1")}function Qs(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Gs,(function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&Ks.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return qs(n)?$s(n):e}const n=Os(e);return n!==e?n:e}(e,n)}))}const Xs=/[&<>"]/,Zs=/[&<>"]/g,Js={"&":"&","<":"<",">":">",'"':"""};function el(e){return Js[e]}function tl(e){return Xs.test(e)?e.replace(Zs,el):e}const nl=/[.?*+^$[\]\\(){}|-]/g;function rl(e){return e.replace(nl,"\\$&")}function il(e){switch(e){case 9:case 32:return!0}return!1}function ol(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}function al(e){return ss.test(e)||ls.test(e)}function sl(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 ll(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const ul={mdurl:e,ucmicro:t};function cl(e,t,n){let r,i,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),93===o&&(r--,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}let u=-1;return i&&(u=e.pos),e.pos=l,u}function dl(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<n;){if(r=e.charCodeAt(i),10===r)return o;if(60===r)return o;if(62===r)return o.pos=i+1,o.str=Qs(e.slice(t+1,i)),o.ok=!0,o;92===r&&i+1<n?i+=2:i++}return o}let a=0;for(;i<n&&(r=e.charCodeAt(i),32!==r)&&!(r<32||127===r);)if(92===r&&i+1<n){if(32===e.charCodeAt(i+1))break;i+=2}else{if(40===r&&(a++,a>32))return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=Qs(e.slice(t,i)),o.pos=i,o.ok=!0),o}function fl(e,t,n,r){let i,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return a;t++,o++,40===r&&(r=41),a.marker=r}for(;o<n;){if(i=e.charCodeAt(o),i===a.marker)return a.pos=o+1,a.str+=Qs(e.slice(t,o)),a.ok=!0,a;if(40===i&&41===a.marker)return a;92===i&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=Qs(e.slice(t,o)),a}const pl={};function hl(){this.rules=zs({},pl)}pl.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+tl(o.content)+"</code>"},pl.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+tl(e[t].content)+"</code></pre>\n"},pl.fence=function(e,t,n,r,i){const o=e[t],a=o.info?Qs(o.info).trim():"";let s,l="",u="";if(a){const e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,u)||tl(o.content),0===s.indexOf("<pre"))return s+"\n";if(a){const e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${s}</code></pre>\n`}return`<pre><code${i.renderAttrs(o)}>${s}</code></pre>\n`},pl.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},pl.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},pl.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},pl.text=function(e,t){return tl(e[t].content)},pl.html_block=function(e,t){return e[t].content},pl.html_inline=function(e,t){return e[t].content},hl.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+tl(e.attrs[t][0])+'="'+tl(e.attrs[t][1])+'"';return r},hl.prototype.renderToken=function(e,t,n){const r=e[t];let i="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===r.nesting?"</":"<")+r.tag,i+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(o=!1)}return i+=o?">\n":">",i},hl.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const a=e[o].type;void 0!==i[a]?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},hl.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},hl.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const a=e[o].type;"inline"===a?r+=this.renderInline(e[o].children,t,n):void 0!==i[a]?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};const ml=hl;function gl(){this.__rules__=[],this.__cache__=null}gl.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},gl.prototype.__compile__=function(){const 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))}))}))},gl.prototype.at=function(e,t,n){const 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},gl.prototype.before=function(e,t,n,r){const 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},gl.prototype.after=function(e,t,n,r){const 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},gl.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},gl.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const 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},gl.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},gl.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const 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},gl.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const vl=gl;function yl(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}yl.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},yl.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},yl.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},yl.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},yl.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const bl=yl;function xl(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}xl.prototype.Token=bl;const El=xl,wl=/\r\n?|\n/g,kl=/\0/g;function Cl(e){return/^<\/a\s*>/i.test(e)}const Sl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Tl=/\((c|tm|r)\)/i,Nl=/\((c|tm|r)\)/gi,_l={c:"©",r:"®",tm:"™"};function Dl(e,t){return _l[t.toLowerCase()]}function Al(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(Nl,Dl)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function Ol(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Sl.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&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const Ll=/['"]/,Il=/['"]/g;function Fl(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Ml(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const o=e[i],a=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==o.type)continue;let s=o.content,l=0,u=s.length;e:for(;l<u;){Il.lastIndex=l;const c=Il.exec(s);if(!c)break;let d=!0,f=!0;l=c.index+1;const p="'"===c[0];let h=32;if(c.index-1>=0)h=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<u)m=s.charCodeAt(l);else for(n=i+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const g=sl(h)||al(String.fromCharCode(h)),v=sl(m)||al(String.fromCharCode(m)),y=ol(h),b=ol(m);if(b?d=!1:v&&(y||g||(d=!1)),y?f=!1:g&&(b||v||(f=!1)),34===m&&'"'===c[0]&&h>=48&&h<=57&&(f=d=!1),d&&f&&(d=g,f=v),d||f){if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<a)break;if(d.single===p&&r[n].level===a){let a,f;d=r[n],p?(a=t.md.options.quotes[2],f=t.md.options.quotes[3]):(a=t.md.options.quotes[0],f=t.md.options.quotes[1]),o.content=Fl(o.content,c.index,f),e[d.token].content=Fl(e[d.token].content,d.pos,a),l+=f.length-1,d.token===i&&(l+=a.length-1),s=o.content,u=s.length,r.length=n;continue e}}d?r.push({token:i,pos:c.index,single:p,level:a}):f&&p&&(o.content=Fl(o.content,c.index,"’"))}else p&&(o.content=Fl(o.content,c.index,"’"))}}}const Rl=[["normalize",function(e){let t;t=e.src.replace(wl,"\n"),t=t.replace(kl,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.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)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;var n;if(e.md.options.linkify)for(let r=0,i=t.length;r<i;r++){if("inline"!==t[r].type||!e.md.linkify.pretest(t[r].content))continue;let i=t[r].children,o=0;for(let a=i.length-1;a>=0;a--){const s=i[a];if("link_close"!==s.type){if("html_inline"===s.type&&(n=s.content,/^<a[>\s]/i.test(n)&&o>0&&o--,Cl(s.content)&&o++),!(o>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const n=s.content;let o=e.md.linkify.match(n);const l=[];let u=s.level,c=0;o.length>0&&0===o[0].index&&a>0&&"text_special"===i[a-1].type&&(o=o.slice(1));for(let t=0;t<o.length;t++){const r=o[t].url,i=e.md.normalizeLink(r);if(!e.md.validateLink(i))continue;let a=o[t].text;a=o[t].schema?"mailto:"!==o[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const s=o[t].index;if(s>c){const t=new e.Token("text","",0);t.content=n.slice(c,s),t.level=u,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",i]],d.level=u++,d.markup="linkify",d.info="auto",l.push(d);const f=new e.Token("text","",0);f.content=a,f.level=u,l.push(f);const p=new e.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",l.push(p),c=o[t].lastIndex}if(c<n.length){const t=new e.Token("text","",0);t.content=n.slice(c),t.level=u,l.push(t)}t[r].children=i=Hs(i,a,l)}}else for(a--;i[a].level!==s.level&&"link_open"!==i[a].type;)a--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Tl.test(e.tokens[t].content)&&Al(e.tokens[t].children),Sl.test(e.tokens[t].content)&&Ol(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Ll.test(e.tokens[t].content)&&Ml(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,i=r.length;for(let e=0;e<i;e++){if("inline"!==r[e].type)continue;const i=r[e].children,o=i.length;for(t=0;t<o;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=n=0;t<o;t++)"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)}}]];function Pl(){this.ruler=new vl;for(let e=0;e<Rl.length;e++)this.ruler.push(Rl[e][0],Rl[e][1])}Pl.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},Pl.prototype.State=El;const jl=Pl;function Vl(e,t,n,r){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;const i=this.src;for(let e=0,t=0,n=0,r=0,o=i.length,a=!1;t<o;t++){const s=i.charCodeAt(t);if(!a){if(il(s)){n++,9===s?r+=4-r%4:r++;continue}a=!0}10!==s&&t!==o-1||(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),a=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Vl.prototype.push=function(e,t,n){const r=new bl(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Vl.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Vl.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Vl.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&il(this.src.charCodeAt(e));e++);return e},Vl.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!il(this.src.charCodeAt(--e)))return e+1;return e},Vl.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},Vl.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},Vl.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,a=e;a<t;a++,o++){let e=0;const s=this.bMarks[a];let l,u=s;for(l=a+1<t||r?this.eMarks[a]+1:this.eMarks[a];u<l&&e<n;){const t=this.src.charCodeAt(u);if(il(t))9===t?e+=4-(e+this.bsCount[a])%4:e++;else{if(!(u-s<this.tShift[a]))break;e++}u++}i[o]=e>n?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return i.join("")},Vl.prototype.Token=bl;const Bl=Vl;function Ul(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function zl(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)124===i&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=92===i,r++,i=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function Hl(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);return 42!==i&&45!==i&&43!==i||r<n&&!il(e.src.charCodeAt(r))?-1:r}function ql(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(i-n>=10)return-1}return i<r&&(o=e.src.charCodeAt(i),!il(o))?-1:i}const $l="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Wl="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Gl=new RegExp("^(?:"+$l+"|"+Wl+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Kl=new RegExp("^(?:"+$l+"|"+Wl+")"),Yl=[[/^<(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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Kl.source+"\\s*$"),/^$/,!1]],Ql=[["table",function(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a)return!1;if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s&&!il(s))return!1;if(45===a&&il(s))return!1;for(;o<e.eMarks[i];){const t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!il(t))return!1;o++}let l=Ul(e,t+1),u=l.split("|");const c=[];for(let e=0;e<u.length;e++){const t=u[e].trim();if(!t){if(0===e||e===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?c.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?c.push("left"):c.push("")}if(l=Ul(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;u=zl(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const d=u.length;if(0===d||d!==c.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),h=[t,0];e.push("table_open","table",1).map=h,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<u.length;t++){const n=e.push("th_open","th",1);c[t]&&(n.attrs=[["style","text-align:"+c[t]]]);const r=e.push("inline","",0);r.content=u[t].trim(),r.children=[],e.push("th_close","th",-1)}let m;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,o=p.length;t<o;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r)break;if(l=Ul(e,i).trim(),!l)break;if(e.sCount[i]-e.blkIndent>=4)break;if(u=zl(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),g+=d-u.length,g>65536)break;i===t+2&&(e.push("tbody_open","tbody",1).map=m=[t+2,0]),e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);c[t]&&(n.attrs=[["style","text-align:"+c[t]]]);const r=e.push("inline","",0);r.content=u[t]?u[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return m&&(e.push("tbody_close","tbody",-1),m[1]=i),e.push("table_close","table",-1),h[1]=i,e.parentType=f,e.line=i,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,i=r}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>o)return!1;const a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let s=i;i=e.skipChars(i,a);let l=i-s;if(l<3)return!1;const u=e.src.slice(s,i),c=e.src.slice(i,o);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;!(d++,d>=n||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,a),i-s<l||(i=e.skipSpaces(i),i<o)))){f=!0;break}l=e.sCount[t],e.line=d+(f?1:0);const p=e.push("fence","code",0);return p.info=c,p.content=e.getLines(t+1,d,l,!0),p.markup=u,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const s=[],l=[],u=[],c=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p,h=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(i=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],i>=o)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[p]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[p]),e.bMarks[p]=i;i<o;){const t=e.src.charCodeAt(i);if(!il(t))break;9===t?a+=4-(a+e.bsCount[p]+(n?1:0))%4:a++,i++}h=i>=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),u.push(e.sCount[p]),e.sCount[p]=a-r,c.push(e.tShift[p]),e.tShift[p]=i-e.bMarks[p];continue}if(h)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,p,n,!0)){r=!0;break}if(r){e.lineMax=p,0!==e.blkIndent&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),c.push(e.tShift[p]),u.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),c.push(e.tShift[p]),u.push(e.sCount[p]),e.sCount[p]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const v=[t,0];g.map=v,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=f,v[1]=e.line;for(let n=0;n<c.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=c[n],e.sCount[n+t]=u[n],e.bsCount[n+t]=l[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;o<i;){const t=e.src.charCodeAt(o++);if(t!==a&&!il(t))return!1;t===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let i,o,a,s,l=t,u=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let c,d,f,p=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(f=ql(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(a,f-1)),p&&1!==d)return!1}else{if(!((f=Hl(e,l))>=0))return!1;c=!1}if(p&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(f-1),m=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(h);let v=!1;const y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){o=f,i=e.eMarks[l];const t=e.sCount[l]+f-(e.bMarks[l]+e.tShift[l]);let r=t;for(;o<i;){const t=e.src.charCodeAt(o);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}o++}const d=o;let p;p=d>=i?1:r-t,p>4&&(p=1);const m=t+p;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const g=[l,0];s.map=g,c&&(s.info=e.src.slice(a,f-1));const b=e.tight,x=e.tShift[l],E=e.sCount[l],w=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!v||(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[l]=x,e.sCount[l]=E,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let k=!1;for(let t=0,r=y.length;t<r;t++)if(y[t](e,l,n,!0)){k=!0;break}if(k)break;if(c){if(f=ql(e,l),f<0)break;a=e.bMarks[l]+e.tShift[l]}else if(f=Hl(e,l),f<0)break;if(h!==e.src.charCodeAt(f-1))break}return s=c?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(h),g[1]=l,e.line=l,e.parentType=b,u&&function(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,t,n,!0)){o=!0;break}if(e.parentType=i,o)return null}const i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(i,o+1)}let l=e.src.slice(i,o+1);o=l.length;let u=-1;for(i=1;i<o;i++){const e=l.charCodeAt(i);if(91===e)return!1;if(93===e){u=i;break}if(10===e){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}else if(92===e&&(i++,i<o&&10===l.charCodeAt(i))){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}}if(u<0||58!==l.charCodeAt(u+1))return!1;for(i=u+2;i<o;i++){const e=l.charCodeAt(i);if(10===e){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}else if(!il(e))break}const c=e.md.helpers.parseLinkDestination(l,i,o);if(!c.ok)return!1;const d=e.md.normalizeLink(c.str);if(!e.md.validateLink(d))return!1;i=c.pos;const f=i,p=a,h=i;for(;i<o;i++){const e=l.charCodeAt(i);if(10===e){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}else if(!il(e))break}let m,g=e.md.helpers.parseLinkTitle(l,i,o);for(;g.can_continue;){const t=s(a);if(null===t)break;l+=t,i=o,o=l.length,a++,g=e.md.helpers.parseLinkTitle(l,i,o,g)}for(i<o&&h!==i&&g.ok?(m=g.str,i=g.pos):(m="",i=f,a=p);i<o&&il(l.charCodeAt(i));)i++;if(i<o&&10!==l.charCodeAt(i)&&m)for(m="",i=f,a=p;i<o&&il(l.charCodeAt(i));)i++;if(i<o&&10!==l.charCodeAt(i))return!1;const v=ll(l.slice(1,u));return!!v&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:m,href:d}),e.line=a),!0)}],["html_block",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,o),s=0;for(;s<Yl.length&&!Yl[s][0].test(a);s++);if(s===Yl.length)return!1;if(r)return Yl[s][2];let l=t+1;if(!Yl[s][1].test(a))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(i,o),Yl[s][1].test(a)){0!==a.length&&l++;break}e.line=l;const u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);35===a&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!il(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const l=e.skipCharsBack(o,35,i);l>i&&il(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o,a=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(45===o||61===o)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=61===o?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const u=e.push("heading_open","h"+String(a),1);u.markup=String.fromCharCode(o),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=l,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(o),e.parentType=i,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,o,n,!0)){t=!0;break}if(t)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];const s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function Xl(){this.ruler=new vl;for(let e=0;e<Ql.length;e++)this.ruler.push(Ql[e][0],Ql[e][1],{alt:(Ql[e][2]||[]).slice()})}Xl.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=o){e.line=n;break}const t=e.line;let l=!1;for(let o=0;o<i;o++)if(l=r[o](e,a,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Xl.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Xl.prototype.State=Bl;const Zl=Xl;function Jl(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,this.linkLevel=0}Jl.prototype.pushPending=function(){const e=new bl("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Jl.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new bl(e,t,n);let 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},Jl.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=sl(i)||al(String.fromCharCode(i)),u=sl(s)||al(String.fromCharCode(s)),c=ol(i),d=ol(s),f=!d&&(!u||c||l),p=!c&&(!l||d||u);return{can_open:f&&(t||!p||l),can_close:p&&(t||!f||u),length:a}},Jl.prototype.Token=bl;const eu=Jl;function tu(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}}const nu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,ru=[];for(let e=0;e<256;e++)ru.push(0);function iu(e,t){let n;const r=[],i=t.length;for(let o=0;o<i;o++){const i=t[o];if(126!==i.marker)continue;if(-1===i.end)continue;const a=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&r.push(a.token-1)}for(;r.length;){const t=r.pop();let i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){ru[e.charCodeAt(0)]=1}));const ou={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let t=0;t<o;t+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;iu(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&iu(e,t[r].delimiters)}};function au(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const i=t[r.end],o=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),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const su={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const i=e.scanDelims(e.pos,42===r);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;au(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&au(e,t[r].delimiters)}},lu=/^([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])?)*)$/,uu=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,cu=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,du=/^&([a-z][a-z0-9]{1,31});/i;function fu(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;a<n;a++){const n=e[a];if(o.push(0),e[r].marker===n.marker&&i===n.token-1||(r=a),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[n.marker][(n.open?3:0)+n.length%3];let l=r-o[r]-1,u=l;for(;l>s;l-=o[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+r,o[l]=r,n.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}const pu=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!tu(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(nu);if(!r)return!1;const i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let a=o.url;if(a.length<=i.length)return!1;a=a.replace(/\*+$/,"");const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),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(n++;n<i&&il(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),il(i));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const t=e.push("text_special","",0);i<256&&0!==ru[i]?t.content=o:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const i=e.posMax;for(;n<i&&96===e.src.charCodeAt(n);)n++;const o=e.src.slice(r,n),a=o.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=o),e.pos+=a,!0;let s,l=n;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<i&&96===e.src.charCodeAt(l);)l++;const r=l-s;if(r===a){if(!t){const t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=s}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=a,!0}],["strikethrough",ou.tokenize],["emphasis",su.tokenize],["link",function(e,t){let n,r,i,o,a="",s="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const c=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let h=p+1;if(h<d&&40===e.src.charCodeAt(h)){for(u=!1,h++;h<d&&(n=e.src.charCodeAt(h),il(n)||10===n);h++);if(h>=d)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",l=h;h<d&&(n=e.src.charCodeAt(h),il(n)||10===n);h++);if(i=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<d&&l!==h&&i.ok)for(s=i.str,h=i.pos;h<d&&(n=e.src.charCodeAt(h),il(n)||10===n);h++);}(h>=d||41!==e.src.charCodeAt(h))&&(u=!0),h++}if(u){if(void 0===e.env.references)return!1;if(h<d&&91===e.src.charCodeAt(h)?(l=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?r=e.src.slice(l,h++):h=p+1):h=p+1,r||(r=e.src.slice(f,p)),o=e.env.references[ll(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=f,e.posMax=p;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=d,!0}],["image",function(e,t){let n,r,i,o,a,s,l,u,c="";const d=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o<f&&40===e.src.charCodeAt(o)){for(o++;o<f&&(n=e.src.charCodeAt(o),il(n)||10===n);o++);if(o>=f)return!1;for(u=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),u=o;o<f&&(n=e.src.charCodeAt(o),il(n)||10===n);o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<f&&u!==o&&s.ok)for(l=s.str,o=s.pos;o<f&&(n=e.src.charCodeAt(o),il(n)||10===n);o++);else l="";if(o>=f||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o<f&&91===e.src.charCodeAt(o)?(u=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(u,o++):o=h+1):o=h+1,i||(i=e.src.slice(p,h)),a=e.env.references[ll(i)],!a)return e.pos=d,!1;c=a.href,l=a.title}if(!t){r=e.src.slice(p,h);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=f,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const o=e.src.slice(r+1,n);if(uu.test(o)){const n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(lu.test(o)){const n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){const t=32|e;return t>=97&&t<=122}(i))return!1;const o=e.src.slice(r).match(Gl);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=o[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(cu);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=qs(t)?$s(t):$s(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(du);if(r){const n=Os(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],hu=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;fu(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&fu(t[e].delimiters)}],["strikethrough",ou.postProcess],["emphasis",su.postProcess],["fragments_join",function(e){let t,n,r=0;const 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)}]];function mu(){this.ruler=new vl;for(let e=0;e<pu.length;e++)this.ruler.push(pu[e][0],pu[e][1]);this.ruler2=new vl;for(let e=0;e<hu.length;e++)this.ruler2.push(hu[e][0],hu[e][1])}mu.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(void 0!==o[t])return void(e.pos=o[t]);let a=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,a=n[i](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},mu.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let a=!1;if(e.level<i)for(let r=0;r<n;r++)if(a=t[r](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},mu.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let e=0;e<a;e++)o[e](i)},mu.prototype.State=eu;const gu=mu;function vu(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function yu(e){return Object.prototype.toString.call(e)}function bu(e){return"[object Function]"===yu(e)}function xu(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Eu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},wu={"http:":{validate:function(e,t,n){const 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){const 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){const 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}}},ku="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Cu(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=us.source,t.src_Cc=cs.source,t.src_Z=fs.source,t.src_P=ss.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+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\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["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+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}(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("|"),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");const i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===yu(n))return"[object RegExp]"!==yu(n.validate)?bu(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(bu(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===yu(e)}(n)?o(t,n):i.push(t)})),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)}};const a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(xu).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),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 Su(e,t){const 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 Tu(e,t){const n=new Su(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Nu(e,t){if(!(this instanceof Nu))return new Nu(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||Eu.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=vu({},Eu,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=vu({},wu,e),this.__compiled__={},this.__tlds__=ku,this.__tlds_replaced__=!1,this.re={},Cu(this)}Nu.prototype.add=function(e,t){return this.__schemas__[e]=t,Cu(this),this},Nu.prototype.set=function(e){return this.__opts__=vu(this.__opts__,e),this},Nu.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,a,s,l,u;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){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:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<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:"]&&(u=e.indexOf("@"),u>=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},Nu.prototype.pretest=function(e){return this.re.pretest.test(e)},Nu.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Nu.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Tu(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Tu(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Nu.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Tu(this,0)):null},Nu.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(),Cu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Cu(this),this)},Nu.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Nu.prototype.onCompile=function(){};const _u=Nu,Du=2147483647,Au=36,Ou=/^xn--/,Lu=/[^\0-\x7F]/,Iu=/[\x2E\u3002\uFF0E\uFF61]/g,Fu={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mu=Math.floor,Ru=String.fromCharCode;function Pu(e){throw new RangeError(Fu[e])}function ju(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(Iu,".")).split("."),t).join(".");return r+i}function Vu(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 Bu=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Uu=function(e,t,n){let r=0;for(e=n?Mu(e/700):e>>1,e+=Mu(e/t);e>455;r+=Au)e=Mu(e/35);return Mu(r+36*e/(e+38))},zu=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&&Pu("not-basic"),t.push(e.charCodeAt(n));for(let l=a>0?a+1:0;l<n;){const a=r;for(let t=1,i=Au;;i+=Au){l>=n&&Pu("invalid-input");const a=(s=e.charCodeAt(l++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:Au;a>=Au&&Pu("invalid-input"),a>Mu((Du-r)/t)&&Pu("overflow"),r+=a*t;const u=i<=o?1:i>=o+26?26:i-o;if(a<u)break;const c=Au-u;t>Mu(Du/c)&&Pu("overflow"),t*=c}const u=t.length+1;o=Uu(r-a,u,0==a),Mu(r/u)>Du-i&&Pu("overflow"),i+=Mu(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},Hu=function(e){const t=[],n=(e=Vu(e)).length;let r=128,i=0,o=72;for(const n of e)n<128&&t.push(Ru(n));const a=t.length;let s=a;for(a&&t.push("-");s<n;){let n=Du;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>Mu((Du-i)/l)&&Pu("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(n<r&&++i>Du&&Pu("overflow"),n===r){let e=i;for(let n=Au;;n+=Au){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=Au-r;t.push(Ru(Bu(r+i%a,0))),e=Mu(i/a)}t.push(Ru(Bu(e,0))),o=Uu(i,l,s===a),i=0,++s}++i,++r}return t.join("")},qu=function(e){return ju(e,(function(e){return Lu.test(e)?"xn--"+Hu(e):e}))},$u=function(e){return ju(e,(function(e){return Ou.test(e)?zu(e.slice(4).toLowerCase()):e}))},Wu={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","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},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","text_join"]},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","fragments_join"]}}}},Gu=/^(vbscript|javascript|file|data):/,Ku=/^data:image\/(gif|png|jpeg|webp);/;function Yu(e){const t=e.trim().toLowerCase();return!Gu.test(t)||Ku.test(t)}const Qu=["http:","https:","mailto:"];function Xu(e){const t=as(e,!0);if(t.hostname&&(!t.protocol||Qu.indexOf(t.protocol)>=0))try{t.hostname=qu(t.hostname)}catch(e){}return Wa(Ga(t))}function Zu(e){const t=as(e,!0);if(t.hostname&&(!t.protocol||Qu.indexOf(t.protocol)>=0))try{t.hostname=$u(t.hostname)}catch(e){}return Ha(Ga(t),Ha.defaultChars+"%")}function Ju(e,t){if(!(this instanceof Ju))return new Ju(e,t);t||Vs(e)||(t=e||{},e="default"),this.inline=new gu,this.block=new Zl,this.core=new jl,this.renderer=new ml,this.linkify=new _u,this.validateLink=Yu,this.normalizeLink=Xu,this.normalizeLinkText=Zu,this.utils=n,this.helpers=zs({},r),this.options={},this.configure(e),t&&this.set(t)}Ju.prototype.set=function(e){return zs(this.options,e),this},Ju.prototype.configure=function(e){const t=this;if(Vs(e)){const t=e;if(!(e=Wu[t]))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&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)})),this},Ju.prototype.enable=function(e,t){let 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));const 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},Ju.prototype.disable=function(e,t){let 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));const 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},Ju.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ju.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ju.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ju.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ju.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const ec=Ju;var tc=(0,s.createContext)(null),nc=("undefined"==typeof process||process.env,"production"),rc=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},ic={measureLayout:rc(["layout","layoutId","drag"]),animation:rc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:rc(["exit"]),drag:rc(["drag","dragControls"]),focus:rc(["whileFocus"]),hover:rc(["whileHover","onHoverStart","onHoverEnd"]),tap:rc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:rc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:rc(["whileInView","onViewportEnter","onViewportLeave"])},oc=(0,s.createContext)({strict:!1}),ac=Object.keys(ic),sc=ac.length,lc=(0,s.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),uc=(0,s.createContext)({}),cc=(0,s.createContext)(null),dc="undefined"!=typeof document,fc=dc?s.useLayoutEffect:s.useEffect,pc={current:null},hc=!1;function mc(e,t,n,r){var i,o,a=(0,s.useContext)(oc),l=(0,s.useContext)(uc).visualElement,u=(0,s.useContext)(cc),c=(!hc&&function(){if(hc=!0,dc)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return pc.current=e.matches};e.addListener(t),t()}else pc.current=!1}(),i=ot((0,s.useState)(pc.current),1)[0],"never"!==(o=(0,s.useContext)(lc).reducedMotion)&&("always"===o||i)),d=(0,s.useRef)(void 0);r||(r=a.renderer),!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceId:null==u?void 0:u.id,blockInitialAnimation:!1===(null==u?void 0:u.initial),shouldReduceMotion:c}));var f=d.current;return fc((function(){null==f||f.syncRender()})),(0,s.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),fc((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function gc(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function vc(e){return Array.isArray(e)}function yc(e){return"string"==typeof e||vc(e)}function bc(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,i)),t}function xc(e,t,n){var r=e.getProps();return bc(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Ec(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||yc(e.initial)||yc(e.animate)||yc(e.whileHover)||yc(e.whileDrag)||yc(e.whileTap)||yc(e.whileFocus)||yc(e.exit)}function wc(e){return Boolean(Ec(e)||e.variants)}function kc(e){return Array.isArray(e)?e.join(" "):e}function Cc(e){var t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}var Sc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Tc=1,Nc=(0,s.createContext)({}),_c=(0,s.createContext)({}),Dc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nt(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(s.Component);function Ac(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?ic.projectionNodeConstructor=e[t]:ic[t].Component=e[t])}(t),(0,s.forwardRef)((function(e,l){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,s.useContext)(Nc))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=rt(rt({},e),{layoutId:u});var c=(0,s.useContext)(lc),d=null,f=function(e){var t=function(e,t){if(Ec(e)){var n=e.initial,r=e.animate;return{initial:!1===n||yc(n)?n:void 0,animate:yc(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(uc)),n=t.initial,r=t.animate;return(0,s.useMemo)((function(){return{initial:n,animate:r}}),[kc(n),kc(r)])}(e),p=c.isStatic?void 0:Cc((function(){if(Sc.hasEverUpdated)return Tc++})),h=o(e,c.isStatic);return!c.isStatic&&dc&&(f.visualElement=mc(a,h,rt(rt({},c),e),n),function(e,t,n,r){var i,o=t.layoutId,a=t.layout,l=t.drag,u=t.dragConstraints,c=t.layoutScroll,d=(0,s.useContext)(_c);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(l)||u&&gc(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||ic.projectionNodeConstructor),d=function(e,t,n){var r=[],i=(0,s.useContext)(oc);if(!t)return null;"production"!==nc&&n&&i.strict;for(var o=0;o<sc;o++){var a=ac[o],l=ic[a],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(s.createElement(c,rt({key:a},e,{visualElement:t})))}return r}(e,f.visualElement,t)),s.createElement(Dc,{visualElement:f.visualElement,props:rt(rt({},c),e)},d,s.createElement(uc.Provider,{value:f},i(a,e,p,function(e,t,n){return(0,s.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):gc(n)&&(n.current=r))}),[t])}(h,f.visualElement,l),h,c.isStatic,f.visualElement)))}))}function Oc(e){function t(t,n){return void 0===n&&(n={}),Ac(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Lc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Ic(e){return"string"==typeof e&&!e.includes("-")&&!!(Lc.indexOf(e)>-1||/[A-Z]/.test(e))}var Fc={},Mc=["","X","Y","Z"],Rc=["transformPerspective","x","y","z"];function Pc(e,t){return Rc.indexOf(e)-Rc.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Mc.forEach((function(t){return Rc.push(e+t)}))}));var jc=new Set(Rc);function Vc(e){return jc.has(e)}var Bc=new Set(["originX","originY","originZ"]);function Uc(e){return Bc.has(e)}function zc(e,t){var n=t.layout,r=t.layoutId;return Vc(e)||Uc(e)||(n||void 0!==r)&&(!!Fc[e]||"opacity"===e)}var Hc=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},qc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function $c(e){return e.startsWith("--")}var Wc=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Gc=(e,t)=>n=>Math.max(Math.min(n,t),e),Kc=e=>e%1?Number(e.toFixed(5)):e,Yc=/(-)?([\d]*\.?[\d])+/g,Qc=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Xc=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Zc(e){return"string"==typeof e}const Jc=e=>({test:t=>Zc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ed=Jc("deg"),td=Jc("%"),nd=Jc("px"),rd=Jc("vh"),id=Jc("vw"),od=Object.assign(Object.assign({},td),{parse:e=>td.parse(e)/100,transform:e=>td.transform(100*e)}),ad={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},sd=Object.assign(Object.assign({},ad),{transform:Gc(0,1)}),ld=Object.assign(Object.assign({},ad),{default:1});var ud=rt(rt({},ad),{transform:Math.round}),cd={borderWidth:nd,borderTopWidth:nd,borderRightWidth:nd,borderBottomWidth:nd,borderLeftWidth:nd,borderRadius:nd,radius:nd,borderTopLeftRadius:nd,borderTopRightRadius:nd,borderBottomRightRadius:nd,borderBottomLeftRadius:nd,width:nd,maxWidth:nd,height:nd,maxHeight:nd,size:nd,top:nd,right:nd,bottom:nd,left:nd,padding:nd,paddingTop:nd,paddingRight:nd,paddingBottom:nd,paddingLeft:nd,margin:nd,marginTop:nd,marginRight:nd,marginBottom:nd,marginLeft:nd,rotate:ed,rotateX:ed,rotateY:ed,rotateZ:ed,scale:ld,scaleX:ld,scaleY:ld,scaleZ:ld,skew:ed,skewX:ed,skewY:ed,distance:nd,translateX:nd,translateY:nd,translateZ:nd,x:nd,y:nd,z:nd,perspective:nd,transformPerspective:nd,opacity:sd,originX:od,originY:od,originZ:nd,zIndex:ud,fillOpacity:sd,strokeOpacity:sd,numOctaves:ud};function dd(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var h=t[p];if($c(p))a[p]=h;else{var m=cd[p],g=Wc(h,m);if(Vc(p)){if(c=!0,s[p]=g,l.push(p),!f)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(f=!1)}else Uc(p)?(u[p]=g,d=!0):o[p]=g}}c?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";o.sort(Pc);for(var d=!1,f=o.length,p=0;p<f;p++){var h=o[p];c+="".concat(qc[h]||h,"(").concat(i[h],") "),"z"===h&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(u))}function fd(e,t,n){for(var r in t)Hc(t[r])||zc(r,n)||(e[r]=t[r])}function pd(e,t,n){var r={},i=function(e,t,n){var r={};return fd(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,s.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};dd(e,t,{enableHardwareAcceleration:!n},r);var i=e.style;return rt(rt({},e.vars),i)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var hd=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function md(e){return hd.has(e)}var gd,vd=function(e){return!md(e)};try{(gd=require("@emotion/is-prop-valid").default)&&(vd=function(e){return e.startsWith("on")?!md(e):gd(e)})}catch(e){}function yd(e,t,n){return"string"==typeof e?e:nd.transform(t+n*e)}var bd={offset:"stroke-dashoffset",array:"stroke-dasharray"},xd={offset:"strokeDashoffset",array:"strokeDasharray"};function Ed(e,t,n,r){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;dd(e,it(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,h=e.style,m=e.dimensions;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==a||void 0!==s||h.transform)&&(h.transformOrigin=function(e,t,n){var r=yd(t,e.x,e.width),i=yd(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==i&&(p.x=i),void 0!==o&&(p.y=o),void 0!==l&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var o=i?bd:xd;e[o.offset]=nd.transform(-r);var a=nd.transform(t),s=nd.transform(n);e[o.array]="".concat(a," ").concat(s)}(p,l,c,f,!1)}var wd=function(){return rt(rt({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function kd(e,t){var n=(0,s.useMemo)((function(){var n=wd();return Ed(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),rt(rt({},n.attrs),{style:rt({},n.style)})}),[t]);if(e.style){var r={};fd(r,e.style,e),n.style=rt(rt({},r),n.style)}return n}function Cd(e){return void 0===e&&(e=!1),function(t,n,r,i,o,a){var l=o.latestValues,u=(Ic(t)?kd:pd)(n,l,a),c=function(e,t,n){var r={};for(var i in e)(vd(i)||!0===n&&md(i)||!t&&!md(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),d=rt(rt(rt({},c),u),{ref:i});return r&&(d["data-projection-id"]=r),(0,s.createElement)(t,d)}}var Sd=/([a-z])([A-Z])/g,Td=function(e){return e.replace(Sd,"$1-$2").toLowerCase()};function Nd(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var _d=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Dd(e,t,n,r){for(var i in Nd(e,t,void 0,r),t.attrs)e.setAttribute(_d.has(i)?i:Td(i),t.attrs[i])}function Ad(e){var t=e.style,n={};for(var r in t)(Hc(t[r])||zc(r,e))&&(n[r]=t[r]);return n}function Od(e){var t=Ad(e);for(var n in e)Hc(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Ld(e){return"object"==typeof e&&"function"==typeof e.start}var Id=function(e){return Array.isArray(e)},Fd=function(e){return Id(e)?e[e.length-1]||0:e};function Md(e){var t,n=Hc(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}function Rd(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:jd(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Pd=function(e){return function(t,n){var r=(0,s.useContext)(uc),i=(0,s.useContext)(cc);return n?Rd(e,t,r,i):Cc((function(){return Rd(e,t,r,i)}))}};function jd(e,t,n,r){var i={},o=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)i[s]=Md(a[s]);var l=e.initial,u=e.animate,c=Ec(e),d=wc(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=o||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Ld(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=bc(e,t);if(n){var r=n.transitionEnd;n.transition;var o=it(n,["transitionEnd","transition"]);for(var a in o){var s=o[a];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(i[a]=s)}for(var a in r)i[a]=r[a]}})),i}var Vd,Bd,Ud={useVisualState:Pd({scrapeMotionValuesFromProps:Od,createRenderState:wd,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ed(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Dd(t,r)}})},zd={useVisualState:Pd({scrapeMotionValuesFromProps:Ad,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Hd(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function qd(e,t,n,r){(0,s.useEffect)((function(){var i=e.current;if(n&&i)return Hd(i,t,n,r)}),[e,t,n,r])}function $d(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Wd(e){return!!e.touches}(Bd=Vd||(Vd={})).Animate="animate",Bd.Hover="whileHover",Bd.Tap="whileTap",Bd.Drag="whileDrag",Bd.Focus="whileFocus",Bd.InView="whileInView",Bd.Exit="exit";var Gd={pageX:0,pageY:0};function Kd(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Gd;return{x:n[t+"X"],y:n[t+"Y"]}}function Yd(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Qd(e,t){return void 0===t&&(t="page"),{point:Wd(e)?Kd(e,t):Yd(e,t)}}var Xd=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Qd(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Zd={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Jd={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ef(e){return dc&&null===window.onpointerdown?e:dc&&null===window.ontouchstart?Jd[e]:dc&&null===window.onmousedown?Zd[e]:e}function tf(e,t,n,r){return Hd(e,ef(t),Xd(n,"pointerdown"===t),r)}function nf(e,t,n,r){return qd(e,ef(t),n&&Xd(n,"pointerdown"===t),r)}function rf(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var of=rf("dragHorizontal"),af=rf("dragVertical");function sf(e){var t=!1;if("y"===e)t=af();else if("x"===e)t=of();else{var n=of(),r=af();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function lf(){var e=sf(!0);return!e||(e(),!1)}function uf(e,t,n){return function(r,i){var o;$d(r)&&!lf()&&(null===(o=e.animationState)||void 0===o||o.setActive(Vd.Hover,t),null==n||n(r,i))}}var cf=function(e,t){return!!t&&(e===t||cf(e,t.parentElement))};function df(e){return(0,s.useEffect)((function(){return function(){return e()}}),[])}const ff=(e,t)=>n=>t(e(n)),pf=(...e)=>e.reduce(ff);var hf=new Set,mf=new WeakMap,gf=new WeakMap,vf=function(e){var t;null===(t=mf.get(e.target))||void 0===t||t(e)},yf=function(e){e.forEach(vf)};var bf={some:0,all:1};function xf(e,t,n,r){var i=r.root,o=r.margin,a=r.amount,l=void 0===a?"some":a,u=r.once;(0,s.useEffect)((function(){if(e){var r={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof l?l:bf[l]};return function(e,t,n){var r=function(e){var t=e.root,n=it(e,["root"]),r=t||document;gf.has(r)||gf.set(r,{});var i=gf.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(yf,rt({root:t},n))),i[o]}(t);return mf.set(e,n),r.observe(e),function(){mf.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!u||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Vd.InView,i);var o=n.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(e)}}))}}),[e,i,o,l])}function Ef(e,t,n,r){var i=r.fallback,o=void 0===i||i;(0,s.useEffect)((function(){var r;e&&o&&("production"!==nc&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",hf.has(r)||(console.warn(r),hf.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Vd.InView,!0)})))}),[e])}var wf=function(e){return function(t){return e(t),null}},kf={inView:wf((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,l=(0,s.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(n||r||i);a.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Ef:xf)(u,l.current,t,a)})),tap:wf((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||n||r||i,l=(0,s.useRef)(!1),u=(0,s.useRef)(null),c={passive:!(n||t||r||m)};function d(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function f(){var e;return d(),l.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(Vd.Tap,!1),!lf()}function p(e,n){f()&&(cf(o.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function h(e,t){f()&&(null==r||r(e,t))}function m(e,t){var r;d(),l.current||(l.current=!0,u.current=pf(tf(window,"pointerup",p,c),tf(window,"pointercancel",h,c)),null===(r=o.animationState)||void 0===r||r.setActive(Vd.Tap,!0),null==n||n(e,t))}nf(o,"pointerdown",a?m:void 0,c),df(d)})),focus:wf((function(e){var t=e.whileFocus,n=e.visualElement;qd(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Vd.Focus,!0)}:void 0),qd(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Vd.Focus,!1)}:void 0)})),hover:wf((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;nf(i,"pointerenter",t||r?uf(i,!0,t):void 0,{passive:!t}),nf(i,"pointerleave",n||r?uf(i,!1,n):void 0,{passive:!n})}))},Cf=0,Sf=function(){return Cf++};function Tf(){var e=(0,s.useContext)(cc);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Cc(Sf);return(0,s.useEffect)((function(){return r(i)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function Nf(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const _f=(e,t,n)=>Math.min(Math.max(n,e),t);const Df=12;function Af(e,t){return e*Math.sqrt(1-t*t)}const Of=["duration","bounce"],Lf=["stiffness","damping","mass"];function If(e,t){return t.some((t=>void 0!==e[t]))}function Ff(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=it(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!If(e,Lf)&&If(e,Of)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=_f(.05,1,a),e=_f(.01,10,e/1e3),a<1?(i=t=>{const r=t*a,i=r*e;return.001-(r-n)/Af(t,a)*Math.exp(-i)},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Af(Math.pow(t,2),a);return(.001-i(t)>0?-1:1)*((o-s)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Df;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(o),p=Mf,h=Mf;function m(){const e=c?-c/1e3:0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=Af(a,o);p=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},h=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);p=i=>{const s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const o=1e3*h(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}Ff.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Mf=e=>0,Rf=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Pf=(e,t,n)=>-n*e+n*t+e,jf=(e,t)=>n=>Boolean(Zc(n)&&Xc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Vf=(e,t,n)=>r=>{if(!Zc(r))return r;const[i,o,a,s]=r.match(Yc);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Bf=Gc(0,255),Uf=Object.assign(Object.assign({},ad),{transform:e=>Math.round(Bf(e))}),zf={test:jf("rgb","red"),parse:Vf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Uf.transform(e)+", "+Uf.transform(t)+", "+Uf.transform(n)+", "+Kc(sd.transform(r))+")"},Hf={test:jf("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:zf.transform},qf={test:jf("hsl","hue"),parse:Vf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+td.transform(Kc(t))+", "+td.transform(Kc(n))+", "+Kc(sd.transform(r))+")"};function $f(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Wf({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=$f(s,r,e+1/3),o=$f(s,r,e),a=$f(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}const Gf=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Kf=[Hf,zf,qf],Yf=e=>Kf.find((t=>t.test(e))),Qf=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Xf=(e,t)=>{let n=Yf(e),r=Yf(t);Qf(e),Qf(t);let i=n.parse(e),o=r.parse(t);n===qf&&(i=Wf(i),n=zf),r===qf&&(o=Wf(o),r=zf);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Gf(i[t],o[t],e));return a.alpha=Pf(i.alpha,o.alpha,e),n.transform(a)}},Zf={test:e=>zf.test(e)||Hf.test(e)||qf.test(e),parse:e=>zf.test(e)?zf.parse(e):qf.test(e)?qf.parse(e):Hf.parse(e),transform:e=>Zc(e)?e:e.hasOwnProperty("red")?zf.transform(e):qf.transform(e)},Jf="${c}",ep="${n}";function tp(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Qc);r&&(n=r.length,e=e.replace(Qc,Jf),t.push(...r.map(Zf.parse)));const i=e.match(Yc);return i&&(e=e.replace(Yc,ep),t.push(...i.map(ad.parse))),{values:t,numColors:n,tokenised:e}}function np(e){return tp(e).values}function rp(e){const{values:t,numColors:n,tokenised:r}=tp(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?Jf:ep,r<n?Zf.transform(e[r]):Kc(e[r]));return t}}const ip=e=>"number"==typeof e?0:e,op={test:function(e){var t,n,r,i;return isNaN(e)&&Zc(e)&&(null!==(n=null===(t=e.match(Yc))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(Qc))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:np,createTransformer:rp,getAnimatableNone:function(e){const t=np(e);return rp(e)(t.map(ip))}},ap=e=>"number"==typeof e;function sp(e,t){return ap(e)?n=>Pf(e,t,n):Zf.test(e)?Xf(e,t):dp(e,t)}const lp=(e,t)=>{const n=[...e],r=n.length,i=e.map(((e,n)=>sp(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},up=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=sp(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function cp(e){const t=op.parse(e),n=t.length;let r=0,i=0,o=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const dp=(e,t)=>{const n=op.createTransformer(t),r=cp(e),i=cp(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?pf(lp(r.parsed,i.parsed),n):n=>`${n>0?t:e}`},fp=(e,t)=>n=>Pf(e,t,n);function pp(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?fp:"string"==typeof o?Zf.test(o)?Xf:dp:Array.isArray(o)?lp:"object"==typeof o?up:void 0);var o;const a=e.length-1;for(let n=0;n<a;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;o=pf(e,o)}r.push(o)}return r}(t,r,i),s=2===o?function([e,t],[n]){return r=>n(Rf(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);o=t-1}const s=Rf(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(_f(e[0],e[o-1],t)):s}const hp=e=>t=>1-e(1-t),mp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gp=e=>t=>t*t*((e+1)*t-e),vp=4/11,yp=8/11,bp=e=>e,xp=e=>Math.pow(e,2);const Ep=hp(xp),wp=mp(xp),kp=e=>1-Math.sin(Math.acos(e)),Cp=hp(kp),Sp=mp(Cp),Tp=gp(1.525),Np=hp(Tp),_p=mp(Tp),Dp=(()=>{const e=gp(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),Ap=4356/361,Op=35442/1805,Lp=16061/1805,Ip=e=>{if(1===e||0===e)return e;const t=e*e;return e<vp?7.5625*t:e<yp?9.075*t-9.9*e+3.4:e<.9?Ap*t-Op*e+Lp:10.8*e*e-20.52*e+10.72},Fp=hp(Ip);function Mp(e,t){return e.map((()=>t||wp)).splice(0,e.length-1)}function Rp({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),i);function l(){return pp(s,a,{ease:Array.isArray(n)?n:Mp(a,n)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}const Pp={keyframes:Rp,spring:Ff,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}},jp=1/60*1e3,Vp="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Bp="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Vp())),jp);let Up=!0,zp=!1,Hp=!1;const qp={delta:0,timestamp:0},$p=["read","update","preRender","render","postRender"],Wp=$p.reduce(((e,t)=>(e[t]=function(){let e=[],t=[],n=0,r=!1,i=!1;const o=new WeakSet,a={schedule:(i,a=!1,s=!1)=>{const l=s&&r,u=l?e:t;return a&&o.add(i),-1===u.indexOf(i)&&(u.push(i),l&&r&&(n=e.length)),i},cancel:e=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1),o.delete(e)},process:s=>{if(r)i=!0;else{if(r=!0,[e,t]=[t,e],t.length=0,n=e.length,n)for(let t=0;t<n;t++){const n=e[t];n(s),o.has(n)&&(a.schedule(n),zp=!0)}r=!1,i&&(i=!1,a.process(s))}}};return a}(),e)),{}),Gp=$p.reduce(((e,t)=>{const n=Wp[t];return e[t]=(e,t=!1,r=!1)=>(zp||Zp(),n.schedule(e,t,r)),e}),{}),Kp=$p.reduce(((e,t)=>(e[t]=Wp[t].cancel,e)),{}),Yp=$p.reduce(((e,t)=>(e[t]=()=>Wp[t].process(qp),e)),{}),Qp=e=>Wp[e].process(qp),Xp=e=>{zp=!1,qp.delta=Up?jp:Math.max(Math.min(e-qp.timestamp,40),1),qp.timestamp=e,Hp=!0,$p.forEach(Qp),Hp=!1,zp&&(Up=!1,Bp(Xp))},Zp=()=>{zp=!0,Up=!0,Hp||Bp(Xp)},Jp=()=>qp,eh=Gp;function th(e,t,n=0){return e-t-n}const nh=e=>{const t=({delta:t})=>e(t);return{start:()=>eh.update(t,!0),stop:()=>Kp.update(t)}};function rh(e){var t,n,{from:r,autoplay:i=!0,driver:o=nh,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=it(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,v,y,{to:b}=m,x=0,E=m.duration,w=!1,k=!0;const C=function(e){if(Array.isArray(e.to))return Rp;if(Pp[e.type])return Pp[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Rp:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ff:Rp}(m);(null===(n=(t=C).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=pp([0,100],[r,b],{clamp:!1}),r=0,b=100);const S=C(Object.assign(Object.assign({},m),{from:r,to:b}));return i&&(null==c||c(),g=o((function(e){if(k||(e=-e),a+=e,!w){const e=S.next(Math.max(0,a));v=e.value,y&&(v=y(v)),w=k?e.done:a<=0}null==h||h(v),w&&(0===x&&(null!=E||(E=a)),x<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,E,u,k)&&(x++,"reverse"===l?(k=x%2==0,a=function(e,t,n=0,r=!0){return r?th(t+-e,t,n):t-(e-t)+n}(a,E,u,k)):(a=th(a,E,u),"mirror"===l&&S.flipTarget()),w=!1,p&&p()):(g.stop(),f&&f()))})),g.start()),{stop:()=>{null==d||d(),g.stop()}}}function ih(e,t){return t?e*(1e3/t):0}var oh=function(e){return 1e3*e};const ah=(e,t)=>1-3*t+3*e,sh=(e,t)=>3*t-6*e,lh=e=>3*e,uh=(e,t,n)=>((ah(t,n)*e+sh(t,n))*e+lh(t))*e,ch=(e,t,n)=>3*ah(t,n)*e*e+2*sh(t,n)*e+lh(t),dh=.1;function fh(e,t,n,r){if(e===t&&n===r)return bp;const i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=uh(t*dh,e,n);return o=>0===o||1===o?o:uh(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=dh;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*dh,s=ch(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=ch(t,n,r);if(0===i)return t;t-=(uh(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=uh(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+dh,e,n)}(o),t,r)}var ph={linear:bp,easeIn:xp,easeInOut:wp,easeOut:Ep,circIn:kp,circInOut:Sp,circOut:Cp,backIn:Tp,backInOut:_p,backOut:Np,anticipate:Dp,bounceIn:Fp,bounceInOut:e=>e<.5?.5*(1-Ip(1-2*e)):.5*Ip(2*e-1)+.5,bounceOut:Ip},hh=function(e){if(Array.isArray(e)){e.length;var t=ot(e,4);return fh(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),ph[e]):e},mh=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!op.test(t)||t.startsWith("url(")))},gh=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},vh=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},yh=function(){return{type:"keyframes",ease:"linear",duration:.3}},bh=function(e){return{type:"keyframes",duration:.8,values:e}},xh={x:gh,y:gh,z:gh,rotate:gh,rotateX:gh,rotateY:gh,rotateZ:gh,scaleX:vh,scaleY:vh,scale:vh,opacity:yh,backgroundColor:yh,color:yh,default:vh};const Eh=new Set(["brightness","contrast","saturate","opacity"]);function wh(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Yc)||[];if(!r)return e;const i=n.replace(r,"");let o=Eh.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const kh=/([a-z-]*)\(.*?\)/g,Ch=Object.assign(Object.assign({},op),{getAnimatableNone:e=>{const t=e.match(kh);return t?t.map(wh).join(" "):e}});var Sh=rt(rt({},cd),{color:Zf,backgroundColor:Zf,outlineColor:Zf,fill:Zf,stroke:Zf,borderColor:Zf,borderTopColor:Zf,borderRightColor:Zf,borderBottomColor:Zf,borderLeftColor:Zf,filter:Ch,WebkitFilter:Ch}),Th=function(e){return Sh[e]};function Nh(e,t){var n,r=Th(e);return r!==Ch&&(r=op),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function _h(e,t,n){var r,i,o,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=at([],ot(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=it(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=rt(rt({},e),(i=n,o=t.to,a=Id(o)?bh:xh[i]||xh.default,rt({to:o},a(o))))),rt(rt({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=it(e,["ease","times","yoyo","flip","loop"]),s=rt({},a);return n&&(s.offset=n),a.duration&&(s.duration=oh(a.duration)),a.repeatDelay&&(s.repeatDelay=oh(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(hh):hh(t)),"tween"===a.type&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Dh(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ah(e){return"number"==typeof e?0:Nh("",e)}function Oh(e,t){return e[t]||e.default||e}function Lh(e,t,n,r){return void 0===r&&(r={}),t.start((function(i){var o,a,s=function(e,t,n,r,i){var o,a=Oh(r,e),s=null!==(o=a.from)&&void 0!==o?o:t.get(),l=mh(e,n);"none"===s&&l&&"string"==typeof n?s=Nh(e,n):Dh(s)&&"string"==typeof n?s=Ah(n):!Array.isArray(n)&&Dh(n)&&"string"==typeof s&&(n=Ah(s));var u=mh(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==n&&e<n||void 0!==r&&e>r}function g(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function v(e){null==h||h.stop(),h=rh(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){v(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:g(e)});else{let r=i*t+e;void 0!==u&&(r=u(r));const a=g(r),s=a===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=ih(e-c,Jp().delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};v({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(r)?f:void 0})}return{stop:()=>null==h?void 0:h.stop()}}(rt(rt({},r),a)):rh(rt(rt({},_h(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,o=Fd(n);return t.set(o),i(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,o),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,i),l=function(e,t){var n,r;return null!==(r=null!==(n=(Oh(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?o=window.setTimeout(u,oh(l)):u(),function(){clearTimeout(o),null==a||a.stop()}}))}function Ih(e,t){-1===e.indexOf(t)&&e.push(t)}function Fh(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Mh=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Ih(this.subscriptions,e),function(){return Fh(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Rh=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Mh,this.velocityUpdateSubscribers=new Mh,this.renderSubscribers=new Mh,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=Jp(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,eh.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return eh.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?ih(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ph(e){return new Rh(e)}var jh=function(e){return function(t){return t.test(e)}},Vh=[ad,nd,td,ed,id,rd,{test:function(e){return"auto"===e},parse:function(e){return e}}],Bh=function(e){return Vh.find(jh(e))},Uh=at(at([],ot(Vh),!1),[Zf,op],!1),zh=function(e){return Uh.find(jh(e))};function Hh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ph(n))}function qh(e,t){if(t)return(t[e]||t.default||t).from}function $h(e,t,n){var r;void 0===n&&(n={});var i=xc(e,t,n.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return Wh(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=a.delayChildren,o=void 0===i?0:i,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===i?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Gh).forEach((function(e,r){a.push($h(e,t,rt(rt({},o),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,o+r,s,l,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=ot("beforeChildren"===u?[s,l]:[l,s],2),d=c[0],f=c[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function Wh(e,t,n){var r,i=void 0===n?{}:n,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=it(u,["transition","transitionEnd"]);s&&(d=s);var h=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in p){var v=e.getValue(g),y=p[g];if(!(!v||void 0===y||m&&Kh(m,g))){var b=rt({delay:a},d);e.shouldReduceMotion&&Vc(g)&&(b=rt(rt({},b),{type:!1,delay:0}));var x=Lh(g,v,y,b);h.push(x)}}return Promise.all(h).then((function(){f&&function(e,t){var n=xc(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i;r.transition;var a=it(r,["transitionEnd","transition"]);for(var s in a=rt(rt({},a),o))Hh(e,s,Fd(a[s]))}(e,f)}))}function Gh(e,t){return e.sortNodePosition(t)}function Kh(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var Yh=[Vd.Animate,Vd.InView,Vd.Focus,Vd.Hover,Vd.Tap,Vd.Drag,Vd.Exit],Qh=at([],ot(Yh),!1).reverse(),Xh=Yh.length;function Zh(e){var t,n=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return $h(e,t,n)}));r=Promise.all(i)}else if("string"==typeof t)r=$h(e,t,n);else{var o="function"==typeof t?xc(e,t,n.custom):t;r=Wh(e,o,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),r=((t={})[Vd.Animate]=Jh(!0),t[Vd.InView]=Jh(),t[Vd.Hover]=Jh(),t[Vd.Tap]=Jh(),t[Vd.Drag]=Jh(),t[Vd.Focus]=Jh(),t[Vd.Exit]=Jh(),t),i={},o=!0,a=function(t,n){var r=xc(e,n);if(r){r.transition;var i=r.transitionEnd,o=it(r,["transition","transitionEnd"]);t=rt(rt(rt({},t),o),i)}return t};function s(t,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0,m=function(n){var i=Qh[n],m=r[i],g=null!==(l=u[i])&&void 0!==l?l:c[i],v=yc(g),y=i===s?m.isActive:null;!1===y&&(h=n);var b=g===c[i]&&g!==u[i]&&v;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys=rt({},p),!m.isActive&&null===y||!g&&!m.prevProp||Ld(g)||"boolean"==typeof g)return"continue";var x=function(e,t){return"string"==typeof t?t!==e:!!vc(t)&&!Nf(t,e)}(m.prevProp,g),E=x||i===s&&m.isActive&&!b&&v||n>h&&v,w=Array.isArray(g)?g:[g],k=w.reduce(a,{});!1===y&&(k={});var C=m.prevResolvedValues,S=void 0===C?{}:C,T=rt(rt({},S),k),N=function(e){E=!0,f.delete(e),m.needsAnimating[e]=!0};for(var _ in T){var D=k[_],A=S[_];p.hasOwnProperty(_)||(D!==A?Id(D)&&Id(A)?!Nf(D,A)||x?N(_):m.protectedKeys[_]=!0:void 0!==D?N(_):f.add(_):void 0!==D&&f.has(_)?N(_):m.protectedKeys[_]=!0)}m.prevProp=g,m.prevResolvedValues=k,m.isActive&&(p=rt(rt({},p),k)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,at([],ot(w.map((function(e){return{animation:e,options:rt({type:i},t)}}))),!1))},g=0;g<Xh;g++)m(g);if(i=rt({},p),f.size){var v={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)})),d.push({animation:v})}var y=Boolean(d.length);return o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:s,setActive:function(t,n,i){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;var a=s(i,t);for(var l in r)r[l].protectedKeys={};return a},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function Jh(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var em={animation:wf((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Zh(t)),Ld(n)&&(0,s.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:wf((function(e){var t=e.custom,n=e.visualElement,r=ot(Tf(),2),i=r[0],o=r[1],a=(0,s.useContext)(cc);(0,s.useEffect)((function(){var e,r;n.isPresent=i;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Vd.Exit,!i,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!i&&(null==s||s.then(o))}),[i])}))};const tm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),nm=e=>tm(e)&&e.hasOwnProperty("z"),rm=(e,t)=>Math.abs(e-t);function im(e,t){if(ap(e)&&ap(t))return rm(e,t);if(tm(e)&&tm(t)){const n=rm(e.x,t.x),r=rm(e.y,t.y),i=nm(e)&&nm(t)?rm(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var om=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=lm(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=im(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,o=Jp().timestamp;r.history.push(rt(rt({},i),{timestamp:o}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=am(t,r.transformPagePoint),$d(e)&&0===e.buttons?r.handlePointerUp(e,t):eh.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,o=n.onSessionEnd,a=lm(am(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,a),o&&o(e,a)},!(Wd(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=am(Qd(e),this.transformPagePoint),a=o.point,s=Jp().timestamp;this.history=[rt(rt({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,lm(o,this.history)),this.removeListeners=pf(tf(window,"pointermove",this.handlePointerMove),tf(window,"pointerup",this.handlePointerUp),tf(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Kp.update(this.updatePoint)},e}();function am(e,t){return t?{point:t(e.point)}:e}function sm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lm(e,t){var n=e.point;return{point:n,delta:sm(n,cm(t)),offset:sm(n,um(t)),velocity:dm(t,.1)}}function um(e){return e[0]}function cm(e){return e[e.length-1]}function dm(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=cm(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oh(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function fm(e){return e.max-e.min}function pm(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),im(e,t)<n}function hm(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Pf(t.min,t.max,e.origin),e.scale=fm(n)/fm(t),(pm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pf(n.min,n.max,e.origin)-e.originPoint,(pm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mm(e,t,n,r){hm(e.x,t.x,n.x,null==r?void 0:r.originX),hm(e.y,t.y,n.y,null==r?void 0:r.originY)}function gm(e,t,n){e.min=n.min+t.min,e.max=e.min+fm(t)}function vm(e,t,n){e.min=t.min-n.min,e.max=e.min+fm(t)}function ym(e,t,n){vm(e.x,t.x,n.x),vm(e.y,t.y,n.y)}function bm(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function xm(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=ot([i,r],2))[0],i=n[1]),{min:r,max:i}}var Em=.35;function wm(e,t,n){return{min:km(e,t),max:km(e,n)}}function km(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Cm(e){return[e("x"),e("y")]}function Sm(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Tm(e){return void 0===e||1===e}function Nm(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Tm(t)||!Tm(n)||!Tm(r)}function _m(e){return Nm(e)||Dm(e.x)||Dm(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Dm(e){return e&&"0%"!==e}function Am(e,t,n){return n+t*(e-n)}function Om(e,t,n,r,i){return void 0!==i&&(e=Am(e,i,r)),Am(e,n,r)+t}function Lm(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Om(e.min,t,n,r,i),e.max=Om(e.max,t,n,r,i)}function Im(e,t){var n=t.x,r=t.y;Lm(e.x,n.translate,n.scale,n.originPoint),Lm(e.y,r.translate,r.scale,r.originPoint)}function Fm(e,t){e.min=e.min+t,e.max=e.max+t}function Mm(e,t,n){var r=ot(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=Pf(e.min,e.max,s);Lm(e,t[i],t[o],l,t.scale)}var Rm=["x","scaleX","originX"],Pm=["y","scaleY","originY"];function jm(e,t){Mm(e.x,t,Rm),Mm(e.y,t,Pm)}function Vm(e,t){return Sm(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Bm=new WeakMap,Um=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new om(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(Qd(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=sf(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Cm((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(td.test(i)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];o&&(i=fm(o)*(parseFloat(i)/100))}n.originPoint[e]=i})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Vd.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var l=t.offset;if(o&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Vd.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r,i,o,a,s,l=this.getProps().drag;if(n&&zm(e,l,this.currentDirection)){var u=this.getAxisMotionValue(e),c=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(r=c,i=this.constraints[e],o=this.elastic[e],a=i.min,s=i.max,void 0!==a&&r<a?r=o?Pf(a,r,o.min):Math.max(r,a):void 0!==s&&r>s&&(r=o?Pf(s,r,o.max):Math.min(r,s)),c=r),u.set(c)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&gc(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:bm(e.x,r,o),y:bm(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=Em),!1===e?e=0:!0===e&&(e=Em),{x:wm(e,"left","right"),y:wm(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Cm((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!gc(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o,a,s,l,u=(o=r,a=i.root,s=Vm(o,this.visualElement.getTransformPagePoint()),(l=a.scroll)&&(Fm(s.x,l.x),Fm(s.y,l.y)),s),c=function(e,t){return{x:xm(e.x,t.x),y:xm(e.y,t.y)}}(i.layout.actual,u);if(n){var d=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(c));this.hasMutatedConstraints=!!d,d&&(c=Sm(d))}return c},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Cm((function(n){var l;if(zm(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=o?200:1e6,f=o?40:1e7,p=rt(rt({type:"inertia",velocity:i?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Lh(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Cm((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Cm((function(n){if(zm(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-Pf(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(gc(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};Cm((function(e){var n,r,i,o,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(n={min:u,max:u},r=t.constraints[e],i=.5,o=fm(n),(s=fm(r))>o?i=Rf(r.min,r.max-o,n.min):o>s&&(i=Rf(n.min,n.max-s,r.min)),_f(0,1,i))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),Cm((function(e){if(zm(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(Pf(o,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Bm.set(this.visualElement,this);var n=tf(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){gc(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=Hd(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Cm((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?Em:u,d=e.dragMomentum,f=void 0===d||d;return rt(rt({},e),{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function zm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Hm={pan:wf((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||n||r||i,l=(0,s.useRef)(null),u=(0,s.useContext)(lc).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){l.current=null,r&&r(e,t)}};(0,s.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),nf(o,"pointerdown",a&&function(e){l.current=new om(e,c,{transformPagePoint:u})}),df((function(){return l.current&&l.current.end()}))})),drag:wf((function(e){var t=e.dragControls,n=e.visualElement,r=Cc((function(){return new Um(n)}));(0,s.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,s.useEffect)((function(){return r.addListeners()}),[r])}))},qm=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],$m=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,g=e.visualState,v=e.shouldReduceMotion;void 0===t&&(t={});var y,b,x=!1,E=g.latestValues,w=g.renderState,k=function(){var e=qm.map((function(){return new Mh})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){qm.forEach((function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+qm[t]]=function(t){return e.add(t)},n["notify"+qm[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,at([],ot(t),!1))}})),n}(),C=new Map,S=new Map,T={},N=rt({},E);function _(){y&&x&&(D(),s(y,w,p.style,P.projection))}function D(){r(P,w,E,t,p)}function A(){k.notifyUpdate(E)}function O(e,t){var n=t.onChange((function(t){E[e]=t,p.onUpdate&&eh.update(A,!1,!0)})),r=t.onRenderRequest(P.scheduleRender);S.set(e,(function(){n(),r()}))}var L=d(p);for(var I in L){var F=L[I];void 0!==E[I]&&Hc(F)&&F.set(E[I],!1)}var M=Ec(p),R=wc(p),P=rt(rt({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:h,shouldReduceMotion:v,variantChildren:R?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(y)},mount:function(e){x=!0,y=P.current=e,P.projection&&P.projection.mount(e),R&&f&&!M&&(b=null==f?void 0:f.addVariantChild(P)),C.forEach((function(e,t){return O(t,e)})),null==f||f.children.add(P),P.setProps(p)},unmount:function(){var e;null===(e=P.projection)||void 0===e||e.unmount(),Kp.update(A),Kp.render(_),S.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(P),k.clearAllListeners(),y=void 0,x=!1},addVariantChild:function(e){var t,n=P.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(P.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return R?P:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){P.isVisible!==e&&(P.isVisible=e,P.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(P,e,p,t)},measureViewportBox:function(){return a(y,p)},addValue:function(e,t){P.hasValue(e)&&P.removeValue(e),C.set(e,t),E[e]=t.get(),O(e,t)},removeValue:function(e){var t;C.delete(e),null===(t=S.get(e))||void 0===t||t(),S.delete(e),delete E[e],u(e,w)},hasValue:function(e){return C.has(e)},getValue:function(e,t){var n=C.get(e);return void 0===n&&void 0!==t&&(n=Ph(t),P.addValue(e,n)),n},forEachValue:function(e){return C.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){N[e]=t},getBaseTarget:function(e){if(i){var t=i(p,e);if(void 0!==t&&!Hc(t))return t}return N[e]}},k),{build:function(){return D(),w},scheduleRender:function(){eh.render(_,!1,!0)},syncRender:_,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&P.scheduleRender(),p=e,k.updatePropListeners(e),T=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(Hc(o))e.addValue(i,o);else if(Hc(a))e.addValue(i,Ph(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,Ph(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(P,d(p),T)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!M){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Gm;r++){var i=Wm[r],o=p[i];(yc(o)||!1===o)&&(n[i]=o)}return n}});return P}},Wm=at(["initial"],ot(Yh),!1),Gm=Wm.length;function Km(e){return"string"==typeof e&&e.startsWith("var(--")}var Ym=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Qm(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=ot(function(e){var t=Ym.exec(e);if(!t)return[,];var n=ot(t,3);return[n[1],n[2]]}(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():Km(o)?Qm(o,t,n+1):o}}var Xm,Zm,Jm=new Set(["width","height","top","left","right","bottom","x","y"]),eg=function(e){return Jm.has(e)},tg=function(e,t){e.set(t,!1),e.set(t)},ng=function(e){return e===ad||e===nd};(Zm=Xm||(Xm={})).width="width",Zm.height="height",Zm.left="left",Zm.right="right",Zm.top="top",Zm.bottom="bottom";var rg=function(e,t){return parseFloat(e.split(", ")[t])},ig=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return rg(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?rg(a[1],e):0}},og=new Set(["x","y","z"]),ag=Rc.filter((function(e){return!og.has(e)})),sg={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ig(4,13),y:ig(5,14)};function lg(e,t,n,r){return function(e){return Object.keys(e).some(eg)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=rt({},t),r=rt({},r);var i=Object.keys(t).filter(eg),o=[],a=!1,s=[];if(i.forEach((function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],d=Bh(c),f=t[i];if(Id(f)){var p=f.length,h=null===f[0]?1:0;c=f[h],d=Bh(c);for(var m=h;m<p;m++)u?Bh(f[m]):(u=Bh(f[m]))===d||ng(d)&&ng(u)}else u=Bh(f);if(d!==u)if(ng(d)&&ng(u)){var g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&u===nd&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[i]=d.transform(f):(a||(o=function(e){var t=[];return ag.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],tg(l,f))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=sg[e](r,o)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);tg(r,s[n]),e[n]=sg[n](l,o)})),e}(t,e,s);return o.length&&o.forEach((function(t){var n=ot(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var ug={treeType:"dom",readValueFromInstance:function(e,t){if(Vc(t)){var n=Th(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return($c(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Vm(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var o=t.transition,a=t.transitionEnd,s=it(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=qh(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(i=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==i?i:t[c]),null!=f&&("string"==typeof f&&(/^\-?\d*\.?\d+$/.test(f)||/^0[^.\s]+$/.test(f))?f=parseFloat(f):!zh(f)&&op.test(d)&&(f=Nh(c,d)),e.addValue(c,Ph(f)),null!==(o=(a=n)[c])&&void 0!==o||(a[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var i=function(e,t,n){var r,i=it(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=rt({},n)),e.forEachValue((function(e){var t=e.get();if(Km(t)){var n=Qm(t,o);n&&e.set(n)}})),i){var s=i[a];if(Km(s)){var l=Qm(s,o);l&&(i[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return lg(e,t=i.target,n,r=i.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return rt({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ad,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),dd(t,n,r,i.transformTemplate)},render:Nd},cg=$m(ug),dg=$m(rt(rt({},ug),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Vc(t)?(null===(n=Th(t))||void 0===n?void 0:n.default)||0:(t=_d.has(t)?t:Td(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Od,build:function(e,t,n,r,i){Ed(t,n,r,i.transformTemplate)},render:Dd})),fg=function(e,t){return Ic(e)?dg(t,{enableHardwareAcceleration:!1}):cg(t,{enableHardwareAcceleration:!0})};function pg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var hg={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!nd.test(e))return e;e=parseFloat(e)}var n=pg(e,t.target.x),r=pg(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},mg="_$css",gg={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(Ym,(function(e){return a.push(e),mg})));var s=op.parse(e);if(s.length>5)return i;var l=op.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=Pf(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(o){var h=0;p=p.replace(mg,(function(){var e=a[h];return h++,e}))}return p}},vg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nt(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=yg,Object.assign(Fc,e),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(rt(rt({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Sc.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||eh.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(s.Component),yg={borderRadius:rt(rt({},hg),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:hg,borderTopRightRadius:hg,borderBottomLeftRadius:hg,borderBottomRightRadius:hg,boxShadow:gg},bg={measureLayout:function(e){var t=ot(Tf(),2),n=t[0],r=t[1],i=(0,s.useContext)(Nc);return s.createElement(vg,rt({},e,{layoutGroup:i,switchLayoutGroup:(0,s.useContext)(_c),isPresent:n,safeToRemove:r}))}},xg=["TopLeft","TopRight","BottomLeft","BottomRight"],Eg=xg.length,wg=function(e){return"string"==typeof e?parseFloat(e):e},kg=function(e){return"number"==typeof e||nd.test(e)};function Cg(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Sg=Ng(0,.5,Cp),Tg=Ng(.5,.95,bp);function Ng(e,t,n){return function(r){return r<e?0:r>t?1:n(Rf(e,t,r))}}function _g(e,t){e.min=t.min,e.max=t.max}function Dg(e,t){_g(e.x,t.x),_g(e.y,t.y)}function Ag(e,t,n,r,i){return e=Am(e-=t,1/n,r),void 0!==i&&(e=Am(e,1/i,r)),e}function Og(e,t,n,r,i){var o=ot(n,3),a=o[0],s=o[1],l=o[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),td.test(t)&&(t=parseFloat(t),t=Pf(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=Pf(o.min,o.max,r);e===o&&(s-=t),e.min=Ag(e.min,t,n,s,i),e.max=Ag(e.max,t,n,s,i)}}(e,t[a],t[s],t[l],t.scale,r,i)}var Lg=["x","scaleX","originX"],Ig=["y","scaleY","originY"];function Fg(e,t,n,r){Og(e.x,t,Lg,null==n?void 0:n.x,null==r?void 0:r.x),Og(e.y,t,Ig,null==n?void 0:n.y,null==r?void 0:r.y)}function Mg(e){return 0===e.translate&&1===e.scale}function Rg(e){return Mg(e.x)&&Mg(e.y)}function Pg(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var jg=function(){function e(){this.members=[]}return e.prototype.add=function(e){Ih(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Fh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Vg(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(u,", ").concat(c,")"))?"none":o}var Bg=function(e,t){return e.depth-t.depth},Ug=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Ih(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Fh(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Bg),this.isDirty=!1,this.children.forEach(e)},e}();function zg(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,r){var i=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(Yg),i.nodes.forEach(Qg)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?at(at([],ot(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ug)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Mh),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,at([],ot(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,a=o.layoutId,s=o.layout,l=o.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var u,c=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Sc.hasAnimatedSinceResize&&(Sc.hasAnimatedSinceResize=!1,i.nodes.forEach(Kg))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,o,a,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var f=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:nv,p=l.getProps(),h=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,g=!i.targetLayout||!Pg(i.targetLayout,d)||c,v=!u&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||v||u&&(g||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,v);var y=rt(rt({},Oh(f,"layout")),{onPlay:h,onComplete:m});l.shouldReduceMotion&&(y.delay=0,y.type=!1),i.startAnimation(y)}else u||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(a=(o=i.options).onExitComplete)||void 0===a||a.call(o));i.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Kp.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Xg))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Wg);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rv),this.potentialNodes.clear()),this.nodes.forEach(Gg),this.nodes.forEach(Hg),this.nodes.forEach(qg),this.clearAllSnapshots(),Yp.update(),Yp.preRender(),Yp.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach($g),this.sharedNodes.forEach(Zg)},e.prototype.scheduleUpdateProjection=function(){eh.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;eh.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));ov(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();ov(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Rg(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||_m(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Fm(t.x,n.x),Fm(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Dg(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options,a=r.isScrollRoot;if(r!==this.root&&i&&o.layoutScroll){if(a){Dg(t,e);var s=this.root.scroll;s&&(Fm(t.x,-s.x),Fm(t.y,-s.y))}Fm(t.x,i.x),Fm(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Dg(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&jm(n,{x:-i.scroll.x,y:-i.scroll.y}),_m(i.latestValues)&&jm(n,i.latestValues)}return _m(this.latestValues)&&jm(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Dg(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&_m(i.latestValues)){Nm(i.latestValues)&&i.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};Dg(o,i.measure()),Fg(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return _m(this.latestValues)&&Fg(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=rt(rt(rt({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ym(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Dg(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,gm(t.x,n.x,r.x),gm(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Dg(this.target,this.layout.actual),Im(this.target,this.targetDelta)):Dg(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ym(this.relativeTargetOrigin,this.target,this.relativeParent.target),Dg(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!_m(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();Dg(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var u=0;u<a;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&jm(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Im(e,l)),r&&_m(s.latestValues)&&jm(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;mm(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Vg(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},a=rt({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(tv));this.animationProgress=0,this.mixTargetDelta=function(t){var n,i,f,p,h,m=t/1e3;Jg(s.x,e.x,m),Jg(s.y,e.y,m),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(ym(l,r.layout.actual,r.relativeParent.layout.actual),i=r.relativeTarget,f=r.relativeTargetOrigin,p=l,h=m,ev(i.x,f.x,p.x,h),ev(i.y,f.y,p.y,h)),u&&(r.animationValues=a,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=Pf(0,null!==(a=n.opacity)&&void 0!==a?a:1,Sg(r)),e.opacityExit=Pf(null!==(s=t.opacity)&&void 0!==s?s:1,0,Tg(r))):o&&(e.opacity=Pf(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Eg;c++){var d="border".concat(xg[c],"Radius"),f=Cg(t,d),p=Cg(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||kg(f)===kg(p)?(e[d]=Math.max(Pf(wg(f),wg(p),r),0),(td.test(p)||td.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Pf(t.rotate||0,n.rotate||0,r))}(a,o,r.latestValues,m,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=m},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Kp.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eh.update((function(){Sc.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Hc(0)?0:Ph(0);return Lh("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,rt(rt({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(Dg(t,n),jm(t,i),mm(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new jg),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Mc.length;r++){var i="rotate"+Mc[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,o,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Md(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Md(e.pointerEvents)||""),this.hasProjected&&!_m(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Vg(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(i=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,Fc)if(void 0!==d[m]){var g=Fc[m],v=g.correct,y=g.applyTo,b=v(d[m],u);if(y)for(var x=y.length,E=0;E<x;E++)s[y[E]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=u===this?Md(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Wg),this.root.sharedNodes.clear()},e}()}function Hg(e){e.updateLayout()}function qg(e){var t,n,r,i,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?Cm((function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=fm(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Cm((function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=fm(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};mm(u,s,o.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?mm(c,e.applyTransform(l,!0),o.measured):mm(c,s,o.layout);var d=!Rg(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var g={x:{min:0,max:0},y:{min:0,max:0}};ym(g,o.layout,h.layout);var v={x:{min:0,max:0},y:{min:0,max:0}};ym(v,s,m.actual),Pg(g,v)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function $g(e){e.clearSnapshot()}function Wg(e){e.clearMeasurements()}function Gg(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Kg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Yg(e){e.resolveTargetDelta()}function Qg(e){e.calcProjection()}function Xg(e){e.resetRotation()}function Zg(e){e.removeLeadSnapshot()}function Jg(e,t,n){e.translate=Pf(t.translate,0,n),e.scale=Pf(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ev(e,t,n,r){e.min=Pf(t.min,n.min,r),e.max=Pf(t.max,n.max,r)}function tv(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var nv={duration:.45,ease:[.4,0,.1,1]};function rv(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function iv(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ov(e){iv(e.x),iv(e.y)}var av=zg({attachResizeListener:function(e,t){return Hd(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),sv={current:void 0},lv=zg({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!sv.current){var e=new av(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sv.current=e}return sv.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),uv=rt(rt(rt(rt({},em),kf),Hm),bg),cv=Oc((function(e,t){return function(e,t,n,r,i){var o=t.forwardMotionProps,a=void 0!==o&&o,s=Ic(e)?Ud:zd;return rt(rt({},s),{preloadedFeatures:n,useRender:Cd(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}(e,t,uv,fg,lv)}));function dv(e){return e.value}function fv(e,t){return e.layout.min-t.layout.min}function pv(e){var t=Cc((function(){return Ph(e)}));if((0,s.useContext)(lc).isStatic){var n=ot((0,s.useState)(e),2)[1];(0,s.useEffect)((function(){return t.onChange(n)}),[])}return t}function hv(e,t){var n=Cc((function(){return[]}));return function(e,t){var n=pv(t()),r=function(){return n.set(t())};return r(),function(e,t){fc((function(){var n=e.map((function(e){return e.onChange(t)}));return function(){return n.forEach((function(e){return e()}))}}))}(e,(function(){return eh.update(r,!1,!0)})),n}(e,(function(){n.length=0;for(var r=e.length,i=0;i<r;i++)n[i]=e[i].get();return t(n)}))}function mv(e,t){return void 0===t&&(t=0),Hc(e)?e:pv(t)}var gv={Group:(0,s.forwardRef)((function(e,t){var n=e.children,r=e.as,i=void 0===r?"ul":r,o=e.axis,a=void 0===o?"y":o,l=e.onReorder,u=e.values,c=it(e,["children","as","axis","onReorder","values"]),d=Cc((function(){return cv(i)})),f=[],p=(0,s.useRef)(!1);Boolean(u);var h={axis:a,registerItem:function(e,t){t&&-1===f.findIndex((function(t){return e===t.value}))&&(f.push({value:e,layout:t[a]}),f.sort(fv))},updateOrder:function(e,t,n){if(!p.current){var r=function(e,t,n,r){if(!r)return e;var i=e.findIndex((function(e){return e.value===t}));if(-1===i)return e;var o=r>0?1:-1,a=e[i+o];if(!a)return e;var s=e[i],l=a.layout,u=Pf(l.min,l.max,.5);return 1===o&&s.layout.max+n>u||-1===o&&s.layout.min+n<u?function(e,t,n){var r=ot(e).slice(0),i=t<0?r.length+t:t;if(i>=0&&i<r.length){var o=n<0?r.length+n:n,a=ot(r.splice(t,1),1)[0];r.splice(o,0,a)}return r}(e,i,i+o):e}(f,e,t,n);f!==r&&(p.current=!0,l(r.map(dv).filter((function(e){return-1!==u.indexOf(e)}))))}}};return(0,s.useEffect)((function(){p.current=!1})),s.createElement(d,rt({},c,{ref:t}),s.createElement(tc.Provider,{value:h},n))})),Item:(0,s.forwardRef)((function(e,t){var n,r,i,o,a,l=e.children,u=e.style,c=e.value,d=e.as,f=void 0===d?"li":d,p=e.onDrag,h=e.layout,m=void 0===h||h,g=it(e,["children","style","value","as","onDrag","layout"]),v=Cc((function(){return cv(f)})),y=(0,s.useContext)(tc),b={x:mv(null==u?void 0:u.x),y:mv(null==u?void 0:u.y)},x=(n=[b.x,b.y],r=function(e){var t=ot(e,2),n=t[0],r=t[1];return n||r?1:"unset"},a="function"==typeof r?r:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r=!Array.isArray(e[0]),i=r?0:-1,o=e[0+i],a=e[1+i],s=e[2+i],l=e[3+i],u=pp(a,s,rt({mixer:(n=s[0],function(e){return"object"==typeof e&&e.mix}(n)?n.mix:void 0)},l));return r?u(o):u}(r,i,o),Array.isArray(n)?hv(n,a):hv([n],(function(e){var t=ot(e,1)[0];return a(t)}))),E=(0,s.useRef)(null);Boolean(y);var w=y,k=w.axis,C=w.registerItem,S=w.updateOrder;return(0,s.useEffect)((function(){C(c,E.current)}),[y]),s.createElement(v,rt({drag:k},g,{dragSnapToOrigin:!0,style:rt(rt({},u),{x:b.x,y:b.y,zIndex:x}),layout:m,onDrag:function(e,t){var n=t.velocity;n[k]&&S(c,b[k].get(),n[k]),null==p||p(e,t)},onLayoutMeasure:function(e){E.current=e},ref:t}),l)}))},[vv,yv]=ye("Tooltip",[vi]),bv=vi(),xv="TooltipProvider",Ev=700,wv="tooltip.open",[kv,Cv]=vv(xv),Sv=e=>{const{__scopeTooltip:t,delayDuration:n=Ev,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[l,u]=s.useState(!0),c=s.useRef(!1),d=s.useRef(0);return s.useEffect((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),(0,o.jsx)(kv,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:s.useCallback((()=>{window.clearTimeout(d.current),u(!1)}),[]),onClose:s.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback((e=>{c.current=e}),[]),disableHoverableContent:i,children:a})};Sv.displayName=xv;var Tv="Tooltip",[Nv,_v]=vv(Tv),Dv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:u}=e,c=Cv(Tv,e.__scopeTooltip),d=bv(t),[f,p]=s.useState(null),h=ke(),m=s.useRef(0),g=l??c.disableHoverableContent,v=u??c.delayDuration,y=s.useRef(!1),[b=!1,x]=Se({prop:r,defaultProp:i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(wv))):c.onClose(),a?.(e)}}),E=s.useMemo((()=>b?y.current?"delayed-open":"instant-open":"closed"),[b]),w=s.useCallback((()=>{window.clearTimeout(m.current),m.current=0,y.current=!1,x(!0)}),[x]),k=s.useCallback((()=>{window.clearTimeout(m.current),m.current=0,x(!1)}),[x]),C=s.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{y.current=!0,x(!0),m.current=0}),v)}),[v,x]);return s.useEffect((()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)}),[]),(0,o.jsx)(Ii,{...d,children:(0,o.jsx)(Nv,{scope:t,contentId:h,open:b,stateAttribute:E,trigger:f,onTriggerChange:p,onTriggerEnter:s.useCallback((()=>{c.isOpenDelayed?C():w()}),[c.isOpenDelayed,C,w]),onTriggerLeave:s.useCallback((()=>{g?k():(window.clearTimeout(m.current),m.current=0)}),[k,g]),onOpen:w,onClose:k,disableHoverableContent:g,children:n})})};Dv.displayName=Tv;var Av="TooltipTrigger",Ov=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,i=_v(Av,n),a=Cv(Av,n),l=bv(n),u=ve(t,s.useRef(null),i.onTriggerChange),c=s.useRef(!1),d=s.useRef(!1),f=s.useCallback((()=>c.current=!1),[]);return s.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),(0,o.jsx)(Fi,{asChild:!0,...l,children:(0,o.jsx)(Oe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:he(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),d.current=!0))})),onPointerLeave:he(e.onPointerLeave,(()=>{i.onTriggerLeave(),d.current=!1})),onPointerDown:he(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:he(e.onFocus,(()=>{c.current||i.onOpen()})),onBlur:he(e.onBlur,i.onClose),onClick:he(e.onClick,i.onClose)})})}));Ov.displayName=Av;var Lv="TooltipPortal",[Iv,Fv]=vv(Lv,{forceMount:void 0}),Mv=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=_v(Lv,t);return(0,o.jsx)(Iv,{scope:t,forceMount:n,children:(0,o.jsx)(Qe,{present:n||a.open,children:(0,o.jsx)(Ye,{asChild:!0,container:i,children:r})})})};Mv.displayName=Lv;var Rv="TooltipContent",Pv=s.forwardRef(((e,t)=>{const n=Fv(Rv,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,s=_v(Rv,e.__scopeTooltip);return(0,o.jsx)(Qe,{present:r||s.open,children:s.disableHoverableContent?(0,o.jsx)(Uv,{side:i,...a,ref:t}):(0,o.jsx)(jv,{side:i,...a,ref:t})})})),jv=s.forwardRef(((e,t)=>{const n=_v(Rv,e.__scopeTooltip),r=Cv(Rv,e.__scopeTooltip),i=s.useRef(null),a=ve(t,i),[l,u]=s.useState(null),{trigger:c,onClose:d}=n,f=i.current,{onPointerInTransitChange:p}=r,h=s.useCallback((()=>{u(null),p(!1)}),[p]),m=s.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())]);u(o),p(!0)}),[p]);return s.useEffect((()=>()=>h()),[h]),s.useEffect((()=>{if(c&&f){const e=e=>m(e,f),t=e=>m(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[c,f,m,h]),s.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||f?.contains(t),i=!function(e,t){const{x:n,y:r}=e;let i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}(n,l);r?h():i&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,f,l,d,h]),(0,o.jsx)(Uv,{...e,ref:a})})),[Vv,Bv]=vv(Tv,{isInside:!1}),Uv=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...u}=e,c=_v(Rv,n),d=bv(n),{onClose:f}=c;return s.useEffect((()=>(document.addEventListener(wv,f),()=>document.removeEventListener(wv,f))),[f]),s.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,f]),(0,o.jsx)(Re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,o.jsxs)(Mi,{"data-state":c.stateAttribute,...d,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,o.jsx)(De,{children:r}),(0,o.jsx)(Vv,{scope:n,isInside:!0,children:(0,o.jsx)(jn,{id:c.contentId,role:"tooltip",children:i||r})})]})})}));Pv.displayName=Rv;var zv="TooltipArrow";s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,i=bv(n);return Bv(zv,n).isInside?null:(0,o.jsx)(Ri,{...i,...r,ref:t})})).displayName=zv;var Hv=Sv,qv=Dv,$v=Ov,Wv=Mv,Gv=Pv;function Kv(e,t,n){let r,i=n.initialDeps??[];return()=>{var o,a,s,l;let u;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(u=Date.now());const c=e();if(c.length===i.length&&!c.some(((e,t)=>i[t]!==e)))return r;let d;if(i=c,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(d=Date.now()),r=t(...c),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-u))/100,t=Math.round(100*(Date.now()-d))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}}function Yv(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const Qv=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,i)),n)}},Xv=e=>e,Zv=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},Jv=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver((t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(n.getBoundingClientRect())};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},ey={passive:!0},ty="undefined"==typeof window||"onscrollend"in window,ny=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&ty?()=>{}:Qv(r,(()=>{t(i,!1)}),e.options.isScrollingResetDelay),a=r=>()=>{const{horizontal:a,isRtl:s}=e.options;i=a?n.scrollLeft*(s?-1:1):n.scrollTop,o(),t(i,r)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,ey);const u=e.options.useScrollendEvent&&ty;return u&&n.addEventListener("scrollend",l,ey),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},ry=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},iy=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class oy{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()}))})):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Xv,rangeExtractor:Zv,onChange:()=>{},measureElement:ry,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=Kv((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(n.has(t.lane))continue;const o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=Kv((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i})),{key:!1}),this.getMeasurements=Kv((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,a);for(let i=a;i<e;i++){const e=r(i),a=1===this.options.lanes?s[i-1]:this.getFurthestMeasurement(s,i),l=a?a.end+this.options.gap:t+n,u=o.get(e),c="number"==typeof u?u:this.options.estimateSize(i),d=l+c,f=a?a.lane:i%this.options.lanes;s[i]={index:i,start:l,size:c,end:d,key:e,lane:f}}return this.measurementsCache=s,s}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=Kv((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1;let o=ay(0,i,(t=>e[t].start),n),a=o;for(;a<i&&e[a].end<n+t;)a++;return r>1&&(o=Math.max(0,o-o%r),a=Math.min(i,a+(r-1-a%r))),{startIndex:o,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Kv((()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]}),((e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const i=r.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=Kv((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,i=e.length;r<i;r++){const i=t[e[r]];n.push(i)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Yv(t[ay(0,t.length-1,(e=>Yv(t[e]).start),e)])},this.getOffsetForAlignment=(e,t,n=0)=>{const r=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const o=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-r;return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end>=i+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}const o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(e,t);if(!r)return;const[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){const[t]=Yv(this.getOffsetForIndex(e,o));((e,t)=>Math.abs(e-t)<1)(t,this.getScrollOffset())||this.scrollToIndex(e,{align:o,behavior:n})}else this.scrollToIndex(e,{align:o,behavior:n})})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;return n=0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map((e=>e.end))),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const ay=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0},sy="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;var ly=Object.defineProperty,uy=(e,t,n)=>(((e,t,n)=>{t in e?ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let cy=new class{constructor(){uy(this,"current",this.detect()),uy(this,"handoffState","pending"),uy(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},dy=(e,t)=>{cy.isServer?(0,s.useEffect)(e,t):(0,s.useLayoutEffect)(e,t)};function fy(e){let t=(0,s.useRef)(e);return dy((()=>{t.current=e}),[e]),t}function py(e,t){let[n,r]=(0,s.useState)(e),i=fy(e);return dy((()=>r(i.current)),[i,r,...t]),n}let hy=function(e){let t=fy(e);return s.useCallback(((...e)=>t.current(...e)),[t])};function my(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=my();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function gy(){let[e]=(0,s.useState)(my);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}var vy;let yy=null!=(vy=s.useId)?vy:function(){let e=function(){let e=function(){let e="undefined"==typeof document;return l.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=s.useState(cy.isHandoffComplete);return t&&!1===cy.isHandoffComplete&&n(!1),s.useEffect((()=>{!0!==t&&n(!0)}),[t]),s.useEffect((()=>cy.handoff()),[]),!e&&t}(),[t,n]=s.useState(e?()=>cy.nextId():null);return dy((()=>{null===t&&n(cy.nextId())}),[t]),null!=t?""+t:void 0};function by(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,by),r}function xy(e){return cy.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Ey=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var wy,ky,Cy,Sy=((Cy=Sy||{})[Cy.First=1]="First",Cy[Cy.Previous=2]="Previous",Cy[Cy.Next=4]="Next",Cy[Cy.Last=8]="Last",Cy[Cy.WrapAround=16]="WrapAround",Cy[Cy.NoScroll=32]="NoScroll",Cy),Ty=((ky=Ty||{})[ky.Error=0]="Error",ky[ky.Overflow=1]="Overflow",ky[ky.Success=2]="Success",ky[ky.Underflow=3]="Underflow",ky),Ny=((wy=Ny||{})[wy.Previous=-1]="Previous",wy[wy.Next=1]="Next",wy),_y=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(_y||{});var Dy=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Dy||{});function Ay(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)}function Oy(e,t,n){let r=fy(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Ly(e,t,n=!0){let r=(0,s.useRef)(!1);function i(n,i){if(!r.current||n.defaultPrevented)return;let o=i(n);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!function(e,t=0){var n;return e!==(null==(n=xy(e))?void 0:n.body)&&by(t,{0:()=>e.matches(Ey),1(){let t=e;for(;null!==t;){if(t.matches(Ey))return!0;t=t.parentElement}return!1}})}(o,_y.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}(0,s.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let o=(0,s.useRef)(null);Oy("pointerdown",(e=>{var t,n;r.current&&(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Oy("mousedown",(e=>{var t,n;r.current&&(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Oy("click",(e=>{Ay()||o.current&&(i(e,(()=>o.current)),o.current=null)}),!0),Oy("touchend",(e=>i(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let r=fy((e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))));(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",0,!0)}function Iy(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Fy(e,t){let[n,r]=(0,s.useState)((()=>Iy(e)));return dy((()=>{r(Iy(e))}),[e.type,e.as]),dy((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0)),["textarea","input"].join(",");let My=Symbol();function Ry(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=hy((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[My])))?void 0:n}function Py(e){return[e.screenX,e.screenY]}function jy(e,t){let n=(0,s.useRef)([]),r=hy(e);(0,s.useEffect)((()=>{let e=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let i=r(t,e);return n.current=t,i}}),[r,...t])}function Vy(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var By,Uy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Uy||{}),zy=((By=zy||{})[By.Unmount=0]="Unmount",By[By.Hidden=1]="Hidden",By);function Hy({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:$y;let l=Wy(t,e);if(o)return qy(l,n,r,a,s);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=l;if(e)return qy(t,n,r,a,s)}if(1&u){let{unmount:e=!0,...t}=l;return by(e?0:1,{0:()=>null,1:()=>qy({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return qy(l,n,r,a,s)}function qy(e,t={},n,r,i){let{as:o=n,children:a,refName:l="ref",...u}=Yy(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let f={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r);e&&(f["data-headlessui-state"]=n.join(" "))}if(o===s.Fragment&&Object.keys(Ky(u)).length>0){if(!(0,s.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Vy(null==e?void 0:e.className(...t),u.className):Vy(null==e?void 0:e.className,u.className),n=t?{className:t}:{};return(0,s.cloneElement)(d,Object.assign({},Wy(d.props,Ky(Yy(u,["ref"]))),f,c,{ref:i(d.ref,c.ref)},n))}return(0,s.createElement)(o,Object.assign({},Yy(u,["ref"]),o!==s.Fragment&&c,o!==s.Fragment&&f),d)}function $y(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Wy(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Gy(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ky(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Yy(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var Qy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Qy||{});let Xy=Gy((function(e,t){var n;let{features:r=1,...i}=e;return Hy({ourProps:{ref:t,"aria-hidden":!(2&~r)||(null!=(n=i["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}},theirProps:i,slot:{},defaultTag:"div",name:"Hidden"})})),Zy=(0,s.createContext)(null);Zy.displayName="OpenClosedContext";var Jy=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Jy||{});function eb({value:e,children:t}){return s.createElement(Zy.Provider,{value:e},t)}let tb=[];!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&tb[0]!==e.target&&(tb.unshift(e.target),tb=tb.filter((e=>null!=e&&e.isConnected)),tb.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}();var nb,rb=((nb=rb||{})[nb.First=0]="First",nb[nb.Previous=1]="Previous",nb[nb.Next=2]="Next",nb[nb.Last=3]="Last",nb[nb.Specific=4]="Specific",nb[nb.Nothing=5]="Nothing",nb);function ib(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function ob(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))sb(n,ab(t,r),i);return n}function ab(e,t){return e?e+"["+t+"]":t}function sb(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())sb(e,ab(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):ob(n,t,e)}var lb,ub,cb=((lb=cb||{}).Space=" ",lb.Enter="Enter",lb.Escape="Escape",lb.Backspace="Backspace",lb.Delete="Delete",lb.ArrowLeft="ArrowLeft",lb.ArrowUp="ArrowUp",lb.ArrowRight="ArrowRight",lb.ArrowDown="ArrowDown",lb.Home="Home",lb.End="End",lb.PageUp="PageUp",lb.PageDown="PageDown",lb.Tab="Tab",lb),db=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(db||{}),fb=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(fb||{}),pb=((ub=pb||{})[ub.Pointer=0]="Pointer",ub[ub.Focus=1]="Focus",ub[ub.Other=2]="Other",ub),hb=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(hb||{});function mb(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),i=r.length>0&&null!==r[0].dataRef.current.order?r.sort(((e,t)=>e.dataRef.current.order-t.dataRef.current.order)):function(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(r,(e=>e.dataRef.current.domRef.current)),o=n?i.indexOf(n):null;return-1===o&&(o=null),{options:i,activeOptionIndex:o}}let gb={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var n,r,i,o,a;if(null!=(n=e.dataRef.current)&&n.disabled||null!=(r=e.dataRef.current)&&r.optionsRef.current&&(null==(i=e.dataRef.current)||!i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let n=t.focus===rb.Specific?t.idx:ib(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var t,n;return null!=(n=null!=(t=e.activeOptionIndex)?t:e.virtual.options.findIndex((t=>!e.virtual.disabled(t))))?n:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),r=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===n&&e.activationTrigger===r?e:{...e,activeOptionIndex:n,activationTrigger:r}}let s=mb(e);if(null===s.activeOptionIndex){let e=s.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(s.activeOptionIndex=e)}let l=t.focus===rb.Specific?t.idx:ib(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),u=null!=(a=t.trigger)?a:2;return e.activeOptionIndex===l&&e.activationTrigger===u?e:{...e,...s,activeOptionIndex:l,activationTrigger:u}},3:(e,t)=>{var n,r,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,a=mb(e,(e=>(e.push(o),e)));null===e.activeOptionIndex&&null!=(r=e.dataRef.current)&&r.isSelected(t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(o));let s={...e,...a,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(s.activeOptionIndex=0),s},4:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter((e=>e.id!==t.id))};let r=mb(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...r,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n;if((null==(n=e.virtual)?void 0:n.options)===t.options)return e;let r=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);r=-1!==n?n:null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:t.options})}}},vb=(0,s.createContext)(null);function yb(e){let t=(0,s.useContext)(vb);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,yb),t}return t}vb.displayName="ComboboxActionsContext";let bb=(0,s.createContext)(null);function xb(e){var t;let n=wb("VirtualProvider"),[r,i]=(0,s.useMemo)((()=>{let e=n.optionsRef.current;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]}),[n.optionsRef.current]),o=(u={scrollPaddingStart:r,scrollPaddingEnd:i,count:n.virtual.options.length,estimateSize:()=>40,getScrollElement(){var e;return null!=(e=n.optionsRef.current)?e:null},overscan:12},function(e){const t=s.useReducer((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,Te.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,r)}},[r]=s.useState((()=>new oy(n)));return r.setOptions(n),sy((()=>r._didMount()),[]),sy((()=>r._willUpdate())),r}({observeElementRect:Jv,observeElementOffset:ny,scrollToFn:iy,...u})),[a,l]=(0,s.useState)(0);var u;return dy((()=>{l((e=>e+1))}),[null==(t=n.virtual)?void 0:t.options]),s.createElement(bb.Provider,{value:o},s.createElement("div",{style:{position:"relative",width:"100%",height:`${o.getTotalSize()}px`},ref:e=>{if(e){if("undefined"!=typeof process&&void 0!==process.env.JEST_WORKER_ID||0===n.activationTrigger)return;null!==n.activeOptionIndex&&n.virtual.options.length>n.activeOptionIndex&&o.scrollToIndex(n.activeOptionIndex)}}},o.getVirtualItems().map((t=>{var r;return s.createElement(s.Fragment,{key:t.key},s.cloneElement(null==(r=e.children)?void 0:r.call(e,{option:n.virtual.options[t.index],open:0===n.comboboxState}),{key:`${a}-${t.key}`,"data-index":t.index,"aria-setsize":n.virtual.options.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))}))))}let Eb=(0,s.createContext)(null);function wb(e){let t=(0,s.useContext)(Eb);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wb),t}return t}function kb(e,t){return by(t.type,gb,e,t)}Eb.displayName="ComboboxDataContext";let Cb=s.Fragment,Sb=Uy.RenderStrategy|Uy.Static,Tb=Gy((function(e,t){let{value:n,defaultValue:r,onChange:i,form:o,name:a,by:l=null,disabled:u=!1,__demoMode:c=!1,nullable:d=!1,multiple:f=!1,immediate:p=!1,virtual:h=null,...m}=e,g=null,[v=(f?[]:void 0),y]=function(e,t,n){let[r,i]=(0,s.useState)(n),o=void 0!==e,a=(0,s.useRef)(o),l=(0,s.useRef)(!1),u=(0,s.useRef)(!1);return!o||a.current||l.current?!o&&a.current&&!u.current&&(u.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:r,hy((e=>(o||i(e),null==t?void 0:t(e))))]}(n,i,r),[b,x]=(0,s.useReducer)(kb,{dataRef:(0,s.createRef)(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),E=(0,s.useRef)(!1),w=(0,s.useRef)({static:!1,hold:!1}),k=(0,s.useRef)(null),C=(0,s.useRef)(null),S=(0,s.useRef)(null),T=(0,s.useRef)(null),N=hy("string"==typeof l?(e,t)=>{let n=l;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:null!=l?l:(e,t)=>e===t),_=hy((e=>b.options.findIndex((t=>N(t.dataRef.current.value,e))))),D=(0,s.useCallback)((e=>by(O.mode,{1:()=>v.some((t=>N(t,e))),0:()=>N(v,e)})),[v]),A=hy((e=>b.activeOptionIndex===_(e))),O=(0,s.useMemo)((()=>({...b,immediate:!1,optionsPropsRef:w,labelRef:k,inputRef:C,buttonRef:S,optionsRef:T,value:v,defaultValue:r,disabled:u,mode:f?1:0,virtual:b.virtual,get activeOptionIndex(){if(E.current&&null===b.activeOptionIndex&&b.options.length>0){let e=b.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return b.activeOptionIndex},calculateIndex:_,compare:N,isSelected:D,isActive:A,nullable:d,__demoMode:c})),[v,r,u,f,d,c,b,g]);dy((()=>{}),[g,void 0]),dy((()=>{b.dataRef.current=O}),[O]),Ly([O.buttonRef,O.inputRef,O.optionsRef],(()=>U.closeCombobox()),0===O.comboboxState);let L=(0,s.useMemo)((()=>{var e,t,n;return{open:0===O.comboboxState,disabled:u,activeIndex:O.activeOptionIndex,activeOption:null===O.activeOptionIndex?null:O.virtual?O.virtual.options[null!=(e=O.activeOptionIndex)?e:0]:null!=(n=null==(t=O.options[O.activeOptionIndex])?void 0:t.dataRef.current.value)?n:null,value:v}}),[O,u,v]),I=hy((()=>{if(null!==O.activeOptionIndex){if(O.virtual)V(O.virtual.options[O.activeOptionIndex]);else{let{dataRef:e}=O.options[O.activeOptionIndex];V(e.current.value)}U.goToOption(rb.Specific,O.activeOptionIndex)}})),F=hy((()=>{x({type:0}),E.current=!0})),M=hy((()=>{x({type:1}),E.current=!1})),R=hy(((e,t,n)=>(E.current=!1,e===rb.Specific?x({type:2,focus:rb.Specific,idx:t,trigger:n}):x({type:2,focus:e,trigger:n})))),P=hy(((e,t)=>(x({type:3,payload:{id:e,dataRef:t}}),()=>{O.isActive(t.current.value)&&(E.current=!0),x({type:4,id:e})}))),j=hy((e=>(x({type:5,id:e}),()=>x({type:5,id:null})))),V=hy((e=>by(O.mode,{0:()=>null==y?void 0:y(e),1(){let t=O.value.slice(),n=t.findIndex((t=>N(t,e)));return-1===n?t.push(e):t.splice(n,1),null==y?void 0:y(t)}}))),B=hy((e=>{x({type:6,trigger:e})})),U=(0,s.useMemo)((()=>({onChange:V,registerOption:P,registerLabel:j,goToOption:R,closeCombobox:M,openCombobox:F,setActivationTrigger:B,selectActiveOption:I})),[]),z=null===t?{}:{ref:t},H=(0,s.useRef)(null),q=gy();return(0,s.useEffect)((()=>{H.current&&void 0!==r&&q.addEventListener(H.current,"reset",(()=>{null==y||y(r)}))}),[H,y]),s.createElement(vb.Provider,{value:U},s.createElement(Eb.Provider,{value:O},s.createElement(eb,{value:by(O.comboboxState,{0:Jy.Open,1:Jy.Closed})},null!=a&&null!=v&&ob({[a]:v}).map((([e,t],n)=>s.createElement(Xy,{features:Qy.Hidden,ref:0===n?e=>{var t;H.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ky({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:u,name:e,value:t})}))),Hy({ourProps:z,theirProps:m,slot:L,defaultTag:Cb,name:"Combobox"}))))})),Nb=Gy((function(e,t){var n;let r=wb("Combobox.Button"),i=yb("Combobox.Button"),o=Ry(r.buttonRef,t),a=yy(),{id:l=`headlessui-combobox-button-${a}`,...u}=e,c=gy(),d=hy((e=>{switch(e.key){case cb.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&i.openCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case cb.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(i.openCombobox(),c.nextFrame((()=>{r.value||i.goToOption(rb.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case cb.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),i.closeCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),f=hy((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?i.closeCombobox():(e.preventDefault(),i.openCombobox()),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),p=py((()=>{if(r.labelId)return[r.labelId,l].join(" ")}),[r.labelId,l]),h=(0,s.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return Hy({ourProps:{ref:o,id:l,type:Fy(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":0===r.comboboxState,"aria-labelledby":p,disabled:r.disabled,onClick:f,onKeyDown:d},theirProps:u,slot:h,defaultTag:"button",name:"Combobox.Button"})})),_b=Gy((function(e,t){var n,r,i,o,a;let l=yy(),{id:u=`headlessui-combobox-input-${l}`,onChange:c,displayValue:d,type:f="text",...p}=e,h=wb("Combobox.Input"),m=yb("Combobox.Input"),g=Ry(h.inputRef,t),v=function(...e){return(0,s.useMemo)((()=>xy(...e)),[...e])}(h.inputRef),y=(0,s.useRef)(!1),b=gy(),x=hy((()=>{m.onChange(null),h.optionsRef.current&&(h.optionsRef.current.scrollTop=0),m.goToOption(rb.Nothing)})),E=function(){var e;return"function"==typeof d&&void 0!==h.value?null!=(e=d(h.value))?e:"":"string"==typeof h.value?h.value:""}();jy((([e,t],[n,r])=>{if(y.current)return;let i=h.inputRef.current;i&&((0===r&&1===t||e!==n)&&(i.value=e),requestAnimationFrame((()=>{if(y.current||!i||(null==v?void 0:v.activeElement)!==i)return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&i.setSelectionRange(i.value.length,i.value.length)})))}),[E,h.comboboxState,v]),jy((([e],[t])=>{if(0===e&&1===t){if(y.current)return;let e=h.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,r,i):e.setSelectionRange(n,r)}}),[h.comboboxState]);let w=(0,s.useRef)(!1),k=hy((()=>{w.current=!0})),C=hy((()=>{b.nextFrame((()=>{w.current=!1}))})),S=hy((e=>{switch(y.current=!0,e.key){case cb.Enter:if(y.current=!1,0!==h.comboboxState||w.current)return;if(e.preventDefault(),e.stopPropagation(),null===h.activeOptionIndex)return void m.closeCombobox();m.selectActiveOption(),0===h.mode&&m.closeCombobox();break;case cb.ArrowDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),by(h.comboboxState,{0:()=>m.goToOption(rb.Next),1:()=>m.openCombobox()});case cb.ArrowUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),by(h.comboboxState,{0:()=>m.goToOption(rb.Previous),1:()=>{m.openCombobox(),b.nextFrame((()=>{h.value||m.goToOption(rb.Last)}))}});case cb.Home:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(rb.First);case cb.PageUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(rb.First);case cb.End:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(rb.Last);case cb.PageDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(rb.Last);case cb.Escape:return y.current=!1,0!==h.comboboxState?void 0:(e.preventDefault(),h.optionsRef.current&&!h.optionsPropsRef.current.static&&e.stopPropagation(),h.nullable&&0===h.mode&&null===h.value&&x(),m.closeCombobox());case cb.Tab:if(y.current=!1,0!==h.comboboxState)return;0===h.mode&&1!==h.activationTrigger&&m.selectActiveOption(),m.closeCombobox()}})),T=hy((e=>{null==c||c(e),h.nullable&&0===h.mode&&""===e.target.value&&x(),m.openCombobox()})),N=hy((e=>{var t,n,r;let i=null!=(t=e.relatedTarget)?t:tb.find((t=>t!==e.currentTarget));if(y.current=!1,!(null!=(n=h.optionsRef.current)&&n.contains(i)||null!=(r=h.buttonRef.current)&&r.contains(i)||0!==h.comboboxState))return e.preventDefault(),0===h.mode&&(h.nullable&&null===h.value?x():1!==h.activationTrigger&&m.selectActiveOption()),m.closeCombobox()})),_=hy((e=>{var t,n,r;let i=null!=(t=e.relatedTarget)?t:tb.find((t=>t!==e.currentTarget));null!=(n=h.buttonRef.current)&&n.contains(i)||null!=(r=h.optionsRef.current)&&r.contains(i)||h.disabled||h.immediate&&0!==h.comboboxState&&(m.openCombobox(),b.nextFrame((()=>{m.setActivationTrigger(1)})))})),D=py((()=>{if(h.labelId)return[h.labelId].join(" ")}),[h.labelId]),A=(0,s.useMemo)((()=>({open:0===h.comboboxState,disabled:h.disabled})),[h]),O={ref:g,id:u,role:"combobox",type:f,"aria-controls":null==(n=h.optionsRef.current)?void 0:n.id,"aria-expanded":0===h.comboboxState,"aria-activedescendant":null===h.activeOptionIndex?void 0:h.virtual?null==(r=h.options.find((e=>{var t;return!(null!=(t=h.virtual)&&t.disabled(e.dataRef.current.value))&&h.compare(e.dataRef.current.value,h.virtual.options[h.activeOptionIndex])})))?void 0:r.id:null==(i=h.options[h.activeOptionIndex])?void 0:i.id,"aria-labelledby":D,"aria-autocomplete":"list",defaultValue:null!=(a=null!=(o=e.defaultValue)?o:void 0!==h.defaultValue?null==d?void 0:d(h.defaultValue):null)?a:h.defaultValue,disabled:h.disabled,onCompositionStart:k,onCompositionEnd:C,onKeyDown:S,onChange:T,onFocus:_,onBlur:N};return Hy({ourProps:O,theirProps:p,slot:A,defaultTag:"input",name:"Combobox.Input"})})),Db=Gy((function(e,t){let n=yy(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,o=wb("Combobox.Label"),a=yb("Combobox.Label"),l=Ry(o.labelRef,t);dy((()=>a.registerLabel(r)),[r]);let u=hy((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,s.useMemo)((()=>({open:0===o.comboboxState,disabled:o.disabled})),[o]);return Hy({ourProps:{ref:l,id:r,onClick:u},theirProps:i,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Ab=Gy((function(e,t){let n=yy(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...o}=e,a=wb("Combobox.Options"),l=Ry(a.optionsRef,t),u=(0,s.useContext)(Zy),c=null!==u?(u&Jy.Open)===Jy.Open:0===a.comboboxState;dy((()=>{var t;a.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[a.optionsPropsRef,e.static]),dy((()=>{a.optionsPropsRef.current.hold=i}),[a.optionsPropsRef,i]),function({container:e,accept:t,walk:n,enabled:r=!0}){let i=(0,s.useRef)(t),o=(0,s.useRef)(n);(0,s.useEffect)((()=>{i.current=t,o.current=n}),[t,n]),dy((()=>{if(!e||!r)return;let t=xy(e);if(!t)return;let n=i.current,a=o.current,s=Object.assign((e=>n(e)),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[e,r,i,o])}({container:a.optionsRef.current,enabled:0===a.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=py((()=>{var e,t;return null!=(t=a.labelId)?t:null==(e=a.buttonRef.current)?void 0:e.id}),[a.labelId,a.buttonRef.current]),f=(0,s.useMemo)((()=>({open:0===a.comboboxState,option:void 0})),[a]),p={"aria-labelledby":d,role:"listbox","aria-multiselectable":1===a.mode||void 0,id:r,ref:l};return a.virtual&&0===a.comboboxState&&Object.assign(o,{children:s.createElement(xb,null,o.children)}),Hy({ourProps:p,theirProps:o,slot:f,defaultTag:"ul",features:Sb,visible:c,name:"Combobox.Options"})})),Ob=Gy((function(e,t){var n;let r=yy(),{id:i=`headlessui-combobox-option-${r}`,disabled:o=!1,value:a,order:l=null,...u}=e,c=wb("Combobox.Option"),d=yb("Combobox.Option"),f=c.virtual?c.activeOptionIndex===c.calculateIndex(a):null!==c.activeOptionIndex&&(null==(n=c.options[c.activeOptionIndex])?void 0:n.id)===i,p=c.isSelected(a),h=(0,s.useRef)(null),m=fy({disabled:o,value:a,domRef:h,order:l}),g=(0,s.useContext)(bb),v=Ry(t,h,g?g.measureElement:null),y=hy((()=>d.onChange(a)));dy((()=>d.registerOption(i,m)),[m,i]);let b=(0,s.useRef)(!(c.virtual||c.__demoMode));dy((()=>{if(!c.virtual||!c.__demoMode)return;let e=my();return e.requestAnimationFrame((()=>{b.current=!0})),e.dispose}),[c.virtual,c.__demoMode]),dy((()=>{if(!b.current||0!==c.comboboxState||!f||0===c.activationTrigger)return;let e=my();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[h,f,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let x=hy((e=>{var t;if(o||null!=(t=c.virtual)&&t.disabled(a))return e.preventDefault();y(),Ay()||requestAnimationFrame((()=>{var e;return null==(e=c.inputRef.current)?void 0:e.focus({preventScroll:!0})})),0===c.mode&&requestAnimationFrame((()=>d.closeCombobox()))})),E=hy((()=>{var e;if(o||null!=(e=c.virtual)&&e.disabled(a))return d.goToOption(rb.Nothing);let t=c.calculateIndex(a);d.goToOption(rb.Specific,t)})),w=function(){let e=(0,s.useRef)([-1,-1]);return{wasMoved(t){let n=Py(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Py(t)}}}(),k=hy((e=>w.update(e))),C=hy((e=>{var t;if(!w.wasMoved(e)||o||null!=(t=c.virtual)&&t.disabled(a)||f)return;let n=c.calculateIndex(a);d.goToOption(rb.Specific,n,0)})),S=hy((e=>{var t;w.wasMoved(e)&&(o||null!=(t=c.virtual)&&t.disabled(a)||f&&(c.optionsPropsRef.current.hold||d.goToOption(rb.Nothing)))})),T=(0,s.useMemo)((()=>({active:f,selected:p,disabled:o})),[f,p,o]);return Hy({ourProps:{id:i,ref:v,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":p,disabled:void 0,onClick:x,onFocus:E,onPointerEnter:k,onMouseEnter:k,onPointerMove:C,onMouseMove:C,onPointerLeave:S,onMouseLeave:S},theirProps:u,slot:T,defaultTag:"li",name:"Combobox.Option"})})),Lb=Object.assign(Tb,{Input:_b,Button:Nb,Label:Db,Options:Ab,Option:Ob});function Ib(e){const t=(0,s.createContext)(null);return t.displayName=e,t}function Fb(e){function t(t){var n;const r=(0,s.useContext)(e);if(null===r&&(null==t?void 0:t.nonNull))throw new Error(`Tried to use \`${(null==(n=t.caller)?void 0:n.name)||"a component"}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return r}return Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}const Mb=Ib("StorageContext");function Rb(e){const t=(0,a.c)(8),n=(0,s.useRef)(!0);let r;t[0]!==e.storage?(r=()=>new ae(e.storage),t[0]=e.storage,t[1]=r):r=t[1];const[i,l]=(0,s.useState)(r);let u,c,d;return t[2]!==e.storage?(u=()=>{n.current?n.current=!1:l(new ae(e.storage))},c=[e.storage],t[2]=e.storage,t[3]=u,t[4]=c):(u=t[3],c=t[4]),(0,s.useEffect)(u,c),t[5]!==e.children||t[6]!==i?(d=(0,o.jsx)(Mb.Provider,{value:i,children:e.children}),t[5]=e.children,t[6]=i,t[7]=d):d=t[7],d}const Pb=Fb(Mb),jb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),s.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})))),Vb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})))),Bb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})))),Ub=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})))),zb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M1 1L12.9998 12.9997"}),s.createElement("path",{d:"M13 1L1.00079 13.0003"})))),Hb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),s.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})))),qb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),s.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),s.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})))),$b=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),s.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})))),Wb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),s.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),s.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})))),Gb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})))),Kb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})))),Yb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),s.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})))),Qb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})))),Xb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),s.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})))),Zb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),s.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),s.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})))),Jb=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),s.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})))),ex=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})))),tx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),s.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})))),nx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})))),rx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),s.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})))),ix=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})))),ox=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})))),ax=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),s.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),s.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),s.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),s.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})))),sx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),s.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),s.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),s.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})))),lx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),s.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})))),ux=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})))),cx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})))),dx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})))),fx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})))),px=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})))),hx=mx((({title:e,titleId:t,...n})=>s.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?s.createElement("title",{id:t},e):null,s.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),s.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))));function mx(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon";function n(n){const r=(0,a.c)(2);let i;return r[0]!==n?(i=(0,o.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i):i=r[1],i}return n.displayName=e.name,n}const gx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(6);let r,i;return n[0]!==e.className?(r=c("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,o.jsx)("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i}));gx.displayName="UnStyledButton";const vx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(7);let r,i;return n[0]!==e.className||n[1]!==e.state?(r=c("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,o.jsx)("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i}));vx.displayName="Button";const yx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(6);let r,i;return n[0]!==e.className?(r=c("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,o.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i}));yx.displayName="ButtonGroup";const bx=(e,t)=>Object.entries(t).reduce(((e,[t,n])=>(e[t]=n,e)),e),xx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(8);let r,i,s,l;return n[0]!==e.className?(r=c("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(jn,{children:"Close dialog"}),s=(0,o.jsx)(zb,{}),n[2]=i,n[3]=s):(i=n[2],s=n[3]),n[4]!==e||n[5]!==t||n[6]!==r?(l=(0,o.jsx)(Rn,{asChild:!0,children:(0,o.jsxs)(gx,{...e,ref:t,type:"button",className:r,children:[i,s]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=l):l=n[7],l}));xx.displayName="Dialog.Close";const Ex=bx((function(e){const t=(0,a.c)(9);let n,r,i,s,l;return t[0]!==e?(({children:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(Ln,{className:"graphiql-dialog-overlay"}),t[3]=i):i=t[3],t[4]!==n?(s=(0,o.jsxs)(On,{children:[i,(0,o.jsx)(In,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=s):s=t[5],t[6]!==r||t[7]!==s?(l=(0,o.jsx)(Dn,{...r,children:s}),t[6]=r,t[7]=s,t[8]=l):l=t[8],l}),{Close:xx,Title:Fn,Trigger:An,Description:Mn}),wx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(6);let r,i;return n[0]!==e.className?(r=c("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,o.jsx)(Pa,{asChild:!0,children:(0,o.jsx)("button",{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i}));wx.displayName="DropdownMenuButton";const kx=bx(Ra,{Button:wx,Item:({className:e,children:t,...n})=>(0,o.jsx)(Ba,{className:c("graphiql-dropdown-item",e),...n,children:t}),Content:function(e){const t=(0,a.c)(14);let n,r,i,s,l;t[0]!==e?(({children:n,align:s,sideOffset:l,className:r,...i}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const u=void 0===s?"start":s,d=void 0===l?5:l;let f,p;return t[6]!==r?(f=c("graphiql-dropdown-content",r),t[6]=r,t[7]=f):f=t[7],t[8]!==u||t[9]!==n||t[10]!==i||t[11]!==d||t[12]!==f?(p=(0,o.jsx)(ja,{children:(0,o.jsx)(Va,{align:u,sideOffset:d,className:f,...i,children:n})}),t[8]=u,t[9]=n,t[10]=i,t[11]=d,t[12]=f,t[13]=p):p=t[13],p}}),Cx=new ec({breaks:!0,linkify:!0}),Sx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(18);let r,i,s,l;n[0]!==e?(({children:r,onlyShowFirstChild:i,type:l,...s}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=l):(r=n[1],i=n[2],s=n[3],l=n[4]);const u=`graphiql-markdown-${l}`,d=i&&"graphiql-markdown-preview";let f,p,h,m;return n[5]!==s.className||n[6]!==u||n[7]!==d?(f=c(u,d,s.className),n[5]=s.className,n[6]=u,n[7]=d,n[8]=f):f=n[8],n[9]!==r?(p=Cx.render(r),n[9]=r,n[10]=p):p=n[10],n[11]!==p?(h={__html:p},n[11]=p,n[12]=h):h=n[12],n[13]!==s||n[14]!==t||n[15]!==f||n[16]!==h?(m=(0,o.jsx)("div",{...s,ref:t,className:f,dangerouslySetInnerHTML:h}),n[13]=s,n[14]=t,n[15]=f,n[16]=h,n[17]=m):m=n[17],m}));Sx.displayName="MarkdownContent";const Tx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(6);let r,i;return n[0]!==e.className?(r=c("graphiql-spinner",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,o.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i}));Tx.displayName="Spinner";const Nx=bx((function(e){const t=(0,a.c)(10),{children:n,align:r,side:i,sideOffset:s,label:l}=e,u=void 0===r?"start":r,c=void 0===i?"bottom":i,d=void 0===s?5:s;let f,p,h;return t[0]!==n?(f=(0,o.jsx)($v,{asChild:!0,children:n}),t[0]=n,t[1]=f):f=t[1],t[2]!==u||t[3]!==l||t[4]!==c||t[5]!==d?(p=(0,o.jsx)(Wv,{children:(0,o.jsx)(Gv,{className:"graphiql-tooltip",align:u,side:c,sideOffset:d,children:l})}),t[2]=u,t[3]=l,t[4]=c,t[5]=d,t[6]=p):p=t[6],t[7]!==f||t[8]!==p?(h=(0,o.jsxs)(qv,{children:[f,p]}),t[7]=f,t[8]=p,t[9]=h):h=t[9],h}),{Provider:Hv}),_x=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(16);let r,i,s,l,u;n[0]!==e?(({isActive:s,value:u,children:r,className:i,...l}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=l,n[5]=u):(r=n[1],i=n[2],s=n[3],l=n[4],u=n[5]);const d=s?"true":void 0,f=s&&"graphiql-tab-active";let p,h;return n[6]!==i||n[7]!==f?(p=c("graphiql-tab",f,i),n[6]=i,n[7]=f,n[8]=p):p=n[8],n[9]!==r||n[10]!==l||n[11]!==t||n[12]!==d||n[13]!==p||n[14]!==u?(h=(0,o.jsx)(gv.Item,{...l,ref:t,value:u,"aria-selected":d,role:"tab",className:p,children:r}),n[9]=r,n[10]=l,n[11]=t,n[12]=d,n[13]=p,n[14]=u,n[15]=h):h=n[15],h}));_x.displayName="Tab";const Dx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(6);let r,i;return n[0]!==e.className?(r=c("graphiql-tab-button",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,o.jsx)(gx,{...e,ref:t,type:"button",className:r,children:e.children}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i}));Dx.displayName="Tab.Button";const Ax=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(7);let r,i,s;return n[0]!==e.className?(r=c("graphiql-tab-close",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(zb,{}),n[2]=i):i=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(s=(0,o.jsx)(Nx,{label:"Close Tab",children:(0,o.jsx)(gx,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:r,children:i})}),n[3]=e,n[4]=t,n[5]=r,n[6]=s):s=n[6],s}));Ax.displayName="Tab.Close";const Ox=bx(_x,{Button:Dx,Close:Ax}),Lx=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(15);let r,i,s,l,u,d,f;return n[0]!==e?(({values:u,onReorder:s,children:r,className:i,...l}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=l,n[5]=u):(r=n[1],i=n[2],s=n[3],l=n[4],u=n[5]),n[6]!==i?(d=c("graphiql-tabs",i),n[6]=i,n[7]=d):d=n[7],n[8]!==r||n[9]!==s||n[10]!==l||n[11]!==t||n[12]!==d||n[13]!==u?(f=(0,o.jsx)(gv.Group,{...l,ref:t,values:u,onReorder:s,axis:"x",role:"tablist",className:d,children:r}),n[8]=r,n[9]=s,n[10]=l,n[11]=t,n[12]=d,n[13]=u,n[14]=f):f=n[14],f}));Lx.displayName="Tabs";const Ix=Ib("HistoryContext");function Fx(e){const t=(0,a.c)(11),{maxHistoryLength:n,children:r}=e,i=void 0===n?Px:n,l=Pb();let u;t[0]!==i||t[1]!==l?(u=()=>new ue(l||new ae(null),i),t[0]=i,t[1]=l,t[2]=u):u=t[2];const[c]=(0,s.useState)(u);let d;t[3]!==c.queries?(d=()=>c.queries||[],t[3]=c.queries,t[4]=d):d=t[4];const[f,p]=(0,s.useState)(d);let h;t[5]!==c||t[6]!==f?(h={addToHistory(e){c.updateHistory(e),p(c.queries)},editLabel(e,t){c.editLabel(e,t),p(c.queries)},items:f,toggleFavorite(e){c.toggleFavorite(e),p(c.queries)},setActive:Mx,deleteFromHistory(e,t){c.deleteHistory(e,t),p(c.queries)}},t[5]=c,t[6]=f,t[7]=h):h=t[7];const m=h;let g;return t[8]!==r||t[9]!==m?(g=(0,o.jsx)(Ix.Provider,{value:m,children:r}),t[8]=r,t[9]=m,t[10]=g):g=t[10],g}function Mx(e){return e}const Rx=Fb(Ix),Px=20;function jx(e){const t=(0,a.c)(40);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={nonNull:!0,caller:jx},t[0]=n):n=t[0];const{editLabel:r,toggleFavorite:i,deleteFromHistory:l,setActive:u}=Rx(n);let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d={nonNull:!0,caller:jx},t[1]=d):d=t[1];const{headerEditor:f,queryEditor:p,variableEditor:h}=zw(d),m=(0,s.useRef)(null),g=(0,s.useRef)(null),[v,y]=(0,s.useState)(!1);let b,x,E;var w;t[2]!==v?(b=()=>{var e;v&&(null==(e=m.current)||e.focus())},x=[v],t[2]=v,t[3]=b,t[4]=x):(b=t[3],x=t[4]),(0,s.useEffect)(b,x),t[5]!==e.item.label||t[6]!==e.item.operationName||t[7]!==e.item.query?(E=e.item.label||e.item.operationName||(null==(w=e.item.query)?void 0:w.split("\n").map((e=>e.replace(/#(.*)/,""))).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")),t[5]=e.item.label,t[6]=e.item.operationName,t[7]=e.item.query,t[8]=E):E=t[8];const k=E;let C;t[9]!==r||t[10]!==e.item?(C=()=>{var t;y(!1);const{index:n,...i}=e.item;r({...i,label:null==(t=m.current)?void 0:t.value},n)},t[9]=r,t[10]=e.item,t[11]=C):C=t[11];const S=C;let T;t[12]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{y(!1)},t[12]=T):T=t[12];const N=T;let _;t[13]===Symbol.for("react.memo_cache_sentinel")?(_=e=>{e.stopPropagation(),y(!0)},t[13]=_):_=t[13];const D=_;let A;t[14]!==f||t[15]!==e.item||t[16]!==p||t[17]!==u||t[18]!==h?(A=()=>{const{query:t,variables:n,headers:r}=e.item;null==p||p.setValue(t??""),null==h||h.setValue(n??""),null==f||f.setValue(r??""),u(e.item)},t[14]=f,t[15]=e.item,t[16]=p,t[17]=u,t[18]=h,t[19]=A):A=t[19];const O=A;let L;t[20]!==l||t[21]!==e.item?(L=t=>{t.stopPropagation(),l(e.item)},t[20]=l,t[21]=e.item,t[22]=L):L=t[22];const I=L;let F;t[23]!==e.item||t[24]!==i?(F=t=>{t.stopPropagation(),i(e.item)},t[23]=e.item,t[24]=i,t[25]=F):F=t[25];const M=F,R=v&&"editable";let P,j,V;return t[26]!==R?(P=c("graphiql-history-item",R),t[26]=R,t[27]=P):P=t[27],t[28]!==k||t[29]!==r||t[30]!==I||t[31]!==O||t[32]!==S||t[33]!==M||t[34]!==v||t[35]!==e.item?(j=v?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",{type:"text",defaultValue:e.item.label,ref:m,onKeyDown:t=>{"Esc"===t.key?y(!1):"Enter"===t.key&&(y(!1),r({...e.item,label:t.currentTarget.value}))},placeholder:"Type a label"}),(0,o.jsx)(gx,{type:"button",ref:g,onClick:S,children:"Save"}),(0,o.jsx)(gx,{type:"button",ref:g,onClick:N,children:(0,o.jsx)(zb,{})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Nx,{label:"Set active",children:(0,o.jsx)(gx,{type:"button",className:"graphiql-history-item-label",onClick:O,"aria-label":"Set active",children:k})}),(0,o.jsx)(Nx,{label:"Edit label",children:(0,o.jsx)(gx,{type:"button",className:"graphiql-history-item-action",onClick:D,"aria-label":"Edit label",children:(0,o.jsx)(rx,{"aria-hidden":"true"})})}),(0,o.jsx)(Nx,{label:e.item.favorite?"Remove favorite":"Add favorite",children:(0,o.jsx)(gx,{type:"button",className:"graphiql-history-item-action",onClick:M,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?(0,o.jsx)(cx,{"aria-hidden":"true"}):(0,o.jsx)(dx,{"aria-hidden":"true"})})}),(0,o.jsx)(Nx,{label:"Delete from history",children:(0,o.jsx)(gx,{type:"button",className:"graphiql-history-item-action",onClick:I,"aria-label":"Delete from history",children:(0,o.jsx)(px,{"aria-hidden":"true"})})})]}),t[28]=k,t[29]=r,t[30]=I,t[31]=O,t[32]=S,t[33]=M,t[34]=v,t[35]=e.item,t[36]=j):j=t[36],t[37]!==P||t[38]!==j?(V=(0,o.jsx)("li",{className:P,children:j}),t[37]=P,t[38]=j,t[39]=V):V=t[39],V}const Vx=Ib("ExecutionContext");function Bx(e){const t=(0,a.c)(27),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:l}=e;if(!n)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u={nonNull:!0,caller:Bx},t[0]=u):u=t[0];const{externalFragments:c,headerEditor:d,queryEditor:f,responseEditor:p,variableEditor:h,updateActiveTabValues:m}=zw(u),g=Rx();let v;t[1]!==r?(v={getDefaultFieldNames:r,caller:Bx},t[1]=r,t[2]=v):v=t[2];const y=lw(v),[b,x]=(0,s.useState)(!1),[E,w]=(0,s.useState)(null),k=(0,s.useRef)(0);let C;t[3]!==E?(C=()=>{null==E||E.unsubscribe(),x(!1),w(null)},t[3]=E,t[4]=C):C=t[4];const S=C;let T;t[5]!==y||t[6]!==c||t[7]!==n||t[8]!==d||t[9]!==g||t[10]!==l||t[11]!==f||t[12]!==p||t[13]!==S||t[14]!==E||t[15]!==m||t[16]!==h?(T=async()=>{if(!f||!p)return;if(E)return void S();const e=e=>{p.setValue(e),m({response:e})};k.current=k.current+1;const t=k.current;let r=y()||f.getValue();const i=null==h?void 0:h.getValue();let o;try{o=Hx({json:i,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(t){const n=t;return void e(n instanceof Error?n.message:`${n}`)}const a=null==d?void 0:d.getValue();let s;try{s=Hx({json:a,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(t){const n=t;return void e(n instanceof Error?n.message:`${n}`)}if(c){const e=f.documentAST?(0,ce.JR)(f.documentAST,c):[];e.length>0&&(r=r+"\n"+e.map(Ux).join("\n"))}e(""),x(!0);const u=l??f.operationName??void 0;null==g||g.addToHistory({query:r,variables:i,headers:a,operationName:u});const v=s??void 0,b=f.documentAST??void 0;try{const i={},a=n=>{if(t!==k.current)return;let r=!!Array.isArray(n)&&n;if(!r&&"object"==typeof n&&null!==n&&"hasNext"in n&&(r=[n]),r){for(const e of r)$x(i,e);x(!1),e(X(i))}else{const t=X(n);x(!1),e(t)}},s=n({query:r,variables:o,operationName:u},{headers:v,documentAST:b}),l=await Promise.resolve(s);j(l)?w(l.subscribe({next(e){a(e)},error(t){x(!1),t&&e(Q(t)),w(null)},complete(){x(!1),w(null)}})):V(l)?(w({unsubscribe:()=>{var e,t;return null==(t=(e=l[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),await async function(e,t){for await(const n of t)e(n)}(a,l),x(!1),w(null)):a(l)}catch(t){const n=t;x(!1),e(Q(n)),w(null)}},t[5]=y,t[6]=c,t[7]=n,t[8]=d,t[9]=g,t[10]=l,t[11]=f,t[12]=p,t[13]=S,t[14]=E,t[15]=m,t[16]=h,t[17]=T):T=t[17];const N=T,_=Boolean(E),D=l??null;let A;t[18]!==b||t[19]!==_||t[20]!==N||t[21]!==S||t[22]!==D?(A={isFetching:b,isSubscribed:_,operationName:D,run:N,stop:S},t[18]=b,t[19]=_,t[20]=N,t[21]=S,t[22]=D,t[23]=A):A=t[23];const O=A;let L;return t[24]!==i||t[25]!==O?(L=(0,o.jsx)(Vx.Provider,{value:O,children:i}),t[24]=i,t[25]=O,t[26]=L):L=t[26],L}function Ux(e){return(0,d.y)(e)}const zx=Fb(Vx);function Hx({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}const qx=new WeakMap;function $x(e,t){var n,r,i;let o=["data",...t.path??[]];for(const n of[e,t])if(n.pending){let t=qx.get(e);void 0===t&&(t=new Map,qx.set(e,t));for(const{id:e,path:r}of n.pending)t.set(e,["data",...r])}const{items:a}=t;if(a){const{id:r}=t;if(r){if(o=null==(n=qx.get(e))?void 0:n.get(r),void 0===o)throw new Error("Invalid incremental delivery format.");fe(e,o.join(".")).push(...a)}else{o=["data",...t.path??[]];for(const t of a)de(e,o.join("."),t),o[o.length-1]++}}const{data:s}=t;if(s){const{id:n}=t;if(n){if(o=null==(r=qx.get(e))?void 0:r.get(n),void 0===o)throw new Error("Invalid incremental delivery format.");const{subPath:i}=t;void 0!==i&&(o=[...o,...i])}de(e,o.join("."),s,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&de(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const n of t.incremental)$x(e,n);if(t.completed)for(const{id:n,errors:r}of t.completed)null==(i=qx.get(e))||i.delete(n),r&&(e.errors||(e.errors=[]),e.errors.push(...r))}const Wx="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac"),Gx="graphiql",Kx="sublime",Yx={[Wx?"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 Qx(e,t){const n=await Promise.resolve().then(i.t.bind(i,5237,19)).then((e=>"function"==typeof e?e:e.default));return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Promise.resolve().then(i.t.bind(i,9751,19)),Promise.resolve().then(i.t.bind(i,7923,19)),Promise.resolve().then(i.t.bind(i,5218,19)),Promise.resolve().then(i.t.bind(i,795,19)),Promise.resolve().then(i.t.bind(i,1274,19)),Promise.resolve().then(i.t.bind(i,1561,19)),Promise.resolve().then(i.t.bind(i,3653,19)),Promise.resolve().then(i.t.bind(i,8820,19)),Promise.resolve().then(i.t.bind(i,8527,19)),Promise.resolve().then(i.t.bind(i,8208,19)),...e]),n}function Xx(e){const t=(0,a.c)(12),{field:n}=e;if(!("defaultValue"in n)||void 0===n.defaultValue)return null;const r=n.defaultValue,i=n.type;let s,l,u,c,p,h;if(t[0]!==n.defaultValue||t[1]!==n.type){c=Symbol.for("react.early_return_sentinel");{const e=(0,f.K)(r,i);e?(u=" = ",s="graphiql-doc-explorer-default-value",l=(e=>e?(0,d.y)(e):"")(e)):c=null}t[0]=n.defaultValue,t[1]=n.type,t[2]=s,t[3]=l,t[4]=u,t[5]=c}else s=t[2],l=t[3],u=t[4],c=t[5];return c!==Symbol.for("react.early_return_sentinel")?c:(t[6]!==s||t[7]!==l?(p=(0,o.jsx)("span",{className:s,children:l}),t[6]=s,t[7]=l,t[8]=p):p=t[8],t[9]!==u||t[10]!==p?(h=(0,o.jsxs)(o.Fragment,{children:[u,p]}),t[9]=u,t[10]=p,t[11]=h):h=t[11],h)}const Zx=Ib("SchemaContext");function Jx(e){const t=(0,a.c)(38);let n,r,i,l;if(t[0]!==e?(({fetcher:n,onSchemaChange:r,...i}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]),!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");t[4]===Symbol.for("react.memo_cache_sentinel")?(l={nonNull:!0,caller:Jx},t[4]=l):l=t[4];const{initialHeaders:u,headerEditor:c}=zw(l),[d,f]=(0,s.useState)(),[S,T]=(0,s.useState)(!1),[N,_]=(0,s.useState)(null),D=(0,s.useRef)(0);let A,O;t[5]!==i.schema?(A=()=>{f((0,p.Wl)(i.schema)||null==i.schema?i.schema:void 0),D.current=D.current+1},O=[i.schema],t[5]=i.schema,t[6]=A,t[7]=O):(A=t[6],O=t[7]),(0,s.useEffect)(A,O);const L=(0,s.useRef)(u);let I,F;t[8]!==c?(I=()=>{c&&(L.current=c.getValue())},t[8]=c,t[9]=I):I=t[9],(0,s.useEffect)(I),t[10]!==i.inputValueDeprecation||t[11]!==i.introspectionQueryName||t[12]!==i.schemaDescription?(F={inputValueDeprecation:i.inputValueDeprecation,introspectionQueryName:i.introspectionQueryName,schemaDescription:i.schemaDescription},t[10]=i.inputValueDeprecation,t[11]=i.introspectionQueryName,t[12]=i.schemaDescription,t[13]=F):F=t[13];const{introspectionQuery:M,introspectionQueryName:R,introspectionQuerySansSubscriptions:j}=function({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const r=t||"IntrospectionQuery";let i=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":"";function i(e){return t.inputValueDeprecation?e:""}const o=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${t.directiveIsRepeatable?"isRepeatable":""}\n locations\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${o}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${i("(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 ${i("isDeprecated")}\n ${i("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 `}({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace("query IntrospectionQuery",`query ${r}`));const o=i.replace("subscriptionType { name }","");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}}(F);let V;t[14]!==n||t[15]!==M||t[16]!==R||t[17]!==j||t[18]!==r||t[19]!==i.schema?(V=()=>{if((0,p.Wl)(i.schema)||null===i.schema)return;const e=D.current=D.current+1,t=i.schema;(async function(){if(t)return t;const e=function(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}(L.current);if(!e.isValidJSON)return void _("Introspection failed as headers are invalid.");const r=e.headers?{headers:e.headers}:{},i=B(n({query:M,operationName:R},r));if(!P(i))return void _("Fetcher did not return a Promise for introspection.");T(!0),_(null);let o=await i;if("object"!=typeof o||null===o||!("data"in o)){const e=B(n({query:j,operationName:R},r));if(!P(e))throw new Error("Fetcher did not return a Promise for introspection.");o=await e}if(T(!1),(null==o?void 0:o.data)&&"__schema"in o.data)return o.data;const a="string"==typeof o?o:X(o);_(a)})().then((t=>{if(e===D.current&&t)try{const e=function(e,t){(0,g.Z)(e)&&(0,g.Z)(e.__schema)||(0,h.U)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,m.N)(e)}.`);const n=e.__schema,r=(0,v.L)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case E.fY.SCALAR:return r=e,new b.Ag({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case E.fY.OBJECT:return n=e,new b.bh({name:n.name,description:n.description,interfaces:()=>f(n),fields:()=>C(n)});case E.fY.INTERFACE:return t=e,new b.VA({name:t.name,description:t.description,interfaces:()=>f(t),fields:()=>C(t)});case E.fY.UNION:return function(e){if(!e.possibleTypes){const t=(0,m.N)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new b.hI({name:e.name,description:e.description,types:()=>e.possibleTypes.map(c)})}(e);case E.fY.ENUM:return function(e){if(!e.enumValues){const t=(0,m.N)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new b.Zb({name:e.name,description:e.description,values:(0,v.L)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case E.fY.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,m.N)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new b.zP({name:e.name,description:e.description,fields:()=>T(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const i=(0,m.N)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e)));for(const e of[...w.YC,...E.V4])r[e.name]&&(r[e.name]=e);const i=n.queryType?c(n.queryType):null,o=n.mutationType?c(n.mutationType):null,a=n.subscriptionType?c(n.subscriptionType):null,s=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,m.N)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,m.N)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new x.RR({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:T(e.args)})})):[];return new p.V4({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===E.fY.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new b.KT(l(t))}if(e.kind===E.fY.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=l(t);return new b.Gc((0,b.wG)(n))}return u(e)}function u(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,m.N)(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function c(e){return(0,b.qC)(u(e))}function d(e){return(0,b.qL)(u(e))}function f(e){if(null===e.interfaces&&e.kind===E.fY.INTERFACE)return[];if(!e.interfaces){const t=(0,m.N)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(d)}function C(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,m.N)(e)}.`);return(0,v.L)(e.fields,(e=>e.name),S)}function S(e){const t=l(e.type);if(!(0,b.oH)(t)){const e=(0,m.N)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,m.N)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:T(e.args)}}function T(e){return(0,v.L)(e,(e=>e.name),N)}function N(e){const t=l(e.type);if(!(0,b.dX)(t)){const e=(0,m.N)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,k.i)((0,y.$x)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}(t);f(e),r&&r(e)}catch(e){_(Q(e))}})).catch((t=>{e===D.current&&(_(Q(t)),T(!1))}))},t[14]=n,t[15]=M,t[16]=R,t[17]=j,t[18]=r,t[19]=i.schema,t[20]=V):V=t[20];const U=V;let z,H,q,$;t[21]!==U?(z=()=>{U()},H=[U],t[21]=U,t[22]=z,t[23]=H):(z=t[22],H=t[23]),(0,s.useEffect)(z,H),t[24]!==U?(q=()=>{const e=function(e){e.ctrlKey&&"R"===e.key&&U()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},t[24]=U,t[25]=q):q=t[25],(0,s.useEffect)(q),t[26]!==i.dangerouslyAssumeSchemaIsValid||t[27]!==d?($=!d||i.dangerouslyAssumeSchemaIsValid?[]:(0,C.i)(d),t[26]=i.dangerouslyAssumeSchemaIsValid,t[27]=d,t[28]=$):$=t[28];const W=$;let G;t[29]!==N||t[30]!==U||t[31]!==S||t[32]!==d||t[33]!==W?(G={fetchError:N,introspect:U,isFetching:S,schema:d,validationErrors:W},t[29]=N,t[30]=U,t[31]=S,t[32]=d,t[33]=W,t[34]=G):G=t[34];const K=G;let Y;return t[35]!==i.children||t[36]!==K?(Y=(0,o.jsx)(Zx.Provider,{value:K,children:i.children}),t[35]=i.children,t[36]=K,t[37]=Y):Y=t[37],Y}const eE=Fb(Zx),tE={name:"Docs"},nE=Ib("ExplorerContext");function rE(e){const t=(0,a.c)(14);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={nonNull:!0,caller:rE},t[0]=n):n=t[0];const{schema:r,validationErrors:i}=eE(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=[tE],t[1]=l):l=t[1];const[u,c]=(0,s.useState)(l);let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{c((t=>t.at(-1).def===e.def?t:[...t,e]))},t[2]=d):d=t[2];const f=d;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{c(oE)},t[3]=p):p=t[3];const h=p;let m;t[4]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{c(iE)},t[4]=m):m=t[4];const g=m;let v,y,x;t[5]!==r||t[6]!==i?(v=()=>{null==r||i.length>0?g():c((e=>{if(1===e.length)return e;const t=[tE];let n=null;for(const i of e)if(i!==tE)if(i.def)if((0,b.sy)(i.def)){const e=r.getType(i.def.name);if(!e)break;t.push({name:i.name,def:e}),n=e}else{if(null===n)break;if((0,b.YQ)(n)||(0,b.qK)(n)){const e=n.getFields()[i.name];if(!e)break;t.push({name:i.name,def:e})}else{if((0,b.lg)(n)||(0,b.oF)(n)||(0,b.kD)(n)||(0,b.CK)(n))break;{const e=n,r=e.args.find((e=>e.name===i.name));if(!r)break;t.push({name:i.name,def:e})}}}else n=null,t.push(i);return t}))},y=[r,i],t[5]=r,t[6]=i,t[7]=v,t[8]=y):(v=t[7],y=t[8]),(0,s.useEffect)(v,y),t[9]!==u?(x={explorerNavStack:u,push:f,pop:h,reset:g},t[9]=u,t[10]=x):x=t[10];const E=x;let w;return t[11]!==e.children||t[12]!==E?(w=(0,o.jsx)(nE.Provider,{value:E,children:e.children}),t[11]=e.children,t[12]=E,t[13]=w):w=t[13],w}function iE(e){return 1===e.length?e:[tE]}function oE(e){return e.length>1?e.slice(0,-1):e}const aE=Fb(nE);function sE(e,t){return(0,b.bd)(e)?(0,o.jsxs)(o.Fragment,{children:[sE(e.ofType,t),"!"]}):(0,b.Fs)(e)?(0,o.jsxs)(o.Fragment,{children:["[",sE(e.ofType,t),"]"]}):t(e)}function lE(e){const t=(0,a.c)(6);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={nonNull:!0,caller:lE},t[0]=n):n=t[0];const{push:r}=aE(n);if(!e.type)return null;let i,s;return t[1]!==r?(i=e=>(0,o.jsx)("a",{className:"graphiql-doc-explorer-type-name",onClick:t=>{t.preventDefault(),r({name:e.name,def:e})},href:"#",children:e.name}),t[1]=r,t[2]=i):i=t[2],t[3]!==e.type||t[4]!==i?(s=sE(e.type,i),t[3]=e.type,t[4]=i,t[5]=s):s=t[5],s}function uE(e){const t=(0,a.c)(19),{arg:n,showDefaultValue:r,inline:i}=e;let s,l,u,c;t[0]!==n.name?(s=(0,o.jsx)("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=s):s=t[1],t[2]!==n.type?(l=(0,o.jsx)(lE,{type:n.type}),t[2]=n.type,t[3]=l):l=t[3],t[4]!==n||t[5]!==r?(u=!1!==r&&(0,o.jsx)(Xx,{field:n}),t[4]=n,t[5]=r,t[6]=u):u=t[6],t[7]!==s||t[8]!==l||t[9]!==u?(c=(0,o.jsxs)("span",{children:[s,": ",l,u]}),t[7]=s,t[8]=l,t[9]=u,t[10]=c):c=t[10];const d=c;if(i)return d;let f,p,h;return t[11]!==n.description?(f=n.description?(0,o.jsx)(Sx,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=f):f=t[12],t[13]!==n.deprecationReason?(p=n.deprecationReason?(0,o.jsxs)("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[(0,o.jsx)("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),(0,o.jsx)(Sx,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=p):p=t[14],t[15]!==d||t[16]!==f||t[17]!==p?(h=(0,o.jsxs)("div",{className:"graphiql-doc-explorer-argument",children:[d,f,p]}),t[15]=d,t[16]=f,t[17]=p,t[18]=h):h=t[18],h}function cE(e){const t=(0,a.c)(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?(0,o.jsxs)("div",{className:"graphiql-doc-explorer-deprecation",children:[(0,o.jsx)("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),(0,o.jsx)(Sx,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n}function dE(e){const t=(0,a.c)(2),{directive:n}=e;let r;return t[0]!==n.name.value?(r=(0,o.jsxs)("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=r):r=t[1],r}function fE(e){const t=(0,a.c)(10),n=pE[e.title];let r,i,s,l;return t[0]!==n?(r=(0,o.jsx)(n,{}),t[0]=n,t[1]=r):r=t[1],t[2]!==e.title||t[3]!==r?(i=(0,o.jsxs)("div",{className:"graphiql-doc-explorer-section-title",children:[r,e.title]}),t[2]=e.title,t[3]=r,t[4]=i):i=t[4],t[5]!==e.children?(s=(0,o.jsx)("div",{className:"graphiql-doc-explorer-section-content",children:e.children}),t[5]=e.children,t[6]=s):s=t[6],t[7]!==i||t[8]!==s?(l=(0,o.jsxs)("div",{children:[i,s]}),t[7]=i,t[8]=s,t[9]=l):l=t[9],l}const pE={Arguments:jb,"Deprecated Arguments":qb,"Deprecated Enum Values":$b,"Deprecated Fields":Wb,Directives:Gb,"Enum Values":Qb,Fields:Xb,Implements:Jb,Implementations:hx,"Possible Types":hx,"Root Types":lx,Type:hx,"All Schema Types":hx};function hE(e){const t=(0,a.c)(15);let n,r,i,s,l,u;return t[0]!==e.field.description?(n=e.field.description?(0,o.jsx)(Sx,{type:"description",children:e.field.description}):null,t[0]=e.field.description,t[1]=n):n=t[1],t[2]!==e.field.deprecationReason?(r=(0,o.jsx)(cE,{preview:!1,children:e.field.deprecationReason}),t[2]=e.field.deprecationReason,t[3]=r):r=t[3],t[4]!==e.field.type?(i=(0,o.jsx)(fE,{title:"Type",children:(0,o.jsx)(lE,{type:e.field.type})}),t[4]=e.field.type,t[5]=i):i=t[5],t[6]!==e.field?(s=(0,o.jsx)(mE,{field:e.field}),l=(0,o.jsx)(yE,{field:e.field}),t[6]=e.field,t[7]=s,t[8]=l):(s=t[7],l=t[8]),t[9]!==n||t[10]!==r||t[11]!==i||t[12]!==s||t[13]!==l?(u=(0,o.jsxs)(o.Fragment,{children:[n,r,i,s,l]}),t[9]=n,t[10]=r,t[11]=i,t[12]=s,t[13]=l,t[14]=u):u=t[14],u}function mE(e){const t=(0,a.c)(12),{field:n}=e,[r,i]=(0,s.useState)(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{i(!0)},t[0]=l):l=t[0];const u=l;if(!("args"in n))return null;let c,d,f,p,h;if(t[1]!==n.args){c=[],d=[];for(const e of n.args)e.deprecationReason?d.push(e):c.push(e);f=c.length>0?(0,o.jsx)(fE,{title:"Arguments",children:c.map(vE)}):null,t[1]=n.args,t[2]=c,t[3]=d,t[4]=f}else c=t[2],d=t[3],f=t[4];return t[5]!==c.length||t[6]!==d||t[7]!==r?(p=d.length>0?r||0===c.length?(0,o.jsx)(fE,{title:"Deprecated Arguments",children:d.map(gE)}):(0,o.jsx)(vx,{type:"button",onClick:u,children:"Show Deprecated Arguments"}):null,t[5]=c.length,t[6]=d,t[7]=r,t[8]=p):p=t[8],t[9]!==f||t[10]!==p?(h=(0,o.jsxs)(o.Fragment,{children:[f,p]}),t[9]=f,t[10]=p,t[11]=h):h=t[11],h}function gE(e){return(0,o.jsx)(uE,{arg:e},e.name)}function vE(e){return(0,o.jsx)(uE,{arg:e},e.name)}function yE(e){var t,n,r;const i=(0,a.c)(6),{field:s}=e;let l;i[0]!==(null==(t=s.astNode)?void 0:t.directives)?(l=(null==(n=s.astNode)?void 0:n.directives)||[],i[0]=null==(r=s.astNode)?void 0:r.directives,i[1]=l):l=i[1];const u=l;if(!u||0===u.length)return null;let c,d;return i[2]!==u?(c=u.map(bE),i[2]=u,i[3]=c):c=i[3],i[4]!==c?(d=(0,o.jsx)(fE,{title:"Directives",children:c}),i[4]=c,i[5]=d):d=i[5],d}function bE(e){return(0,o.jsx)("div",{children:(0,o.jsx)(dE,{directive:e})},e.name.value)}function xE(e){var t,n,r,i;const s=(0,a.c)(39);let l;s[0]!==e.schema?(l=e.schema.getQueryType(),s[0]=e.schema,s[1]=l):l=s[1];const u=l;let c;s[2]!==e.schema?(c=null==(n=(t=e.schema).getMutationType)?void 0:n.call(t),s[2]=e.schema,s[3]=c):c=s[3];const d=c;let f;s[4]!==e.schema?(f=null==(i=(r=e.schema).getSubscriptionType)?void 0:i.call(r),s[4]=e.schema,s[5]=f):f=s[5];const p=f;let h,m,g,v,y,b,x;if(s[6]!==d||s[7]!==e.schema||s[8]!==u||s[9]!==p){const t=e.schema.getTypeMap(),n=null==u?void 0:u.name,r=null==d?void 0:d.name,i=null==p?void 0:p.name;let a;s[15]!==n||s[16]!==r||s[17]!==i?(a=[n,r,i],s[15]=n,s[16]=r,s[17]=i,s[18]=a):a=s[18];const l=a,c=e.schema.description||"A GraphQL schema provides a root type for each kind of operation.";let f,b,x;s[19]!==c?(v=(0,o.jsx)(Sx,{type:"description",children:c}),s[19]=c,s[20]=v):v=s[20],s[21]!==u?(f=u?(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",(0,o.jsx)(lE,{type:u})]}):null,s[21]=u,s[22]=f):f=s[22],s[23]!==d?(b=d&&(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",(0,o.jsx)(lE,{type:d})]}),s[23]=d,s[24]=b):b=s[24],s[25]!==p?(x=p&&(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",(0,o.jsx)(lE,{type:p})]}),s[25]=p,s[26]=x):x=s[26],s[27]!==f||s[28]!==b||s[29]!==x?(y=(0,o.jsxs)(fE,{title:"Root Types",children:[f,b,x]}),s[27]=f,s[28]=b,s[29]=x,s[30]=y):y=s[30],h=fE,m="All Schema Types",g=t&&(0,o.jsx)("div",{children:Object.values(t).map((e=>l.includes(e.name)||e.name.startsWith("__")?null:(0,o.jsx)("div",{children:(0,o.jsx)(lE,{type:e})},e.name)))}),s[6]=d,s[7]=e.schema,s[8]=u,s[9]=p,s[10]=h,s[11]=m,s[12]=g,s[13]=v,s[14]=y}else h=s[10],m=s[11],g=s[12],v=s[13],y=s[14];return s[31]!==h||s[32]!==m||s[33]!==g?(b=(0,o.jsx)(h,{title:m,children:g}),s[31]=h,s[32]=m,s[33]=g,s[34]=b):b=s[34],s[35]!==v||s[36]!==y||s[37]!==b?(x=(0,o.jsxs)(o.Fragment,{children:[v,y,b]}),s[35]=v,s[36]=y,s[37]=b,s[38]=x):x=s[38],x}function EE(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout((()=>{n=null,t(...r)}),e)}}function wE(){const{explorerNavStack:e,push:t}=aE({nonNull:!0,caller:wE}),n=(0,s.useRef)(null),r=CE(),[i,a]=(0,s.useState)(""),[l,u]=(0,s.useState)(r(i)),c=(0,s.useMemo)((()=>EE(200,(e=>{u(r(e))}))),[r]);(0,s.useEffect)((()=>{c(i)}),[c,i]),(0,s.useEffect)((()=>{function e(e){var t;e.metaKey&&"k"===e.key&&(null==(t=n.current)||t.focus())}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[]);const d=e.at(-1),f=(0,s.useCallback)((e=>{t("field"in e?{name:e.field.name,def:e.field}:{name:e.type.name,def:e.type})}),[t]),p=(0,s.useRef)(!1),h=(0,s.useCallback)((e=>{p.current="focus"===e.type}),[]);return 1===e.length||(0,b.YQ)(d.def)||(0,b.kD)(d.def)||(0,b.qK)(d.def)?(0,o.jsxs)(Lb,{as:"div",className:"graphiql-doc-explorer-search",onChange:f,"data-state":p?void 0:"idle","aria-label":`Search ${d.name}...`,children:[(0,o.jsxs)("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var e;null==(e=n.current)||e.focus()},children:[(0,o.jsx)(tx,{}),(0,o.jsx)(Lb.Input,{autoComplete:"off",onFocus:h,onBlur:h,onChange:e=>a(e.target.value),placeholder:(Wx?"⌘":"Ctrl")+" K",ref:n,value:i,"data-cy":"doc-explorer-input"})]}),p.current&&(0,o.jsxs)(Lb.Options,{"data-cy":"doc-explorer-list",children:[l.within.length+l.types.length+l.fields.length===0?(0,o.jsx)("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):l.within.map(((e,t)=>(0,o.jsx)(Lb.Option,{value:e,"data-cy":"doc-explorer-option",children:(0,o.jsx)(NE,{field:e.field,argument:e.argument})},`within-${t}`))),l.within.length>0&&l.types.length+l.fields.length>0?(0,o.jsx)("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,l.types.map(((e,t)=>(0,o.jsx)(Lb.Option,{value:e,"data-cy":"doc-explorer-option",children:(0,o.jsx)(TE,{type:e.type})},`type-${t}`))),l.fields.map(((e,t)=>(0,o.jsxs)(Lb.Option,{value:e,"data-cy":"doc-explorer-option",children:[(0,o.jsx)(TE,{type:e.type}),".",(0,o.jsx)(NE,{field:e.field,argument:e.argument})]},`field-${t}`)))]})]}):null}const kE=CE;function CE(e){const t=(0,a.c)(9),n=e||kE;let r;t[0]!==n?(r={nonNull:!0,caller:n},t[0]=n,t[1]=r):r=t[1];const{explorerNavStack:i}=aE(r),o=e||kE;let s;t[2]!==o?(s={nonNull:!0,caller:o},t[2]=o,t[3]=s):s=t[3];const{schema:l}=eE(s);let u;t[4]!==i?(u=i.at(-1),t[4]=i,t[5]=u):u=t[5];const c=u;let d;return t[6]!==c||t[7]!==l?(d=e=>{const t={within:[],types:[],fields:[]};if(!l)return t;const n=c.def,r=l.getTypeMap();let i=Object.keys(r);n&&(i=i.filter((e=>e!==n.name)),i.unshift(n.name));for(const o of i){if(t.within.length+t.types.length+t.fields.length>=100)break;const i=r[o];if(n!==i&&SE(o,e)&&t.types.push({type:i}),!(0,b.YQ)(i)&&!(0,b.kD)(i)&&!(0,b.qK)(i))continue;const a=i.getFields();for(const r in a){const o=a[r];let s;if(!SE(r,e)){if(!("args"in o))continue;if(s=o.args.filter((t=>SE(t.name,e))),0===s.length)continue}t[n===i?"within":"fields"].push(...s?s.map((e=>({type:i,field:o,argument:e}))):[{type:i,field:o}])}}return t},t[6]=c,t[7]=l,t[8]=d):d=t[8],d}function SE(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,(e=>"\\"+e));return-1!==e.search(new RegExp(n,"i"))}catch{return e.toLowerCase().includes(t.toLowerCase())}}function TE(e){const t=(0,a.c)(2);let n;return t[0]!==e.type.name?(n=(0,o.jsx)("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name}),t[0]=e.type.name,t[1]=n):n=t[1],n}function NE(e){const t=(0,a.c)(7),{field:n,argument:r}=e;let i,s,l;return t[0]!==n.name?(i=(0,o.jsx)("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],t[2]!==r?(s=r?(0,o.jsxs)(o.Fragment,{children:["(",(0,o.jsx)("span",{className:"graphiql-doc-explorer-search-argument",children:r.name}),":"," ",sE(r.type,_E),")"]}):null,t[2]=r,t[3]=s):s=t[3],t[4]!==i||t[5]!==s?(l=(0,o.jsxs)(o.Fragment,{children:[i,s]}),t[4]=i,t[5]=s,t[6]=l):l=t[6],l}function _E(e){return(0,o.jsx)(TE,{type:e})}function DE(e){const t=(0,a.c)(7);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={nonNull:!0},t[0]=n):n=t[0];const{push:r}=aE(n);let i,s;return t[1]!==e.field||t[2]!==r?(i=t=>{t.preventDefault(),r({name:e.field.name,def:e.field})},t[1]=e.field,t[2]=r,t[3]=i):i=t[3],t[4]!==e.field.name||t[5]!==i?(s=(0,o.jsx)("a",{className:"graphiql-doc-explorer-field-name",onClick:i,href:"#",children:e.field.name}),t[4]=e.field.name,t[5]=i,t[6]=s):s=t[6],s}function AE(e){const t=(0,a.c)(2);let n;return t[0]!==e.type?(n=(0,b.sy)(e.type)?(0,o.jsxs)(o.Fragment,{children:[e.type.description?(0,o.jsx)(Sx,{type:"description",children:e.type.description}):null,(0,o.jsx)(OE,{type:e.type}),(0,o.jsx)(IE,{type:e.type}),(0,o.jsx)(jE,{type:e.type}),(0,o.jsx)(zE,{type:e.type})]}):null,t[0]=e.type,t[1]=n):n=t[1],n}function OE(e){const t=(0,a.c)(5),{type:n}=e;if(!(0,b.YQ)(n))return null;let r;t[0]!==n?(r=n.getInterfaces(),t[0]=n,t[1]=r):r=t[1];const i=r;let s;return t[2]!==i.length||t[3]!==n?(s=i.length>0?(0,o.jsx)(fE,{title:"Implements",children:n.getInterfaces().map(LE)}):null,t[2]=i.length,t[3]=n,t[4]=s):s=t[4],s}function LE(e){return(0,o.jsx)("div",{children:(0,o.jsx)(lE,{type:e})},e.name)}function IE(e){const t=(0,a.c)(12),{type:n}=e,[r,i]=(0,s.useState)(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{i(!0)},t[0]=l):l=t[0];const u=l;if(!(0,b.YQ)(n)&&!(0,b.kD)(n)&&!(0,b.qK)(n))return null;let c,d,f,p,h;if(t[1]!==n){const e=n.getFields();d=[],c=[];for(const t of Object.keys(e).map((t=>e[t])))t.deprecationReason?c.push(t):d.push(t);f=d.length>0?(0,o.jsx)(fE,{title:"Fields",children:d.map(ME)}):null,t[1]=n,t[2]=c,t[3]=d,t[4]=f}else c=t[2],d=t[3],f=t[4];return t[5]!==c||t[6]!==d.length||t[7]!==r?(p=c.length>0?r||0===d.length?(0,o.jsx)(fE,{title:"Deprecated Fields",children:c.map(FE)}):(0,o.jsx)(vx,{type:"button",onClick:u,children:"Show Deprecated Fields"}):null,t[5]=c,t[6]=d.length,t[7]=r,t[8]=p):p=t[8],t[9]!==f||t[10]!==p?(h=(0,o.jsxs)(o.Fragment,{children:[f,p]}),t[9]=f,t[10]=p,t[11]=h):h=t[11],h}function FE(e){return(0,o.jsx)(RE,{field:e},e.name)}function ME(e){return(0,o.jsx)(RE,{field:e},e.name)}function RE(e){const t=(0,a.c)(22),{field:n}=e;let r,i,s,l,u,c,d,f,p;if(t[0]!==n){const e="args"in n?n.args.filter(PE):[];s="graphiql-doc-explorer-item",r=(0,o.jsx)(DE,{field:n}),i=e.length>0?(0,o.jsxs)(o.Fragment,{children:["(",(0,o.jsx)("span",{children:e.map((t=>1===e.length?(0,o.jsx)(uE,{arg:t,inline:!0},t.name):(0,o.jsx)("div",{className:"graphiql-doc-explorer-argument-multiple",children:(0,o.jsx)(uE,{arg:t,inline:!0})},t.name)))}),")"]}):null,t[0]=n,t[1]=r,t[2]=i,t[3]=s}else r=t[1],i=t[2],s=t[3];return t[4]!==n.type?(l=(0,o.jsx)(lE,{type:n.type}),t[4]=n.type,t[5]=l):l=t[5],t[6]!==n?(u=(0,o.jsx)(Xx,{field:n}),t[6]=n,t[7]=u):u=t[7],t[8]!==r||t[9]!==i||t[10]!==l||t[11]!==u?(c=(0,o.jsxs)("div",{children:[r,i,": ",l,u]}),t[8]=r,t[9]=i,t[10]=l,t[11]=u,t[12]=c):c=t[12],t[13]!==n.description?(d=n.description?(0,o.jsx)(Sx,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=d):d=t[14],t[15]!==n.deprecationReason?(f=(0,o.jsx)(cE,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=f):f=t[16],t[17]!==s||t[18]!==c||t[19]!==d||t[20]!==f?(p=(0,o.jsxs)("div",{className:s,children:[c,d,f]}),t[17]=s,t[18]=c,t[19]=d,t[20]=f,t[21]=p):p=t[21],p}function PE(e){return!e.deprecationReason}function jE(e){const t=(0,a.c)(12),{type:n}=e,[r,i]=(0,s.useState)(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{i(!0)},t[0]=l):l=t[0];const u=l;if(!(0,b.oF)(n))return null;let c,d,f,p,h;if(t[1]!==n){f=[],c=[];for(const e of n.getValues())e.deprecationReason?c.push(e):f.push(e);d=f.length>0?(0,o.jsx)(fE,{title:"Enum Values",children:f.map(BE)}):null,t[1]=n,t[2]=c,t[3]=d,t[4]=f}else c=t[2],d=t[3],f=t[4];return t[5]!==c||t[6]!==r||t[7]!==f.length?(p=c.length>0?r||0===f.length?(0,o.jsx)(fE,{title:"Deprecated Enum Values",children:c.map(VE)}):(0,o.jsx)(vx,{type:"button",onClick:u,children:"Show Deprecated Values"}):null,t[5]=c,t[6]=r,t[7]=f.length,t[8]=p):p=t[8],t[9]!==d||t[10]!==p?(h=(0,o.jsxs)(o.Fragment,{children:[d,p]}),t[9]=d,t[10]=p,t[11]=h):h=t[11],h}function VE(e){return(0,o.jsx)(UE,{value:e},e.name)}function BE(e){return(0,o.jsx)(UE,{value:e},e.name)}function UE(e){const t=(0,a.c)(10),{value:n}=e;let r,i,s,l;return t[0]!==n.name?(r=(0,o.jsx)("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],t[2]!==n.description?(i=n.description?(0,o.jsx)(Sx,{type:"description",children:n.description}):null,t[2]=n.description,t[3]=i):i=t[3],t[4]!==n.deprecationReason?(s=n.deprecationReason?(0,o.jsx)(Sx,{type:"deprecation",children:n.deprecationReason}):null,t[4]=n.deprecationReason,t[5]=s):s=t[5],t[6]!==r||t[7]!==i||t[8]!==s?(l=(0,o.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[r,i,s]}),t[6]=r,t[7]=i,t[8]=s,t[9]=l):l=t[9],l}function zE(e){const t=(0,a.c)(7),{type:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0},t[0]=r):r=t[0];const{schema:i}=eE(r);if(!i||!(0,b.Lc)(n))return null;const s=(0,b.kD)(n)?"Implementations":"Possible Types";let l,u;return t[1]!==i||t[2]!==n?(l=i.getPossibleTypes(n).map(HE),t[1]=i,t[2]=n,t[3]=l):l=t[3],t[4]!==s||t[5]!==l?(u=(0,o.jsx)(fE,{title:s,children:l}),t[4]=s,t[5]=l,t[6]=u):u=t[6],u}function HE(e){return(0,o.jsx)("div",{children:(0,o.jsx)(lE,{type:e})},e.name)}const qE={title:"Documentation Explorer",icon:function(){const e=KE();return(null==e?void 0:e.visiblePlugin)===qE?(0,o.jsx)(Kb,{}):(0,o.jsx)(Yb,{})},content:function e(){const t=(0,a.c)(40);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={nonNull:!0,caller:e},t[0]=n):n=t[0];const{fetchError:r,isFetching:i,schema:s,validationErrors:l}=eE(n);let u;t[1]===Symbol.for("react.memo_cache_sentinel")?(u={nonNull:!0,caller:e},t[1]=u):u=t[1];const{explorerNavStack:c,pop:d}=aE(u);let f,p,h,m,g,v,y,x,E,w;if(t[2]!==c||t[3]!==r||t[4]!==i||t[5]!==s||t[6]!==l){if(p=c.at(-1),f=null,r){let e;t[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),t[9]=e):e=t[9],f=e}else if(l.length>0){const e=l[0];let n;t[10]!==e.message?(n=(0,o.jsxs)("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",e.message]}),t[10]=e.message,t[11]=n):n=t[11],f=n}else if(i){let e;t[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(Tx,{}),t[12]=e):e=t[12],f=e}else if(s){if(1===c.length){let e;t[14]!==s?(e=(0,o.jsx)(xE,{schema:s}),t[14]=s,t[15]=e):e=t[15],f=e}else if((0,b.Xj)(p.def)){let e;t[16]!==p.def?(e=(0,o.jsx)(AE,{type:p.def}),t[16]=p.def,t[17]=e):e=t[17],f=e}else if(p.def){let e;t[18]!==p.def?(e=(0,o.jsx)(hE,{field:p.def}),t[18]=p.def,t[19]=e):e=t[19],f=e}}else{let e;t[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),t[13]=e):e=t[13],f=e}t[2]=c,t[3]=r,t[4]=i,t[5]=s,t[6]=l,t[7]=f,t[8]=p}else f=t[7],p=t[8];if(c.length>1){let e;t[20]!==c?(e=c.at(-2),t[20]=c,t[21]=e):e=t[21],h=e.name}return t[22]!==d||t[23]!==h?(m=h&&(0,o.jsxs)("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),d()},"aria-label":`Go back to ${h}`,children:[(0,o.jsx)(Bb,{}),h]}),t[22]=d,t[23]=h,t[24]=m):m=t[24],t[25]!==p.name?(g=(0,o.jsx)("div",{className:"graphiql-doc-explorer-title",children:p.name}),t[25]=p.name,t[26]=g):g=t[26],t[27]!==m||t[28]!==g?(v=(0,o.jsxs)("div",{className:"graphiql-doc-explorer-header-content",children:[m,g]}),t[27]=m,t[28]=g,t[29]=v):v=t[29],t[30]!==p.name?(y=(0,o.jsx)(wE,{},p.name),t[30]=p.name,t[31]=y):y=t[31],t[32]!==v||t[33]!==y?(x=(0,o.jsxs)("div",{className:"graphiql-doc-explorer-header",children:[v,y]}),t[32]=v,t[33]=y,t[34]=x):x=t[34],t[35]!==f?(E=(0,o.jsx)("div",{className:"graphiql-doc-explorer-content",children:f}),t[35]=f,t[36]=E):E=t[36],t[37]!==x||t[38]!==E?(w=(0,o.jsxs)("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[x,E]}),t[37]=x,t[38]=E,t[39]=w):w=t[39],w}},$E={title:"History",icon:Zb,content:function(){const{items:e,deleteFromHistory:t}=Rx({nonNull:!0});let n=e.slice().map(((e,t)=>({...e,index:t}))).reverse();const r=n.filter((e=>e.favorite));r.length&&(n=n.filter((e=>!e.favorite)));const[i,a]=(0,s.useState)(null);return(0,s.useEffect)((()=>{i&&setTimeout((()=>{a(null)}),2e3)}),[i]),(0,o.jsxs)("section",{"aria-label":"History",className:"graphiql-history",children:[(0,o.jsxs)("div",{className:"graphiql-history-header",children:["History",(i||n.length>0)&&(0,o.jsx)(vx,{type:"button",state:i||void 0,disabled:!n.length,onClick:()=>{try{for(const e of n)t(e,!0);a("success")}catch{a("error")}},children:{success:"Cleared",error:"Failed to Clear"}[i]||"Clear"})]}),Boolean(r.length)&&(0,o.jsx)("ul",{className:"graphiql-history-items",children:r.map((e=>(0,o.jsx)(jx,{item:e},e.index)))}),Boolean(r.length)&&Boolean(n.length)&&(0,o.jsx)("div",{className:"graphiql-history-item-spacer"}),Boolean(n.length)&&(0,o.jsx)("ul",{className:"graphiql-history-items",children:n.map((e=>(0,o.jsx)(jx,{item:e},e.index)))})]})}},WE=Ib("PluginContext");function GE(e){const t=(0,a.c)(27),n=Pb(),r=aE(),i=Rx(),l=Boolean(r),u=Boolean(i);let c,d;if(t[0]!==l||t[1]!==u||t[2]!==e.plugins){d=[];const n={};let r;l&&(d.push(qE),n[qE.title]=!0),u&&(d.push($E),n[$E.title]=!0),t[4]!==e.plugins?(r=e.plugins||[],t[4]=e.plugins,t[5]=r):r=t[5];for(const e of r){if("string"!=typeof e.title||!e.title)throw new Error("All GraphiQL plugins must have a unique title");if(n[e.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${e.title}'`);d.push(e),n[e.title]=!0}t[0]=l,t[1]=u,t[2]=e.plugins,t[3]=d}else d=t[3];c=d;const f=c;let p;t[6]!==f||t[7]!==e.visiblePlugin||t[8]!==n?(p=()=>{const t=null==n?void 0:n.get(YE);return f.find((e=>e.title===t))||(t&&(null==n||n.set(YE,"")),e.visiblePlugin&&f.find((t=>("string"==typeof e.visiblePlugin?t.title:t)===e.visiblePlugin))||null)},t[6]=f,t[7]=e.visiblePlugin,t[8]=n,t[9]=p):p=t[9];const[h,m]=(0,s.useState)(p),{onTogglePluginVisibility:g,children:v}=e;let y;t[10]!==g||t[11]!==f?(y=e=>{const t=e&&f.find((t=>("string"==typeof e?t.title:t)===e))||null;m((e=>t===e?e:(null==g||g(t),t)))},t[10]=g,t[11]=f,t[12]=y):y=t[12];const b=y;let x,E,w;t[13]!==e.visiblePlugin||t[14]!==b?(x=()=>{e.visiblePlugin&&b(e.visiblePlugin)},t[13]=e.visiblePlugin,t[14]=b,t[15]=x):x=t[15],t[16]!==f||t[17]!==e.visiblePlugin||t[18]!==b?(E=[f,e.visiblePlugin,b],t[16]=f,t[17]=e.visiblePlugin,t[18]=b,t[19]=E):E=t[19],(0,s.useEffect)(x,E),t[20]!==f||t[21]!==b||t[22]!==h?(w={plugins:f,setVisiblePlugin:b,visiblePlugin:h},t[20]=f,t[21]=b,t[22]=h,t[23]=w):w=t[23];const k=w;let C;return t[24]!==v||t[25]!==k?(C=(0,o.jsx)(WE.Provider,{value:k,children:v}),t[24]=v,t[25]=k,t[26]=C):C=t[26],C}const KE=Fb(WE),YE="visiblePlugin";function QE(e,t){const n=(0,a.c)(4);let r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,s.useEffect)(r,i)}function XE(e,t,n){const r=(0,a.c)(5);let i,o;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e&&e.setOption(t,n)},o=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,s.useEffect)(i,o)}function ZE(e,t,n,r,i){const o=(0,a.c)(10);let l;o[0]!==i?(l={nonNull:!0,caller:i},o[0]=i,o[1]=l):l=o[1];const{updateActiveTabValues:u}=zw(l),c=Pb();let d,f;o[2]!==t||o[3]!==e||o[4]!==c||o[5]!==n||o[6]!==r||o[7]!==u?(d=()=>{if(!e)return;const i=EE(500,(e=>{c&&null!==n&&c.set(n,e)})),o=EE(100,(e=>{u({[r]:e})})),a=(e,n)=>{if(!n)return;const r=e.getValue();i(r),o(r),null==t||t(r)};return e.on("change",a),()=>e.off("change",a)},f=[t,e,c,n,r,u],o[2]=t,o[3]=e,o[4]=c,o[5]=n,o[6]=r,o[7]=u,o[8]=d,o[9]=f):(d=o[8],f=o[9]),(0,s.useEffect)(d,f)}function JE(e,t,n){const r=(0,a.c)(9);let i;r[0]!==n?(i={nonNull:!0,caller:n},r[0]=n,r[1]=i):i=r[1];const{schema:o}=eE(i),l=aE(),u=KE();let c,d;r[2]!==t||r[3]!==e||r[4]!==l||r[5]!==u||r[6]!==o?(c=()=>{if(!e)return;const n=(e,n)=>{!function(e,t,n,r,i,o){function a(e){if(!(n&&r&&i&&e.currentTarget instanceof HTMLElement))return;const t=e.currentTarget.textContent||"",a=n.getType(t);a&&(i.setVisiblePlugin(qE),r.push({name:a.name,def:a}),null==o||o(a))}Qx([],{useCommonAddons:!1}).then((e=>{let n,r,i,o,s,l,u,c,d;e.on(t,"select",((e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.append(n);const f=document.createElement("header");f.className="CodeMirror-hint-information-header",n.append(f),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",f.append(r),i=document.createElement("span"),i.className="CodeMirror-hint-information-type-name-pill",f.append(i),o=document.createElement("span"),i.append(o),s=document.createElement("a"),s.className="CodeMirror-hint-information-type-name",s.href="javascript:void 0",s.addEventListener("click",a),i.append(s),l=document.createElement("span"),i.append(l),u=document.createElement("div"),u.className="CodeMirror-hint-information-description",n.append(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-deprecation",n.append(c);const p=document.createElement("span");p.className="CodeMirror-hint-information-deprecation-label",p.textContent="Deprecated",c.append(p),d=document.createElement("div"),d.className="CodeMirror-hint-information-deprecation-reason",c.append(d);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px",n.style.maxHeight=e.scrollTop+m+"px")};let v;e.addEventListener("scroll",g),e.addEventListener("DOMNodeRemoved",v=t=>{t.target===e&&(e.removeEventListener("scroll",g),e.removeEventListener("DOMNodeRemoved",v),n&&n.removeEventListener("click",a),n=null,r=null,i=null,o=null,s=null,l=null,u=null,c=null,d=null,v=null)})}if(r&&(r.textContent=e.text),i&&o&&s&&l)if(e.type){i.style.display="inline";const t=e=>{(0,b.bd)(e)?(l.textContent="!"+l.textContent,t(e.ofType)):(0,b.Fs)(e)?(o.textContent+="[",l.textContent="]"+l.textContent,t(e.ofType)):s.textContent=e.name};o.textContent="",l.textContent="",t(e.type)}else o.textContent="",s.textContent="",l.textContent="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=Cx.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&d&&(e.deprecationReason?(c.style.display="block",d.innerHTML=Cx.render(e.deprecationReason)):(c.style.display="none",d.innerHTML=""))}))}))}(0,n,o,l,u,(e=>{null==t||t({kind:"Type",type:e,schema:o||void 0})}))};return e.on("hasCompletion",n),()=>e.off("hasCompletion",n)},d=[t,e,l,u,o],r[2]=t,r[3]=e,r[4]=l,r[5]=u,r[6]=o,r[7]=c,r[8]=d):(c=r[7],d=r[8]),(0,s.useEffect)(c,d)}function ew(e,t,n){const r=(0,a.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{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)}}},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,s.useEffect)(i,o)}const tw=ow,nw=aw,rw=sw,iw=lw;function ow(e){const t=(0,a.c)(7);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onCopyQuery:i}=n,o=r||tw;let s;t[2]!==o?(s={nonNull:!0,caller:o},t[2]=o,t[3]=s):s=t[3];const{queryEditor:l}=zw(s);let u;return t[4]!==i||t[5]!==l?(u=()=>{if(!l)return;const e=l.getValue();pe(e),null==i||i(e)},t[4]=i,t[5]=l,t[6]=u):u=t[6],u}function aw(e){const t=(0,a.c)(8);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r}=n,i=r||nw;let o;t[2]!==i?(o={nonNull:!0,caller:i},t[2]=i,t[3]=o):o=t[3];const{queryEditor:s}=zw(o);let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l={nonNull:!0,caller:nw},t[4]=l):l=t[4];const{schema:u}=eE(l);let c;return t[5]!==s||t[6]!==u?(c=()=>{const e=null==s?void 0:s.documentAST,t=null==s?void 0:s.getValue();e&&t&&s.setValue((0,d.y)(oe(e,u)))},t[5]=s,t[6]=u,t[7]=c):c=t[7],c}function sw(e){const t=(0,a.c)(8);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r}=n,i=r||rw;let o;t[2]!==i?(o={nonNull:!0,caller:i},t[2]=i,t[3]=o):o=t[3];const{queryEditor:s,headerEditor:l,variableEditor:u}=zw(o);let c;return t[4]!==l||t[5]!==s||t[6]!==u?(c=()=>{if(u){const e=u.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(l){const e=l.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&l.setValue(t)}catch{}}if(s){const e=s.getValue(),t=(0,d.y)((0,y.qg)(e));t!==e&&s.setValue(t)}},t[4]=l,t[5]=s,t[6]=u,t[7]=c):c=t[7],c}function lw(e){const t=(0,a.c)(10);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:r,caller:i}=n,o=i||iw;let s;t[2]!==o?(s={nonNull:!0,caller:o},t[2]=o,t[3]=s):s=t[3];const{schema:l}=eE(s),u=i||iw;let c;t[4]!==u?(c={nonNull:!0,caller:u},t[4]=u,t[5]=c):c=t[5];const{queryEditor:d}=zw(c);let f;return t[6]!==r||t[7]!==d||t[8]!==l?(f=()=>{if(!d)return;const e=d.getValue(),{insertions:t,result:n}=ee(l,e,r);return t&&t.length>0&&d.operation((()=>{const e=d.getCursor(),r=d.indexFromPos(e);let i;d.setValue(n||""),i=0;const o=t.map((e=>{const{index:t,string:n}=e;return i+=n.length,d.markText(d.posFromIndex(t+i),d.posFromIndex(t+i),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((()=>{for(const e of o)e.clear()}),7e3);let a=r;for(const{index:e,string:n}of t)e<r&&(a+=n.length);d.setCursor(d.posFromIndex(a))})),n},t[6]=r,t[7]=d,t[8]=l,t[9]=f):f=t[9],f}const uw=cw;function cw(e,t){const n=(0,a.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:o,keyMap:l,onEdit:u,readOnly:c}=r,d=void 0===o?Gx:o,f=void 0===l?Kx:l,p=void 0!==c&&c,h=t||uw;let m;n[2]!==h?(m={nonNull:!0,caller:h},n[2]=h,n[3]=m):m=n[3];const{initialHeaders:g,headerEditor:v,setHeaderEditor:y,shouldPersistHeaders:b}=zw(m),x=zx(),E=t||uw;let w;n[4]!==E?(w={caller:E},n[4]=E,n[5]=w):w=n[5];const k=aw(w),C=t||uw;let S;n[6]!==C?(S={caller:C},n[6]=C,n[7]=S):S=n[7];const T=sw(S),N=(0,s.useRef)(null);let _,D,A,O,L;return n[8]!==d||n[9]!==g||n[10]!==p||n[11]!==y?(_=()=>{let e;return e=!0,Qx([Promise.resolve().then(i.t.bind(i,6792,19))]).then((t=>{if(!e)return;const n=N.current;if(!n)return;const r=t(n,{value:g,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!p&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Yx});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",dw),y(r)})),()=>{e=!1}},D=[d,g,p,y],n[8]=d,n[9]=g,n[10]=p,n[11]=y,n[12]=_,n[13]=D):(_=n[12],D=n[13]),(0,s.useEffect)(_,D),XE(v,"keyMap",f),ZE(v,u,b?fw:null,"headers",uw),n[14]===Symbol.for("react.memo_cache_sentinel")?(A=["Cmd-Enter","Ctrl-Enter"],n[14]=A):A=n[14],ew(v,A,null==x?void 0:x.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(O=["Shift-Ctrl-P"],n[15]=O):O=n[15],ew(v,O,T),n[16]===Symbol.for("react.memo_cache_sentinel")?(L=["Shift-Ctrl-M"],n[16]=L):L=n[16],ew(v,L,k),N}function dw(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}const fw="headers",pw=Array.from({length:11},((e,t)=>String.fromCharCode(8192+t))).concat(["\u2028","\u2029"," "," "]),hw=new RegExp("["+pw.join("")+"]","g");function mw(e){return e.replace(hw," ")}const gw=vw;function vw(e,t){const n=(0,a.c)(41);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:o,keyMap:l,onClickReference:u,onCopyQuery:c,onEdit:d,readOnly:f}=r,p=void 0===o?Gx:o,h=void 0===l?Kx:l,m=void 0!==f&&f,g=t||gw;let v;n[2]!==g?(v={nonNull:!0,caller:g},n[2]=g,n[3]=v):v=n[3];const{schema:y}=eE(v),b=t||gw;let x;n[4]!==b?(x={nonNull:!0,caller:b},n[4]=b,n[5]=x):x=n[5];const{externalFragments:E,initialQuery:w,queryEditor:k,setOperationName:C,setQueryEditor:S,validationRules:T,variableEditor:N,updateActiveTabValues:_}=zw(x),D=zx(),A=Pb(),O=aE(),L=KE(),I=t||gw;let F;n[6]!==c||n[7]!==I?(F={caller:I,onCopyQuery:c},n[6]=c,n[7]=I,n[8]=F):F=n[8];const M=ow(F),R=t||gw;let P;n[9]!==R?(P={caller:R},n[9]=R,n[10]=P):P=n[10];const j=aw(P),V=t||gw;let B;n[11]!==V?(B={caller:V},n[11]=V,n[12]=B):B=n[12];const U=sw(B),z=(0,s.useRef)(null),H=(0,s.useRef)(),q=(0,s.useRef)(Ew);let $,W,G,K,Y,Q;n[13]!==O||n[14]!==u||n[15]!==L?($=()=>{q.current=e=>{if(O&&L){L.setVisiblePlugin(qE);e:switch(e.kind){case"Type":O.push({name:e.type.name,def:e.type});break e;case"Field":O.push({name:e.field.name,def:e.field});break e;case"Argument":e.field&&O.push({name:e.field.name,def:e.field});break e;case"EnumValue":e.type&&O.push({name:e.type.name,def:e.type})}null==u||u(e)}}},W=[O,u,L],n[13]=O,n[14]=u,n[15]=L,n[16]=$,n[17]=W):($=n[16],W=n[17]),(0,s.useEffect)($,W),n[18]!==p||n[19]!==w||n[20]!==m||n[21]!==S?(G=()=>{let e;return e=!0,Qx([Promise.resolve().then(i.t.bind(i,7829,19)),Promise.resolve().then(i.t.bind(i,6895,19)),Promise.resolve().then(i.bind(i,8770)),Promise.resolve().then(i.bind(i,902)),Promise.resolve().then(i.bind(i,155)),Promise.resolve().then(i.bind(i,528)),Promise.resolve().then(i.bind(i,5835))]).then((t=>{if(!e)return;H.current=t;const n=z.current;if(!n)return;const r=t(n,{value:w,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:p,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!m&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:ce.kr.EXECUTABLE}},info:{schema:void 0,renderDescription:xw,onClick(e){q.current(e)}},jump:{schema:void 0,onClick(e){q.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...Yx,"Cmd-S"(){},"Ctrl-S"(){}}});let i;r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!0,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!0,container:n})},"Alt-Space"(){r.showHint({completeSingle:!0,container:n})},"Shift-Space"(){r.showHint({completeSingle:!0,container:n})},"Shift-Alt-Space"(){r.showHint({completeSingle:!0,container:n})}}),r.on("keyup",bw),i=!1,r.on("startCompletion",(()=>{i=!0})),r.on("endCompletion",(()=>{i=!1})),r.on("keydown",((e,t)=>{"Escape"===t.key&&i&&t.stopPropagation()})),r.on("beforeChange",yw),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,S(r)})),()=>{e=!1}},K=[p,w,m,S],n[18]=p,n[19]=w,n[20]=m,n[21]=S,n[22]=G,n[23]=K):(G=n[22],K=n[23]),(0,s.useEffect)(G,K),XE(k,"keyMap",h),n[24]!==d||n[25]!==k||n[26]!==y||n[27]!==C||n[28]!==A||n[29]!==_||n[30]!==N?(Y=()=>{if(!k)return;const e=function(e){var t;const n=(0,ce.Jb)(y,e.getValue()),r=function(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>{var t;return null==(t=e.name)?void 0:t.value}));if(t&&r.includes(t))return t;if(t&&e){const n=e.map((e=>{var t;return null==(t=e.name)?void 0:t.value})).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}(e.operations??void 0,e.operationName??void 0,null==n?void 0:n.operations);return e.documentAST=(null==n?void 0:n.documentAST)??null,e.operationName=r??null,e.operations=(null==n?void 0:n.operations)??null,N&&(function(e,t){e.state.lint.linterOptions.variableToType=null==t?void 0:t.variableToType,e.options.lint.variableToType=null==t?void 0:t.variableToType,e.options.hintOptions.variableToType=null==t?void 0:t.variableToType}(N,n),null==(t=H.current)||t.signal(N,"change",N)),n?{...n,operationName:r}:null},t=EE(100,(t=>{const n=t.getValue();null==A||A.set(kw,n);const r=t.operationName,i=e(t);void 0!==(null==i?void 0:i.operationName)&&(null==A||A.set(Cw,i.operationName)),null==d||d(n,null==i?void 0:i.documentAST),(null==i?void 0:i.operationName)&&r!==i.operationName&&C(i.operationName),_({query:n,operationName:(null==i?void 0:i.operationName)??null})}));return e(k),k.on("change",t),()=>k.off("change",t)},Q=[d,k,y,C,A,N,_],n[24]=d,n[25]=k,n[26]=y,n[27]=C,n[28]=A,n[29]=_,n[30]=N,n[31]=Y,n[32]=Q):(Y=n[31],Q=n[32]),(0,s.useEffect)(Y,Q),function(e,t,n){const r=(0,a.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.schema!==t;!function(e,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}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,s.useEffect)(i,o)}(k,y??null,H),function(e,t,n){const r=(0,a.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.validationRules!==t;!function(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,s.useEffect)(i,o)}(k,T??null,H),function(e,t,n){const r=(0,a.c)(9);let i,o;r[0]!==t?(i=t.values(),r[0]=t,r[1]=i):i=r[1],r[2]!==i?(o=[...i],r[2]=i,r[3]=o):o=r[3];const l=o;let u,c;r[4]!==n||r[5]!==e||r[6]!==l?(u=()=>{if(!e)return;const t=e.options.lint.externalFragments!==l;!function(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}(e,l),t&&n.current&&n.current.signal(e,"change",e)},c=[e,l,n],r[4]=n,r[5]=e,r[6]=l,r[7]=u,r[8]=c):(u=r[7],c=r[8]),(0,s.useEffect)(u,c)}(k,E,H),JE(k,u||null,gw);const X=null==D?void 0:D.run;let Z;n[33]!==k||n[34]!==X||n[35]!==C?(Z=()=>{var e;if(!(X&&k&&k.operations&&k.hasFocus()))return void(null==X||X());const t=k.indexFromPos(k.getCursor());let n;for(const r of k.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==k.operationName&&C(n),X()},n[33]=k,n[34]=X,n[35]=C,n[36]=Z):Z=n[36];const J=Z;let ee,te,ne,re;return n[37]===Symbol.for("react.memo_cache_sentinel")?(ee=["Cmd-Enter","Ctrl-Enter"],n[37]=ee):ee=n[37],ew(k,ee,J),n[38]===Symbol.for("react.memo_cache_sentinel")?(te=["Shift-Ctrl-C"],n[38]=te):te=n[38],ew(k,te,M),n[39]===Symbol.for("react.memo_cache_sentinel")?(ne=["Shift-Ctrl-P","Shift-Ctrl-F"],n[39]=ne):ne=n[39],ew(k,ne,U),n[40]===Symbol.for("react.memo_cache_sentinel")?(re=["Shift-Ctrl-M"],n[40]=re):re=n[40],ew(k,re,j),z}function yw(e,t){var n;if("paste"===t.origin){const e=t.text.map(mw);null==(n=t.update)||n.call(t,t.from,t.to,e)}}function bw(e,t){ww.test(t.key)&&e.execCommand("autocomplete")}function xw(e){return Cx.render(e)}function Ew(){}const ww=/^[a-zA-Z0-9_@(]$/,kw="query",Cw="operationName";function Sw(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Tw(e,"id")&&Tw(e,"title")&&Nw(e,"query")&&Nw(e,"variables")&&Nw(e,"headers")&&Nw(e,"operationName")&&Nw(e,"response")}function Tw(e,t){return t in e&&"string"==typeof e[t]}function Nw(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function _w(e,t=!1){return JSON.stringify(e,((e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n))}function Dw({query:e=null,variables:t=null,headers:n=null}={}){return{id:Ow(),hash:Lw({query:e,variables:t,headers:n}),title:e&&Iw(e)||Fw,query:e,variables:t,headers:n,operationName:null,response:null}}function Aw(e,t){return{...e,tabs:e.tabs.map(((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:Lw(i),title:i.operationName||(i.query?Iw(i.query):void 0)||Fw}}))}}function Ow(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Lw(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function Iw(e){const t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(null==t?void 0:t[2])??null}const Fw="<untitled>",Mw="tabState",Rw=Pw;function Pw(e,t){const n=(0,a.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:o,keyMap:l,onClickReference:u,onEdit:c,readOnly:d}=r,f=void 0===o?Gx:o,p=void 0===l?Kx:l,h=void 0!==d&&d,m=t||Rw;let g;n[2]!==m?(g={nonNull:!0,caller:m},n[2]=m,n[3]=g):g=n[3];const{initialVariables:v,variableEditor:y,setVariableEditor:b}=zw(g),x=zx(),E=t||Rw;let w;n[4]!==E?(w={caller:E},n[4]=E,n[5]=w):w=n[5];const k=aw(w),C=t||Rw;let S;n[6]!==C?(S={caller:C},n[6]=C,n[7]=S):S=n[7];const T=sw(S),N=(0,s.useRef)(null),_=(0,s.useRef)();let D,A,O,L,I;return n[8]!==f||n[9]!==v||n[10]!==h||n[11]!==b?(D=()=>{let e;return e=!0,Qx([Promise.resolve().then(i.bind(i,163)),Promise.resolve().then(i.bind(i,1071)),Promise.resolve().then(i.bind(i,8738))]).then((t=>{if(!e)return;_.current=t;const n=N.current;if(!n)return;const r=t(n,{value:v,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:f,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!h&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Yx});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",jw),b(r)})),()=>{e=!1}},A=[f,v,h,b],n[8]=f,n[9]=v,n[10]=h,n[11]=b,n[12]=D,n[13]=A):(D=n[12],A=n[13]),(0,s.useEffect)(D,A),XE(y,"keyMap",p),ZE(y,c,Vw,"variables",Rw),JE(y,u||null,Rw),n[14]===Symbol.for("react.memo_cache_sentinel")?(O=["Cmd-Enter","Ctrl-Enter"],n[14]=O):O=n[14],ew(y,O,null==x?void 0:x.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(L=["Shift-Ctrl-P"],n[15]=L):L=n[15],ew(y,L,T),n[16]===Symbol.for("react.memo_cache_sentinel")?(I=["Shift-Ctrl-M"],n[16]=I):I=n[16],ew(y,I,k),N}function jw(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}const Vw="variables",Bw=Ib("EditorContext");function Uw(e){const t=(0,a.c)(89),n=Pb(),[r,i]=(0,s.useState)(null),[l,u]=(0,s.useState)(null),[c,d]=(0,s.useState)(null),[f,p]=(0,s.useState)(null);let h;t[0]!==e.shouldPersistHeaders||t[1]!==n?(h=()=>{const t=null!==(null==n?void 0:n.get(Hw));return!1!==e.shouldPersistHeaders&&t?"true"===(null==n?void 0:n.get(Hw)):Boolean(e.shouldPersistHeaders)},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=h):h=t[2];const[m,g]=(0,s.useState)(h);let v;QE(r,e.headers),QE(l,e.query),QE(c,e.response),QE(f,e.variables),t[3]!==m||t[4]!==n?(v={storage:n,shouldPersistHeaders:m},t[3]=m,t[4]=n,t[5]=v):v=t[5];const b=function({storage:e,shouldPersistHeaders:t}){const n=(0,s.useMemo)((()=>EE(500,(t=>{null==e||e.set(Mw,t)}))),[e]);return(0,s.useCallback)((e=>{n(_w(e,t))}),[t,n])}(v);let x;t[6]!==e.defaultHeaders||t[7]!==e.defaultQuery||t[8]!==e.defaultTabs||t[9]!==e.headers||t[10]!==e.query||t[11]!==e.response||t[12]!==e.variables||t[13]!==m||t[14]!==n||t[15]!==b?(x=()=>{const t=e.query??(null==n?void 0:n.get(kw))??null,r=e.variables??(null==n?void 0:n.get(Vw))??null,i=e.headers??(null==n?void 0:n.get(fw))??null,o=e.response??"",a=function({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,storage:a,shouldPersistHeaders:s}){const l=null==a?void 0:a.get(Mw);try{if(!l)throw new Error("Storage for tabs is empty");const e=JSON.parse(l),t=s?n:void 0;if((u=e)&&"object"==typeof u&&!Array.isArray(u)&&function(e,t){return t in e&&"number"==typeof e[t]}(u,"activeTabIndex")&&"tabs"in u&&Array.isArray(u.tabs)&&u.tabs.every(Sw)){const r=Lw({query:i,variables:o,headers:t});let a=-1;for(let t=0;t<e.tabs.length;t++){const n=e.tabs[t];n.hash=Lw({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(a=t)}if(a>=0)e.activeTabIndex=a;else{const t=i?Iw(i):null;e.tabs.push({id:Ow(),hash:r,title:t||Fw,query:i,variables:o,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:o,headers:n??t}]).map(Dw)}}var u}({query:t,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||qw,defaultHeaders:e.defaultHeaders,storage:n,shouldPersistHeaders:m});return b(a),{query:t??(0===a.activeTabIndex?a.tabs[0].query:null)??"",variables:r??"",headers:i??e.defaultHeaders??"",response:o,tabState:a}},t[6]=e.defaultHeaders,t[7]=e.defaultQuery,t[8]=e.defaultTabs,t[9]=e.headers,t[10]=e.query,t[11]=e.response,t[12]=e.variables,t[13]=m,t[14]=n,t[15]=b,t[16]=x):x=t[16];const[E]=(0,s.useState)(x),[w,k]=(0,s.useState)(E.tabState);let C;t[17]!==r||t[18]!==n||t[19]!==w?(C=e=>{if(e){null==n||n.set(fw,(null==r?void 0:r.getValue())??"");const e=_w(w,!0);null==n||n.set(Mw,e)}else null==n||n.set(fw,""),function(e){const t=null==e?void 0:e.get(Mw);if(t){const n=JSON.parse(t);null==e||e.set(Mw,JSON.stringify(n,((e,t)=>"headers"===e?null:t)))}}(n);g(e),null==n||n.set(Hw,e.toString())},t[17]=r,t[18]=n,t[19]=w,t[20]=C):C=t[20];const T=C,N=(0,s.useRef)();let _,D,A;t[21]!==e.shouldPersistHeaders||t[22]!==T?(_=()=>{const t=Boolean(e.shouldPersistHeaders);(null==N?void 0:N.current)!==t&&(T(t),N.current=t)},D=[e.shouldPersistHeaders,T],t[21]=e.shouldPersistHeaders,t[22]=T,t[23]=_,t[24]=D):(_=t[23],D=t[24]),(0,s.useEffect)(_,D),t[25]!==r||t[26]!==l||t[27]!==c||t[28]!==f?(A={queryEditor:l,variableEditor:f,headerEditor:r,responseEditor:c},t[25]=r,t[26]=l,t[27]=c,t[28]=f,t[29]=A):A=t[29];const O=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,s.useCallback)((i=>{const o=(null==e?void 0:e.getValue())??null,a=(null==t?void 0:t.getValue())??null,s=(null==n?void 0:n.getValue())??null,l=(null==e?void 0:e.operationName)??null;return Aw(i,{query:o,variables:a,headers:s,response:(null==r?void 0:r.getValue())??null,operationName:l})}),[e,t,n,r])}(A),{onTabChange:L,defaultHeaders:I,defaultQuery:F,children:M}=e;let R;t[30]!==I||t[31]!==r||t[32]!==l||t[33]!==c||t[34]!==f?(R={queryEditor:l,variableEditor:f,headerEditor:r,responseEditor:c,defaultHeaders:I},t[30]=I,t[31]=r,t[32]=l,t[33]=c,t[34]=f,t[35]=R):R=t[35];const P=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,s.useCallback)((({query:o,variables:a,headers:s,response:l})=>{null==e||e.setValue(o??""),null==t||t.setValue(a??""),null==n||n.setValue(s??i??""),null==r||r.setValue(l??"")}),[n,e,r,t,i])}(R);let j;t[36]!==I||t[37]!==F||t[38]!==L||t[39]!==P||t[40]!==b||t[41]!==O?(j=()=>{k((e=>{const t=O(e),n={tabs:[...t.tabs,Dw({headers:I,query:F??qw})],activeTabIndex:t.tabs.length};return b(n),P(n.tabs[n.activeTabIndex]),null==L||L(n),n}))},t[36]=I,t[37]=F,t[38]=L,t[39]=P,t[40]=b,t[41]=O,t[42]=j):j=t[42];const V=j;let B;t[43]!==L||t[44]!==P||t[45]!==b?(B=e=>{k((t=>{const n={...t,activeTabIndex:e};return b(n),P(n.tabs[n.activeTabIndex]),null==L||L(n),n}))},t[43]=L,t[44]=P,t[45]=b,t[46]=B):B=t[46];const U=B;let z;t[47]!==L||t[48]!==P||t[49]!==b?(z=e=>{k((t=>{const n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return b(r),P(r.tabs[r.activeTabIndex]),null==L||L(r),r}))},t[47]=L,t[48]=P,t[49]=b,t[50]=z):z=t[50];const H=z;let q;t[51]!==L||t[52]!==P||t[53]!==b?(q=e=>{k((t=>{const n={tabs:t.tabs.filter(((t,n)=>e!==n)),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return b(n),P(n.tabs[n.activeTabIndex]),null==L||L(n),n}))},t[51]=L,t[52]=P,t[53]=b,t[54]=q):q=t[54];const $=q;let W;t[55]!==L||t[56]!==b?(W=e=>{k((t=>{const n=Aw(t,e);return b(n),null==L||L(n),n}))},t[55]=L,t[56]=b,t[57]=W):W=t[57];const G=W,{onEditOperationName:K}=e;let Y;t[58]!==K||t[59]!==l||t[60]!==G?(Y=e=>{l&&(function(e,t){e.operationName=t}(l,e),G({operationName:e}),null==K||K(e))},t[58]=K,t[59]=l,t[60]=G,t[61]=Y):Y=t[61];const Q=Y;let X,Z;if(t[62]!==e.externalFragments){if(Z=new Map,Array.isArray(e.externalFragments))for(const t of e.externalFragments)Z.set(t.name.value,t);else if("string"==typeof e.externalFragments)(0,S.YR)((0,y.qg)(e.externalFragments,{}),{FragmentDefinition(e){Z.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.");t[62]=e.externalFragments,t[63]=Z}else Z=t[63];X=Z;const J=X;let ee;t[64]!==e.validationRules?(ee=e.validationRules||[],t[64]=e.validationRules,t[65]=ee):ee=t[65];const te=ee;let ne;t[66]!==V||t[67]!==U||t[68]!==$||t[69]!==J||t[70]!==r||t[71]!==E.headers||t[72]!==E.query||t[73]!==E.response||t[74]!==E.variables||t[75]!==H||t[76]!==l||t[77]!==c||t[78]!==Q||t[79]!==T||t[80]!==m||t[81]!==w||t[82]!==G||t[83]!==te||t[84]!==f?(ne={...w,addTab:V,changeTab:U,moveTab:H,closeTab:$,updateActiveTabValues:G,headerEditor:r,queryEditor:l,responseEditor:c,variableEditor:f,setHeaderEditor:i,setQueryEditor:u,setResponseEditor:d,setVariableEditor:p,setOperationName:Q,initialQuery:E.query,initialVariables:E.variables,initialHeaders:E.headers,initialResponse:E.response,externalFragments:J,validationRules:te,shouldPersistHeaders:m,setShouldPersistHeaders:T},t[66]=V,t[67]=U,t[68]=$,t[69]=J,t[70]=r,t[71]=E.headers,t[72]=E.query,t[73]=E.response,t[74]=E.variables,t[75]=H,t[76]=l,t[77]=c,t[78]=Q,t[79]=T,t[80]=m,t[81]=w,t[82]=G,t[83]=te,t[84]=f,t[85]=ne):ne=t[85];const re=ne;let ie;return t[86]!==M||t[87]!==re?(ie=(0,o.jsx)(Bw.Provider,{value:re,children:M}),t[86]=M,t[87]=re,t[88]=ie):ie=t[88],ie}const zw=Fb(Bw),Hw="shouldPersistHeaders",qw='# 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)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function $w(e){const t=(0,a.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:$w},t[3]=i):i=t[3];const{headerEditor:l}=zw(i),u=cw(n,$w);let d,f;t[4]!==l||t[5]!==r?(d=()=>{r||null==l||l.refresh()},f=[l,r],t[4]=l,t[5]=r,t[6]=d,t[7]=f):(d=t[6],f=t[7]),(0,s.useEffect)(d,f);const p=r&&"hidden";let h,m;return t[8]!==p?(h=c("graphiql-editor",p),t[8]=p,t[9]=h):h=t[9],t[10]!==u||t[11]!==h?(m=(0,o.jsx)("div",{className:h,ref:u}),t[10]=u,t[11]=h,t[12]=m):m=t[12],m}function Ww(e){var t;const n=(0,a.c)(14);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},n[0]=r):r=n[0];const[i,l]=(0,s.useState)(r),[u,c]=(0,s.useState)(null),d=(0,s.useRef)(null),f=null==(t=Gw(e.token))?void 0:t.href;let p,h,m;n[1]!==f?(p=()=>{if(d.current)return f?void fetch(f,{method:"HEAD"}).then((e=>{c(e.headers.get("Content-Type"))})).catch((()=>{c(null)})):(l({width:null,height:null}),void c(null))},h=[f],n[1]=f,n[2]=p,n[3]=h):(p=n[2],h=n[3]),(0,s.useEffect)(p,h),n[4]!==i.height||n[5]!==i.width||n[6]!==u?(m=null!==i.width&&null!==i.height?(0,o.jsxs)("div",{children:[i.width,"x",i.height,null===u?null:" "+u]}):null,n[4]=i.height,n[5]=i.width,n[6]=u,n[7]=m):m=n[7];const g=m;let v,y,b;return n[8]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{var e,t;l({width:(null==(e=d.current)?void 0:e.naturalWidth)??null,height:(null==(t=d.current)?void 0:t.naturalHeight)??null})},n[8]=v):v=n[8],n[9]!==f?(y=(0,o.jsx)("img",{onLoad:v,ref:d,src:f}),n[9]=f,n[10]=y):y=n[10],n[11]!==g||n[12]!==y?(b=(0,o.jsxs)("div",{children:[y,g]}),n[11]=g,n[12]=y,n[13]=b):b=n[13],b}function Gw(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const{location:e}=window;return new URL(t,e.protocol+"//"+e.host)}catch{return}}function Kw(e){const t=(0,a.c)(2),n=vw(e,Kw);let r;return t[0]!==n?(r=(0,o.jsx)("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=r):r=t[1],r}Ww.shouldRender=function(e){const t=Gw(e);return!!t&&function(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}(t)};const Yw=Qw;function Qw(e,t){const n=(0,a.c)(19);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{responseTooltip:l,editorTheme:u,keyMap:c}=r,d=void 0===u?Gx:u,f=void 0===c?Kx:c,p=t||Yw;let h;n[2]!==p?(h={nonNull:!0,caller:p},n[2]=p,n[3]=h):h=n[3];const{fetchError:m,validationErrors:g}=eE(h),v=t||Yw;let y;n[4]!==v?(y={nonNull:!0,caller:v},n[4]=v,n[5]=y):y=n[5];const{initialResponse:b,responseEditor:x,setResponseEditor:E}=zw(y),w=(0,s.useRef)(null),k=(0,s.useRef)(l);let C,S,T,N,_,D;return n[6]!==l?(C=()=>{k.current=l},S=[l],n[6]=l,n[7]=C,n[8]=S):(C=n[7],S=n[8]),(0,s.useEffect)(C,S),n[9]!==d||n[10]!==b||n[11]!==E?(T=()=>{let e;return e=!0,Qx([Promise.resolve().then(i.t.bind(i,1274,19)),Promise.resolve().then(i.t.bind(i,795,19)),Promise.resolve().then(i.t.bind(i,8527,19)),Promise.resolve().then(i.t.bind(i,6895,19)),Promise.resolve().then(i.t.bind(i,3653,19)),Promise.resolve().then(i.t.bind(i,8820,19)),Promise.resolve().then(i.t.bind(i,8208,19)),Promise.resolve().then(i.bind(i,6283)),Promise.resolve().then(i.bind(i,7402))],{useCommonAddons:!1}).then((t=>{if(!e)return;const n=document.createElement("div");t.registerHelper("info","graphql-results",((e,t,r,i)=>{const a=[],s=k.current;return s&&a.push((0,o.jsx)(s,{pos:i,token:e})),Ww.shouldRender(e)&&a.push((0,o.jsx)(Ww,{token:e},"image-preview")),a.length?(Te.render(a,n),n):(Te.unmountComponentAtNode(n),null)}));const r=w.current;if(!r)return;const i=t(r,{value:b,lineWrapping:!0,readOnly:!0,theme:d,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Yx});E(i)})),()=>{e=!1}},N=[d,b,E],n[9]=d,n[10]=b,n[11]=E,n[12]=T,n[13]=N):(T=n[12],N=n[13]),(0,s.useEffect)(T,N),XE(x,"keyMap",f),n[14]!==m||n[15]!==x||n[16]!==g?(_=()=>{m&&(null==x||x.setValue(m)),g.length>0&&(null==x||x.setValue(Q(g)))},D=[x,m,g],n[14]=m,n[15]=x,n[16]=g,n[17]=_,n[18]=D):(_=n[17],D=n[18]),(0,s.useEffect)(_,D),w}function Xw(e){const t=(0,a.c)(2),n=Qw(e,Xw);let r;return t[0]!==n?(r=(0,o.jsx)("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=r):r=t[1],r}function Zw(e){const t=(0,a.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:Zw},t[3]=i):i=t[3];const{variableEditor:l}=zw(i),u=Pw(n,Zw);let d,f;t[4]!==r||t[5]!==l?(d=()=>{l&&!r&&l.refresh()},f=[l,r],t[4]=r,t[5]=l,t[6]=d,t[7]=f):(d=t[6],f=t[7]),(0,s.useEffect)(d,f);const p=r&&"hidden";let h,m;return t[8]!==p?(h=c("graphiql-editor",p),t[8]=p,t[9]=h):h=t[9],t[10]!==u||t[11]!==h?(m=(0,o.jsx)("div",{className:h,ref:u}),t[10]=u,t[11]=h,t[12]=m):m=t[12],m}function Jw(e){const t=(0,a.c)(39),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:s,defaultTabs:l,externalFragments:u,fetcher:c,getDefaultFieldNames:d,headers:f,inputValueDeprecation:p,introspectionQueryName:h,maxHistoryLength:m,onEditOperationName:g,onSchemaChange:v,onTabChange:y,onTogglePluginVisibility:b,operationName:x,plugins:E,query:w,response:k,schema:C,schemaDescription:S,shouldPersistHeaders:T,storage:N,validationRules:_,variables:D,visiblePlugin:A}=e;let O,L,I,F,M,R;return t[0]!==n||t[1]!==b||t[2]!==E||t[3]!==A?(O=(0,o.jsx)(rE,{children:(0,o.jsx)(GE,{onTogglePluginVisibility:b,plugins:E,visiblePlugin:A,children:n})}),t[0]=n,t[1]=b,t[2]=E,t[3]=A,t[4]=O):O=t[4],t[5]!==c||t[6]!==d||t[7]!==x||t[8]!==O?(L=(0,o.jsx)(Bx,{getDefaultFieldNames:d,fetcher:c,operationName:x,children:O}),t[5]=c,t[6]=d,t[7]=x,t[8]=O,t[9]=L):L=t[9],t[10]!==r||t[11]!==c||t[12]!==p||t[13]!==h||t[14]!==v||t[15]!==C||t[16]!==S||t[17]!==L?(I=(0,o.jsx)(Jx,{dangerouslyAssumeSchemaIsValid:r,fetcher:c,inputValueDeprecation:p,introspectionQueryName:h,onSchemaChange:v,schema:C,schemaDescription:S,children:L}),t[10]=r,t[11]=c,t[12]=p,t[13]=h,t[14]=v,t[15]=C,t[16]=S,t[17]=L,t[18]=I):I=t[18],t[19]!==s||t[20]!==i||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==g||t[25]!==y||t[26]!==w||t[27]!==k||t[28]!==T||t[29]!==I||t[30]!==_||t[31]!==D?(F=(0,o.jsx)(Uw,{defaultQuery:i,defaultHeaders:s,defaultTabs:l,externalFragments:u,headers:f,onEditOperationName:g,onTabChange:y,query:w,response:k,shouldPersistHeaders:T,validationRules:_,variables:D,children:I}),t[19]=s,t[20]=i,t[21]=l,t[22]=u,t[23]=f,t[24]=g,t[25]=y,t[26]=w,t[27]=k,t[28]=T,t[29]=I,t[30]=_,t[31]=D,t[32]=F):F=t[32],t[33]!==m||t[34]!==F?(M=(0,o.jsx)(Fx,{maxHistoryLength:m,children:F}),t[33]=m,t[34]=F,t[35]=M):M=t[35],t[36]!==N||t[37]!==M?(R=(0,o.jsx)(Rb,{storage:N,children:M}),t[36]=N,t[37]=M,t[38]=R):R=t[38],R}const ek="theme";function tk(e){const t=(0,a.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:l,sizeThresholdSecond:u,storageKey:c}=e,d=void 0===n?nk:n,f=void 0===l?100:l,p=void 0===u?100:u,h=Pb();let m;t[0]!==h||t[1]!==c?(m=EE(500,(e=>{c&&(null==h||h.set(c,e))})),t[0]=h,t[1]=c,t[2]=m):m=t[2];const g=m;let v;t[3]!==i||t[4]!==h||t[5]!==c?(v=()=>{const e=c&&(null==h?void 0:h.get(c));return e===rk||"first"===i?"first":e===ik||"second"===i?"second":null},t[3]=i,t[4]=h,t[5]=c,t[6]=v):v=t[6];const[y,b]=(0,s.useState)(v);let x;t[7]!==y||t[8]!==o?(x=e=>{e!==y&&(b(e),null==o||o(e))},t[7]=y,t[8]=o,t[9]=x):x=t[9];const E=x,w=(0,s.useRef)(null),k=(0,s.useRef)(null),C=(0,s.useRef)(null),S=(0,s.useRef)(`${d}`);let T,N,_,D,A,O,L;return t[10]!==h||t[11]!==c?(T=()=>{const e=c&&(null==h?void 0:h.get(c))||S.current;w.current&&(w.current.style.display="flex",w.current.style.flex=e===rk||e===ik?S.current:e),C.current&&(C.current.style.display="flex",C.current.style.flex="1"),k.current&&(k.current.style.display="flex")},t[10]=h,t[11]=c,t[12]=T):T=t[12],t[13]!==r||t[14]!==h||t[15]!==c?(N=[r,h,c],t[13]=r,t[14]=h,t[15]=c,t[16]=N):N=t[16],(0,s.useLayoutEffect)(T,N),t[17]!==y||t[18]!==h||t[19]!==c?(D=()=>{const e=e=>{const t="first"===e?w.current:C.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",w.current)){const e=parseFloat(w.current.style.flex);(!Number.isFinite(e)||e<1)&&(w.current.style.flex="1")}},t=e=>{const t="first"===e?w.current:C.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",h&&c)){const e=h.get(c);w.current&&e!==rk&&e!==ik&&(w.current.style.flex=e||S.current)}};"first"===y?e("first"):t("first"),"second"===y?e("second"):t("second")},_=[y,h,c],t[17]=y,t[18]=h,t[19]=c,t[20]=_,t[21]=D):(_=t[20],D=t[21]),(0,s.useLayoutEffect)(D,_),t[22]!==r||t[23]!==E||t[24]!==f||t[25]!==p||t[26]!==g?(A=()=>{if(!k.current||!w.current||!C.current)return;const e=k.current,t=w.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",a="horizontal"===r?"right":"bottom",s="horizontal"===r?"clientWidth":"clientHeight",l=function(r){r.preventDefault();const l=r[i]-e.getBoundingClientRect()[o],u=function(r){if(0===r.buttons)return c();const u=r[i]-n.getBoundingClientRect()[o]-l,d=n.getBoundingClientRect()[a]-r[i]+l-e[s];if(u<f)E("first"),g(rk);else if(d<p)E("second"),g(ik);else{E(null);const e=""+u/d;t.style.flex=e,g(e)}};function c(){document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};e.addEventListener("mousedown",l);const u=function(){w.current&&(w.current.style.flex=S.current),g(S.current),E(null)};return e.addEventListener("dblclick",u),()=>{e.removeEventListener("mousedown",l),e.removeEventListener("dblclick",u)}},O=[r,E,f,p,g],t[22]=r,t[23]=E,t[24]=f,t[25]=p,t[26]=g,t[27]=A,t[28]=O):(A=t[27],O=t[28]),(0,s.useEffect)(A,O),t[29]!==y?(L={dragBarRef:k,hiddenElement:y,firstRef:w,setHiddenElement:b,secondRef:C},t[29]=y,t[30]=L):L=t[30],L}const nk=1,rk="hide-first",ik="hide-second",ok=(0,s.forwardRef)(((e,t)=>{const n=(0,a.c)(19);let r,i,l;n[0]!==e?(({label:r,onClick:i,...l}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=l):(r=n[1],i=n[2],l=n[3]);const[u,d]=(0,s.useState)(null);let f;n[4]!==i?(f=e=>{try{i&&i(e),d(null)}catch(e){d(e instanceof Error?e:new Error(`Toolbar button click failed: ${e}`))}},n[4]=i,n[5]=f):f=n[5];const p=f,h=u&&"error";let m;n[6]!==l.className||n[7]!==h?(m=c("graphiql-toolbar-button",h,l.className),n[6]=l.className,n[7]=h,n[8]=m):m=n[8];const g=u?u.message:r,v=u?"true":l["aria-invalid"];let y,b;return n[9]!==p||n[10]!==l||n[11]!==t||n[12]!==m||n[13]!==g||n[14]!==v?(y=(0,o.jsx)(gx,{...l,ref:t,type:"button",className:m,onClick:p,"aria-label":g,"aria-invalid":v}),n[9]=p,n[10]=l,n[11]=t,n[12]=m,n[13]=g,n[14]=v,n[15]=y):y=n[15],n[16]!==r||n[17]!==y?(b=(0,o.jsx)(Nx,{label:r,children:y}),n[16]=r,n[17]=y,n[18]=b):b=n[18],b}));function ak(){const e=(0,a.c)(19);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:ak},e[0]=t):t=e[0];const{queryEditor:n,setOperationName:r}=zw(t);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:ak},e[1]=i):i=e[1];const{isFetching:s,isSubscribed:l,operationName:u,run:c,stop:d}=zx(i);let f;e[2]!==(null==n?void 0:n.operations)?(f=(null==n?void 0:n.operations)||[],e[2]=null==n?void 0:n.operations,e[3]=f):f=e[3];const p=f,h=p.length>1&&"string"!=typeof u,m=s||l,g=(m?"Stop":"Execute")+" query (Ctrl-Enter)";let v,y;e[4]!==m?(v=m?(0,o.jsx)(fx,{}):(0,o.jsx)(ix,{}),e[4]=m,e[5]=v):v=e[5],e[6]!==g||e[7]!==v?(y={type:"button",className:"graphiql-execute-button",children:v,"aria-label":g},e[6]=g,e[7]=v,e[8]=y):y=e[8];const b=y;let x;return e[9]!==b||e[10]!==h||e[11]!==m||e[12]!==g||e[13]!==p||e[14]!==n||e[15]!==c||e[16]!==r||e[17]!==d?(x=h&&!m?(0,o.jsxs)(kx,{children:[(0,o.jsx)(Nx,{label:g,children:(0,o.jsx)(kx.Button,{...b})}),(0,o.jsx)(kx.Content,{children:p.map(((e,t)=>{const i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,o.jsx)(kx.Item,{onSelect:()=>{var t;const i=null==(t=e.name)?void 0:t.value;n&&i&&i!==n.operationName&&r(i),c()},children:i},`${i}-${t}`)}))})]}):(0,o.jsx)(Nx,{label:g,children:(0,o.jsx)("button",{...b,onClick:()=>{m?d():c()}})}),e[9]=b,e[10]=h,e[11]=m,e[12]=g,e[13]=p,e[14]=n,e[15]=c,e[16]=r,e[17]=d,e[18]=x):x=e[18],x}ok.displayName="ToolbarButton",bx((e=>{const t=(0,a.c)(20);let n,r,i,s,l,u,d,f,p;return t[0]!==e?(({button:n,children:r,label:i,...s}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s):(n=t[1],r=t[2],i=t[3],s=t[4]),t[5]!==s.className?(l=c("graphiql-un-styled graphiql-toolbar-menu",s.className),t[5]=s.className,t[6]=l):l=t[6],t[7]!==n||t[8]!==i||t[9]!==l?(u=(0,o.jsx)(kx.Button,{className:l,"aria-label":i,children:n}),t[7]=n,t[8]=i,t[9]=l,t[10]=u):u=t[10],t[11]!==i||t[12]!==u?(d=(0,o.jsx)(Nx,{label:i,children:u}),t[11]=i,t[12]=u,t[13]=d):d=t[13],t[14]!==r?(f=(0,o.jsx)(kx.Content,{children:r}),t[14]=r,t[15]=f):f=t[15],t[16]!==s||t[17]!==d||t[18]!==f?(p=(0,o.jsxs)(kx,{...s,children:[d,f]}),t[16]=s,t[17]=d,t[18]=f,t[19]=p):p=t[19],p}),{Item:kx.Item});var sk=function(){return sk=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},sk.apply(this,arguments)},lk=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};if(parseInt(s.version.slice(0,2),10)<16)throw new 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"));function uk(e){var t,n=e.dangerouslyAssumeSchemaIsValid,r=e.confirmCloseTab,i=e.defaultQuery,o=e.defaultTabs,a=e.externalFragments,l=e.fetcher,u=e.getDefaultFieldNames,c=e.headers,d=e.inputValueDeprecation,f=e.introspectionQueryName,p=e.maxHistoryLength,h=e.onEditOperationName,m=e.onSchemaChange,g=e.onTabChange,v=e.onTogglePluginVisibility,y=e.operationName,b=e.plugins,x=e.query,E=e.response,w=e.schema,k=e.schemaDescription,C=e.shouldPersistHeaders,S=e.storage,T=e.validationRules,N=e.variables,_=e.visiblePlugin,D=e.defaultHeaders,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,["dangerouslyAssumeSchemaIsValid","confirmCloseTab","defaultQuery","defaultTabs","externalFragments","fetcher","getDefaultFieldNames","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onTabChange","onTogglePluginVisibility","operationName","plugins","query","response","schema","schemaDescription","shouldPersistHeaders","storage","validationRules","variables","visiblePlugin","defaultHeaders"]);if("function"!=typeof l)throw new TypeError("The `GraphiQL` component requires a `fetcher` function to be passed as prop.");return s.createElement(Jw,{getDefaultFieldNames:u,dangerouslyAssumeSchemaIsValid:n,defaultQuery:i,defaultHeaders:D,defaultTabs:o,externalFragments:a,fetcher:l,headers:c,inputValueDeprecation:d,introspectionQueryName:f,maxHistoryLength:p,onEditOperationName:h,onSchemaChange:m,onTabChange:g,onTogglePluginVisibility:v,plugins:b,visiblePlugin:_,operationName:y,query:x,response:E,schema:w,schemaDescription:k,shouldPersistHeaders:C,storage:S,validationRules:T,variables:N},s.createElement(fk,sk({confirmCloseTab:r,showPersistHeadersSettings:!1!==C,disableTabs:null!==(t=A.disableTabs)&&void 0!==t&&t,forcedTheme:A.forcedTheme},A)))}uk.Logo=gk,uk.Toolbar=vk,uk.Footer=yk;var ck=["light","dark","system"],dk="graphiql-session-tab-";function fk(e){var t,n,r,i,o=this,l=null===(t=e.isHeadersEditorEnabled)||void 0===t||t,u=zw({nonNull:!0}),c=zx({nonNull:!0}),d=eE({nonNull:!0}),f=Pb(),p=KE(),h=(0,s.useMemo)((function(){return e.forcedTheme&&ck.includes(e.forcedTheme)?e.forcedTheme:void 0}),[e.forcedTheme]),m=ow({onCopyQuery:e.onCopyQuery}),g=aw(),v=sw(),y=function(e){const t=(0,a.c)(11),n=void 0===e?null:e,r=Pb();let i;t[0]!==n||t[1]!==r?(i=()=>{if(!r)return null;const e=r.get(ek);switch(e){case"light":return"light";case"dark":return"dark";default:return"string"==typeof e&&r.set(ek,""),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];const[o,l]=(0,s.useState)(i);let u,c,d;t[3]!==o?(u=()=>{"undefined"!=typeof window&&(document.body.classList.remove("graphiql-light","graphiql-dark"),o&&document.body.classList.add(`graphiql-${o}`))},c=[o],t[3]=o,t[4]=u,t[5]=c):(u=t[4],c=t[5]),(0,s.useLayoutEffect)(u,c),t[6]!==r?(d=e=>{null==r||r.set(ek,e||""),l(e)},t[6]=r,t[7]=d):d=t[7];const f=d;let p;return t[8]!==f||t[9]!==o?(p={theme:o,setTheme:f},t[8]=f,t[9]=o,t[10]=p):p=t[10],p}(e.defaultTheme),b=y.theme,x=y.setTheme;(0,s.useEffect)((function(){"system"===h?x(null):"light"!==h&&"dark"!==h||x(h)}),[h,x]);var E=null===(n=null==p?void 0:p.visiblePlugin)||void 0===n?void 0:n.content,w=tk({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:(null==p?void 0:p.visiblePlugin)?void 0:"first",onHiddenElementChange:function(e){"first"===e&&(null==p||p.setVisiblePlugin(null))},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),k=tk({direction:"horizontal",storageKey:"editorFlex"}),C=tk({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){if("variables"!==e.defaultEditorToolsVisibility&&"headers"!==e.defaultEditorToolsVisibility)return"boolean"==typeof e.defaultEditorToolsVisibility?e.defaultEditorToolsVisibility?void 0:"second":u.initialVariables||u.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"}),S=lk((0,s.useState)((function(){return"variables"===e.defaultEditorToolsVisibility||"headers"===e.defaultEditorToolsVisibility?e.defaultEditorToolsVisibility:!u.initialVariables&&u.initialHeaders&&l?"headers":"variables"})),2),T=S[0],N=S[1],_=lk((0,s.useState)(null),2),D=_[0],A=_[1],O=lk((0,s.useState)(null),2),L=O[0],I=O[1],F=s.Children.toArray(e.children),M=F.find((function(e){return bk(e,uk.Logo)}))||s.createElement(uk.Logo,null),R=F.find((function(e){return bk(e,uk.Toolbar)}))||s.createElement(s.Fragment,null,s.createElement(ok,{onClick:v,label:"Prettify query (Shift-Ctrl-P)"},s.createElement(ax,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),s.createElement(ok,{onClick:g,label:"Merge fragments into query (Shift-Ctrl-M)"},s.createElement(nx,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),s.createElement(ok,{onClick:m,label:"Copy query (Shift-Ctrl-C)"},s.createElement(Hb,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),null===(r=e.toolbar)||void 0===r?void 0:r.additionalContent,(null===(i=e.toolbar)||void 0===i?void 0:i.additionalComponent)&&s.createElement(e.toolbar.additionalComponent,null)),P=F.find((function(e){return bk(e,uk.Footer)})),j=(0,s.useCallback)((function(){"first"===w.hiddenElement&&w.setHiddenElement(null)}),[w]),V=(0,s.useCallback)((function(){try{null==f||f.clear(),I("success")}catch(e){I("error")}}),[f]),B=(0,s.useCallback)((function(e){u.setShouldPersistHeaders("true"===e.currentTarget.dataset.value)}),[u]),U=(0,s.useCallback)((function(e){var t=e.currentTarget.dataset.theme;x(t||null)}),[x]),z=u.addTab,H=d.introspect,q=u.moveTab,$=(0,s.useCallback)((function(e){A(e.currentTarget.dataset.value)}),[]),W=(0,s.useCallback)((function(e){var t=p,n=Number(e.currentTarget.dataset.index),r=t.plugins.find((function(e,t){return n===t}));r===t.visiblePlugin?(t.setVisiblePlugin(null),w.setHiddenElement("first")):(t.setVisiblePlugin(r),w.setHiddenElement(null))}),[p,w]),G=(0,s.useCallback)((function(e){"second"===C.hiddenElement&&C.setHiddenElement(null),N(e.currentTarget.dataset.name)}),[C]),K=(0,s.useCallback)((function(){C.setHiddenElement("second"===C.hiddenElement?null:"second")}),[C]),Y=(0,s.useCallback)((function(e){e||A(null)}),[]),Q=(0,s.useCallback)((function(e){e||(A(null),I(null))}),[]),X=s.createElement(Nx,{label:"Add tab"},s.createElement(gx,{type:"button",className:"graphiql-tab-add",onClick:z,"aria-label":"Add tab"},s.createElement(ox,{"aria-hidden":"true"}))),Z=e.className?" ".concat(e.className):"",J=e.confirmCloseTab,ee=(0,s.useCallback)((function(e){return t=o,n=void 0,i=function(){var t,n,r;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(i){switch(i.label){case 0:return t=e.currentTarget.previousSibling,n=Number(t.id.replace(dk,"")),J?[4,J(n)]:[3,2];case 1:return r=i.sent(),[3,3];case 2:r=!0,i.label=3;case 3:return r?(u.activeTabIndex===n&&c.stop(),u.closeTab(n),[2]):[2]}}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}l((i=i.apply(t,n||[])).next())}));var t,n,r,i}),[J,u,c]),te=(0,s.useCallback)((function(e){var t=Number(e.currentTarget.id.replace(dk,""));c.stop(),u.changeTab(t)}),[u,c]);return s.createElement(Nx.Provider,null,s.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container".concat(Z)},s.createElement("div",{className:"graphiql-sidebar"},s.createElement("div",{className:"graphiql-sidebar-section"},null==p?void 0:p.plugins.map((function(e,t){var n=e===p.visiblePlugin,r="".concat(n?"Hide":"Show"," ").concat(e.title);return s.createElement(Nx,{key:e.title,label:r},s.createElement(gx,{type:"button",className:n?"active":"",onClick:W,"data-index":t,"aria-label":r},s.createElement(e.icon,{"aria-hidden":"true"})))}))),s.createElement("div",{className:"graphiql-sidebar-section"},s.createElement(Nx,{label:"Re-fetch GraphQL schema"},s.createElement(gx,{type:"button",disabled:d.isFetching,onClick:H,"aria-label":"Re-fetch GraphQL schema"},s.createElement(sx,{className:d.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),s.createElement(Nx,{label:"Open short keys dialog"},s.createElement(gx,{type:"button","data-value":"short-keys",onClick:$,"aria-label":"Open short keys dialog"},s.createElement(ex,{"aria-hidden":"true"}))),s.createElement(Nx,{label:"Open settings dialog"},s.createElement(gx,{type:"button","data-value":"settings",onClick:$,"aria-label":"Open settings dialog"},s.createElement(ux,{"aria-hidden":"true"}))))),s.createElement("div",{className:"graphiql-main"},s.createElement("div",{ref:w.firstRef,style:{minWidth:"200px"}},s.createElement("div",{className:"graphiql-plugin"},E?s.createElement(E,null):null)),(null==p?void 0:p.visiblePlugin)&&s.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:w.dragBarRef}),s.createElement("div",{ref:w.secondRef,className:"graphiql-sessions"},s.createElement("div",{className:"graphiql-session-header"},!e.disableTabs&&s.createElement(Lx,{values:u.tabs,onReorder:q,"aria-label":"Select active operation"},u.tabs.length>1&&s.createElement(s.Fragment,null,u.tabs.map((function(e,t){return s.createElement(Ox,{key:e.id,value:e,isActive:t===u.activeTabIndex},s.createElement(Ox.Button,{"aria-controls":"graphiql-session",id:"".concat(dk).concat(t),onClick:te},e.title),s.createElement(Ox.Close,{onClick:ee}))})),X)),s.createElement("div",{className:"graphiql-session-header-right"},1===u.tabs.length&&X,M)),s.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"".concat(dk).concat(u.activeTabIndex)},s.createElement("div",{ref:k.firstRef},s.createElement("div",{className:"graphiql-editors".concat(1===u.tabs.length?" full-height":"")},s.createElement("div",{ref:C.firstRef},s.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},s.createElement(Kw,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:j,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),s.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},s.createElement(ak,null),R))),s.createElement("div",{ref:C.dragBarRef},s.createElement("div",{className:"graphiql-editor-tools"},s.createElement(gx,{type:"button",className:"variables"===T&&"second"!==C.hiddenElement?"active":"",onClick:G,"data-name":"variables"},"Variables"),l&&s.createElement(gx,{type:"button",className:"headers"===T&&"second"!==C.hiddenElement?"active":"",onClick:G,"data-name":"headers"},"Headers"),s.createElement(Nx,{label:"second"===C.hiddenElement?"Show editor tools":"Hide editor tools"},s.createElement(gx,{type:"button",onClick:K,"aria-label":"second"===C.hiddenElement?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},"second"===C.hiddenElement?s.createElement(Ub,{className:"graphiql-chevron-icon","aria-hidden":"true"}):s.createElement(Vb,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),s.createElement("div",{ref:C.secondRef},s.createElement("section",{className:"graphiql-editor-tool","aria-label":"variables"===T?"Variables":"Headers"},s.createElement(Zw,{editorTheme:e.editorTheme,isHidden:"variables"!==T,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:j,readOnly:e.readOnly}),l&&s.createElement($w,{editorTheme:e.editorTheme,isHidden:"headers"!==T,keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),s.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:k.dragBarRef}),s.createElement("div",{ref:k.secondRef},s.createElement("div",{className:"graphiql-response"},c.isFetching?s.createElement(Tx,null):null,s.createElement(Xw,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),P))))),s.createElement(Ex,{open:"short-keys"===D,onOpenChange:Y},s.createElement("div",{className:"graphiql-dialog-header"},s.createElement(Ex.Title,{className:"graphiql-dialog-title"},"Short Keys"),s.createElement(Ex.Close,null)),s.createElement("div",{className:"graphiql-dialog-section"},s.createElement(mk,{keyMap:e.keyMap||"sublime"}))),s.createElement(Ex,{open:"settings"===D,onOpenChange:Q},s.createElement("div",{className:"graphiql-dialog-header"},s.createElement(Ex.Title,{className:"graphiql-dialog-title"},"Settings"),s.createElement(Ex.Close,null)),e.showPersistHeadersSettings?s.createElement("div",{className:"graphiql-dialog-section"},s.createElement("div",null,s.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),s.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",s.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),s.createElement(yx,null,s.createElement(vx,{type:"button",id:"enable-persist-headers",className:u.shouldPersistHeaders?"active":"","data-value":"true",onClick:B},"On"),s.createElement(vx,{type:"button",id:"disable-persist-headers",className:u.shouldPersistHeaders?"":"active",onClick:B},"Off"))):null,!h&&s.createElement("div",{className:"graphiql-dialog-section"},s.createElement("div",null,s.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),s.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface appears.")),s.createElement(yx,null,s.createElement(vx,{type:"button",className:null===b?"active":"",onClick:U},"System"),s.createElement(vx,{type:"button",className:"light"===b?"active":"","data-theme":"light",onClick:U},"Light"),s.createElement(vx,{type:"button",className:"dark"===b?"active":"","data-theme":"dark",onClick:U},"Dark"))),f?s.createElement("div",{className:"graphiql-dialog-section"},s.createElement("div",null,s.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),s.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),s.createElement(vx,{type:"button",state:L||void 0,disabled:"success"===L,onClick:V},{success:"Cleared data",error:"Failed"}[L]||"Clear data")):null)))}var pk=Wx?"⌘":"Ctrl",hk=Object.entries({"Search in editor":[pk,"F"],"Search in documentation":[pk,"K"],"Execute query":[pk,"Enter"],"Prettify editors":["Ctrl","Shift","P"],"Merge fragments definitions into operation definition":["Ctrl","Shift","M"],"Copy query":["Ctrl","Shift","C"],"Re-fetch schema using introspection":["Ctrl","Shift","R"]});function mk(e){var t=e.keyMap;return s.createElement("div",null,s.createElement("table",{className:"graphiql-table"},s.createElement("thead",null,s.createElement("tr",null,s.createElement("th",null,"Short Key"),s.createElement("th",null,"Function"))),s.createElement("tbody",null,hk.map((function(e){var t=lk(e,2),n=t[0],r=t[1];return s.createElement("tr",{key:n},s.createElement("td",null,r.map((function(e,t,n){return s.createElement(s.Fragment,{key:e},s.createElement("code",{className:"graphiql-key"},e),t!==n.length-1&&" + ")}))),s.createElement("td",null,n))})))),s.createElement("p",null,"The editors use"," ",s.createElement("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer"},"CodeMirror Key Maps")," ","that add more short keys. This instance of Graph",s.createElement("em",null,"i"),"QL uses"," ",s.createElement("code",null,t),"."))}function gk(e){return s.createElement("div",{className:"graphiql-logo"},e.children||s.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",s.createElement("em",null,"i"),"QL"))}function vk(e){return s.createElement(s.Fragment,null,e.children)}function yk(e){return s.createElement("div",{className:"graphiql-footer"},e.children)}function bk(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}gk.displayName="GraphiQLLogo",vk.displayName="GraphiQLToolbar",yk.displayName="GraphiQLFooter";var xk=i(5338);document.addEventListener("DOMContentLoaded",(function(e){const t=document.getElementById("graphiql-container"),n=G({url:t.dataset.graphqlEndpointPath,headers:JSON.parse(t.dataset.headers),fetch:function(e,t){return t.credentials="include",fetch(e,t)},enableIncrementalDelivery:!0}),r=t.dataset.initialQuery,i=t.dataset.shouldPersistHeaders;let o={fetcher:n,defaultQuery:r||void 0,headerEditorEnabled:"true"===t.dataset.headerEditorEnabled,inputValueDeprecation:"true"===t.dataset.inputValueDeprecation,shouldPersistHeaders:i?"true"===i:void 0};if("true"===t.dataset.queryParams){let a={};if(window.location.search.substring(1).split("&").forEach((function(e){let t=e.indexOf("=");t>=0&&(a[decodeURIComponent(e.slice(0,t))]=decodeURIComponent(e.slice(t+1)))})),a.variables)try{a.variables=JSON.stringify(JSON.parse(a.variables),null,2)}catch{}function l(){const e="?"+Object.keys(a).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(a[e])})).join("&");history.replaceState(null,null,e)}function u(e){a.query=e,l()}function c(e){a.variables=e,l()}Object.assign(o,{query:a.query,variables:a.variables,onEditQuery:u,onEditVariables:c})}(0,xk.H)(document.getElementById("graphiql-container")).render(s.createElement(uk,o,s.createElement(uk.Logo,{},t.dataset.logo)))}))})()})();
|